4ac0b729c3effe6f6f811d8f190cec8d7d7a0aa3
[gnulib.git] / ChangeLog
1 2009-04-30  Bruno Haible  <bruno@clisp.org>
2
3         Fix bug introduced on 2009-04-25.
4         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
5         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
6         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
7         is defined.
8         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
9         is defined.
10         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
11         is defined.
12         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13
14 2009-04-28  Bruno Haible  <bruno@clisp.org>
15
16         Comment tweaks.
17         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19         * lib/unicase.h (u*_casexfrm): Likewise.
20         Reported by Paolo Bonzini.
21
22 2009-04-28  Bruno Haible  <bruno@clisp.org>
23
24         Fix a compilation error.
25         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27         Reported by Jim Meyering.
28
29 2009-04-27  Bruno Haible  <bruno@clisp.org>
30
31         New module 'libunistring'.
32         * modules/libunistring: New file.
33         * m4/libunistring.m4: New file.
34         * MODULES.html.sh (Unicode string functions): Add it.
35
36 2009-04-27  Eric Blake  <ebb9@byu.net>
37
38         maint.mk: allow package-specific header to provide <config.h>
39         * top/maint.mk (sc_require_config_h): New variable.
40         (sc_require_config_h, sc_require_config_h_first): Use it.
41
42 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43
44         * top/maint.mk (sc_avoid_if_before_free): Except
45         useless-if-before-free script.
46
47 2009-04-27  Eric Blake  <ebb9@byu.net>
48
49         maintainer-makefile: depend on all required helper scripts
50         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
51         useless-if-before-free.
52         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
53         version, rather than assuming gnulib checkout is available.
54         Reported by Simen Josefsson.
55
56 2009-04-26  Bruno Haible  <bruno@clisp.org>
57
58         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
59         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
60         "../" or "..".
61
62 2009-04-26  Bruno Haible  <bruno@clisp.org>
63
64         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
66         AC_LIB_HAVE_LINKFLAGS.
67
68 2009-04-26  Bruno Haible  <bruno@clisp.org>
69
70         Simplify calling convention of u*_conv_from_encoding.
71         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
72         u32_conv_from_encoding): Expect a resultbuf argument and return the
73         result directly as a pointer.
74         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
75         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
76         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
77         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
78         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80         Update.
81         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83         * lib/vasnprintf.c (VASNPRINTF): Update.
84         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
85         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
86         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
87         * NEWS: Mention the change.
88
89 2009-04-26  Bruno Haible  <bruno@clisp.org>
90
91         Simplify calling convention of u*_conv_to_encoding.
92         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
93         u32_conv_to_encoding): Expect a resultbuf argument and return the
94         result directly as a pointer.
95         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
96         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
97         freeing scaled_offsets if mem_iconveha failed.
98         * lib/unicase/u-casexfrm.h (FUNC): Update.
99         * lib/uninorm/u-normxfrm.h (FUNC): Update.
100         * lib/vasnprintf.c (VASNPRINTF): Update.
101         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
102         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
103         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
104         * NEWS: Mention the change.
105
106 2009-04-26  Bruno Haible  <bruno@clisp.org>
107
108         Avoid test failures on AIX and OSF/1.
109         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
110         malloc(0).
111         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
112         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
113         Likewise.
114         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
115         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
116         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
117         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
118         * doc/posix-functions/malloc.texi: Document the portability problem
119         related to malloc(0).
120
121 2009-04-26  Bruno Haible  <bruno@clisp.org>
122
123         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
124         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
125         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
126
127 2009-04-25  Bruno Haible  <bruno@clisp.org>
128
129         Avoid link error when creating a namespace clean library.
130         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
131         as macro with arguments if already defined as an alias.
132         * lib/signbitf.c (gl_signbitf): Don't undefine.
133         * lib/signbitd.c (gl_signbitd): Don't undefine.
134         * lib/signbitl.c (gl_signbitl): Don't undefine.
135
136 2009-04-25  Jim Meyering  <meyering@redhat.com>
137
138         vc-list-files: fix another quoting bug
139         * build-aux/vc-list-files: Avoid sed backslash expansion
140         of pathological directory names.
141
142 2009-04-25  Eric Blake  <ebb9@byu.net>
143
144         vc-list-files: fix shell quoting error
145         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
146         timestamp.
147
148 2009-04-25  Jim Meyering  <meyering@redhat.com>
149
150         vc-list-files: restore lost functionality with subdir argument
151         * build-aux/vc-list-files: When given a non-"." sub-directory
152         argument, substitute the $dir/ prefix back onto each resulting name.
153         Otherwise, coreutils' root_tests check would fail.
154
155 2009-04-24  Eric Blake  <ebb9@byu.net>
156
157         vc-list-files: ignore git symlinks
158         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
159         than ls-files, to ignore git symlinks.
160
161         maint.mk: import improvements from m4
162         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
163         (move_if_change): Delete unused macro.
164         (news-date-check, vc-diff-check): Support VPATH builds.
165         (announcement): Likewise.  Split --bootstrap-tools list...
166         (boostrap-tools): ...into separate list, which can be overridden
167         in cfg.mk.
168         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
169         requiring dependency on useless-if-before-free module.
170         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
171         Support VPATH builds.
172
173 2009-04-24  Jim Meyering  <meyering@redhat.com>
174
175         maint.mk: remove coreutils-specific rules and variables
176         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
177         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
178         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
179
180         maint.mk: remove obsolete rule
181         * top/maint.mk (rel-check): Remove rule.
182         (WGET, WGETFLAGS): Remove now-unused variables.
183
184 2009-04-24  Simon Josefsson  <simon@josefsson.org>
185
186         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
187         consistency.
188
189         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
190         '$(PATH_SEPARATOR)' instead of ':'.
191
192 2009-04-24  Simon Josefsson  <simon@josefsson.org>
193
194         * lib/getopt1.c (main): Use 'const' for static array.
195
196 2009-04-24  Simon Josefsson  <simon@josefsson.org>
197
198         * top/maint.mk: Sync with coreutils.
199         * NEWS: Explain incompatibilities.
200
201 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
202             Bruno Haible  <bruno@clisp.org>
203
204         Fix cross-compilation results.
205         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
206         statement, as third argument of AC_TRY_RUN.
207         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
208         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
209         Likewise.
210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
211         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
212         Likewise.
213         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
215         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
216
217 2009-04-20  Bruno Haible  <bruno@clisp.org>
218
219         Avoid test failure on mingw.
220         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
221
222 2009-04-20  Bruno Haible  <bruno@clisp.org>
223
224         Avoid compilation error on mingw.
225         * modules/localename-tests (Depends-on): Add locale.
226
227 2009-04-19  Bruno Haible  <bruno@clisp.org>
228
229         Support for building a shared library on Windows platforms.
230         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
231         (main): Test the presence of UNINORM_NFC here.
232         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
233         (main): Test the presence of UNINORM_NFD here.
234         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
235         (main): Test the presence of UNINORM_NFKC here.
236         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
237         (main): Test the presence of UNINORM_NFKD here.
238
239 2009-04-19  Bruno Haible  <bruno@clisp.org>
240
241         Avoid a compiler warning.
242         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
243         Change type of variable 'sequence'.
244
245 2009-04-19  Bruno Haible  <bruno@clisp.org>
246
247         * modules/configmake (Makefile.am): When the contents of configmake.h
248         does not change, arrange to preserve its modification time.
249
250 2009-04-17  Simon Josefsson  <simon@josefsson.org>
251
252         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
253         gettext domain.
254
255 2009-04-16  Jim Meyering  <meyering@redhat.com>
256
257         useless-if-before-free: improve conversion code
258         * build-aux/useless-if-before-free: Adjust code-in-comment to match
259         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
260
261 2009-04-14  Bruno Haible  <bruno@clisp.org>
262
263         * modules/fcntl (Depends-on): Add extensions.
264         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
265
266 2009-04-12  Ben Pfaff  <blp@gnu.org>
267
268         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
269         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
270
271 2009-03-20  Ben Pfaff  <blp@gnu.org>
272
273         Make rename replace existing destinations on Windows.
274         * m4/rename.m4: Add test for Mingw.
275         * lib/rename.c: Add rename replacement that uses MoveFileEx with
276         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
277         * doc/posix-functions/rename.texi: Document.
278
279 2009-04-10  Bruno Haible  <bruno@clisp.org>
280
281         New include file "iconveh.h".
282         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
283         * lib/striconveh.h: Include it.
284         (enum iconv_ilseq_handler): Remove definition.
285         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
286         striconveh.h.
287         * lib/striconveha.c: Include striconveh.h.
288         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
289         * modules/striconveh (Files): Add lib/iconveh.h.
290         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
291         lib/striconveh.h.
292
293 2009-04-10  Bruno Haible  <bruno@clisp.org>
294
295         * lib/uniconv.h: Update comment.
296
297 2009-04-10  Bruno Haible  <bruno@clisp.org>
298
299         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
300         always.
301         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
302         * lib/unistr/u16-mbtouc-aux.c: Likewise.
303         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
304         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
305         "unistring-notinline.h", so that the function gets defined always.
306         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
307         * lib/unistr/u8-uctomb.c: Likewise.
308         * lib/unistr/u16-mbtouc.c: Likewise.
309         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
310         * lib/unistr/u16-uctomb.c: Likewise.
311         * lib/unistr/u32-mbtouc.c: Likewise.
312         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
313         * lib/unistr/u32-uctomb.c: Likewise.
314
315 2009-04-10  Bruno Haible  <bruno@clisp.org>
316
317         Mark 'utime' obsolete.
318         * modules/utime (Status, Notice): New sections.
319         Suggested by Jim Meyering.
320
321         Fix cross-compile guess for utime test.
322         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
323         autoconf.
324         * doc/posix-functions/utime.texi: Give more precisions.
325         Reported by Jan <ipif@ymail.com>.
326
327 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
328
329         filevercmp: correct today's change
330         * lib/filevercmp.c: Also handle coreutils' test inputs.
331         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
332
333         Fix regression in 'filevercmp' module. Thanks Sven Joachim
334         for reporting it.
335         * lib/filevercmp.c: Special handle for "", "." and "..".
336         * tests/test-filevercmp.c: Enlarge the set suite.
337
338 2009-04-07  Jim Meyering  <meyering@redhat.com>
339
340         useless-if-before-free: show how to remove braced useless free, too
341         * build-aux/useless-if-before-free: still only in a comment, though.
342
343 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
344
345         maint.mk: import changes to syntax-check macros from coreutils
346         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
347         Use them in the relevant macros.
348
349 2009-04-06  Bruno Haible  <bruno@clisp.org>
350
351         Fix unportable use of bit-fields.
352         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
353         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
354         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
355
356 2009-04-06  Bruno Haible  <bruno@clisp.org>
357
358         Avoid test failures on AIX and OSF/1.
359         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
360         that malloc(0) = NULL.
361         * tests/unicase/test-u8-tolower.c (check): Likewise.
362         * tests/unicase/test-u8-totitle.c (check): Likewise.
363         * tests/unicase/test-u8-toupper.c (check): Likewise.
364         * tests/unicase/test-u16-casefold.c (check): Likewise.
365         * tests/unicase/test-u16-tolower.c (check): Likewise.
366         * tests/unicase/test-u16-totitle.c (check): Likewise.
367         * tests/unicase/test-u16-toupper.c (check): Likewise.
368         * tests/unicase/test-u32-casefold.c (check): Likewise.
369         * tests/unicase/test-u32-tolower.c (check): Likewise.
370         * tests/unicase/test-u32-totitle.c (check): Likewise.
371         * tests/unicase/test-u32-toupper.c (check): Likewise.
372         * tests/uninorm/test-u8-nfc.c (check): Likewise.
373         * tests/uninorm/test-u8-nfd.c (check): Likewise.
374         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
375         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
376         * tests/uninorm/test-u16-nfc.c (check): Likewise.
377         * tests/uninorm/test-u16-nfd.c (check): Likewise.
378         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
379         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
380         * tests/uninorm/test-u32-nfc.c (check): Likewise.
381         * tests/uninorm/test-u32-nfd.c (check): Likewise.
382         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
383         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
384
385 2009-04-05  Bruno Haible  <bruno@clisp.org>
386
387         Work around an autoconf limitation.
388         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
389         comment line if it would be longer than 3 KB.
390
391 2009-04-05  Bruno Haible  <bruno@clisp.org>
392
393         Avoid test failure with libiconv-1.13.
394         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
395         of the expected test results.
396
397 2009-04-05  Bruno Haible  <bruno@clisp.org>
398
399         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
400         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
401         that it should be installed.
402
403 2009-04-05  Bruno Haible  <bruno@clisp.org>
404
405         * gnulib-tool: New option --copy-file.
406         (func_usage): Document it.
407         (func_dest_tmpfilename): Moved out of func_import.
408         (func_add_file, func_update_file): New functions, extracted from
409         func_import.
410         (func_import): Update.
411
412 2009-04-05  Karl Berry  <karl@gnu.org>
413
414         * README: prominently mention gnulib-tool.
415         Rearrange sections so getting the code is near the top.
416
417 2009-04-05  Bruno Haible  <bruno@clisp.org>
418
419         * lib/unicase.h: Mention u*_cmp2.
420         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
421         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
422         * lib/unicase/ulc-casecmp.c: Likewise.
423         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
424         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
425         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
426         unistr/u8-cmp.
427         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
428         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
429         unistr/u16-cmp.
430         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
431         unistr/u32-cmp.
432
433         * lib/uninorm.h: Mention u*_cmp2.
434         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
435         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
436         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
437         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
438         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
439         unistr/u8-cmp.
440         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
441         unistr/u16-cmp.
442         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
443         unistr/u32-cmp.
444
445         New module 'unistr/u32-cmp2'.
446         * lib/unistr/u32-cmp2.c: New file.
447         * modules/unistr/u32-cmp2: New file.
448
449         New module 'unistr/u16-cmp2'.
450         * lib/unistr/u16-cmp2.c: New file.
451         * modules/unistr/u16-cmp2: New file.
452
453         New module 'unistr/u8-cmp2'.
454         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
455         * lib/unistr/u8-cmp2.c: New file.
456         * lib/unistr/u-cmp2.h: New file.
457         * modules/unistr/u8-cmp2: New file.
458
459 2009-04-05  Bruno Haible  <bruno@clisp.org>
460
461         * lib/unictype.h (uc_property_is_valid): New macro.
462         * tests/unictype/test-pr_byname.c (main): Use it.
463
464         * lib/unistr.h: Doc fixes.
465         * lib/uniconv.h: Doc fixes.
466         * lib/unictype.h: Doc fixes.
467
468 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
469
470         Port coreutils 7.2 to Solaris 8.
471
472         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
473         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
474         for Solaris 8.  This is a bit of a hack, as it means it's the
475         caller's responsibility to add -lnsl if needed, but most likely it
476         won't be needed since only getaddrinfo uses this and getaddrinfo
477         isn't needed on Solaris 8.
478
479         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
480         problem to Solaris 8 encountered with coreutils 7.2, which
481         resulted in a message "fnmatch.c:292: warning: passing argument 4
482         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
483         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
484
485 2009-04-03  Simon Josefsson  <simon@josefsson.org>
486
487         * m4/ld-version-script.m4: Add FIXME comment.
488
489 2009-04-02  Simon Josefsson  <simon@josefsson.org>
490
491         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
492         SOVERSION variable.
493
494 2009-04-02  Bruno Haible  <bruno@clisp.org>
495
496         * Makefile (info, html, dvi, pdf): Combine the rules.
497         Suggested by Jim Meyering.
498
499 2009-04-01  Bruno Haible  <bruno@clisp.org>
500
501         * Makefile (info, html, dvi, pdf): New targets.
502         Reported by Reuben Thomas <rrt@sc3d.org>.
503
504 2009-04-01  Bruno Haible  <bruno@clisp.org>
505
506         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
507         can be put into PATH.
508         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
509
510 2009-04-01  Bruno Haible  <bruno@clisp.org>
511
512         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
513
514 2009-04-01  Bruno Haible  <bruno@clisp.org>
515
516         Rename module 'visibility'.
517         * modules/lib-symbol-visibility: Renamed from modules/visibility.
518         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
519         * doc/gnulib.texi: Update.
520         * MODULES.html.sh (Misc): Update.
521         * NEWS: Mention the change.
522
523 2009-04-01  Simon Josefsson  <simon@josefsson.org>
524
525         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
526         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
527         Eric Blake <ebb9@byu.net> for review.
528         * MODULES.html.sh: Add lib-msvc-compat.
529         * doc/gnulib.texi: Link to new section.
530         * m4/ld-output-def.m4: New file.
531         * doc/ld-output-def.texi: New file.
532
533 2009-04-01  Simon Josefsson  <simon@josefsson.org>
534
535         Rename ld-version-script to lib-symbol-versions.  Suggested by
536         Bruno Haible <bruno@clisp.org>.
537         * modules/ld-version-script: Renamed to lib-symbol-versions.
538         * doc/ld-version-script.texi: Fix module name.
539         * MODULES.html.sh: Add lib-symbol-versions.
540
541 2009-03-31  Simon Josefsson  <simon@josefsson.org>
542
543         * modules/u64-tests: New file.
544         * tests/test-u64.c: New file.
545
546 2009-03-04  Simon Josefsson  <simon@josefsson.org>
547
548         * MODULES.html.sh: Mention u64.
549         * modules/u64: New module.
550         * modules/crypto/sha512: Depend on u64 module instead of providing
551         u64.h.
552
553 2009-03-27  Eric Blake  <ebb9@byu.net>
554
555         test-strerror: make debugging EAI_SYSTEM easier
556         * modules/getaddrinfo-tests (Depends-on): Add strerror.
557         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
558         failure was EAI_SYSTEM.
559
560 2009-03-25  Bruno Haible  <bruno@clisp.org>
561
562         Fix a problem with --enable-relocatable on Solaris 7.
563         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
564         since 2008-02-24.
565
566 2009-03-25  Eric Blake  <ebb9@byu.net>
567
568         test-sockets: avoid gcc warning
569         * tests/test-sockets.c (main): Silence compiler warning.
570
571 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
572
573         New modules nproc, pthread, contributed by Glen Lenker.
574
575         * MODULES.html.sh: Add pthread, nproc.
576         * lib/nproc.c: New file.
577         * lib/nproc.h: New file.
578         * lib/pthread.in.h: New file.
579         * m4/pthread.m4: New file.
580         * modules/nproc: New file.
581         * modules/pthread: New file.
582
583 2009-03-24  Simon Josefsson  <simon@josefsson.org>
584
585         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
586         New variable.
587
588 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
589
590         filevercmp: handle simple~ and numbered.~3~ backup suffixes
591         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
592         * tests/test-filevercmp.c: Add tests for backup suffixes.
593
594 2009-03-24  Simon Josefsson  <simon@josefsson.org>
595
596         * modules/stdlib (Depends-on): Add stdint, needed when defining
597         struct random_data on, for example, HP-UX 10.20.  Reported by
598         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
599
600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
601
602         * lib/readline.c (readline): Call fflush on stdout after printing
603         prompt.
604
605 2009-03-20  Bruno Haible  <bruno@clisp.org>
606
607         Remove dependency from 'close' module to -lws2_32 on native Windows.
608         * lib/close-hook.h: New file.
609         * lib/close-hook.c: New file.
610         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
611         w32sock.h.
612         (_gl_close_fd_maybe_socket): Remove function.
613         (rpl_close): Invoke execute_all_close_hooks instead of
614         _gl_close_fd_maybe_socket.
615         * lib/sockets.c: Include close-hook.h, w32sock.h.
616         (close_fd_maybe_socket): New function, essentially from lib/close.c.
617         (close_sockets_hook): New variable.
618         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
619         (gl_sockets_cleanup): Unregister it.
620         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
621         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
622         * modules/close-hook: New file.
623         * modules/close (Files): Remove lib/w32sock.h.
624         (Depends-on): Add close-hook.
625         (Link): Remove section.
626         * modules/sockets (Files): Add lib/w32sock.h.
627         (Depends-on): Add close-hook.
628         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
629         invocation.
630         * NEWS: Mention that LIB_CLOSE is gone.
631
632 2009-03-23  Eric Blake  <ebb9@byu.net>
633
634         signal-tests: test previous patch
635         * tests/test-signal.c: New file.
636         * modules/signal-tests: Likewise.
637
638         signal.h: always support 'volatile sig_atomic_t'
639         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
640         (gl_SIGNAL_H_DEFAULTS): Add a default.
641         * modules/signal (Makefile.am): Substitute if needed.
642         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
643         users can blindly add volatile.
644         * doc/posix-headers/signal.texi (signal.h): Document it.
645         Reported by Matthew Woehlke.
646
647 2009-03-23  Jim Meyering  <meyering@redhat.com>
648
649         pathmax: PATH_MAX: use pathconf only when available
650         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
651         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
652         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
653         This avoids a link failure in a PSP cross-compilation environment
654         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
655
656         * lib/vasnprintf.c (divide): Fix typo in comment.
657
658 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
659
660         * gnulib-tool (func_filter_filelist): Fix comment.
661
662 2009-03-20  Bruno Haible  <bruno@clisp.org>
663
664         Make sockets.h self-contained.
665         * lib/sockets.c: Include sockets.h first.
666         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
667
668 2009-03-19  Eric Blake  <ebb9@byu.net>
669
670         doc: mention more functions added in cygwin 1.7.0
671         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
672         addition.
673         * doc/posix-functions/log2f.texi: Likewise.
674
675 2009-03-19  Jim Meyering  <meyering@redhat.com>
676
677         fsusage: avoid syntax error due to statement-before-declaration
678         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
679         after all declarations.  Reported by Matthew Woehlke in
680         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
681
682 2009-03-18  Eric Blake  <ebb9@byu.net>
683
684         build-aux/compile: sync from automake
685         * build-aux/compile: New file, from automake.
686         * config/srclist.txt: Mention build-aux/compile.
687
688 2009-03-17  Bruno Haible  <bruno@clisp.org>
689
690         * lib/git-merge-changelog.c: Fix typo in comment.
691         Reported by Reuben Thomas <rrt@sc3d.org>.
692
693 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
694
695         * m4/regex.m4: update and improve help for
696         --without-included-regex.
697
698 2009-03-17  Simon Josefsson  <simon@josefsson.org>
699
700         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
701         failure on missing include files.
702
703 2009-03-17  Eric Blake  <ebb9@byu.net>
704
705         doc: mention more functions added in cygwin 1.7.0
706         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
707         addition.
708         * doc/posix-functions/fwscanf.texi: Likewise.
709         * doc/posix-functions/swprintf.texi: Likewise.
710         * doc/posix-functions/swscanf.texi: Likewise.
711         * doc/posix-functions/vfwprintf.texi: Likewise.
712         * doc/posix-functions/vfwscanf.texi: Likewise.
713         * doc/posix-functions/vswprintf.texi: Likewise.
714         * doc/posix-functions/vswscanf.texi: Likewise.
715         * doc/posix-functions/vwprintf.texi: Likewise.
716         * doc/posix-functions/vwscanf.texi: Likewise.
717         * doc/posix-functions/wcscasecmp.texi: Likewise.
718         * doc/posix-functions/wcsdup.texi: Likewise.
719         * doc/posix-functions/wcsftime.texi: Likewise.
720         * doc/posix-functions/wcsncasecmp.texi: Likewise.
721         * doc/posix-functions/wprintf.texi: Likewise.
722         * doc/posix-functions/wscanf.texi: Likewise.
723         * doc/glibc-functions/gethostbyname2.texi: Likewise.
724
725 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
726
727         maint.mk: really add $(AM_MAKEFLAGS)
728         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
729         was inadvertently omitted in the last commit.
730         Spotted by Bruno Haible.
731
732         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
733         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
734         $(AM_MAKEFLAGS)' rather than plain `make'.
735
736         gnulib-tool: execute $MAKE not make
737         * gnulib-tool: Default $MAKE to 'make'.
738         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
739         than make.  Initialize $MAKE in the do-autobuild script.
740
741         gnulib-tool: use $MAKE not make in generated files
742         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
743         make, in generated files.  Initialize $MAKE in the do-autobuild
744         script.
745
746         * top/GNUmakefile (_have-git-version-gen): Fix typo.
747
748         GNUmakefile: disable parallelism only for multiple, recursive targets
749         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
750         additions in the Makefile.
751         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
752         by Automake.
753         (.NOTPARALLEL): Only disable parallel builds if multiple targets
754         are listed on the command line and at least one of them is
755         listed in $(ALL_RECURSIVE_TARGETS).
756
757 2009-03-14  Bruno Haible  <bruno@clisp.org>
758
759         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
760         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
761         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
762         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
763         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
764         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
765         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
766         unistr/u8-uctomb.
767         * modules/unistr/u8-strchr (Depends-on): Likewise.
768         * modules/unistr/u8-strrchr (Depends-on): Likewise.
769         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
770         unistr/u16-uctomb.
771         * modules/unistr/u16-strchr (Depends-on): Likewise.
772         * modules/unistr/u16-strrchr (Depends-on): Likewise.
773
774 2009-03-12  Bruno Haible  <bruno@clisp.org>
775
776         Work around select() bug on Interix 3.5.
777         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
778         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
779         * m4/select.m4: New file.
780         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
781         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
782         * modules/select (Files): Add m4/select.m4.
783         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
784         * modules/nanosleep (Depends-on): Add select.
785         * modules/poll (Depends-on): Likewise.
786         * doc/posix-functions/select.texi: Mention the Interix bug.
787         Reported by Markus Duft <mduft@gentoo.org>.
788
789         * lib/select.c: Renamed from lib/winsock-select.c.
790         * modules/select (Files): Add lib/select.c, remove
791         lib/winsock-select.c.
792         (configure.ac): Update.
793
794 2009-03-12  Jim Meyering  <meyering@redhat.com>
795
796         avoid gcc warnings about unused macro definitions
797         * lib/readtokens.c (STREQ): Remove unused definition.
798         * lib/xmalloc.c (SIZE_MAX): Likewise.
799         * lib/openat-die.c (N_): Likewise.
800         * lib/mountlist.c (SIZE_MAX): Remove definition.
801         Instead, include <stdint.h>.
802         * lib/readutmp.c: Likewise.
803         * modules/readutmp (Depends-on): Add stdint.
804         * modules/mountlist (Depends-on): Add stdint.
805         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
806
807 2009-03-10  Bruno Haible  <bruno@clisp.org>
808
809         Tests for module 'mbmemcasecoll'.
810         * modules/mbmemcasecoll-tests: New file.
811         * tests/test-mbmemcasecoll1.sh: New file.
812         * tests/test-mbmemcasecoll2.sh: New file.
813         * tests/test-mbmemcasecoll3.sh: New file.
814         * tests/test-mbmemcasecoll.c: New file.
815
816         New module 'mbmemcasecoll'.
817         * lib/mbmemcasecoll.h: New file.
818         * lib/mbmemcasecoll.c: New file.
819         * modules/mbmemcasecoll: New file.
820
821         * tests/test-mbmemcasecmp.h: New file, extracted from
822         tests/test-mbmemcasecmp.c.
823         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
824         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
825         (main): Update.
826         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
827
828 2009-03-09  Bruno Haible  <bruno@clisp.org>
829
830         Tests for module 'mbmemcasecmp'.
831         * modules/mbmemcasecmp-tests: New file.
832         * tests/test-mbmemcasecmp1.sh: New file.
833         * tests/test-mbmemcasecmp2.sh: New file.
834         * tests/test-mbmemcasecmp3.sh: New file.
835         * tests/test-mbmemcasecmp.c: New file.
836
837         New module 'mbmemcasecmp'.
838         * lib/mbmemcasecmp.h: New file.
839         * lib/mbmemcasecmp.c: New file.
840         * modules/mbmemcasecmp: New file.
841
842 2009-03-09  Bruno Haible  <bruno@clisp.org>
843
844         Tests for module 'unicase/ulc-casecoll'.
845         * modules/unicase/ulc-casecoll-tests: New file.
846         * tests/unicase/test-ulc-casecoll1.sh: New file.
847         * tests/unicase/test-ulc-casecoll2.sh: New file.
848         * tests/unicase/test-ulc-casecoll.c: New file.
849
850         New module 'unicase/ulc-casecoll'.
851         * lib/unicase.h (ulc_casecoll): New declaration.
852         * lib/unicase/ulc-casecoll.c: New file.
853         * modules/unicase/ulc-casecoll: New file.
854
855         New module 'unicase/ulc-casexfrm'.
856         * lib/unicase.h (ulc_casexfrm): New declaration.
857         * lib/unicase/ulc-casexfrm.c: New file.
858         * modules/unicase/ulc-casexfrm: New file.
859
860 2009-03-09  Bruno Haible  <bruno@clisp.org>
861
862         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
863         invocations.
864
865         * m4/mbscasecmp.m4: Remove file.
866         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
867         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
868
869         * m4/mbscasestr.m4: Remove file.
870         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
871         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
872
873         * m4/mbschr.m4: Remove file.
874         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
875         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
876
877         * m4/mbscspn.m4: Remove file.
878         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
879         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
880
881         * m4/mbslen.m4: Remove file.
882         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
883         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
884
885         * m4/mbsncasecmp.m4: Remove file.
886         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
887         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
888
889         * m4/mbsnlen.m4: Remove file.
890         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
891         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
892
893         * m4/mbspbrk.m4: Remove file.
894         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
895         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
896
897         * m4/mbspcasecmp.m4: Remove file.
898         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
899         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
900
901         * m4/mbsrchr.m4: Remove file.
902         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
903         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
904
905         * m4/mbssep.m4: Remove file.
906         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
907         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
908
909         * m4/mbsspn.m4: Remove file.
910         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
911         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
912
913         * m4/mbsstr.m4: Remove file.
914         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
915         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
916
917         * m4/mbstok_r.m4: Remove file.
918         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
919         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
920
921         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
922
923         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
924         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
925
926         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
927
928 2009-03-08  Bruno Haible  <bruno@clisp.org>
929
930         Tests for module 'unicase/ulc-casecmp'.
931         * modules/unicase/ulc-casecmp-tests: New file.
932         * tests/unicase/test-ulc-casecmp1.sh: New file.
933         * tests/unicase/test-ulc-casecmp2.sh: New file.
934         * tests/unicase/test-ulc-casecmp.c: New file.
935
936         New module 'unicase/ulc-casecmp'.
937         * lib/unicase.h (ulc_casecmp): New declaration.
938         * lib/unicase/ulc-casecmp.c: New file.
939         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
940         'const SRC_UNIT *'.
941         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
942         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
943         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
944         * modules/unicase/ulc-casecmp: New file.
945
946         Tests for module 'unicase/u32-is-cased'.
947         * modules/unicase/u32-is-cased-tests: New file.
948         * tests/unicase/test-u32-is-cased.c: New file.
949
950         Tests for module 'unicase/u16-is-cased'.
951         * modules/unicase/u16-is-cased-tests: New file.
952         * tests/unicase/test-u16-is-cased.c: New file.
953
954         Tests for module 'unicase/u8-is-cased'.
955         * modules/unicase/u8-is-cased-tests: New file.
956         * tests/unicase/test-u8-is-cased.c: New file.
957         * tests/unicase/test-is-cased.h: New file.
958
959         New module 'unicase/u32-is-cased'.
960         * lib/unicase/u32-is-cased.c: New file.
961         * modules/unicase/u32-is-cased: New file.
962
963         New module 'unicase/u16-is-cased'.
964         * lib/unicase/u16-is-cased.c: New file.
965         * modules/unicase/u16-is-cased: New file.
966
967         New module 'unicase/u8-is-cased'.
968         * lib/unicase/u8-is-cased.c: New file.
969         * lib/unicase/u-is-cased.h: New file.
970         * modules/unicase/u8-is-cased: New file.
971
972         Tests for module 'unicase/u32-is-casefolded'.
973         * modules/unicase/u32-is-casefolded-tests: New file.
974         * tests/unicase/test-u32-is-casefolded.c: New file.
975
976         Tests for module 'unicase/u16-is-casefolded'.
977         * modules/unicase/u16-is-casefolded-tests: New file.
978         * tests/unicase/test-u16-is-casefolded.c: New file.
979
980         Tests for module 'unicase/u8-is-casefolded'.
981         * modules/unicase/u8-is-casefolded-tests: New file.
982         * tests/unicase/test-u8-is-casefolded.c: New file.
983         * tests/unicase/test-is-casefolded.h: New file.
984
985         New module 'unicase/u32-is-casefolded'.
986         * lib/unicase/u32-is-casefolded.c: New file.
987         * modules/unicase/u32-is-casefolded: New file.
988
989         New module 'unicase/u16-is-casefolded'.
990         * lib/unicase/u16-is-casefolded.c: New file.
991         * modules/unicase/u16-is-casefolded: New file.
992
993         New module 'unicase/u8-is-casefolded'.
994         * lib/unicase/u8-is-casefolded.c: New file.
995         * modules/unicase/u8-is-casefolded: New file.
996
997         Tests for module 'unicase/u32-is-titlecase'.
998         * modules/unicase/u32-is-titlecase-tests: New file.
999         * tests/unicase/test-u32-is-titlecase.c: New file.
1000
1001         Tests for module 'unicase/u16-is-titlecase'.
1002         * modules/unicase/u16-is-titlecase-tests: New file.
1003         * tests/unicase/test-u16-is-titlecase.c: New file.
1004
1005         Tests for module 'unicase/u8-is-titlecase'.
1006         * modules/unicase/u8-is-titlecase-tests: New file.
1007         * tests/unicase/test-u8-is-titlecase.c: New file.
1008         * tests/unicase/test-is-titlecase.h: New file.
1009
1010         New module 'unicase/u32-is-titlecase'.
1011         * lib/unicase/u32-is-titlecase.c: New file.
1012         * modules/unicase/u32-is-titlecase: New file.
1013
1014         New module 'unicase/u16-is-titlecase'.
1015         * lib/unicase/u16-is-titlecase.c: New file.
1016         * modules/unicase/u16-is-titlecase: New file.
1017
1018         New module 'unicase/u8-is-titlecase'.
1019         * lib/unicase/u8-is-titlecase.c: New file.
1020         * modules/unicase/u8-is-titlecase: New file.
1021
1022         Tests for module 'unicase/u32-is-lowercase'.
1023         * modules/unicase/u32-is-lowercase-tests: New file.
1024         * tests/unicase/test-u32-is-lowercase.c: New file.
1025
1026         Tests for module 'unicase/u16-is-lowercase'.
1027         * modules/unicase/u16-is-lowercase-tests: New file.
1028         * tests/unicase/test-u16-is-lowercase.c: New file.
1029
1030         Tests for module 'unicase/u8-is-lowercase'.
1031         * modules/unicase/u8-is-lowercase-tests: New file.
1032         * tests/unicase/test-u8-is-lowercase.c: New file.
1033         * tests/unicase/test-is-lowercase.h: New file.
1034
1035         New module 'unicase/u32-is-lowercase'.
1036         * lib/unicase/u32-is-lowercase.c: New file.
1037         * modules/unicase/u32-is-lowercase: New file.
1038
1039         New module 'unicase/u16-is-lowercase'.
1040         * lib/unicase/u16-is-lowercase.c: New file.
1041         * modules/unicase/u16-is-lowercase: New file.
1042
1043         New module 'unicase/u8-is-lowercase'.
1044         * lib/unicase/u8-is-lowercase.c: New file.
1045         * modules/unicase/u8-is-lowercase: New file.
1046
1047         Tests for module 'unicase/u32-is-uppercase'.
1048         * modules/unicase/u32-is-uppercase-tests: New file.
1049         * tests/unicase/test-u32-is-uppercase.c: New file.
1050
1051         Tests for module 'unicase/u16-is-uppercase'.
1052         * modules/unicase/u16-is-uppercase-tests: New file.
1053         * tests/unicase/test-u16-is-uppercase.c: New file.
1054
1055         Tests for module 'unicase/u8-is-uppercase'.
1056         * modules/unicase/u8-is-uppercase-tests: New file.
1057         * tests/unicase/test-u8-is-uppercase.c: New file.
1058         * tests/unicase/test-is-uppercase.h: New file.
1059
1060         New module 'unicase/u32-is-uppercase'.
1061         * lib/unicase/u32-is-uppercase.c: New file.
1062         * modules/unicase/u32-is-uppercase: New file.
1063
1064         New module 'unicase/u16-is-uppercase'.
1065         * lib/unicase/u16-is-uppercase.c: New file.
1066         * modules/unicase/u16-is-uppercase: New file.
1067
1068         New module 'unicase/u8-is-uppercase'.
1069         * lib/unicase/u8-is-uppercase.c: New file.
1070         * modules/unicase/u8-is-uppercase: New file.
1071
1072         New module 'unicase/u32-is-invariant'.
1073         * lib/unicase/u32-is-invariant.c: New file.
1074         * modules/unicase/u32-is-invariant: New file.
1075
1076         New module 'unicase/u16-is-invariant'.
1077         * lib/unicase/u16-is-invariant.c: New file.
1078         * modules/unicase/u16-is-invariant: New file.
1079
1080         New module 'unicase/u8-is-invariant'.
1081         * lib/unicase/u8-is-invariant.c: New file.
1082         * lib/unicase/invariant.h: New file.
1083         * lib/unicase/u-is-invariant.h: New file.
1084         * modules/unicase/u8-is-invariant: New file.
1085
1086         Tests for module 'unicase/u32-casecoll'.
1087         * modules/unicase/u32-casecoll-tests: New file.
1088         * tests/unicase/test-u32-casecoll.c: New file.
1089
1090         Tests for module 'unicase/u16-casecoll'.
1091         * modules/unicase/u16-casecoll-tests: New file.
1092         * tests/unicase/test-u16-casecoll.c: New file.
1093
1094         Tests for module 'unicase/u8-casecoll'.
1095         * modules/unicase/u8-casecoll-tests: New file.
1096         * tests/unicase/test-u8-casecoll.c: New file.
1097
1098         New module 'unicase/u32-casecoll'.
1099         * lib/unicase/u32-casecoll.c: New file.
1100         * modules/unicase/u32-casecoll: New file.
1101
1102         New module 'unicase/u16-casecoll'.
1103         * lib/unicase/u16-casecoll.c: New file.
1104         * modules/unicase/u16-casecoll: New file.
1105
1106         New module 'unicase/u8-casecoll'.
1107         * lib/unicase/u8-casecoll.c: New file.
1108         * lib/unicase/u-casecoll.h: New file.
1109         * modules/unicase/u8-casecoll: New file.
1110
1111         New module 'unicase/u32-casexfrm'.
1112         * lib/unicase/u32-casexfrm.c: New file.
1113         * modules/unicase/u32-casexfrm: New file.
1114
1115         New module 'unicase/u16-casexfrm'.
1116         * lib/unicase/u16-casexfrm.c: New file.
1117         * modules/unicase/u16-casexfrm: New file.
1118
1119         New module 'unicase/u8-casexfrm'.
1120         * lib/unicase/u8-casexfrm.c: New file.
1121         * lib/unicase/u-casexfrm.h: New file.
1122         * modules/unicase/u8-casexfrm: New file.
1123
1124         Tests for module 'unicase/u32-casecmp'.
1125         * modules/unicase/u32-casecmp-tests: New file.
1126         * tests/unicase/test-u32-casecmp.c: New file.
1127
1128         Tests for module 'unicase/u16-casecmp'.
1129         * modules/unicase/u16-casecmp-tests: New file.
1130         * tests/unicase/test-u16-casecmp.c: New file.
1131
1132         Tests for module 'unicase/u8-casecmp'.
1133         * modules/unicase/u8-casecmp-tests: New file.
1134         * tests/unicase/test-u8-casecmp.c: New file.
1135         * tests/unicase/test-casecmp.h: New file.
1136
1137         New module 'unicase/u32-casecmp'.
1138         * lib/unicase/u32-casecmp.c: New file.
1139         * modules/unicase/u32-casecmp: New file.
1140
1141         New module 'unicase/u16-casecmp'.
1142         * lib/unicase/u16-casecmp.c: New file.
1143         * modules/unicase/u16-casecmp: New file.
1144
1145         New module 'unicase/u8-casecmp'.
1146         * lib/unicase/u8-casecmp.c: New file.
1147         * lib/unicase/u-casecmp.h: New file.
1148         * modules/unicase/u8-casecmp: New file.
1149
1150         Tests for module 'unicase/u32-casefold'.
1151         * modules/unicase/u32-casefold-tests: New file.
1152         * tests/unicase/test-u32-casefold.c: New file.
1153
1154         Tests for module 'unicase/u16-casefold'.
1155         * modules/unicase/u16-casefold-tests: New file.
1156         * tests/unicase/test-u16-casefold.c: New file.
1157
1158         Tests for module 'unicase/u8-casefold'.
1159         * modules/unicase/u8-casefold-tests: New file.
1160         * tests/unicase/test-u8-casefold.c: New file.
1161
1162         New module 'unicase/u32-casefold'.
1163         * lib/unicase/u32-casefold.c: New file.
1164         * modules/unicase/u32-casefold: New file.
1165
1166         New module 'unicase/u16-casefold'.
1167         * lib/unicase/u16-casefold.c: New file.
1168         * modules/unicase/u16-casefold: New file.
1169
1170         New module 'unicase/u8-casefold'.
1171         * lib/unicase/u8-casefold.c: New file.
1172         * lib/unicase/u-casefold.h: New file.
1173         * modules/unicase/u8-casefold: New file.
1174
1175         New module 'unicase/tocasefold'.
1176         * lib/unicase/casefold.h: New file.
1177         * lib/unicase/tocasefold.c: New file.
1178         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
1179         * modules/unicase/tocasefold: New file.
1180
1181         Tests for module 'unicase/u32-totitle'.
1182         * modules/unicase/u32-totitle-tests: New file.
1183         * tests/unicase/test-u32-totitle.c: New file.
1184
1185         Tests for module 'unicase/u16-totitle'.
1186         * modules/unicase/u16-totitle-tests: New file.
1187         * tests/unicase/test-u16-totitle.c: New file.
1188
1189         Tests for module 'unicase/u8-totitle'.
1190         * modules/unicase/u8-totitle-tests: New file.
1191         * tests/unicase/test-u8-totitle.c: New file.
1192
1193         New module 'unicase/u32-totitle'.
1194         * lib/unicase/u32-totitle.c: New file.
1195         * modules/unicase/u32-totitle: New file.
1196
1197         New module 'unicase/u16-totitle'.
1198         * lib/unicase/u16-totitle.c: New file.
1199         * modules/unicase/u16-totitle: New file.
1200
1201         New module 'unicase/u8-totitle'.
1202         * lib/unicase/u8-totitle.c: New file.
1203         * lib/unicase/u-totitle.h: New file.
1204         * modules/unicase/u8-totitle: New file.
1205
1206         Tests for module 'unicase/u32-tolower'.
1207         * modules/unicase/u32-tolower-tests: New file.
1208         * tests/unicase/test-u32-tolower.c: New file.
1209
1210         Tests for module 'unicase/u16-tolower'.
1211         * modules/unicase/u16-tolower-tests: New file.
1212         * tests/unicase/test-u16-tolower.c: New file.
1213
1214         Tests for module 'unicase/u8-tolower'.
1215         * modules/unicase/u8-tolower-tests: New file.
1216         * tests/unicase/test-u8-tolower.c: New file.
1217
1218         New module 'unicase/u32-tolower'.
1219         * lib/unicase/u32-tolower.c: New file.
1220         * modules/unicase/u32-tolower: New file.
1221
1222         New module 'unicase/u16-tolower'.
1223         * lib/unicase/u16-tolower.c: New file.
1224         * modules/unicase/u16-tolower: New file.
1225
1226         New module 'unicase/u8-tolower'.
1227         * lib/unicase/u8-tolower.c: New file.
1228         * modules/unicase/u8-tolower: New file.
1229
1230         Tests for module 'unicase/u32-toupper'.
1231         * modules/unicase/u32-toupper-tests: New file.
1232         * tests/unicase/test-u32-toupper.c: New file.
1233
1234         Tests for module 'unicase/u16-toupper'.
1235         * modules/unicase/u16-toupper-tests: New file.
1236         * tests/unicase/test-u16-toupper.c: New file.
1237
1238         Tests for module 'unicase/u8-toupper'.
1239         * modules/unicase/u8-toupper-tests: New file.
1240         * tests/unicase/test-u8-toupper.c: New file.
1241
1242         New module 'unicase/u32-toupper'.
1243         * lib/unicase/u32-toupper.c: New file.
1244         * modules/unicase/u32-toupper: New file.
1245
1246         New module 'unicase/u16-toupper'.
1247         * lib/unicase/u16-toupper.c: New file.
1248         * modules/unicase/u16-toupper: New file.
1249
1250         New module 'unicase/u8-toupper'.
1251         * lib/unicase/u8-toupper.c: New file.
1252         * modules/unicase/u8-toupper: New file.
1253
1254         New module 'unicase/u32-casemap'.
1255         * lib/unicase/u32-casemap.c: New file.
1256         * modules/unicase/u32-casemap: New file.
1257
1258         New module 'unicase/u16-casemap'.
1259         * lib/unicase/u16-casemap.c: New file.
1260         * modules/unicase/u16-casemap: New file.
1261
1262         New module 'unicase/u8-casemap'.
1263         * lib/unicase/unicasemap.h: New file.
1264         * lib/unicase/u8-casemap.c: New file.
1265         * lib/unicase/u-casemap.h: New file.
1266         * modules/unicase/u8-casemap: New file.
1267
1268         New module 'unicase/special-casing'.
1269         * lib/unicase/special-casing.h: New file.
1270         * lib/unicase/special-casing.c: New file.
1271         * lib/unicase/special-casing-table.gperf: New file, generated by
1272         gen-uni-tables.c.
1273         * modules/unicase/special-casing: New file.
1274
1275         Tests for module 'unicase/locale-language'.
1276         * modules/unicase/locale-language-tests: New file.
1277         * tests/unicase/test-locale-language.sh: New file.
1278         * tests/unicase/test-locale-language.c: New file.
1279
1280         New module 'unicase/locale-language'.
1281         * lib/unicase/locale-language.c: New file.
1282         * lib/unicase/locale-languages.gperf: New file.
1283         * modules/unicase/locale-language: New file.
1284
1285         Generate more tables for case conversion and case folding.
1286         * lib/gen-uni-tables.c (SCC_*): New enum items.
1287         (struct special_casing_rule): New type.
1288         (casing_rules, num_casing_rules, allocated_casing_rules): New
1289         variables.
1290         (add_casing_rule, fill_casing_rules): New functions.
1291         (struct casefold_rule): New type.
1292         (casefolding_rules, num_casefolding_rules,
1293         allocated_casefolding_rules): New variables.
1294         (fill_casefolding_rules): New function.
1295         (unicode_casefold): New variable.
1296         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
1297         sort_casing_rules, output_casing_rules): New functions.
1298         (main): Accept to more arguments: SpecialCasing.txt and
1299         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
1300         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
1301         Output mapping for casefolding.
1302
1303         * lib/unicase.h: Include stdbool.h, uninorm.h.
1304         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
1305         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
1306         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
1307         arguments.
1308         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
1309         resultp arguments.
1310         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
1311         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
1312         resultp arguments.
1313         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
1314         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
1315         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
1316         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
1317         declarations.
1318         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
1319
1320 2009-03-08  Bruno Haible  <bruno@clisp.org>
1321
1322         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1323         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
1324         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
1325         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1326
1327 2009-03-07  Bruno Haible  <bruno@clisp.org>
1328
1329         Adjust u*_normcmp, u*_normcoll API.
1330         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1331         u16_normcoll, u32_normcoll): Change failure conventions.
1332         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
1333         errno and return -1.
1334         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1335
1336 2009-03-07  Bruno Haible  <bruno@clisp.org>
1337
1338         Tests for module 'uninorm/u32-normcoll'.
1339         * modules/uninorm/u32-normcoll-tests: New file.
1340         * tests/uninorm/test-u32-normcoll.c: New file.
1341
1342         Tests for module 'uninorm/u16-normcoll'.
1343         * modules/uninorm/u16-normcoll-tests: New file.
1344         * tests/uninorm/test-u16-normcoll.c: New file.
1345
1346         Tests for module 'uninorm/u8-normcoll'.
1347         * modules/uninorm/u8-normcoll-tests: New file.
1348         * tests/uninorm/test-u8-normcoll.c: New file.
1349
1350 2009-03-07  Bruno Haible  <bruno@clisp.org>
1351
1352         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
1353         tests/uninorm/test-u32-normcmp.c.
1354         * tests/uninorm/test-u32-normcmp.c: Include it.
1355         (test_nonascii): New function, extracted from main. Add some more
1356         tests.
1357         (main): Invoke test_ascii and test_nonascii.
1358         * modules/uninorm/u32-normcmp-tests (Files): Add
1359         tests/uninorm/test-u32-normcmp.h.
1360         (Depends-on): Remove uninorm/u32-normcmp.
1361
1362         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
1363         tests/uninorm/test-u16-normcmp.c.
1364         * tests/uninorm/test-u16-normcmp.c: Include it.
1365         (test_nonascii): New function, extracted from main. Add some more
1366         tests.
1367         (main): Invoke test_ascii and test_nonascii.
1368         * modules/uninorm/u16-normcmp-tests (Files): Add
1369         tests/uninorm/test-u16-normcmp.h.
1370         (Depends-on): Remove uninorm/u16-normcmp.
1371
1372         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
1373         tests/uninorm/test-u8-normcmp.c.
1374         * tests/uninorm/test-u8-normcmp.c: Include it.
1375         (test_nonascii): New function, extracted from main. Add some more
1376         tests.
1377         (main): Invoke test_ascii and test_nonascii.
1378         * modules/uninorm/u8-normcmp-tests (Files): Add
1379         tests/uninorm/test-u8-normcmp.h.
1380         (Depends-on): Remove uninorm/u8-normcmp.
1381
1382 2009-03-07  Bruno Haible  <bruno@clisp.org>
1383
1384         New module 'uninorm/u32-normcoll'.
1385         * lib/uninorm/u32-normcoll.c: New file.
1386         * modules/uninorm/u32-normcoll: New file.
1387
1388         New module 'uninorm/u16-normcoll'.
1389         * lib/uninorm/u16-normcoll.c: New file.
1390         * modules/uninorm/u16-normcoll: New file.
1391
1392         New module 'uninorm/u8-normcoll'.
1393         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
1394         declarations.
1395         * lib/uninorm/u8-normcoll.c: New file.
1396         * lib/uninorm/u-normcoll.h: New file.
1397         * modules/uninorm/u8-normcoll: New file.
1398
1399         New module 'uninorm/u32-normxfrm'.
1400         * lib/uninorm/u32-normxfrm.c: New file.
1401         * modules/uninorm/u32-normxfrm: New file.
1402
1403         New module 'uninorm/u16-normxfrm'.
1404         * lib/uninorm/u16-normxfrm.c: New file.
1405         * modules/uninorm/u16-normxfrm: New file.
1406
1407         New module 'uninorm/u8-normxfrm'.
1408         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
1409         declarations.
1410         * lib/uninorm/u8-normxfrm.c: New file.
1411         * lib/uninorm/u-normxfrm.h: New file.
1412         * modules/uninorm/u8-normxfrm: New file.
1413
1414 2009-03-07  Bruno Haible  <bruno@clisp.org>
1415
1416         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
1417         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
1418         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
1419
1420 2009-03-07  Bruno Haible  <bruno@clisp.org>
1421
1422         New module 'memxfrm'.
1423         * lib/memxfrm.h: New file.
1424         * lib/memxfrm.c: New file.
1425         * modules/memxfrm: New file.
1426
1427 2009-03-07  Bruno Haible  <bruno@clisp.org>
1428
1429         New module 'memcmp2'.
1430         * lib/memcmp2.h: New file.
1431         * lib/memcmp2.c: New file.
1432         * modules/memcmp2: New file.
1433
1434 2009-03-07  Bruno Haible  <bruno@clisp.org>
1435
1436         Tests for module 'uninorm/decomposing-form'.
1437         * modules/uninorm/decomposing-form-tests: New file.
1438         * tests/uninorm/test-decomposing-form.c: New file.
1439
1440         New module 'uninorm/decomposing-form'.
1441         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
1442         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
1443         Add 'decomposing_variant' field.
1444         * lib/uninorm/decomposing-form.c: New file.
1445         * lib/uninorm/nfc.c (uninorm_nfc): Update.
1446         * lib/uninorm/nfd.c (uninorm_nfd): Update.
1447         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
1448         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
1449         * modules/uninorm/decomposing-form: New file.
1450         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
1451         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
1452
1453 2009-03-07  Bruno Haible  <bruno@clisp.org>
1454
1455         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
1456         strings.
1457
1458 2009-03-06  Bruno Haible  <bruno@clisp.org>
1459
1460         Tests for module 'uninorm/u32-normcmp'.
1461         * tests/uninorm/test-u32-normcmp.c: New file.
1462         * modules/uninorm/u32-normcmp-tests: New file.
1463
1464         Tests for module 'uninorm/u16-normcmp'.
1465         * tests/uninorm/test-u16-normcmp.c: New file.
1466         * modules/uninorm/u16-normcmp-tests: New file.
1467
1468         Tests for module 'uninorm/u8-normcmp'.
1469         * tests/uninorm/test-u8-normcmp.c: New file.
1470         * modules/uninorm/u8-normcmp-tests: New file.
1471
1472         New module 'uninorm/u32-normcmp'.
1473         * lib/uninorm/u32-normcmp.c: New file.
1474         * modules/uninorm/u32-normcmp: New file.
1475
1476         New module 'uninorm/u16-normcmp'.
1477         * lib/uninorm/u16-normcmp.c: New file.
1478         * modules/uninorm/u16-normcmp: New file.
1479
1480         New module 'uninorm/u8-normcmp'.
1481         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
1482         declarations.
1483         * lib/uninorm/u8-normcmp.c: New file.
1484         * lib/uninorm/u-normcmp.h: New file.
1485         * modules/uninorm/u8-normcmp: New file.
1486
1487 2009-03-06  Bruno Haible  <bruno@clisp.org>
1488
1489         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
1490         Reported by Eric Blake.
1491
1492 2009-03-06  Eric Blake  <ebb9@byu.net>
1493             Bruno Haible  <bruno@clisp.org>
1494
1495         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
1496         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
1497         condition.
1498         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1499         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
1500         condition.
1501         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1502
1503 2009-03-06  Eric Blake  <ebb9@byu.net>
1504
1505         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
1506         to avoid compiler warnings.
1507         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
1508
1509 2009-03-05  Bruno Haible  <bruno@clisp.org>
1510
1511         * tests/test-ftell.c (main): Disable test beyond end of file on
1512         FreeMiNT.
1513         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1514
1515 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
1516
1517         * lib/filevercmp.c: Move hidden files up in ordering.
1518         * tests/test-filevercmp.c: Add tests for hidden files.
1519
1520 2009-03-04  Bruno Haible  <bruno@clisp.org>
1521
1522         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
1523         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
1524         AM_CFLAGS.
1525         Reported by Simon Josefsson.
1526
1527 2009-03-03  Bruno Haible  <bruno@clisp.org>
1528
1529         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
1530         Reported by Simon Josefsson.
1531
1532         * doc/ld-version-script.texi: Update node reference.
1533
1534 2009-03-03  Bruno Haible  <bruno@clisp.org>
1535
1536         * modules/visibility (License): Change to 'unlimited'.
1537         Suggested by Simon Josefsson.
1538
1539 2009-03-03  Jim Meyering  <meyering@redhat.com>
1540
1541         unlinkdir: cannot_unlink_dir may modify process state
1542         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
1543         it's neither thread-safe nor appropriate for use in a library.
1544
1545 2009-03-03  Eric Blake  <ebb9@byu.net>
1546
1547         test-closein: silence test under Darwin
1548         * tests/test-closein.sh: Ignore stderr from cat, since we don't
1549         care if it dies from EPIPE or EBADF.
1550
1551 2009-03-03  Bruno Haible  <bruno@clisp.org>
1552
1553         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1554         earlier.
1555         * doc/visibility.texi: Fix @node and @section.
1556
1557 2009-03-03  Simon Josefsson  <simon@josefsson.org>
1558
1559         * doc/gnulib.texi: Link to sections for ld version script and
1560         visibility.
1561         * doc/visibility.texi: Add @node and @section.
1562         * modules/ld-version-script: New module.
1563         * m4/ld-version-script.m4: New file.
1564         * doc/ld-version-script.texi: New file.
1565
1566 2009-03-02  David Lutterkort  <lutter@redhat.com>
1567
1568         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1570
1571 2009-03-02  Bruno Haible  <bruno@clisp.org>
1572
1573         * doc/visibility.texi: Mention libtool's -export-symbols option.
1574
1575 2009-03-02  Jim Meyering  <meyering@redhat.com>
1576
1577         announce-gen: new option: --no-print-checksums
1578         * build-aux/announce-gen (usage): Describe it.
1579         (print_checksums): Print a newline here, not in the [*] footnote.
1580         (main): Honor it.
1581
1582 2009-03-01  Bruno Haible  <bruno@clisp.org>
1583
1584         Use socklen_t in the native Windows replacements prototypes.
1585         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1586         instead of 'int'.
1587         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1588         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1589         * modules/getsockopt (Depends-on): Add socklen.
1590         * modules/setsockopt (Depends-on): Add socklen.
1591
1592 2009-03-01  Bruno Haible  <bruno@clisp.org>
1593
1594         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1595         least 4.2.
1596
1597 2009-03-01  Eric Blake  <ebb9@byu.net>
1598             Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1601         error messages.
1602         * lib/wait-process.c (wait_subprocess): Omit error message about
1603         deadly signal sent to the child of termsigp != NULL.
1604
1605 2009-03-01  Eric Blake  <ebb9@byu.net>
1606
1607         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1608
1609 2009-03-01  Bruno Haible  <bruno@clisp.org>
1610
1611         Avoid a gcc warning.
1612         * tests/test-sched.c (b): Make global.
1613         Reported by Eric Blake.
1614
1615 2009-01-19  Martin Lambers  <marlam@marlam.de>
1616
1617         Provide POSIX semantics for socket timeout options on W32.
1618         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1619         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1620         * modules/setsockopt: Depend on sys_time module for struct timeval.
1621         * modules/getsockopt: Depend on sys_time module for struct timeval.
1622
1623 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1624
1625         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1626         __USE_GNU, for consistency with netdb.in.h.
1627         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1628
1629 2009-03-01  Bruno Haible  <bruno@clisp.org>
1630
1631         More support for FreeMiNT.
1632         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1634
1635 2009-03-01  Bruno Haible  <bruno@clisp.org>
1636
1637         More support for FreeMiNT.
1638         * lib/fpurge.c (fpurge): Correct last commit.
1639         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1640
1641 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1642
1643         Fix unportable awk script in vc-list-files.
1644         * build-aux/vc-list-files: In the replacement awk script, use
1645         substr with a second argument of 1, not zero.
1646         Report by Simon Josefsson.
1647
1648 2009-02-28  Bruno Haible  <bruno@clisp.org>
1649
1650         More support for FreeMiNT.
1651         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1652         to FreeMiNT today.
1653         * lib/fwriting.c (fwriting): Likewise.
1654         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1655
1656 2009-02-28  Bruno Haible  <bruno@clisp.org>
1657
1658         * tests/test-freadseek.c (main): Disable test beyond end of file on
1659         FreeMiNT.
1660         * tests/test-ftello.c (main): Likewise.
1661         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1662
1663 2009-02-28  Bruno Haible  <bruno@clisp.org>
1664
1665         Add tentative support for FreeMiNT.
1666         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1667         * lib/fpurge.c (fpurge): Likewise.
1668         * lib/freadable.c (freadable): Likewise.
1669         * lib/freading.c (freading): Likewise.
1670         * lib/freadptr.c (freadptr): Likewise.
1671         * lib/freadseek.c (freadptrinc): Likewise.
1672         * lib/fseeko.c (rpl_fseeko): Likewise.
1673         * lib/fseterr.c (fseterr): Likewise.
1674         * lib/fwritable.c (fwritable): Likewise.
1675         * lib/fwriting.c (fwriting): Likewise.
1676         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1677         Hourihane.
1678         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1679
1680 2009-02-28  Bruno Haible  <bruno@clisp.org>
1681
1682         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1683         SIGCHLD.
1684         Reported by Jim Meyering.
1685
1686 2009-02-28  Bruno Haible  <bruno@clisp.org>
1687
1688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1689         Mention the results of these tests on various platforms.
1690         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1691         order.
1692         * doc/posix-functions/printf.texi: Likewise.
1693         * doc/posix-functions/snprintf.texi: Likewise.
1694         * doc/posix-functions/sprintf.texi: Likewise.
1695         * doc/posix-functions/vfprintf.texi: Likewise.
1696         * doc/posix-functions/vprintf.texi: Likewise.
1697         * doc/posix-functions/vsnprintf.texi: Likewise.
1698         * doc/posix-functions/vsprintf.texi: Likewise.
1699         * doc/glibc-functions/obstack_printf.texi: Likewise.
1700         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1701
1702 2009-02-28  Bruno Haible  <bruno@clisp.org>
1703
1704         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1705         Reported by Loïc Minier <lool@dooz.org>.
1706
1707 2009-02-27  Bruno Haible  <bruno@clisp.org>
1708
1709         * gnulib-tool (func_import): Make the sed expression used to create the
1710         sed script for updating the .gitignore file POSIX compliant.
1711         Reported by Eric Blake.
1712
1713 2009-02-27  Bruno Haible  <bruno@clisp.org>
1714
1715         * gnulib-tool (sed): Don't alias as "sed --posix".
1716         Reported by Eric Blake.
1717
1718 2009-02-27  Bruno Haible  <bruno@clisp.org>
1719
1720         Avoid test link errors.
1721         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1722         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1723         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1724         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1726
1727 2009-02-27  Bruno Haible  <bruno@clisp.org>
1728
1729         Avoid spurious "(cached)" in configure output.
1730         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1732         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1733         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1735         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1736         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1737         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1738         Reported by Eric Blake.
1739
1740 2009-02-27  Eric Blake  <ebb9@byu.net>
1741
1742         printf: fix regression in previous patch
1743         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1744
1745 2009-02-27  Bruno Haible  <bruno@clisp.org>
1746
1747         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1748         value.
1749         * lib/stdint.in.h: Likewise.
1750         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1751
1752 2009-02-27  Eric Blake  <ebb9@byu.net>
1753
1754         doc: mention more functions added in cygwin 1.7.0
1755         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1756         addition.
1757         * doc/posix-functions/open_wmemstream.texi: Likewise.
1758         * doc/posix-functions/wcsnlen.texi: Likewise.
1759         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1760         * doc/posix-functions/wcstod.texi: Likewise.
1761         * doc/posix-functions/wcstof.texi: Likewise.
1762         * doc/posix-functions/wcstoimax.texi: Likewise.
1763         * doc/posix-functions/wcstok.texi: Likewise.
1764         * doc/posix-functions/wcstoumax.texi: Likewise.
1765
1766         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1768         * doc/posix-functions/fprintf.texi: Update.
1769         * doc/posix-functions/printf.texi: Update.
1770         * doc/posix-functions/snprintf.texi: Update.
1771         * doc/posix-functions/sprintf.texi: Update.
1772         * doc/posix-functions/vfprintf.texi: Update.
1773         * doc/posix-functions/vprintf.texi: Update.
1774         * doc/posix-functions/vsnprintf.texi: Update.
1775         * doc/posix-functions/vsprintf.texi: Update.
1776         * doc/glibc-functions/obstack_printf.texi: Update.
1777         * doc/glibc-functions/obstack_vprintf.texi: Update.
1778
1779 2009-02-26  Eric Blake  <ebb9@byu.net>
1780
1781         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1782         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1783         compilation bug by using runtime conversion.
1784         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1785         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1786         * modules/ceill-tests (Files): Use nan.h.
1787         * modules/floorl-tests (Files): Likewise.
1788         * modules/frexpl-tests (Files): Likewise.
1789         * modules/isnanl-tests (Files): Likewise.
1790         * modules/ldexpl-tests (Files): Likewise.
1791         * modules/roundl-tests (Files): Likewise.
1792         * modules/truncl-tests (Files): Likewise.
1793         * tests/test-ceill.c (main): Use a working NaN.
1794         * tests/test-floorl.c (main): Likewise.
1795         * tests/test-frexpl.c (main): Likewise.
1796         * tests/test-isnan.c (test_long_double): Likewise.
1797         * tests/test-isnanl.h (main): Likewise.
1798         * tests/test-ldexpl.h (main): Likewise.
1799         * tests/test-roundl.h (main): Likewise.
1800         * tests/test-truncl.h (main): Likewise.
1801         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1802
1803 2009-02-26  Eric Blake  <ebb9@byu.net>
1804             Bruno Haible  <bruno@clisp.org>
1805
1806         Work around a *printf bug with %ls on Solaris.
1807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1808         precision is specified, sprintf stops converting the wide string
1809         argument when the number of bytes that have been produced by this
1810         conversion equals or exceeds the precision.
1811         * doc/posix-functions/fprintf.texi: Update.
1812         * doc/posix-functions/printf.texi: Update.
1813         * doc/posix-functions/snprintf.texi: Update.
1814         * doc/posix-functions/sprintf.texi: Update.
1815         * doc/posix-functions/vfprintf.texi: Update.
1816         * doc/posix-functions/vprintf.texi: Update.
1817         * doc/posix-functions/vsnprintf.texi: Update.
1818         * doc/posix-functions/vsprintf.texi: Update.
1819         * doc/glibc-functions/obstack_printf.texi: Update.
1820         * doc/glibc-functions/obstack_vprintf.texi: Update.
1821
1822 2009-02-26  Eric Blake  <ebb9@byu.net>
1823
1824         stdlib: favor compiler check of random.h
1825         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1826         to avoid an ObjC random.h installed by Swarm.
1827
1828 2009-02-26  Bruno Haible  <bruno@clisp.org>
1829
1830         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1831         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1832         Reported by Gary V. Vaughan <gary@gnu.org>.
1833
1834 2009-02-26  Bruno Haible  <bruno@clisp.org>
1835
1836         Fix *printf behaviour regarding the %ls directive.
1837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1838         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1839         NEED_PRINTF_DIRECTIVE_LS.
1840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1841         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1843         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1844         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1845         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1846         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1851         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1855         * doc/posix-functions/fprintf.texi: Update.
1856         * doc/posix-functions/printf.texi: Update.
1857         * doc/posix-functions/snprintf.texi: Update.
1858         * doc/posix-functions/sprintf.texi: Update.
1859         * doc/posix-functions/vfprintf.texi: Update.
1860         * doc/posix-functions/vprintf.texi: Update.
1861         * doc/posix-functions/vsnprintf.texi: Update.
1862         * doc/posix-functions/vsprintf.texi: Update.
1863         * doc/glibc-functions/obstack_printf.texi: Update.
1864         * doc/glibc-functions/obstack_vprintf.texi: Update.
1865         Reported by Eric Blake.
1866
1867 2009-02-25  Bruno Haible  <bruno@clisp.org>
1868
1869         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1870         with known value.
1871         Reported by Gary V. Vaughan <gary@gnu.org>.
1872
1873 2009-02-25  Bruno Haible  <bruno@clisp.org>
1874
1875         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1876         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1877         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1878         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1879         Reported by Gary V. Vaughan <gary@gnu.org>.
1880
1881 2009-02-25  Bruno Haible  <bruno@clisp.org>
1882
1883         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1884         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1885         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1886         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1887         Reported by Gary V. Vaughan <gary@gnu.org>.
1888
1889 2009-02-25  Eric Blake  <ebb9@byu.net>
1890
1891         tests: skip fseek/ftell tests if ungetc is broken
1892         * m4/ungetc.m4: New file.
1893         * modules/fseek-tests: Split test, so ungetc dependency is
1894         separate from rest of test.
1895         * modules/fseeko-tests: Likewise.
1896         * modules/ftell-tests: Likewise.
1897         * modules/ftello-tests: Likewise.
1898         * tests/test-fseek.c (main): Isolate ungetc dependency.
1899         * tests/test-fseeko.c (main): Likewise.
1900         * tests/test-ftell.c (main): Likewise.
1901         * tests/test-ftello.c (main): Likewise.
1902         * tests/test-fseek2.sh: New file.
1903         * tests/test-fseeko2.sh: Likewise.
1904         * tests/test-ftell2.sh: Likewise.
1905         * tests/test-ftello2.sh: Likewise.
1906
1907 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1908
1909         test-getaddrinfo: fix usage of skip return code 77
1910         * tests/test-gettaddrinfo.c: Return skip code 77 only
1911         for first occurance of skip (4x77 is not 77)
1912
1913 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1914
1915         strtod: avoid C99 decl-after-statement
1916         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1917
1918 2009-02-24  Eric Blake  <ebb9@byu.net>
1919
1920         strtod: detect HP-UX 11.31 bug
1921         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1922         Reported by Gary V. Vaughan.
1923
1924 2009-02-23  Bruno Haible  <bruno@clisp.org>
1925
1926         Fix invalid read past end of memory block.
1927         * lib/vasnprintf.c (DCHAR_SET): Define.
1928         (local_wcslen): Define only when needed.
1929         (local_strnlen, local_wcsnlen): New functions.
1930         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1931         directives that involve a conversion ourselves.
1932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1933         wcsnlen, mbrtowc, wcrtomb.
1934         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1935         * tests/test-vasprintf-posix.c (test_function): Likewise.
1936         * tests/test-snprintf-posix.h (test_function): Likewise.
1937         * tests/test-sprintf-posix.h (test_function): Likewise.
1938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1939
1940 2009-02-22  Bruno Haible  <bruno@clisp.org>
1941
1942         Implement new clarified decomposition of Hangul syllables.
1943         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1944         of type LTV, return only a pairwise decomposition.
1945         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1946         Likewise.
1947         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1948         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1949         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1950
1951 2009-02-22  Bruno Haible  <bruno@clisp.org>
1952
1953         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1954         zero-length results and shrink excess allocated memory.
1955         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1956         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1957         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1958         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1959         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1960         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1961         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1962         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1963         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1964         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1965         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1966         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1967
1968 2009-02-21  Bruno Haible  <bruno@clisp.org>
1969
1970         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1971         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1972         spaces after a period. Put a space between a macro name and its
1973         argument list. Trivial rewordings.
1974         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1975         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1976         (main): Return 0 explicitly.
1977
1978 2009-02-21  Bruno Haible  <bruno@clisp.org>
1979
1980         Tests for module 'uninorm/filter'.
1981         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1982         * modules/uninorm/filter-tests: New file.
1983
1984         New module 'uninorm/filter'.
1985         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1986         uninorm_filter_flush, uninorm_filter_free): New declarations.
1987         * lib/uninorm/uninorm-filter.c: New file.
1988         * modules/uninorm/filter: New file.
1989
1990 2009-02-21  Bruno Haible  <bruno@clisp.org>
1991
1992         Tests for module 'uninorm/nfkc'.
1993         * tests/uninorm/test-nfkc.c: New file.
1994         * tests/uninorm/test-u8-nfkc.c: New file.
1995         * tests/uninorm/test-u16-nfkc.c: New file.
1996         * tests/uninorm/test-u32-nfkc.c: New file.
1997         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1998         * tests/uninorm/test-u32-nfkc-big.c: New file.
1999         * modules/uninorm/nfkc-tests: New file.
2000
2001         New module 'uninorm/nfkc'.
2002         * lib/uninorm/nfkc.c: New file.
2003         * modules/uninorm/nfkc: New file.
2004
2005         Tests for module 'uninorm/nfkd'.
2006         * tests/uninorm/test-nfkd.c: New file.
2007         * tests/uninorm/test-u8-nfkd.c: New file.
2008         * tests/uninorm/test-u16-nfkd.c: New file.
2009         * tests/uninorm/test-u32-nfkd.c: New file.
2010         * tests/uninorm/test-u32-nfkd-big.sh: New file.
2011         * tests/uninorm/test-u32-nfkd-big.c: New file.
2012         * modules/uninorm/nfkd-tests: New file.
2013
2014         New module 'uninorm/nfkd'.
2015         * lib/uninorm/nfkd.c: New file.
2016         * modules/uninorm/nfkd: New file.
2017
2018         Tests for module 'uninorm/nfc'.
2019         * tests/uninorm/test-nfc.c: New file.
2020         * tests/uninorm/test-u8-nfc.c: New file.
2021         * tests/uninorm/test-u16-nfc.c: New file.
2022         * tests/uninorm/test-u32-nfc.c: New file.
2023         * tests/uninorm/test-u32-nfc-big.sh: New file.
2024         * tests/uninorm/test-u32-nfc-big.c: New file.
2025         * modules/uninorm/nfc-tests: New file.
2026
2027         New module 'uninorm/nfc'.
2028         * lib/uninorm/nfc.c: New file.
2029         * modules/uninorm/nfc: New file.
2030
2031         Tests for module 'uninorm/nfd'.
2032         * tests/uninorm/test-nfd.c: New file.
2033         * tests/uninorm/test-u8-nfd.c: New file.
2034         * tests/uninorm/test-u16-nfd.c: New file.
2035         * tests/uninorm/test-u32-nfd.c: New file.
2036         * tests/uninorm/test-u32-nfd-big.sh: New file.
2037         * tests/uninorm/test-u32-nfd-big.c: New file.
2038         * tests/uninorm/test-u32-normalize-big.h: New file.
2039         * tests/uninorm/test-u32-normalize-big.c: New file.
2040         * tests/uninorm/NormalizationTest.txt: New file, created from
2041         Unicode 5.1.0 NormalizationTest.txt.
2042         * modules/uninorm/nfd-tests: New file.
2043
2044         New module 'uninorm/nfd'.
2045         * lib/uninorm/nfd.c: New file.
2046         * modules/uninorm/nfd: New file.
2047
2048         New module 'uninorm/u32-normalize'.
2049         * lib/uninorm/u32-normalize.c: New file.
2050         * modules/uninorm/u32-normalize: New file.
2051
2052         New module 'uninorm/u16-normalize'.
2053         * lib/uninorm/u16-normalize.c: New file.
2054         * modules/uninorm/u16-normalize: New file.
2055
2056         New module 'uninorm/u8-normalize'.
2057         * lib/uninorm/u8-normalize.c: New file.
2058         * lib/uninorm/normalize-internal.h: New file.
2059         * lib/uninorm/u-normalize-internal.h: New file.
2060         * modules/uninorm/u8-normalize: New file.
2061
2062         New module 'uninorm/decompose-internal'.
2063         * lib/uninorm/decompose-internal.c: New file.
2064         * modules/uninorm/decompose-internal: New file.
2065
2066         Tests for module 'uninorm/composition'.
2067         * tests/uninorm/test-composition.c: New file.
2068         * modules/uninorm/composition-tests: New file.
2069
2070         New module 'uninorm/composition'.
2071         * lib/uninorm/composition.c: New file.
2072         * lib/uninorm/composition-table.gperf: New file, generated by
2073         gen-uni-tables.
2074         * modules/uninorm/composition: New file.
2075
2076         Tests for module 'uninorm/compat-decomposition'.
2077         * tests/uninorm/test-compat-decomposition.c: New file.
2078         * modules/uninorm/compat-decomposition-tests: New file.
2079
2080         New module 'uninorm/compat-decomposition'.
2081         * lib/uninorm/decompose-internal.h: New file.
2082         * lib/uninorm/compat-decomposition.c: New file.
2083         * modules/uninorm/compat-decomposition: New file.
2084
2085         Tests for module 'uninorm/canonical-decomposition'.
2086         * tests/uninorm/test-canonical-decomposition.c: New file.
2087         * modules/uninorm/canonical-decomposition-tests: New file.
2088
2089         New module 'uninorm/canonical-decomposition'.
2090         * lib/uninorm/canonical-decomposition.c: New file.
2091         * modules/uninorm/canonical-decomposition: New file.
2092
2093         Tests for module 'uninorm/decomposition'.
2094         * tests/uninorm/test-decomposition.c: New file.
2095         * modules/uninorm/decomposition-tests: New file.
2096
2097         New module 'uninorm/decomposition'.
2098         * lib/uninorm/decomposition.c: New file.
2099         * modules/uninorm/decomposition: New file.
2100
2101         New module 'uninorm/decomposition-table'.
2102         * lib/uninorm/decomposition-table.h: New file.
2103         * lib/uninorm/decomposition-table.c: New file.
2104         * lib/uninorm/decomposition-table1.h: New file, generated by
2105         gen-uni-tables.
2106         * lib/uninorm/decomposition-table2.h: New file, generated by
2107         gen-uni-tables.
2108         * modules/uninorm/decomposition-table: New file.
2109
2110         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
2111         (UC_DECOMP_*): New enumeration items.
2112         (get_decomposition): New function.
2113         (struct decomp_table): New type.
2114         (output_decomposition, output_decomposition_tables): New functions.
2115         (unicode_composition_exclusions): New variable.
2116         (fill_composition_exclusions, debug_output_composition_tables): New
2117         functions.
2118         (main): Accept one more argument. Invoke fill_composition_exclusions.
2119         Output decomposition and composition tables.
2120
2121         New module 'uninorm/base'.
2122         * lib/uninorm.h: New file.
2123         * lib/unictype.h: Update comment.
2124         * modules/uninorm/base: New file.
2125
2126 2009-02-21  David Lutterkort  <lutter@redhat.com>
2127
2128         Tests for module 'safe-alloc'.
2129         * tests/test-safe-alloc.c: New file.
2130         * modules/safe-alloc-tests: New file.
2131
2132         New module 'safe-alloc'.
2133         * lib/safe-alloc.h: New file.
2134         * lib/safe-alloc.c: New file.
2135         * m4/safe-alloc.m4: New file.
2136         * modules/safe-alloc: New file.
2137         * doc/safe-alloc.texi: New file.
2138         * doc/gnulib.texi: Include it.
2139         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2140         safe-alloc.
2141
2142 2009-02-18  Bruno Haible  <bruno@clisp.org>
2143
2144         Fix link error on non-glibc systems.
2145         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
2146         variable.
2147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2148
2149 2009-02-18  Jim Meyering  <meyering@redhat.com>
2150
2151         fts: avoid used-uninitialized error due to recent change
2152         * lib/fts.c (fts_read): Guard uses of the new member,
2153         parent->fts_n_dirs_remaining, since it's not relevant for
2154         the parent of a directory specified on the command-line.
2155
2156 2009-02-17  James Youngman  <jay@gnu.org>
2157             Bruno Haible  <bruno@clisp.org>
2158
2159         * m4/include_next.m4: Reformulate comment.
2160
2161 2009-02-16  Jim Meyering  <meyering@redhat.com>
2162
2163         fts: add #if guards so that the fts_lgpl module still builds
2164         * lib/fts.c: Guard just-added hash-table-using parts with
2165         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
2166         Reported by Simon Josefsson.
2167
2168 2009-02-15  Bruno Haible  <bruno@clisp.org>
2169
2170         * modules/array-mergesort-tests: New file.
2171         * tests/test-array-mergesort.c: New file.
2172
2173         New module 'array-mergesort'.
2174         * modules/array-mergesort: New file.
2175         * lib/array-mergesort.h: New file.
2176
2177 2009-02-15  Bruno Haible  <bruno@clisp.org>
2178
2179         Fix 2009-02-07 commit.
2180         * lib/gen-uni-tables.c (output_predicate, output_category,
2181         output_combclass, output_bidi_category, output_decimal_digit,
2182         output_digit, output_numeric, output_mirror, output_scripts,
2183         output_ident_category, output_simple_mapping): Fix format directives.
2184         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
2185
2186 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
2187
2188         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
2189         fixes are available from IBM.
2190
2191 2009-02-13  Jim Meyering  <meyering@redhat.com>
2192
2193         fts: arrange not to stat non-directories in more cases
2194         This makes GNU find (when it doesn't need to stat each file)
2195         *much* more efficient at traversing reiserfs file systems.
2196         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
2197         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
2198         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
2199         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
2200         (leaf_optimization_applies): New function.
2201         (LCO_hash, LCO_compare): New helper functions.
2202         (link_count_optimize_ok): New function.
2203         (fts_stat): Initialize new member (if dir).
2204         (fts_read): Decrement parent's fts_n_dirs_remaining count if
2205         we've just stat'ed a directory.  Skip the stat call when possible.
2206         ---
2207         Note this AFS-related exchange:
2208         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
2209         and note find's pioctl call in find/fstype.c.
2210         But that is necessary only if you want to enable the
2211         optimization for AFS, and for now, I don't.
2212
2213         fts: move a function definition "up" (no semantic change)
2214         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
2215         "up" to precede upcoming use of a related function.
2216
2217 2009-02-11  Jim Meyering  <meyering@redhat.com>
2218
2219         fts: correct internal computation of nlinks (optimization-related)
2220         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
2221         whether the current entry is a directory, so don't test it.
2222
2223 2009-02-10  Bruno Haible  <bruno@clisp.org>
2224
2225         Tests for module 'uniwbrk/ulc-wordbreaks'.
2226         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
2227         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
2228         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
2229
2230         Tests for module 'uniwbrk/u32-wordbreaks'.
2231         * modules/uniwbrk/u32-wordbreaks-tests: New file.
2232         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
2233
2234         Tests for module 'uniwbrk/u16-wordbreaks'.
2235         * modules/uniwbrk/u16-wordbreaks-tests: New file.
2236         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
2237
2238         Tests for module 'uniwbrk/u8-wordbreaks'.
2239         * modules/uniwbrk/u8-wordbreaks-tests: New file.
2240         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
2241
2242 2009-02-10  Bruno Haible  <bruno@clisp.org>
2243
2244         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
2245         property.
2246         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
2247         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
2248         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
2249
2250 2009-02-10  Simon Josefsson  <simon@josefsson.org>
2251
2252         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
2253         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
2254
2255 2009-02-10  Bruno Haible  <bruno@clisp.org>
2256
2257         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
2258         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
2259         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
2260         * lib/unilbrk/u8-possible-linebreaks.c: Update.
2261         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
2262         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
2263
2264 2009-02-09  Simon Josefsson  <simon@josefsson.org>
2265
2266         * lib/sockets.h (gl_fd_to_handle): New function.
2267
2268         * tests/test-sockets.c: Call gl_fd_to_handle.
2269
2270 2009-02-09  Bruno Haible  <bruno@clisp.org>
2271
2272         * doc/havelib.texi: Document the conventions on bi-arch systems.
2273
2274 2009-02-08  Bruno Haible  <bruno@clisp.org>
2275
2276         Document the AC_LIB_LINKFLAGS macro.
2277         * doc/havelib.texi: New file, mostly written on 2005-05-24.
2278         * doc/gnulib.texi: Include it.
2279
2280 2009-02-08  Bruno Haible  <bruno@clisp.org>
2281
2282         Fix wrong order of sections, compared to TOC.
2283         * doc/gnulib.texi: Include relocatable-maint.texi after the
2284         "Regular expressions" node, not before.
2285
2286 2009-02-08  Bruno Haible  <bruno@clisp.org>
2287
2288         Tests for module 'unicase/totitle'.
2289         * modules/unicase/totitle-tests: New file.
2290
2291         Tests for module 'unicase/tolower'.
2292         * modules/unicase/tolower-tests: New file.
2293
2294         Tests for module 'unicase/toupper'.
2295         * modules/unicase/toupper-tests: New file.
2296         * tests/unicase/test-mapping-part1.h: New file.
2297         * tests/unicase/test-mapping-part2.h: New file.
2298
2299         New module 'unicase/totitle'.
2300         * modules/unicase/totitle: New file.
2301         * lib/unicase/totitle.c: New file.
2302
2303         New module 'unicase/tolower'.
2304         * modules/unicase/tolower: New file.
2305         * lib/unicase/tolower.c: New file.
2306
2307         New module 'unicase/toupper'.
2308         * modules/unicase/toupper: New file.
2309         * lib/unicase/toupper.c: New file.
2310         * lib/unicase/simple-mapping.h: New file.
2311
2312         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
2313         (mapping_table): New structure.
2314         (output_simple_mapping): New function.
2315         (main): Invoke output_simple_mapping_test and output_simple_mapping.
2316         * modules/gen-uni-tables (Description): Update.
2317         * lib/unicase/toupper.h: New file, automatically generated by
2318         gen-uni-tables.
2319         * lib/unicase/tolower.h: New file, automatically generated by
2320         gen-uni-tables.
2321         * lib/unicase/totitle.h: New file, automatically generated by
2322         gen-uni-tables.
2323         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
2324         gen-uni-tables.
2325         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
2326         gen-uni-tables.
2327         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
2328         gen-uni-tables.
2329
2330         New module 'unicase/base'.
2331         * modules/unicase/base: New file.
2332         * lib/unicase.h: New file.
2333
2334 2009-02-08  Bruno Haible  <bruno@clisp.org>
2335
2336         New module 'uniwbrk/ulc-wordbreaks'.
2337         * modules/uniwbrk/ulc-wordbreaks: New file.
2338         * lib/uniwbrk/ulc-wordbreaks.c: New file.
2339
2340         New module 'uniwbrk/u32-wordbreaks'.
2341         * modules/uniwbrk/u32-wordbreaks: New file.
2342         * lib/uniwbrk/u32-wordbreaks.c: New file.
2343
2344         New module 'uniwbrk/u16-wordbreaks'.
2345         * modules/uniwbrk/u16-wordbreaks: New file.
2346         * lib/uniwbrk/u16-wordbreaks.c: New file.
2347
2348         New module 'uniwbrk/u8-wordbreaks'.
2349         * modules/uniwbrk/u8-wordbreaks: New file.
2350         * lib/uniwbrk/u8-wordbreaks.c: New file.
2351         * lib/uniwbrk/u-wordbreaks.h: New file.
2352
2353         New module 'uniwbrk/table'.
2354         * modules/uniwbrk/table: New file.
2355         * lib/uniwbrk/wbrktable.h: New file.
2356         * lib/uniwbrk/wbrktable.c: New file.
2357
2358         New module 'uniwbrk/wordbreak-property'.
2359         * modules/uniwbrk/wordbreak-property: New file.
2360         * lib/uniwbrk/wordbreak-property.c: New file.
2361
2362         * lib/gen-uni-tables.c (WBP_*): New enum items.
2363         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
2364         (unicode_org_wbp): New variable.
2365         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
2366         New functions.
2367         (wbp_table): New structure.
2368         (output_wbp, output_wbrk_tables): New functions.
2369         (main): Accept additional argument. Invoke fill_org_wbp,
2370         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
2371         output_wbrk_tables.
2372         * modules/gen-uni-tables (Description): Update.
2373         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
2374         gen-uni-tables.
2375
2376         New module 'uniwbrk/base'.
2377         * modules/uniwbrk/base: New file.
2378         * lib/uniwbrk.h: New file.
2379
2380 2009-02-08  Bruno Haible  <bruno@clisp.org>
2381
2382         Update to Unicode 5.1.0.
2383         * lib/gen-uni-tables.c (is_property_alphabetic): Include
2384         U+2185..U+2188.
2385         (is_property_default_ignorable_code_point): Don't include characters
2386         of category Cc or Cs and not-a-characters.
2387         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
2388         U+0D79, U+109E, U+109F, U+A60C.
2389         * lib/unictype/bidi_of.h: Regenerated.
2390         * lib/unictype/blocks.h: Regenerated.
2391         * lib/unictype/categ_C.h: Regenerated.
2392         * lib/unictype/categ_Cf.h: Regenerated.
2393         * lib/unictype/categ_Cn.h: Regenerated.
2394         * lib/unictype/categ_L.h: Regenerated.
2395         * lib/unictype/categ_Ll.h: Regenerated.
2396         * lib/unictype/categ_Lm.h: Regenerated.
2397         * lib/unictype/categ_Lo.h: Regenerated.
2398         * lib/unictype/categ_Lu.h: Regenerated.
2399         * lib/unictype/categ_M.h: Regenerated.
2400         * lib/unictype/categ_Mc.h: Regenerated.
2401         * lib/unictype/categ_Me.h: Regenerated.
2402         * lib/unictype/categ_Mn.h: Regenerated.
2403         * lib/unictype/categ_N.h: Regenerated.
2404         * lib/unictype/categ_Nd.h: Regenerated.
2405         * lib/unictype/categ_Nl.h: Regenerated.
2406         * lib/unictype/categ_No.h: Regenerated.
2407         * lib/unictype/categ_P.h: Regenerated.
2408         * lib/unictype/categ_Pd.h: Regenerated.
2409         * lib/unictype/categ_Pe.h: Regenerated.
2410         * lib/unictype/categ_Pf.h: Regenerated.
2411         * lib/unictype/categ_Pi.h: Regenerated.
2412         * lib/unictype/categ_Po.h: Regenerated.
2413         * lib/unictype/categ_Ps.h: Regenerated.
2414         * lib/unictype/categ_S.h: Regenerated.
2415         * lib/unictype/categ_Sk.h: Regenerated.
2416         * lib/unictype/categ_Sm.h: Regenerated.
2417         * lib/unictype/categ_So.h: Regenerated.
2418         * lib/unictype/categ_of.h: Regenerated.
2419         * lib/unictype/combining.h: Regenerated.
2420         * lib/unictype/ctype_alnum.h: Regenerated.
2421         * lib/unictype/ctype_alpha.h: Regenerated.
2422         * lib/unictype/ctype_graph.h: Regenerated.
2423         * lib/unictype/ctype_lower.h: Regenerated.
2424         * lib/unictype/ctype_print.h: Regenerated.
2425         * lib/unictype/ctype_punct.h: Regenerated.
2426         * lib/unictype/ctype_upper.h: Regenerated.
2427         * lib/unictype/decdigit.h: Regenerated.
2428         * lib/unictype/digit.h: Regenerated.
2429         * lib/unictype/mirror.h: Regenerated.
2430         * lib/unictype/numeric.h: Regenerated.
2431         * lib/unictype/pr_alphabetic.h: Regenerated.
2432         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
2433         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
2434         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
2435         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
2436         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
2437         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
2438         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
2439         * lib/unictype/pr_combining.h: Regenerated.
2440         * lib/unictype/pr_dash.h: Regenerated.
2441         * lib/unictype/pr_decimal_digit.h: Regenerated.
2442         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
2443         * lib/unictype/pr_deprecated.h: Regenerated.
2444         * lib/unictype/pr_diacritic.h: Regenerated.
2445         * lib/unictype/pr_extender.h: Regenerated.
2446         * lib/unictype/pr_format_control.h: Regenerated.
2447         * lib/unictype/pr_grapheme_base.h: Regenerated.
2448         * lib/unictype/pr_grapheme_extend.h: Regenerated.
2449         * lib/unictype/pr_grapheme_link.h: Regenerated.
2450         * lib/unictype/pr_id_continue.h: Regenerated.
2451         * lib/unictype/pr_id_start.h: Regenerated.
2452         * lib/unictype/pr_ideographic.h: Regenerated.
2453         * lib/unictype/pr_ignorable_control.h: Regenerated.
2454         * lib/unictype/pr_lowercase.h: Regenerated.
2455         * lib/unictype/pr_math.h: Regenerated.
2456         * lib/unictype/pr_numeric.h: Regenerated.
2457         * lib/unictype/pr_other_alphabetic.h: Regenerated.
2458         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
2459         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
2460         * lib/unictype/pr_other_id_continue.h: Regenerated.
2461         * lib/unictype/pr_other_lowercase.h: Regenerated.
2462         * lib/unictype/pr_other_math.h: Regenerated.
2463         * lib/unictype/pr_punctuation.h: Regenerated.
2464         * lib/unictype/pr_sentence_terminal.h: Regenerated.
2465         * lib/unictype/pr_soft_dotted.h: Regenerated.
2466         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
2467         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
2468         * lib/unictype/pr_unified_ideograph.h: Regenerated.
2469         * lib/unictype/pr_uppercase.h: Regenerated.
2470         * lib/unictype/pr_xid_continue.h: Regenerated.
2471         * lib/unictype/pr_xid_start.h: Regenerated.
2472         * lib/unictype/pr_zero_width.h: Regenerated.
2473         * lib/unictype/scripts.h: Regenerated.
2474         * lib/unictype/scripts_byname.gperf: Regenerated.
2475         * lib/unictype/sy_java_ident.h: Regenerated.
2476         * lib/unilbrk/lbrkprop1.h: Regenerated.
2477         * lib/unilbrk/lbrkprop2.h: Regenerated.
2478         * tests/unictype/test-categ_C.c: Regenerated.
2479         * tests/unictype/test-categ_Cf.c: Regenerated.
2480         * tests/unictype/test-categ_Cn.c: Regenerated.
2481         * tests/unictype/test-categ_L.c: Regenerated.
2482         * tests/unictype/test-categ_Ll.c: Regenerated.
2483         * tests/unictype/test-categ_Lm.c: Regenerated.
2484         * tests/unictype/test-categ_Lo.c: Regenerated.
2485         * tests/unictype/test-categ_Lu.c: Regenerated.
2486         * tests/unictype/test-categ_M.c: Regenerated.
2487         * tests/unictype/test-categ_Mc.c: Regenerated.
2488         * tests/unictype/test-categ_Me.c: Regenerated.
2489         * tests/unictype/test-categ_Mn.c: Regenerated.
2490         * tests/unictype/test-categ_N.c: Regenerated.
2491         * tests/unictype/test-categ_Nd.c: Regenerated.
2492         * tests/unictype/test-categ_Nl.c: Regenerated.
2493         * tests/unictype/test-categ_No.c: Regenerated.
2494         * tests/unictype/test-categ_P.c: Regenerated.
2495         * tests/unictype/test-categ_Pd.c: Regenerated.
2496         * tests/unictype/test-categ_Pe.c: Regenerated.
2497         * tests/unictype/test-categ_Pf.c: Regenerated.
2498         * tests/unictype/test-categ_Pi.c: Regenerated.
2499         * tests/unictype/test-categ_Po.c: Regenerated.
2500         * tests/unictype/test-categ_Ps.c: Regenerated.
2501         * tests/unictype/test-categ_S.c: Regenerated.
2502         * tests/unictype/test-categ_Sk.c: Regenerated.
2503         * tests/unictype/test-categ_Sm.c: Regenerated.
2504         * tests/unictype/test-categ_So.c: Regenerated.
2505         * tests/unictype/test-ctype_alnum.c: Regenerated.
2506         * tests/unictype/test-ctype_alpha.c: Regenerated.
2507         * tests/unictype/test-ctype_graph.c: Regenerated.
2508         * tests/unictype/test-ctype_lower.c: Regenerated.
2509         * tests/unictype/test-ctype_print.c: Regenerated.
2510         * tests/unictype/test-ctype_punct.c: Regenerated.
2511         * tests/unictype/test-ctype_upper.c: Regenerated.
2512         * tests/unictype/test-decdigit.h: Regenerated.
2513         * tests/unictype/test-digit.h: Regenerated.
2514         * tests/unictype/test-numeric.h: Regenerated.
2515         * tests/unictype/test-pr_alphabetic.c: Regenerated.
2516         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
2517         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
2518         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
2519         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
2520         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
2521         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
2522         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
2523         * tests/unictype/test-pr_combining.c: Regenerated.
2524         * tests/unictype/test-pr_dash.c: Regenerated.
2525         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
2526         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
2527         * tests/unictype/test-pr_deprecated.c: Regenerated.
2528         * tests/unictype/test-pr_diacritic.c: Regenerated.
2529         * tests/unictype/test-pr_extender.c: Regenerated.
2530         * tests/unictype/test-pr_format_control.c: Regenerated.
2531         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
2532         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
2533         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
2534         * tests/unictype/test-pr_id_continue.c: Regenerated.
2535         * tests/unictype/test-pr_id_start.c: Regenerated.
2536         * tests/unictype/test-pr_ideographic.c: Regenerated.
2537         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
2538         * tests/unictype/test-pr_lowercase.c: Regenerated.
2539         * tests/unictype/test-pr_math.c: Regenerated.
2540         * tests/unictype/test-pr_numeric.c: Regenerated.
2541         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
2542         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
2543         Regenerated.
2544         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
2545         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
2546         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
2547         * tests/unictype/test-pr_other_math.c: Regenerated.
2548         * tests/unictype/test-pr_punctuation.c: Regenerated.
2549         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
2550         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
2551         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2552         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2553         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2554         * tests/unictype/test-pr_uppercase.c: Regenerated.
2555         * tests/unictype/test-pr_xid_continue.c: Regenerated.
2556         * tests/unictype/test-pr_xid_start.c: Regenerated.
2557         * tests/unictype/test-pr_zero_width.c: Regenerated.
2558
2559         Update to Unicode 5.1.0.
2560         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2561         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2562         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2563         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2564         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2565         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2566         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2567         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2568         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2569         (nonspacing_table_ind): Update.
2570         * tests/uniwidth/test-uc_width2.sh: Update expected result.
2571
2572         Update to Unicode 5.1.0.
2573         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2574         code transform.
2575         * lib/uniname/uniname.c (unicode_character_name,
2576         unicode_name_character): Add the range 0x1Fxxx to the code transform.
2577         * lib/uniname/uninames.h: Regenerated.
2578         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2579
2580 2009-02-07  Bruno Haible  <bruno@clisp.org>
2581
2582         Merge gen-ctype and gen-lbrk into a single program.
2583         * lib/gen-uni-tables.c: New file, incorporating
2584         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2585         Add directory prefixes to the names of the generated files.
2586         * lib/unictype/gen-ctype.c: Remove file.
2587         * lib/unilbrk/gen-lbrk.c: Remove file.
2588         * modules/gen-uni-tables: New file.
2589         * modules/unictype/gen-ctype: Remove file.
2590         * modules/unilbrk/gen-lbrk: Remove file.
2591
2592 2009-02-07  Bruno Haible  <bruno@clisp.org>
2593
2594         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2595
2596         New module 'unistr/u32-strcoll'.
2597         * modules/unistr/u32-strcoll: New file.
2598         * lib/unistr/u32-strcoll.c: New file.
2599
2600         New module 'unistr/u16-strcoll'.
2601         * modules/unistr/u16-strcoll: New file.
2602         * lib/unistr/u16-strcoll.c: New file.
2603
2604         New module 'unistr/u8-strcoll'.
2605         * modules/unistr/u8-strcoll: New file.
2606         * lib/unistr/u8-strcoll.c: New file.
2607         * lib/unistr/u-strcoll.h: New file.
2608
2609 2009-02-07  Bruno Haible  <bruno@clisp.org>
2610
2611         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2612         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2613         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2614         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2615         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2616         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2617
2618 2009-02-07  Bruno Haible  <bruno@clisp.org>
2619
2620         Make 64-bit clean.
2621         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2622         output_combclass, output_bidi_category, output_decimal_digit,
2623         output_digit, output_numeric, output_mirror, output_scripts,
2624         output_ident_category): Use proper width specifier in format strings.
2625
2626 2009-02-07  Bruno Haible  <bruno@clisp.org>
2627
2628         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2629         failure behaviour.
2630
2631 2009-02-07  Jim Meyering  <meyering@redhat.com>
2632
2633         regex: avoid compilation failure with upcoming gcc-4.4
2634         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2635         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
2636         "... error: integer overflow in preprocessor expression".
2637
2638 2009-02-05  Ben Pfaff  <blp@gnu.org>
2639
2640         Fix link errors on Windows when close module is used.
2641         * modules/close: Add $(LIB_CLOSE) to Link section.
2642         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2643         $(LIB_CLOSE) on Windows.
2644
2645 2009-02-05  Jim Meyering  <meyering@redhat.com>
2646
2647         still avoid unused-parameter warnings, but do it cleanly
2648         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2649         (get_fs_usage): Cast to void instead.
2650         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2651         (dev_from_mount_options, read_file_system_list): Cast to void.
2652         Prompted by Bruno Haible.
2653
2654 2009-02-04  Jim Meyering  <meyering@redhat.com>
2655
2656         fsusage.c: correct copyright year
2657         * lib/fsusage.c: Reflect year in which the change is pushed into
2658
2659         avoid misc. warnings
2660         * lib/fsusage.c (UNUSED_PARAM): Define.
2661         (get_fs_usage): Mark parameter "disk" as unused.
2662         * lib/getugroups.c (getgrent): Use "void" in prototype.
2663         * lib/mountlist.c: Mark unused parameters.
2664         (read_file_system_list): Declare a local with "const".
2665         * lib/nanosleep.c (getnow): Declare static.
2666         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2667
2668         dirfd: set errno upon failure
2669         * lib/dirfd.c: Include <errno.h>.
2670         Set errno to ENOTSUP when returning -1.
2671         * modules/dirfd (Depends-on): Add errno.
2672         Suggested by John Kodis <kodis@comcast.net>.
2673
2674 2009-02-01  Bruno Haible  <bruno@clisp.org>
2675
2676         Don't assume sizeof (long) >= sizeof (void *).
2677         * lib/memcmp.c: Include stdint.h.
2678         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2679         srcp2 to 'const byte *'.
2680         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2681         types to uintptr_t.
2682         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2683         * modules/memcmp (Depends-on): Add stdint.
2684         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2685
2686 2009-01-30  Eric Blake  <ebb9@byu.net>
2687
2688         fix more require-before-expand issues
2689         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2690         expand, AC_PROG_AWK.
2691         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2692
2693 2009-01-28  Eric Blake  <ebb9@byu.net>
2694
2695         version-etc: use consistent URL formatting
2696         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2697         Improve formatting.  Use fputs for string without %.
2698
2699 2009-01-28  Jim Meyering  <meyering@redhat.com>
2700
2701         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2702         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2703         "underquoted definition of NAME" from autoconf-2.59.
2704
2705 2009-01-28  Bruno Haible  <bruno@clisp.org>
2706
2707         * doc/gnulib.texi: Add "Obsolete modules" to index.
2708
2709 2009-01-28  Jim Meyering  <meyering@redhat.com>
2710
2711         useless-if-before-free: recognize more variants
2712         * build-aux/useless-if-before-free: Also recognize e.g.,
2713         if (NULL != p) free (p);
2714
2715 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2716
2717         test-getaddrinfo: skip (don't fail) this test when there's no network
2718         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2719         on the presumption that it means you lack network access.
2720
2721 2009-01-26  Jim Meyering  <meyering@redhat.com>
2722
2723         fflush: avoid warnings on modern systems
2724         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2725         pos and result, into scopes where they're used.
2726
2727 2009-01-26  Eric Blake  <ebb9@byu.net>
2728
2729         Silence warning reintroduced by recent extensions patch.
2730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2731         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2732         autoconf.
2733
2734         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2735         * m4/00gnulib.m4: New file.
2736         * gnulib-tool (func_get_filelist): Always use it.
2737         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2738         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2739
2740 2009-01-25  Bruno Haible  <bruno@clisp.org>
2741
2742         Make test-quotearg work on MacOS X and AIX.
2743         * tests/test-quotearg.sh: New file.
2744         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2745         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2746         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2747         include <libintl.h>.
2748         (fake_locale): Remove variable.
2749         (gettext, dgettext, dcgettext): Remove functions.
2750         (main): Instead of setting a fake locale, set a real locale. Call
2751         textdomain and bindtextdomain.
2752         * modules/quotearg-tests (Files): Add the new files.
2753         (Depends-on): Add gettext, setenv, unsetenv.
2754         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2755         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2756         Augment TESTS_ENVIRONMENT.
2757
2758 2009-01-25  Bruno Haible  <bruno@clisp.org>
2759
2760         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2761         fr_FR.ISO8859-1 locale on MacOS X.
2762         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2763         ja_JP.eucJP locale on MacOS X.
2764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2765         zh_CN.GB18030 locale on MacOS X.
2766
2767 2009-01-25  Bruno Haible  <bruno@clisp.org>
2768
2769         Avoid link errors on MacOS X 10.3.
2770         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2771         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2772
2773 2009-01-25  Bruno Haible  <bruno@clisp.org>
2774
2775         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2776         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2777         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2778         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2779         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2780         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2781         posix_spawnattr_init, posix_spawnattr_setsigmask,
2782         posix_spawnattr_setflags, posix_spawnattr_destroy.
2783
2784         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2785         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2786         * modules/execute (Files): Remove m4/posix_spawn.m4.
2787         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2788         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2789         posix_spawnattr_init, posix_spawnattr_setsigmask,
2790         posix_spawnattr_setflags, posix_spawnattr_destroy.
2791
2792 2009-01-25  Bruno Haible  <bruno@clisp.org>
2793
2794         * lib/glthread/threadlib.c: Include <stdlib.h>.
2795
2796 2009-01-25  Bruno Haible  <bruno@clisp.org>
2797
2798         * lib/glthread/threadlib.c (dummy): New declaration.
2799
2800 2009-01-25  Bruno Haible  <bruno@clisp.org>
2801
2802         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2803         multibyte characters also for the GB18030 encoding. Don't crash when
2804         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2805
2806 2009-01-25  Bruno Haible  <bruno@clisp.org>
2807
2808         Avoid redefining 'struct random_data' on OSF/1 5.1.
2809         * lib/stdlib.in.h: Include <random.h> if it exists.
2810         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2811         HAVE_RANDOM_H. Include <random.h> when testing whether
2812         'struct random_data' exists.
2813         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2814
2815 2009-01-25  Bruno Haible  <bruno@clisp.org>
2816
2817         Don't install charset.alias on MacOS X >= 10.3.
2818         * lib/localcharset.c (DARWIN7): New macro.
2819         (get_charset_aliases): Hardcode the result for Darwin7.
2820         * modules/localcharset (install-exec-local): Don't install
2821         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2822
2823 2009-01-25  Bruno Haible  <bruno@clisp.org>
2824
2825         Don't install charset.alias on mingw and Cygwin.
2826         * modules/localcharset (install-exec-local): Don't install
2827         charset.alias on mingw and Cygwin, if the file does not yet exist.
2828         The result for these platforms is hardcoded in localcharset.c.
2829
2830 2009-01-25  Bruno Haible  <bruno@clisp.org>
2831
2832         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2834         before requiring AC_USE_SYSTEM_EXTENSIONS.
2835
2836 2009-01-25  Jim Meyering  <meyering@redhat.com>
2837
2838         c-strtod: avoid warnings
2839         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2840         "assignment discards qualifiers from pointer target type" warnings.
2841
2842 2009-01-24  Bruno Haible  <bruno@clisp.org>
2843
2844         Add support for non-UTF-8 locales on MacOS X.
2845         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2846         canonical encodings. For Darwin 7 and newer, don't map traditional
2847         encodings to UTF-8.
2848         Reported by Vincent Lefevre <vincent@vinc17.org>
2849         at <http://savannah.gnu.org/bugs/?25235>.
2850
2851 2009-01-24  Bruno Haible  <bruno@clisp.org>
2852
2853         * doc/gnulib.texi (Obsolete modules): New section.
2854         Reported by Mike Frysinger <vapier@gentoo.org>.
2855
2856 2009-01-24  Bruno Haible  <bruno@clisp.org>
2857
2858         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2859         (%.dvi): New rule.
2860
2861 2009-01-24  Bruno Haible  <bruno@clisp.org>
2862
2863         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2864         Reported by Eric Blake.
2865
2866 2009-01-24  Bruno Haible  <bruno@clisp.org>
2867
2868         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2869         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2870         Reported by Gary V. Vaughan <gary@gnu.org>.
2871
2872 2009-01-24  Bruno Haible  <bruno@clisp.org>
2873
2874         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2875
2876 2009-01-23  Bruno Haible  <bruno@clisp.org>
2877
2878         Make c-strtod, c-strtold usable in libraries.
2879         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2880         (C_STRTOD): Call strdup instead of xstrdup.
2881         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2882         * modules/c-strtold (Depends-on): Likewise.
2883         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2884         * NEWS: Mention the change.
2885         Reported by Michael Gold <mgold@ncf.ca>.
2886
2887 2009-01-23  Jim Meyering  <meyering@redhat.com>
2888
2889         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2890         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2891         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2892
2893 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2894
2895         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2896         GNU CoreUtils.
2897         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2898         * modules/version-etc (Description): Update.
2899
2900 2009-01-22  Bruno Haible  <bruno@clisp.org>
2901
2902         Cache the C locale object.
2903         * lib/c-strtod.c (c_locale_cache): New variable.
2904         (c_locale): New function.
2905         (C_STRTOD): Use it, and don't call freelocale.
2906         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2907         Suggested by Paolo Bonzini.
2908
2909 2009-01-21  Bruno Haible  <bruno@clisp.org>
2910
2911         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2912         conditions other than overflow.
2913
2914 2009-01-21  Bruno Haible  <bruno@clisp.org>
2915
2916         * lib/c-strtod.c: Include errno.h.
2917         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2918         value from STRTOD_L and STRTOD.
2919
2920 2009-01-21  Bruno Haible  <bruno@clisp.org>
2921         and Jim Meyering  <meyering@redhat.com>
2922
2923         nanosleep: skip configure test (fail it) for apple universal builds
2924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2925         universal builds, assume that nanosleep does not work.
2926         * modules/nanosleep (Depends-on): Add multiarch.
2927
2928         mktime: skip configure test (fail it) for apple universal builds
2929         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2930         universal builds, assume that mktime does not work.
2931         * modules/mktime (Depends-on): Add multiarch.
2932
2933 2009-01-21  Eric Blake  <ebb9@byu.net>
2934
2935         multiarch: avoid expand-before-require warning
2936         * modules/multiarch (configure.ac): Require, rather than expand,
2937         gl_MULTIARCH.
2938         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2939         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2940         enforce that all clients require it.  Partial reversion of
2941         2008-12-29 patch.
2942
2943         error: avoid expand-before-require warning
2944         * modules/errno (configure.ac): Require, rather than expand,
2945         gl_HEADER_ERRNO_H.
2946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2947         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2948         enforce that all clients require it.
2949
2950         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2951         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2952         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2953         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2954
2955 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2956
2957         Revert:
2958         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2959
2960         regex: do not depend on obsolete modules.
2961         * modules/regex: Remove memcmp and memmove.
2962
2963 2009-01-20  Bruno Haible  <bruno@clisp.org>
2964
2965         Make the 'link' module link on Windows NT 4.
2966         * lib/link.c (_WIN32_WINNT): Don't define.
2967         (CreateHardLinkFuncType): New type.
2968         (CreateHardLinkFunc, initialized): New variables.
2969         (initialize): New function.
2970         (link): Invoke CreateHardLink indirectly through the function pointer.
2971
2972 2009-01-20  Bruno Haible  <bruno@clisp.org>
2973
2974         Fix compilation failure on mingw.
2975         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2976
2977 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2978
2979         * doc/c-strtod.texi: Mention a couple of restrictions.
2980
2981 2009-01-20  Jim Meyering  <meyering@redhat.com>
2982
2983         gettimeofday: move more declarations out of functions
2984         * lib/gettimeofday.c: Move extern declarations of tzset and
2985         gmtime out of containing functions.  Prompted by Bruno Haible.
2986
2987 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2988
2989         regex: do not depend on obsolete modules.
2990         * modules/regex: Remove memcmp and memmove.
2991
2992 2009-01-19  Bruno Haible  <bruno@clisp.org>
2993
2994         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2995         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2996         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2997         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2998         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2999
3000 2009-01-19  Bruno Haible  <bruno@clisp.org>
3001
3002         * tests/test-link.c: Include <errno.h>.
3003         (main): Exit with code 77 when a hard link cannot be created due to
3004         the file system.
3005         * tests/test-link.sh: Skip test when a hard link cannot be created due
3006         to the file system.
3007         Suggested by Eric Blake.
3008
3009 2009-01-19  Martin Lambers  <marlam@marlam.de>
3010
3011         * modules/link-tests: New file.
3012         * tests/test-link.sh: New file.
3013         * tests/test-link.c: New file.
3014
3015 2009-01-19  Eric Blake  <ebb9@byu.net>
3016
3017         doc: mention another function added in cygwin 1.7.0
3018         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
3019         Another new function in cygwin 1.7.
3020
3021 2009-01-19  Bruno Haible  <bruno@clisp.org>
3022
3023         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
3024         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
3025         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
3026         gl_BIGENDIAN, not AC_C_BIGENDIAN.
3027         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3028         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3030         * m4/md4.m4 (gl_MD4): Likewise.
3031         * m4/md5.m4 (gl_MD5): Likewise.
3032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
3033         * m4/sha1.m4 (gl_SHA1): Likewise.
3034         * m4/sha256.m4 (gl_SHA256): Likewise.
3035         * m4/sha512.m4 (gl_SHA512): Likewise.
3036
3037 2009-01-19  Bruno Haible  <bruno@clisp.org>
3038
3039         * modules/uniname/uniname-tests (Depends-on): Add progname.
3040         * tests/uniname/test-uninames.c: Include progname.h.
3041         (main): Call set_program_name.
3042
3043         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
3044         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
3045         (main): Call set_program_name.
3046
3047         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
3048         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
3049         (main): Call set_program_name.
3050
3051         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
3052         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
3053         (main): Call set_program_name.
3054
3055         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
3056         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
3057         (main): Call set_program_name.
3058
3059         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
3060         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
3061         (main): Call set_program_name.
3062
3063         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
3064         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
3065         (main): Call set_program_name.
3066
3067         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
3068         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
3069         (main): Call set_program_name.
3070
3071         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
3072         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
3073         (main): Call set_program_name.
3074
3075 2009-01-19  Eric Blake  <ebb9@byu.net>
3076
3077         test-unistd: test previous patch
3078         * tests/test-unistd.c: Test *_FILENO macros.
3079
3080         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
3081         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3082         Guarantee a definition.
3083         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
3084         * modules/unistd-safer (Depends-on): Add dependency on unistd.
3085         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
3086         * lib/dup-safer.c (STDERR_FILENO): Likewise.
3087         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3088         Likewise.
3089         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
3090         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
3091         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3092         Likewise.
3093         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
3094         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
3095         (STDERR_FILENO): Likewise.
3096         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
3097         (STDERR_FILENO): Likewise.
3098         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
3099         (STDERR_FILENO): Likewise.
3100         Reported by Elbert Pol.
3101
3102 2009-01-19  Eric Blake  <ebb9@byu.net>
3103
3104         doc: mention more functions added in cygwin 1.7.0
3105         * doc/posix-functions/abort.texi (abort): Update wording related
3106         to cygwin.
3107         * doc/posix-functions/daylight.texi (daylight): Likewise.
3108         * doc/posix-functions/optarg.texi (optarg): Likewise.
3109         * doc/posix-functions/optarg.texi (opterr): Likewise.
3110         * doc/posix-functions/optarg.texi (optind): Likewise.
3111         * doc/posix-functions/optarg.texi (optopt): Likewise.
3112         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
3113         worked in 1.5.x, and was withdrawn in 1.7.
3114         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3115         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
3116         cygwin versions.
3117         * doc/posix-functions/perror.texi (perror): Likewise.
3118         * doc/posix-functions/printf.texi (printf): Likewise.
3119         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
3120         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
3121         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3122         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3123         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3124         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
3125         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3126         Likewise.
3127         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3128         Likewise.
3129         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
3130         this function.
3131         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
3132         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
3133         Likewise.
3134         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
3135         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
3136         * doc/posix-functions/confstr.texi (confstr): Likewise.
3137         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
3138         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
3139         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
3140         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
3141         * doc/posix-functions/fputws.texi (fputws): Likewise.
3142         * doc/posix-functions/fwide.texi (fwide): Likewise.
3143         * doc/posix-functions/getwc.texi (getwc): Likewise.
3144         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
3145         * doc/posix-functions/putwc.texi (putwc): Likewise.
3146         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3147         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
3148         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
3149         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3150         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
3151         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
3152         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
3153         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
3154         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
3155         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
3156         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
3157
3158 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3159
3160         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
3161         * lib/ioctl.c: Include <sys/ioctl.h>.
3162
3163 2009-01-19  Simon Josefsson  <simon@josefsson.org>
3164
3165         * modules/getdate-tests (Depends-on): Add progname.
3166         * tests/test-getdate.c: Use progname module, to avoid link errors
3167         on non-glibc systems.
3168
3169 2009-01-18  Simon Josefsson  <simon@josefsson.org>
3170
3171         * modules/filenamecat-tests (Depends-on): Add progname.
3172         * modules/fstrcmp-tests (Depends-on): Likewise.
3173
3174         * tests/test-filenamecat.c: Use progname module, to avoid link
3175         errors on non-glibc systems.
3176         * tests/test-fstrcmp.c: Likewise.
3177
3178 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3179
3180         gettimeofday: avoid warning: nested extern declaration of 'localtime'
3181         * lib/gettimeofday.c: Move extern declaration out of function.
3182
3183 2009-01-18  Bruno Haible  <bruno@clisp.org>
3184
3185         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
3186         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
3187         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
3188
3189 2009-01-18  Bruno Haible  <bruno@clisp.org>
3190
3191         * lib/strftime.c (MEMPCPY): Remove unused macro.
3192         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
3193
3194 2009-01-18  Martin Lambers  <marlam@marlam.de>
3195
3196         New module 'link'.
3197         * lib/unistd.in.h (link): New declaration.
3198         * lib/link.c: New file.
3199         * m4/link.m4: New file.
3200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
3201         HAVE_LINK.
3202         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
3203         * modules/link: New file.
3204         * doc/posix-functions/link.texi: Mention the new module.
3205
3206 2009-01-18  Bruno Haible  <bruno@clisp.org>
3207
3208         * tests/test-avltree_list.c (main): Call set_program_name.
3209         * tests/test-avltree_oset.c (main): Likewise.
3210         * tests/test-obstack-printf.c: Include progname.h.
3211         (main): Call set_program_name.
3212         * tests/test-quotearg.c: Include progname.h.
3213         (main): Call set_program_name.
3214         * tests/test-xmemdup0.c: Include progname.h.
3215         (main): Call set_program_name.
3216
3217 2009-01-18  Bruno Haible  <bruno@clisp.org>
3218
3219         New module 'alphasort'.
3220         * lib/dirent.in.h (alphasort): New declaration.
3221         * lib/alphasort.c: New file, from glibc with modifications.
3222         * m4/alphasort.m4: New file.
3223         * modules/alphasort: New file.
3224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
3225         HAVE_ALPHASORT.
3226         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
3227         HAVE_ALPHASORT.
3228         * doc/posix-functions/alphasort.texi: Mention the new module and the
3229         portability problems.
3230
3231 2009-01-18  Bruno Haible  <bruno@clisp.org>
3232
3233         New module 'scandir'.
3234         * lib/dirent.in.h (scandir): New declaration.
3235         * lib/scandir.c: New file, from glibc with modifications.
3236         * m4/scandir.m4: New file.
3237         * modules/scandir: New file.
3238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
3239         HAVE_SCANDIR.
3240         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
3241         HAVE_SCANDIR.
3242         * doc/posix-functions/scandir.texi: Mention the new module and the
3243         portability problems.
3244
3245 2009-01-17  Bruno Haible  <bruno@clisp.org>
3246
3247         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
3248         Update documentation.
3249         (func_remove_suffix): Escape all dots in the suffix. Update
3250         documentation.
3251         (func_filter_filelist): Update documentation.
3252         Reported by Ralf Wildenhues.
3253
3254 2009-01-17  Bruno Haible  <bruno@clisp.org>
3255
3256         * modules/dprintf-posix-tests: New file.
3257         * tests/test-dprintf-posix.sh: New file.
3258         * tests/test-dprintf-posix.c: New file.
3259
3260         New modules 'dprintf', 'dprintf-posix'.
3261         * lib/stdio.in.h (dprintf): New declaration.
3262         * lib/dprintf.c: New file.
3263         * m4/dprintf.m4: New file.
3264         * m4/dprintf-posix.m4: New file.
3265         * modules/dprintf: New file.
3266         * modules/dprintf-posix: New file.
3267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
3268         HAVE_DPRINTF, REPLACE_DPRINTF.
3269         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
3270         HAVE_DPRINTF, REPLACE_DPRINTF.
3271         * doc/posix-functions/dprintf.texi: Mention the new modules.
3272
3273 2009-01-17  Bruno Haible  <bruno@clisp.org>
3274
3275         * modules/vdprintf-posix-tests: New file.
3276         * tests/test-vdprintf-posix.sh: New file.
3277         * tests/test-vdprintf-posix.c: New file.
3278
3279         New modules 'vdprintf', 'vdprintf-posix'.
3280         * lib/stdio.in.h (vdprintf): New declaration.
3281         * lib/vdprintf.c: New file.
3282         * m4/vdprintf.m4: New file.
3283         * m4/vdprintf-posix.m4: New file.
3284         * modules/vdprintf: New file.
3285         * modules/vdprintf-posix: New file.
3286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
3287         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3288         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
3289         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3290         * doc/posix-functions/vdprintf.texi: Mention the new modules.
3291
3292 2009-01-17  Bruno Haible  <bruno@clisp.org>
3293
3294         Fix replacement of fopen on mingw.
3295         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
3296         mingw.
3297
3298 2009-01-17  Bruno Haible  <bruno@clisp.org>
3299
3300         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
3301         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
3302
3303 2009-01-17  Bruno Haible  <bruno@clisp.org>
3304
3305         Avoid test-fflush2.sh failure on mingw.
3306         * tests/test-fflush2.c: Include binary-io.h.
3307         (main): Put standard input into binary mode.
3308         * modules/fflush-tests (Depends-on): Add binary-io.
3309
3310 2009-01-17  Bruno Haible  <bruno@clisp.org>
3311
3312         * lib/wchar.in.h: In another particular situation, include only the
3313         system's <wchar.h> file.
3314         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
3315         Reported by Albert Chin-A-Young <china@thewrittenword.com>
3316         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
3317
3318 2009-01-17  Bruno Haible  <bruno@clisp.org>
3319
3320         Support for stripping executables in --enable-relocatable.
3321         * build-aux/install-reloc: Expect one more argument, or an environment
3322         variable RELOC_STRIP_PROG. If set, strip the destination program and
3323         its wrapper.
3324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
3325         RELOC_STRIP_PROG.
3326         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
3327         to set RELOCATABLE_STRIP.
3328         * NEWS: Mention the new Makefile requirement.
3329
3330 2009-01-17  Bruno Haible  <bruno@clisp.org>
3331
3332         * build-aux/install-reloc: Remove debugging information left over by
3333         C compiler on MacOS X.
3334
3335 2009-01-17  Bruno Haible  <bruno@clisp.org>
3336
3337         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
3338         * lib/progreloc.c (find_executable): Fix type of pointer passed to
3339         _NSGetExecutablePath.
3340
3341 2009-01-16  Jim Meyering  <meyering@redhat.com>
3342
3343         strerror: avoid warnings about discarding "const"
3344         * lib/strerror.c (rpl_strerror): Instead of returning a const
3345         string from each and every "case", use a variable, and add a single
3346         cast after the switch.
3347
3348 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
3349
3350         * lib/arpa_inet.in.h: Add extern "C" block for C++.
3351
3352 2009-01-16  Bruno Haible  <bruno@clisp.org>
3353
3354         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
3355         array initializer syntax that also works in C++ mode.
3356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3357
3358 2009-01-16  Jim Meyering  <meyering@redhat.com>
3359
3360         poll: suppress a warning
3361         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
3362         to ignore "...unsigned expression < 0 is always false" warnings.
3363
3364 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
3365
3366         poll: remove declarations of unused variables
3367         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
3368         sockbuf and optlen.
3369
3370 2009-01-15  Bruno Haible  <bruno@clisp.org>
3371
3372         Make fflush-after-ungetc POSIX compliant on BSD systems.
3373         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
3374         (clear_ungetc_buffer): Implement also for other systems.
3375         (rpl_fflush): On glibc systems, invoke
3376         clear_ungetc_buffer_preserving_position. Otherwise, invoke
3377         clear_ungetc_buffer after fetching the stream's position, not before.
3378
3379 2009-01-15  Bruno Haible  <bruno@clisp.org>
3380
3381         Make fflush-after-ungetc POSIX compliant on glibc systems.
3382         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
3383         after ungetc.
3384         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
3385         (rpl_fflush): On glibc systems, simply call the system's fflush
3386         function after clearing the ungetc buffer.
3387         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
3388         Instead, lseek only to the end of file, then use the system's fseeko
3389         for the rest. On glibc systems, reset the EOF indicator bit.
3390
3391 2009-01-15  Jim Meyering  <meyering@redhat.com>
3392
3393         openmp.m4: revert quote-adding change, for portability to older autoconf
3394         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
3395         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
3396         Simon Josefsson noticed the problem when using autoconf-2.61.
3397
3398 2009-01-15  Bruno Haible  <bruno@clisp.org>
3399
3400         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
3401         * tests/test-fflush2.c (ASSERT): Always fail.
3402         (main): Add two tests for fflush() after ungetc(), taking into account
3403         the Austin Group's clarification.
3404         Suggested by Eric Blake.
3405
3406 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
3407
3408         mktime.m4: remove K&R-style function prototypes
3409         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
3410         for the Sun C++ compiler.
3411
3412 2009-01-14  Bruno Haible  <bruno@clisp.org>
3413
3414         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
3415         while including <wchar.h>.
3416         * lib/wchar.in.h: In two particular situations on HP-UX, include only
3417         the system's <wchar.h> file.
3418         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3419
3420 2009-01-14  Bruno Haible  <bruno@clisp.org>
3421
3422         * m4/csharp.m4: Don't mention gettext on the serial number line.
3423         * m4/csharpexec.m4: Likewise.
3424         * m4/eaccess.m4: Likewise.
3425         * m4/javaexec.m4: Likewise.
3426         * m4/sig_atomic_t.m4: Likewise.
3427         * m4/tmpdir.m4: Likewise.
3428         * m4/intldir.m4: Bump gettext version.
3429         * m4/lib-ld.m4: Likewise.
3430
3431 2009-01-14  Bruno Haible  <bruno@clisp.org>
3432
3433         * lib/progname.c (set_program_name): Add more comments.
3434         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3435
3436 2009-01-14  Simon Josefsson  <simon@josefsson.org>
3437
3438         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
3439         were sys/stat.h does not define it.
3440
3441 2009-01-14  Jim Meyering  <meyering@redhat.com>
3442
3443         many *.m4 files: improve m4 quoting
3444         99% of this change was performed by running the following commands:
3445         git ls-files | grep '\.m4$' | xargs perl -pi \
3446           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
3447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3449           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
3450         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
3451         The remainder were to add Copyright dates, increment serial numbers,
3452         undo some changes in comments, exclude m4/intl.m4, and add quotes
3453         around the "1" in ",1" where the unusual spacing prohibited the
3454         above regexps from doing the job.  For more details, see
3455         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
3456         * m4/acl.m4: Modified.
3457         * m4/afs.m4: Likewise.
3458         * m4/alloca.m4: Likewise.
3459         * m4/argp.m4: Likewise.
3460         * m4/argz.m4: Likewise.
3461         * m4/atexit.m4: Likewise.
3462         * m4/bison-i18n.m4: Likewise.
3463         * m4/bison.m4: Likewise.
3464         * m4/byteswap.m4: Likewise.
3465         * m4/c-stack.m4: Likewise.
3466         * m4/c-strtod.m4: Likewise.
3467         * m4/calloc.m4: Likewise.
3468         * m4/canonicalize-lgpl.m4: Likewise.
3469         * m4/chown.m4: Likewise.
3470         * m4/clock_time.m4: Likewise.
3471         * m4/codeset.m4: Likewise.
3472         * m4/copy-file.m4: Likewise.
3473         * m4/csharp.m4: Likewise.
3474         * m4/csharpcomp.m4: Likewise.
3475         * m4/csharpexec.m4: Likewise.
3476         * m4/d-ino.m4: Likewise.
3477         * m4/d-type.m4: Likewise.
3478         * m4/dirfd.m4: Likewise.
3479         * m4/double-slash-root.m4: Likewise.
3480         * m4/eaccess.m4: Likewise.
3481         * m4/eealloc.m4: Likewise.
3482         * m4/environ.m4: Likewise.
3483         * m4/errno_h.m4: Likewise.
3484         * m4/euidaccess.m4: Likewise.
3485         * m4/execute.m4: Likewise.
3486         * m4/fatal-signal.m4: Likewise.
3487         * m4/fchdir.m4: Likewise.
3488         * m4/fcntl_h.m4: Likewise.
3489         * m4/fileblocks.m4: Likewise.
3490         * m4/filenamecat.m4: Likewise.
3491         * m4/findprog.m4: Likewise.
3492         * m4/flexmember.m4: Likewise.
3493         * m4/fnmatch.m4: Likewise.
3494         * m4/fopen.m4: Likewise.
3495         * m4/fpending.m4: Likewise.
3496         * m4/fprintf-posix.m4: Likewise.
3497         * m4/free.m4: Likewise.
3498         * m4/frexp.m4: Likewise.
3499         * m4/frexpl.m4: Likewise.
3500         * m4/fsusage.m4: Likewise.
3501         * m4/ftruncate.m4: Likewise.
3502         * m4/gc-camellia.m4: Likewise.
3503         * m4/gc-random.m4: Likewise.
3504         * m4/gc.m4: Likewise.
3505         * m4/getaddrinfo.m4: Likewise.
3506         * m4/getcwd-abort-bug.m4: Likewise.
3507         * m4/getcwd-path-max.m4: Likewise.
3508         * m4/getdate.m4: Likewise.
3509         * m4/getdomainname.m4: Likewise.
3510         * m4/getgroups.m4: Likewise.
3511         * m4/gethostname.m4: Likewise.
3512         * m4/gethrxtime.m4: Likewise.
3513         * m4/getline.m4: Likewise.
3514         * m4/getloadavg.m4: Likewise.
3515         * m4/getndelim2.m4: Likewise.
3516         * m4/getpass.m4: Likewise.
3517         * m4/gettext.m4: Likewise.
3518         * m4/gettime.m4: Likewise.
3519         * m4/gettimeofday.m4: Likewise.
3520         * m4/gnulib-common.m4: Likewise.
3521         * m4/group-member.m4: Likewise.
3522         * m4/host-os.m4: Likewise.
3523         * m4/iconv.m4: Likewise.
3524         * m4/iconv_open.m4: Likewise.
3525         * m4/inet_ntop.m4: Likewise.
3526         * m4/inet_pton.m4: Likewise.
3527         * m4/inline.m4: Likewise.
3528         * m4/intldir.m4: Likewise.
3529         * m4/intlmacosx.m4: Likewise.
3530         * m4/intmax.m4: Likewise.
3531         * m4/intmax_t.m4: Likewise.
3532         * m4/inttypes.m4: Likewise.
3533         * m4/inttypes_h.m4: Likewise.
3534         * m4/inttypes-pri.m4: Likewise.
3535         * m4/isapipe.m4: Likewise.
3536         * m4/isnand.m4: Likewise.
3537         * m4/isnanf.m4: Likewise.
3538         * m4/isnanl.m4: Likewise.
3539         * m4/javacomp.m4: Likewise.
3540         * m4/javaexec.m4: Likewise.
3541         * m4/jm-winsz1.m4: Likewise.
3542         * m4/jm-winsz2.m4: Likewise.
3543         * m4/lchown.m4: Likewise.
3544         * m4/lcmessage.m4: Likewise.
3545         * m4/ldexpl.m4: Likewise.
3546         * m4/lib-ld.m4: Likewise.
3547         * m4/lib-link.m4: Likewise.
3548         * m4/libsigsegv.m4: Likewise.
3549         * m4/link-follow.m4: Likewise.
3550         * m4/localcharset.m4: Likewise.
3551         * m4/locale-fr.m4: Likewise.
3552         * m4/locale-ja.m4: Likewise.
3553         * m4/locale-tr.m4: Likewise.
3554         * m4/locale-zh.m4: Likewise.
3555         * m4/lock.m4: Likewise.
3556         * m4/longlong.m4: Likewise.
3557         * m4/ls-mntd-fs.m4: Likewise.
3558         * m4/lstat.m4: Likewise.
3559         * m4/malloc.m4: Likewise.
3560         * m4/mathl.m4: Likewise.
3561         * m4/mbrtowc.m4: Likewise.
3562         * m4/mbstate_t.m4: Likewise.
3563         * m4/mbswidth.m4: Likewise.
3564         * m4/memchr.m4: Likewise.
3565         * m4/memcmp.m4: Likewise.
3566         * m4/memcpy.m4: Likewise.
3567         * m4/memmem.m4: Likewise.
3568         * m4/memmove.m4: Likewise.
3569         * m4/mempcpy.m4: Likewise.
3570         * m4/memrchr.m4: Likewise.
3571         * m4/memset.m4: Likewise.
3572         * m4/minmax.m4: Likewise.
3573         * m4/mkdir-slash.m4: Likewise.
3574         * m4/mkdtemp.m4: Likewise.
3575         * m4/mktime.m4: Likewise.
3576         * m4/mmap-anon.m4: Likewise.
3577         * m4/mountlist.m4: Likewise.
3578         * m4/nanosleep.m4: Likewise.
3579         * m4/nls.m4: Likewise.
3580         * m4/nocrash.m4: Likewise.
3581         * m4/open.m4: Likewise.
3582         * m4/openat.m4: Likewise.
3583         * m4/openmp.m4: Likewise.
3584         * m4/pathmax.m4: Likewise.
3585         * m4/perl.m4: Likewise.
3586         * m4/physmem.m4: Likewise.
3587         * m4/pipe.m4: Likewise.
3588         * m4/po.m4: Likewise.
3589         * m4/poll.m4: Likewise.
3590         * m4/posixtm.m4: Likewise.
3591         * m4/posixver.m4: Likewise.
3592         * m4/printf-frexp.m4: Likewise.
3593         * m4/printf-frexpl.m4: Likewise.
3594         * m4/printf-posix.m4: Likewise.
3595         * m4/printf-posix-rpl.m4: Likewise.
3596         * m4/printf.m4: Likewise.
3597         * m4/progtest.m4: Likewise.
3598         * m4/putenv.m4: Likewise.
3599         * m4/readline.m4: Likewise.
3600         * m4/readlink.m4: Likewise.
3601         * m4/readutmp.m4: Likewise.
3602         * m4/realloc.m4: Likewise.
3603         * m4/regex.m4: Likewise.
3604         * m4/relocatable.m4: Likewise.
3605         * m4/relocatable-lib.m4: Likewise.
3606         * m4/rename-dest-slash.m4: Likewise.
3607         * m4/rename.m4: Likewise.
3608         * m4/rmdir-errno.m4: Likewise.
3609         * m4/rmdir.m4: Likewise.
3610         * m4/roundf.m4: Likewise.
3611         * m4/roundl.m4: Likewise.
3612         * m4/rpmatch.m4: Likewise.
3613         * m4/save-cwd.m4: Likewise.
3614         * m4/selinux-selinux-h.m4: Likewise.
3615         * m4/setenv.m4: Likewise.
3616         * m4/settime.m4: Likewise.
3617         * m4/sig2str.m4: Likewise.
3618         * m4/sig_atomic_t.m4: Likewise.
3619         * m4/signalblocking.m4: Likewise.
3620         * m4/signbit.m4: Likewise.
3621         * m4/sigpipe.m4: Likewise.
3622         * m4/sockets.m4: Likewise.
3623         * m4/sockpfaf.m4: Likewise.
3624         * m4/st_dm_mode.m4: Likewise.
3625         * m4/stat-time.m4: Likewise.
3626         * m4/stdbool.m4: Likewise.
3627         * m4/stdint.m4: Likewise.
3628         * m4/stdint_h.m4: Likewise.
3629         * m4/stpcpy.m4: Likewise.
3630         * m4/stpncpy.m4: Likewise.
3631         * m4/strcase.m4: Likewise.
3632         * m4/strchrnul.m4: Likewise.
3633         * m4/strcspn.m4: Likewise.
3634         * m4/strdup.m4: Likewise.
3635         * m4/strftime.m4: Likewise.
3636         * m4/strndup.m4: Likewise.
3637         * m4/strnlen.m4: Likewise.
3638         * m4/strpbrk.m4: Likewise.
3639         * m4/strptime.m4: Likewise.
3640         * m4/strsep.m4: Likewise.
3641         * m4/strtod.m4: Likewise.
3642         * m4/strtoimax.m4: Likewise.
3643         * m4/strtok_r.m4: Likewise.
3644         * m4/strtol.m4: Likewise.
3645         * m4/strtoll.m4: Likewise.
3646         * m4/strtoul.m4: Likewise.
3647         * m4/strtoull.m4: Likewise.
3648         * m4/strtoumax.m4: Likewise.
3649         * m4/strverscmp.m4: Likewise.
3650         * m4/threadlib.m4: Likewise.
3651         * m4/timegm.m4: Likewise.
3652         * m4/tm_gmtoff.m4: Likewise.
3653         * m4/tmpdir.m4: Likewise.
3654         * m4/tmpfile.m4: Likewise.
3655         * m4/tzset.m4: Likewise.
3656         * m4/uintmax_t.m4: Likewise.
3657         * m4/unlinkdir.m4: Likewise.
3658         * m4/unlocked-io.m4: Likewise.
3659         * m4/uptime.m4: Likewise.
3660         * m4/userspec.m4: Likewise.
3661         * m4/utimbuf.m4: Likewise.
3662         * m4/utime.m4: Likewise.
3663         * m4/utimes-null.m4: Likewise.
3664         * m4/utimes.m4: Likewise.
3665         * m4/vararrays.m4: Likewise.
3666         * m4/vasnprintf.m4: Likewise.
3667         * m4/vfprintf-posix.m4: Likewise.
3668         * m4/vprintf-posix.m4: Likewise.
3669         * m4/wait-process.m4: Likewise.
3670         * m4/wchar_t.m4: Likewise.
3671         * m4/wint_t.m4: Likewise.
3672         * m4/write-any-file.m4: Likewise.
3673         * m4/yield.m4: Likewise.
3674
3675 2009-01-13  Bruno Haible  <bruno@clisp.org>
3676
3677         Avoid test-copy-file.sh failures when ACL support insufficient.
3678         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3679         TESTS_ENVIRONMENT.
3680         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3681         Reported by Jim Meyering.
3682
3683 2009-01-13  Bruno Haible  <bruno@clisp.org>
3684
3685         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3686         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3687         * modules/unistdio/u8-printf-parse (Files): Likewise.
3688         * modules/unistdio/u32-printf-parse (Files): Likewise.
3689         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3690
3691 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3692
3693         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3694         and m4/inttypes_h.m4 too.
3695
3696 2009-01-12  Eric Blake  <ebb9@byu.net>
3697
3698         tests: IRIX 6.2 cc can't compile -0.0 into .data
3699         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3700         rather than at compile-time.
3701         * tests/test-floorl.c (minus_zero): Likewise.
3702         * tests/test-frexpl.c (minus_zero): Likewise.
3703         * tests/test-isnan.c (minus_zerol): Likewise.
3704         * tests/test-isnanl.h (minus_zero): Likewise.
3705         * tests/test-ldexpl.c (minus_zero): Likewise.
3706         * tests/test-roundl.c (minus_zero): Likewise.
3707         * tests/test-signbit.c (minus_zerol): Likewise.
3708         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3709         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3710         * tests/test-truncl.c (minus_zero): Likewise.
3711         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3712         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3713         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3714
3715 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3716
3717         regex: fix glibc bug 9697
3718         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3719         handling.
3720
3721 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3722
3723         regex: fix glibc bug 697
3724         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3725         being NULL also if there are no backreferences.
3726
3727 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3728
3729         regex: merge glibc changes
3730         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3731         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3732         re_string_skip_chars, re_string_reconstruct): Likewise.
3733         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3734
3735 2009-01-07  Jim Meyering  <meyering@redhat.com>
3736
3737         poll: filter through cppi
3738         * lib/poll.c: Indent cpp directives to reflect nesting.
3739
3740 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3741
3742         poll: don't return uninitialized
3743         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3744
3745 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3746
3747         avoid compile failure on AIX 6.1
3748         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3749         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3750
3751 2009-01-04  Jim Meyering  <meyering@redhat.com>
3752
3753         remove duplicate inclusion of <stdio.h>
3754         * tests/test-fprintf-posix.c: Likewise.
3755         * tests/test-printf-posix.c: Likewise.
3756         * tests/test-snprintf-posix.c: Likewise.
3757         * tests/test-sprintf-posix.c: Likewise.
3758         * tests/test-vasprintf-posix.c: Likewise.
3759         * tests/test-vfprintf-posix.c: Likewise.
3760         * tests/test-vprintf-posix.c: Likewise.
3761         * tests/test-vsnprintf-posix.c: Likewise.
3762         * tests/test-vsprintf-posix.c: Likewise.
3763
3764 2009-01-03  Jim Meyering  <meyering@redhat.com>
3765
3766         gnulib-tool: fix sed-based filtering
3767         * gnulib-tool (func_filter_filelist): Remove extra backslash
3768         in sed_fff_filter definition.
3769
3770 2009-01-02  Jim Meyering  <meyering@redhat.com>
3771
3772         strftime: avoid compilation failure on Solaris 2.6
3773         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3774         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3775         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3776         be available.  Reported by Tom G. Christensen.  Details in
3777         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3778
3779 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3780             Bruno Haible  <bruno@clisp.org>
3781
3782         Speed up gnulib-tool by doing more string processing through shell
3783         built-ins.
3784         * gnulib-tool (fast_func_append): New variable.
3785         (func_remove_prefix, func_remove_suffix): New functions.
3786         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3787         (func_filter_filelist): New function.
3788         (func_get_dependencies): Use func_remove_suffix instead of sed.
3789         (func_get_automake_snippet): Use func_filter_filelist instead of a
3790         subshell and sed invocation.
3791
3792 2009-01-01  Bruno Haible  <bruno@clisp.org>
3793
3794         Fix a security bug.
3795         * gnulib-tool (func_import, import, update): Don't allow the characters
3796         '"', '$', '`', '\' in macro arguments that become part of commands that
3797         are evaluated.
3798
3799 2009-01-01  Bruno Haible  <bruno@clisp.org>
3800
3801         * gnulib-tool (func_reset_sigpipe): Add more comments.
3802
3803 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3804
3805         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3806         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3807         already know the answer.
3808
3809 2009-01-01  Jim Meyering  <meyering@redhat.com>
3810
3811         * lib/version-etc.c (version_etc_va): Update copyright year.
3812
3813 2008-12-30  Bruno Haible  <bruno@clisp.org>
3814
3815         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3816         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3817         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3818
3819 2008-12-29  Eric Blake  <ebb9@byu.net>
3820
3821         multiarch: avoid autoconf AC_REQUIRE bug
3822         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3823         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3824         2.63 and older.
3825         Reported by Bruno Haible, and analyzed in
3826         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3827
3828 2008-12-29  Bruno Haible  <bruno@clisp.org>
3829
3830         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3831         files in subdirectories correctly.
3832         Reported by Ralf Wildenhues.
3833
3834 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3835
3836         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3837         rather than 'join FILE -', for Solaris join.
3838
3839 2008-12-29  Bruno Haible  <bruno@clisp.org>
3840
3841         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3842         quoting.
3843         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3844         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3845         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3846         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3847         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3848         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3849         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3850         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3851         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3852         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3853         * m4/nls.m4 (AM_NLS): Likewise.
3854         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3855         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3856         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3857         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3858         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3859         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3860         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3861         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3862         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3863         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3864         * m4/xsize.m4 (gl_XSIZE): Likewise.
3865         Suggested by Jim Meyering.
3866
3867 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3868
3869         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3870         * lib/parse-duration.c: use a switch instead of cascading if's.
3871
3872 2008-12-29  Eric Blake  <ebb9@byu.net>
3873
3874         wchar.h: supply WEOF on Irix 5.3
3875         * lib/wchar.in.h (wint_t): Also supply WEOF.
3876         * lib/wctype.in.h (wint_t): Likewise.
3877         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3878         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3879         Reported by Tom G. Christensen.
3880
3881 2008-12-26  Bruno Haible  <bruno@clisp.org>
3882
3883         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3884         i486, i586, i686.
3885
3886 2008-12-26  Bruno Haible  <bruno@clisp.org>
3887
3888         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3889
3890 2008-12-26  Bruno Haible  <bruno@clisp.org>
3891
3892         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3893         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3894         not __STDC_CONSTANT_MACROS.
3895         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3896
3897 2008-12-25  Bruno Haible  <bruno@clisp.org>
3898
3899         Add support for universal builds to vasnprintf.
3900         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3901         universal builds, guess no.
3902         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3903         * modules/vasprintf-posix (Depends-on): Likewise.
3904         * modules/fprintf-posix (Depends-on): Likewise.
3905         * modules/vfprintf-posix (Depends-on): Likewise.
3906         * modules/snprintf-posix (Depends-on): Likewise.
3907         * modules/vsnprintf-posix (Depends-on): Likewise.
3908         * modules/sprintf-posix (Depends-on): Likewise.
3909         * modules/vsprintf-posix (Depends-on): Likewise.
3910         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3911         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3912         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3913         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3915         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3916         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3917
3918         Add support for universal builds to <inttypes.h>.
3919         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3920         _SCNu64_PREFIX): In Apple
3921         universal builds, define directly, using _LP64.
3922         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3923         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3924         * modules/inttypes (Depends-on): Add multiarch.
3925         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3926
3927         Add support for universal builds to <stdint.h>.
3928         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3929         universal builds, define directly, using _LP64.
3930         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3931         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3932         and size_t.
3933         * modules/stdint (Depends-on): Add multiarch.
3934         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3935
3936         New module 'multiarch'.
3937         * modules/multiarch: New file.
3938         * m4/multiarch.m4: New file.
3939
3940 2008-12-25  Bruno Haible  <bruno@clisp.org>
3941
3942         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3943
3944 2008-12-25  Bruno Haible  <bruno@clisp.org>
3945
3946         * modules/btowc (License): Relicense under LGPLv2+.
3947         * modules/mbsinit (License): Likewise.
3948         * modules/mbrtowc (License): Likewise.
3949         * modules/wcrtomb (License): Likewise.
3950         * modules/streq (License): Likewise.
3951         Reported by David Lutterkort <lutter@redhat.com>.
3952
3953 2008-12-23  Bruno Haible  <bruno@clisp.org>
3954
3955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3956
3957 2008-12-23  Bruno Haible  <bruno@clisp.org>
3958
3959         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3961         GETADDRINFO_LIB, not in LIBS.
3962         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3963         * modules/canon-host (Link): Likewise.
3964         * NEWS: Mention the change.
3965         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3966         GETADDRINFO_LIB.
3967
3968 2008-12-22  Bruno Haible  <bruno@clisp.org>
3969
3970         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3971         * doc/posix-functions/iswalpha_l.texi: Likewise.
3972         * doc/posix-functions/iswblank_l.texi: Likewise.
3973         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3974         * doc/posix-functions/iswctype_l.texi: Likewise.
3975         * doc/posix-functions/iswdigit_l.texi: Likewise.
3976         * doc/posix-functions/iswgraph_l.texi: Likewise.
3977         * doc/posix-functions/iswlower_l.texi: Likewise.
3978         * doc/posix-functions/iswprint_l.texi: Likewise.
3979         * doc/posix-functions/iswpunct_l.texi: Likewise.
3980         * doc/posix-functions/iswspace_l.texi: Likewise.
3981         * doc/posix-functions/iswupper_l.texi: Likewise.
3982         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3983         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3984         * doc/posix-functions/open_wmemstream.texi: Likewise.
3985         * doc/posix-functions/swscanf.texi: Likewise.
3986         * doc/posix-functions/towctrans_l.texi: Likewise.
3987         * doc/posix-functions/towlower.texi: Likewise.
3988         * doc/posix-functions/towlower_l.texi: Likewise.
3989         * doc/posix-functions/towupper.texi: Likewise.
3990         * doc/posix-functions/towupper_l.texi: Likewise.
3991         * doc/posix-functions/vfwprintf.texi: Likewise.
3992         * doc/posix-functions/vfwscanf.texi: Likewise.
3993         * doc/posix-functions/vswscanf.texi: Likewise.
3994         * doc/posix-functions/vwprintf.texi: Likewise.
3995         * doc/posix-functions/vwscanf.texi: Likewise.
3996         * doc/posix-functions/wcpcpy.texi: Likewise.
3997         * doc/posix-functions/wcpncpy.texi: Likewise.
3998         * doc/posix-functions/wcscasecmp.texi: Likewise.
3999         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
4000         * doc/posix-functions/wcscoll_l.texi: Likewise.
4001         * doc/posix-functions/wcsdup.texi: Likewise.
4002         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4003         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
4004         * doc/posix-functions/wcsnlen.texi: Likewise.
4005         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4006         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4007         * doc/posix-functions/wctrans_l.texi: Likewise.
4008         * doc/posix-functions/wctype_l.texi: Likewise.
4009         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
4010         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
4011         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
4012         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
4013         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
4014         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
4015         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
4016         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
4017         * doc/glibc-functions/wcschrnul.texi: Likewise.
4018         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4019         * doc/glibc-functions/wcstod_l.texi: Likewise.
4020         * doc/glibc-functions/wcstof_l.texi: Likewise.
4021         * doc/glibc-functions/wcstol_l.texi: Likewise.
4022         * doc/glibc-functions/wcstold_l.texi: Likewise.
4023         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4024         * doc/glibc-functions/wcstoq.texi: Likewise.
4025         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4026         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4027         * doc/glibc-functions/wcstouq.texi: Likewise.
4028         * doc/glibc-functions/wmempcpy.texi: Likewise.
4029
4030 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
4031             Eric Blake  <ebb9@byu.net>
4032             Paolo Bonzini  <bonzini@gnu.org>
4033             Bruno Haible  <bruno@clisp.org>
4034
4035         Make c-stack work on Haiku.
4036         * lib/c-stack.c (SA_ONSTACK): Define fallback.
4037         (c_stack_action): Use SA_ONSTACK flag.
4038
4039 2008-12-22  Bruno Haible  <bruno@clisp.org>
4040
4041         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
4042
4043 2008-12-22  Bruno Haible  <bruno@clisp.org>
4044
4045         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
4046         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
4047         being overridden.
4048         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
4049         New macros.
4050         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
4051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
4052         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
4053         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
4054
4055 2008-12-22  Bruno Haible  <bruno@clisp.org>
4056
4057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
4058         from test code.
4059
4060 2008-12-22  Eric Blake  <ebb9@byu.net>
4061
4062         Avoid gcc warnings on cygwin.
4063         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
4064         Avoid unused variable.
4065         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
4066         Likewise.
4067
4068 2008-12-22  Bruno Haible  <bruno@clisp.org>
4069
4070         Remove HAVE_MBRTOWC conditionals.
4071         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
4072         (mbscasecmp): Assume mbrtowc function.
4073         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
4074         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
4075         * lib/mbschr.c: Include mbuiter.h unconditionally.
4076         (mbschr): Assume mbrtowc function.
4077         * lib/mbscspn.c: Include mbuiter.h unconditionally.
4078         (mbscspn): Assume mbrtowc function.
4079         * lib/mbslen.c: Include mbuiter.h unconditionally.
4080         (mbslen): Assume mbrtowc function.
4081         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
4082         (mbsncasecmp): Assume mbrtowc function.
4083         * lib/mbsnlen.c: Include mbiter.h unconditionally.
4084         (mbsnlen): Assume mbrtowc function.
4085         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
4086         (mbspbrk): Assume mbrtowc function.
4087         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
4088         (mbspcasecmp): Assume mbrtowc function.
4089         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
4090         (mbsrchr): Assume mbrtowc function.
4091         * lib/mbssep.c: Include mbuiter.h unconditionally.
4092         (mbssep): Assume mbrtowc function.
4093         * lib/mbsspn.c: Include mbuiter.h unconditionally.
4094         (mbsspn): Assume mbrtowc function.
4095         * lib/mbsstr.c: Include mbuiter.h unconditionally.
4096         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
4097         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
4098         (mbstok_r): Assume mbrtowc function.
4099         * lib/propername.c: Include mbuiter.h unconditionally.
4100         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
4101         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
4102         (trim2): Assume mbrtowc function.
4103         * lib/mbswidth.c (mbsinit): Remove fallback definition.
4104         (mbsnwidth): Assume mbrtowc function.
4105         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
4106         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
4107         fallback definitions.
4108         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
4109
4110 2008-12-22  Bruno Haible  <bruno@clisp.org>
4111
4112         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
4113
4114 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
4115
4116         * modules/regex: Request emulations for the mb*/wc* functions we need.
4117         * m4/regex.m4: Don't look for those functions here.
4118         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
4119
4120 2008-12-22  Bruno Haible  <bruno@clisp.org>
4121
4122         * modules/fnmatch (Depends-on): Remove duplicated dependency.
4123
4124 2008-12-21  Bruno Haible  <bruno@clisp.org>
4125
4126         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
4127         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
4128         (Include): Remove conditionalization.
4129         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
4130         (Include): Remove conditionalization.
4131         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
4132         (Include): Remove conditionalization.
4133         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
4134         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4135         * NEWS: Mention the change.
4136         Reported by Alan Hourihane <alanh@fairlite.co.uk>
4137         via Sergey Poznyakoff <gray@gnu.org.ua>.
4138
4139 2008-12-21  Bruno Haible  <bruno@clisp.org>
4140
4141         * MODULES.html.sh (Extended multibyte and wide character utilities
4142         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
4143         wcrtomb, wcsrtombs.
4144         (Support for systems lacking POSIX:2008): Add accept, bind, close,
4145         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
4146         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
4147         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
4148
4149 2008-12-21  Bruno Haible  <bruno@clisp.org>
4150
4151         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
4152
4153 2008-12-21  Bruno Haible  <bruno@clisp.org>
4154
4155         * modules/wcsnrtombs-tests: New file.
4156         * tests/test-wcsnrtombs1.sh: New file.
4157         * tests/test-wcsnrtombs2.sh: New file.
4158         * tests/test-wcsnrtombs3.sh: New file.
4159         * tests/test-wcsnrtombs4.sh: New file.
4160         * tests/test-wcsnrtombs.c: New file.
4161
4162         New module 'wcsnrtombs'.
4163         * lib/wchar.in.h (wcsnrtombs): New declaration.
4164         * lib/wcsnrtombs.c: New file.
4165         * lib/wcsrtombs-state.c: New file.
4166         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
4167         (internal_state): Remove variable.
4168         * m4/wcsnrtombs.m4: New file.
4169         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
4170         compilation units.
4171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
4172         HAVE_WCSNRTOMBS.
4173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
4174         HAVE_WCSNRTOMBS.
4175         * modules/wcsnrtombs: New file.
4176         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
4177         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4178
4179 2008-12-21  Bruno Haible  <bruno@clisp.org>
4180
4181         * modules/wcsrtombs-tests: New file.
4182         * tests/test-wcsrtombs1.sh: New file.
4183         * tests/test-wcsrtombs2.sh: New file.
4184         * tests/test-wcsrtombs3.sh: New file.
4185         * tests/test-wcsrtombs4.sh: New file.
4186         * tests/test-wcsrtombs.c: New file.
4187
4188         New module 'wcsrtombs'.
4189         * lib/wchar.in.h (wcsrtombs): New declaration.
4190         * lib/wcsrtombs.c: New file.
4191         * m4/wcsrtombs.m4: New file.
4192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
4193         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
4195         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4196         * modules/wcsrtombs: New file.
4197         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
4198         bugs.
4199
4200 2008-12-21  Bruno Haible  <bruno@clisp.org>
4201
4202         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
4203         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
4204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
4205         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
4206         if not correct.
4207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
4208         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
4209         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4210         m4/locale-zh.m4, m4/codeset.m4.
4211         * doc/posix-functions/wcrtomb.texi: Document the bug.
4212
4213 2008-12-21  Bruno Haible  <bruno@clisp.org>
4214
4215         Work around a btowc() bug on IRIX 6.5.
4216         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
4217         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
4218         REPLACE_WTOBC if not.
4219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
4220         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
4221         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
4222
4223 2008-12-21  Bruno Haible  <bruno@clisp.org>
4224
4225         * modules/wcrtomb-tests: New file.
4226         * tests/test-wcrtomb.sh: New file.
4227         * tests/test-wcrtomb.c: New file.
4228
4229         New module 'wcrtomb'.
4230         * lib/wchar.in.h (wcrtomb): New declaration.
4231         * lib/wcrtomb.c: New file.
4232         * m4/wcrtomb.m4: New file.
4233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
4234         HAVE_WCRTOMB.
4235         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
4236         HAVE_WCRTOMB.
4237         * modules/wcrtomb: New file.
4238         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4239
4240 2008-12-21  Bruno Haible  <bruno@clisp.org>
4241
4242         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
4243         * modules/mbsrtowcs (Files): Likewise.
4244         * modules/wctob (Files): Likewise.
4245         * modules/c-strcase-tests (Files): Likewise.
4246         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4247         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4248         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4249         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4250         * modules/vasnprintf-posix-tests (Files): Likewise.
4251
4252 2008-12-21  William Pursell  <bill.pursell@gmail.com>
4253
4254         gitlog-to-changelog: pass all command-line arguments to git-log
4255         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
4256         it is sometimes convenient to filter the commits in various ways.
4257         gitlog-to-changelog only allows --since to specify a start date,
4258         but git-log itself supports many other filtering mechanisms.
4259         At the moment, I want to filter by branch name.  Rather than
4260         adding a --branch option to gitlog-to-changelog, it seems more
4261         flexible to simply pass all options directly to git-log and let
4262         git do the work.  Notice that this effectively makes --since a
4263         redundant option for gitlog-to-changelog, but removing it would
4264         require current usage to change since calls would then require
4265         an additional '--'.
4266
4267 2008-12-21  Bruno Haible  <bruno@clisp.org>
4268
4269         * modules/mbsnrtowcs-tests: New file.
4270         * tests/test-mbsnrtowcs1.sh: New file.
4271         * tests/test-mbsnrtowcs2.sh: New file.
4272         * tests/test-mbsnrtowcs3.sh: New file.
4273         * tests/test-mbsnrtowcs4.sh: New file.
4274         * tests/test-mbsnrtowcs.c: New file.
4275
4276         New module 'mbsnrtowcs'.
4277         * lib/wchar.in.h (mbsnrtowcs): New declaration.
4278         * lib/mbsnrtowcs.c: New file.
4279         * lib/mbsrtowcs-state.c: New file.
4280         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
4281         (internal_state): Remove variable.
4282         * m4/mbsnrtowcs.m4: New file.
4283         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
4284         compilation units.
4285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
4286         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4287         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
4288         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4289         * modules/mbsnrtowcs: New file.
4290         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
4291         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
4292         portability problem.
4293
4294 2008-12-21  Bruno Haible  <bruno@clisp.org>
4295
4296         Work around mbsrtowcs bug.
4297         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
4298         (gl_FUNC_MBSRTOWCS): Invoke it.
4299         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4300         m4/locale-zh.m4.
4301         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
4302
4303 2008-12-21  Bruno Haible  <bruno@clisp.org>
4304
4305         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
4306
4307 2008-12-21  Bruno Haible  <bruno@clisp.org>
4308
4309         Update doc for AIX.
4310         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
4311         16-bit wchar_t type.
4312         * doc/posix-functions/btowc.texi: Likewise.
4313         * doc/posix-functions/fgetwc.texi: Likewise.
4314         * doc/posix-functions/fgetws.texi: Likewise.
4315         * doc/posix-functions/fputwc.texi: Likewise.
4316         * doc/posix-functions/fputws.texi: Likewise.
4317         * doc/posix-functions/fwide.texi: Likewise.
4318         * doc/posix-functions/fwprintf.texi: Likewise.
4319         * doc/posix-functions/fwscanf.texi: Likewise.
4320         * doc/posix-functions/getwchar.texi: Likewise.
4321         * doc/posix-functions/getwc.texi: Likewise.
4322         * doc/posix-functions/iswalnum.texi: Likewise.
4323         * doc/posix-functions/iswalpha.texi: Likewise.
4324         * doc/posix-functions/iswblank.texi: Likewise.
4325         * doc/posix-functions/iswcntrl.texi: Likewise.
4326         * doc/posix-functions/iswctype.texi: Likewise.
4327         * doc/posix-functions/iswdigit.texi: Likewise.
4328         * doc/posix-functions/iswgraph.texi: Likewise.
4329         * doc/posix-functions/iswlower.texi: Likewise.
4330         * doc/posix-functions/iswprint.texi: Likewise.
4331         * doc/posix-functions/iswpunct.texi: Likewise.
4332         * doc/posix-functions/iswspace.texi: Likewise.
4333         * doc/posix-functions/iswupper.texi: Likewise.
4334         * doc/posix-functions/iswxdigit.texi: Likewise.
4335         * doc/posix-functions/mbrtowc.texi: Likewise.
4336         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4337         * doc/posix-functions/mbstowcs.texi: Likewise.
4338         * doc/posix-functions/mbtowc.texi: Likewise.
4339         * doc/posix-functions/putwchar.texi: Likewise.
4340         * doc/posix-functions/putwc.texi: Likewise.
4341         * doc/posix-functions/swprintf.texi: Likewise.
4342         * doc/posix-functions/tolower.texi: Likewise.
4343         * doc/posix-functions/toupper.texi: Likewise.
4344         * doc/posix-functions/towctrans.texi: Likewise.
4345         * doc/posix-functions/ungetwc.texi: Likewise.
4346         * doc/posix-functions/vswprintf.texi: Likewise.
4347         * doc/posix-functions/wcrtomb.texi: Likewise.
4348         * doc/posix-functions/wcscat.texi: Likewise.
4349         * doc/posix-functions/wcschr.texi: Likewise.
4350         * doc/posix-functions/wcscmp.texi: Likewise.
4351         * doc/posix-functions/wcscoll.texi: Likewise.
4352         * doc/posix-functions/wcscpy.texi: Likewise.
4353         * doc/posix-functions/wcscspn.texi: Likewise.
4354         * doc/posix-functions/wcsftime.texi: Likewise.
4355         * doc/posix-functions/wcslen.texi: Likewise.
4356         * doc/posix-functions/wcsncat.texi: Likewise.
4357         * doc/posix-functions/wcsncmp.texi: Likewise.
4358         * doc/posix-functions/wcsncpy.texi: Likewise.
4359         * doc/posix-functions/wcspbrk.texi: Likewise.
4360         * doc/posix-functions/wcsrchr.texi: Likewise.
4361         * doc/posix-functions/wcsrtombs.texi: Likewise.
4362         * doc/posix-functions/wcsspn.texi: Likewise.
4363         * doc/posix-functions/wcsstr.texi: Likewise.
4364         * doc/posix-functions/wcstod.texi: Likewise.
4365         * doc/posix-functions/wcstof.texi: Likewise.
4366         * doc/posix-functions/wcstoimax.texi: Likewise.
4367         * doc/posix-functions/wcstok.texi: Likewise.
4368         * doc/posix-functions/wcstold.texi: Likewise.
4369         * doc/posix-functions/wcstoll.texi: Likewise.
4370         * doc/posix-functions/wcstol.texi: Likewise.
4371         * doc/posix-functions/wcstombs.texi: Likewise.
4372         * doc/posix-functions/wcstoull.texi: Likewise.
4373         * doc/posix-functions/wcstoul.texi: Likewise.
4374         * doc/posix-functions/wcstoumax.texi: Likewise.
4375         * doc/posix-functions/wcswidth.texi: Likewise.
4376         * doc/posix-functions/wcsxfrm.texi: Likewise.
4377         * doc/posix-functions/wctob.texi: Likewise.
4378         * doc/posix-functions/wctomb.texi: Likewise.
4379         * doc/posix-functions/wctrans.texi: Likewise.
4380         * doc/posix-functions/wctype.texi: Likewise.
4381         * doc/posix-functions/wcwidth.texi: Likewise.
4382         * doc/posix-functions/wmemchr.texi: Likewise.
4383         * doc/posix-functions/wmemcmp.texi: Likewise.
4384         * doc/posix-functions/wmemcpy.texi: Likewise.
4385         * doc/posix-functions/wmemmove.texi: Likewise.
4386         * doc/posix-functions/wmemset.texi: Likewise.
4387         * doc/posix-functions/wprintf.texi: Likewise.
4388         * doc/posix-functions/wscanf.texi: Likewise.
4389
4390 2008-12-21  Bruno Haible  <bruno@clisp.org>
4391
4392         Update doc for HP-UX 11.11.
4393         * doc/posix-functions/btowc.texi: Clarify that the function is missing
4394         in HP-UX version 11.00, not in all versions of HP-UX 11.
4395         * doc/posix-functions/fwide.texi: Likewise.
4396         * doc/posix-functions/fwprintf.texi: Likewise.
4397         * doc/posix-functions/fwscanf.texi: Likewise.
4398         * doc/posix-functions/inet_ntop.texi: Likewise.
4399         * doc/posix-functions/inet_pton.texi: Likewise.
4400         * doc/posix-functions/mbrlen.texi: Likewise.
4401         * doc/posix-functions/mbrtowc.texi: Likewise.
4402         * doc/posix-functions/mbsinit.texi: Likewise.
4403         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4404         * doc/posix-functions/swprintf.texi: Likewise.
4405         * doc/posix-functions/swscanf.texi: Likewise.
4406         * doc/posix-functions/towctrans.texi: Likewise.
4407         * doc/posix-functions/vfwprintf.texi: Likewise.
4408         * doc/posix-functions/vswprintf.texi: Likewise.
4409         * doc/posix-functions/vwprintf.texi: Likewise.
4410         * doc/posix-functions/wcrtomb.texi: Likewise.
4411         * doc/posix-functions/wcsrtombs.texi: Likewise.
4412         * doc/posix-functions/wcsstr.texi: Likewise.
4413         * doc/posix-functions/wctob.texi: Likewise.
4414         * doc/posix-functions/wctrans.texi: Likewise.
4415         * doc/posix-functions/wmemchr.texi: Likewise.
4416         * doc/posix-functions/wmemcmp.texi: Likewise.
4417         * doc/posix-functions/wmemcpy.texi: Likewise.
4418         * doc/posix-functions/wmemmove.texi: Likewise.
4419         * doc/posix-functions/wmemset.texi: Likewise.
4420         * doc/posix-functions/wprintf.texi: Likewise.
4421         * doc/posix-functions/wscanf.texi: Likewise.
4422
4423 2008-12-21  Bruno Haible  <bruno@clisp.org>
4424
4425         Work around a portability problem.
4426         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
4427         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
4428
4429 2008-12-20  Bruno Haible  <bruno@clisp.org>
4430
4431         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
4432         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
4433         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
4434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
4435         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
4436
4437         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
4438         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
4439         set.
4440         (GNULIB_defined_mbstate_t): New macro.
4441         (mbsinit): Redefine if REPLACE_MBSINIT is set.
4442         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
4443         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
4444         reuses the system's mbrtowc function but works around the bugs.
4445         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
4446         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
4447         macros.
4448         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
4449         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
4450         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
4451         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
4452         REPLACE_MBSINIT if mbsinit needs to be overridden.
4453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
4454         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4455         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
4456         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4457         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4458         m4/locale-zh.m4.
4459         (Depends): Add mbsinit.
4460         * modules/mbsinit (Depends): Add mbrtowc.
4461         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
4462
4463 2008-12-20  Bruno Haible  <bruno@clisp.org>
4464
4465         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
4466         so that there are no conversion errors on AIX.
4467         * tests/test-mbsrtowcs.c (main): LIkewise.
4468
4469 2008-12-20  Bruno Haible  <bruno@clisp.org>
4470
4471         Work around wctob bug on Solaris <= 9.
4472         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
4473         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
4474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
4475         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
4476         * modules/wctob (Files): Add m4/locale-fr.m4.
4477         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
4478
4479 2008-12-20  Bruno Haible  <bruno@clisp.org>
4480
4481         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
4482         /dev/null.
4483         * tests/test-select-in.sh: Likewise.
4484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4485
4486 2008-12-20  Bruno Haible  <bruno@clisp.org>
4487
4488         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
4489         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
4490         Cygwin 1.5.x.
4491
4492 2008-12-20  Bruno Haible  <bruno@clisp.org>
4493
4494         Ensure mbstate_t is defined on HP-UX 11.11.
4495         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
4496         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
4497         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
4498         AC_USE_SYSTEM_EXTENSIONS.
4499         * modules/fnmatch (Depends-on): Add extensions.
4500         * modules/mbrlen (Depends-on): Likewise.
4501         * modules/mbrtowc (Depends-on): Likewise.
4502         * modules/mbsinit (Depends-on): Likewise.
4503         * modules/mbsrtowcs (Depends-on): Likewise.
4504         * modules/mbswidth (Depends-on): Likewise.
4505         * modules/quotearg (Depends-on): Likewise.
4506         * modules/strftime (Depends-on): Likewise.
4507
4508 2008-12-20  Bruno Haible  <bruno@clisp.org>
4509
4510         Ensure wctob is declared on IRIX 6.5.
4511         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
4512         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
4513         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
4514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
4515         of HAVE_WCTOB.
4516         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
4517         HAVE_WCTOB.
4518         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
4519
4520 2008-12-19  Bruno Haible  <bruno@clisp.org>
4521
4522         * modules/mbsrtowcs-tests: New file.
4523         * tests/test-mbsrtowcs1.sh: New file.
4524         * tests/test-mbsrtowcs2.sh: New file.
4525         * tests/test-mbsrtowcs3.sh: New file.
4526         * tests/test-mbsrtowcs4.sh: New file.
4527         * tests/test-mbsrtowcs.c: New file.
4528
4529         New module 'mbsrtowcs'.
4530         * lib/wchar.in.h (mbsrtowcs): New declaration.
4531         * lib/mbsrtowcs.c: New file.
4532         * m4/mbsrtowcs.m4: New file.
4533         * modules/mbsrtowcs: New file.
4534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
4535         HAVE_MBSRTOWCS.
4536         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
4537         HAVE_MBSRTOWCS.
4538         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
4539
4540 2008-12-19  Bruno Haible  <bruno@clisp.org>
4541
4542         New module 'mbrlen'.
4543         * lib/wchar.in.h (mbrlen): New declaration.
4544         * lib/mbrlen.c: New file.
4545         * m4/mbrlen.m4: New file.
4546         * modules/mbrlen: New file.
4547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
4548         HAVE_MBRLEN.
4549         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
4550         HAVE_MBRLEN.
4551         * doc/posix-functions/mbrlen.texi: Document the new module.
4552
4553 2008-12-19  Bruno Haible  <bruno@clisp.org>
4554
4555         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4556         * modules/mbrtowc (Depends-on): Add verify.
4557         Suggested by Paul Eggert.
4558
4559 2008-12-18  Bruno Haible  <bruno@clisp.org>
4560
4561         * modules/mbsinit-tests: New file.
4562         * tests/test-mbsinit.sh: New file.
4563         * tests/test-mbsinit.c: New file.
4564
4565 2008-12-18  Bruno Haible  <bruno@clisp.org>
4566
4567         * modules/mbrtowc-tests: New file.
4568         * tests/test-mbrtowc1.sh: New file.
4569         * tests/test-mbrtowc2.sh: New file.
4570         * tests/test-mbrtowc3.sh: New file.
4571         * tests/test-mbrtowc4.sh: New file.
4572         * tests/test-mbrtowc.c: New file.
4573
4574         New module 'mbrtowc'.
4575         * lib/wchar.in.h (mbstate_t): Override when the system does not have
4576         mbsinit and mbrtowc.
4577         (mbrtowc): New declaration.
4578         * lib/mbrtowc.c: New file.
4579         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4580         * modules/mbrtowc: New file.
4581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4582         HAVE_MBRTOWC.
4583         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4584         HAVE_MBRTOWC.
4585         * doc/posix-functions/mbrtowc.texi: Document the new module.
4586
4587 2008-12-18  Bruno Haible  <bruno@clisp.org>
4588
4589         New module 'wctob'.
4590         * lib/wchar.in.h (wctob): New declaration.
4591         * lib/wctob.c: New file.
4592         * m4/wctob.m4: New file.
4593         * modules/wctob: New file.
4594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4595         HAVE_WCTOB.
4596         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4597         * doc/posix-functions/wctob.texi: Document the new module.
4598
4599 2008-12-18  Bruno Haible  <bruno@clisp.org>
4600
4601         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4602         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4603
4604 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4605
4606         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4607         G. Christensen" <tgc@jupiterrise.com>.
4608
4609         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4610         G. Christensen" <tgc@jupiterrise.com>.
4611
4612         * lib/flock.c: Need to include string.h.  Reported by "Tom
4613         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4614         <ebb9@byu.net>.
4615
4616 2008-12-18  Bruno Haible  <bruno@clisp.org>
4617
4618         * m4/locale-ja.m4: New file, from GNU gettext.
4619
4620 2008-12-17  Bruno Haible  <bruno@clisp.org>
4621
4622         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4623         Suggested by Eric Blake.
4624
4625 2008-12-17  Bruno Haible  <bruno@clisp.org>
4626
4627         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4628
4629 2008-12-17  Bruno Haible  <bruno@clisp.org>
4630
4631         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4632         * modules/mbsinit (Depends-on): Add verify.
4633         Suggested by Paul Eggert.
4634
4635 2008-12-17  Bruno Haible  <bruno@clisp.org>
4636
4637         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4638         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4639         gl_FUNC_MBRTOWC.
4640         * m4/mbiter.m4 (gl_MBITER): LIkewise.
4641         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4642         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4643         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4644         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4645         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4646         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4647         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4648         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4649         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4650         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4651         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4652         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4653         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4654         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4655         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4656         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4657         * modules/trim (configure.ac): Likewise.
4658
4659 2008-12-17  Bruno Haible  <bruno@clisp.org>
4660
4661         * modules/btowc-tests: New file.
4662         * tests/test-btowc1.sh: New file.
4663         * tests/test-btowc2.sh: New file.
4664         * tests/test-btowc.c: New file.
4665
4666         New module 'btowc'.
4667         * lib/wchar.in.h (btowc): New declaration.
4668         * lib/btowc.c: New file.
4669         * m4/btowc.m4: New file.
4670         * modules/btowc: New file.
4671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4672         HAVE_BTOWC.
4673         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4674         * doc/posix-functions/btowc.texi: Document the new module.
4675
4676 2008-12-17  Bruno Haible  <bruno@clisp.org>
4677
4678         New module 'mbsinit'.
4679         * lib/wchar.in.h (mbsinit): New declaration.
4680         * lib/mbsinit.c: New file.
4681         * m4/mbsinit.m4: New file.
4682         * modules/mbsinit: New file.
4683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4684         HAVE_MBSINIT.
4685         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4686         HAVE_MBSINIT.
4687         * doc/posix-functions/mbsinit.texi: Document the new module.
4688
4689 2008-12-16  Bruno Haible  <bruno@clisp.org>
4690
4691         * lib/unistd.in.h: Add comment.
4692         * tests/test-environ.c: Don't include <stdlib.h>.
4693
4694 2008-12-16  Bruno Haible  <bruno@clisp.org>
4695
4696         * lib/parse-duration.h (parse_duration): Document return value
4697         convention.
4698         * lib/parse-duration.c: Include specification header first. Add
4699         comments.
4700         (_): Remove macro.
4701         (parse_year_month_day, parse_hour_minute_second): Move side effects
4702         outside of strchr call.
4703         (parse_non_iso8601): Move side effects outside of isspace call.
4704         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4705         call.
4706
4707 2008-12-16  Bruno Haible  <bruno@clisp.org>
4708
4709         * tests/test-parse-duration.sh: Produce no output when the test
4710         succeeds.
4711
4712 2008-12-16  Bruno Haible  <bruno@clisp.org>
4713
4714         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4715         expressions.
4716
4717 2008-12-15  Bruno Haible  <bruno@clisp.org>
4718
4719         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4720         * doc/glibc-functions/flistxattr.texi: Likewise.
4721         * doc/glibc-functions/fopencookie.texi: Likewise.
4722         * doc/glibc-functions/fremovexattr.texi: Likewise.
4723         * doc/glibc-functions/fsetxattr.texi: Likewise.
4724         * doc/glibc-functions/getxattr.texi: Likewise.
4725         * doc/glibc-functions/lgetxattr.texi: Likewise.
4726         * doc/glibc-functions/listxattr.texi: Likewise.
4727         * doc/glibc-functions/llistxattr.texi: Likewise.
4728         * doc/glibc-functions/lremovexattr.texi: Likewise.
4729         * doc/glibc-functions/lsetxattr.texi: Likewise.
4730         * doc/glibc-functions/removexattr.texi: Likewise.
4731         * doc/glibc-functions/setxattr.texi: Likewise.
4732         * doc/posix-functions/open_memstream.texi: Likewise.
4733
4734 2008-12-15  Eric Blake  <ebb9@byu.net>
4735
4736         Update doc for cygwin 1.7.
4737         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4738         functions.
4739         * doc/posix-functions/fchmodat.texi: Likewise.
4740         * doc/posix-functions/fchownat.texi: Likewise.
4741         * doc/posix-functions/fdopendir.texi: Likewise.
4742         * doc/posix-functions/fmemopen.texi: Likewise.
4743         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4744         * doc/posix-functions/fstatat.texi: Likewise.
4745         * doc/posix-functions/futimens.texi: Likewise.
4746         * doc/posix-functions/gai_strerror.texi: Likewise.
4747         * doc/posix-functions/getaddrinfo.texi: Likewise.
4748         * doc/posix-functions/getnameinfo.texi: Likewise.
4749         * doc/posix-functions/if_freenameindex.texi: Likewise.
4750         * doc/posix-functions/if_indextoname.texi: Likewise.
4751         * doc/posix-functions/if_nameindex.texi: Likewise.
4752         * doc/posix-functions/if_nametoindex.texi: Likewise.
4753         * doc/posix-functions/insque.texi: Likewise.
4754         * doc/posix-functions/linkat.texi: Likewise.
4755         * doc/posix-functions/llrint.texi: Likewise.
4756         * doc/posix-functions/llrintf.texi: Likewise.
4757         * doc/posix-functions/llrintl.texi: Likewise.
4758         * doc/posix-functions/lockf.texi: Likewise.
4759         * doc/posix-functions/lrintl.texi: Likewise.
4760         * doc/posix-functions/mkdirat.texi: Likewise.
4761         * doc/posix-functions/mkfifoat.texi: Likewise.
4762         * doc/posix-functions/mknodat.texi: Likewise.
4763         * doc/posix-functions/mq_close.texi: Likewise.
4764         * doc/posix-functions/mq_getattr.texi: Likewise.
4765         * doc/posix-functions/mq_notify.texi: Likewise.
4766         * doc/posix-functions/mq_open.texi: Likewise.
4767         * doc/posix-functions/mq_receive.texi: Likewise.
4768         * doc/posix-functions/mq_send.texi: Likewise.
4769         * doc/posix-functions/mq_setattr.texi: Likewise.
4770         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4771         * doc/posix-functions/mq_timedsend.texi: Likewise.
4772         * doc/posix-functions/mq_unlink.texi: Likewise.
4773         * doc/posix-functions/open_memstream.texi: Likewise.
4774         * doc/posix-functions/openat.texi: Likewise.
4775         * doc/posix-functions/posix_fadvise.texi: Likewise.
4776         * doc/posix-functions/posix_fallocate.texi: Likewise.
4777         * doc/posix-functions/posix_madvise.texi: Likewise.
4778         * doc/posix-functions/posix_memalign.texi: Likewise.
4779         * doc/posix-functions/posix_openpt.texi: Likewise.
4780         * doc/posix-functions/readlinkat.texi: Likewise.
4781         * doc/posix-functions/remque.texi: Likewise.
4782         * doc/posix-functions/renameat.texi: Likewise.
4783         * doc/posix-functions/rintl.texi: Likewise.
4784         * doc/posix-functions/sem_unlink.texi: Likewise.
4785         * doc/posix-functions/shm_open.texi: Likewise.
4786         * doc/posix-functions/shm_unlink.texi: Likewise.
4787         * doc/posix-functions/signgam.texi: Likewise.
4788         * doc/posix-functions/sigset.texi: Likewise.
4789         * doc/posix-functions/stpcpy.texi: Likewise.
4790         * doc/posix-functions/stpncpy.texi: Likewise.
4791         * doc/posix-functions/strerror.texi: Likewise.
4792         * doc/posix-functions/strtod.texi: Likewise.
4793         * doc/posix-functions/symlinkat.texi: Likewise.
4794         * doc/posix-functions/unlinkat.texi: Likewise.
4795         * doc/posix-functions/utimensat.texi: Likewise.
4796         * doc/glibc-functions/bindresvport.texi: Likewise.
4797         * doc/glibc-functions/dn_expand.texi: Likewise.
4798         * doc/glibc-functions/exp10.texi: Likewise.
4799         * doc/glibc-functions/exp10f.texi: Likewise.
4800         * doc/glibc-functions/fgetxattr.texi: Likewise.
4801         * doc/glibc-functions/flistxattr.texi: Likewise.
4802         * doc/glibc-functions/fopencookie.texi: Likewise.
4803         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4804         * doc/glibc-functions/fremovexattr.texi: Likewise.
4805         * doc/glibc-functions/fsetxattr.texi: Likewise.
4806         * doc/glibc-functions/getifaddrs.texi: Likewise.
4807         * doc/glibc-functions/getxattr.texi: Likewise.
4808         * doc/glibc-functions/lgetxattr.texi: Likewise.
4809         * doc/glibc-functions/listxattr.texi: Likewise.
4810         * doc/glibc-functions/llistxattr.texi: Likewise.
4811         * doc/glibc-functions/lremovexattr.texi: Likewise.
4812         * doc/glibc-functions/lsetxattr.texi: Likewise.
4813         * doc/glibc-functions/pow10.texi: Likewise.
4814         * doc/glibc-functions/pow10f.texi: Likewise.
4815         * doc/glibc-functions/rcmd_af.texi: Likewise.
4816         * doc/glibc-functions/removexattr.texi: Likewise.
4817         * doc/glibc-functions/res_init.texi: Likewise.
4818         * doc/glibc-functions/res_mkquery.texi: Likewise.
4819         * doc/glibc-functions/res_query.texi: Likewise.
4820         * doc/glibc-functions/res_querydomain.texi: Likewise.
4821         * doc/glibc-functions/res_send.texi: Likewise.
4822         * doc/glibc-functions/rresvport_af.texi: Likewise.
4823         * doc/glibc-functions/setxattr.texi: Likewise.
4824         * doc/glibc-functions/strcasestr.texi: Likewise.
4825
4826 2008-12-15  Bruno Haible  <bruno@clisp.org>
4827
4828         Fix compilation error on OSF/1 4.0.
4829         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4830         <sys/time.h>, simply delegate to the system header.
4831         Reported by Daniel Richard G. <oss@teragram.com>.
4832
4833 2008-12-15  Bruno Haible  <bruno@clisp.org>
4834
4835         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4836         * doc/posix-functions/fchmodat.texi: Likewise.
4837         * doc/posix-functions/fchownat.texi: Likewise.
4838         * doc/posix-functions/fdopendir.texi: Likewise.
4839         * doc/posix-functions/fstatat.texi: Likewise.
4840         * doc/posix-functions/mkdirat.texi: Likewise.
4841         * doc/posix-functions/unlinkat.texi: Likewise.
4842
4843 2008-12-14  Bruno Haible  <bruno@clisp.org>
4844
4845         Update doc for POSIX:2008.
4846         * doc/posix-functions/faccessat.texi: New file.
4847         * doc/posix-functions/fchmodat.texi: New file.
4848         * doc/posix-functions/fchownat.texi: New file.
4849         * doc/posix-functions/fdopendir.texi: New file.
4850         * doc/posix-functions/fstatat.texi: New file.
4851         * doc/posix-functions/futimens.texi: New file.
4852         * doc/posix-functions/linkat.texi: New file.
4853         * doc/posix-functions/mkdirat.texi: New file.
4854         * doc/posix-functions/mkfifoat.texi: New file.
4855         * doc/posix-functions/mknodat.texi: New file.
4856         * doc/posix-functions/open_wmemstream.texi: New file.
4857         * doc/posix-functions/openat.texi: New file.
4858         * doc/posix-functions/psiginfo.texi: New file.
4859         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4860         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4861         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4862         * doc/posix-functions/readlinkat.texi: New file.
4863         * doc/posix-functions/renameat.texi: New file.
4864         * doc/posix-functions/strerror_l.texi: New file.
4865         * doc/posix-functions/symlinkat.texi: New file.
4866         * doc/posix-functions/unlinkat.texi: New file.
4867         * doc/posix-functions/utimensat.texi: New file.
4868         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4869
4870 2008-12-14  Bruno Haible  <bruno@clisp.org>
4871
4872         Update doc for POSIX:2008.
4873         * doc/posix-functions/alphasort.texi: Renamed from
4874         doc/glibc-functions/alphasort.texi.
4875         * doc/posix-functions/dirfd.texi: Renamed from
4876         doc/glibc-functions/dirfd.texi.
4877         * doc/posix-functions/dprintf.texi: Renamed from
4878         doc/glibc-functions/dprintf.texi.
4879         * doc/posix-functions/duplocale.texi: Renamed from
4880         doc/glibc-functions/duplocale.texi.
4881         * doc/posix-functions/fexecve.texi: Renamed from
4882         doc/glibc-functions/fexecve.texi.
4883         * doc/posix-functions/fmemopen.texi: Renamed from
4884         doc/glibc-functions/fmemopen.texi.
4885         * doc/posix-functions/freelocale.texi: Renamed from
4886         doc/glibc-functions/freelocale.texi.
4887         * doc/posix-functions/getdate_err.texi: Renamed from
4888         doc/glibc-functions/getdate_err.texi.
4889         * doc/posix-functions/isalnum_l.texi: Renamed from
4890         doc/glibc-functions/isalnum_l.texi.
4891         * doc/posix-functions/isalpha_l.texi: Renamed from
4892         doc/glibc-functions/isalpha_l.texi.
4893         * doc/posix-functions/isblank_l.texi: Renamed from
4894         doc/glibc-functions/isblank_l.texi.
4895         * doc/posix-functions/iscntrl_l.texi: Renamed from
4896         doc/glibc-functions/iscntrl_l.texi.
4897         * doc/posix-functions/isdigit_l.texi: Renamed from
4898         doc/glibc-functions/isdigit_l.texi.
4899         * doc/posix-functions/isgraph_l.texi: Renamed from
4900         doc/glibc-functions/isgraph_l.texi.
4901         * doc/posix-functions/islower_l.texi: Renamed from
4902         doc/glibc-functions/islower_l.texi.
4903         * doc/posix-functions/isprint_l.texi: Renamed from
4904         doc/glibc-functions/isprint_l.texi.
4905         * doc/posix-functions/ispunct_l.texi: Renamed from
4906         doc/glibc-functions/ispunct_l.texi.
4907         * doc/posix-functions/isspace_l.texi: Renamed from
4908         doc/glibc-functions/isspace_l.texi.
4909         * doc/posix-functions/isupper_l.texi: Renamed from
4910         doc/glibc-functions/isupper_l.texi.
4911         * doc/posix-functions/iswalnum_l.texi: Renamed from
4912         doc/glibc-functions/iswalnum_l.texi.
4913         * doc/posix-functions/iswalpha_l.texi: Renamed from
4914         doc/glibc-functions/iswalpha_l.texi.
4915         * doc/posix-functions/iswblank_l.texi: Renamed from
4916         doc/glibc-functions/iswblank_l.texi.
4917         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4918         doc/glibc-functions/iswcntrl_l.texi.
4919         * doc/posix-functions/iswctype_l.texi: Renamed from
4920         doc/glibc-functions/iswctype_l.texi.
4921         * doc/posix-functions/iswdigit_l.texi: Renamed from
4922         doc/glibc-functions/iswdigit_l.texi.
4923         * doc/posix-functions/iswgraph_l.texi: Renamed from
4924         doc/glibc-functions/iswgraph_l.texi.
4925         * doc/posix-functions/iswlower_l.texi: Renamed from
4926         doc/glibc-functions/iswlower_l.texi.
4927         * doc/posix-functions/iswprint_l.texi: Renamed from
4928         doc/glibc-functions/iswprint_l.texi.
4929         * doc/posix-functions/iswpunct_l.texi: Renamed from
4930         doc/glibc-functions/iswpunct_l.texi.
4931         * doc/posix-functions/iswspace_l.texi: Renamed from
4932         doc/glibc-functions/iswspace_l.texi.
4933         * doc/posix-functions/iswupper_l.texi: Renamed from
4934         doc/glibc-functions/iswupper_l.texi.
4935         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4936         doc/glibc-functions/iswxdigit_l.texi.
4937         * doc/posix-functions/isxdigit_l.texi: Renamed from
4938         doc/glibc-functions/isxdigit_l.texi.
4939         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4940         doc/glibc-functions/mbsnrtowcs.texi.
4941         * doc/posix-functions/mkdtemp.texi: Renamed from
4942         doc/glibc-functions/mkdtemp.texi.
4943         * doc/posix-functions/newlocale.texi: Renamed from
4944         doc/glibc-functions/newlocale.texi.
4945         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4946         doc/glibc-functions/nl_langinfo_l.texi.
4947         * doc/posix-functions/open_memstream.texi: Renamed from
4948         doc/glibc-functions/open_memstream.texi.
4949         * doc/posix-functions/opterr.texi: Renamed from
4950         doc/glibc-functions/opterr.texi.
4951         * doc/posix-functions/optind.texi: Renamed from
4952         doc/glibc-functions/optind.texi.
4953         * doc/posix-functions/optopt.texi: Renamed from
4954         doc/glibc-functions/optopt.texi.
4955         * doc/posix-functions/psignal.texi: Renamed from
4956         doc/glibc-functions/psignal.texi.
4957         * doc/posix-functions/scandir.texi: Renamed from
4958         doc/glibc-functions/scandir.texi.
4959         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4960         doc/glibc-functions/sched_get_priority_min.texi.
4961         * doc/posix-functions/signgam.texi: Renamed from
4962         doc/glibc-functions/signgam.texi.
4963         * doc/posix-functions/stpcpy.texi: Renamed from
4964         doc/glibc-functions/stpcpy.texi.
4965         * doc/posix-functions/stpncpy.texi: Renamed from
4966         doc/glibc-functions/stpncpy.texi.
4967         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4968         doc/glibc-functions/strcasecmp_l.texi.
4969         * doc/posix-functions/strcoll_l.texi: Renamed from
4970         doc/glibc-functions/strcoll_l.texi.
4971         * doc/posix-functions/strfmon_l.texi: Renamed from
4972         doc/glibc-functions/strfmon_l.texi.
4973         * doc/posix-functions/strftime_l.texi: Renamed from
4974         doc/glibc-functions/strftime_l.texi.
4975         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4976         doc/glibc-functions/strncasecmp_l.texi.
4977         * doc/posix-functions/strndup.texi: Renamed from
4978         doc/glibc-functions/strndup.texi.
4979         * doc/posix-functions/strnlen.texi: Renamed from
4980         doc/glibc-functions/strnlen.texi.
4981         * doc/posix-functions/strsignal.texi: Renamed from
4982         doc/glibc-functions/strsignal.texi.
4983         * doc/posix-functions/strxfrm_l.texi: Renamed from
4984         doc/glibc-functions/strxfrm_l.texi.
4985         * doc/posix-functions/timer_gettime.texi: Renamed from
4986         doc/glibc-functions/timer_gettime.texi.
4987         * doc/posix-functions/tolower_l.texi: Renamed from
4988         doc/glibc-functions/tolower_l.texi.
4989         * doc/posix-functions/toupper_l.texi: Renamed from
4990         doc/glibc-functions/toupper_l.texi.
4991         * doc/posix-functions/towctrans_l.texi: Renamed from
4992         doc/glibc-functions/towctrans_l.texi.
4993         * doc/posix-functions/towlower_l.texi: Renamed from
4994         doc/glibc-functions/towlower_l.texi.
4995         * doc/posix-functions/towupper_l.texi: Renamed from
4996         doc/glibc-functions/towupper_l.texi.
4997         * doc/posix-functions/uselocale.texi: Renamed from
4998         doc/glibc-functions/uselocale.texi.
4999         * doc/posix-functions/vdprintf.texi: Renamed from
5000         doc/glibc-functions/vdprintf.texi.
5001         * doc/posix-functions/wcpcpy.texi:
5002         Renamed from doc/glibc-functions/wcpcpy.texi.
5003         * doc/posix-functions/wcpncpy.texi: Renamed from
5004         doc/glibc-functions/wcpncpy.texi.
5005         * doc/posix-functions/wcscasecmp.texi: Renamed from
5006         doc/glibc-functions/wcscasecmp.texi.
5007         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
5008         doc/glibc-functions/wcscasecmp_l.texi.
5009         * doc/posix-functions/wcscoll_l.texi: Renamed from
5010         doc/glibc-functions/wcscoll_l.texi.
5011         * doc/posix-functions/wcsdup.texi: Renamed from
5012         doc/glibc-functions/wcsdup.texi.
5013         * doc/posix-functions/wcsncasecmp.texi: Renamed from
5014         doc/glibc-functions/wcsncasecmp.texi.
5015         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
5016         doc/glibc-functions/wcsncasecmp_l.texi.
5017         * doc/posix-functions/wcsnlen.texi: Renamed from
5018         doc/glibc-functions/wcsnlen.texi.
5019         * doc/posix-functions/wcsnrtombs.texi: Renamed from
5020         doc/glibc-functions/wcsnrtombs.texi.
5021         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
5022         doc/glibc-functions/wcsxfrm_l.texi.
5023         * doc/posix-functions/wctrans_l.texi: Renamed from
5024         doc/glibc-functions/wctrans_l.texi.
5025         * doc/posix-functions/wctype_l.texi: Renamed from
5026         doc/glibc-functions/wctype_l.texi.
5027         * doc/gnulib.texi (Function Substitutes): Add these subsections.
5028         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
5029         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
5030         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
5031         these subsections.
5032         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
5033         Remove sections.
5034
5035 2008-12-14  Bruno Haible  <bruno@clisp.org>
5036
5037         Update doc for POSIX:2008.
5038         * doc/posix-functions/*.texi: Update URL of POSIX specification.
5039
5040 2008-12-14  Bruno Haible  <bruno@clisp.org>
5041
5042         Update doc for POSIX:2008.
5043         * doc/pastposix-functions/bcmp.texi: Renamed from
5044         doc/posix-functions/bcmp.texi.
5045         * doc/pastposix-functions/bcopy.texi: Renamed from
5046         doc/posix-functions/bcopy.texi.
5047         * doc/pastposix-functions/bsd_signal.texi: Renamed from
5048         doc/posix-functions/bsd_signal.texi.
5049         * doc/pastposix-functions/bzero.texi: Renamed from
5050         doc/posix-functions/bzero.texi.
5051         * doc/pastposix-functions/ecvt.texi: Renamed from
5052         doc/posix-functions/ecvt.texi.
5053         * doc/pastposix-functions/fcvt.texi: Renamed from
5054         doc/posix-functions/fcvt.texi.
5055         * doc/pastposix-functions/ftime.texi: Renamed from
5056         doc/posix-functions/ftime.texi.
5057         * doc/pastposix-functions/gcvt.texi: Renamed from
5058         doc/posix-functions/gcvt.texi.
5059         * doc/pastposix-functions/getcontext.texi: Renamed from
5060         doc/posix-functions/getcontext.texi.
5061         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
5062         doc/posix-functions/gethostbyaddr.texi.
5063         * doc/pastposix-functions/gethostbyname.texi: Renamed from
5064         doc/posix-functions/gethostbyname.texi.
5065         * doc/pastposix-functions/getwd.texi: Renamed from
5066         doc/posix-functions/getwd.texi.
5067         * doc/pastposix-functions/h_errno.texi: Renamed from
5068         doc/posix-functions/h_errno.texi.
5069         * doc/pastposix-functions/index.texi: Renamed from
5070         doc/posix-functions/index.texi.
5071         * doc/pastposix-functions/makecontext.texi: Renamed from
5072         doc/posix-functions/makecontext.texi.
5073         * doc/pastposix-functions/mktemp.texi: Renamed from
5074         doc/posix-functions/mktemp.texi.
5075         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
5076         doc/posix-functions/pthread_attr_getstackaddr.texi.
5077         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
5078         doc/posix-functions/pthread_attr_setstackaddr.texi.
5079         * doc/pastposix-functions/rindex.texi: Renamed from
5080         doc/posix-functions/rindex.texi.
5081         * doc/pastposix-functions/scalb.texi: Renamed from
5082         doc/posix-functions/scalb.texi.
5083         * doc/pastposix-functions/setcontext.texi: Renamed from
5084         doc/posix-functions/setcontext.texi.
5085         * doc/pastposix-functions/swapcontext.texi: Renamed from
5086         doc/posix-functions/swapcontext.texi.
5087         * doc/pastposix-functions/ualarm.texi: Renamed from
5088         doc/posix-functions/ualarm.texi.
5089         * doc/pastposix-functions/usleep.texi: Renamed from
5090         doc/posix-functions/usleep.texi.
5091         * doc/pastposix-functions/vfork.texi: Renamed from
5092         doc/posix-functions/vfork.texi.
5093         * doc/pastposix-functions/wcswcs.texi: Renamed from
5094         doc/posix-functions/wcswcs.texi.
5095         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
5096         (Function Substitutes): Update.
5097
5098 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5099
5100         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
5101         m4/strerror.m4.
5102
5103 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5104             Bruno Haible  <bruno@clisp.org>
5105
5106         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
5107
5108 2008-12-13  Bruno Haible  <bruno@clisp.org>
5109
5110         * modules/strtoull (Depends-on): Remove unistd.
5111
5112 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5113
5114         * modules/strtoull (Depends-on): Add stdlib.
5115
5116 2008-12-11  Simon Josefsson  <simon@josefsson.org>
5117
5118         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
5119
5120 2008-12-10  Jim Meyering  <meyering@redhat.com>
5121
5122         gl_ASSERT: don't say assertions are disabled when they're not
5123         * m4/assert.m4 (gl_ASSERT): Do not make configure report
5124         "checking whether to enable assertions... no", when they are in
5125         fact enabled.  This is solely a bug in the output of configure.
5126         In spite of saying "no", NDEBUG was not defined in that case.
5127         Also, as noted by Eric Blake, leave assertions enabled upon
5128         --enable-assert=INVALID.
5129
5130 2008-12-10  Bruno Haible  <bruno@clisp.org>
5131
5132         Change MODULES.html to refer to POSIX:2008 where possible.
5133         * MODULES.html.sh (POSIX2008_URL): New variable.
5134         (posix_headers): Remove sys/timeb, ucontext.
5135         (posix2001_headers): New variable.
5136         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
5137         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
5138         index, makecontext, mktemp, pthread_attr_getstackaddr,
5139         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
5140         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
5141         (posix2001_functions): New variable.
5142         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
5143         otherwise.
5144
5145 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5146
5147         add missing include to parse-duration.c
5148         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
5149         * modules/parse-duration (Depends-on): Add xalloc.
5150
5151         fix sed script reading maint.mk
5152         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
5153         (syntax-check-rules): Use it.
5154
5155 2008-12-09  Bruno Haible  <bruno@clisp.org>
5156
5157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
5158         MacOS X 10.4/PowerPC.
5159         Reported by Simon Josefsson.
5160
5161 2008-12-08  Jim Meyering  <meyering@redhat.com>
5162
5163         work around mingw's lack of some S_IF definitions
5164         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
5165         Reported by Simon Josefsson.
5166
5167 2008-12-08  Bruno Haible  <bruno@clisp.org>
5168
5169         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
5170         applied to variables. Needed on MacOS X 10.4/PowerPC.
5171         Reported by Simon Josefsson.
5172
5173 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
5174         and Eric Blake  <ebb9@byu.net>
5175
5176         assert: honor --enable-assert
5177         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
5178         order to honor --enable-assert, rather than treating it as a
5179         synonym for --disable-assert.
5180
5181 2008-12-08  Jim Meyering  <meyering@redhat.com>
5182
5183         * lib/posixtm.c: Remove now-useless declaration of mktime.
5184
5185         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
5186
5187 2008-12-07  Bruno Haible  <bruno@clisp.org>
5188
5189         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
5190         test_once): Mark functions as static.
5191         * tests/test-tls.c (test_tls): Likewise.
5192
5193 2008-12-07  Bruno Haible  <bruno@clisp.org>
5194
5195         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
5196         iconv_register_autodetect.
5197
5198 2008-12-07  Jim Meyering  <meyering@redhat.com>
5199
5200         posixtm.c: avoid a warning
5201         * lib/posixtm.c (posixtime): Don't initialize tm0.
5202         It's no longer needed to placate gcc4's -Wuninitialized,
5203         and the attempt to placate would elicit a new warning.
5204
5205         unicodeio.c: mark unused parameters
5206         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5207         (fallback_failure_callback): Likewise.
5208
5209 2008-12-07  Bruno Haible  <bruno@clisp.org>
5210
5211         * gnulib-tool (func_create_testdir): When building the tests
5212         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
5213         Reported by Simon Josefsson.
5214
5215 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5216
5217         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
5218
5219 2008-12-06  Bruno Haible  <bruno@clisp.org>
5220
5221         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
5222         Suggested by Eric Blake.
5223
5224 2008-12-06  Bruno Haible  <bruno@clisp.org>
5225
5226         Fix a c-stack test failure on MacOS X.
5227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
5228         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
5229         handler for SIGBUS as well.
5230         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
5231         install a signal handler for SIGBUS as well.
5232         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
5233
5234 2008-12-06  Bruno Haible  <bruno@clisp.org>
5235
5236         Advocacy documentation.
5237         * doc/gnulib-intro.texi (Benefits): New section.
5238         * doc/gnulib.texi: Update.
5239
5240 2008-12-06  Bruno Haible  <bruno@clisp.org>
5241
5242         Document the 'manywarnings' module.
5243         * doc/manywarnings.texi: New file.
5244         * doc/gnulib.texi: Include it.
5245
5246 2008-12-05  Eric Blake  <ebb9@byu.net>
5247
5248         tests: silence some gcc warnings
5249         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
5250         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
5251         type mismatches.
5252
5253 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5254             Bruno Haible  <bruno@clisp.org>
5255
5256         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
5257
5258 2008-11-29  Jim Meyering  <meyering@redhat.com>
5259
5260         unicodeio.c: mark unused parameters
5261         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5262         (fallback_failure_callback): Likewise.
5263
5264         fts: fix a thinko
5265         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
5266         (set_stat_type): Return S_IF*-valued "type" directly.
5267         Prompted by James Youngman's spotting a related bug.
5268         Confirmed by further testing through find.
5269
5270         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
5271         * lib/fts.c (D_TYPE): Define.
5272         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
5273         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
5274         (s_ifmt_shift_bits): New function.
5275         (set_stat_type): New function.
5276         (fts_build): When not calling fts_stat, call set_stat_type
5277         to propagate dirent.d_type info to fts_read caller.
5278         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
5279         fts_statp->st_mode type information may be valid.
5280
5281 2008-11-28  Simon Josefsson  <simon@josefsson.org>
5282
5283         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
5284         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
5285         <sds@gnu.org>.
5286
5287 2008-11-20  Bruno Haible  <bruno@clisp.org>
5288
5289         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
5290         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
5291         INCLUDE_NEXT.
5292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
5293         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
5294         * modules/math (Makefile.am): Substitute
5295         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
5296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5297
5298 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
5299             Bruno Haible  <bruno@clisp.org>
5300
5301         * lib/stdint.in.h: Define all type macros so that their expansion is
5302         a single typedef'ed token. Fixes a compilation failure in Boost which
5303         does "using ::int8_t;".
5304
5305 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5306
5307         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
5308         gl_MANYWARN_ALL_GCC.
5309         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
5310         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
5311         * modules/manywarnings: New file.
5312         * MODULES.html.sh: Mention manywarnings module.
5313
5314 2008-11-18  Bruno Haible  <bruno@clisp.org>
5315
5316         * doc/gnulib-tool.texi (Unit tests): New section.
5317
5318 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5319
5320         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
5321         paths like 'lib/po/foo.po'.
5322
5323 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5324
5325         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
5326         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
5327
5328 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5329
5330         * m4/warnings.m4: Use CPPFLAGS to really check whether the
5331         parameter works.
5332
5333 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5334
5335         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
5336
5337 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5338
5339         * modules/parse-duration-tests: New file.
5340         * tests/test-parse-duration.sh: New file.
5341         * tests/test-parse-duration.c: New file.
5342
5343         New module 'parse-duration'.
5344         * lib/parse-duration.h: New file.
5345         * lib/parse-duration.c: New file.
5346         * modules/parse-duration: New file.
5347
5348 2008-11-17  Bruno Haible  <bruno@clisp.org>
5349
5350         * tests/test-select-out.sh: Comment out the first pipe test.
5351         Reported by Simon Josefsson.
5352
5353 2008-11-17  Bruno Haible  <bruno@clisp.org>
5354
5355         * modules/getaddrinfo (Depends-on): Add servent, hostent.
5356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
5357         gl_HOSTENT.
5358
5359 2008-11-17  Bruno Haible  <bruno@clisp.org>
5360
5361         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
5362         -lnetwork and -lnet. Needed for Haiku and BeOS.
5363
5364 2008-11-16  Bruno Haible  <bruno@clisp.org>
5365
5366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
5367
5368 2008-11-16  Bruno Haible  <bruno@clisp.org>
5369
5370         Avoid test failure on Haiku.
5371         * tests/test-fsync.c: Include <errno.h>.
5372         (main): Don't require that fsync (0) fails.
5373
5374 2008-11-15  Bruno Haible  <bruno@clisp.org>
5375
5376         New module 'hostent'.
5377         * modules/hostent: New file.
5378         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
5379
5380 2008-11-15  Bruno Haible  <bruno@clisp.org>
5381
5382         New module 'servent'.
5383         * modules/servent: New file.
5384         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
5385
5386 2008-11-15  Bruno Haible  <bruno@clisp.org>
5387
5388         Avoid generating same test program with two different rules.
5389         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
5390         test-frexp to test-frexp-nolibm.
5391         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
5392         test-frexpl to test-frexpl-nolibm.
5393
5394 2008-11-15  Bruno Haible  <bruno@clisp.org>
5395
5396         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
5397         $(FREXPL_LIBM).
5398
5399 2008-11-15  Bruno Haible  <bruno@clisp.org>
5400
5401         * lib/netdb.in.h: Activate the definitions also when the system's
5402         <netdb.h> has 'struct addrinfo'.
5403         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
5404         EAI_OVERFLOW or AI_NUMERICSERV.
5405         * doc/posix-headers/netdb.texi: Document the problem.
5406
5407 2008-11-15  Bruno Haible  <bruno@clisp.org>
5408
5409         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
5410
5411         Make the 'sched' module work on platforms where <sched.h> exists but
5412         is incomplete (such as Haiku).
5413         * lib/sched.in.h; Include the system's <sched.h> if it exists.
5414         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
5415         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
5416         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
5417         HAVE_STRUCT_SCHED_PARAM.
5418         * modules/sched (Depends-on): Add include_next.
5419         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
5420         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
5421         * doc/posix-headers/sched.texi: Document the issue.
5422
5423 2008-11-13  Jim Meyering  <meyering@redhat.com>
5424
5425         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
5426         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
5427         test would fail due to the difference in the Report bugs to ...
5428         line.  The expected address is empty, "<>", while the actual
5429         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
5430
5431 2008-11-12  Bruno Haible  <bruno@clisp.org>
5432
5433         lstat: don't compile lstat.c on systems lacking lstat
5434         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
5435         which don't have lstat; this is handled by lib/sys_stat.in.h already.
5436         Reported by Daniel P. Berrange via Jim Meyering.
5437
5438 2008-11-12  Jim Meyering  <meyering@redhat.com>
5439
5440         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
5441
5442 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5443
5444         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
5445         instead.
5446
5447 2008-11-12  Bruno Haible  <bruno@clisp.org>
5448
5449         * lib/unicodeio.c: Include unistr.h.
5450         (utf8_wctomb): Remove function.
5451         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
5452
5453 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5454
5455         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
5456         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
5457         <bruno@clisp.org>.
5458         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
5459
5460 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5461
5462         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
5463         * doc/gnulib.texi: Add section for warnings.
5464
5465 2008-11-11  Bruno Haible  <bruno@clisp.org>
5466
5467         * lib/sockets.h: Add a comment.
5468
5469 2008-11-11  Karl Berry  <karl@gnu.org>
5470
5471         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
5472
5473 2008-11-11  Eric Blake  <ebb9@byu.net>
5474
5475         fdl.texi: avoid git symlinks
5476         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
5477
5478 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5479
5480         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
5481
5482 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5483
5484         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
5485         (gl_WARN_ADD): Substitute $2 if literal.
5486
5487 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5488
5489         * m4/warning.m4: Remove.
5490
5491 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5492
5493         * m4/warnings.m4: Almost complete rewrite. :-)
5494
5495 2008-11-10  Simon Josefsson  <simon@josefsson.org>
5496
5497         * modules/warnings: New module.
5498         * m4/warnings.m4: New file.
5499         * MODULES.html.sh: Mention warnings module.
5500         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
5501         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5502
5503 2008-11-10  Eric Blake  <ebb9@byu.net>
5504
5505         fdl.texi: make a symlink to the latest version
5506         * doc/standards.texi: Revert today's earlier change.
5507         * doc/fdl-1.2.texi: Rename from old fdl.texi...
5508         * doc/fdl.texi: ...and replace this with a symlink to the newer
5509         fdl-1.3.texi.
5510
5511 2008-11-10  Bruno Haible  <bruno@clisp.org>
5512
5513         * tests/test-select-fd.c (main): Accept the result file name as fourth
5514         argument.
5515         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
5516         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
5517
5518 2008-11-10  Bruno Haible  <bruno@clisp.org>
5519
5520         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
5521         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
5522         as autoconf-substituted macros.
5523         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
5524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
5525         gl_NETDB_H_DEFAULTS. Set these variables.
5526         * modules/netdb (Makefile.am): Substitute these variables.
5527
5528 2008-11-10  Eric Blake  <ebb9@byu.net>
5529
5530         standards.texi: include correct file for FDL 1.3
5531         * doc/standards.texi (GNU Free Documentation License): Change
5532         include file to pull in FDL 1.3, not 1.2.
5533
5534         fdl.texi: revert accidental change to license
5535         * doc/fdl.texi: This is FDL 1.2, not 1.3.
5536
5537 2008-11-10  Bruno Haible  <bruno@clisp.org>
5538
5539         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
5540         cross-compiling guesses also when the native compile gives no result.
5541
5542 2008-11-10  Bruno Haible  <bruno@clisp.org>
5543
5544         * lib/spawni.c (__spawni): Force variable into the stack.
5545
5546 2008-11-10  Bruno Haible  <bruno@clisp.org>
5547
5548         Add support for Haiku.
5549         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
5550         glibc and BeOS, but also on Haiku.
5551         * lib/fpurge.c (fpurge): Likewise.
5552         * lib/freadable.c (freadable): Likewise.
5553         * lib/freadahead.c (freadahead): Likewise.
5554         * lib/freading.c (freading): Likewise.
5555         * lib/freadptr.c (freadptr): Likewise.
5556         * lib/freadseek.c (freadptrinc): Likewise.
5557         * lib/fseeko.c (rpl_fseeko): Likewise.
5558         * lib/fseterr.c (fseterr): Likewise.
5559         * lib/fwritable.c (fwritable): Likewise.
5560         * lib/fwriting.c (fwriting): Likewise.
5561         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5562
5563 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5564
5565         * lib/config.charset: Treat Haiku like BeOS.
5566
5567 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5568
5569         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5570         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5571
5572 2008-11-08  Bruno Haible  <bruno@clisp.org>
5573
5574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5575         AC_CACHE_CHECK.
5576
5577 2008-11-08  Bruno Haible  <bruno@clisp.org>
5578
5579         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5580
5581 2008-11-08  Bruno Haible  <bruno@clisp.org>
5582
5583         * tests/test-select-fd.c: New file.
5584         * tests/test-select-in.sh: New file.
5585         * tests/test-select-out.sh: New file.
5586         * tests/test-select-stdin.c: New file.
5587         * modules/select-tests (Files): Add the new files.
5588         (Depends-on): Add gettimeofday.
5589         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5590         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5591         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5592
5593 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
5594             Bruno Haible  <bruno@clisp.org>
5595
5596         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5597
5598 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
5599
5600         * build-aux/pmccabe2html: Added support for C++ source files.
5601
5602 2008-11-05  Ben Pfaff  <blp@gnu.org>
5603
5604         Fix lib/close.c build on Windows.
5605         * modules/close (Files): Add lib/w32sock.h.
5606
5607 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5608
5609         Accept Bison's NEWS format.
5610         * build-aux/announce-gen (print_news_deltas): Tweak
5611         $re_prefix.
5612
5613 2008-11-04  Bruno Haible  <bruno@clisp.org>
5614
5615         * modules/random_r (Maintainer): Add glibc.
5616
5617 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5618
5619         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5620         by karl@freefriends.org (Karl Berry).
5621         * doc/alloca.texi: Likewise.
5622         * doc/c-ctype.texi: Likewise.
5623         * doc/c-strcase.texi: Likewise.
5624         * doc/c-strcaseeq.texi: Likewise.
5625         * doc/c-strcasestr.texi: Likewise.
5626         * doc/c-strstr.texi: Likewise.
5627         * doc/c-strtod.texi: Likewise.
5628         * doc/c-strtold.texi: Likewise.
5629         * doc/ctime.texi: Likewise.
5630         * doc/error.texi: Likewise.
5631         * doc/fdl.texi: Likewise.
5632         * doc/gcd.texi: Likewise.
5633         * doc/getdate.texi: Likewise.
5634         * doc/gnulib-intro.texi: Likewise.
5635         * doc/gnulib-tool.texi: Likewise.
5636         * doc/gnulib.texi: Likewise.
5637         * doc/inet_ntoa.texi: Likewise.
5638         * doc/maintain.texi: Likewise.
5639         * doc/make-stds.texi: Likewise.
5640         * doc/quote.texi: Likewise.
5641         * doc/regexprops-generic.texi: Likewise.
5642         * doc/standards.texi: Likewise.
5643         * doc/verify.texi: Likewise.
5644         * doc/visibility.texi: Likewise.
5645         * doc/gnulib.texi (GNU Free Documentation License): Include
5646         fdl-1.3.texi instead of fdl.texi.
5647
5648 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5649
5650         * doc/fdl-1.3.texi: New file, from
5651         <http://www.gnu.org/licenses/fdl-1.3.texi>.
5652         * modules/fdl-1.3: Add.
5653         * MODULES.html.sh: Add fdl-1.3.
5654
5655 2008-11-03  Bruno Haible  <bruno@clisp.org>
5656
5657         Make determination of absolute name of header file work with AIX xlc.
5658         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5659         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5660         preprocessing.
5661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5662         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5663
5664 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5665
5666         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5667         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5668         <ludo@gnu.org>.
5669
5670 2008-11-02  Bruno Haible  <bruno@clisp.org>
5671
5672         Mark 'strpbrk' obsolete.
5673         * modules/strpbrk (Status, Notice): New sections.
5674         * modules/strtok_r (Depends-on): Add strpbrk.
5675
5676 2008-11-02  Bruno Haible  <bruno@clisp.org>
5677
5678         Mark 'strdup' obsolete.
5679         * modules/strdup (Status, Notice): New sections.
5680         * modules/findprog (Depends-on): Add strdup.
5681         * modules/getaddrinfo (Depends-on): Likewise.
5682         * modules/localename (Depends-on): Likewise.
5683         * modules/relocatable-lib (Depends-on): Likewise.
5684         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5685         * modules/relocatable-prog (Depends-on): Likewise.
5686         * modules/trim (Depends-on): Likewise.
5687         * modules/unictype/gen-ctype (Depends-on): Likewise.
5688         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5689
5690 2008-11-02  Bruno Haible  <bruno@clisp.org>
5691
5692         Mark 'strcspn' obsolete.
5693         * modules/strcspn (Status, Notice): New sections.
5694
5695 2008-11-02  Bruno Haible  <bruno@clisp.org>
5696
5697         Mark 'rmdir' obsolete.
5698         * modules/rmdir (Status, Notice): New sections.
5699         * modules/clean-temp (Depends-on): Add rmdir.
5700         * modules/openat (Depends-on): Likewise.
5701
5702 2008-11-02  Bruno Haible  <bruno@clisp.org>
5703
5704         Mark 'raise' obsolete.
5705         * modules/raise (Status, Notice): New sections.
5706         (Include): Specify <signal.h>.
5707         * modules/stdio (Depends-on): Add raise.
5708         * modules/write (Depends-on): Likewise.
5709
5710 2008-11-02  Bruno Haible  <bruno@clisp.org>
5711
5712         Mark 'memset' obsolete.
5713         * modules/memset (Status, Notice): New sections.
5714
5715 2008-11-02  Bruno Haible  <bruno@clisp.org>
5716
5717         Mark 'memmove' obsolete.
5718         * modules/memmove (Status, Notice): New sections.
5719         * modules/argp (Depends-on): Add memmove.
5720         * modules/argz (Depends-on): Likewise.
5721         * modules/canonicalize (Depends-on): Likewise.
5722         * modules/canonicalize-lgpl (Depends-on): Likewise.
5723         * modules/fts (Depends-on): Likewise.
5724         * modules/getcwd (Depends-on): Likewise.
5725         * modules/human (Depends-on): Likewise.
5726         * modules/regex (Depends-on): Likewise.
5727         * modules/striconveh (Depends-on): Likewise.
5728         * modules/trim (Depends-on): Likewise.
5729         * modules/unistr/u8-move (Depends-on): Likewise.
5730         * modules/unistr/u16-move (Depends-on): Likewise.
5731         * modules/unistr/u32-move (Depends-on): Likewise.
5732
5733 2008-11-02  Bruno Haible  <bruno@clisp.org>
5734
5735         Mark 'memcpy' obsolete.
5736         * modules/memcpy (Status, Notice): New sections.
5737
5738 2008-11-02  Bruno Haible  <bruno@clisp.org>
5739
5740         Mark 'memcmp' obsolete.
5741         * modules/memcmp (Status, Notice): New sections.
5742         * modules/argmatch (Depends-on): Add memchr.
5743         * modules/backupfile (Depends-on): Likewise.
5744         * modules/c-strcasestr (Depends-on): Likewise.
5745         * modules/crypto/des (Depends-on): Likewise.
5746         * modules/csharpcomp (Depends-on): Likewise.
5747         * modules/fnmatch (Depends-on): Likewise.
5748         * modules/git-merge-changelog (Depends-on): Likewise.
5749         * modules/isnand (Depends-on): Likewise.
5750         * modules/isnand-nolibm (Depends-on): Likewise.
5751         * modules/isnanf (Depends-on): Likewise.
5752         * modules/isnanf-nolibm (Depends-on): Likewise.
5753         * modules/isnanl (Depends-on): Likewise.
5754         * modules/isnanl-nolibm (Depends-on): Likewise.
5755         * modules/mbchar (Depends-on): Likewise.
5756         * modules/memcoll (Depends-on): Likewise.
5757         * modules/quotearg (Depends-on): Likewise.
5758         * modules/regex (Depends-on): Likewise.
5759         * modules/relocatable-prog (Depends-on): Likewise.
5760         * modules/same (Depends-on): Likewise.
5761         * modules/signbit (Depends-on): Likewise.
5762         * modules/strcasestr-simple (Depends-on): Likewise.
5763         * modules/unictype/gen-ctype (Depends-on): Likewise.
5764         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5765         * modules/uniname/uniname (Depends-on): Likewise.
5766         * modules/unistr/u8-cmp (Depends-on): Likewise.
5767
5768 2008-11-02  Bruno Haible  <bruno@clisp.org>
5769
5770         Mark 'memchr' obsolete.
5771         * modules/memchr (Status, Notice): New sections.
5772         * modules/argp (Depends-on): Add memchr.
5773         * modules/base64 (Depends-on): Likewise.
5774         * modules/c-strcasestr (Depends-on): Likewise.
5775         * modules/chdir-long (Depends-on): Likewise.
5776         * modules/fnmatch (Depends-on): Likewise.
5777         * modules/getsubopt (Depends-on): Likewise.
5778         * modules/git-merge-changelog (Depends-on): Likewise.
5779         * modules/glob (Depends-on): Likewise.
5780         * modules/strcasestr-simple (Depends-on): Likewise.
5781         * modules/strnlen (Depends-on): Likewise.
5782
5783 2008-11-02  Bruno Haible  <bruno@clisp.org>
5784
5785         Mark 'atexit' obsolete.
5786         * modules/atexit (Status, Notice): New sections.
5787         * modules/chdir-long (Depends-on): Add atexit.
5788         * modules/wait-process (Depends-on): Likewise.
5789
5790 2008-11-02  Bruno Haible  <bruno@clisp.org>
5791
5792         * gnulib-tool: New option --with-obsolete.
5793         (func_usage): Document it.
5794         (func_modules_transitive_closure): Drop obsolete dependencies if
5795         incobsolete is not true.
5796         (func_import): Read and save the incobsolete variable to the cache.
5797
5798 2008-11-02  Bruno Haible  <bruno@clisp.org>
5799
5800         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5801         * gnulib-tool: New option --extract-status.
5802         (func_usage): Document it.
5803         (sed_extract_prog): Recognize it.
5804         (func_get_status): New function.
5805
5806 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5807
5808         * modules/sockets (License): Change from LGPL to LGPLv2+.
5809
5810 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5811
5812         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5813
5814 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5815
5816         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5817         Mention times and sys_times.
5818         * modules/sys_times, modules/sys_times-tests: New modules.
5819         * modules/times, modules/times-tests: Likewise
5820         * m4/sys_times_h.m4: New file.
5821         * lib/sys_times.in.h: Likewise
5822         * lib/times.c: Likewise.
5823         * tests/test-sys_times.c: Likewise.
5824         * tests/test-times.c: Likewise.
5825         * doc/posix-headers/sys_times.texi: Update.
5826         * doc/posix-functions/times.texi: Update.
5827
5828 2008-10-28  Jim Meyering  <meyering@redhat.com>
5829
5830         * modules/tempname (Depends-on): Add lstat.
5831
5832         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5833
5834 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5835
5836         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5837         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5838         using idiom used elsewhere in gnulib.
5839
5840 2008-10-27  Jim Meyering  <meyering@redhat.com>
5841
5842         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5843
5844 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5845
5846         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5847         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5848         programs.
5849         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5850
5851 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5852
5853         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5854
5855 2008-10-27  Bruno Haible  <bruno@clisp.org>
5856
5857         * tests/test-lstat.c: Include <stdio.h>.
5858
5859 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5860
5861         * modules/lstat-tests: New module.
5862         * tests/test-lstat.c: New file.
5863
5864 2008-10-26  Jim Meyering  <meyering@redhat.com>
5865
5866         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5867
5868 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5869             Bruno Haible  <bruno@clisp.org>
5870
5871         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5872         * modules/configmake (Include): Add a note that the include must come
5873         after all system headers.
5874         * lib/javaversion.c: Include configmake.h after all other includes.
5875
5876 2008-10-26  Bruno Haible  <bruno@clisp.org>
5877
5878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5879         HAVE_STRUCT_RANDOM_DATA to 1.
5880         (gl_STDLIB_H): Simplify.
5881
5882 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5883
5884         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5885         substitute HAVE_STRUCT_RANDOM_DATA.
5886         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5887         random_data.
5888         * modules/stdlib (Makefile.am): Substitute
5889         HAVE_STRUCT_RANDOM_DATA.
5890
5891 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5892
5893         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5894         * doc/gnulib-intro.texi (Copyright): Likewise.
5895
5896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5897
5898         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5899         findings.
5900
5901 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5902             Bruno Haible  <bruno@clisp.org>
5903
5904         * lib/unistd.in.h: Include <winsock2.h>.
5905         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5906         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5907         Provide dummy declarations.
5908         (gethostname): Override.
5909         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5910         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5911         gl_PREREQ_SYS_H_WINSOCK2.
5912         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5913         * doc/posix-functions/gethostname.texi: More details.
5914
5915 2008-10-25  Bruno Haible  <bruno@clisp.org>
5916
5917         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5918         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5919         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5920
5921         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5922         here ...
5923         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5924         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5925         gl_UNISTD_H_DEFAULTS.
5926
5927 2008-10-25  Eric Blake  <ebb9@byu.net>
5928
5929         signbit: avoid spurious compiler failure
5930         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5931         declarations inside function.
5932
5933 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5934             Bruno Haible  <bruno@clisp.org>
5935
5936         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5937         * modules/random_r (Depends-on): Add stdint.
5938
5939 2008-10-24  Bruno Haible  <bruno@clisp.org>
5940
5941         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5942         Eggert.
5943         * modules/strerror (License): Likewise.
5944
5945 2008-10-24  Jim Meyering  <meyering@redhat.com>
5946
5947         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5948         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5949
5950 2008-10-24  Eric Blake  <ebb9@byu.net>
5951
5952         getgroups: fix compilation when getgroups is available
5953         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5954         but with <config.h> override of getgroups disabled.
5955
5956 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5957
5958         * doc/gnulib.texi (Header files): Add note about C++ problems.
5959         Explained by Bruno Haible <bruno@clisp.org>.
5960
5961 2008-10-23  Bruno Haible  <bruno@clisp.org>
5962
5963         Define a dummy SA_NODEFER macro on Interix.
5964         * lib/signal.in.h (SA_NODEFER): Define fallback.
5965         Reported by Aleksey Cheusov <cheusov@tut.by> via
5966         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5967
5968 2008-10-23  Bruno Haible  <bruno@clisp.org>
5969
5970         * modules/freadahead (License): Change to LGPLv2+.
5971         Suggested by Simon Josefsson.
5972
5973 2008-10-23  Jim Meyering  <meyering@redhat.com>
5974
5975         random_r: new module
5976         * modules/random_r: New file.
5977         * m4/random_r.m4: New file.
5978         * lib/random_r.c: New file, from glibc.
5979         * modules/random_r-tests: New file.
5980         * tests/test-random_r.c: New file.
5981         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5982          Declare.
5983         (RAND_MAX): Define.
5984         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5985         * modules/stdlib: Substitute them, too.
5986         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5987         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5988         * doc/glibc-functions/random_r.texi: Likewise.
5989         * doc/glibc-functions/setstate_r.texi: Likewise.
5990         * doc/glibc-functions/srandom_r.texi: Likewise.
5991         * config/srclist.txt: Mention it.
5992
5993 2008-10-23  David Lutterkort  <lutter@redhat.com>
5994
5995         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5996         link requirement
5997
5998 2008-10-23  Jim Meyering  <meyering@redhat.com>
5999
6000         selinux-h: mark parameters of stub functions as intentionally unused
6001         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
6002         * lib/se-context.in.h: Likewise.
6003
6004 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6005
6006         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
6007
6008 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6009
6010         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
6011
6012 2008-10-22  Eric Blake  <ebb9@byu.net>
6013
6014         glthread/thread: avoid compiler warning
6015         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
6016         Add unreachable abort to silence compiler.
6017
6018 2008-10-22  Eric Blake  <ebb9@byu.net>
6019
6020         netdb: also supply struct addrinfo for cygwin 1.5.x
6021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
6022         older cygwin.
6023         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
6024         cygwin.
6025         * doc/posix-headers/netdb.texi (netdb.h): Document this.
6026
6027 2008-10-22  Bruno Haible  <bruno@clisp.org>
6028
6029         * users.txt: Update entry about pspp.
6030
6031 2008-10-21  Bruno Haible  <bruno@clisp.org>
6032
6033         Simplification.
6034         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
6035         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
6036
6037         Simplification.
6038         * lib/ioctl.c (ioctl): Don't undefine.
6039         * lib/socket.c (socket): Don't undefine.
6040
6041         Remove unused module indicator macros.
6042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
6043         GNULIB_$1 as a C macro.
6044
6045         * doc/posix-functions/close.texi: Undo last change.
6046         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
6047         Windows platforms.
6048
6049 2008-10-21  Bruno Haible  <bruno@clisp.org>
6050
6051         Add gethostname() declaration to <unistd.h>.
6052         * lib/unistd.in.h (gethostname): New declaration.
6053         * lib/gethostname.c: Include <unistd.h>.
6054         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
6055         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
6056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
6057         and HAVE_GETHOSTNAME.
6058         * modules/gethostname (Depends-on): Add unistd.
6059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6060         (Include): Specify <unistd.h>.
6061         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
6062         HAVE_GETHOSTNAME.
6063         * tests/test-gethostname.c: Include <unistd.h> first.
6064
6065 2008-10-21  Bruno Haible  <bruno@clisp.org>
6066
6067         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
6068         * modules/select-tests (Depends-on): Likewise.
6069         Reported by Simon Josefsson.
6070
6071 2008-10-21  Simon Josefsson  <simon@josefsson.org>
6072
6073         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
6074         * lib/accept.c: New file, based on winsock.c.
6075         * lib/bind.c: New file, based on winsock.c.
6076         * lib/connect.c: New file, based on winsock.c.
6077         * lib/getpeername.c: New file, based on winsock.c.
6078         * lib/getsockname.c: New file, based on winsock.c.
6079         * lib/getsockopt.c: New file, based on winsock.c.
6080         * lib/ioctl.c: New file, based on winsock.c.
6081         * lib/listen.c: New file, based on winsock.c.
6082         * lib/recv.c: New file, based on winsock.c.
6083         * lib/recvfrom.c: New file, based on winsock.c.
6084         * lib/send.c: New file, based on winsock.c.
6085         * lib/sendto.c: New file, based on winsock.c.
6086         * lib/setsockopt.c: New file, based on winsock.c.
6087         * lib/shutdown.c: New file, based on winsock.c.
6088         * lib/socket.c: New file, based on winsock.c.
6089         * lib/w32sock.h: New file, based on winsock.c.
6090         * lib/winsock.c: Remove file.
6091         * modules/accept: Likewise.
6092         * modules/bind: Likewise.
6093         * modules/connect: Likewise.
6094         * modules/getpeername: Likewise.
6095         * modules/getsockname: Likewise.
6096         * modules/getsockopt: Likewise.
6097         * modules/ioctl: Likewise.
6098         * modules/listen: Likewise.
6099         * modules/recv: Likewise.
6100         * modules/recvfrom: Likewise.
6101         * modules/send: Likewise.
6102         * modules/sendto: Likewise.
6103         * modules/setsockopt: Likewise.
6104         * modules/shutdown: Likewise.
6105         * modules/socket: Use socket.c instead of winsock.c.
6106         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
6107         * doc/posix-functions/accept.texi: Doc fix.
6108         * doc/posix-functions/bind.texi: Doc fix.
6109         * doc/posix-functions/close.texi: Doc fix.
6110         * doc/posix-functions/connect.texi: Doc fix.
6111         * doc/posix-functions/getpeername.texi: Doc fix.
6112         * doc/posix-functions/getsockname.texi: Doc fix.
6113         * doc/posix-functions/getsockopt.texi: Doc fix.
6114         * doc/posix-functions/ioctl.texi: Doc fix.
6115         * doc/posix-functions/listen.texi: Doc fix.
6116         * doc/posix-functions/recv.texi: Doc fix.
6117         * doc/posix-functions/recvfrom.texi: Doc fix.
6118         * doc/posix-functions/send.texi: Doc fix.
6119         * doc/posix-functions/sendto.texi: Doc fix.
6120         * doc/posix-functions/setsockopt.texi: Doc fix.
6121         * doc/posix-functions/shutdown.texi: Doc fix.
6122         * doc/posix-functions/socket.texi: Doc fix.
6123
6124 2008-10-20  Bruno Haible  <bruno@clisp.org>
6125
6126         Take into account the role of SIGABRT_COMPAT on Windows 2008.
6127         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
6128         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
6129         as an alias for SIGABRT.
6130         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
6131         (sigaction): Map it to SIGABRT.
6132         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
6133
6134 2008-10-20  Bruno Haible  <bruno@clisp.org>
6135
6136         * lib/fts.c: Don't include lstat.h.
6137         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
6138
6139         Move the lstat() declaration to <sys/stat.h>.
6140         * lib/lstat.h: Remove file.
6141         * lib/sys_stat.in.h: Add special invocation convention.
6142         (lstat): New declaration.
6143         * lib/lstat.c (orig_lstat): New function.
6144         (rpl_lstat): Use orig_lstat instead of lstat.
6145         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
6146         AC_C_INLINE. Set REPLACE_LSTAT.
6147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
6148         and REPLACE_LSTAT.
6149         * modules/lstat (Files): Remove lib/lstat.h.
6150         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6151         (Include): Specify <sys/stat.h> instead of lstat.h.
6152         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
6153         REPLACE_LSTAT.
6154         * NEWS: Mention the change.
6155
6156 2008-10-20  Bruno Haible  <bruno@clisp.org>
6157
6158         * modules/posix_spawn-tests: New file.
6159         * tests/test-posix_spawn3.c: New file.
6160
6161 2008-10-20  Bruno Haible  <bruno@clisp.org>
6162
6163         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
6164         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6165         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
6166         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6167         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
6168
6169 2008-10-20  Bruno Haible  <bruno@clisp.org>
6170
6171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
6172         of posix_spawn on AIX 5.3.
6173
6174 2008-10-20  Bruno Haible  <bruno@clisp.org>
6175
6176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
6177
6178 2008-10-20  Bruno Haible  <bruno@clisp.org>
6179
6180         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
6181         of AC_LANG_PROGRAM.
6182
6183 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6184
6185         * lib/netdb.in.h: Don't define GNU specific constants until they
6186         are supported or needed.  Reported by Bruno Haible
6187         <bruno@clisp.org>.
6188
6189 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6190
6191         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
6192
6193 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6194
6195         * lib/getaddrinfo.h: Remove file.
6196         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
6197         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
6198         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
6199         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
6200         * modules/netdb: Substitute GNULIB_GETADDRINFO.
6201         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
6202         * tests/test-getaddrinfo.c: Likewise.
6203         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
6204         * NEWS: Mention change.
6205
6206 2008-10-19  Bruno Haible  <bruno@clisp.org>
6207
6208         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
6209
6210 2008-10-19  Bruno Haible  <bruno@clisp.org>
6211
6212         * lib/wait-process.c: Include simply <sys/wait.h>.
6213         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
6214         WIFSTOPPED): Remove fallback definitions.
6215         * modules/wait-process (Depends-on): Add sys_wait.
6216
6217         New module 'sys_wait'.
6218         * modules/sys_wait: New file.
6219         * lib/sys_wait.in.h: New file, partially copied from
6220         lib/wait-process.c.
6221         * m4/sys_wait_h.m4: New file.
6222         * doc/posix-headers/sys_wait.texi: Mention the new module.
6223
6224 2008-10-19  Bruno Haible  <bruno@clisp.org>
6225
6226         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
6227
6228 2008-10-19  Bruno Haible  <bruno@clisp.org>
6229
6230         Assume that waitpid() fills an 'int' status, not a 'union wait'.
6231         * lib/wait-process.c (WAIT_T): Remove type.
6232         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
6233         (wait_subprocess): Update.
6234
6235 2008-10-19  Bruno Haible  <bruno@clisp.org>
6236
6237         New module 'atoll'.
6238         * modules/atoll: New file.
6239         * lib/stdlib.in.h (atoll): New declaration.
6240         * lib/atoll.c: New file, from glibc with modifications.
6241         * m4/atoll.m4: New file.
6242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
6243         HAVE_ATOLL.
6244         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
6245         * doc/posix-functions/atoll.texi: Mention the new module.
6246
6247 2008-10-19  Bruno Haible  <bruno@clisp.org>
6248
6249         Add strtoull() declaration to <stdlib.h>.
6250         * lib/stdlib.in.h (strtoull): New declaration.
6251         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6252         Set HAVE_STRTOULL.
6253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
6254         HAVE_STRTOULL.
6255         * modules/strtoull (Depends-on): Add stdlib.
6256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6257         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
6258         HAVE_STRTOULL.
6259
6260 2008-10-19  Bruno Haible  <bruno@clisp.org>
6261
6262         Add strtoll() declaration to <stdlib.h>.
6263         * lib/stdlib.in.h (strtoll): New declaration.
6264         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6265         Set HAVE_STRTOLL.
6266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
6267         HAVE_STRTOLL.
6268         * modules/strtoll (Depends-on): Add stdlib.
6269         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6270         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
6271
6272 2008-10-19  Bruno Haible  <bruno@clisp.org>
6273
6274         * modules/bcopy (Depends-on): Add strings.
6275         (Include): Specify <strings.h>.
6276
6277 2008-10-19  Bruno Haible  <bruno@clisp.org>
6278
6279         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
6280
6281 2008-10-19  Bruno Haible  <bruno@clisp.org>
6282
6283         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
6284         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
6285         mingw.
6286
6287 2008-10-19  Bruno Haible  <bruno@clisp.org>
6288
6289         * lib/atanl.c: Don't include isnanl.h.
6290         * lib/cosl.c: Likewise.
6291         * lib/ldexpl.c: Likewise.
6292         * lib/logl.c: Likewise.
6293         * lib/sinl.c: Likewise.
6294         * lib/sqrtl.c: Likewise.
6295         * lib/tanl.c: Likewise.
6296
6297         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
6298         * lib/isnanf.h: Remove file.
6299         * lib/isnand.h: Remove file.
6300         * lib/isnanl.h: Remove file.
6301         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
6302         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
6303         macros.
6304         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
6305         HAVE_ISNANF, don't define it as a C macro.
6306         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
6307         HAVE_ISNAND, don't define it as a C macro.
6308         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
6309         HAVE_ISNANL, don't define it as a C macro.
6310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
6311         HAVE_ISNAN[FDL].
6312         * modules/isnanf (Files): Remove lib/isnanf.h.
6313         (Depends-on): Add math.
6314         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6315         (Include): Specify <math.h> instead of isnanf.h.
6316         * modules/isnand (Files): Remove lib/isnand.h.
6317         (Depends-on): Add math.
6318         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6319         (Include): Specify <math.h> instead of isnand.h.
6320         * modules/isnanl (Files): Remove lib/isnanl.h.
6321         (Depends-on): Add math.
6322         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6323         (Include): Specify <math.h> instead of isnanl.h.
6324         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
6325         HAVE_ISNAN[FDL].
6326         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
6327         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
6328         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
6329         * NEWS: Mention the change.
6330
6331 2008-10-18  Bruno Haible  <bruno@clisp.org>
6332
6333         Add getusershell(), setusershell(), endusershell() declarations to
6334         <unistd.h>.
6335         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
6336         declarations.
6337         * lib/getusershell.c: Include unistd.h.
6338         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
6339         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6340         HAVE_GETUSERSHELL.
6341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
6342         and HAVE_GETUSERSHELL.
6343         * modules/getusershell (Depends-on): Add unistd, extensions.
6344         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6345         (Include): Specify <unistd.h>.
6346         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
6347         HAVE_GETUSERSHELL.
6348
6349 2008-10-18  Bruno Haible  <bruno@clisp.org>
6350
6351         Add a getloadavg() declaration to <stdlib.h>.
6352         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
6353         getloadavg declaration.
6354         (getloadavg): New declaration.
6355         * lib/getloadavg.c: Include <stdlib.h> first.
6356         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
6357         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
6358         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
6359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
6360         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6361         * modules/getloadavg (Depends-on): Add stdlib, extensions.
6362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6363         (Include): Specify <stdlib.h>.
6364         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
6365         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6366
6367 2008-10-18  Bruno Haible  <bruno@clisp.org>
6368
6369         * lib/dirchownmod.c: Don't include lchmod.h.
6370
6371         Move the lchmod() declaration to <sys/stat.h>.
6372         * lib/lchmod.h: Remove file.
6373         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
6374         (lchmod): New declaration, moved here from lib/lchown.h.
6375         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
6376         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
6377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
6378         and HAVE_LCHMOD.
6379         * modules/lchmod (Files): Remove lib/lchmod.h.
6380         (Depends-on): Add sys_stat, extensions.
6381         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6382         (Include): Specify <sys/stat.h> instead of lchmod.h.
6383         * modules/sys_stat (Depends-on): Add link-warning.
6384         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
6385         definition of GL_LINK_WARNING.
6386         * NEWS: Mention the change.
6387
6388 2008-10-18  Bruno Haible  <bruno@clisp.org>
6389
6390         * lib/fchdir.c: Don't include dirfd.h.
6391         * lib/fts.c: Likewise.
6392         * lib/getcwd.c: Likewise.
6393         * lib/glob.c: Likewise.
6394
6395         Move the dirfd() declaration to <dirent.h>.
6396         * lib/dirfd.h: Remove file.
6397         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
6398         (dirfd): New declaration.
6399         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
6400         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
6401         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
6402         HAVE_DECL_DIRFD.
6403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
6404         HAVE_DECL_DIRFD.
6405         * modules/dirfd (Files): Remove lib/dirfd.h.
6406         (Depends-on): Add dirent, extensions.
6407         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
6408         (Include): Specify <dirent.h> instead of dirfd.h.
6409         * modules/dirent (Depends-on): Add link-warning.
6410         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
6411         definition of GL_LINK_WARNING.
6412         * NEWS: Mention the change.
6413
6414 2008-10-18  Bruno Haible  <bruno@clisp.org>
6415
6416         Move the euidaccess() declaration to <unistd.h>.
6417         * lib/euidaccess.h: Remove file.
6418         * lib/unistd.in.h (euidaccess): New declaration.
6419         * lib/euidaccess.c: Don't include euidaccess.h.
6420         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
6421         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
6422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
6423         and HAVE_EUIDACCESS.
6424         * modules/euidaccess (Files): Remove lib/euidaccess.h.
6425         (Depends-on): Add unistd.
6426         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6427         (Include): Specify <unistd.h> instead of euidaccess.h.
6428         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
6429         HAVE_EUIDACCESS.
6430         * NEWS: Mention the change.
6431
6432 2008-10-18  Bruno Haible  <bruno@clisp.org>
6433
6434         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
6435
6436         Move the getdomainname() declaration to <unistd.h>.
6437         * lib/getdomainname.h: Remove file.
6438         * lib/unistd.in.h (getdomainname): New declaration.
6439         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
6440         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6441         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6442         HAVE_GETDOMAINNAME.
6443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6444         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
6445         * modules/getdomainname (Files): Remove lib/getdomainname.h.
6446         (Depends-on): Add unistd, extensions.
6447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6448         (Includes): Specify <unistd.h> instead of getdomainname.h.
6449         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
6450         HAVE_GETDOMAINNAME.
6451         * NEWS: Mention the change.
6452
6453 2008-10-18  Bruno Haible  <bruno@clisp.org>
6454
6455         * modules/dirent: New file.
6456         * m4/dirent_h.m4: New file.
6457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6458         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
6459         * modules/fchdir (Files): Remove lib/dirent.in.h.
6460         (Depends-on): Add dirent.
6461         (Makefile.am): Move rules to modules/dirent.
6462         * doc/posix-headers/dirent.texi: Mention the new module.
6463
6464 2008-10-18  Bruno Haible  <bruno@clisp.org>
6465
6466         Avoid -Wunused-parameter warnings in public gnulib header files.
6467         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
6468         macro.
6469         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
6470
6471 2008-10-18  Bruno Haible  <bruno@clisp.org>
6472
6473         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
6474         * doc/glibc-functions/error.texi: Mention the module 'error'.
6475         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
6476         * doc/glibc-functions/getdomainname.texi: Mention the module
6477         'getdomainname'.
6478         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
6479         * doc/glibc-functions/getpagesize.texi: Mention the module
6480         'getpagesize'.
6481         * doc/glibc-functions/getusershell.texi: Mention the module
6482         'getusershell'.
6483         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
6484         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
6485         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
6486         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
6487         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
6488         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
6489         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
6490         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
6491         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
6492         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
6493         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
6494         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
6495         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
6496         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
6497
6498 2008-10-17  Bruno Haible  <bruno@clisp.org>
6499
6500         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
6501         HP-UX and IRIX, use -0.0L.
6502         * tests/test-ceill.c (minus_zero): Likewise.
6503         * tests/test-floorl.c (minus_zero): Likewise.
6504         * tests/test-frexpl.c (minus_zero): Likewise.
6505         * tests/test-isnan.c (minus_zerol): Likewise.
6506         * tests/test-isnanl.h (minus_zero): Likewise.
6507         * tests/test-ldexpl.c (minus_zero): Likewise.
6508         * tests/test-roundl.c (minus_zero): Likewise.
6509         * tests/test-signbit.c (minus_zerol): Likewise.
6510         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6511         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6512         * tests/test-truncl.c (minus_zero): Likewise.
6513         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6514         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6515         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
6516         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6517
6518 2008-10-17  Bruno Haible  <bruno@clisp.org>
6519
6520         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
6521         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
6522         that it gets activated only for gcc >= 3.0.
6523         * lib/dirent.in.h: Likewise.
6524         * lib/errno.in.h: Likewise.
6525         * lib/fcntl.in.h: Likewise.
6526         * lib/float.in.h: Likewise.
6527         * lib/iconv.in.h: Likewise.
6528         * lib/inttypes.in.h: Likewise.
6529         * lib/locale.in.h: Likewise.
6530         * lib/math.in.h: Likewise.
6531         * lib/netdb.in.h: Likewise.
6532         * lib/netinet_in.in.h: Likewise.
6533         * lib/search.in.h: Likewise.
6534         * lib/signal.in.h: Likewise.
6535         * lib/spawn.in.h: Likewise.
6536         * lib/stdarg.in.h: Likewise.
6537         * lib/stdint.in.h: Likewise.
6538         * lib/stdio.in.h: Likewise.
6539         * lib/stdlib.in.h: Likewise.
6540         * lib/string.in.h: Likewise.
6541         * lib/strings.in.h: Likewise.
6542         * lib/sys_file.in.h: Likewise.
6543         * lib/sys_ioctl.in.h: Likewise.
6544         * lib/sys_select.in.h: Likewise.
6545         * lib/sys_socket.in.h: Likewise.
6546         * lib/sys_stat.in.h: Likewise.
6547         * lib/sys_time.in.h: Likewise.
6548         * lib/sysexits.in.h: Likewise.
6549         * lib/time.in.h: Likewise.
6550         * lib/unistd.in.h: Likewise.
6551         * lib/wchar.in.h: Likewise.
6552         * lib/wctype.in.h: Likewise.
6553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6554
6555 2008-10-17  Jim Meyering  <meyering@redhat.com>
6556
6557         ignore-value: don't depend on inline module
6558         * modules/ignore-value (Depends-on): Remove 'inline'.
6559         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6560         Suggestion from Bruno Haible.
6561
6562 2008-10-17  Bruno Haible  <bruno@clisp.org>
6563
6564         New implementation of condition variables for Win32.
6565         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6566         (gl_linked_waitqueue_t): New type.
6567         (gl_cond_t): Use it.
6568         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6569         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6570         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6571         (glthread_cond_init_func, glthread_cond_wait_func,
6572         glthread_cond_timedwait_func, glthread_cond_signal_func,
6573         glthread_cond_broadcast_func, glthread_cond_destroy_func):
6574         Reimplemented on the basis of gl_linked_waitqueue_t.
6575         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6576         gl_waitqueue_t.
6577         (gl_rwlock_t): Update.
6578         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6579
6580 2008-10-17  Simon Josefsson  <simon@josefsson.org>
6581
6582         * modules/recvfrom (Depends-on): Add dependency on getpeername.
6583         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6584
6585 2008-10-17  Jim Meyering  <meyering@redhat.com>
6586
6587         ignore-value: new module
6588         * modules/ignore-value: New file.
6589         * lib/ignore-value.h: New file.
6590         * MODULES.html.sh (Compiler warning management): New section,
6591         just for this module.  More to come.
6592
6593 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6594
6595         open-safer.c: avoid 'signed and unsigned in conditional...' warning
6596         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6597         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6598
6599 2008-10-16  Jim Meyering  <meyering@redhat.com>
6600
6601         openat-die.c: avoid 'no previous prototype' warning
6602         * lib/openat-die.c: Include "openat.h".
6603         Reported by Reuben Thomas <rrt@sc3d.org>.
6604
6605 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6606
6607         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6608         * lib/netdb.in.h: Fix typo.
6609         Reported by Bruno Haible  <bruno@clisp.org>
6610
6611         * lib/netdb.in.h: Include sys/socket.h for platforms without
6612         netdb.h, to get structures like hostent on MinGW.
6613         * modules/netdb (Depends-on): Add sys_socket.
6614
6615 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6616
6617         * modules/netdb, modules/netdb-tests: New file.
6618         * m4/netdb_h.m4: New file.
6619         * lib/netdb.in.h: Add, currently just an empty file pending
6620         definitions.
6621         * tests/test-netdb.c: New file.
6622         * doc/posix-headers/netdb.texi: Mention that we replace it if
6623         needed.
6624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6625         netdb.
6626
6627 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6628
6629         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6630         with code.
6631
6632 2008-10-13  Bruno Haible  <bruno@clisp.org>
6633
6634         * lib/glthread/cond.c (glthread_cond_wait_func,
6635         glthread_cond_timedwait_func): Add a comment.
6636
6637 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6638
6639         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6640         * tests/test-select.c: Likewise,
6641
6642 2008-10-13  Bruno Haible  <bruno@clisp.org>
6643
6644         * lib/glthread/cond.c (glthread_cond_wait_func,
6645         glthread_cond_timedwait_func): Fix variable name.
6646         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6647
6648 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
6649
6650         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6652         struct sockaddr.sa_len.
6653         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6654
6655 2008-10-13  Simon Josefsson  <simon@josefsson.org>
6656
6657         * build-aux/pmccabe2html: Add css and css_url parameters.
6658
6659 2008-10-12  Bruno Haible  <bruno@clisp.org>
6660
6661         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6662         calling aclx_get.
6663         Reported by Rainer Tammer <tammer@tammer.net>.
6664
6665 2008-10-12  Bruno Haible  <bruno@clisp.org>
6666
6667         Use msvcrt aware primitives for creation/termination of Win32 threads.
6668         * lib/glthread/thread.c: Include <process.h>.
6669         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6670         (wrapper_func): Update signature.
6671         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6672
6673 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6674             Bruno Haible  <bruno@clisp.org>
6675
6676         Provide a Win32 implementation of the 'cond' module.
6677         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6678         * lib/glthread/cond.c (glthread_cond_init_func,
6679         glthread_cond_wait_func, glthread_cond_timedwait_func,
6680         glthread_cond_signal_func, glthread_cond_broadcast_func,
6681         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6682         * modules/cond (Dependencies): Add gettimeofday.
6683
6684 2008-10-11  Bruno Haible  <bruno@clisp.org>
6685
6686         Make sleep work on older versions of mingw.
6687         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6688         only whether it exists.
6689         * doc/posix-functions/sleep.texi: Mention the problem with older
6690         versions of mingw.
6691
6692 2008-10-11  Bruno Haible  <bruno@clisp.org>
6693
6694         New module 'shutdown'.
6695         * modules/shutdown: New file.
6696         * lib/sys_socket.in.h (shutdown): New declaration.
6697         * lib/winsock.c (shutdown): New function.
6698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6699         GNULIB_SHUTDOWN.
6700         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6701         * doc/posix-functions/shutdown.texi: Document the new module.
6702
6703 2008-10-11  Jim Meyering  <meyering@redhat.com>
6704
6705         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6706
6707 2008-10-11  Bruno Haible  <bruno@clisp.org>
6708
6709         New module 'fclose'.
6710         * modules/fclose: New file.
6711         * lib/stdio.in.h (fclose): New declaration.
6712         * lib/fclose.c: New file.
6713         * m4/fclose.m4: New file.
6714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6715         REPLACE_FCLOSE.
6716         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6717         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6718         REPLACE_FCLOSE.
6719         * modules/close (Depends-on): fclose.
6720         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6721
6722 2008-10-11  Bruno Haible  <bruno@clisp.org>
6723
6724         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6725         set errno and don't call _close.
6726
6727 2008-10-10  Bruno Haible  <bruno@clisp.org>
6728
6729         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6730         ACL, not afterwards. Fixes test failure on Cygwin.
6731
6732 2008-10-09  Ben Pfaff  <blp@gnu.org>
6733
6734         * build-aux/announce-gen: Fix gnulib version related part of usage
6735         message.  Die with a useful error message if no tarballs are
6736         found.
6737
6738 2008-10-10  Jim Meyering  <meyering@redhat.com>
6739
6740         bootstrap: use git's --depth=N option only if it's supported
6741         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6742         recognize the --depth option.  Reported by Pádraig Brady.
6743
6744 2008-10-09  Bruno Haible  <bruno@clisp.org>
6745
6746         New module 'ioctl'.
6747         * modules/ioctl: New file.
6748         * lib/sys_socket.in.h (ioctl): Remove declaration.
6749         * lib/winsock.c: Include <sys/ioctl.h>.
6750         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6751         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6752         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6753         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6754         * doc/posix-functions/ioctl.texi: Mention the new module.
6755
6756 2008-10-09  Bruno Haible  <bruno@clisp.org>
6757
6758         New module 'sys_ioctl'.
6759         * lib/sys_ioctl.in.h: New file.
6760         * m4/sys_ioctl_h.m4: New file.
6761         * modules/sys_ioctl: New file.
6762         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6763
6764 2008-10-09  Bruno Haible  <bruno@clisp.org>
6765
6766         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6767         * lib/winsock.c: Include <stdarg.h>.
6768         (rpl_ioctl): Change to second argument 'int' and then varargs.
6769
6770 2008-10-09  Bruno Haible  <bruno@clisp.org>
6771
6772         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6773         when the sys_socket module is present and the system has <winsock2.h>.
6774
6775 2008-10-09  Bruno Haible  <bruno@clisp.org>
6776
6777         * doc/posix-functions/close.texi: Mention module 'close' instead of
6778         module 'sys_socket'.
6779
6780 2008-10-09  Bruno Haible  <bruno@clisp.org>
6781
6782         * doc/glibc-headers/sys_ioctl.texi: New file.
6783         * doc/gnulib.texi: Include it.
6784
6785 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6786             Bruno Haible  <bruno@clisp.org>
6787
6788         Combine the two replacements of 'close'.
6789         * lib/sys_socket.in.h (close): Define to a reminder to include
6790         <unistd.h>.
6791         (_gl_close_fd_maybe_socket): New declaration.
6792         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6793         * lib/winsock.c (close): Remove undefinition.
6794         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6795         needed for the gnulib module 'close'.
6796         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6797         define to an error symbol or to a warning, if suitable.
6798         * lib/close.c: Include <sys/socket.h>.
6799         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6801         UNISTD_H_HAVE_WINSOCK2_H.
6802         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6804         UNISTD_H_HAVE_WINSOCK2_H.
6805         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6806         (configure.ac): Set a module indicator.
6807         (Makefile.am): Substitute GNULIB_CLOSE.
6808         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6809         * modules/poll-tests (Depends-on): Add close.
6810         * modules/select-tests (Depends-on): Likewise.
6811
6812 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6813             Bruno Haible  <bruno@clisp.org>
6814
6815         New module 'close'.
6816         * modules/close: New file.
6817         * lib/unistd.in.h (close): Move declaration out of the
6818         FCHDIR_REPLACEMENT scope.
6819         (_gl_unregister_fd): New declaration.
6820         * lib/close.c: New file.
6821         * lib/fchdir.c (rpl_close): Remove function.
6822         * m4/close.m4: New file.
6823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6824         close.
6825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6826         REPLACE_CLOSE.
6827         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6828         REPLACE_CLOSE.
6829         * modules/fchdir (Depends-on): Add close.
6830
6831 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6832             Bruno Haible  <bruno@clisp.org>
6833
6834         * lib/fcntl.in.h (open): Simplify conditionals.
6835         (_gl_register_fd): New declaration.
6836         * lib/fchdir.c (rpl_open): Remove function.
6837         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6838         also.
6839         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6841         open.
6842
6843 2008-10-09  Jim Meyering  <meyering@redhat.com>
6844
6845         GNUmakefile: use the more name-space-friendly "_version"
6846         * top/GNUmakefile (_dummy): Update.
6847         (_version): Rename from "version".
6848
6849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6850             Bruno Haible  <bruno@clisp.org>
6851
6852         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6853         rpl_close.
6854         (_gl_register_fd): New function, extracted from rpl_open.
6855         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6856         (rpl_open, rpl_opendir): Use _gl_register_fd.
6857
6858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6859
6860         Fix organization of 'open' replacement.
6861         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6862         (gl_FUNC_OPEN): Use it.
6863         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6864
6865 2008-10-08  Bruno Haible  <bruno@clisp.org>
6866
6867         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6868
6869 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6870
6871         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6872         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6873         listen).
6874
6875 2008-10-08  Eric Blake  <ebb9@byu.net>
6876
6877         GNUmakefile: add 'make version' target
6878         * top/GNUmakefile (_curr-ver): Split version update rules...
6879         (version): ...into a target.
6880
6881 2008-10-07  Bruno Haible  <bruno@clisp.org>
6882
6883         Use a more portable replacement expression for -0.0L.
6884         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6885         instead of -0.0L. Fix m4 quotation.
6886
6887         * tests/test-signbit.c: Include <float.h>.
6888         (minus_zero): New variable.
6889         (test_signbitl): Use minus_zero instead of -zero.
6890         * modules/signbit-tests (Depends-on): Add float.
6891
6892         * tests/test-ceill.c: Include <float.h>.
6893         (zero): Remove variable.
6894         (minus_zero): New variable.
6895         (main): Use minus_zero instead of -zero.
6896         * modules/ceill-tests (Depends-on): Add float.
6897
6898         * tests/test-floorl.c: Include <float.h>.
6899         (zero): Remove variable.
6900         (minus_zero): New variable.
6901         (main): Use minus_zero instead of -zero.
6902         * modules/floorl-tests (Depends-on): Add float.
6903
6904         * tests/test-roundl.c: Include <float.h>.
6905         (zero): Remove variable.
6906         (minus_zero): New variable.
6907         (main): Use minus_zero instead of -zero.
6908         * modules/roundl-tests (Depends-on): Add float.
6909
6910         * tests/test-truncl.c: Include <float.h>.
6911         (zero): Remove variable.
6912         (minus_zero): New variable.
6913         (main): Use minus_zero instead of -zero.
6914         * modules/truncl-tests (Depends-on): Add float.
6915
6916         * tests/test-frexpl.c (zero): Remove variable.
6917         (minus_zero): New variable.
6918         (main): Use minus_zero instead of -zero.
6919         * modules/frexpl-tests (Depends-on): Add float.
6920
6921         * tests/test-isnan.c (zerol): Remove variable.
6922         (minus_zerol): New variable.
6923         (test_long_double): Use minus_zerol instead of -zerol.
6924         * modules/isnan-tests (Depends-on): Add float.
6925
6926         * tests/test-isnanl.h (zero): Remove variable.
6927         (minus_zero): New variable.
6928         (main): Use minus_zero instead of -zero.
6929         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6930         * modules/isnanl-tests (Depends-on): Add float.
6931
6932         * tests/test-ldexpl.c (zero): Remove variable.
6933         (minus_zero): New variable.
6934         (main): Use minus_zero instead of -zero.
6935         * modules/ldexpl-tests (Depends-on): Add float.
6936
6937         * tests/test-snprintf-posix.h (zerol): Remove variable.
6938         (minus_zerol): New variable.
6939         (test_function): Use minus_zerol instead of -zerol.
6940         * modules/snprintf-posix-tests (Depends-on): Add float.
6941         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6942
6943         * tests/test-sprintf-posix.h (zerol): Remove variable.
6944         (minus_zerol): New variable.
6945         (test_function): Use minus_zerol instead of -zerol.
6946         * modules/sprintf-posix-tests (Depends-on): Add float.
6947         * modules/vsprintf-posix-tests (Depends-on): Add float.
6948
6949         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6950         (minus_zerol): New variable.
6951         (test_function): Use minus_zerol instead of -zerol.
6952         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6953
6954         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6955         (minus_zerol): New variable.
6956         (test_function): Use minus_zerol instead of -zerol.
6957         * modules/vasprintf-posix-tests (Depends-on): Add float.
6958
6959 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6960
6961         * MODULES.html.sh (Support for building documentation): Mention
6962         pmccabe2html.  Sort entries.
6963
6964         Add pmccabe2html module, from gnupdf.
6965         * build-aux/pmccabe.css: New file.
6966         * build-aux/pmccabe2html: New file.
6967         * m4/pmccabe2html.m4: New file.
6968         * modules/pmccabe2html: New file.
6969
6970 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6971
6972         flock: new module
6973         * MODULES.html.sh: Add to list of modules.
6974         * lib/flock.c: flock implementation for Windows and Unix systems
6975         which have fcntl.
6976         * doc/glibc-functions/flock.texi: Update documentation.
6977         * lib/sys_file.in.h: <sys/file.h> header file.
6978         * m4/flock.m4: M4 macros.
6979         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6980         * modules/flock: flock module.
6981         * modules/flock-tests: flock tests module.
6982         * modules/sys_file: sys/file.h module.
6983         * tests/test-flock.c: test suite for flock.
6984
6985 2008-10-06  Jim Meyering  <meyering@redhat.com>
6986
6987         bootstrap: check for LT_INIT more portably still ;-)
6988         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6989         Spotted by Bruno Haible.
6990
6991 2008-10-06  Eric Blake  <ebb9@byu.net>
6992
6993         test-signbit: avoid tripping Irix cc bug on -0.0L
6994         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6995         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6996         entire testsuite consistent and avoids an Irix 6.2 bug.
6997
6998 2008-10-05  Bruno Haible  <bruno@clisp.org>
6999             Jim Meyering  <jim@meyering.net>
7000
7001         Add an option for ignoring EPIPE during close_stdout.
7002         * lib/closeout.h: Include <stdbool.h>.
7003         (close_stdout_set_ignore_EPIPE): New declaration.
7004         * lib/closeout.c: Include <stdbool.h>.
7005         (ignore_EPIPE): New variable.
7006         (close_stdout_set_ignore_EPIPE): New function.
7007         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
7008         * lib/close-stream.c (close_stream): Mention the possible EPIPE
7009         failure.
7010         * modules/closeout (Depends-on): Add stdbool.
7011
7012 2008-10-05  Bruno Haible  <bruno@clisp.org>
7013
7014         * modules/accept: New file.
7015         * modules/bind: New file.
7016         * modules/connect: New file.
7017         * modules/getpeername: New file.
7018         * modules/getsockname: New file.
7019         * modules/getsockopt: New file.
7020         * modules/listen: New file.
7021         * modules/recv: New file.
7022         * modules/recvfrom: New file.
7023         * modules/send: New file.
7024         * modules/sendto: New file.
7025         * modules/setsockopt: New file.
7026         * modules/socket: New file.
7027         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
7028         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7029         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
7030         the particular module is requested. Add a link warning when the
7031         particular module is not requested.
7032         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
7033         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
7034         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
7035         the particular module is requested.
7036         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
7037         gl_SYS_SOCKET_H_DEFAULTS): New macros.
7038         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
7039         * modules/sys_socket (Depends-on): Add link-warning.
7040         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
7041         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
7042         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
7043         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
7044         GL_LINK_WARNING.
7045         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
7046         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
7047         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
7048         * doc/posix-functions/getpeername.texi: Mention the new module
7049         'getpeername'.
7050         * doc/posix-functions/getsockname.texi: Mention the new module
7051         'getsockname'.
7052         * doc/posix-functions/getsockopt.texi: Mention the new module
7053         'getsockopt'.
7054         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
7055         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
7056         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
7057         * doc/posix-functions/send.texi: Mention the new module 'send'.
7058         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
7059         * doc/posix-functions/setsockopt.texi: Mention the new module
7060         'setsockopt'.
7061         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
7062         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
7063         listen, connect, accept.
7064         * modules/select-tests (Depends-on): Likewise.
7065
7066 2008-10-05  Bruno Haible  <bruno@clisp.org>
7067
7068         * lib/winsock.c (strerror): Remove unused #undef.
7069         (rpl_close): Remove unused local variable.
7070
7071         * modules/sys_socket (Depends-on); Add errno.
7072
7073 2008-10-05  Bruno Haible  <bruno@clisp.org>
7074
7075         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
7076         (select): Add a link warning when the 'select' module is not used.
7077         * modules/sys_select (Depends-on): Add link-warning.
7078         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
7079         Suggested by Paolo Bonzini.
7080
7081 2008-10-05  Jim Meyering  <meyering@redhat.com>
7082
7083         bootstrap: check for LT_INIT more portably
7084         * build-aux/bootstrap: Avoid using grep -E, since it's not
7085         portable enough.  Suggestion from Bruno Haible.
7086
7087 2008-10-05  Bruno Haible  <bruno@clisp.org>
7088
7089         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
7090         as being fixed by gnulib.
7091
7092 2008-10-05  Bruno Haible  <bruno@clisp.org>
7093
7094         * modules/select-tests: New file, mostly copied from
7095         modules/sys_select-tests.
7096         * tests/test-select.c: New file, mostly copied from
7097         tests/test-sys_select.c.
7098         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
7099         * modules/sys_select-tests (Depends-on): Remove all dependencies.
7100         (Makefile.am): Remove test_sys_select_LDADD.
7101
7102         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
7103         to an undefined symbol, for an error message.
7104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
7105         (gl_SYS_SELECT_H_DEFAULTS): New macro.
7106         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
7107         winsock-select.c here.
7108         * modules/sys_select (Files): Remove lib/winsock-select.c.
7109         (Depends-on): Remove alloca.
7110         (Makefile.am): Substitute GNULIB_SELECT.
7111         * modules/select: New file.
7112         * doc/posix-functions/select.texi: Update.
7113
7114 2008-10-05  Bruno Haible  <bruno@clisp.org>
7115
7116         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
7117         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
7118         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
7119         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
7120         getdtablesize.
7121         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7122         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7123
7124 2008-10-05  Bruno Haible  <bruno@clisp.org>
7125
7126         * modules/getdtablesize-tests: New file.
7127         * tests/test-getdtablesize.c: New file.
7128
7129         New module 'getdtablesize'.
7130         * lib/unistd.in.h (getdtablesize): New declaration.
7131         * lib/getdtablesize.c: New file.
7132         * m4/getdtablesize.m4: New file.
7133         * modules/getdtablesize: New file.
7134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7135         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
7136         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
7137         HAVE_GETDTABLESIZE.
7138         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
7139
7140 2008-10-05  Bruno Haible  <bruno@clisp.org>
7141
7142         * modules/sched (Makefile.am): Fix typo.
7143         Reported by Simon Josefsson.
7144
7145 2008-10-05  Jim Meyering  <meyering@redhat.com>
7146
7147         bootstrap: check for LT_INIT, too
7148         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
7149         are deprecated.  Suggestion from Ralf Wildenhues.
7150
7151 2008-10-05  Bruno Haible  <bruno@clisp.org>
7152
7153         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
7154         overriding them by ours.
7155         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
7156
7157 2008-10-05  Jim Meyering  <meyering@redhat.com>
7158
7159         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
7160         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
7161         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
7162
7163 2008-10-04  Bruno Haible  <bruno@clisp.org>
7164
7165         * modules/dup2 (License): Change to LGPLv2+.
7166         * modules/sleep (License): Likewise.
7167         * modules/perror (License): Likewise.
7168         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
7169         Blake.
7170         * modules/signal (License): Likewise.
7171         * modules/sigprocmask (License): Likewise.
7172         * modules/raise (License): Change to LGPLv2+, with approval by Jim
7173         Meyering.
7174
7175 2008-10-04  Bruno Haible  <bruno@clisp.org>
7176
7177         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
7178         Reported by Rainer Tammer <tammer@tammer.net>.
7179
7180 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
7181             Bruno Haible  <bruno@clisp.org>
7182
7183         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
7184         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
7185         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
7186
7187 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
7188
7189         filevercmp: new module
7190         * lib/filevercmp.h: New function filevercmp comparing version strings.
7191         * lib/filevercmp.c: Implementation of filevercmp function.
7192         * modules/filevercmp: Module metadata.
7193         * tests/test-filevercmp.c: Unit test for new module.
7194         * modules/filevercmp-tests: Unit test metadata.
7195         * MODULES.html.sh: Add filevercmp module.
7196
7197 2008-10-03  Bruno Haible  <bruno@clisp.org>
7198
7199         * lib/c-ctype.h: Add comment.
7200         Reported by Jim Meyering.
7201
7202 2008-10-02  Bruno Haible  <bruno@clisp.org>
7203
7204         * modules/posix_spawn-internal (Depends-on): Add 'open'.
7205
7206 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7207
7208         * build-aux/bootstrap: Allow renaming bootstrap, and change the
7209         name of bootstrap.conf accordingly.
7210
7211 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7212
7213         * build-aux/bootstrap: Install git-merge-changelog configuration
7214         items into .gitconfig if needed.
7215
7216 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7217
7218         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
7219         git repository, and initialize/update it accordingly.
7220
7221 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
7222
7223         * modules/fsync-tests: New file.
7224         * tests/test-fsync.c: New file.
7225
7226         New module 'fsync'.
7227         * lib/fsync.c: New file.
7228         * m4/fsync.m4: New file.
7229         * modules/fsync: New file.
7230         * lib/unistd.in.h (fsync): New declaration.
7231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
7232         GNULIB_FSYNC and HAVE_FSYNC.
7233         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
7234         * MODULES.html.sh (posix_functions): Add fsync.
7235         * doc/posix-functions/fsync.texi: Mention the new module.
7236
7237 2008-10-02  Jim Meyering  <meyering@redhat.com>
7238
7239         fts.c: sync with similar code from coreutils' remove.c
7240         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
7241         Guard also with "#if defined __linux__", since for now at least,
7242         this code is Linux-kernel-specific.
7243
7244 2008-10-02  Jim Meyering  <meyering@redhat.com>
7245
7246         fts: bug fixes
7247         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
7248         Include <sys/vfs.h>, not <sys/statfs.h>.
7249
7250         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
7251         Include <sys/vfs.h>, not <sys/statfs.h>.
7252
7253 2008-10-01  Bruno Haible  <bruno@clisp.org>
7254
7255         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
7256         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
7257         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
7258         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
7259         * doc/posix-functions/posix_spawnp.texi: Likewise.
7260         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
7261         whether posix_spawn actually works.
7262         * m4/pipe.m4 (gl_PIPE): Likewise.
7263         * modules/execute (Files): Add m4/posix_spawn.m4.
7264         * modules/pipe (Files): Add m4/posix_spawn.m4.
7265         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
7266
7267 2008-10-01  Jim Meyering  <meyering@redhat.com>
7268
7269         remove trailing spaces
7270         * NEWS: Likewise.
7271         * lib/poll.c (poll): Likewise.
7272         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
7273         * lib/winsock.c (rpl_close): Likewise.
7274         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
7275         * modules/yield: Likewise.
7276         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
7277         * tests/test-sys_select.c (connect_to_socket): Likewise.
7278
7279         fts.c: adjust a new interface to be more generally useful
7280         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
7281         (fts_build): Adjust caller.
7282
7283 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7284
7285         * modules/cond-tests: New file.
7286         * tests/test-cond.c: New file.
7287
7288 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7289             Bruno Haible  <bruno@clisp.org>
7290
7291         * modules/cond (Dependencies): Add errno, time.
7292         * lib/glthread/cond.h: Include <time.h>.
7293         (gl_cond_define, gl_cond_define_initialized): Use the same definition
7294         across platforms.
7295
7296 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7297             Bruno Haible  <bruno@clisp.org>
7298
7299         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
7300
7301 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7302             Bruno Haible  <bruno@clisp.org>
7303
7304         * modules/tls-tests (Depends-on): Add thread, yield.
7305         (configure.ac): Remove all checks.
7306         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
7307         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7308         gl_thread_self): Remove definitions. Include glthread/thread.h and
7309         glthread/yield.h instead.
7310         (test_tls): Pass an additional NULL argument to gl_thread_join.
7311
7312 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7313             Bruno Haible  <bruno@clisp.org>
7314
7315         * modules/lock-tests (Depends-on): Add thread, yield.
7316         (configure.ac): Remove all checks.
7317         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
7318         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7319         gl_thread_self): Remove definitions. Include glthread/thread.h and
7320         glthread/yield.h instead.
7321         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
7322         additional NULL argument to gl_thread_join.
7323
7324 2008-09-30  Bruno Haible  <bruno@clisp.org>
7325
7326         Fix the Win32 implementation of the 'thread' module.
7327         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
7328         pointer type.
7329         (gl_thread_self): Invoke gl_thread_self_func.
7330         (gl_thread_self_func): New declaration.
7331         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
7332         (do_init_self_key, init_self_key): New functions.
7333         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
7334         Remove some fields.
7335         (running_threads, running_lock): Remove variables.
7336         (get_current_thread_handle): New function.
7337         (gl_thread_self_func, wrapper_func, glthread_create_func,
7338         glthread_join_func, gl_thread_exit_func): Largely rewritten and
7339         simplified.
7340
7341 2008-09-30  Bruno Haible  <bruno@clisp.org>
7342
7343         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
7344         files.
7345
7346 2008-09-30  Jim Meyering  <meyering@redhat.com>
7347
7348         fts.m4: correct the test for statfs.f_type
7349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
7350         when checking for statfs.f_type.
7351
7352 2008-09-15  Simon Josefsson  <simon@josefsson.org>
7353
7354         tests: avoid some compiler warnings
7355         * tests/test-memchr.c (main): Pass NULL indirectly.
7356         * tests/test-getdate.c (main): Remove unused variable 'ret'.
7357
7358 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
7359
7360         getdate.y: disallow countable dayshifts like "4 yesterday ago"
7361         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
7362         exactly specified dayshifts.
7363         (dayshift): New rule.
7364         (rel): Add dayshift.
7365         (relative_time_table) [tomorrow, yesterday, today, now]:
7366         Use tDAY_SHIFT in place of tDAY_UNIT.
7367         * tests/test-getdate.c: Add tests for now-disallowed countable
7368         dayshifts, e.g., "4 yesterday ago".
7369
7370 2008-09-29  Bruno Haible  <bruno@clisp.org>
7371
7372         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
7373         * tests/test-posix_spawn1.in.sh: Renamed from
7374         tests/test-posix_spawn.in.sh.
7375         * tests/test-posix_spawn2.c: New file.
7376         * tests/test-posix_spawn2.in.sh: New file.
7377         * modules/posix_spawnp-tests (Files): Update.
7378         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
7379
7380 2008-09-29  Bruno Haible  <bruno@clisp.org>
7381
7382         Propagate effects of putenv/setenv/unsetenv to child processes.
7383         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
7384         * lib/pipe.c (create_pipe): Likewise.
7385
7386 2008-09-29  Bruno Haible  <bruno@clisp.org>
7387
7388         Enable use of shell scripts as executables in mingw.
7389         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
7390         run the program as a shell script.
7391         * lib/pipe.c (create_pipe): Likewise.
7392         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
7393         resulting array.
7394
7395 2008-09-29  Eric Blake  <ebb9@byu.net>
7396
7397         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
7398
7399 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
7400
7401         * doc/posix-functions/accept.texi: Update mingw problems.
7402         * doc/posix-functions/bind.texi: Update mingw problems.
7403         * doc/posix-functions/close.texi: Update mingw problems.
7404         * doc/posix-functions/connect.texi: Update mingw problems.
7405         * doc/posix-functions/getpeername.texi: Update mingw problems.
7406         * doc/posix-functions/getsockname.texi: Update mingw problems.
7407         * doc/posix-functions/getsockopt.texi: Update mingw problems.
7408         * doc/posix-functions/ioctl.texi: Update mingw problems.
7409         * doc/posix-functions/listen.texi: Update mingw problems.
7410         * doc/posix-functions/recv.texi: Update mingw problems.
7411         * doc/posix-functions/recvfrom.texi: Update mingw problems.
7412         * doc/posix-functions/select.texi: Update mingw problems.
7413         * doc/posix-functions/send.texi: Update mingw problems.
7414         * doc/posix-functions/sendto.texi: Update mingw problems.
7415         * doc/posix-functions/setsockopt.texi: Update mingw problems.
7416         * doc/posix-functions/socket.texi: Update mingw problems.
7417
7418 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
7419             Bruno Haible  <bruno@clisp.org>
7420
7421         * lib/sys_select.in.h: Include sys/time.h.
7422         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
7423         * modules/sys_select: Depend on sys_time.
7424         * tests/test-sys_select.c: Test that sys/select.h defines struct
7425         timeval fully.
7426
7427 2008-09-29  Bruno Haible  <bruno@clisp.org>
7428
7429         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
7430         * lib/sys_select.in.h: Likewise.
7431
7432 2008-09-29  Bruno Haible  <bruno@clisp.org>
7433
7434         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
7435
7436 2008-09-29  Bruno Haible  <bruno@clisp.org>
7437
7438         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
7439         Set LIBSOCKET instead of augmenting LIBS.
7440         * modules/sockets (Link): New section.
7441         * modules/sockets-tests (test_sockets_LDADD): New variable.
7442         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
7443         * modules/poll-tests (test_poll_LDADD): New variable.
7444         * NEWS: Document the change.
7445
7446 2008-09-29  Bruno Haible  <bruno@clisp.org>
7447
7448         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
7449         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
7450         ARPA_INET_H directly.
7451         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7452
7453 2008-09-28  Bruno Haible  <bruno@clisp.org>
7454
7455         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
7456         from gl_HEADER_SYS_SOCKET.
7457         (gl_HEADER_SYS_SOCKET): Invoke it.
7458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7459
7460 2008-09-28  Bruno Haible  <bruno@clisp.org>
7461
7462         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
7463         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
7464         Needed on OSF/1 4.0.
7465
7466 2008-09-28  Bruno Haible  <bruno@clisp.org>
7467
7468         Override open more carefully.
7469         * lib/open.c (orig_open): New function.
7470         (rpl_open): Use orig_open instead of open.
7471         * lib/fcntl.in.h: Add special invocation convention.
7472         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
7473         (gl_FUNC_OPEN): Invoke it.
7474
7475         Override freopen more carefully.
7476         * lib/freopen.c (orig_freopen): New function.
7477         (rpl_freopen): Use orig_freopen instead of freopen.
7478         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
7479         (gl_FUNC_FREOPEN): Invoke it.
7480
7481         Override fopen more carefully.
7482         * lib/fopen.c (orig_fopen): New function.
7483         (rpl_fopen): Use orig_fopen instead of fopen.
7484         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
7485         (gl_FUNC_FOPEN): Invoke it.
7486         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
7487
7488 2008-09-28  Bruno Haible  <bruno@clisp.org>
7489
7490         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
7491         SIGPIPE.
7492
7493 2008-09-28  Bruno Haible  <bruno@clisp.org>
7494
7495         * tests/test-sigaction.c (handler, main): Disable the check whether
7496         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
7497         glibc systems with LinuxThreads.
7498
7499 2008-09-28  Bruno Haible  <bruno@clisp.org>
7500
7501         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
7502
7503         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
7504         with AIX xlc.
7505         * lib/fcntl.in.h (open): Likewise.
7506         Reported by Rainer Tammer <tammer@tammer.net>.
7507
7508 2008-09-28  Bruno Haible  <bruno@clisp.org>
7509
7510         * modules/posix_spawnp-tests: New file.
7511         * tests/test-posix_spawn.c: New file.
7512         * tests/test-posix_spawn.in.sh: New file.
7513
7514         New module 'posix_spawnp'.
7515         * modules/posix_spawnp: New file.
7516         * lib/spawnp.c: New file, from GNU libc with modifications.
7517         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
7518
7519         New module 'posix_spawn'.
7520         * modules/posix_spawn: New file.
7521         * lib/spawn.c: New file, from GNU libc with modifications.
7522         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7523
7524         New module 'posix_spawnattr_destroy'.
7525         * modules/posix_spawnattr_destroy: New file.
7526         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
7527         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
7528         module.
7529
7530         New module 'posix_spawnattr_setsigmask'.
7531         * modules/posix_spawnattr_setsigmask: New file.
7532         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
7533         modifications.
7534         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
7535         new module.
7536
7537         New module 'posix_spawnattr_getsigmask'.
7538         * modules/posix_spawnattr_getsigmask: New file.
7539         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
7540         modifications.
7541         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
7542         new module.
7543
7544         New module 'posix_spawnattr_setsigdefault'.
7545         * modules/posix_spawnattr_setsigdefault: New file.
7546         * lib/spawnattr_setdefault.c: New file, from GNU libc with
7547         modifications.
7548         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
7549         new module.
7550
7551         New module 'posix_spawnattr_getsigdefault'.
7552         * modules/posix_spawnattr_getsigdefault: New file.
7553         * lib/spawnattr_getdefault.c: New file, from GNU libc with
7554         modifications.
7555         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7556         new module.
7557
7558         New module 'posix_spawnattr_setschedpolicy'.
7559         * modules/posix_spawnattr_setschedpolicy: New file.
7560         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7561         modifications.
7562         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7563         new module.
7564
7565         New module 'posix_spawnattr_getschedpolicy'.
7566         * modules/posix_spawnattr_getschedpolicy: New file.
7567         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7568         modifications.
7569         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7570         new module.
7571
7572         New module 'posix_spawnattr_setschedparam'.
7573         * modules/posix_spawnattr_setschedparam: New file.
7574         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7575         modifications.
7576         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7577         new module.
7578
7579         New module 'posix_spawnattr_getschedparam'.
7580         * modules/posix_spawnattr_getschedparam: New file.
7581         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7582         modifications.
7583         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7584         new module.
7585
7586         New module 'posix_spawnattr_setpgroup'.
7587         * modules/posix_spawnattr_setpgroup: New file.
7588         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7589         modifications.
7590         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7591         module.
7592
7593         New module 'posix_spawnattr_getpgroup'.
7594         * modules/posix_spawnattr_getpgroup: New file.
7595         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7596         modifications.
7597         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7598         module.
7599
7600         New module 'posix_spawnattr_setflags'.
7601         * modules/posix_spawnattr_setflags: New file.
7602         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7603         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7604         module.
7605
7606         New module 'posix_spawnattr_getflags'.
7607         * modules/posix_spawnattr_getflags: New file.
7608         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7609         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7610         module.
7611
7612         New module 'posix_spawnattr_init'.
7613         * modules/posix_spawnattr_init: New file.
7614         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7615         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7616         module.
7617
7618         New module 'posix_spawn_file_actions_destroy'.
7619         * modules/posix_spawn_file_actions_destroy: New file.
7620         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7621         modifications.
7622         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7623         the new module.
7624
7625         New module 'posix_spawn_file_actions_addopen'.
7626         * modules/posix_spawn_file_actions_addopen: New file.
7627         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7628         modifications.
7629         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7630         the new module.
7631
7632         New module 'posix_spawn_file_actions_adddup2'.
7633         * modules/posix_spawn_file_actions_adddup2: New file.
7634         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7635         modifications.
7636         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7637         the new module.
7638
7639         New module 'posix_spawn_file_actions_addclose'.
7640         * modules/posix_spawn_file_actions_addclose: New file.
7641         * lib/spawn_faction_addclose.c: New file, from GNU libc with
7642         modifications.
7643         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7644         the new module.
7645
7646         New module 'posix_spawn_file_actions_init'.
7647         * modules/posix_spawn_file_actions_init: New file.
7648         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7649         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7650         new module.
7651
7652         New module 'posix_spawn-internal'.
7653         * modules/posix_spawn-internal: New file.
7654         * lib/spawn_int.h: New file, from GNU libc with modifications.
7655         * lib/spawni.c: New file, from GNU libc with modifications.
7656         * m4/posix_spawn.m4: New file.
7657
7658         New module 'spawn'.
7659         * modules/spawn: New file.
7660         * lib/spawn.in.h: New file, from GNU libc with modifications.
7661         * m4/spawn_h.m4: New file.
7662         * doc/posix-headers/spawn.texi: Mention the new module.
7663
7664 2008-09-28  Bruno Haible  <bruno@clisp.org>
7665
7666         * modules/sched-tests: New file.
7667         * tests/test-sched.c: New file.
7668
7669         New module 'sched'.
7670         * modules/sched: New file.
7671         * lib/sched.in.h: New file.
7672         * m4/sched_h.m4: New file.
7673         * doc/posix-headers/sched.texi: Mention the new module.
7674
7675 2008-09-27  Eric Blake  <ebb9@byu.net>
7676
7677         Fix previous patch, and tweak references to $0.
7678         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7679         (func_version, func_gnulib_dir): Don't call this program
7680         gnulib-tool.
7681         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7682         with using $0 in function.
7683         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7684         (func_fatal_error): Reuse the name the user invoked us with.
7685
7686 2008-09-27  Bruno Haible  <bruno@clisp.org>
7687
7688         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7689         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7690         (gl_ICONV_H): Not here.
7691         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7692         instead of assigning ICONV_H directly.
7693
7694         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7696         WCHAR_H directly.
7697
7698 2008-09-27  Bruno Haible  <bruno@clisp.org>
7699
7700         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7701         * modules/arpa_inet (Depends-on): Add link-warning.
7702         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7703         * modules/unistd (Makefile.am): Likewise.
7704
7705 2008-09-26  Bruno Haible  <bruno@clisp.org>
7706
7707         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7708         variables.
7709         (func_version): Essentially copied from gnulib-tool.
7710         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7711         func_readlink): Copied from gnulib-tool.
7712
7713 2008-09-26  Bruno Haible  <bruno@clisp.org>
7714
7715         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7716         invoking git-version-gen.
7717
7718 2008-09-26  Bruno Haible  <bruno@clisp.org>
7719
7720         * posix-modules: Update to directory names changed on 2008-01-19.
7721         Remove commas in output before splitting into words. No more need to
7722         avoid 'ftruncate' since 2007-02-19.
7723
7724 2008-09-26  Bruno Haible  <bruno@clisp.org>
7725
7726         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7727
7728 2008-09-26  Bruno Haible  <bruno@clisp.org>
7729
7730         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7731         * modules/fwriteerror (Depends-on): Add errno.
7732
7733 2008-09-26  Bruno Haible  <bruno@clisp.org>
7734
7735         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7736         * tests/test-vc-list-files-cvs.sh: Likewise.
7737
7738 2008-09-26  Bruno Haible  <bruno@clisp.org>
7739
7740         * doc/posix-headers/sys_resource.texi: Reorder items.
7741
7742 2008-09-26  Jim Meyering  <meyering@redhat.com>
7743
7744         fts: tweak inode comparison function
7745         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7746         inode numbers, as documented.
7747
7748         fts: sort dirent entries on inode number before traversing
7749         This avoids a quadratic, seek-related performance penalty when
7750         operating on a directory containing many entries (measurable at 10k;
7751         3.5 hours at 2 million entries with a cold cache) on certain types
7752         of file systems, including ext3 and ext4, but not tmpfs.
7753         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7754         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7755         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7756         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7757         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7758         (fts_build): Set the stat.st_ino member from D_INO.
7759         If it is likely to be useful, sort dirent entries on inode number.
7760
7761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7762         and the struct statfs.f_type member.
7763         * modules/fts (Depends-on): Add d-ino.
7764
7765 2008-09-26  Bruno Haible  <bruno@clisp.org>
7766
7767         * modules/sigpipe-die (Depends-on): Add sigpipe.
7768
7769         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7770         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7771         and GNULIB_STDIO_H_SIGPIPE are set.
7772         * lib/stdio-write.c: New file.
7773         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7774         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7775         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7776         REPLACE_STDIO_WRITE_FUNCS.
7777         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7778         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7779         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7780         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7781         * modules/stdio (Files): Add lib/stdio-write.c.
7782         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7783         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7784         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7785         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7786         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7787         REPLACE_FPRINTF_POSIX.
7788         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7789         REPLACE_PRINTF_POSIX.
7790         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7791         REPLACE_VFPRINTF_POSIX.
7792         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7793         REPLACE_VPRINTF_POSIX.
7794         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7795         SIGPIPE issue.
7796         * doc/posix-functions/fputc.texi: Likewise.
7797         * doc/posix-functions/fputs.texi: Likewise.
7798         * doc/posix-functions/fwrite.texi: Likewise.
7799         * doc/posix-functions/printf.texi: Likewise.
7800         * doc/posix-functions/putc.texi: Likewise.
7801         * doc/posix-functions/putchar.texi: Likewise.
7802         * doc/posix-functions/puts.texi: Likewise.
7803         * doc/posix-functions/vfprintf.texi: Likewise.
7804         * doc/posix-functions/vprintf.texi: Likewise.
7805
7806         * modules/safe-write (Depends-on): Add write.
7807
7808         * modules/sigpipe-tests: New file.
7809         * tests/test-sigpipe.c: New file.
7810         * tests/test-sigpipe.sh: New file.
7811
7812         * modules/write: New file.
7813         * lib/unistd.in.h: Include <sys/types.h>.
7814         (write): New declaration.
7815         * lib/write.c: New file.
7816         * m4/write.m4: New file.
7817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7818         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7820         GNULIB_WRITE, REPLACE_WRITE.
7821         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7822         and the SIGPIPE issue.
7823
7824         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7825         (raise): New declaration.
7826         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7827         (ext_signal): New function.
7828         (rpl_raise): New function.
7829         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7830         GNULIB_SIGNAL_H_SIGPIPE.
7831         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7832         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7833
7834         * modules/sigpipe: New file.
7835         * m4/sigpipe.m4: New file.
7836
7837 2008-09-25  Derek Price  <derek@ximbiot.com>
7838             Bruno Haible  <bruno@clisp.org>
7839
7840         * gnulib-tool (func_import): Report all license incompatibilities, not
7841         just the first one.
7842
7843 2008-09-25  Bruno Haible  <bruno@clisp.org>
7844
7845         * gnulib-tool (func_import): When computing the edits, consider not
7846         only the Makefile.ams that exist but also those that will be generated.
7847
7848 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7849
7850         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7851         fixes gnulib-tool --test warning about duplicate dependency.
7852
7853 2008-09-25  Bruno Haible  <bruno@clisp.org>
7854
7855         * gnulib-tool: Don't ask the user to perform edits in the generated
7856         Makefile.ams.
7857         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7858         apply to the Makefile.am being generated.
7859         (func_emit_tests_Makefile_am): Execute edits that apply to the
7860         Makefile.am being generated.
7861         (func_import): Setup list of Makefile.am edits before emitting the
7862         Makefile.ams, not at the end.
7863         (func_create_testdir): Update.
7864         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7865
7866 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7867
7868         * gnulib-tool (func_import): Store the --tests-base option in the
7869         comment in gnulib-cache.m4.
7870
7871 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7872
7873         * NEWS: Document increased portability that sys_select now provides.
7874
7875         * lib/sys_select.in.h: Install select wrapper.
7876         * lib/sys_socket.in.h: Use more descriptive name when there is no
7877         select wrapper.
7878         * lib/winsock-select.c: New.
7879         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7880         Require gl_HEADER_SYS_SOCKET.
7881         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7882         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7883         * tests/test-sys_select.c: Add functional tests.
7884
7885 2008-09-24  Eric Blake  <ebb9@byu.net>
7886
7887         open, fopen: close fd leak in last patch
7888         * lib/open.c (rpl_open): Close fd before returning error.
7889         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7890         * doc/posix-functions/open.texi (open): Document that Irix also
7891         has the bug.
7892         * doc/posix-functions/fopen.texi (fopen): Likewise.
7893         Reported by Paolo Bonzini.
7894
7895 2008-09-24  Bruno Haible  <bruno@clisp.org>
7896
7897         Ensure that a filename ending in a slash cannot be used to access a
7898         non-directory.
7899         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7900         to check whether it's really a directory.
7901         * lib/fopen.c: Include fcntl.h, unistd.h.
7902         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7903         and fdopen().
7904         * modules/fopen (Depends-on): Add unistd.
7905         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7906         * tests/test-fopen.c (main): Likewise.
7907         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7908         * doc/posix-functions/fopen.texi: Likewise.
7909         Reported by Eric Blake.
7910
7911 2008-09-23  Eric Blake  <ebb9@byu.net>
7912
7913         c-stack: avoid compiler optimizations when provoking overflow
7914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7915         recursion harder to optimize, to ensure a stack overflow occurs.
7916         * tests/test-c-stack.c (recurse): Likewise.
7917         Borrowed from libsigsegv.
7918
7919         c-stack: work around Irix sigaltstack bug
7920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7921         whether sigaltstack uses wrong end of stack_t (copied in part from
7922         libsigsegv).
7923         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7924         Irix bug, without requiring an over-allocation.
7925         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7926         bug.
7927
7928         fopen: document mingw bug on directories
7929         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7930         not allowing a stream visiting a directory, even though reading
7931         from such a stream is not portable.
7932
7933 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7934
7935         * lib/poll.c: Rewrite.
7936         * modules/poll: Depend on alloca.
7937
7938 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7939
7940         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7941         instead define prototypes for a full set of wrappers.  Ensure
7942         that Cygwin does not use the compatibility code, which is only
7943         for MinGW.
7944         * lib/winsock.c: New.
7945         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7946         * modules/sys_socket: Add lib/winsock.c.
7947
7948         * modules/poll-tests: Add errno and perror.
7949         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7950
7951 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7952
7953         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7954
7955 2008-09-23  Bruno Haible  <bruno@clisp.org>
7956
7957         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7958         * doc/glibc-functions/*: Likewise.
7959
7960 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7961
7962         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7963         success.
7964
7965 2008-09-22  Eric Blake  <ebb9@byu.net>
7966             Bruno Haible  <bruno@clisp.org>
7967
7968         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7969         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7970         supply %A but mishandle pseudo-NaN.
7971         Reported by Simon Josefsson.
7972
7973 2008-09-21  Bruno Haible  <bruno@clisp.org>
7974
7975         * tests/test-lock.c (main): Tweak skip message.
7976         * tests/test-tls.c (main): Likewise.
7977
7978 2008-09-21  Bruno Haible  <bruno@clisp.org>
7979
7980         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7981         whether 'struct sigaction' has sa_sigaction here...
7982         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7983         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7984
7985 2008-09-21  Bruno Haible  <bruno@clisp.org>
7986
7987         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7988         section.
7989         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7990         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7991         the new section.
7992         (Support for obsolete systems lacking POSIX:2001): New section.
7993         (String handling <string.h>): Move strdup to the new section.
7994         Suggested by Simon Josefsson and Paolo Bonzini.
7995
7996 2008-09-21  Bruno Haible  <bruno@clisp.org>
7997
7998         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7999         exponents in %e and %g results on 'long double'. Needed for mingw's
8000         improved *printf functions.
8001         * tests/test-vasprintf-posix.c (test_function): Likewise.
8002         * tests/test-snprintf-posix.h (test_function): Likewise.
8003         * tests/test-sprintf-posix.h (test_function): Likewise.
8004         Reported by Eric Blake.
8005
8006 2008-09-21  Bruno Haible  <bruno@clisp.org>
8007
8008         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
8009         * tests/test-sprintf-posix.h (test_function): Likewise.
8010
8011 2008-09-21  Bruno Haible  <bruno@clisp.org>
8012
8013         * modules/getpass (Depends-on): Add strdup-posix.
8014
8015         New module 'strdup-posix'.
8016         * modules/strdup-posix: New file.
8017         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
8018         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
8019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8020         REPLACE_STRDUP.
8021         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
8022         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
8023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8024         strdup-posix.
8025
8026         * modules/strdup (Depends-on): Remove malloc-posix.
8027
8028 2008-09-20  Bruno Haible  <bruno@clisp.org>
8029
8030         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
8031         Wildenhues.
8032
8033 2008-09-20  Bruno Haible  <bruno@clisp.org>
8034
8035         Ensure that wint_t gets defined on IRIX 5.3.
8036         * lib/wchar.in.h (wint_t): Define if not defined by the system.
8037         * lib/wctype.in.h (wint_t): Likewise.
8038         (__wctype_wint_t): Remove type.
8039         (isw*): Use wint_t instead of __wctype_wint_t.
8040         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
8041         * modules/wchar (Files): Add m4/wint_t.m4.
8042         (Makefile.am): Substitute HAVE_WINT_T.
8043         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
8044         * tests/test-wctype.c: Check that wint_t is defined.
8045         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
8046         * doc/posix-headers/wctype.texi: Likewise.
8047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8048
8049 2008-09-18  Bruno Haible  <bruno@clisp.org>
8050
8051         * gnulib-tool (func_exit): Update comment.
8052
8053 2008-09-18  Simon Josefsson  <simon@josefsson.org>
8054
8055         * modules/getaddrinfo (Depends-on): Remove strdup, this module
8056         assumes strdup exists and does not depend on strdup to return
8057         ENOMEM on out of memory conditions.
8058
8059 2008-09-18  Bruno Haible  <bruno@clisp.org>
8060
8061         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
8062         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
8063         digits for the exponent.
8064
8065 2008-09-18  Jim Meyering  <meyering@redhat.com>
8066             Bruno Haible  <bruno@clisp.org>
8067
8068         * lib/vasnprintf.c (decimal_point_char): Define also if
8069         NEED_PRINTF_INFINITE_LONG_DOUBLE.
8070
8071 2008-09-16  Bruno Haible  <bruno@clisp.org>
8072         and Eric Blake  <ebb9@byu.net>
8073
8074         vasnprintf: support Irix 5.3
8075         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
8076         that mishandle long double infinity.
8077         Reported by Tom G. Christensen.
8078
8079 2008-09-16  Bruno Haible  <bruno@clisp.org>
8080
8081         * doc/glibc-functions/scandir.texi: Mention the function is missing on
8082         Solaris 9.
8083         * doc/glibc-functions/alphasort.texi: Likewise.
8084         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
8085
8086 2008-09-16  Jim Meyering  <meyering@redhat.com>
8087
8088         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
8089         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
8090         a umask modification leak out of a subshell.  Otherwise, the
8091         opensolaris /bin/sh would be accepted and thus cause unwarranted
8092         failures in the coreutils test suite.
8093
8094 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
8095
8096         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
8097         to succeed.
8098
8099 2008-09-16  Jim Meyering  <meyering@redhat.com>
8100
8101         avoid spurious test failure when library is built without ACL support
8102         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
8103         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
8104         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
8105         * tests/test-copy-acl.sh: Likewise.
8106
8107 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8108
8109         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
8110         based on character occurrence counts.
8111
8112 2008-09-15  Eric Blake  <ebb9@byu.net>
8113
8114         tests: avoid some compiler warnings
8115         * tests/test-memchr.c (main): Pass NULL indirectly.
8116         * tests/test-closein.c (main): Avoid unused variable.
8117
8118 2008-09-15  Bruno Haible  <bruno@clisp.org>
8119
8120         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
8121         are missing on OpenBSD 4.0 individually.
8122         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8123
8124 2008-09-15  Bruno Haible  <bruno@clisp.org>
8125
8126         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
8127         * doc/posix-functions/strerror.texi: Mention also Cygwin.
8128         * doc/posix-functions/perror.texi: Likewise.
8129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
8130         is missing.
8131         Reported by Eric Blake.
8132
8133         * lib/errno.in.h: Use replacement values >= 2000.
8134         Reported by Eric Blake.
8135
8136 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137
8138         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
8139         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
8140         limit.
8141         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
8142         compareseq was aborted.
8143
8144 2008-09-14  Bruno Haible  <bruno@clisp.org>
8145
8146         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
8147         yvec_edit_count.
8148         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
8149         (fstrcmp_bounded): Simplify result computation accordingly.
8150
8151 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8152
8153         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
8154         (fstrcmp): Define in terms of fstrcmp_bounded.
8155         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
8156         lower_bound argument.
8157         Return quickly if the result is certainly < lower_bound.
8158         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
8159
8160 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8161
8162         * lib/diffseq.h (EARLY_ABORT): New macro.
8163         (compareseq): Change return type to bool. Return true when EARLY_ABORT
8164         evaluates to true.
8165
8166 2008-09-14  Bruno Haible  <bruno@clisp.org>
8167
8168         * modules/perror-tests: New file.
8169         * tests/test-perror.sh: New file.
8170         * tests/test-perror.c: New file.
8171
8172         New module 'perror'.
8173         * lib/stdio.in.h (perror): New declaration.
8174         * lib/perror.c: New file.
8175         * m4/perror.m4: New file.
8176         * modules/perror: New file.
8177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
8178         * doc/posix-functions/perror.texi: Mention the perror module.
8179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
8180         REPLACE_PERROR.
8181         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
8182         REPLACE_PERROR.
8183
8184 2008-09-14  Bruno Haible  <bruno@clisp.org>
8185
8186         * modules/stdio (Makefile.am): Reorder to match the order in
8187         lib/stdio.in.h.
8188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8189
8190 2008-09-13  Bruno Haible  <bruno@clisp.org>
8191
8192         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
8193
8194 2008-09-13  Bruno Haible  <bruno@clisp.org>
8195
8196         Extend strerror to cover the added errno values.
8197         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
8198         (rpl_strerror): Provide error messages for the added errno values and
8199         for the WSA* values.
8200         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
8201         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
8202         strerror.
8203         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
8204         * modules/strerror (Depends-on): Add errno.
8205         * doc/posix-functions/strerror.texi: Document the change.
8206         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
8207         and EOVERFLOW.
8208
8209 2008-09-13  Bruno Haible  <bruno@clisp.org>
8210
8211         * modules/EOVERFLOW: Remove file.
8212         * m4/eoverflow.m4: Remove file.
8213         * modules/EOVERFLOW-tests: Remove file.
8214         * tests/test-EOVERFLOW.c: Remove file.
8215         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
8216         * modules/ftell (Depends-on): Likewise.
8217         * modules/getdelim (Depends-on): Likewise.
8218         * modules/getugroups (Depends-on): Likewise.
8219         * modules/poll (Depends-on): Likewise.
8220         * modules/snprintf (Depends-on): Likewise.
8221         * modules/sprintf-posix (Depends-on): Likewise.
8222         * modules/vasnprintf (Depends-on): Likewise.
8223         * modules/vasprintf (Depends-on): Likewise.
8224         * modules/vfprintf-posix (Depends-on): Likewise.
8225         * modules/vsnprintf (Depends-on): Likewise.
8226         * modules/vsprintf-posix (Depends-on): Likewise.
8227         * modules/xvasprintf (Depends-on): Likewise.
8228         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8229         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
8230         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
8231         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
8232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8233         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
8234         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
8235         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
8236         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8237         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
8238         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
8239         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
8240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8241         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
8242         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
8243         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
8244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8245         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
8246         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
8247         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
8248         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8249         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
8250         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
8251         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
8252         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
8253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8254         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
8255         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
8256         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
8257         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
8258         * MODULES.html.sh: Remove EOVERFLOW.
8259         * NEWS: Mention the change.
8260
8261 2008-09-13  Bruno Haible  <bruno@clisp.org>
8262
8263         * modules/errno-tests: New file.
8264         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
8265
8266         * lib/errno.in.h: New file.
8267         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
8268         * modules/errno: New file.
8269         * doc/posix-headers/errno.texi: Update documentation.
8270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
8271
8272 2008-09-13  Bruno Haible  <bruno@clisp.org>
8273
8274         * tests/test-poll.c: Use #if for native Windows, rather than testing
8275         __MSVCRT__.
8276
8277 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8278             Bruno Haible  <bruno@clisp.org>
8279
8280         * lib/glob.c: Don't include <pwd.h> on native Windows.
8281         (WINDOWS32): New macro.
8282         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
8283
8284 2008-09-13  Bruno Haible  <bruno@clisp.org>
8285
8286         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
8287         (ETIMEDOUT): Remove macro.
8288         (glthread_cond_timedwait_multithreaded): New declaration.
8289         (glthread_cond_timedwait): Use it.
8290         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
8291         (glthread_cond_timedwait_multithreaded): New function.
8292
8293 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8294
8295         * modules/poll-tests: Do not check for io.h.
8296         * tests/test-poll.c: Check for __MSVCRT__ instead.
8297
8298 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8299
8300         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
8301         * modules/poll-tests: Add inet_pton, stdbool, sockets.
8302         * tests/test-poll.c: Use them.  Use _pipe on Windows.
8303
8304 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8305
8306         * modules/poll-tests: New.
8307         * tests/test-poll.c: New.
8308
8309 2008-09-12  Eric Blake  <ebb9@byu.net>
8310
8311         frexp: test for NetBSD failure on -0.0
8312         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
8313         not all, bugs from NetBSD 3.0 have been fixed.
8314         * doc/posix-functions/frexp.texi (frexp): Document bug.
8315         Reported by Thomas Klausner.
8316
8317         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
8318         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
8319         literal -0.0.
8320         Reported by Jonathan C. Patschke <jp@centtech.com>.
8321
8322 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8323
8324         * lib/glthread/cond.h: Use dummy implementation also if
8325         USE_WIN32_THREADS.
8326
8327 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8328
8329         * modules/fnmatch-posix (License): Change to LGPLv2+.
8330         * modules/fnmatch-gnu (License): Likewise.
8331
8332 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8333
8334         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
8335
8336 2008-09-11  Jim Meyering  <meyering@redhat.com>
8337
8338         * users.txt: Add gtk-vnc.
8339
8340 2008-09-08  Simon Josefsson  <simon@josefsson.org>
8341
8342         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
8343         rotate amounts.
8344
8345         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
8346         required for 16-bit and 8-bit rotates.
8347         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
8348         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
8349         UINT8_MAX instead of hard-coded constants.
8350         Suggested by Paul Eggert.
8351
8352 2008-09-07  Bruno Haible  <bruno@clisp.org>
8353
8354         * tests/test-striconveh.c (main): Check behaviour when converting from
8355         UTF-7.
8356
8357         Make striconveh work better with stateful encodings.
8358         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
8359         that iconv does not increment the inptr when returning -1/EINVAL.
8360
8361 2008-09-07  Bruno Haible  <bruno@clisp.org>
8362
8363         * build-aux/config.rpath: Update according to libtool-2.2.6.
8364         * build-aux/config.libpath: Likewise.
8365
8366 2008-09-06  Bruno Haible  <bruno@clisp.org>
8367
8368         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
8369         * lib/freadptr.c (freadptr): Likewise.
8370         * lib/freadseek.c (freadptrinc): Likewise.
8371         Reported by Simon Josefsson.
8372
8373 2008-09-06  Bruno Haible  <bruno@clisp.org>
8374
8375         * modules/freadptr (License): Change to LGPLv2+.
8376         * modules/freadseek (License): Likewise.
8377         Suggested by Eric Blake.
8378
8379         * modules/memchr2 (License): Change to LGPLv2+.
8380         Approved by Eric Blake.
8381
8382 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8383             Bruno Haible  <bruno@clisp.org>
8384
8385         Make gnulib-tool work with native 'sed' on AIX.
8386         * gnulib-tool (sed_noop): New variable.
8387         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
8388         func_add_or_update, func_create_testdir): Use it to initialize sed
8389         script variables.
8390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8391
8392 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
8393             Bruno Haible  <bruno@clisp.org>
8394
8395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
8396         also works after #include directives.
8397
8398 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
8399
8400         getdate.y: reject an out-of-range timezone value
8401         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
8402         the range [-24...+24].  When specified with only one or two digits,
8403         * tests/test-getdate.c: Tests for the fix.
8404         * doc/getdate.texi: Document this change.
8405
8406 2008-09-03  Bruno Haible  <bruno@clisp.org>
8407
8408         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
8409
8410 2008-09-02  Simon Josefsson  <simon@josefsson.org>
8411
8412         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
8413         <bruce.korb@gmail.com> with ideas from Ben Pfaff
8414         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
8415         Blake <ebb9@byu.net>.
8416
8417         * tests/test-bitrotate.c: Add more test vectors.
8418
8419 2008-09-02  Eric Blake  <ebb9@byu.net>
8420
8421         vasnprintf-posix: handle large precision via %.*d
8422         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
8423         when handling it ourselves.
8424         * tests/test-vasnprintf-posix.c (test_function): Add test.
8425         * tests/test-snprintf-posix.h (test_function): Likewise.
8426         * tests/test-sprintf-posix.h (test_function): Likewise.
8427         * tests/test-vasprintf-posix.c (test_function): Likewise.
8428         Reported by Alain Guibert.
8429
8430 2008-09-01  Eric Blake  <ebb9@byu.net>
8431
8432         c-stack: make configure-time check more robust
8433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
8434         successful sigaction call.
8435         Reported by Tom G. Christensen.
8436
8437 2008-09-01  Bruno Haible  <bruno@clisp.org>
8438
8439         New module 'findprog-lgpl'.
8440         * modules/findprog-lgpl: New file.
8441         * lib/findprog-lgpl.c: New file.
8442         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
8443         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
8444         to decide whether to use strdup or xstrdup, concatenated_filename or
8445         xconcatenated_filename.
8446
8447 2008-09-01  Bruno Haible  <bruno@clisp.org>
8448
8449         Split module 'concat-filename' into 'concat-filename' (LGPL) and
8450         'xconcat-filename' (GPL).
8451         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
8452         (License): Change to LGPLv2+.
8453         * modules/xconcat-filename: New file.
8454         * lib/concat-filename.h (concatenated_filename): Change specification.
8455         (xconcatenated_filename): New declaration.
8456         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
8457         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
8458         memory situations.
8459         * lib/xconcat-filename.c: New file.
8460         * NEWS: Mention the change.
8461         * lib/findprog.c: Include concat-filename.h, not filename.h.
8462         (find_in_path): Use xconcatenated_filename instead of
8463         concatenated_filename.
8464         * lib/javacomp.c: Include concat-filename.h, not filename.h.
8465         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8466         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8467         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8468         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
8469         instead of concatenated_filename.
8470         * lib/javaexec.c: Include concat-filename.h, not filename.h.
8471         (execute_java_class): Use xconcatenated_filename instead of
8472         concatenated_filename.
8473         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
8474         * modules/javacomp (Depends-on): Likewise.
8475         * modules/javaexec (Depends-on): Likewise.
8476
8477 2008-09-01  Bruno Haible  <bruno@clisp.org>
8478
8479         Split module 'filename' into 'filename' and 'concat-filename'.
8480         * modules/filename: Keep only lib/filename.h.
8481         (License): Change to LGPLv2+.
8482         * modules/concat-filename: New file, extracted from modules/filename.
8483         * lib/filename.h (concatenated_filename): Remove declaration.
8484         * lib/concat-filename.h: New file, extracted from lib/filename.h.
8485         * lib/concat-filename.c: Include concat-filename.h.
8486         * NEWS: Mention the change.
8487
8488 2008-09-01  Simon Josefsson  <simon@josefsson.org>
8489
8490         * lib/bitrotate.h (rotl8, rotr8): Add.
8491
8492         * modules/bitrotate (configure.ac): Need
8493         AC_REQUIRE([AC_C_INLINE]).
8494         (Description): Mention stdint.h.  Reported by Bruno Haible
8495         <bruno@clisp.org>.
8496
8497         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
8498         Paolo Bonzini <bonzini@gnu.org>.
8499
8500 2008-08-31  Bruno Haible  <bruno@clisp.org>
8501
8502         Assume Solaris specific bi-arch conventions on Solaris systems.
8503         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
8504         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
8505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
8506         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
8507         like acl_libdirstem.
8508         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
8509         acl_libdirstem.
8510         * NEWS: Mention the change.
8511         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
8512
8513 2008-08-31  Jim Meyering  <meyering@redhat.com>
8514
8515         * lib/strftime.h: Add comments describing the two added arguments.
8516
8517         remove duplicate #include directives
8518         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
8519         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
8520
8521 2008-08-31  Bruno Haible  <bruno@clisp.org>
8522
8523         New module 'sigpipe-die'.
8524         * modules/sigpipe-die: New file.
8525         * lib/sigpipe-die.h: New file.
8526         * lib/sigpipe-die.c: New file.
8527         * MODULES.html.sh (Signal handling): Add sigpipe-die.
8528
8529 2008-08-31  Bruno Haible  <bruno@clisp.org>
8530
8531         Don't override previously installed signal handlers.
8532         * lib/fatal-signal.c (saved_sigactions): New variable.
8533         (uninstall_handlers): Reset the signal to the saved handler, not
8534         to SIG_DFL (except when ignored).
8535         (install_handlers): Save the previous handlers.
8536
8537 2008-08-30  Bruno Haible  <bruno@clisp.org>
8538
8539         * gnulib-tool (func_reset_sigpipe): New function.
8540         (func_get_automake_snippet, func_modules_transitive_closure,
8541         func_import): Invoke it before a join command that reads from stdin,
8542         to avoid "echo: write error: Broken pipe" error messages on stderr.
8543         Reported by Sam Steingold <sds@gnu.org>.
8544
8545 2008-08-30  Bruno Haible  <bruno@clisp.org>
8546
8547         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
8548         Code copied from m4/open.m4.
8549         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
8550         access and the filename ends in a slash. Code copied from lib/open.c.
8551         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8552         * tests/test-fopen.c (main): Check against bug with trailing slash.
8553
8554 2008-08-29  Bruno Haible  <bruno@clisp.org>
8555
8556         Avoid some "gcc -pedantic" warnings.
8557         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8558         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8559         * lib/dirent.in.h: Likewise.
8560         * lib/fcntl.in.h: Likewise.
8561         * lib/float.in.h: Likewise.
8562         * lib/iconv.in.h: Likewise.
8563         * lib/inttypes.in.h: Likewise.
8564         * lib/locale.in.h: Likewise.
8565         * lib/math.in.h: Likewise.
8566         * lib/netinet_in.in.h: Likewise.
8567         * lib/search.in.h: Likewise.
8568         * lib/signal.in.h: Likewise.
8569         * lib/stdarg.in.h: Likewise.
8570         * lib/stdint.in.h: Likewise.
8571         * lib/stdio.in.h: Likewise.
8572         * lib/stdlib.in.h: Likewise.
8573         * lib/string.in.h: Likewise.
8574         * lib/strings.in.h: Likewise.
8575         * lib/sys_select.in.h: Likewise.
8576         * lib/sys_socket.in.h: Likewise.
8577         * lib/sys_stat.in.h: Likewise.
8578         * lib/sys_time.in.h: Likewise.
8579         * lib/sysexits.in.h: Likewise.
8580         * lib/time.in.h: Likewise.
8581         * lib/unistd.in.h: Likewise.
8582         * lib/wchar.in.h: Likewise.
8583         * lib/wctype.in.h: Likewise.
8584         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8585         * modules/fchdir (Makefile.am): Likewise.
8586         * modules/fcntl (Makefile.am): Likewise.
8587         * modules/float (Makefile.am): Likewise.
8588         * modules/iconv_open (Makefile.am): Likewise.
8589         * modules/inttypes (Makefile.am): Likewise.
8590         * modules/locale (Makefile.am): Likewise.
8591         * modules/math (Makefile.am): Likewise.
8592         * modules/netinet_in (Makefile.am): Likewise.
8593         * modules/search (Makefile.am): Likewise.
8594         * modules/signal (Makefile.am): Likewise.
8595         * modules/stdarg (Makefile.am): Likewise.
8596         * modules/stdint (Makefile.am): Likewise.
8597         * modules/stdio (Makefile.am): Likewise.
8598         * modules/stdlib (Makefile.am): Likewise.
8599         * modules/string (Makefile.am): Likewise.
8600         * modules/strings (Makefile.am): Likewise.
8601         * modules/sys_select (Makefile.am): Likewise.
8602         * modules/sys_socket (Makefile.am): Likewise.
8603         * modules/sys_stat (Makefile.am): Likewise.
8604         * modules/sys_time (Makefile.am): Likewise.
8605         * modules/sysexits (Makefile.am): Likewise.
8606         * modules/time (Makefile.am): Likewise.
8607         * modules/unistd (Makefile.am): Likewise.
8608         * modules/wchar (Makefile.am): Likewise.
8609         * modules/wctype (Makefile.am): Likewise.
8610         Reported by Reuben Thomas <rrt@sc3d.org>.
8611
8612 2008-08-29  Bruno Haible  <bruno@clisp.org>
8613
8614         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8615         any more.
8616
8617 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8618
8619         * MODULES.html.sh (Misc): Add bitrotate.
8620
8621         * modules/bitrotate: New file.
8622
8623         * lib/bitrotate.h: New file.
8624
8625         * modules/bitrotate-tests: New file.
8626
8627         * tests/test-bitrotate.c: New file.
8628
8629         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8630         on the bitrotate module.
8631
8632         * lib/arctwo.c: Use new bitrotate module.
8633
8634 2008-08-29  Jim Meyering  <meyering@redhat.com>
8635
8636         bootstrap: merge changes from coreutils
8637         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8638         of copied files.  Remove a kludge, now that this is fixed.
8639         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8640         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8641         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8642
8643 2008-08-29  Bruno Haible  <bruno@clisp.org>
8644
8645         * MODULES.html.sh: Remove --cvs-urls option.
8646
8647 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
8648
8649         maint.mk: adjust to file name change
8650         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8651
8652 2008-08-28  Jim Meyering  <meyering@redhat.com>
8653
8654         * modules/getndelim2 (License): Relicense to LGPLv2+.
8655         Approved by Richard Stallman for the version of 1995, and by
8656         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8657
8658 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8659
8660         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8661         dummy if one is not available.  Do not touch them if
8662         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8663         (getc_maybe_unlocked): New.
8664         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8665
8666 2008-08-26  Eric Blake  <ebb9@byu.net>
8667
8668         doc/INSTALL: resync from autoconf
8669         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8670         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8671         moving...
8672         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8673         * INSTALL: Regenerate.
8674         * INSTALL.ISO: New file.
8675         * INSTALL.UTF-8: Likewise.
8676
8677 2008-08-26  Jim Meyering  <meyering@redhat.com>
8678
8679         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8680         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8681         these definitions conditional, so that they may be overridden, too.
8682
8683 2008-08-26  Bruno Haible  <bruno@clisp.org>
8684
8685         Generate INSTALL file variants with prettier quotes.
8686         * doc/Makefile (INSTALL_PRELUDE): New macro.
8687         (INSTALL): Use it.
8688         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8689
8690 2008-08-26  Bruno Haible  <bruno@clisp.org>
8691
8692         Run makeinfo in an English locale.
8693         * doc/Makefile (MAKEINFO): New variable.
8694
8695 2008-08-26  Bruno Haible  <bruno@clisp.org>
8696
8697         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8698         Suggested by Eric Blake.
8699
8700 2008-08-25  Bruno Haible  <bruno@clisp.org>
8701
8702         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8703
8704 2008-08-25  Eric Blake  <ebb9@byu.net>
8705
8706         c-stack: test that stack overflow can be caught
8707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8708         that platform allows handling stack overflow; at least OS/2 EMX
8709         has sigaltstack, but crashes before transferring control to
8710         handler on stack overflow.
8711         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8712         check for HAVE_STACK_OVERFLOW_HANDLING.
8713         Reported by Elbert Pol.
8714
8715 2008-08-25  Bruno Haible  <bruno@clisp.org>
8716
8717         * doc/posix-functions/strftime.texi: Fix description of strftime
8718         module.
8719
8720 2008-08-24  Bruno Haible  <bruno@clisp.org>
8721
8722         * tests/uniwidth/test-uc_width2.c: New file.
8723         * tests/uniwidth/test-uc_width2.sh: New file.
8724         * modules/uniwidth/width-tests (Files): Add the new files.
8725         (TESTS): Add uniwidth/test-uc_width2.sh.
8726         (TESTS_ENVIRONMENT): New variable.
8727         (check_PROGRAMS): Add test-uc_width2.
8728         (test_uc_width2_SOURCES): New variable.
8729
8730         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8731         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8732         not 0x00AB.
8733         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8734
8735 2008-08-22  Eric Blake  <ebb9@byu.net>
8736
8737         test-lock, test-tls: mention why a test is skipped
8738         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8739         skipped.
8740         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8741
8742         count-one-bits: relax license
8743         * modules/count-one-bits (License): Relicense to LGPLv2+.
8744         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8745
8746 2008-08-22  Andreas Schwab  <schwab@suse.de>
8747
8748         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8749         Remove spurious space in assignment.
8750
8751 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8752
8753         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8754         Paul Eggert <eggert@CS.UCLA.EDU>.
8755
8756 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8757
8758         * modules/gettext: Add m4/threadlib.m4.
8759
8760 2008-08-19  Eric Blake  <ebb9@byu.net>
8761
8762         test-c-stack: fix compilation failure on FreeBSD 5.0
8763         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8764         headers before <sys/resource.h>.
8765         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8766         the bug.
8767         Reported by Nelson H. F. Beebe.
8768
8769         strverscmp: migrate from "strverscmp.h" to <string.h>
8770         * modules/string (Makefile.am): Add new hooks.
8771         * modules/strverscmp (Files): Remove strverscmp.h.
8772         (Depends-on): Add string.
8773         (configure.ac): Add indicator.
8774         (Include): Mention new header.
8775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8776         defaults.
8777         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8778         results.
8779         * lib/strverscmp.h: Delete.
8780         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8781         * tests/test-strverscmp.c (includes): Adjust client.
8782         * lib/check-version.c (includes): Likewise.
8783         * NEWS: Document the change.
8784
8785         strverscmp: add unit test
8786         * modules/strverscmp-tests: New file.
8787         * tests/test-strverscmp.c: Likewise.
8788
8789 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8790
8791         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8792         regarding Windows crypto stuff, from Mono.
8793
8794 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8795
8796         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8797         if present, for intel RND.  Return error on failures.
8798
8799 2008-08-18  Ben Pfaff  <blp@gnu.org>
8800
8801         gitlog-to-changelog: give better diagnostic for failed pipe-open
8802         * build-aux/gitlog-to-changelog: Improve error message: suggest
8803         that the version of Git may be too old.
8804
8805 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8806
8807         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8808         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8809
8810 2008-08-18  Bruno Haible  <bruno@clisp.org>
8811
8812         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8813         pthread_in_use().
8814
8815 2008-08-18  Bruno Haible  <bruno@clisp.org>
8816
8817         * lib/glthread/threadlib.c: Include <pthread.h>.
8818
8819 2008-08-18  Bruno Haible  <bruno@clisp.org>
8820
8821         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8822         glthread_recursive_lock_* macros.
8823         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8824         Fix syntax error.
8825
8826 2008-08-18  Bruno Haible  <bruno@clisp.org>
8827
8828         * lib/glthread/thread.c: Avoid forcing a context switch right after
8829         thread creation.
8830
8831 2008-08-17  Bruno Haible  <bruno@clisp.org>
8832
8833         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8834         * lib/glthread/thread.h: Provide Win32 specific implementation.
8835         * modules/thread (Files): Add lib/glthread/thread.c.
8836         (Depends-on): Add lock.
8837         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8838
8839 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8840
8841         New module 'yield'.
8842         * modules/yield: New file.
8843         * lib/glthread/yield.h: New file.
8844         * m4/yield.m4: New file.
8845         * MODULES.html.sh (Multithreading): Add yield.
8846
8847 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8848
8849         New module 'thread'.
8850         * modules/thread: New file.
8851         * lib/glthread/thread.h: New file.
8852         * m4/thread.m4: New file.
8853         * MODULES.html.sh (Multithreading): Add thread.
8854
8855 2008-08-17  Bruno Haible  <bruno@clisp.org>
8856
8857         * lib/glthread/lock.h: Include <stdlib.h> always.
8858         * lib/glthread/tls.h: Likewise.
8859         * lib/glthread/cond.h: Likewise.
8860
8861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8862
8863         New module 'cond'.
8864         * modules/cond: New file.
8865         * lib/glthread/cond.h: New file.
8866         * lib/glthread/cond.c: New file.
8867         * m4/cond.m4: New file.
8868         * MODULES.html.sh (Multithreading): Add cond.
8869
8870 2008-08-16  Eric Blake  <ebb9@byu.net>
8871
8872         c-stack: fix regression on Irix 5.3 from 2008-06-21
8873         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8874         sa_sigaction...
8875         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8876         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8878         * modules/signal (Makefile.am): Use the value.
8879         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8880         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8881         * doc/posix-headers/signal.texi (signal.h): Document this
8882         portability issue.
8883         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8884         Reported by Tom G. Christensen.
8885
8886 2008-08-17  Bruno Haible  <bruno@clisp.org>
8887
8888         New module 'threadlib'.
8889         * modules/threadlib: New file.
8890         * lib/glthread/threadlib.c: New file, extracted from
8891         lib/glthread/lock.c.
8892         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8893         functions.
8894         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8895         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8896         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8897         macros.
8898         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8899         (gl_DISABLE_THREADS): Remove macro.
8900         * modules/lock (Files): Remove build-aux/config.rpath.
8901         (Depends-on): Remove havelib. Add threadlib.
8902         (configure.ac-early): Remove section.
8903         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8904         * modules/tls (Depends-on): Remove lock. Add threadlib.
8905         (Link): New section, copied from threadlib.
8906         * MODULES.html.sh (Multithreading): Add threadlib.
8907
8908 2008-08-14  Bruno Haible  <bruno@clisp.org>
8909
8910         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8911         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8912         glthread_rwlock_unlock, glthread_rwlock_destroy,
8913         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8914         glthread_recursive_lock_destroy): Define as macros always.
8915         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8916         glthread_lock_lock.
8917         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8918         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8919         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8920         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8921         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8922         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8923         (glthread_recursive_lock_lock_func): Renamed from
8924         glthread_recursive_lock_lock.
8925         (glthread_recursive_lock_unlock_func): Renamed from
8926         glthread_recursive_lock_unlock.
8927         (glthread_recursive_lock_destroy_func): Renamed from
8928         glthread_recursive_lock_destroy.
8929
8930 2008-08-14  Bruno Haible  <bruno@clisp.org>
8931
8932         * lib/glthread/lock.h: Renamed from lib/lock.h.
8933         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8934         * lib/glthread/tls.h: Renamed from lib/tls.h.
8935         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8936         * lib/fstrcmp.c: Update includes.
8937         * lib/strsignal.c: Update includes.
8938         * modules/lock (Files, Makefile.am): Update.
8939         (Include): Change to "glthread/lock.h".
8940         * modules/tls (Files, Makefile.am): Update.
8941         (Include): Change to "glthread/tls.h".
8942         * tests/test-lock.c: Update includes.
8943         * tests/test-tls.c: Update includes.
8944         * NEWS: Mention the renamed header files.
8945
8946 2008-08-11  Jim Meyering  <meyering@redhat.com>
8947
8948         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8949
8950 2008-08-11  Eric Blake  <ebb9@byu.net>
8951
8952         test-c-stack: avoid C99-ism
8953         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8954         before statement.
8955         Reported by Alain Guibert.
8956
8957 2008-08-10  Jim Meyering  <meyering@redhat.com>
8958
8959         ensure that return value of uinttostr et al are not ignored
8960         * lib/inttostr.h (__GNUC_PREREQ): Define.
8961         (__attribute_warn_unused_result__): Define.
8962         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8963
8964 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8965
8966         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8967         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8968
8969 2008-08-07  Jim Meyering  <meyering@redhat.com>
8970
8971         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8972
8973         * modules/mkstemp (License): Relicense under LGPLv2+.
8974         * modules/tempname (License): Likewise.
8975
8976 2008-08-06  Bruno Haible  <bruno@clisp.org>
8977
8978         * lib/poll.c (poll): Further micro-optimization.
8979
8980 2008-08-06  Jim Meyering  <meyering@redhat.com>
8981
8982         inet_pton.c: use locale-independent tolower
8983         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8984         (inet_pton6): Use c_tolower rather than tolower.
8985         * modules/inet_pton (Depends-on): Add c-ctype.
8986
8987 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8988
8989         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8990         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8991
8992 2008-08-06  Jim Meyering  <meyering@redhat.com>
8993
8994         * modules/inet_pton (License): Relicense under LGPLv2+.
8995
8996 2008-08-03  Bruno Haible  <bruno@clisp.org>
8997
8998         Additional non-aborting API for lock and tls.
8999         * lib/lock.h: Include <errno.h>.
9000         (glthread_lock_init): New macro/function.
9001         (gl_lock_init): Define as wrapper around glthread_lock_init.
9002         (glthread_lock_lock): New macro/function.
9003         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
9004         (glthread_lock_unlock): New macro/function.
9005         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
9006         (glthread_lock_destroy): New macro/function.
9007         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
9008         (glthread_rwlock_init): New macro/function.
9009         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
9010         (glthread_rwlock_rdlock): New macro/function.
9011         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
9012         (glthread_rwlock_wrlock): New macro/function.
9013         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
9014         (glthread_rwlock_unlock): New macro/function.
9015         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
9016         (glthread_rwlock_destroy): New macro/function.
9017         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
9018         (glthread_recursive_lock_init): New macro/function.
9019         (gl_recursive_lock_init): Define as wrapper around
9020         glthread_recursive_lock_init.
9021         (glthread_recursive_lock_lock): New macro/function.
9022         (gl_recursive_lock_lock): Define as wrapper around
9023         glthread_recursive_lock_lock.
9024         (glthread_recursive_lock_unlock): New macro/function.
9025         (gl_recursive_lock_unlock): Define as wrapper around
9026         glthread_recursive_lock_unlock.
9027         (glthread_recursive_lock_destroy): New macro/function.
9028         (gl_recursive_lock_destroy): Define as wrapper around
9029         glthread_recursive_lock_destroy.
9030         (glthread_once): New macro/function.
9031         (gl_once): Define as wrapper around glthread_once.
9032         Update function declarations.
9033         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
9034         glthread_rwlock_init. Return error code.
9035         (glthread_rwlock_rdlock_multithreaded): Renamed from
9036         glthread_rwlock_rdlock. Return error code.
9037         (glthread_rwlock_wrlock_multithreaded): Renamed from
9038         glthread_rwlock_wrlock. Return error code.
9039         (glthread_rwlock_unlock_multithreaded): Renamed from
9040         glthread_rwlock_unlock. Return error code.
9041         (glthread_rwlock_destroy_multithreaded): Renamed from
9042         glthread_rwlock_destroy. Return error code.
9043         (glthread_recursive_lock_init_multithreaded): Renamed from
9044         glthread_recursive_lock_init. Return error code.
9045         (glthread_recursive_lock_lock_multithreaded): Renamed from
9046         glthread_recursive_lock_lock. Return error code.
9047         (glthread_recursive_lock_unlock_multithreaded): Renamed from
9048         glthread_recursive_lock_unlock. Return error code.
9049         (glthread_recursive_lock_destroy_multithreaded): Renamed from
9050         glthread_recursive_lock_destroy. Return error code.
9051         (glthread_once_call): Make static.
9052         (glthread_once_multithreaded): Renamed from glthread_once.
9053         * lib/tls.h: Include <errno.h>.
9054         (glthread_tls_key_init): New macro/function.
9055         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
9056         (glthread_tls_set): New macro/function.
9057         (gl_tls_set): Define as wrapper around glthread_tls_set.
9058         (glthread_tls_key_destroy): New macro/function.
9059         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
9060         Update function declarations.
9061         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
9062         glthread_tls_get.
9063         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9064
9065 2008-08-04  Eric Blake  <ebb9@byu.net>
9066
9067         gnumakefile: use space, not TAB, outside of targets
9068         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
9069
9070 2008-08-02  Jim Meyering  <meyering@redhat.com>
9071
9072         getdate.y: avoid locale-dependent date parsing failure
9073         In Turkish locales, getdate would fail to recognize keywords
9074         containing a lowercase "i".  The solution is not to rely on
9075         locale-sensitive case-conversion.
9076         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
9077         (lookup_word): Use c_toupper in place of toupper.
9078         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
9079         Reported by Vefa Bicakci <bicave@superonline.com> in
9080         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
9081         * modules/getdate (Depends-on): Add c-ctype.
9082
9083 2008-08-02  Bruno Haible  <bruno@clisp.org>
9084
9085         * gnulib-tool (func_import): When updating or creating a .gitignore
9086         file, prepend each added line with a slash, and ignore leading slashes
9087         from the existing lines.
9088         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9089
9090 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9091
9092         Portability fix for GNU make 3.79.1.
9093         * top/GNUmakefile: Avoid 'else COND', which older GNU make
9094         versions do not understand.
9095
9096 2008-08-01  Bruno Haible  <bruno@clisp.org>
9097
9098         Work around bug of HP-UX 10.20 cc with -0.0 literal.
9099         * tests/test-isnanf.h (zero): New variable.
9100         (main): Avoid literal -0.0f.
9101         * tests/test-isnand.h (zero): New variable.
9102         (main): Avoid literal -0.0.
9103         * tests/test-isnanl.h (zero): New variable.
9104         (main): Avoid literal -0.0L.
9105         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
9106         (test_float, test_double, test_long_double): Avoid literals -0.0f,
9107         -0.0, -0.0L.
9108         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
9109         (test_signbitd): Avoid literal -0.0.
9110         (test_signbitl): Avoid literal -0.0L.
9111         * tests/test-ceilf1.c (zero): New variable.
9112         (main): Avoid literal -0.0f.
9113         * tests/test-ceill.c (zero): New variable.
9114         (main): Avoid literal -0.0L.
9115         * tests/test-floorf1.c (zero): New variable.
9116         (main): Avoid literal -0.0f.
9117         * tests/test-floorl.c (zero): New variable.
9118         (main): Avoid literal -0.0L.
9119         * tests/test-roundf1.c (zero): New variable.
9120         (main): Avoid literal -0.0f.
9121         * tests/test-round1.c (zero): New variable.
9122         (main): Avoid literal -0.0.
9123         * tests/test-roundl.c (zero): New variable.
9124         (main): Avoid literal -0.0L.
9125         * tests/test-truncf1.c (zero): New variable.
9126         (main): Avoid literal -0.0f.
9127         * tests/test-trunc1.c (zero): New variable.
9128         (main): Avoid literal -0.0.
9129         * tests/test-truncl.c (zero): New variable.
9130         (main): Avoid literal -0.0L.
9131         * tests/test-frexp.c (zero): New variable.
9132         (main): Avoid literal -0.0.
9133         * tests/test-frexpl.c (zero): New variable.
9134         (main): Avoid literal -0.0L.
9135         * tests/test-ldexpl.c (zero): New variable.
9136         (main): Avoid literal -0.0L.
9137         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9138         (zerod, zerol): New variables.
9139         (test_function): Avoid literals -0.0, -0.0L.
9140         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9141         (zerod, zerol): New variables.
9142         (test_function): Avoid literals -0.0, -0.0L.
9143         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9144         (zerod, zerol): New variables.
9145         (test_function): Avoid literals -0.0, -0.0L.
9146         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9147         (zerod, zerol): New variables.
9148         (test_function): Avoid literals -0.0, -0.0L.
9149         * tests/test-strtod.c (zero): New variable.
9150         (main): Avoid literal -0.0.
9151         Reported by Jonathan C. Patschke <jp@centtech.com>.
9152
9153 2008-07-31  Jim Meyering  <meyering@redhat.com>
9154
9155         sha256.h: correct definition of SHA224_DIGEST_SIZE
9156         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
9157         Reported by Paulie Pena IV <paulie4@gmail.com>.
9158         Define as 224 / 8, rather than as a literal.
9159         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
9160         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
9161         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
9162
9163 2008-07-31  Bruno Haible  <bruno@clisp.org>
9164
9165         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
9166         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
9167         Reported by Jonathan Patschke <jp@centtech.com>.
9168
9169 2008-07-31  Bruno Haible  <bruno@clisp.org>
9170
9171         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
9172         Reported by Paolo Bonzini <bonzini@gnu.org>.
9173
9174 2008-07-30  Eric Blake  <ebb9@byu.net>
9175
9176         test-strtod: allow compilation without -lm
9177         * tests/test-strtod.c (main): Avoid link dependence on fabs.
9178         Reported by Dennis Clarke <blastwave@gmail.com>.
9179
9180 2008-07-28  Jim Meyering  <meyering@redhat.com>
9181
9182         bootstrap: work also when there are no .po files in po/
9183         * build-aux/bootstrap (update_po_files): Complete the change
9184         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
9185
9186 2008-07-27  Jim Meyering  <meyering@redhat.com>
9187
9188         * users.txt: Add zile.
9189
9190 2008-07-26  Ben Pfaff  <blp@gnu.org>
9191
9192         Add missing dependencies on new m4/exponent[fdl].m4 files.
9193         * modules/isnanf-nolibm: Add m4/exponentf.m4.
9194         * modules/isnand-nolibm: Add m4/exponentd.m4.
9195         * modules/isnanl-nolibm: Add m4/exponentl.m4.
9196         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
9197         m4/isnan[fdl].m4, because the macros actually used moved.
9198         Reported by Jim Meyering.
9199
9200 2008-07-14  Ben Pfaff  <blp@gnu.org>
9201
9202         Add isinf module.
9203         * lib/isinf.c: New file.
9204         * lib/math.in.h: Define isinf macro if we have decided to replace
9205         it.
9206         * m4/isinf.m4: New file.
9207         * m4/math_h.m4: Initialize and substitute variables for isinf
9208         module.
9209         * modules/isinf: New file.
9210         * modules/isinf-tests: New file.
9211         * modules/math: Add substitutions for new module.
9212         * tests/test-isinf.c: New file.
9213         * doc/posix-functions/isinf.texi: Mention new module.
9214         * MODULES.html.sh: Mention new module.
9215
9216 2008-07-14  Ben Pfaff  <blp@gnu.org>
9217
9218         Factor out some macros for use by additional modules.
9219         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
9220         exponentf.m4.
9221         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
9222         exponentd.m4.
9223         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
9224         file exponentl.m4.
9225         * m4/exponentf.m4: New file.
9226         * m4/exponentd.m4: New file.
9227         * m4/exponentl.m4: New file.
9228         * modules/isnanf: Use new file m4/exponentf.m4.
9229         * modules/isnand: Use new file m4/exponentd.m4.
9230         * modules/isnanl: Use new file m4/exponentl.m4.
9231
9232 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
9233
9234         mktime.c: normalize tp->tm_isdst value to -1/0/1.
9235         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
9236         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
9237         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
9238
9239         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
9240         readlink on platforms without PATH_MAX.
9241
9242 2008-07-21  Eric Blake  <ebb9@byu.net>
9243
9244         Warn, not fail, on stale version.
9245         * top/GNUmakefile (_curr-ver): Tone down previous patch.
9246
9247         Don't allow installation with stale devel version number.
9248         * top/GNUmakefile (_is-install-target): New macro.
9249         (_curr-ver): Forbid installation with stale version number.
9250
9251 2008-07-20  Bruno Haible  <bruno@clisp.org>
9252
9253         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
9254         TESTS_ENVIRONMENT.
9255         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
9256
9257 2008-07-20  Bruno Haible  <bruno@clisp.org>
9258
9259         * lib/c-stack.h (c_stack_action): Add documentation.
9260         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
9261
9262 2008-07-20  Bruno Haible  <bruno@clisp.org>
9263
9264         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
9265         * modules/readlink (License): Likewise.
9266
9267 2008-07-17  Eric Blake  <ebb9@byu.net>
9268
9269         * modules/c-stack (Link): Fix typo.
9270
9271         Make c-stack use libsigsegv, when available.
9272         * modules/c-stack (Depends-on): Add libsigsegv.
9273         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
9274         needed.
9275         * lib/c-stack.c (SIGSTKSZ): Define fallback.
9276         (segv_handler, overflow_handler, c_stack_action)
9277         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
9278         implementation when libsigsegv is available, but only when using
9279         the library is necessary.
9280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
9281         comment, explaining why XSI check fails on Linux.
9282         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
9283         * tests/test-c-stack2.sh: Tweak skip message.
9284         * NEWS: Document new link-time requirements.
9285
9286 2008-07-16  Eric Blake  <ebb9@byu.net>
9287
9288         c-stack: Expose false positives when not using libsigsegv.
9289         * modules/c-stack-tests (Files): Expand test.
9290         * tests/test-c-stack.c (main): Add means to conditionally trigger
9291         non-overflow SIGSEGV.
9292         * tests/test-c-stack2.sh: New file.
9293
9294 2008-07-14  Bruno Haible  <bruno@clisp.org>
9295
9296         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
9297         Reported by Eric Blake.
9298
9299 2008-07-14  Sam Steingold  <sds@gnu.org>
9300             Bruno Haible  <bruno@clisp.org>
9301
9302         New module libsigsegv.
9303         * modules/libsigsegv: New file.
9304         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
9305         modifications.
9306         * MODULES.html.sh (Signal handling): New section.
9307
9308 2008-07-14  Bruno Haible  <bruno@clisp.org>
9309
9310         * modules/unictype/ctype-* (Description): Add the word "function".
9311         Improves the resulting doc in MODULES.html.
9312
9313 2008-07-12  Ben Pfaff  <blp@gnu.org>
9314
9315         Add longlong module.
9316         * modules/longlong: New file.
9317
9318 2008-07-12  Bruno Haible  <bruno@clisp.org>
9319
9320         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
9321         to empty.
9322
9323 2008-07-10  Ben Pfaff  <blp@gnu.org>
9324
9325         Add isnan module.
9326         * doc/posix-functions/isnan.texi: Mention new module.
9327         * lib/math.in.h: Define isnan macro if we have decided to replace
9328         it.
9329         * m4/isnan.m4: New file.
9330         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
9331         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
9332         also.
9333         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
9334         redundancy.
9335         * m4/math_h.m4: Initialize and substitute variables for isnan
9336         module.
9337         * modules/isnan: New file.
9338         * modules/isnan-tests: New file.
9339         * modules/math: Add substitutions for new module.
9340         * tests/test-isnan.c: New file.
9341         * MODULES.html.sh: Mention new module.
9342
9343 2008-07-10  Ben Pfaff  <blp@gnu.org>
9344
9345         Add isnanf module.
9346         * lib/isnanf.m4: New file.
9347         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
9348         (gl_HAVE_ISNANF_IN_LIBM): New macro.
9349         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
9350         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
9351         * modules/isnanf: New file.
9352         * modules/isnanf-tests: New file.
9353         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
9354         files.
9355         * tests/test-isnanf-nolibm.c: factored most of its contents into
9356         new file tests/test-isnanf.h.
9357         * tests/test-isnanf.h: New file.
9358         * tests/test-isnanf.c: New file.
9359         * MODULES.html.sh: Mention new module.
9360         * doc/glibc-functions/isnanf.texi: Mention new module.
9361
9362 2008-07-10  Ben Pfaff  <blp@gnu.org>
9363
9364         Add isnand module.
9365         * lib/isnand.h: New file.
9366         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
9367         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
9368         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
9369         functionality also.
9370         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
9371         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
9372         (gl_HAVE_ISNAND_IN_LIBM): New macro.
9373         * modules/isnand: New file.
9374         * modules/isnand-tests: New file.
9375         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
9376         files.
9377         * tests/test-isnand-nolibm.c: factored most of its contents into
9378         new file tests/test-isnand.h.
9379         * tests/test-isnand.h: New file.
9380         * tests/test-isnand.c: New file.
9381         * MODULES.html.sh: Mention new module.
9382
9383 2008-07-10  Ben Pfaff  <blp@gnu.org>
9384
9385         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
9386         * lib/isnand.h: Rename lib/isnand-nolibm.h.
9387         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
9388         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
9389         * modules/isnanf-nolibm: Update references to renamed files.
9390         * modules/isnand-nolibm: Likewise.
9391         * modules/isnanf-nolibm-tests: Likewise.
9392         * modules/isnand-nolibm-tests: Likewise.
9393         * lib/frexp.c: Likewise.
9394         * lib/isfinite.c: Likewise.
9395         * lib/signbitd.c: Likewise.
9396         * lib/signbitf.c: Likewise.
9397         * lib/vasnprintf.c: Likewise.
9398         * tests/test-ceilf1.c: Likewise.
9399         * tests/test-ceilf2.c: Likewise.
9400         * tests/test-floorf1.c: Likewise.
9401         * tests/test-floorf2.c: Likewise.
9402         * tests/test-frexp.c: Likewise.
9403         * tests/test-round1.c: Likewise.
9404         * tests/test-round2.c: Likewise.
9405         * tests/test-roundf1.c: Likewise.
9406         * tests/test-strtod.c: Likewise.
9407         * tests/test-trunc1.c: Likewise.
9408         * tests/test-trunc2.c: Likewise.
9409         * tests/test-truncf1.c: Likewise.
9410         * tests/test-truncf2.c: Likewise.
9411         * NEWS: Mention the renamed header files.
9412
9413 2008-07-11  Jim Meyering  <meyering@redhat.com>
9414
9415         vc-list-files: make the last-resort awk code more portable
9416         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
9417         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
9418         does not support it.
9419
9420 2008-07-10  Eric Blake  <ebb9@byu.net>
9421
9422         Work with tar's bootstrap.
9423         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
9424         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
9425         an m4 comment.
9426
9427 2008-07-09  Jim Meyering  <meyering@redhat.com>
9428
9429         posix-shell.m4: fix typo that made this test malfunction
9430         * m4/posix-shell.m4: Remove capitalization in variable name.
9431
9432 2008-07-08  Bruno Haible  <bruno@clisp.org>
9433
9434         * m4/onceonly.m4: Update comments.
9435         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9436
9437 2008-07-04  Jim Meyering  <meyering@redhat.com>
9438
9439         * users.txt: Add vc-dwim.
9440         (bison, coreutils): Use the gitweb URL.
9441
9442 2008-07-03  Jim Meyering  <meyering@redhat.com>
9443
9444         * users.txt: Add libffcall.  From Sam Steingold.
9445
9446 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
9447
9448         getdate.y: do not ignore TZ with relative day, month or year offset
9449         * lib/getdate.y (get_date): Move the tz-handling block to follow the
9450         relative-date-handling, since otherwise, the latter would clobber the
9451         sole output (an updated Start value) of the tz-handling block.
9452         * tests/test-getdate.c: Tests for the fix
9453
9454 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9455
9456         Recognize 'foo_LIBRARIES += libgnu.a'.
9457         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
9458         makefile snippet has already specified an installation location,
9459         also using '+='.
9460
9461 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
9462
9463         getdate.y: factor out common actions
9464         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
9465         Use them in place of open-coded actions.
9466
9467 2008-07-01  Simon Josefsson  <simon@josefsson.org>
9468
9469         Add self-test for getdate module.
9470         * modules/getdate-tests: New file.
9471         * tests/test-getdate.c: New file.
9472
9473 2008-06-29  Bruno Haible  <bruno@clisp.org>
9474
9475         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
9476         .gitignore.
9477         Reported by Sylvain Beucler <beuc@beuc.net>.
9478
9479 2008-06-29  Bruno Haible  <bruno@clisp.org>
9480
9481         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
9482         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
9483
9484 2008-06-29  Bruno Haible  <bruno@clisp.org>
9485
9486         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
9487         EXTRA_DIST.
9488         Reported by Sylvain Beucler <beuc@beuc.net>.
9489
9490 2008-06-26  Jim Meyering  <meyering@redhat.com>
9491
9492         make several modules depend on the "open" module
9493         This provides slightly increased consistency when opening-for-write
9494         the name of a non-directory spelled with a trailing slash.
9495         * modules/chdir-safer: Likewise.
9496         * modules/chown: Likewise.
9497         * modules/clean-temp: Likewise.
9498         * modules/copy-file: Likewise.
9499         * modules/fchdir: Likewise.
9500         * modules/fcntl-safer: Likewise.
9501         * modules/pipe: Likewise.
9502         * modules/utime: Likewise.
9503         Prompted by Eric Blake and Bruno Haible.
9504
9505 2008-06-24  Andreas Schwab  <schwab@suse.de>
9506
9507         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
9508         literals can be used as initializers for global variables.
9509
9510 2008-06-23  Eric Blake  <ebb9@byu.net>
9511
9512         Make gnulib-cache.m4 easier to diff.
9513         * gnulib-tool (func_import): Allow newlines when reading cached
9514         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
9515
9516 2008-06-23  Bruno Haible  <bruno@clisp.org>
9517
9518         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
9519         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
9520         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
9521         m4/signalblocking.m4.
9522         (gl_PREREQ_SIGACTION): Don't invoke it.
9523         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
9524         gl_PREREQ_SIG_HANDLER_H.
9525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9526         Don't check for sigaction here.
9527
9528 2008-06-23  Bruno Haible  <bruno@clisp.org>
9529
9530         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
9531         (install_handlers): Don't set the SA_RESETHAND flag.
9532
9533 2008-06-23  Bruno Haible  <bruno@clisp.org>
9534
9535         * m4/sigaction.m4: Comment fixes.
9536         * lib/signal.in.h: Likewise.
9537
9538 2008-06-23  Eric Blake  <ebb9@byu.net>
9539
9540         Fix typo.
9541         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
9542
9543         Avoid SA_ namespace.
9544         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
9545         Reported by Ralf Wildenhues.
9546
9547         Avoid test failure due to SA_RESTORER.
9548         * tests/test-sigaction.c (SA_MASK): New macro.
9549         (main): Avoid failing due to extension flags being set.
9550         Reported by Jim Meyering.
9551
9552         Revert use of sig-handler.h in sigprocmask.c.
9553         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9554         it requires the existence of struct sigaction.
9555         * lib/sigprocmask.c (handler_t): Restore typedef.
9556         (rpl_signal, old_handlers): Use local type.
9557
9558 2008-06-22  Bruno Haible  <bruno@clisp.org>
9559
9560         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9561         conditionally.
9562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9563
9564 2008-06-22  Bruno Haible  <bruno@clisp.org>
9565
9566         * doc/posix-functions/siginterrupt.texi: Move note.
9567
9568         * lib/signal.in.h (SA_RESTART): New macro.
9569         * lib/sigaction.c: Update comment.
9570
9571         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9572
9573         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9574         (gl_PREREQ_SIGPROCMASK): Invoke it.
9575         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9576
9577         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9578
9579         * lib/sigprocmask.c: Update a comment.
9580
9581 2008-06-21  Eric Blake  <ebb9@byu.net>
9582
9583         Use sigaction module rather than signal().
9584         * modules/c-stack (Depends-on): Add sigaction.
9585         * modules/fatal-signal (Depends-on): Likewise.
9586         * modules/nanosleep (Depends-on): Likewise.
9587         * modules/sigprocmask (Files): Add sig-handler.h.
9588         * modules/sigaction (Files): Likewise.
9589         * lib/sig-handler.h (get_handler): New file, suggested by Paul
9590         Eggert.
9591         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9592         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9593         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9594         (init_fatal_signals): Likewise.
9595         * lib/nanosleep.c (rpl_nanosleep): Likewise.
9596         (siginterrupt): Delete fallback.
9597         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9598         instead.
9599         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9600         siginterrupt.
9601
9602         New module sigaction, for mingw.
9603         * modules/sigaction: New module...
9604         * modules/sigaction-tests: ...and its test.
9605         * m4/sigaction.m4: New file.
9606         * lib/sigaction.c: Likewise.
9607         * tests/test-sigaction.c: Likewise.
9608         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9609         * modules/signal (Makefile.am): Likewise.
9610         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9611         needed.
9612         * doc/posix-headers/signal.texi (signal.h): Mention provided
9613         types.
9614         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9615         that sigaction is preferable.
9616         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9617         module.
9618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9619         sigaction.
9620
9621         Improve robustness of sigprocmask by overriding signal.
9622         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9623         is in use.
9624         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9625         (SIGKILL, SIGSTOP): Provide fallbacks.
9626         (rpl_signal): Implement.
9627         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9628         signal can be called inside handlers.
9629
9630         Fix nanosleep module on mingw.
9631         * modules/nanosleep (Depends-on): Add sys_select.
9632         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9633
9634         Fix licensing of sigprocmask.
9635         * modules/raise (License): Relicense as LGPL.
9636
9637 2008-06-21  Bruno Haible  <bruno@clisp.org>
9638
9639         * lib/propername.c (proper_name_utf8): Don't use the transliterated
9640         result if it contains question marks.
9641         Reported by Michael Geng <linux@michaelgeng.de>.
9642
9643 2008-06-19  Bruno Haible  <bruno@clisp.org>
9644
9645         Fix CVS-ism.
9646         * doc/gnulib.texi: Include updated-stamp.texi.
9647         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9648         (updated-stamp.texi): New rule.
9649         (gnulib.info): Depend on it.
9650         * doc/.gitignore: Add updated-stamp.texi.
9651         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9652
9653 2008-06-19  Bruno Haible  <bruno@clisp.org>
9654
9655         * doc/Makefile (gnulib.info): Update and simplify dependencies.
9656         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9657
9658 2008-06-19  Eric Blake  <ebb9@byu.net>
9659
9660         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9661         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9662         Reported by Stepan Kasal.
9663
9664 2008-06-18  Bruno Haible  <bruno@clisp.org>
9665
9666         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9667         Reported by Eric Blake.
9668
9669 2008-06-18  Eric Blake  <ebb9@byu.net>
9670
9671         Work around cygwin 1.5.25 strsignal bug.
9672         * tests/test-strsignal.c: Allow for const char *.
9673         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9674
9675 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9676
9677         * users.txt: Update URL to article and add author/date
9678         information.
9679
9680 2008-06-17  Bruno Haible  <bruno@clisp.org>
9681
9682         New macro gl_DISABLE_THREADS.
9683         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9684         if the user did not pass --enable-threads or --disable-threads option.
9685         (gl_DISABLE_THREADS): New macro.
9686         Reported by Eric Blake <ebb9@byu.net>.
9687
9688 2008-06-17  Bruno Haible  <bruno@clisp.org>
9689
9690         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9691         when the macro ignores it.
9692         Based on a patch by Eric Blake <ebb9@byu.net>.
9693
9694 2008-06-17  Bruno Haible  <bruno@clisp.org>
9695
9696         * modules/tls (License): Change to LGPLv2+.
9697         Reported by Eric Blake.
9698
9699 2008-06-17  Eric Blake  <ebb9@byu.net>
9700
9701         Simplify c-stack prerequisites.
9702         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9704         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9705         check.
9706         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9707         <sys/resource.h>.
9708
9709         Move c-stack test into testsuite.
9710         * modules/c-stack-tests: New file.
9711         * lib/c-stack.c [DEBUG]: Move test program...
9712         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9713         fail test if sigaltstack is lacking.
9714         * tests/test-c-stack.sh: New driver file.
9715
9716 2008-06-16  Eric Blake  <ebb9@byu.net>
9717
9718         Use raise module consistently.
9719         * modules/fatal-signal (Depends-on): Add raise.
9720         * modules/sigprocmask (Depends-on): Likewise.
9721         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9722         * lib/sigprocmask.c (sigprocmask): Likewise.
9723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9724         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9725
9726         Fix compliance bug in sigpending.
9727         * lib/sigprocmask.c (sigpending): Return pending array via
9728         parameter, not return value.
9729
9730 2008-06-14  Eric Blake  <ebb9@byu.net>
9731
9732         Improve obstack-printf test code.
9733         * tests/test-obstack-printf.c (test_function): Fix comment, and
9734         simplify usage of obstack_* in macros.  Add a test for coverage.
9735         Reported by Bruno Haible.
9736
9737 2008-06-14  Bruno Haible  <bruno@clisp.org>
9738
9739         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9740         array size as a constant, not as a const variable.
9741         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9742         AC_USE_SYSTEM_EXTENSIONS.
9743         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9744         Test whether the obstack_printf function actually exists.
9745         * modules/obstack-printf (Depends-on): Add extensions.
9746         (Include): Remove obstack.h.
9747         * modules/obstack-printf-posix (Depends-on): Add extensions.
9748         (Include): Remove obstack.h.
9749
9750 2008-06-13  Eric Blake  <ebb9@byu.net>
9751
9752         Add obstack-printf and obstack-printf-posix modules.
9753         * modules/obstack-printf: New file.
9754         * modules/obstack-printf-posix: Likewise.
9755         * MODULES.html.sh (Misc): Mention them.
9756         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9757         Likewise.
9758         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9759         Likewise.
9760         * modules/stdio (Makefile.am): Accomodate new modules.
9761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9762         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9763         Declare.
9764         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9765         functions.
9766         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9767         (gl_REPLACE_OBSTACK_PRINTF): New macros
9768         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9769         * tests/test-obstack-printf.c: New file.
9770         * modules/obstack-printf-tests: Likewise.
9771         * modules/obstack-printf-posix-tests: Likewise.
9772
9773 2008-06-11  Bruno Haible  <bruno@clisp.org>
9774
9775         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9776         * lib/open.c: Include errno.h.
9777         (open): Fail when attempting to write to a file that has a trailing
9778         slash.
9779         * tests/test-open.c (main): Test against trailing slash bug.
9780         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9781
9782 2008-06-10  Bruno Haible  <bruno@clisp.org>
9783
9784         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9785         for $? to work inside the trap command, with various /bin/sh-s.
9786         * tests/test-vc-list-files-cvs.sh: Likewise.
9787
9788 2008-06-10  Bruno Haible  <bruno@clisp.org>
9789
9790         * lib/acl-internal.h: Don't include gettext.h here.
9791         * lib/set-mode-acl.c: Include gettext.h here.
9792         * lib/copy-acl.c: Likewise.
9793
9794 2008-06-10  Bruno Haible  <bruno@clisp.org>
9795
9796         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9797         * lib/wait-process.c (wait_subprocess): Likewise.
9798         * lib/execute.h (execute): Add termsigp argument.
9799         * lib/execute.c (execute): Likewise.
9800         * lib/csharpcomp.c (compile_csharp_using_pnet,
9801         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9802         * lib/csharpexec.c (execute_csharp_using_pnet,
9803         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9804         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9805         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9806         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9807         is_jikes_present): Update.
9808         * lib/javaexec.c (execute_java_class): Update.
9809         * lib/javaversion.c (execute_and_read_line): Update.
9810         * NEWS: Document the changes.
9811         Reported by Eric Blake.
9812
9813 2008-06-10  Eric Blake  <ebb9@byu.net>
9814
9815         Add missing include.
9816         * tests/test-strstr.c (includes): Add <signal.h>.
9817         * tests/test-strcasestr.c (includes): Likewise.
9818         * tests/test-memmem.c (includes): Likewise.
9819
9820 2008-06-10  Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/wait-process.c (wait_subprocess): Add an assertion.
9823
9824 2008-06-10  Bruno Haible  <bruno@clisp.org>
9825
9826         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9827
9828 2008-06-10  Bruno Haible  <bruno@clisp.org>
9829
9830         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9831         using alarm().
9832         * tests/test-strcasestr.c (main): Likewise.
9833         * tests/test-strstr.c (main): Likewise.
9834
9835 2008-06-09  Bruno Haible  <bruno@clisp.org>
9836
9837         Work around the Solaris 10 ACE ACLs ABI change.
9838         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9839         declare if ACL_NO_TRIVIAL is present.
9840         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9841         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9842         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9843         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9844         define if ACL_NO_TRIVIAL is present.
9845         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9846         and use the current ABI.
9847         (file_has_acl): Use same #if condition as elsewhere.
9848         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9849         in use, and use the current ABI.
9850         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9851         Reported by Jim Meyering.
9852
9853 2008-06-09  Eric Blake  <ebb9@byu.net>
9854
9855         Work around environments that (stupidly) ignore SIGALRM.
9856         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9857         before using alarm().
9858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9860         Reported by Ian Beckwith <ianb@erislabs.net>.
9861
9862         Produce autobuild blurb earlier in log.
9863         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9864
9865 2008-06-09  Jim Meyering  <meyering@redhat.com>
9866         and OndÅ™ej Vašík  <ovasik@redhat.com>
9867
9868         utimens.c: correct kernel bug work-around
9869         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9870         failure, not success, and the kernel bug we're trying to work
9871         around affects not just the utimensat call, but also the fallback
9872         futimens call.
9873         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9874         not success.
9875         [HAVE_FUTIMENS]: Use the same work-around, here.
9876
9877 2008-06-09  Jim Meyering  <meyering@redhat.com>
9878
9879         add more guards around definition of ACE_-related code
9880         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9881         ALLOW and ACE_OWNER are also defined.
9882
9883 2008-06-08  Bruno Haible  <bruno@clisp.org>
9884
9885         * lib/acl-internal.h: Add me as co-author.
9886         * lib/file-has-acl.c: Likewise.
9887         * lib/set-mode-acl.c: Likewise.
9888         * lib/copy-acl.c: Likewise.
9889
9890 2008-06-08  Bruno Haible  <bruno@clisp.org>
9891
9892         Add support for AIX ACLs.
9893         * lib/acl-internal.h (acl_nontrivial): New declaration.
9894         * lib/file-has-acl.c (acl_nontrivial): New function.
9895         (file_has_acl): Add implementation using AIX 4 ACL API.
9896         * lib/set-mode-acl.c (qset_acl): Likewise.
9897         * lib/copy-acl.c (qcopy_acl): Likewise.
9898
9899 2008-06-08  Bruno Haible  <bruno@clisp.org>
9900
9901         Add support for HP-UX ACLs.
9902         * lib/acl-internal.h (acl_nontrivial): New declaration.
9903         * lib/file-has-acl.c (acl_nontrivial): New function.
9904         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9905         * lib/set-mode-acl.c (qset_acl): Likewise.
9906         * lib/copy-acl.c (qcopy_acl): Likewise.
9907
9908 2008-06-08  Bruno Haible  <bruno@clisp.org>
9909
9910         Add support for Cygwin ACLs.
9911         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9912         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9913         the chmod_or_fchmod call.
9914         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9915
9916 2008-06-08  Bruno Haible  <bruno@clisp.org>
9917
9918         Fix bug with setuid modes in Solaris 10+ code.
9919         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9920         succeeded, when the mode contains some special bits.
9921
9922 2008-06-08  Bruno Haible  <bruno@clisp.org>
9923
9924         Add support for Solaris 7..10 ACLs.
9925         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9926         declarations.
9927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9928         functions.
9929         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9930         * lib/set-mode-acl.c (qset_acl): Likewise.
9931         * lib/copy-acl.c (qcopy_acl): Likewise.
9932
9933 2008-06-08  Bruno Haible  <bruno@clisp.org>
9934
9935         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9936         declaration.
9937         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9938         (acl_access_nontrivial): Remove MacOS X case.
9939         (file_has_acl): Use acl_extended_nontrivial.
9940         * lib/copy-acl.c (qcopy_acl): Likewise.
9941
9942 2008-06-08  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9945
9946 2008-06-08  Jim Meyering  <meyering@redhat.com>
9947
9948         * modules/acl (Maintainer): Add Bruno Haible.
9949
9950 2008-06-07  Bruno Haible  <bruno@clisp.org>
9951
9952         Improve support for Tru64 ACLs.
9953         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9954         ACL on OSF/1.
9955
9956 2008-06-07  Bruno Haible  <bruno@clisp.org>
9957
9958         Add support for MacOS X ACLs.
9959         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9960         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9961         * lib/set-mode-acl.c (qset_acl): Likewise.
9962         * lib/copy-acl.c (qcopy_acl): Likewise.
9963
9964 2008-06-07  Bruno Haible  <bruno@clisp.org>
9965
9966         Fix memory leak introduced on 2008-05-22.
9967         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9968         use.
9969
9970 2008-06-07  Bruno Haible  <bruno@clisp.org>
9971
9972         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9973         to construct an empty ACL.
9974
9975 2008-06-07  Bruno Haible  <bruno@clisp.org>
9976
9977         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9978         precisely.
9979         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9980
9981 2008-06-07  Bruno Haible  <bruno@clisp.org>
9982
9983         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9984         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9985
9986 2008-06-07  Bruno Haible  <bruno@clisp.org>
9987
9988         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9989         regardless of POSIX.
9990         * doc/posix-functions/_longjmp.texi: Likewise.
9991         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9992         SystemV platform in this case.
9993
9994 2008-06-06  Eric Blake  <ebb9@byu.net>
9995
9996         Document abort() bugs.
9997         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9998
9999         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
10000         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
10001         sigsetjmp.
10002         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
10003         siglongjmp, but only as a macro.
10004         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
10005         is obsolete.
10006         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
10007
10008         Tweak documentation to cover cygwin argz bugs.
10009         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
10010         argz bug fix; no code change needed since no cygwin releases
10011         occurred between the last fix and the bug being tested.
10012         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
10013         module and recently fixed cygwin bugs.
10014         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
10015         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
10016         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
10017         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
10018         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
10019         Likewise.
10020         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
10021         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
10022         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
10023         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
10024         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
10025         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
10026         Likewise.
10027
10028         Avoid gcc warning on cygwin.
10029         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
10030         !ACL_NO_TRIVIAL]: Avoid unused variable.
10031
10032 2008-06-05  Eric Blake  <ebb9@byu.net>
10033
10034         Be tolerant of UNKNOWN version in gnulib-tool test dir.
10035         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
10036         git-version-gen fails to come up with a version.
10037         Reported by Simon Josefsson.
10038
10039 2008-06-05  Jim Meyering  <meyering@redhat.com>
10040             Paul Eggert  <eggert@cs.ucla.edu>
10041
10042         utimens.c: work around a probable Linux kernel bug
10043         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
10044         appears to be a kernel bug that causes utimensat to return 280
10045         instead of 0, indicating success.
10046
10047 2008-06-04  Bruno Haible  <bruno@clisp.org>
10048
10049         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
10050         2008-06-01 commit.
10051
10052 2008-06-04  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
10055         * lib/file-has-acl.c (acl_access_nontrivial): New function.
10056         (file_has_acl): Use it. Save errno afterwards.
10057         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
10058
10059 2008-06-03  Bruno Haible  <bruno@clisp.org>
10060
10061         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
10062         draft code. Simplify #ifs.
10063         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
10064         Put Solaris code after POSIX-draft code. Fix comments regarding
10065         Solaris 10, HP-UX. Mention Cygwin.
10066         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
10067
10068 2008-06-03  Eric Blake  <ebb9@byu.net>
10069
10070         Provide fallback for older kernels.
10071         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
10072         Provide runtime fallback if kernel lacks support.
10073         Reported by Mike Frysinger.
10074
10075 2008-06-02  Bruno Haible  <bruno@clisp.org>
10076
10077         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
10078         it exists.
10079
10080 2008-06-02  Bruno Haible  <bruno@clisp.org>
10081
10082         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
10083         * lib/copy-acl.c (qcopy_acl): Update comment.
10084
10085 2008-06-02  Bruno Haible  <bruno@clisp.org>
10086
10087         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
10088         like ACL APIs.
10089
10090 2008-06-02  Bruno Haible  <bruno@clisp.org>
10091
10092         * tests/test-file-has-acl.sh: Use different code for Cygwin.
10093         * tests/test-set-mode-acl.sh: Likewise.
10094         * tests/test-copy-acl.sh: Likewise.
10095         * tests/test-copy-file.sh: Likewise.
10096
10097 2008-06-02  Bruno Haible  <bruno@clisp.org>
10098
10099         * tests/test-file-has-acl.sh: Remove unused code.
10100
10101 2008-06-01  Bruno Haible  <bruno@clisp.org>
10102
10103         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
10104         (copy_acl): Just a wrapper around qcopy_acl that emits the error
10105         messages.
10106         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
10107
10108 2008-06-01  Bruno Haible  <bruno@clisp.org>
10109
10110         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
10111         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
10112         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
10113         APIs.
10114         * modules/acl-tests (configure.ac): Remove tests now contained in
10115         m4/acl.m4.
10116
10117 2008-06-02  Jim Meyering  <meyering@redhat.com>
10118
10119         announce-gen: use a better key-server host name
10120         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
10121         it may be more consistently reliable.  Suggested by Werner Koch
10122         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
10123
10124 2008-06-01  Bruno Haible  <bruno@clisp.org>
10125
10126         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
10127         Reported by Voroskoi Andras <voroskoi@gmail.com>.
10128
10129 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
10130
10131         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
10132
10133 2008-06-01  Bruno Haible  <bruno@clisp.org>
10134
10135         New ACL tests.
10136         * tests/test-file-has-acl.sh: New file.
10137         * tests/test-file-has-acl.c: New file.
10138         * tests/test-set-mode-acl.sh: New file.
10139         * tests/test-set-mode-acl.c: New file.
10140         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
10141         * tests/test-copy-acl.c: New file.
10142         * modules/acl-tests: New file, based on modules/copy-file-tests.
10143         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
10144         (Depends-on): Add acl-tests.
10145         (configure.ac): Remove checks.
10146         (Makefile.am): Don't create test-sameacls program here any more.
10147
10148 2008-06-01  Bruno Haible  <bruno@clisp.org>
10149
10150         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
10151         * tests/test-sameacls.c: Include progname.h.
10152         (main): Invoke set_program_name. Portability fixes for MacOS X,
10153         Solaris, HP-UX.
10154
10155 2008-06-01  Bruno Haible  <bruno@clisp.org>
10156
10157         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
10158         function.
10159         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
10160
10161 2008-06-01  Bruno Haible  <bruno@clisp.org>
10162
10163         * modules/rpmatch (Depends-on): Add strdup.
10164
10165 2008-06-01  Bruno Haible  <bruno@clisp.org>
10166
10167         * lib/pipe.c: Include unistd-safer.h.
10168         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
10169         * modules/pipe (Depends-on): Add unistd-safer.
10170
10171 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10172
10173         * modules/autobuild (configure.ac): Call AB_INIT.
10174
10175 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10176
10177         * tests/test-getaddrinfo.c: Don't print debug messages by default.
10178         Suggested by Bruno Haible <bruno@clisp.org>.
10179
10180 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10181
10182         * tests/test-base64.c: Cast size_t to unsigned long when invoking
10183         printf.  Use %lu instead of %d.  Reported by Bruno Haible
10184         <bruno@clisp.org>.
10185
10186 2008-05-29  Eric Blake  <ebb9@byu.net>
10187
10188         Prefer new POSIX 200x interfaces over futimesat.
10189         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
10190         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
10191         when available.
10192         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
10193
10194 2008-05-28  Bruno Haible  <bruno@clisp.org>
10195
10196         * modules/stpcpy (License): Change to LGPLv2+.
10197         Requested by David Lutterkort <dlutter@redhat.com>.
10198
10199 2008-05-27  Bruno Haible  <bruno@clisp.org>
10200
10201         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
10202         current mingw.
10203         Reported by Jose E. Marchesi <jemarch@gnu.org>.
10204
10205 2008-05-27  Bruno Haible  <bruno@clisp.org>
10206
10207         * modules/iconv_open (Link): New section, from module 'iconv'.
10208         * modules/striconv (Link): Likewise.
10209         * modules/striconveh (Link): Likewise.
10210         * modules/xstriconv (Link): Likewise.
10211         * modules/unicodeio (Link): Likewise.
10212         * modules/propername (Link): Likewise.
10213         Reported by Jim Meyering.
10214
10215 2008-05-26  Jim Meyering  <meyering@redhat.com>
10216
10217         sha256: do not artificially restrict buffer length to be < 2^32
10218         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
10219         uint32_t to size_t.
10220         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
10221         to match.
10222
10223         avoid unaligned access errors, e.g., on sparc
10224         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
10225         direct access through a possibly-unaligned uint64* pointer.
10226         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
10227         direct access through a possibly-unaligned uint32* pointer.
10228         Prompted by this patch from Tom "spot" Callaway:
10229         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
10230
10231         sha512.c: fix typo in comment
10232         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
10233
10234 2008-05-25  Bruno Haible  <bruno@clisp.org>
10235
10236         * lib/set-mode-acl.c: Renamed from lib/acl.c.
10237         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
10238         (Makefile.am): Update lib_SOURCES.
10239
10240 2008-05-25  Bruno Haible  <bruno@clisp.org>
10241
10242         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
10243
10244 2008-05-25  Jim Meyering  <meyering@redhat.com>
10245
10246         useless-if-before-free: freed expr may have white-space differences
10247         * build-aux/useless-if-before-free: Recognize cases in which the
10248         freed expression differs from the tested one in embedded white
10249         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
10250         $1 was used, so we can't make any regexp shy.  Improved tests now
10251         detect this.
10252
10253         useless-if-before-free: accept white space in the expression.
10254         * build-aux/useless-if-before-free: For now, any white space
10255         in the expression must be identical in the free argument.
10256
10257         useless-if-before-free: efficiency tweak
10258         * build-aux/useless-if-before-free: Make the expression-matching
10259         regexp "shy".
10260         Make the *outer* regexp shy, not the expr-matching one.
10261
10262         update code-in-comment to accept cast of free arg
10263         * build-aux/useless-if-before-free: Update regexp.
10264
10265 2008-05-25  Bruno Haible  <bruno@clisp.org>
10266
10267         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
10268         * modules/copy-file-tests (Files, Makefile.am): Update.
10269         * tests/test-copy-file.c (func_test_copy): Update.
10270
10271 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
10272
10273         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
10274
10275 2008-05-23  Bruno Haible  <bruno@clisp.org>
10276
10277         Improve support for ACLs on OSF/1.
10278         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
10279         Remove fallback for unknown flavors of ACLs.
10280
10281 2008-05-22  Bruno Haible  <bruno@clisp.org>
10282
10283         Add support for ACLs on OSF/1.
10284         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
10285         replacements.
10286         (acl_free_text): New macro fallback.
10287         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
10288         acl_free.
10289         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
10290         acl_free_text function. Require AC_C_INLINE.
10291
10292 2008-05-22  Bruno Haible  <bruno@clisp.org>
10293
10294         Make copy_acl work on MacOS X 10.5.
10295         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
10296         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
10297         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
10298         If MODE_INSIDE_ACL, don't assume that every system has the same text
10299         representation for ACLs as FreeBSD.
10300         * lib/copy-acl.c (copy_acl): Add support for platforms with
10301         !MODE_INSIDE_ACL.
10302         * lib/file-has-acl.c (file_has_acl): Likewise.
10303         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
10304         FreeBSD, MacOS X, or IRIX, respectively.
10305
10306 2008-05-22  Bruno Haible  <bruno@clisp.org>
10307
10308         * lib/acl.h: Don't include <sys/acl.h>.
10309         (GETACLCNT): Move fallback to lib/acl-internal.h.
10310         * lib/acl-internal.h: Include <sys/acl.h> here.
10311         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
10312
10313 2008-05-22  Bruno Haible  <bruno@clisp.org>
10314
10315         Split off copy_acl function to separate file.
10316         * lib/copy-acl.c: New file, extracted from lib/acl.c.
10317         * lib/acl.c (copy_acl): Moved function to separate file.
10318         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
10319         * modules/acl (Files): Add lib/copy-acl.c.
10320         (Makefiles.am): Augment lib_SOURCES.
10321
10322 2008-05-22  Bruno Haible  <bruno@clisp.org>
10323
10324         * modules/copy-file-tests: New file.
10325         * tests/test-copy-file.sh: New file.
10326         * tests/test-copy-file.c: New file.
10327         * tests/test-copy-file-sameacls.c: New file.
10328
10329 2008-05-22  Eric Blake  <ebb9@byu.net>
10330
10331         Avoid gcc warning.
10332         * tests/test-memcmp.c (main): Pass NULL indirectly.
10333
10334 2008-05-21  Bruno Haible  <bruno@clisp.org>
10335
10336         Add reference doc about ACLs.
10337         * doc/acl-resources.txt: New file.
10338         * doc/acl-cygwin.txt: New file.
10339
10340 2008-05-21  Bruno Haible  <bruno@clisp.org>
10341
10342         Avoid one more warning from gcc.
10343         * lib/vasnprintf.c (IF_LINT): Update comments.
10344         (VASNPRINTF): Use it also for the 'prefix' array initializer.
10345
10346 2008-05-21  Jim Meyering  <meyering@redhat.com>
10347
10348         avoid a warning from gcc
10349         * lib/vasnprintf.c (IF_LINT): Define.
10350         (scale10_round_decimal_long_double):
10351         Use it to avoid a "may be used uninitialized" warning.
10352         (scale10_round_decimal_double): Likewise.
10353
10354 2008-05-21  Simon Josefsson  <simon@josefsson.org>
10355
10356         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
10357         declared.
10358
10359 2008-05-20  Bruno Haible  <bruno@clisp.org>
10360
10361         * tests/test-memcmp.c (main): Test also the sign of the result. Test
10362         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
10363
10364 2008-05-20  Simon Josefsson  <simon@josefsson.org>
10365
10366         * modules/memcmp-tests: New file.
10367         * tests/test-memcmp.c: New file.
10368
10369 2008-05-19  Bruno Haible  <bruno@clisp.org>
10370
10371         * modules/propername (Notice, configure.ac): Put quoted "..." into
10372         --keyword option.
10373         * lib/propername.h: Update comments accordingly.
10374         Reported by Eric Blake.
10375
10376 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
10377
10378         * modules/getpass-gnu (Depends-on): Add fseeko.
10379
10380 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10381
10382         * modules/base64-tests: New file.
10383
10384 2008-05-19  Bo Borgerson <gigabo@gmail.com>
10385
10386         * lib/base64.c (base64_decode_ctx): If a decode context structure
10387         was passed in use it to ignore newlines.  If a context structure
10388         was _not_ passed in, continue to treat newlines as garbage (this
10389         is the historical behavior).  Formerly base64_decode.
10390         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10391         takes a decode context structure.
10392         * lib/base64.h (base64_decode): Macro for four-argument calls.
10393         (base64_decode_alloc): Likewise.
10394         * lib/base64.c (base64_decode_ctx): If a decode context structure
10395         was passed in use it to ignore newlines.  If a context structure
10396         was _not_ passed in, continue to treat newlines as garbage (this
10397         is the historical behavior).  Formerly base64_decode.
10398         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10399         takes a decode context structure.
10400         * lib/base64.h (base64_decode): Macro for four-argument calls.
10401         (base64_decode_alloc): Likewise.
10402
10403 2008-05-19  Jim Meyering  <meyering@redhat.com>
10404
10405         avoid a warning from gcc
10406         * lib/trim.c (IF_LINT): Define.
10407         (trim2): Use it to avoid a "may be used uninitialized" warning.
10408
10409         Fix doc typo.
10410         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
10411
10412 2008-05-19  Bruno Haible  <bruno@clisp.org>
10413
10414         * doc/glibc-functions/getpass.texi: Document limits of other
10415         implementations.
10416
10417 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10418             Bruno Haible <bruno@clisp.org>
10419
10420         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
10421
10422 2008-05-18  Bruno Haible  <bruno@clisp.org>
10423
10424         * modules/propername: New file, from GNU gettext.
10425         * lib/propername.h: New file, from GNU gettext.
10426         * lib/propername.c: New file, from GNU gettext.
10427         * MODULES.html.sh (Internationalization functions): Add propername.
10428
10429 2008-05-16  Jim Meyering  <meyering@redhat.com>
10430             Bruno Haible  <bruno@clisp.org>
10431
10432         Avoid some warnings from "gcc -Wshadow".
10433         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
10434
10435 2008-05-15  Eric Blake  <ebb9@byu.net>
10436
10437         Extend previous patch to cygwin 1.7.0.
10438         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
10439         fast implementation in cygwin >= 1.7.0.
10440         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10442
10443 2008-05-15  Bruno Haible  <bruno@clisp.org>
10444
10445         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
10446         implementation in glibc >= 2.9.
10447         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10449
10450 2008-05-15  Bruno Haible  <bruno@clisp.org>
10451
10452         * MODULES.html.sh (Internationalization functions): Remove linebreak.
10453         (Unicode string functions): Add unilbrk/*.
10454         Reported by Karl Berry.
10455
10456 2008-05-15  Eric Blake  <ebb9@byu.net>
10457
10458         Fix violation of <stdbool.h> replacement in regex.
10459         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
10460         * lib/regexec.c (re_search_internal): Likewise.
10461         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
10462
10463 2008-05-15  Jim Meyering  <meyering@redhat.com>
10464
10465         avoid distracting test output when git or cvs is not found
10466         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
10467         * tests/test-vc-list-files-git.sh: Likewise.
10468
10469 2008-05-15  Eric Blake  <ebb9@byu.net>
10470
10471         Glibc finally accepted the memmem speedup code, bugzilla #5514.
10472         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
10473         glibc version.
10474         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10475         * doc/posix-functions/strstr.texi (strstr): Likewise.
10476         * lib/str-two-way.h (MAX): Sychronize with glibc.
10477
10478 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
10479
10480         * lib/regcomp.c (optimize_utf8): Add a note on why we test
10481         opr.ctx_type.
10482         (calc_first): Initialize constraint field.
10483         (duplicate_node_closure): Use it instead of special casing ANCHORS.
10484         Fix grammar.
10485         (duplicate_node): Merge constraint field for all node types.
10486         (calc_eclosure_iter): Look at constraint field for all node types.
10487         * lib/regex_internal.c (create_cd_newstate): Don't look at
10488         opr.ctx_type.
10489
10490 2008-05-14  Bruno Haible  <bruno@clisp.org>
10491
10492         Help GCC to do better code generation.
10493         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
10494         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10495         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
10496         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
10497         Declare with attribute 'malloc' if supported.
10498
10499 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
10500
10501         use "echo STR|wc -c" rather than unportable "expr length STR"
10502         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
10503         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
10504
10505 2008-05-14  Jim Meyering  <meyering@redhat.com>
10506
10507         use dd ibs=$n count=1 ... rather than less-portable head -c$n
10508         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
10509         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
10510         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
10511         via Collin Lasse.
10512
10513 2008-05-14  Eric Blake  <ebb9@byu.net>
10514
10515         Avoid quadratic growth in gl_LIBSOURCES.
10516         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
10517         Suggested by Bruno Haible.
10518
10519         Test xmemdup0.
10520         * modules/xmemdup0-tests: New file.
10521         * tests/test-xmemdup0.c: Likewise.
10522
10523 2008-05-13  Eric Blake  <ebb9@byu.net>
10524
10525         Split xmemdup0 into its own module.
10526         * modules/xmemdup0: New file.
10527         * lib/xmemdup0.h: Likewise.
10528         * lib/xmemdup0.c: Likewise.
10529         * MODULES.html.sh (Memory management functions): Add xmemdup0.
10530         * lib/xalloc.h (xmemdup0): Remove.
10531         * lib/xmalloc.c (xmemdup0): Likewise.
10532
10533 2008-05-13  Eric Blake  <ebb9@byu.net>
10534             Bruno Haible  <bruno@clisp.org>
10535
10536         Reduce number of forks required during autoconf.
10537         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
10538         and gl_LIBSOURCES_DIR.
10539         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
10540         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
10541         m4_syscmd per file.
10542         <m4_foreach_w>: Move...
10543         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
10544
10545 2008-05-13  Eric Blake  <ebb9@byu.net>
10546
10547         * gnulib-tool: Fix various comment typos.
10548
10549 2008-05-12  Bruno Haible  <bruno@clisp.org>
10550
10551         Tailor the linebreaking algorithm.
10552         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10553
10554 2008-05-12  Bruno Haible  <bruno@clisp.org>
10555
10556         Update to Unicode 5.0.0.
10557         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10558         LBP_JV, LBP_JT. Redistribute values.
10559         (unilbrk_table): Change size.
10560         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10561         Unicode TR#14 rev. 22.
10562         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10563         LBP_JV, LBP_JT. Redistribute values.
10564         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10565         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10566         Update.
10567         * lib/unilbrk/lbrkprop1.h: Regenerated.
10568         * lib/unilbrk/lbrkprop2.h: Regenerated.
10569         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10570         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10571         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10572         Likewise.
10573         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10574         Likewise.
10575         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10576         result.
10577         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10578         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10579         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10580         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10581         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10582         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10583
10584 2008-05-11  Bruno Haible  <bruno@clisp.org>
10585
10586         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10587
10588 2008-05-11  Bruno Haible  <bruno@clisp.org>
10589
10590         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10591         * modules/unilbrk/gen-lbrk: New file.
10592
10593 2008-05-11  Bruno Haible  <bruno@clisp.org>
10594
10595         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10596         * m4/sha512.m4 (gl_SHA512): Likewise.
10597
10598 2008-05-11  Jim Meyering  <meyering@redhat.com>
10599
10600         New modules: crypto/sha256, crypto/sha512 (from coreutils)
10601         * modules/crypto/sha256: New file.
10602         * modules/crypto/sha512: Likewise.
10603         * lib/sha256.c: Likewise.
10604         * lib/sha256.h: Likewise.
10605         * lib/sha512.c: Likewise.
10606         * lib/sha512.h: Likewise.
10607         * lib/u64.h: Likewise.
10608         * m4/sha256.m4: Likewise.
10609         * m4/sha512.m4: Likewise.
10610         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10611
10612 2008-05-10  Bruno Haible  <bruno@clisp.org>
10613
10614         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10615         (Input/Output <stdio.h>): Add xprintf.
10616         (Signal handling <signal.h>): Add strsignal.
10617         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10618         (Core language properties): Add func.
10619         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10620         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10621         strings.
10622         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10623         (Input/output): New section.
10624         (File system functions): Add openat-die, stat-macros.
10625         (Networking functions): Add sockets.
10626         (Unicode string functions): Add unictype/*.
10627         (Support for building libraries and executables): Add gperf.
10628         (Support for building documentation): Add agpl-3.0.
10629         (Misc): Add nocrash.
10630
10631 2008-05-10  Bruno Haible  <bruno@clisp.org>
10632
10633         * modules/unictype/gen-ctype: New file.
10634
10635 2008-05-10  Jim Meyering  <meyering@redhat.com>
10636
10637         Make chdir-safer.c more efficient on a system with no symlinks.
10638         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10639         also if ELOOP is zero.  Suggested by Bruno Haible.
10640
10641         Make chdir-safer.c slightly safer.
10642         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10643         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10644
10645         Avoid compile failure on systems without ELOOP (like mingw).
10646         * lib/chdir-safer.c (ELOOP): Define if not already defined.
10647         Reported by Bruno Haible.
10648
10649 2008-05-10  Bruno Haible  <bruno@clisp.org>
10650
10651         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10652         (is_utf8_encoding): Use a case-insensitive comparison.
10653         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10654         streq.
10655
10656 2008-05-10  Bruno Haible  <bruno@clisp.org>
10657
10658         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10659         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10660         * lib/unilbrk/ulc-common.h (iconv_string_length,
10661         iconv_string_keeping_offsets): Remove declarations.
10662         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10663         Don't include <iconv.h>, streq.h, xsize.h.
10664         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10665         conversion.
10666         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10667         <iconv.h>, streq.h, xsize.h.
10668         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10669         conversion.
10670         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10671         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10672         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10673         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10674
10675 2008-05-10  Bruno Haible  <bruno@clisp.org>
10676
10677         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10678         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10679
10680         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10681         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10682
10683         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10684         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10685
10686         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10687         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10688
10689         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10690         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10691
10692         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10693         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10694
10695         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10696         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10697
10698         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10699         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10700
10701 2008-05-10  Bruno Haible  <bruno@clisp.org>
10702
10703         Split up 'linebreak' module.
10704         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10705         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10706         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10707         modifications.
10708         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10709         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10710         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10711         lib/linebreak.c.
10712         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10713         lib/linebreak.c.
10714         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10715         lib/linebreak.c.
10716         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10717         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10718         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10719         lib/linebreak.c.
10720         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10721         lib/linebreak.c.
10722         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10723         lib/linebreak.c.
10724         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10725         lib/linebreak.c.
10726         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10727         lib/linebreak.c.
10728         * modules/unilbrk/base: New file.
10729         * modules/unilbrk/tables: New file.
10730         * modules/unilbrk/u8-possible-linebreaks: New file.
10731         * modules/unilbrk/u16-possible-linebreaks: New file.
10732         * modules/unilbrk/u32-possible-linebreaks: New file.
10733         * modules/unilbrk/ulc-common: New file.
10734         * modules/unilbrk/ulc-possible-linebreaks: New file.
10735         * modules/unilbrk/u8-width-linebreaks: New file.
10736         * modules/unilbrk/u16-width-linebreaks: New file.
10737         * modules/unilbrk/u32-width-linebreaks: New file.
10738         * modules/unilbrk/ulc-width-linebreaks: New file.
10739         * lib/linebreak.h: Remove file.
10740         * lib/linebreak.c: Remove file.
10741         * m4/linebreak.m4: Remove file.
10742         * modules/linebreak: Remove file.
10743         * NEWS: Mention the changes.
10744
10745 2008-05-09  Eric Blake  <ebb9@byu.net>
10746
10747         Add xmemdup0.
10748         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10749         implementation.
10750         * lib/xmalloc.c (xmemdup0): New C implementation.
10751
10752 2008-05-08  Bruno Haible  <bruno@clisp.org>
10753
10754         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10755
10756 2008-05-07  Eric Blake  <ebb9@byu.net>
10757
10758         Support cross-compilation of <wctype.h>.
10759         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10760         AC_CACHE_CHECK.
10761
10762 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10763
10764         * build-aux/vc-list-files: Add support for bzr.
10765
10766 2008-05-03  Jim Meyering  <meyering@redhat.com>
10767
10768         avoid failed assertion with tight malloc
10769         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10770
10771 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10772
10773         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10774         are needed from arpa/inet.h.
10775         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10776         Reported by Bruno Haible.
10777
10778 2008-05-02  Jim Meyering  <meyering@redhat.com>
10779
10780         avoid compilation error on FreeBSD 6
10781         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10782
10783 2008-05-01  Jim Meyering  <meyering@redhat.com>
10784
10785         useless-if-before-free: correct --help's exit status description
10786         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10787         for one or more matches, etc.  Reported by Bruno Haible.
10788
10789         vc-list-files: make the stand-alone gnulib test work
10790         * modules/vc-list-files-tests (configure.ac):
10791         Define and AC_SUBST abs_aux_dir.
10792         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10793         $(abs_top_srcdir) to each script and having each of them
10794         duplicate the work of setting PATH, set PATH here, using
10795         the new variable, abs_aux_dir instead.
10796         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10797         * tests/test-vc-list-files-git.sh: Likewise.
10798         Reported by Bruno Haible.
10799
10800 2008-05-01  Bruno Haible  <bruno@clisp.org>
10801
10802         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10803         reallocation. Rename 'done' to 'found_delimiter'.
10804
10805 2008-05-01  Jim Meyering  <meyering@redhat.com>
10806
10807         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10808         * build-aux/vc-list-files: Use `...`, not $(...).
10809
10810 2008-04-30  Jim Meyering  <meyering@redhat.com>
10811
10812         add tests for vc-list-files
10813         * modules/vc-list-files-tests: New module.
10814         * tests/test-vc-list-files-cvs.sh: New file.
10815         * tests/test-vc-list-files-git.sh: New file.
10816
10817         avoid a warning from gcc
10818         * lib/getndelim2.c (IF_LINT): Define.
10819         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10820
10821         vc-list-files: work properly with build-aux/cvsu, too
10822         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10823         to all cvs-based clauses.
10824
10825         vc-list-files: work properly in the CVS+awk case, too
10826         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10827
10828         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10829         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10830         take more than one file argument, so .  Add quotes, just in case $dir
10831         ever contains a shell meta-character.  Prompted by Soren Hansen in
10832         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10833
10834 2008-04-29  Eric Blake  <ebb9@byu.net>
10835
10836         Optimize getndelim2 to use block operations when possible.
10837         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10838         freadseek, and memchr2.
10839         * lib/getndelim2.c (getndelim2): Use them for block reads.
10840
10841 2008-04-29  Bruno Haible  <bruno@clisp.org>
10842
10843         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10845         * modules/inet_ntop (Depends-on): Add extensions.
10846         * modules/inet_pton (Depends-on): Likewise.
10847         Reported by Simon Josefsson.
10848
10849 2008-04-29  Jim Meyering  <meyering@redhat.com>
10850
10851         When the is more than one match in a block, match all of them.
10852         * build-aux/useless-if-before-free: Iterate through each block
10853         until there are no more matches.
10854
10855         Fix broken useless-if-before-free script.
10856         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10857         the expression to match cast of argument to free-like function.
10858
10859 2008-04-29  Eric Blake  <ebb9@byu.net>
10860
10861         Use new header.
10862         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10863
10864 2008-04-29  Jim Meyering  <meyering@redhat.com>
10865
10866         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10867         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10868         by gnulib to exist and to declare e.g., inet_ntop.
10869         Don't include "inet_ntop.h", now removed.
10870
10871         * m4/arpa_inet_h.m4: Remove trailing blanks.
10872
10873 2008-04-29  Eric Blake  <ebb9@byu.net>
10874
10875         Silence valgrind on safe reads beyond potential array bounds.
10876         * lib/rawmemchr.valgrind: New file.
10877         * lib/strchrnul.valgrind: Likewise.
10878         * modules/rawmemchr (Files): Distribute new file.
10879         * modules/strchrnul (Files): Likewise.
10880         Suggested by Bruno Haible.
10881
10882 2008-04-29  Bruno Haible  <bruno@clisp.org>
10883
10884         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10885         (inet_ntop, inet_pton): Change portability warning's wording.
10886         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10887         Invoke gl_CHECK_NEXT_HEADERS.
10888         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10889         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10890         set ARPA_INET_H.
10891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10892         * modules/arpa_inet (Description): No longer only for systems that
10893         lack it.
10894         (Depends-on): Add include_next.
10895         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10896         HAVE_ARPA_INET_H.
10897
10898 2008-04-29  Jim Meyering  <meyering@redhat.com>
10899
10900         * modules/mkdir (License): Re-license as LGPLv2+.
10901
10902 2008-04-29  Bruno Haible  <bruno@clisp.org>
10903
10904         * modules/rawmemchr (Maintainer): Set to Eric.
10905         * modules/strchrnul (Maintainer): Likewise.
10906
10907 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10908
10909         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10910         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10911
10912         * modules/arpa_inet (arpa/inet.h): Use them.
10913
10914 2008-04-28  Eric Blake  <ebb9@byu.net>
10915
10916         Test getndelim2.
10917         * modules/getndelim2-tests: New file.
10918         * tests/test-getndelim2.c: Likewise.
10919         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10920         stream.
10921         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10922
10923         * MODULES.html.sh: Document new module.
10924
10925 2008-04-20  Bruno Haible  <bruno@clisp.org>
10926
10927         * lib/c-stack.c (die): Use raise.
10928         * modules/c-stack (Depends-on): Add raise.
10929
10930 2008-04-28  Bruno Haible  <bruno@clisp.org>
10931
10932         Expect rpmatch to be declared.
10933         * lib/yesno.c (rpmatch): Remove declaration.
10934
10935         Declare rpmatch.
10936         * lib/stdlib.in.h (rpmatch): New declaration.
10937         * lib/rpmatch.c: Include <stdlib.h> first.
10938         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10939         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10941         HAVE_RPMATCH.
10942         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10944         (Include): Set to <stdlib.h>.
10945         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10946         HAVE_RPMATCH.
10947         * NEWS: Document the change.
10948
10949 2008-04-28  Bruno Haible  <bruno@clisp.org>
10950
10951         Change rpmatch to use nl_langinfo when appropriate.
10952         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10953         (N_): New macro.
10954         (localized_pattern): New function/macro.
10955         (try): Remove match, nomatch arguments. Copy the pattern into safe
10956         memory before caching it.
10957         (rpmatch): Use localized_pattern. Add translator comments.
10958         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10959         Suggested by Eric Blake.
10960         * modules/rpmatch (Depends-on): Add stdbool.
10961
10962 2008-04-28  Eric Blake  <ebb9@byu.net>
10963
10964         Add rawmemchr module, matching glibc.
10965         * modules/string (Makefile.am): New indicator.
10966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10967         * lib/string.in.h (rawmemchr): Declare when appropriate.
10968         * modules/rawmemchr: New file.
10969         * m4/rawmemchr.m4: Likewise.
10970         * lib/rawmemchr.c: Likewise.
10971         * modules/rawmemchr-tests: Likewise.
10972         * tests/test-rawmemchr.c: Likewise.
10973         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10974         module.
10975         * modules/strchrnul (Depends-on): Add rawmemchr.
10976         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10977
10978         Whitespace cleanup.
10979         * tests/test-strchrnul.c: Reindent.
10980         * lib/strchrnul.c: Likewise.
10981
10982         Optimize and test strchrnul.
10983         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10984         * modules/strchrnul-tests: New file.
10985         * tests/test-strchrnul.c: Likewise.
10986
10987         Remove intprops dependency.
10988         * modules/memchr (Depends-on): Remove intprops.
10989         * modules/memrchr (Depends-on): Likewise.
10990         * modules/memchr2 (Depends-on): Likewise.
10991         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10992         * lib/memrchr.c (__memrchr): Likewise.
10993         * lib/memrchr2.c (memchr2): Likewise.
10994         Reported by Simon Josefsson.
10995
10996 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10997
10998         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10999         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11000
11001 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11002
11003         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
11004
11005         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
11006
11007         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
11008
11009         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
11010         declarations.
11011         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
11012
11013         * m4/inet_pton.m4: Don't check for header files.
11014
11015         * m4/inet_ntop.m4: Don't check for header files.
11016
11017 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11018
11019         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
11020         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
11021         trigger for cygwin).
11022         Reported by Bruno Haible  <bruno@clisp.org>.
11023
11024 2008-04-28  Bruno Haible  <bruno@clisp.org>
11025
11026         * doc/posix-functions/strdup.texi: Mention mingw problem.
11027
11028 2008-04-27  Bruno Haible  <bruno@clisp.org>
11029
11030         * modules/stat-time-tests (Depends-on): Add sleep.
11031         * tests/test-stat-time.c (force_unlink): New function.
11032         (cleanup): Use it.
11033         (test_mtime): Remove the ctime related tests.
11034         (test_ctime): New function, containing the ctime related tests.
11035         (main): Call test_ctime, except on native Windows platforms.
11036
11037 2008-04-27  Bruno Haible  <bruno@clisp.org>
11038
11039         * lib/rpmatch.c (rpmatch): Add some comments.
11040         Reported by James Youngman <jay@gnu.org>.
11041
11042 2008-04-27  Bruno Haible  <bruno@clisp.org>
11043
11044         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
11045         quiet NaNs.
11046
11047 2008-04-27  Bruno Haible  <bruno@clisp.org>
11048
11049         Make test-yesno.sh work on mingw.
11050         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
11051         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
11052         (main): Set stdin to binary mode.
11053         * modules/yesno-tests (Depends-on): Add binary-io.
11054
11055 2008-04-27  Bruno Haible  <bruno@clisp.org>
11056
11057         Fix 'isfinite' on x86, x86_64, ia64 platforms.
11058         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
11059         argument that lie outside the IEEE 854 domain.
11060         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
11061         (gl_ISFINITE): Use it.
11062         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
11063
11064 2008-04-27  Bruno Haible  <bruno@clisp.org>
11065
11066         Allow local renaming in config.h.
11067         * lib/memrchr.c (memrchr): Don't undefine outside libc.
11068
11069 2008-04-27  Bruno Haible  <bruno@clisp.org>
11070
11071         * lib/memchr.c (__memchr): Change type of 'i'.
11072         * lib/memchr2.c (memchr2): Likewise.
11073
11074 2008-04-26  Eric Blake  <ebb9@byu.net>
11075         and Bruno Haible  <bruno@clisp.org>
11076
11077         Optimize and test memrchr.
11078         * modules/memrchr (Depends-on): Add intprops.
11079         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
11080         * modules/memrchr-tests: New file.
11081         * tests/test-memrchr.c: New file.
11082
11083 2008-04-26  Bruno Haible  <bruno@clisp.org>
11084
11085         Add tentative support for DragonFly BSD.
11086         * lib/stdio-impl.h: Add macros for DragonFly BSD.
11087         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
11088         fp.
11089         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11090         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
11091         * lib/fpurge.c (fpurge): Likewise.
11092         * lib/freadable.c (freaadable): Likewise.
11093         * lib/freadahead.c (freadahead): Likewise.
11094         * lib/freading.c (freading): Likewise.
11095         * lib/freadptr.c (freadptr): Likewise.
11096         * lib/freadseek.c (freadptrinc): Likewise.
11097         * lib/fseeko.c (fseeko): Likewise.
11098         * lib/fseterr.c (fseterr): Likewise.
11099         * lib/fwritable.c (fwritable): Likewise.
11100         * lib/fwriting.c (fwriting): Likewise.
11101
11102 2008-04-26  Bruno Haible  <bruno@clisp.org>
11103
11104         * lib/stdio-impl.h: New file.
11105         * lib/fbufmode.c: Include stdio-impl.h.
11106         (fbufmode): Use fp_, remove redundant #defines.
11107         * lib/fflush.c: Include stdio-impl.h.
11108         (clear_ungetc_buffer): Remove redundant #defines.
11109         * lib/fpurge.c: Include stdio-impl.h.
11110         (fpurge): Remove redundant #defines.
11111         * lib/freadable.c: Include stdio-impl.h.
11112         (freadable): Remove redundant #defines.
11113         * lib/freadahead.c: Include stdio-impl.h.
11114         (freadahead): Remove redundant #defines.
11115         * lib/freading.c: Include stdio-impl.h.
11116         (freading): Remove redundant #defines.
11117         * lib/freadptr.c: Include stdio-impl.h.
11118         (freadptr): Remove redundant #defines.
11119         * lib/freadseek.c: Include stdio-impl.h.
11120         (freadptrinc): Remove redundant #defines.
11121         * lib/fseeko.c: Include stdio-impl.h.
11122         (rpl_fseeko): Remove redundant #defines.
11123         * lib/fseterr.c: Include stdio-impl.h.
11124         (fseterr): Remove redundant #defines.
11125         * lib/fwritable.c: Include stdio-impl.h.
11126         (fwritable: Remove redundant #defines.
11127         * lib/fwriting.c: Include stdio-impl.h.
11128         (fwriting): Remove redundant #defines.
11129         * modules/fbufmode (Files): Add lib/stdio-impl.h.
11130         * modules/fflush (Files): Likewise.
11131         * modules/fpurge (Files): Likewise.
11132         * modules/freadable (Files): Likewise.
11133         * modules/freadahead (Files): Likewise.
11134         * modules/freading (Files): Likewise.
11135         * modules/freadptr (Files): Likewise.
11136         * modules/freadseek (Files): Likewise.
11137         * modules/fseeko (Files): Likewise.
11138         * modules/fseterr (Files): Likewise.
11139         * modules/fwritable (Files): Likewise.
11140         * modules/fwriting (Files): Likewise.
11141
11142 2008-04-26  Bruno Haible  <bruno@clisp.org>
11143
11144         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11145         restore_seek_optimization, update_fpos_cache): New functions, extracted
11146         from rpl_fflush.
11147         (rpl_fflush): Use them.
11148         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
11149         (gl_REPLACE_FFLUSH): Use it.
11150
11151 2008-04-26  Bruno Haible  <bruno@clisp.org>
11152
11153         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
11154         on Solaris.
11155         * tests/test-xstrtoimax.sh: Likewise.
11156         * tests/test-xstrtoumax.sh: Likewise.
11157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11158
11159 2008-04-26  Bruno Haible  <bruno@clisp.org>
11160
11161         * modules/memchr-tests: New file.
11162         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
11163
11164 2008-04-26  Eric Blake  <ebb9@byu.net>
11165             Bruno Haible  <bruno@clisp.org>
11166
11167         * lib/memchr.c: Include intprops.h.
11168         (__memchr): Optimize parallel detection of matching bytes. Rename local
11169         variables. Add explanatory comments.
11170
11171 2008-04-26  Bruno Haible  <bruno@clisp.org>
11172
11173         Fix module 'memchr', broken since 2000-10-28.
11174         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
11175
11176 2008-04-26  Bruno Haible  <bruno@clisp.org>
11177
11178         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
11179         comments.
11180
11181 2008-04-25  Eric Blake  <ebb9@byu.net>
11182
11183         Use native fstatat on cygwin 1.7.0.
11184         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
11185         first.
11186
11187 2008-04-23  Eric Blake  <ebb9@byu.net>
11188
11189         Improve memchr2 performance.
11190         * lib/memchr2.c (memchr2): Further optimize parallel detection of
11191         NUL bytes.
11192         * modules/memchr2 (Depends-on): Use intprops.h.
11193
11194 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11195
11196         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
11197         an inline function instead of a CPP macro.  Patch by Ben Pfaff
11198         <blp@cs.stanford.edu>.
11199
11200 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11201
11202         * lib/arpa_inet.in.h: New file.
11203
11204         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
11205         (Makefile.am): Sed in substitute header file.
11206
11207         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
11208         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
11209
11210         * modules/inet_ntop (configure.ac): Use
11211         gl_ARPA_INET_MODULE_INDICATOR.
11212
11213         * modules/inet_pton (configure.ac): Use
11214         gl_ARPA_INET_MODULE_INDICATOR.
11215
11216 2008-04-22  Jim Meyering  <meyering@redhat.com>
11217
11218         * modules/verify (License): Re-license as LGPLv2+.
11219
11220 2008-04-22  Simon Josefsson  <simon@josefsson.org>
11221
11222         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
11223         parameter to void* as per POSIX standard (MinGW uses char*).
11224
11225 2008-04-21  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11228         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11229         Define to replacements if REPLACE_ISWCNTRL is 1.
11230         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
11231         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
11232         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
11233         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
11234         what it fixes.
11235         * doc/posix-functions/iswalpha.texi: Likewise.
11236         * doc/posix-functions/iswblank.texi: Likewise.
11237         * doc/posix-functions/iswcntrl.texi: Likewise.
11238         * doc/posix-functions/iswdigit.texi: Likewise.
11239         * doc/posix-functions/iswgraph.texi: Likewise.
11240         * doc/posix-functions/iswlower.texi: Likewise.
11241         * doc/posix-functions/iswprint.texi: Likewise.
11242         * doc/posix-functions/iswpunct.texi: Likewise.
11243         * doc/posix-functions/iswspace.texi: Likewise.
11244         * doc/posix-functions/iswupper.texi: Likewise.
11245         * doc/posix-functions/iswxdigit.texi: Likewise.
11246         Reported by Alain Guibert.
11247
11248 2008-04-21  Bruno Haible  <bruno@clisp.org>
11249
11250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
11251         Patch by Alain Guibert.
11252
11253 2008-04-21  Bruno Haible  <bruno@clisp.org>
11254
11255         Fix test failures on mingw.
11256         * tests/test-xstrtol.c (print_no_progname): New function.
11257         (main): Install it in error_print_progname hook.
11258         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
11259         * tests/test-xstrtoimax.sh: Likewise.
11260         * tests/test-xstrtoumax.sh: Likewise.
11261
11262 2008-04-21  Bruno Haible  <bruno@clisp.org>
11263
11264         Fix test failure on mingw.
11265         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
11266
11267 2008-04-21  Bruno Haible  <bruno@clisp.org>
11268
11269         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
11270         Actually assign a value.
11271
11272 2008-04-20  Bruno Haible  <bruno@clisp.org>
11273
11274         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
11275         take 2.
11276         * lib/canonicalize.c (canonicalize_file_name): Elide if the
11277         'canonicalize-lgpl' module is also used.
11278         * lib/canonicalize-lgpl.c: Undo last change.
11279         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
11280
11281 2008-04-20  Bruno Haible  <bruno@clisp.org>
11282
11283         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
11284         config.h. Provide _mkdir based fallback for mingw.
11285         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
11286         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
11287         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
11288         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
11289         rather than defining mkdir in config.h.
11290         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
11291         (gl_SYS_STAT_H_DEFAULTS): New macro.
11292         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
11293         HAVE_IO_H any more.
11294         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
11295         HAVE_DECL_MKDIR and HAVE_IO_H.
11296
11297 2008-04-20  Bruno Haible  <bruno@clisp.org>
11298
11299         * lib/isapipe.c: Port to native Windows platforms.
11300
11301 2008-04-20  Bruno Haible  <bruno@clisp.org>
11302
11303         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
11304
11305 2008-04-21  Eric Blake  <ebb9@byu.net>
11306
11307         Work around preprocessors that don't handle UINTMAX_MAX.
11308         * lib/memchr2.c (memchr2): Avoid embedded #if.
11309         Reported by Alain Guibert, fix suggested by Bruno Haible.
11310
11311 2008-04-21  Simon Josefsson  <simon@josefsson.org>
11312
11313         * doc/posix-functions/strftime.texi (strftime): Explain better
11314         Windows incompatibility.  Suggested by Micah Cowan
11315         <micah@cowan.name>.
11316
11317 2008-04-20  Bruno Haible  <bruno@clisp.org>
11318
11319         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
11320         unistr/u8-mblen.
11321
11322 2008-04-20  Bruno Haible  <bruno@clisp.org>
11323
11324         Fix test failure on platforms with non-GNU iconv.
11325         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
11326         (U_TO_U8): Use it, rather than u16_to_u8.
11327         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
11328         units at the end of the input string.
11329         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
11330
11331 2008-04-20  Bruno Haible  <bruno@clisp.org>
11332
11333         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
11334         when the resulting length is 0.
11335         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11336
11337 2008-04-20  Bruno Haible  <bruno@clisp.org>
11338
11339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
11340         works.
11341         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
11342
11343 2008-04-20  Bruno Haible  <bruno@clisp.org>
11344
11345         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
11346         * modules/tsearch-tests (configure.ac): Test for initstate function.
11347
11348 2008-04-20  Bruno Haible  <bruno@clisp.org>
11349
11350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
11351         for nlink_t if missing.
11352         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
11353
11354 2008-04-19  Bruno Haible  <bruno@clisp.org>
11355
11356         Work around snprintf bug on Linux libc5.
11357         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
11358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11359         gl_SNPRINTF_SIZE1.
11360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11361         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
11362         that test failed.
11363         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11364         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
11365         * modules/snprintf (Files): Add m4/printf.m4.
11366         * modules/vsnprintf (Files): Likewise.
11367         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
11368         * doc/posix-functions/vsnprintf.texi: Likewise.
11369
11370 2008-04-19  Bruno Haible  <bruno@clisp.org>
11371
11372         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
11373         from 0.0058 to less than 10^-7.
11374
11375 2008-04-19  Bruno Haible  <bruno@clisp.org>
11376
11377         Fix rounding when a precision is given.
11378         * lib/vasnprintf.c (is_borderline): New function.
11379         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
11380         9...9x.
11381         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
11382         %e, %g.
11383         * tests/test-vasprintf-posix.c (test_function): Likewise.
11384         * tests/test-snprintf-posix.h (test_function): Likewise.
11385         * tests/test-sprintf-posix.h (test_function): Likewise.
11386         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
11387         * tests/test-printf-posix.h (test_function): Likewise.
11388         * tests/test-printf-posix.output: Update.
11389         Reported by John Darrington <john@darrington.wattle.id.au> via
11390         Ben Pfaff <blp@cs.stanford.edu>.
11391
11392 2008-04-18  Simon Josefsson  <simon@josefsson.org>
11393
11394         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
11395         Suggested by Bruno Haible <bruno@clisp.org>.
11396
11397 2008-04-17  Bruno Haible  <bruno@clisp.org>
11398
11399         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
11400         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
11401         implementation.
11402         Patch by Bruce Merry <bmerry@gmail.com>.
11403
11404 2008-04-17  Simon Josefsson  <simon@josefsson.org>
11405
11406         * doc/posix-functions/strftime.texi (strftime): Mention that %e
11407         doesn't work under Windows.
11408
11409 2008-04-16  Bruno Haible  <bruno@clisp.org>
11410
11411         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
11412         New macros.
11413         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
11414         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
11415         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
11416         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
11417         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
11418         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
11419         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
11420         macros.
11421         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
11422         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
11423         Northern Sotho, Uighur.
11424
11425 2008-04-16  Bruno Haible  <bruno@clisp.org>
11426
11427         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
11428         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
11429         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
11430         Reported by Daniel Bergström <daniel@octocode.com>.
11431
11432 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
11433             Bruno Haible  <bruno@clisp.org>
11434
11435         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
11436         function.
11437         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
11438         New functions, mostly extracted from gl_locale_name_default.
11439         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
11440
11441 2008-04-16  Eric Blake  <ebb9@byu.net>
11442
11443         Adjust strtod detection to catch glibc 2.7 bug.
11444         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
11445         Reported by John Gatewood Ham.
11446
11447 2008-04-16  Bruno Haible  <bruno@clisp.org>
11448
11449         Add tentative support for Linux libc5.
11450         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
11451         * lib/fpurge.c (fpurge): Likewise.
11452         * lib/freadable.c (freadable): Likewise.
11453         * lib/freadahead.c (freadahead): Likewise.
11454         * lib/freading.c (freading): Likewise.
11455         * lib/freadptr.c (freadptr): Likewise.
11456         * lib/freadseek.c (freadptrinc): Likewise.
11457         * lib/fseeko.c (rpl_fseeko): Likewise.
11458         * lib/fseterr.c (fseterr): Likewise.
11459         * lib/fwritable.c (fwritable): Likewise.
11460         * lib/fwriting.c (fwriting): Likewise.
11461         Reported by Alain Guibert <alguibert+bts@free.fr>.
11462
11463 2008-04-15  Bruno Haible  <bruno@clisp.org>
11464
11465         * modules/mathl (configure.ac): Define module indicator.
11466
11467 2008-04-15  Bruno Haible  <bruno@clisp.org>
11468
11469         * lib/logl.c (logl): Remove unused variables.
11470
11471 2008-04-15  Bruno Haible  <bruno@clisp.org>
11472
11473         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
11474         fails.
11475
11476 2008-04-15  Bruno Haible  <bruno@clisp.org>
11477
11478         * lib/trim.c (trim2): Fix argument of isspace() macro.
11479
11480 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
11481
11482         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
11483         to 0.
11484         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
11485
11486 2008-04-14  Bruno Haible  <bruno@clisp.org>
11487
11488         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
11489         AC_LANG_PROGRAM argument.
11490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
11491         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
11492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11493         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11494         * m4/math_h.m4 (gl_MATH_H): Likewise.
11495         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11497         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11498         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11499         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11500         * m4/regex.m4 (gl_REGEX): Likewise.
11501         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11502         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
11503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11504         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
11505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11509
11510 2008-04-14  Jim Meyering  <meyering@redhat.com>
11511
11512         test-strtod: fix typos: s/abs/fabs/
11513         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
11514
11515 2008-04-13  Bruno Haible  <bruno@clisp.org>
11516
11517         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
11518         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
11519         module is also used and while not building the reloc-wrapper.
11520
11521 2008-04-13  Bruno Haible  <bruno@clisp.org>
11522
11523         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
11524
11525 2008-04-13  Bruno Haible  <bruno@clisp.org>
11526
11527         Fix AIX compilation failure introduced on 2008-04-02.
11528         * tests/test-frexp.c (exp): Undefine before redefining.
11529         * tests/test-frexpl.c (exp): Likewise.
11530
11531 2008-04-13  Bruno Haible  <bruno@clisp.org>
11532
11533         Work around a HP-UX stdio bug.
11534         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
11535         * tests/test-ftello.c (main): Likewise.
11536         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
11537         * doc/posix-functions/ftello.texi: Likewise.
11538
11539 2008-04-13  Bruno Haible  <bruno@clisp.org>
11540
11541         Make test-signbit pass on HP-UX/hppa.
11542         * tests/test-signbit.c (minus_zerol): New variable.
11543         (test_signbitl): Use it.
11544
11545 2008-04-13  Bruno Haible  <bruno@clisp.org>
11546
11547         Make truncl work on OSF/1 4.0.
11548         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
11549         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11550         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11552         HAVE_DECL_TRUNCL.
11553         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11554         HAVE_DECL_TRUNCL.
11555         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11556
11557 2008-04-13  Bruno Haible  <bruno@clisp.org>
11558
11559         * lib/unictype.h: Remove trailing comma from enumeration definitions.
11560
11561 2008-04-13  Bruno Haible  <bruno@clisp.org>
11562
11563         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11564         expression, so as to avoid HP-UX 11 cc compiler bug.
11565
11566 2008-04-13  Bruno Haible  <bruno@clisp.org>
11567
11568         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11569
11570 2008-04-13  Bruno Haible  <bruno@clisp.org>
11571
11572         * lib/git-merge-changelog.c: Remove empty declaration outside of
11573         functions.
11574
11575 2008-04-13  Bruno Haible  <bruno@clisp.org>
11576
11577         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11578
11579 2008-04-13  Bruno Haible  <bruno@clisp.org>
11580
11581         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11582         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11584         also if it exists but lacks definitions of the SHUT_* macros.
11585         * modules/sys_socket (Description): Update.
11586         Reported by Elbert Pol <e.pol@chello.nl>.
11587
11588 2008-04-13  Bruno Haible  <bruno@clisp.org>
11589
11590         * lib/localcharset.c (OS2): Don't redefine if already defined.
11591         Reported by Elbert Pol <e.pol@chello.nl>.
11592
11593 2008-04-13  Bruno Haible  <bruno@clisp.org>
11594
11595         * lib/binary-io.h [__EMX__]: Include <io.h>.
11596         Reported by Elbert Pol <e.pol@chello.nl>.
11597
11598 2008-04-12  Bruno Haible  <bruno@clisp.org>
11599
11600         * lib/fpucw.h: Enable the definitions also for x86_64.
11601         Needed for NetBSD/x86_64.
11602         Reported by Thomas Klausner <tk@giga.or.at>.
11603
11604 2008-04-12  Bruno Haible  <bruno@clisp.org>
11605
11606         * tests/test-strtod.c: Include isnand.h.
11607         (main): Use isnand instead of isnan.
11608         Reported by Jim Meyering.
11609
11610 2008-04-12  Bruno Haible  <bruno@clisp.org>
11611
11612         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11613         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11614
11615 2008-04-12  Jim Meyering  <meyering@redhat.com>
11616
11617         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11618
11619 2008-04-12  Bruno Haible  <bruno@clisp.org>
11620
11621         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11622         Reported by Elbert Pol <e.pol@chello.nl>.
11623
11624 2008-04-12  Eric Blake  <ebb9@byu.net>
11625
11626         Work around Solaris 10 math.h bug.
11627         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11628         (gl_MATH_H_DEFAULTS): Set up default.
11629         * modules/math (Makefile.am): Replace new indicators.
11630         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11631         * tests/test-math.c (main): Test this.
11632         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11633         * doc/posix-headers/math.texi (math.h): Mention bug.
11634         Reported by Nelson H. F. Beebe and Jim Meyering.
11635
11636 2008-04-11  Bruno Haible  <bruno@clisp.org>
11637
11638         Adapt to future versions of Apple GCC.
11639         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11640         Reported by Peter O'Gorman <peter@pogma.com>.
11641
11642 2008-04-11  Bruno Haible  <bruno@clisp.org>
11643
11644         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11645
11646 2008-04-11  Bruno Haible  <bruno@clisp.org>
11647
11648         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11649
11650         * modules/getaddrinfo-tests (Makefile.am): Define
11651         test_getaddrinfo_LDADD.
11652
11653 2008-04-11  Bruno Haible  <bruno@clisp.org>
11654
11655         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11656         (init): Fix syntax error.
11657         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11658         is declared.
11659
11660 2008-04-11  Bruno Haible  <bruno@clisp.org>
11661
11662         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11663         * modules/glob (Depends-on): Add stdbool.
11664
11665 2008-04-11  Bruno Haible  <bruno@clisp.org>
11666
11667         * lib/trim.c: Include <string.h>.
11668
11669 2008-04-11  Eric Blake  <ebb9@byu.net>
11670
11671         Avoid compile failure on OS/2.
11672         * lib/regex_internal.h (internal_function): Disable optimization
11673         on OS/2 (__EMX__), where it caused compiler error.
11674         Reported by Elbert Pol.
11675
11676 2008-04-11  Bruno Haible  <bruno@clisp.org>
11677
11678         Flush the standard error stream before aborting. Needed on mingw.
11679         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11680         * tests/test-array_list.c (ASSERT): Likewise.
11681         * tests/test-array_oset.c (ASSERT): Likewise.
11682         * tests/test-avltree_list.c (ASSERT): Likewise.
11683         * tests/test-avltree_oset.c (ASSERT): Likewise.
11684         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11685         * tests/test-binary-io.c (ASSERT): Likewise.
11686         * tests/test-byteswap.c (ASSERT): Likewise.
11687         * tests/test-c-ctype.c (ASSERT): Likewise.
11688         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11689         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11690         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11691         * tests/test-c-strstr.c (ASSERT): Likewise.
11692         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11693         * tests/test-canonicalize.c (ASSERT): Likewise.
11694         * tests/test-carray_list.c (ASSERT): Likewise.
11695         * tests/test-ceilf1.c (ASSERT): Likewise.
11696         * tests/test-ceilf2.c (ASSERT): Likewise.
11697         * tests/test-ceill.c (ASSERT): Likewise.
11698         * tests/test-count-one-bits.c (ASSERT): Likewise.
11699         * tests/test-fbufmode.c (ASSERT): Likewise.
11700         * tests/test-fflush2.c (ASSERT): Likewise.
11701         * tests/test-floorf1.c (ASSERT): Likewise.
11702         * tests/test-floorf2.c (ASSERT): Likewise.
11703         * tests/test-floorl.c (ASSERT): Likewise.
11704         * tests/test-fopen.c (ASSERT): Likewise.
11705         * tests/test-fpending.c (ASSERT): Likewise.
11706         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11707         * tests/test-fpurge.c (ASSERT): Likewise.
11708         * tests/test-freadable.c (ASSERT): Likewise.
11709         * tests/test-freadahead.c (ASSERT): Likewise.
11710         * tests/test-freading.c (ASSERT): Likewise.
11711         * tests/test-freadptr.c (ASSERT): Likewise.
11712         * tests/test-freadptr2.c (ASSERT): Likewise.
11713         * tests/test-freadseek.c (ASSERT): Likewise.
11714         * tests/test-freopen.c (ASSERT): Likewise.
11715         * tests/test-frexp.c (ASSERT): Likewise.
11716         * tests/test-frexpl.c (ASSERT): Likewise.
11717         * tests/test-fseek.c (ASSERT): Likewise.
11718         * tests/test-fseeko.c (ASSERT): Likewise.
11719         * tests/test-fstrcmp.c (ASSERT): Likewise.
11720         * tests/test-ftell.c (ASSERT): Likewise.
11721         * tests/test-ftello.c (ASSERT): Likewise.
11722         * tests/test-func.c (ASSERT): Likewise.
11723         * tests/test-fwritable.c (ASSERT): Likewise.
11724         * tests/test-fwriting.c (ASSERT): Likewise.
11725         * tests/test-getdelim.c (ASSERT): Likewise.
11726         * tests/test-getline.c (ASSERT): Likewise.
11727         * tests/test-i-ring.c (ASSERT): Likewise.
11728         * tests/test-iconv-utf.c (ASSERT): Likewise.
11729         * tests/test-iconv.c (ASSERT): Likewise.
11730         * tests/test-isfinite.c (ASSERT): Likewise.
11731         * tests/test-isnand.c (ASSERT): Likewise.
11732         * tests/test-isnanf.c (ASSERT): Likewise.
11733         * tests/test-isnanl.h (ASSERT): Likewise.
11734         * tests/test-ldexpl.c (ASSERT): Likewise.
11735         * tests/test-linked_list.c (ASSERT): Likewise.
11736         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11737         * tests/test-localename.c (ASSERT): Likewise.
11738         * tests/test-lseek.c (ASSERT): Likewise.
11739         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11740         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11741         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11742         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11743         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11744         * tests/test-mbschr.c (ASSERT): Likewise.
11745         * tests/test-mbscspn.c (ASSERT): Likewise.
11746         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11747         * tests/test-mbspbrk.c (ASSERT): Likewise.
11748         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11749         * tests/test-mbsrchr.c (ASSERT): Likewise.
11750         * tests/test-mbsspn.c (ASSERT): Likewise.
11751         * tests/test-mbsstr1.c (ASSERT): Likewise.
11752         * tests/test-mbsstr2.c (ASSERT): Likewise.
11753         * tests/test-mbsstr3.c (ASSERT): Likewise.
11754         * tests/test-memchr2.c (ASSERT): Likewise.
11755         * tests/test-memmem.c (ASSERT): Likewise.
11756         * tests/test-open.c (ASSERT): Likewise.
11757         * tests/test-printf-frexp.c (ASSERT): Likewise.
11758         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11759         * tests/test-printf-posix.c (ASSERT): Likewise.
11760         * tests/test-quotearg.c (ASSERT): Likewise.
11761         * tests/test-rbtree_list.c (ASSERT): Likewise.
11762         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11763         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11764         * tests/test-round1.c (ASSERT): Likewise.
11765         * tests/test-roundf1.c (ASSERT): Likewise.
11766         * tests/test-roundl.c (ASSERT): Likewise.
11767         * tests/test-signbit.c (ASSERT): Likewise.
11768         * tests/test-sleep.c (ASSERT): Likewise.
11769         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11770         * tests/test-snprintf.c (ASSERT): Likewise.
11771         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11772         * tests/test-stat-time.c (ASSERT): Likewise.
11773         * tests/test-strcasestr.c (ASSERT): Likewise.
11774         * tests/test-strerror.c (ASSERT): Likewise.
11775         * tests/test-striconv.c (ASSERT): Likewise.
11776         * tests/test-striconveh.c (ASSERT): Likewise.
11777         * tests/test-striconveha.c (ASSERT): Likewise.
11778         * tests/test-strsignal.c (ASSERT): Likewise.
11779         * tests/test-strstr.c (ASSERT): Likewise.
11780         * tests/test-strtod.c (ASSERT): Likewise.
11781         * tests/test-trunc1.c (ASSERT): Likewise.
11782         * tests/test-trunc2.c (ASSERT): Likewise.
11783         * tests/test-truncf1.c (ASSERT): Likewise.
11784         * tests/test-truncf2.c (ASSERT): Likewise.
11785         * tests/test-truncl.c (ASSERT): Likewise.
11786         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11787         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11788         * tests/test-vasnprintf.c (ASSERT): Likewise.
11789         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11790         * tests/test-vasprintf.c (ASSERT): Likewise.
11791         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11792         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11793         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11794         * tests/test-vsnprintf.c (ASSERT): Likewise.
11795         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11796         * tests/test-wcwidth.c (ASSERT): Likewise.
11797         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11798         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11799         * tests/test-xvasprintf.c (ASSERT): Likewise.
11800         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11801         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11802         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11803         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11804         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11805         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11806         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11807         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11808         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11809         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11810         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11811         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11812         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11813         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11814         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11815         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11816         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11817         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11818         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11819         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11820         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11821         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11822         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11823         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11824         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11825         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11826         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11827         * tests/unictype/test-combining.c (ASSERT): Likewise.
11828         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11829         * tests/unictype/test-digit.c (ASSERT): Likewise.
11830         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11831         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11832         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11833         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11834         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11835         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11836         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11837         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11838         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11839         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11840         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11841         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11842         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11843         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11844         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11845         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11846         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11847         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11848         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11849         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11850         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11851         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11852         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11853         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11854         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11855         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11856         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11857         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11858         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11859         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11860         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11861         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11862         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11863         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11864         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11865         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11866         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11867         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11868         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11869         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11870         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11871         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11872         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11873         Reported by Eric Blake.
11874
11875 2008-04-11  Bruno Haible  <bruno@clisp.org>
11876
11877         * lib/wchar.in.h: Tweak comment.
11878
11879 2008-04-11  Bruno Haible  <bruno@clisp.org>
11880
11881         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11882         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11883         gl_COMMON.
11884         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11885
11886 2008-04-11  Bruno Haible  <bruno@clisp.org>
11887
11888         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11889
11890 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11891
11892         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11893         of attempting to use non-existing /dev/*random.  Based on patch
11894         from Adam Strzelecki <ono@java.pl> in
11895         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11896
11897 2008-04-08  Bruno Haible  <bruno@clisp.org>
11898
11899         Add tentative support for emx+gcc.
11900         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11901         * lib/fpurge.c (fpurge): Likewise.
11902         * lib/freadable.c (freadable): Likewise.
11903         * lib/freadahead.c (freadahead): Likewise.
11904         * lib/freading.c (freading): Likewise.
11905         * lib/freadptr.c (freadptr): Likewise.
11906         * lib/freadseek.c (freadptrinc): Likewise.
11907         * lib/fseeko.c (rpl_fseeko): Likewise.
11908         * lib/fseterr.c (fseterr): Likewise.
11909         * lib/fwritable.c (fwritable): Likewise.
11910         * lib/fwriting.c (fwriting): Likewise.
11911         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11912
11913 2008-04-09  Eric Blake  <ebb9@byu.net>
11914
11915         Avoid some autoconf warnings.
11916         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11917         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11918         * m4/afs.m4 (gl_AFS): Likewise.
11919         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11920         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11922         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11923         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11924         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11925         (AC_CHECK_DECLS_ONCE): Likewise.
11926         Rename file...
11927         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11928         gnulib-tool requires autoconf 2.59 or better.
11929         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11930
11931 2008-04-08  Eric Blake  <ebb9@byu.net>
11932
11933         Use 'git describe --match' if present (added in git 1.5.5).
11934         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11935         if possible.
11936
11937 2008-04-08  Bruno Haible  <bruno@clisp.org>
11938
11939         Add tentative support for OpenServer.
11940         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11941         _ptr, _cnt.
11942         * lib/fpurge.c (fpurge): Likewise.
11943         * lib/freadable.c (freadable): Likewise.
11944         * lib/freadahead.c (freadahead): Likewise.
11945         * lib/freading.c (freading): Likewise.
11946         * lib/freadptr.c (freadptr): Likewise.
11947         * lib/freadseek.c (freadptrinc): Likewise.
11948         * lib/fseeko.c (rpl_fseeko): Likewise.
11949         * lib/fseterr.c (fseterr): Likewise.
11950         * lib/fwritable.c (fwritable): Likewise.
11951         * lib/fwriting.c (fwriting): Likewise.
11952         Reported by Roger Cornelius <rac@tenzing.org> and
11953         Brian K. White <brian@aljex.com>.
11954
11955 2008-04-06  Jim Meyering  <meyering@redhat.com>
11956
11957         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11958
11959 2008-04-06  Bruno Haible  <bruno@clisp.org>
11960
11961         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11962         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11963         * tests/test-printf-posix.sh: Likewise.
11964         * tests/test-vfprintf-posix.sh: Likewise.
11965         * tests/test-vprintf-posix.sh: Likewise.
11966         * tests/test-xprintf-posix.sh: Likewise.
11967
11968 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11969
11970         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11971         hide error from 'ls', needed on OS/2.
11972         Report by Elbert Pol <elbert.pol@gmail.com>.
11973
11974 2008-04-04  Eric Blake  <ebb9@byu.net>
11975
11976         Make test-fseeko.c failures meaningful.
11977         * tests/test-fseeko.c: Print line number on failure.
11978         * tests/test-fseek.c: Likewise.
11979         Reported by Nelson H. F. Beebe.
11980
11981         Improve strtod bug detection check.
11982         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11983         required for Solaris 10.
11984         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11985
11986 2008-04-04  Bruno Haible  <bruno@clisp.org>
11987
11988         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11989         by m4/setenv.m4.
11990
11991 2008-04-03  Eric Blake  <ebb9@byu.net>
11992
11993         Ensure sane .version contents.
11994         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11995         version string.
11996         * build-aux/git-version-gen: Improve documentation.
11997
11998         Make GNU make output nicer.
11999         * top/GNUmakefile [!_have-Makefile]: Add dependency on
12000         MAKECMDGOALS to enforce message for all command line targets.  Set
12001         srcdir for use in maint.mk.
12002
12003         Another maintainer tweak.
12004         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
12005         a target that regenerates version.
12006
12007 2008-04-03  Jim Meyering  <meyering@redhat.com>
12008
12009         vc-list-files: don't cause coreutils "make po-check" failure
12010         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
12011
12012 2008-04-03  Eric Blake  <ebb9@byu.net>
12013
12014         Allow VPATH usage of vc-list-files.
12015         * build-aux/vc-list-files (scriptversion): Add timestamp.
12016         (options): Add --help, --version, -C.
12017         (CVS): Support installed cvsu.
12018
12019 2008-04-02  Bruno Haible  <bruno@clisp.org>
12020
12021         Avoid some "statement with no effect" warnings from gcc.
12022         * tests/test-wctype.c (main): Explicitly ignore unused values.
12023         Reported by Jim Meyering.
12024
12025 2008-04-02  Jim Meyering  <meyering@redhat.com>
12026
12027         Avoid some warnings from "gcc -Wshadow".
12028         * tests/test-frexp.c (exp): Define to a different identifier.
12029         * tests/test-frexpl.c (exp): Likewise.
12030
12031 2008-04-03  Jim Meyering  <meyering@redhat.com>
12032
12033         bootstrap: remove dangling *.[ch] symlinks from lib
12034         * build-aux/bootstrap [dangling symlink removal]: Move find's
12035         -depth option to precede all others, to avoid a warning.
12036         Remove *.[ch] files too, and from "$source_base" (usually lib/).
12037
12038 2008-04-02  Bruno Haible  <bruno@clisp.org>
12039
12040         Avoid some warnings from "gcc -Wshadow".
12041         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
12042         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
12043         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
12044         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
12045         Reported by Jim Meyering.
12046
12047 2008-04-01  Bruno Haible  <bruno@clisp.org>
12048
12049         Fix test to work on IRIX 6.5 with cc.
12050         * tests/test-math.c (numeric_equal): New function.
12051         (main): Use it.
12052
12053 2008-04-01  Bruno Haible  <bruno@clisp.org>
12054
12055         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
12056
12057 2008-04-01  Bruno Haible  <bruno@clisp.org>
12058
12059         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
12060         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12061         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
12062         (Depends-on): Remove math.
12063
12064         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
12065         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12066         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
12067         (Depends-on): Remove math.
12068
12069         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
12070         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12071         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
12072         (Depends-on): Remove math.
12073         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
12074         (Depends-on): Remove math.
12075
12076         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
12077         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12078         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
12079         (Depends-on): Remove math.
12080         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
12081         (Depends-on): Remove math.
12082
12083         * tests/test-round1.c: Include nan.h.
12084         (main): Use NaNd instead of NAN.
12085         * modules/round-tests (Files): Add tests/nan.h.
12086
12087         * tests/test-trunc1.c: Include nan.h.
12088         (main): Use NaNd instead of NAN.
12089         * modules/trunc-tests (Files): Add tests/nan.h.
12090
12091         * tests/test-roundf1.c: Include nan.h.
12092         (main): Use NaNf instead of NAN.
12093         * modules/roundf-tests (Files): Add tests/nan.h.
12094
12095         * tests/test-truncf1.c: Include nan.h.
12096         (main): Use NaNf instead of NAN.
12097         * modules/truncf-tests (Files): Add tests/nan.h.
12098
12099         * tests/test-ceilf1.c: Include nan.h.
12100         (main): Use NaNf instead of NAN.
12101         * modules/ceilf-tests (Files): Add tests/nan.h.
12102
12103         * tests/test-floorf1.c: Include nan.h.
12104         (main): Use NaNf instead of NAN.
12105         * modules/floorf-tests (Files): Add tests/nan.h.
12106
12107         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
12108         (main): Use NaNf instead of NAN.
12109         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
12110
12111         * tests/test-isnand.c: Include nan.h instead of <math.h>.
12112         (main): Use NaNd instead of NAN.
12113         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
12114
12115         * tests/test-frexp.c: Include nan.h.
12116         (main): Use NaNd instead of NAN.
12117         * modules/frexp-tests (Files): Add tests/nan.h.
12118
12119         * lib/isnan.c: Don't include <math.h>.
12120         (FUNC): Don't use NAN macro.
12121         * modules/isnand-nolibm (Depends-on): Remove math.
12122         * modules/isnanf-nolibm (Depends-on): Remove math.
12123         * modules/isnanl (Depends-on): Remove math.
12124         * modules/isnanl-nolibm (Depends-on): Remove math.
12125
12126         * tests/nan.h: New file.
12127
12128 2008-04-01  Eric Blake  <ebb9@byu.net>
12129
12130         Fix typos.
12131         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
12132         values to be the right type.
12133
12134         For now, cater to gnulib strtod inaccuracies.
12135         * tests/test-strtod.c (main): Allow 1-ulp error on expected
12136         fractional results.  While not as nice from a QoI perspective, it
12137         is a quicker patch than correctly implementing decimal to binary
12138         rounding.
12139
12140 2008-03-31  Eric Blake  <ebb9@byu.net>
12141
12142         Guarantee a definition of NAN.
12143         * lib/math.in.h (NAN): Define if missing.
12144         * tests/test-math.c (main): Test it.
12145         * doc/posix-headers/math.texi (math.h): Document this.
12146         * lib/isnan.c (rpl_isnand): Use it.
12147         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
12148         * tests/test-floorf1.c (NaN): Likewise.
12149         * tests/test-frexp.c (NaN): Likewise.
12150         * tests/test-isnand.c (NaN): Likewise.
12151         * tests/test-isnanf.c (NaN): Likewise.
12152         * tests/test-round1.c (NaN): Likewise.
12153         * tests/test-roundf1.c (NaN): Likewise.
12154         * tests/test-snprintf-posix.h (NaN): Likewise.
12155         * tests/test-sprintf-posix.h (NaN): Likewise.
12156         * tests/test-trunc1.c (NaN): Likewise.
12157         * tests/test-truncf1.c (NaN): Likewise.
12158         * tests/test-vasnprintf-posix.c (NaN): Likewise.
12159         * tests/test-vasprintf-posix.c (NaN): Likewise.
12160         * modules/isnand-nolibm (Depends-on): Add math.
12161         * modules/isnanf-nolibm (Depends-on): Likewise.
12162         * modules/isnanl (Depends-on): Likewise.
12163         * modules/isnanl-nolibm (Depends-on): Likewise.
12164         * modules/snprintf-posix-tests (Depends-on): Likewise.
12165         * modules/sprintf-posix-tests (Depends-on): Likewise.
12166         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
12167         * modules/vsprintf-posix-tests (Depends-on): Likewise.
12168         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
12169         * modules/vasprintf-posix-tests (Depends-on): Likewise.
12170
12171 2008-03-31  Bruno Haible  <bruno@clisp.org>
12172
12173         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
12174         * doc/posix-functions/strtod.texi: Likewise.
12175
12176 2008-03-31  Bruno Haible  <bruno@clisp.org>
12177
12178         * tests/test-strtod.c (main): Don't use C99 syntax.
12179
12180 2008-03-31  Bruno Haible  <bruno@clisp.org>
12181
12182         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
12183         Reported by Eric Blake.
12184
12185 2008-03-31  Jim Meyering  <meyering@redhat.com>
12186
12187         Don't compare actual signbit return values.
12188         * tests/test-strtod.c (main): Rather, compare only their
12189         zero/non-zero nature.
12190
12191 2008-03-31  Eric Blake  <ebb9@byu.net>
12192
12193         More strtod documentation.
12194         * doc/posix-functions/strtod.texi (strtod): Interpret more test
12195         failures as distinct bugs.
12196
12197 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12198
12199         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
12200         Problem reported by Erik Benada in
12201         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
12202
12203 2008-03-30  Bruno Haible  <bruno@clisp.org>
12204
12205         * tests/test-strtod.c: Add comments about which assertion fails on which
12206         platform.
12207         * doc/posix-functions/strtod.texi: Add info about many more platforms.
12208
12209 2008-03-30  Eric Blake  <ebb9@byu.net>
12210
12211         Test signbit behavior on zeros.
12212         * tests/test-signbit.c (test_signbitf): Add tests for zero.
12213         (test_signbitd, test_signbitl): Likewise.
12214
12215         More strtod touchups.
12216         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
12217         sign of negative underflow, for now.  Use .5, not .1.
12218         * doc/posix-functions/strtod.texi (strtod): Mention these
12219         limitations.
12220         Reported by Jim Meyering.
12221
12222 2008-03-30  Bruno Haible  <bruno@clisp.org>
12223
12224         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
12225         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
12226
12227 2008-03-30  Bruno Haible  <bruno@clisp.org>
12228
12229         Avoid failure when attempting to return empty iconv results on some
12230         platforms.
12231         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
12232         allocation, don't report ENOMEM when the resulting string is empty.
12233
12234 2008-03-30  Bruno Haible  <bruno@clisp.org>
12235
12236         Fix buffer overrun.
12237         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
12238         Don't consider the width for tmp_length. Check count against tmp_length
12239         before doing the padding. Ensure enough allocation during padding.
12240
12241 2008-03-30  Eric Blake  <ebb9@byu.net>
12242
12243         strtod touchups.
12244         * lib/strtod.c (strtod): Avoid compiler warnings.
12245         Reported by Jim Meyering.
12246
12247 2008-03-30  Bruno Haible  <bruno@clisp.org>
12248
12249         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
12250         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
12251         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
12252         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
12253         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
12254         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
12255         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
12256         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
12257
12258         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
12259         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
12260         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
12261         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
12262         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
12263         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
12264         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
12265         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
12266
12267         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
12268         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
12269         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
12270         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
12271         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
12272         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
12273         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
12274         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
12275
12276         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
12277         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
12278
12279         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
12280         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
12281
12282         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
12283         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
12284
12285         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
12286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
12287         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
12288
12289         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
12290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
12291         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
12292
12293         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
12294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
12295         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
12296
12297         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
12298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
12299         * modules/vasprintf (Depends-on): Add EOVERFLOW.
12300
12301         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
12302         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
12303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
12304         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
12305         (Depends-on): Add EOVERFLOW.
12306         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
12307         (Depends-on): Add EOVERFLOW.
12308         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12309         (Depends-on): Add EOVERFLOW.
12310         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12311         (Depends-on): Add EOVERFLOW.
12312         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12313         (Depends-on): Add EOVERFLOW.
12314         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12315         (Depends-on): Add EOVERFLOW.
12316         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12317         (Depends-on): Add EOVERFLOW.
12318         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12319         (Depends-on): Add EOVERFLOW.
12320
12321         * lib/sprintf.c (EOVERFLOW): Remove fallback.
12322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
12323         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
12324
12325         * lib/snprintf.c (EOVERFLOW): Remove fallback.
12326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
12327         * modules/snprintf (Depends-on): Add EOVERFLOW.
12328
12329         * lib/poll.c (EOVERFLOW): Remove fallback.
12330         * modules/poll (Depends-on): Add EOVERFLOW.
12331
12332         * lib/getugroups.c (EOVERFLOW): Remove fallback.
12333         * modules/getugroups (Depends-on): Add EOVERFLOW.
12334
12335         * lib/getdelim.c (EOVERFLOW): Remove fallback.
12336         * modules/getdelim (Depends-on): Add EOVERFLOW.
12337
12338         * lib/ftell.c (EOVERFLOW): Remove fallback.
12339         * modules/ftell (Depends-on): Add EOVERFLOW.
12340
12341         * lib/fprintf.c (EOVERFLOW): Remove fallback.
12342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
12343         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
12344
12345         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
12346
12347         * modules/EOVERFLOW-tests: New file.
12348         * tests/test-EOVERFLOW.c: New file.
12349
12350         * modules/EOVERFLOW: New file.
12351         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
12352
12353 2008-03-30  Bruno Haible  <bruno@clisp.org>
12354
12355         Fix bug introduced on 2007-06-10.
12356         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
12357         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
12358
12359 2008-03-30  Bruno Haible  <bruno@clisp.org>
12360
12361         Improve freadseek's efficiency after ungetc.
12362         * lib/freadseek.c: Include freadahead.h.
12363         (freadptrinc): New function, extracted from freadseek.
12364         (freadseek): Use it in a loop. Use freadahead to determine the number
12365         of loop iterations.
12366         * modules/freadseek (Depends-on): Add freadahead.
12367         (configure.ac): Require AC_C_INLINE.
12368
12369 2008-03-30  Bruno Haible  <bruno@clisp.org>
12370
12371         * lib/freadseek.c (freadseek): Don't ignore the return value of
12372         freadptr.
12373
12374 2008-03-29  Eric Blake  <ebb9@byu.net>
12375
12376         Add hex float support.
12377         * modules/strtod (Depends-on): Add c-ctype.
12378         (Link): Mention POW_LIB.
12379         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
12380         whitespace between 'e' and exponent.
12381         * tests/test-strtod.c (main): Enable hex float tests.
12382         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
12383         now provides.
12384
12385         Document various strtod bugs, with some fixes.
12386         * doc/posix-functions/strtod.texi (strtod): Document bugs with
12387         "-0x", "inf", "nan", and hex constants.
12388         * doc/posix-functions/atof.texi (atof): Likewise.
12389         * modules/stdlib (Makefile.am): Support strtod.
12390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
12391         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
12392         detect additional strtod bugs.
12393         * lib/stdlib.in.h (rpl_strtod): Add declarations.
12394         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
12395         bool where appropriate.  Parse 'inf' and 'nan'.
12396         * tests/test-strtod.c: New file.
12397         * modules/strtod (Depends-on): Add stdbool, stdlib.
12398         (configure.ac): Turn on module indicator.
12399         * modules/strtod-tests: New module.
12400
12401 2008-03-29  Eric Blake  <ebb9@byu.net>
12402
12403         Fix ftell on mingw.
12404         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
12405         * modules/ftell-tests (Depends-on): Add binary-io.
12406         * modules/ftello-tests (Depends-on): Likewise.
12407         * tests/test-ftell.c (main): Enhance test to cover behavior after
12408         ungetc.  Enforce binary mode.
12409         * tests/test-ftello.c (main): Likewise.
12410
12411         Pass test-freadseek on cygwin.
12412         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
12413         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
12414         ungetc buffer.
12415
12416         * tests/test-fflush2.c (main): Fix typo.
12417
12418 2008-03-29  Bruno Haible  <bruno@clisp.org>
12419
12420         * tests/test-fflush2.c (main): Temporarily disable the contents of
12421         this test.
12422         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
12423         Reported by Eric Blake.
12424
12425 2008-03-28  Simon Josefsson  <simon@josefsson.org>
12426
12427         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
12428         (GC_SHA224_DIGEST_SIZE): Add.
12429
12430         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
12431         (gc_hash_digest_length): Likewise.
12432         (gc_hash_buffer): Likewise.
12433
12434 2008-03-25  Bruno Haible  <bruno@clisp.org>
12435
12436         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
12437         detail which gettext release to use.
12438         Reported by Simon Josefsson.
12439
12440 2008-03-26  Jim Meyering  <meyering@redhat.com>
12441
12442         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
12443         * modules/gnumakefile (clean-GNUmakefile): Also, use
12444         test ... && ... || : syntax rather than if-then ... fi.
12445
12446         gnumakefile: Don't double-quote-expand $(VPATH) value.
12447         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
12448
12449 2008-03-24  Eric Blake  <ebb9@byu.net>
12450
12451         Alter GNUmakefile to install into top directory.
12452         * modules/maintainer-makefile: Split, and add dependency...
12453         * modules/gnumakefile: to this new module.
12454         * build-aux/GNUmakefile: Move...
12455         * top/GNUmakefile: ...here.
12456         * build-aux/maint.mk: Move...
12457         * top/maint.mk: ...here.
12458         * MODULES.html.sh (Support for maintaining...): Document new
12459         module.
12460
12461 2008-03-23  Bruno Haible  <bruno@clisp.org>
12462
12463         * gnulib-tool: New options --vc-files, --no-vc-files.
12464         (func_usage): Document them.
12465         (vc_files): New variable.
12466         (func_import): Consider vc_files.
12467         (func_create_testdir): Set vc_files to empty.
12468         Suggested by Jim Meyering and Karl Berry.
12469
12470 2008-03-23  Bruno Haible  <bruno@clisp.org>
12471
12472         Fix regex compilation error on HP-UX 11.
12473         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
12474         * modules/regex (Files): Add m4/mbstate_t.m4.
12475         Reported by Ton Voon <ton.voon@altinity.com>.
12476
12477 2008-03-23  Bruno Haible  <bruno@clisp.org>
12478
12479         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
12480
12481 2008-03-23  Eric Blake  <ebb9@byu.net>
12482             Bruno Haible  <bruno@clisp.org>
12483
12484         Install files from top/ in the destination directory.
12485         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12486         augmentation also for the files from top/.
12487         (func_import, func_create_testdir): Rewrite file names:
12488         top/filename -> filename.
12489
12490 2008-03-23  Bruno Haible  <bruno@clisp.org>
12491
12492         Tweak "gnulib --version" output.
12493         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
12494
12495 2008-03-23  Bruno Haible  <bruno@clisp.org>
12496
12497         Tweak "gnulib --version" output.
12498         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
12499         rather than contents of ChangeLog, when possible.
12500
12501 2008-03-21  Eric Blake  <ebb9@byu.net>
12502
12503         More --version tweaks.
12504         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
12505         date of last ChangeLog entry.
12506
12507 2008-03-21  Jim Meyering  <meyering@redhat.com>
12508
12509         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
12510
12511 2008-03-20  Eric Blake  <ebb9@byu.net>
12512
12513         VPATH fix.
12514         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
12515
12516 2008-03-20  Simon Josefsson  <simon@josefsson.org>
12517
12518         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
12519         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
12520
12521 2008-03-20  Eric Blake  <ebb9@byu.net>
12522
12523         Sync GNUmakefile with coreutils.
12524         * build-aux/GNUmakefile (have-Makefile): Rename...
12525         (_have-Makefile): ...to this, for namespace consideration.
12526         (GNUmakefile.cfg): Include, if present.
12527         (_autoreconf): Define a default.
12528         (_is-dist-target): New rule for rebuilds to pick up intra-release
12529         version.
12530         (maint-cfg.mk): Rename...
12531         (cfg.mk): ...to this.
12532
12533 2008-03-18  Jim Meyering  <meyering@redhat.com>
12534
12535         New script and module: mktempd
12536         * MODULES.html.sh (maint+release support): Add mktempd.
12537         * build-aux/mktempd: New file.
12538         * modules/mktempd: New file.
12539
12540 2008-03-15  Jim Meyering  <meyering@redhat.com>
12541
12542         Undo last change.
12543         * lib/sha1.c, lib/md5.c: 63 != ~63.
12544         Reported by Andreas Schwab.
12545
12546         sha1.c, md5.c: Hoist a redundant expression.
12547         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
12548         "ctx->buflen" only once, before calling *_process_block.
12549         * lib/md5.c (md5_process_bytes): Likewise.
12550
12551 2008-03-14  Eric Blake  <ebb9@byu.net>
12552
12553         Bump copyright year in files generated by gnulib-tool.
12554         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12555         gnulib-tool, rather than hard-coding it.
12556
12557         Fix 'gnulib-tool --version' output to work with git.
12558         * gnulib-tool (func_gnulib_dir): New function, extracted from...
12559         (startup): ...here.
12560         (func_version): Use it to invoke git-version-gen, rather than
12561         relying on CVS keyword expansion.  Modernize wording.
12562         (cvsdatestamp, last_checkin_date, version): Kill unused
12563         variables.
12564
12565 2008-03-12  Jim Meyering  <meyering@redhat.com>
12566
12567         Recognize optional cast of the argument to free.
12568         * build-aux/useless-if-before-free: Update regexps.
12569
12570         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12571
12572 2008-03-11  Bruno Haible  <bruno@clisp.org>
12573
12574         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12575         by a single package.
12576         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12577         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12578         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12579         Reported by Sam Steingold <sds@gnu.org>.
12580
12581 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12582
12583         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12584         repositories.
12585
12586 2008-03-11  Bruno Haible  <bruno@clisp.org>
12587
12588         Avoid conflicts between local macro definitions.
12589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12590         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12591
12592 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
12593             Bruno Haible  <bruno@clisp.org>
12594
12595         Make va_copy work with some version of xlc on AIX 5.1.
12596         * lib/stdarg.in.h: New file.
12597         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12598         On AIX, use a <stdarg.h> file substitute.
12599         * modules/stdarg (Files): Add lib/stdarg.in.h.
12600         (Depends-on): Add include_next.
12601         (Makefile.am): Build a stdarg.h substitute if requested.
12602         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12603
12604 2008-03-10  Bruno Haible  <bruno@clisp.org>
12605
12606         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12607         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12608         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12609
12610 2008-03-10  Bruno Haible  <bruno@clisp.org>
12611
12612         * modules/stdlib (Depends-on): Add include_next, remove
12613         absolute-header.
12614
12615 2008-03-09  Bruno Haible  <bruno@clisp.org>
12616
12617         * lib/freadahead.h (freadahead): Document more precisely.
12618         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12619         the sum of both buffer sizes.
12620         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12621         * NEWS: Document the change.
12622
12623 2008-03-09  Bruno Haible  <bruno@clisp.org>
12624
12625         Extend freadptr to return also the buffer size.
12626         * lib/freadptr.h (freadptr): Add sizep argument.
12627         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12628         (freadptr): Add sizep argument. Determine buffer size like freadahead
12629         does.
12630         * tests/test-freadptr.c: Don't include freadahead.h.
12631         (main): Adapt for new calling convention of freadptr.
12632         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12633         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12634         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12635         tests/test-freadptr2.sh.
12636         (Depends): Remove freadahead.
12637         (TESTS): Add test-freadptr2.sh.
12638         (check_PROGRAMS): Add test-freadptr2.
12639
12640 2008-03-09  Bruno Haible  <bruno@clisp.org>
12641
12642         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12643         Report and solution by Simon Josefsson.
12644
12645 2008-03-06  Bruno Haible  <bruno@clisp.org>
12646
12647         Make fflush after ungetc work on BSD platforms.
12648         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12649         * tests/test-fflush2.c: New file.
12650         * tests/test-fflush2.sh: New file.
12651         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12652         tests/test-fflush2.c.
12653         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12654         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12655
12656 2008-03-06  Eric Blake  <ebb9@byu.net>
12657
12658         Likewise for ftello.
12659         * modules/ftello (Dependencies): Add extensions.
12660         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12661
12662 2008-03-06  Bruno Haible  <bruno@clisp.org>
12663
12664         * modules/fseeko (Dependencies): Add extensions.
12665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12666         Needed on glibc systems.
12667
12668 2008-03-06  Bruno Haible  <bruno@clisp.org>
12669
12670         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12671         email address.
12672         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12673
12674 2008-03-06  Bruno Haible  <bruno@clisp.org>
12675
12676         * users.txt: Add libgnupdf.
12677
12678 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12679
12680         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12681         (Header File Substitutes, Function Substitutes,
12682         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12683         (Build robot for gnulib): Fix typo.
12684
12685 2008-03-06  Bruno Haible  <bruno@clisp.org>
12686
12687         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12688         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12689
12690 2008-03-06  Bruno Haible  <bruno@clisp.org>
12691
12692         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12693         * doc/gnulib.texi: Include it.
12694
12695 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12696
12697         * modules/func (License): Change license to unlimited; there was
12698         no LGPL parts in the module anyway.
12699
12700 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12701
12702         * modules/__func__: Renamed to modules/func.
12703         * modules/__func__-tests: Renamed to modules/func-tests.
12704         * tests/test-__func__.c: Renamed to tests/test-func.c.
12705         * m4/__func__.m4: Renamed to m4/func.m4.
12706         * doc/gnulib.texi (__func__): Section renamed to func.
12707         Suggested by Eric Blake <ebb9@byu.net>.
12708
12709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12710
12711         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12712         about __func__.  Make example self-contained.  Suggested by Eric
12713         Blake <ebb9@byu.net>.
12714
12715         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12716         Suggested by Eric Blake <ebb9@byu.net>.
12717
12718 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12719
12720         * modules/__func__: New file.
12721         * modules/__func__-tests: New file.
12722         * tests/test-__func__.c: New file.
12723         * m4/__func__.m4: New file.
12724         * doc/gnulib.texi (__func__): Document __func__ module.
12725
12726 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12727
12728         * modules/byteswap (License): Re-license as LGPLv2+.
12729
12730 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12731
12732         * doc/Makefile: Add pdf target.
12733
12734 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12735
12736         * modules/inline (License): Use 'unlimited', since there are only
12737         *.m4 files in this module.
12738
12739 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12740             Bruno Haible  <bruno@clisp.org>
12741
12742         Add support for HP C 7.1 on OpenVMS 8.3.
12743         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12744
12745 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12746
12747         Update VMS specifics.
12748         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12749
12750 2008-03-02  Jim Meyering  <meyering@redhat.com>
12751
12752         Remove the last dependency on the "free" module.
12753         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12754         Reported by Bob Proulx.
12755
12756         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12757
12758         Remove useless "if" tests before free.  Deprecate "free" module.
12759         * doc/posix-functions/free.texi: Mention that this
12760         module is no longer useful.
12761         * modules/free (Notice): Say this module is obsolete.
12762         * modules/readutmp (Depends-on): Remove free.
12763         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12764         * lib/putenv.c (putenv): Likewise.
12765         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12766         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12767         * tests/test-c-strcasestr.c (main): Likewise.
12768         * tests/test-c-strstr.c (main): Likewise.
12769         * tests/test-mbscasestr1.c (main): Likewise.
12770         * tests/test-mbscasestr2.c (main): Likewise.
12771         * tests/test-mbsstr1.c (main): Likewise.
12772         * tests/test-mbsstr2.c (main): Likewise.
12773         * tests/test-memmem.c (main): Likewise.
12774         * tests/test-strcasestr.c (main): Likewise.
12775         * tests/test-striconv.c (main): Likewise.
12776         * tests/test-striconveh.c (main): Likewise.
12777         * tests/test-striconveha.c (main): Likewise.
12778         * tests/test-strstr.c (main): Likewise.
12779
12780         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12781
12782         bootstrap: sync from coreutils again
12783         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12784
12785 2008-03-01  Jim Meyering  <meyering@redhat.com>
12786
12787         bootstrap: sync from coreutils
12788         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12789         also when the target doesn't exist.
12790
12791 2008-03-01  Eric Blake  <ebb9@byu.net>
12792
12793         Fix bugs in last patch.
12794         * lib/memchr2.c (memchr2): Fix typo.
12795         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12796         extension.
12797         Reported by Bruce Korb.
12798
12799         New module 'memchr2'.
12800         * modules/memchr2: New file.
12801         * modules/memchr2-tests: Likewise.
12802         * lib/memchr2.h: Likewise.
12803         * lib/memchr2.c: Likewise, based on memchr.c.
12804         * tests/test-memchr2.c: New test.
12805         * MODULES.html.sh (String handling): Add memchr2.
12806
12807 2008-02-29  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/freadseek-tests: New file.
12810         * tests/test-freadseek.sh: New file.
12811         * tests/test-freadseek.c: New file.
12812
12813         New module 'freadseek'.
12814         * modules/freadseek: New file.
12815         * lib/freadseek.h: New file.
12816         * lib/freadseek.c: New file.
12817         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12818
12819 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12820
12821         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12822         wydawca.
12823
12824         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12825         program_invocation_name and program_invocation_short_name are
12826         present.
12827
12828 2008-02-28  Bruno Haible  <bruno@clisp.org>
12829
12830         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12831         * tests/test-freadptr.sh: Also test non-seekable stdin.
12832
12833 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12834
12835         * build-aux/bootstrap (source_base, m4_base)
12836         (doc_base, tests_base): New variables.
12837         (gnulib_tool_options): Do not hardcode base directories, use
12838         the above variables instead.
12839
12840 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12841
12842         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12843
12844 2008-02-28  Bruno Haible  <bruno@clisp.org>
12845
12846         * modules/freadptr-tests: New file.
12847         * tests/test-freadptr.sh: New file.
12848         * tests/test-freadptr.c: New file.
12849
12850         New module 'freadptr'.
12851         * modules/freadptr: New file.
12852         * lib/freadptr.h: New file.
12853         * lib/freadptr.c: New file.
12854         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12855
12856 2008-02-26  Karl Berry  <karl@freefriends.org>
12857
12858         Sync from Libtool:
12859         * libltdl/argz.c (argz_add, argz_count): New functions.
12860         * libltdl/argz.in.h: Declare them.
12861         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12862
12863 2008-02-22  Bruno Haible  <bruno@clisp.org>
12864
12865         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12866         is a pointer type.  Needed for HP-UX 10.
12867         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12868         * doc/posix-functions/gmtime_r.texi: Likewise.
12869         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12870
12871 2008-02-24  Bruno Haible  <bruno@clisp.org>
12872
12873         * modules/environ-tests: New file.
12874         * tests/test-environ.c: New file.
12875
12876         New module 'environ'.
12877         * modules/environ: New file.
12878         * lib/unistd.in.h (environ): New declaration.
12879         * m4/environ.m4: New file.
12880         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12881         after use.
12882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12883         HAVE_DECL_ENVIRON.
12884         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12885         HAVE_DECL_ENVIRON.
12886         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12887         wrong claim that 'environ' is missing on some systems.
12888         * modules/execute (Depends-on): Add environ.
12889         * lib/execute.c (environ): Remove fallback declaration.
12890         * modules/pipe (Depends-on): Add environ.
12891         * lib/pipe.c (environ): Remove fallback declaration.
12892         * modules/setenv (Depends-on): Add environ.
12893         * lib/setenv.c (environ): Remove fallback declaration.
12894         * modules/unsetenv (Depends-on): Add environ.
12895         * lib/unsetenv.c (environ): Remove fallback declaration.
12896         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12897         m4/environ.m4.
12898         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12899         (gl_PREREQ_UNSETENV): Likewise.
12900
12901 2008-02-24  Bruno Haible  <bruno@clisp.org>
12902
12903         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12904
12905 2008-02-20  Bob Proulx  <bob@proulx.com>
12906
12907         Enable use of older two part flavor 'git describe'.
12908         * build-aux/git-version-gen: If using the older two part flavor of
12909         git version then recreate the third part now present in the
12910         newer three part flavor of git describe.
12911
12912 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12913
12914         * lib/fts.c (fts_build): Typo correction to comment.
12915
12916 2008-02-17  Bruno Haible  <bruno@clisp.org>
12917
12918         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12919         generating no-op conflicts.
12920
12921 2008-02-17  Bruno Haible  <bruno@clisp.org>
12922
12923         Speed up by 10%.
12924         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12925         result_entries, rather than an index-based loop.
12926
12927 2008-02-17  Bruno Haible  <bruno@clisp.org>
12928
12929         Speed up by 25%.
12930         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12931         'hashcode_cached'.
12932         (entry_create): New function.
12933         (entry_hashcode): Use the cached hashcode if possible.
12934         (read_changelog_file, try_split_merged_entry): Use entry_create.
12935
12936 2008-02-17  Bruno Haible  <bruno@clisp.org>
12937
12938         Speed up from O(n^2) to O(n) for long ChangeLog files.
12939         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12940         (read_changelog_file): Change implementation of entries_reversed list
12941         to rbtreehash.
12942         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12943
12944 2008-02-17  Bruno Haible  <bruno@clisp.org>
12945
12946         New option --split-merged-entry.
12947         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12948         (find_paragraph_end, try_split_merged_entry): New functions.
12949         (long_options): Add option --split-merged-entry.
12950         (usage): Document option --split-merged-entry.
12951         (main): Implement option --split-merged-entry.
12952         Reported by Eric Blake.
12953
12954 2008-02-17  Bruno Haible  <bruno@clisp.org>
12955
12956         * lib/git-merge-changelog.c: Include c-strstr.h.
12957         (main): Support the "git pull --rebase" situation.
12958         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12959         Reported by Eric Blake.
12960
12961 2008-02-16  Eric Blake  <ebb9@byu.net>
12962
12963         Avoid doubling \ in common case of "c-maybe" quoting style.
12964         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12965         eliding outer quotes.
12966         * lib/quotearg.h: Document this.
12967         * tests/test-quotearg.c (result_strings, inputs, results_g)
12968         (flag_results, locale_results): Test it by adding a new string to
12969         each test group.
12970         (compare_strings): Test new string.
12971
12972 2008-02-13  Eric Blake  <ebb9@byu.net>
12973
12974         Avoid trigraph quoting in default output.
12975         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12976         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12977         unless explicitly requested.
12978         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12979
12980 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12981
12982         Don't rely on signed integer overflowing to negative value.
12983         * lib/getugroups.c (getugroups): Include <limits.h>.
12984         Instead, compare against INT_MAX, and increment only if the test passes.
12985
12986 2008-02-13  Jim Meyering  <meyering@redhat.com>
12987         and Eric Blake  <ebb9@byu.net>
12988
12989         Avoid shadowing warning and compile errors on Linux.
12990         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12991         forwarding macros on Linux.
12992         (dcgettext): Define a stub, for Linux.
12993         (results_g, main): Avoid warnings.
12994
12995 2008-02-12  Eric Blake  <ebb9@byu.net>
12996
12997         Silence warning in last patch.
12998         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12999
13000         Quotearg part 4: add tests, fix c-maybe colon quoting.
13001         * lib/quotearg.h: Improve documentation.
13002         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
13003         escapes when adding outer quotes.  When quoting trigraphs, use
13004         valid C notation.  When quoting NUL, omit extra characters if next
13005         character is not digit.  Alter prototype.
13006         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
13007         callers.
13008         * modules/quotearg-tests: New module.
13009         * tests/test-quotearg.c: New test.
13010
13011 2008-02-07  Eric Blake  <ebb9@byu.net>
13012
13013         Quotearg part 3: add flag to control outer quote elision.
13014         * lib/quotearg.h (c_maybe_quoting_style): New style.
13015         (enum quoting_flags): Better documentation of flags.
13016         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
13017         c-maybe style.
13018         (quotearg_buffer_restyled): Handle new flag to elide outer
13019         quotes.
13020
13021         Quotearg part 2: add flag that can control NUL elision.
13022         * lib/quotearg.h (set_quoting_flags): New prototype.
13023         * lib/quotearg.c (struct quoting_options): Add flag field.
13024         (set_quoting_flags): New function.
13025         (quotearg_buffer_restyled): Add flags parameter.
13026         (quotearg_alloc_mem): Set the flag if length cannot be returned.
13027         (quotearg_n_options): Set the flag, since length cannot be
13028         returned.
13029         (quoting_options_from_style): Default flags correctly.
13030
13031         Quotearg part 1: more wrappers, restore quotearg_char state.
13032         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
13033         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
13034         (quotearg_colon_mem): New wrappers.
13035         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
13036         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
13037         functions.
13038         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
13039         (quotearg_colon_mem): New functions.
13040
13041 2008-02-11  Bruno Haible  <bruno@clisp.org>
13042
13043         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
13044         library in the current directory: it does not work with parallel make.
13045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13046
13047 2008-02-11  Bruno Haible  <bruno@clisp.org>
13048
13049         * .gitattributes: New file.
13050
13051 2008-02-11  Jim Meyering  <meyering@redhat.com>
13052
13053         useless-if-before-free: Fix reversed exit values.
13054         * build-aux/useless-if-before-free: Use correct values
13055         for EXIT_MATCH and EXIT_NO_MATCH.
13056
13057         * build-aux/useless-if-before-free: Close stdout carefully.
13058
13059 2008-02-10  Bruno Haible  <bruno@clisp.org>
13060
13061         New module 'git-merge-changelog'.
13062         * modules/git-merge-changelog: New file.
13063         * lib/git-merge-changelog.c: New file.
13064
13065 2008-02-10  Jim Meyering  <meyering@redhat.com>
13066
13067         useless-if-before-free: New option: --list (-l).
13068
13069         useless-if-before-free: Don't exit immediately upon open failure.
13070         * build-aux/useless-if-before-free: Exit 2 for errors.
13071         Upon failure to open a file, don't exit immediately.
13072         Rather, just warn and continue with any remaining files.
13073
13074 2008-02-10  Bruno Haible  <bruno@clisp.org>
13075
13076         New abstract list operation 'node_set_value'.
13077         * lib/gl_list.h (gl_list_node_set_value): New function.
13078         (struct gl_list_implementation): New field node_set_value.
13079         * lib/gl_list.c (gl_list_node_set_value): New function.
13080         * lib/gl_array_list.c (gl_array_node_set_value): New function.
13081         (gl_array_list_implementation): Update.
13082         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
13083         (gl_carray_list_implementation): Update.
13084         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
13085         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
13086         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
13087         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
13088         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
13089         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
13090         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
13091         Update.
13092         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
13093         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
13094         (gl_sublist_list_implementation): Update.
13095
13096 2008-02-10  Bruno Haible  <bruno@clisp.org>
13097
13098         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
13099         Needed when ELEMENT is #defined to 'some_type *'.
13100
13101 2008-02-10  Jim Meyering  <meyering@redhat.com>
13102
13103         New script and module: useless-if-before-free
13104         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
13105         * build-aux/useless-if-before-free: New file.
13106         * modules/useless-if-before-free: New file.
13107
13108         * build-aux/gitlog-to-changelog: Use committer date, not author date.
13109
13110         xstrtol_error: Fix typo.
13111         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
13112         s/exit_failure/exit_status/.
13113
13114 2008-02-09  Jim Meyering  <meyering@redhat.com>
13115
13116         New script and module: gitlog-to-changelog
13117         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
13118         * modules/gitlog-to-changelog: New file.
13119         * build-aux/gitlog-to-changelog: New file.
13120
13121 2008-02-08  Jim Meyering  <meyering@redhat.com>
13122
13123         Avoid two "parameter unused" warnings.
13124         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
13125         Mark "st" as used.
13126
13127         Use "git COMMAND", not "git-COMMAND".
13128         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
13129         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
13130         * build-aux/git-version-gen: Use "git status", not "git-status".
13131
13132 2008-02-07  Bruno Haible  <bruno@clisp.org>
13133
13134         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
13135         Avoids a crash on Windows Vista.
13136         Reported by Adam Strzelecki <ono@java.pl> via
13137         Simon Josefsson <simon@josefsson.org>.
13138
13139 2008-02-06  Bruno Haible  <bruno@clisp.org>
13140
13141         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
13142         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
13143         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
13144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
13145         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13147         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
13148         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
13149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13150         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13155         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13156         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
13157         left-adjust flag.
13158         * tests/test-snprintf-posix.h (test_function): Likewise.
13159         * tests/test-sprintf-posix.h (test_function): Likewise.
13160         * tests/test-vasprintf-posix.c (test_function): Likewise.
13161         * doc/posix-functions/fprintf.texi: Update.
13162         * doc/posix-functions/printf.texi: Update.
13163         * doc/posix-functions/snprintf.texi: Update.
13164         * doc/posix-functions/sprintf.texi: Update.
13165         * doc/posix-functions/vfprintf.texi: Update.
13166         * doc/posix-functions/vprintf.texi: Update.
13167         * doc/posix-functions/vsnprintf.texi: Update.
13168         * doc/posix-functions/vsprintf.texi: Update.
13169         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13170
13171 2008-02-06  Bruno Haible  <bruno@clisp.org>
13172
13173         Fix bug introduced on 2008-01-26.
13174         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
13175
13176 2008-02-06  Bruno Haible  <bruno@clisp.org>
13177
13178         Fix bug introduced on 2007-06-10.
13179         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
13180         !NEED_PRINTF_FLAG_ZERO.
13181
13182 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
13183
13184         getloadavg: use libperfstat on AIX5
13185         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
13186
13187 2008-02-03  Bruno Haible  <bruno@clisp.org>
13188
13189         * lib/diffseq.h: Add comments about required #includes.
13190         Reported by Michael Biggs <gnulib@doubleplum.net>.
13191
13192 2008-02-01  Bruno Haible  <bruno@clisp.org>
13193
13194         * users.txt: Add gnuit.
13195
13196 2008-01-31  Bruno Haible  <bruno@clisp.org>
13197
13198         * lib/md4.c (set_uint32): Mark as inline.
13199         * lib/md5.c (set_uint32): Likewise.
13200         * lib/sha1.c (set_uint32): Likewise.
13201         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
13202         * m4/md5.m4 (gl_MD5): Likewise.
13203         * m4/sha1.m4 (gl_SHA1): Likewise.
13204
13205 2008-01-31  Jim Meyering  <meyering@redhat.com>
13206
13207         Use "sizeof VAR", rather than a literal "4".
13208         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
13209         * lib/md4.c (md4_read_ctx): Likewise.
13210         * lib/sha1.c (sha1_read_ctx): Likewise.
13211
13212 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13213
13214         * tests/test-sha1.c: New file, based on test-md5.c.
13215
13216         * modules/crypto/sha1-tests: New file.
13217
13218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13219
13220         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
13221
13222 2008-01-31  Jim Meyering  <meyering@redhat.com>
13223
13224         Prefer "sizeof v" over the equivalent "4".
13225         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
13226         * lib/md5.c (set_uint32): Likewise.
13227         * lib/sha1.c (set_uint32): Likewise.
13228
13229 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13230
13231         * lib/sha1.c (set_uint32): Mark function as static.
13232
13233 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13234
13235         md2: clarify comments to say that alignment is not required.
13236         * lib/md2.h: Remove warning about alignment in comment.
13237         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
13238         never been required.
13239
13240 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13241
13242         md4: adapt alignment constraint fix from sha1.
13243         * lib/md4.c (set_uint32): New function, from sha1.c
13244         (md4_read_ctx): Use it.
13245         (md4_finish_ctx): Doc fix.
13246         * lib/md4.h: Doc fix.
13247
13248 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13249
13250         md5: adapt alignment constraint fix from sha1.
13251         * lib/md5.c (set_uint32): New function, from sha1.c
13252         (md5_read_ctx): Use it.
13253         (md5_finish_ctx): Doc fix.
13254         * lib/md5.h: Doc fix.
13255
13256 2008-01-30  Peter Palfrader  <weasel@debian.org>
13257
13258         sha1: remove the result buffer alignment constraint
13259         * lib/sha1.c (set_uint32): New function.
13260         (sha1_read_ctx): Rewrite to remove the result buffer alignment
13261         constraint.
13262         (sha1_finish_ctx): Remove comment warning about alignment constraint.
13263         * lib/sha1.h: Likewise.
13264
13265 2008-01-30  Andreas Schwab  <schwab@suse.de>
13266             Bruno Haible  <bruno@clisp.org>
13267
13268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
13269         correct definition of LDBL_MIN_EXP.
13270
13271 2008-01-30  Karl Berry  <karl@gnu.org>
13272
13273         * config/srclist-update: try to preserve x bit on updates.
13274         * config/srclistvars.sh: update for karl.
13275
13276 2008-01-29  Jim Meyering  <meyering@redhat.com>
13277
13278         vasnprintf.c: Avoid warning about unused label
13279         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
13280         "overflow" label definition and associated code with the
13281         same cpp condition that guards the sole use of that label.
13282
13283 2008-01-26  Bruno Haible  <bruno@clisp.org>
13284
13285         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
13286         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
13287         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
13288         * lib/isnanl-nolibm.h (isnanl): Likewise.
13289         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13290
13291 2008-01-26  Bruno Haible  <bruno@clisp.org>
13292
13293         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
13294         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
13295
13296 2008-01-26  Bruno Haible  <bruno@clisp.org>
13297
13298         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
13299         GCC >= 4.0 built-in.
13300         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
13301
13302 2008-01-26  Bruno Haible  <bruno@clisp.org>
13303
13304         Rename isnan, applicable to 'double' only, to isnand.
13305         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
13306         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
13307         (configure.ac): Update.
13308         (Include): Replace "isnan.h" with "isnand.h".
13309         * m4/isnand.m4: Renamed from m4/isnan.m4.
13310         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
13311         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
13312         instead of isnan.c.
13313         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
13314         instead of HAVE_ISNAN_IN_LIBC.
13315         (isnand): Renamed from isnan.
13316         * lib/isnand.c: New file.
13317         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
13318         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
13319         (Makefile.am): Update.
13320         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
13321         Include isnand.h instead of isnan.h.
13322         (main): Test isnand instead of isnan.
13323         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
13324         isnan-nolibm.
13325         * modules/frexp (Depends-on): Likewise.
13326         * modules/frexp-tests (Depends-on): Likewise.
13327         * modules/frexp-nolibm (Depends-on): Likewise.
13328         * modules/frexp-nolibm-tests (Depends-on): Likewise.
13329         * modules/isfinite (Depends-on): Likewise.
13330         * modules/round-tests (Depends-on): Likewise.
13331         * modules/signbit (Depends-on): Likewise.
13332         * modules/signbit-tests (Depends-on): Likewise.
13333         * modules/snprintf-posix (Depends-on): Likewise.
13334         * modules/sprintf-posix (Depends-on): Likewise.
13335         * modules/trunc-tests (Depends-on): Likewise.
13336         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13338         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13339         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13340         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13341         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13342         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13343         * modules/vasnprintf-posix (Depends-on): Likewise.
13344         * modules/vasprintf-posix (Depends-on): Likewise.
13345         * modules/vfprintf-posix (Depends-on): Likewise.
13346         * modules/vsnprintf-posix (Depends-on): Likewise.
13347         * modules/vsprintf-posix (Depends-on): Likewise.
13348         * lib/frexp.c: Include isnand.h instead of isnan.h.
13349         (ISNAN): Set to isnand instead of isnan.
13350         * lib/isfinite.c: Include isnand.h instead of isnan.h.
13351         (gl_isfinited): Use isnand instead of isnan.
13352         * lib/signbitd.c: Include isnand.h instead of isnan.h.
13353         (gl_signbitd): Use isnand instead of isnan.
13354         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
13355         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
13356         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
13357         (main): Use isnand instead of isnan.
13358         * tests/test-round1.c: Include isnand.h.
13359         (main): Use isnand instead of isnan.
13360         * tests/test-round2.c: Include isnand.h instead of isnan.h.
13361         (ISNAN): Set to isnand instead of isnan.
13362         * tests/test-trunc1.c: Include isnand.h.
13363         (main): Use isnand instead of isnan.
13364         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
13365         (equal): Use isnand instead of isnan.
13366         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
13367         isnand-nolibm.
13368         * NEWS: Mention the change.
13369
13370 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13371             Bruno Haible  <bruno@clisp.org>
13372
13373         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
13374         the GCC builtins for signbits are present and set
13375         REPLACE_SIGNBIT_USING_GCC if so.
13376         * lib/math.in.h (signbit): Define using GCC builtins if
13377         REPLACE_SIGNBIT_USING_GCC is set.
13378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
13379         REPLACE_SIGNBIT_USING_GCC.
13380         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
13381
13382 2008-01-25  Jim Meyering  <meyering@redhat.com>
13383
13384         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
13385         * lib/poll.c: Include <config.h>, not "config.h".
13386         * tests/test-getaddrinfo.c: Likewise.
13387
13388 2008-01-25  Simon Josefsson  <simon@josefsson.org>
13389
13390         * modules/sockets-tests: New file.
13391
13392 2008-01-24  Simon Josefsson  <simon@josefsson.org>
13393
13394         * modules/sockets: New module, can be used to call WSA_Startup and
13395         WSA_Cleanup when needed.
13396
13397         * lib/sockets.h, lib/sockets.c: New files.
13398
13399         * m4/sockets.m4: New file.
13400
13401         * tests/test-sockets.c: New file.
13402
13403 2008-01-19  Bruno Haible  <bruno@clisp.org>
13404
13405         * doc/posix-headers: Renamed from doc/headers.
13406         * doc/posix-functions: Renamed from doc/functions.
13407         * doc/gnulib.texi: Update.
13408
13409 2008-01-19  Bruno Haible  <bruno@clisp.org>
13410
13411         * doc/glibc-functions/strcasestr.texi: Include contents of
13412         doc/functions/strcasestr.texi, fixing the list of platforms.
13413         * doc/functions/strcasestr.texi: Remove file.
13414
13415 2008-01-19  Bruno Haible  <bruno@clisp.org>
13416
13417         * doc/glibc-functions/memmem.texi: Include contents of
13418         doc/functions/memmem.texi.
13419         * doc/functions/memmem.texi: Remove file.
13420
13421 2008-01-18  Bruno Haible  <bruno@clisp.org>
13422
13423         * doc/glibc-functions/*.texi: New files.
13424         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
13425         to use the new files.
13426
13427 2008-01-17  Bruno Haible  <bruno@clisp.org>
13428
13429         * tests/test-gethostname.c (main): Fix printf statement.
13430
13431 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13432
13433         * modules/gethostname-tests: New file.
13434
13435         * tests/test-gethostname.c: New file.
13436
13437 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13438
13439         * lib/gethostname.c: Include string.h unconditionally, strncpy is
13440         used by the UNAME case.  Reported by Bruno Haible
13441         <bruno@clisp.org>.
13442
13443 2008-01-17  Eric Blake  <ebb9@byu.net>
13444
13445         Convert c-strcasestr to be more efficient.
13446         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
13447         (Depends-on): Add c-strcase, remove malloca, strnlen.
13448         * tests/test-c-strcasestr.c (main): Enhance test.
13449         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
13450
13451 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13452
13453         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
13454         Use it in creating po/Makevars.
13455
13456 2008-01-15  Simon Josefsson  <simon@josefsson.org>
13457
13458         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
13459         Applications that requires it should initialize libgcrypt
13460         manually.
13461
13462 2008-01-16  Simon Josefsson  <simon@josefsson.org>
13463
13464         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
13465
13466 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13467
13468         Fix problem with getdate on mingw32 reported by Simon Josefsson
13469         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
13470         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
13471         tzname", when deciding whether to declare tzname.
13472         * lib/strftime.c (tzname): Likewise.
13473
13474 2008-01-15  Bruno Haible  <bruno@clisp.org>
13475
13476         Work around a MacOS X 10.5 bug in frexpl().
13477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13478         * doc/functions/frexpl.texi: Document the bug.
13479         Reported by Elias Pipping <pipping@gentoo.org>.
13480
13481 2008-01-14  Eric Blake  <ebb9@byu.net>
13482
13483         Touch up previous patch.
13484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
13485         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
13486
13487         Convert strcasestr module to use Two-Way algorithm.
13488         * modules/strcasestr-simple: New module, based on the old
13489         strcasestr, but with Two-Way rather than KMP.
13490         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
13491         * lib/string.in.h (rpl_strcasestr): Declare.
13492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
13493         performance.
13494         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
13495         * modules/string (Makefile.am): Support strcasestr.
13496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13497         * modules/strcasestr-tests (Depends-on): Check for alarm.
13498         * tests/test-strcasestr.c: Augment test.
13499         * lib/str-two-way.h: Clean up stray macro.
13500         * NEWS: Document new module.
13501         * MODULES.html.sh (string handling): Likewise.
13502         * doc/functions/strcasestr.texi: New file.
13503         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
13504         here, since it is not a POSIX function.
13505
13506 2008-01-14  Colin Watson  <cjwatson@debian.org>
13507             Bruno Haible  <bruno@clisp.org>
13508
13509         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
13510         works fine; if not, set REPLACE_STRSIGNAL.
13511         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
13512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13513         REPLACE_STRSIGNAL.
13514         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
13515         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
13516         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
13517
13518 2008-01-14  Bruno Haible  <bruno@clisp.org>
13519
13520         * modules/strsignal (Include): Change to <string.h>.
13521
13522 2008-01-14  Colin Watson  <cjwatson@debian.org>
13523
13524         * modules/argp (Notice): Add a notice recommending to change
13525         XGETTEXT_OPTIONS.
13526         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
13527
13528 2008-01-13  Colin Watson  <cjwatson@debian.org>
13529
13530         * modules/strsignal-tests: New file.
13531         * tests/test-strsignal.c: New file.
13532
13533         * lib/strsignal.c: New file, from glibc with modifications.
13534         * lib/siglist.h: New file, from glibc with modifications.
13535         * lib/string.in.h (strsignal): New declaration.
13536         * m4/strsignal.m4: New file.
13537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13538         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
13539         * modules/strsignal: New file.
13540         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
13541         HAVE_DECL_STRSIGNAL.
13542
13543 2008-01-13  Bruno Haible  <bruno@clisp.org>
13544
13545         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
13546         locale encoding is not ASCII. Needed for OpenBSD 4.0.
13547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13549
13550 2008-01-13  Bruno Haible  <bruno@clisp.org>
13551
13552         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13553         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13554         * lib/argp.h (__attribute__): Likewise.
13555         * lib/c-stack.c (__attribute__): Likewise.
13556         * lib/error.h (__attribute__): Likewise.
13557         * lib/fts.c (__attribute__): Likewise.
13558         * lib/openat.h (__attribute__): Likewise.
13559         * lib/stdio.in.h (__attribute__): Likewise.
13560         * lib/string.in.h (__attribute__): Likewise.
13561         * lib/utimens.c (__attribute__): Likewise.
13562         * lib/vasnprintf.h (__attribute__): Likewise.
13563         * lib/xalloc.h (__attribute__): Likewise.
13564         * lib/xprintf.h (__attribute__): Likewise.
13565         * lib/xstrtol.h (__attribute__): Likewise.
13566         * lib/xvasprintf.h (__attribute__): Likewise.
13567
13568 2008-01-12  Bruno Haible  <bruno@clisp.org>
13569
13570         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13571         * doc/glibc-headers/a.out.texi: New file.
13572         * doc/glibc-headers/aliases.texi: New file.
13573         * doc/glibc-headers/alloca.texi: New file.
13574         * doc/glibc-headers/ar.texi: New file.
13575         * doc/glibc-headers/argp.texi: New file.
13576         * doc/glibc-headers/argz.texi: New file.
13577         * doc/glibc-headers/byteswap.texi: New file.
13578         * doc/glibc-headers/crypt.texi: New file.
13579         * doc/glibc-headers/endian.texi: New file.
13580         * doc/glibc-headers/envz.texi: New file.
13581         * doc/glibc-headers/err.texi: New file.
13582         * doc/glibc-headers/error.texi: New file.
13583         * doc/glibc-headers/execinfo.texi: New file.
13584         * doc/glibc-headers/fpu_control.texi: New file.
13585         * doc/glibc-headers/fstab.texi: New file.
13586         * doc/glibc-headers/fts.texi: New file.
13587         * doc/glibc-headers/getopt.texi: New file.
13588         * doc/glibc-headers/ieee754.texi: New file.
13589         * doc/glibc-headers/ifaddrs.texi: New file.
13590         * doc/glibc-headers/libintl.texi: New file.
13591         * doc/glibc-headers/mcheck.texi: New file.
13592         * doc/glibc-headers/mntent.texi: New file.
13593         * doc/glibc-headers/obstack.texi: New file.
13594         * doc/glibc-headers/paths.texi: New file.
13595         * doc/glibc-headers/printf.texi: New file.
13596         * doc/glibc-headers/pty.texi: New file.
13597         * doc/glibc-headers/resolv.texi: New file.
13598         * doc/glibc-headers/shadow.texi: New file.
13599         * doc/glibc-headers/sysexits.texi: New file.
13600         * doc/glibc-headers/ttyent.texi: New file.
13601
13602 2008-01-12  Jim Meyering  <meyering@redhat.com>
13603
13604         announce-gen: emit Gnulib's git-based version string.
13605         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13606         New option --gnulib-version=V, where V is expected to be
13607         the output of running git describe in the gnulib directory.
13608         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13609         not useful, and plan to stop publishing an xdelta file with each
13610         coreutils release.
13611
13612         * build-aux/announce-gen: Also check for lzma-compressed files.
13613
13614 2008-01-11  Bruno Haible  <bruno@clisp.org>
13615
13616         * tests/test-memmem.c (main): Increase maximum allowed time.
13617         * tests/test-strstr.c (main): Likewise.
13618
13619 2008-01-11  Bruno Haible  <bruno@clisp.org>
13620
13621         * doc/functions/memmem.texi: Add more precisions about platforms.
13622         * doc/functions/strstr.texi: Likewise.
13623
13624 2008-01-10  Eric Blake  <ebb9@byu.net>
13625
13626         * m4/strstr.m4: Delete cruft from copy-n-paste.
13627         Reported by Bruno Haible.
13628
13629 2008-01-10  Bruno Haible  <bruno@clisp.org>
13630
13631         Make c-strstr rely on strstr.
13632         * lib/c-strstr.c: Don't include str-kmp.h.
13633         (c_strstr): Define in terms of strstr.
13634         * modules/c-strstr (Files): Remove lib/str-kmp.h.
13635         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13636
13637 2008-01-10  Bruno Haible  <bruno@clisp.org>
13638
13639         * doc/gnulib.texi (String Functions in C Locale): New section.
13640         * doc/c-ctype.texi: New file.
13641         * doc/c-strcase.texi: New file.
13642         * doc/c-strcaseeq.texi: New file.
13643         * doc/c-strcasestr.texi: New file.
13644         * doc/c-strstr.texi: New file.
13645         * doc/c-strtod.texi: New file.
13646         * doc/c-strtold.texi: New file.
13647
13648 2008-01-10  Eric Blake  <ebb9@byu.net>
13649
13650         * lib/relocatable.h: Fix a comment.
13651
13652 2008-01-10  Eric Blake  <ebb9@byu.net>
13653
13654         Share two-way algorithm.
13655         * lib/str-two-way.h: New file, merged from...
13656         * lib/memmem.c: ...here...
13657         * lib/strstr.c: ...and here.
13658         * modules/memmem (Files): Use it.
13659         * modules/strstr (Files): Likewise.
13660
13661         Avoid quadratic strstr implementations.
13662         * lib/strstr.c: New file.
13663         * m4/strstr.m4: Likewise.
13664         * modules/strstr: Likewise.
13665         * modules/strstr-tests: Likewise.
13666         * tests/test-strstr.c: Likewise.
13667         * lib/string.in.h (rpl_strstr): Declare.
13668         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13670         * modules/string (Makefile.am): Likewise.
13671         * MODULES.html.sh (string handling): Mention new module.
13672         * doc/functions/strstr.texi (strstr): Document the bug.
13673
13674 2008-01-10  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/relocatable.h (relocate): State whether result is freshly
13677         allocated or not.
13678         * lib/relocatable.c (relocate): Return a freshly allocated string
13679         instead of a pointer to a privately held string.
13680         Reported by Sylvain Beucler <beuc@gnu.org>.
13681
13682 2008-01-10  Colin Watson  <cjwatson@debian.org>
13683
13684         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13685         s/S_ISNLK/S_ISLNK/.
13686
13687 2008-01-09  Bruno Haible  <bruno@clisp.org>
13688
13689         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13690         and other files.
13691         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13692         if it's only a guess.
13693         * modules/memmem: Simplify by depending on memmem-simple.
13694
13695 2008-01-09  Bruno Haible  <bruno@clisp.org>
13696
13697         Work around OpenBSD 4.0 tdelete() bug.
13698         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13699         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13700         macros and don't redefine the enum values.
13701         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13702         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13703         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13704
13705 2008-01-09  Bruno Haible  <bruno@clisp.org>
13706
13707         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13708         (main): Don't perform the tests if setlocale did not install a UTF-8
13709         locale. Needed on OpenBSD 4.0.
13710         * modules/wcwidth-tests (Depends-on): Add localcharset.
13711
13712 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13715         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13716         * NEWS: announce this.
13717         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13718
13719 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13720         and Eric Blake  <ebb9@byu.net>
13721
13722         Add memmem-simple module.
13723         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13724         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13725         * modules/memmem-simple: New file.
13726         * modules/memmem (Description): Tweak.
13727         * MODULES.html.sh (string handling): Mention new module.
13728         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13729         addressed by memmem-simple.
13730         * NEWS: Document the difference.
13731
13732 2008-01-09  Eric Blake  <ebb9@byu.net>
13733
13734         Give gcc some memmem optimization hints.
13735         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13736         (strcasestr): Declare as pure.
13737         * modules/memmem (Maintainer): Claim my implementation.
13738
13739 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13740
13741         Support AIX 6.1 and higher.
13742         * build-aux/config.libpath: Likewise.
13743         * build-aux/config.rpath: Likewise.
13744
13745 2008-01-08  Jim Meyering  <meyering@redhat.com>
13746             Bruno Haible  <bruno@clisp.org>
13747
13748         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13749         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13750         Reported by Peter Fales in
13751         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13752
13753 2008-01-08  Bruno Haible  <bruno@clisp.org>
13754
13755         * modules/unictype/category-of (Depends-on): Add
13756         unictype/category-none.
13757         * modules/unictype/category-and-tests (Depends-on): Add
13758         unictype/category-{L,N,Lu,Nd}.
13759         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13760         * modules/unictype/category-or-tests (Depends-on): Add
13761         unictype/category-{L,N}.
13762         * modules/unictype/category-name-tests (Depends-on): Add
13763         unictype/category-{Z,Nl}.
13764         Reported by Simon Josefsson.
13765
13766 2008-01-08  Bruno Haible  <bruno@clisp.org>
13767
13768         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13769         convention better.
13770         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13771         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13772         Reported by Peter Miller <millerp@canb.auug.org.au>.
13773
13774 2008-01-08  Eric Blake  <ebb9@byu.net>
13775
13776         Rewrite memmem to guarantee linear complexity without malloc.
13777         * lib/memmem.c (memmem): Use Two-Way rather than
13778         Knuth-Morris-Pratt, to allow O(1) space usage.
13779         (critical_factorization, two_way_short_needle)
13780         (two_way_long_needle): New functions.
13781         (knuth_morris_pratt): Delete.
13782         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13783         Add stdint.
13784         * tests/test-memmem.c (main): Add tests for periodic needle and
13785         sublinear performance.
13786         * doc/functions/memmem.texi (memmem): Document other deficiencies
13787         in cygwin and older glibc.
13788
13789 2008-01-08  Bruno Haible  <bruno@clisp.org>
13790
13791         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13792         augmentation.
13793
13794 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13795
13796         Add a configure time option: --disable-acl.
13797         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13798         AC_ARG_ENABLE(acl).
13799
13800 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13801
13802         * tests/test-localename.c: Don't include obsolete "setenv.h".
13803
13804         * modules/localename-tests (Depends-on): Need unsetenv.
13805
13806 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13807
13808         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13809
13810 2008-01-06  Colin Watson  <cjwatson@debian.org>
13811
13812         * users.txt: Add man-db.
13813
13814 2008-01-07  Bruno Haible  <bruno@clisp.org>
13815
13816         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13817         previous section name.
13818
13819 2008-01-07  Bruno Haible  <bruno@clisp.org>
13820
13821         * lib/progname.c (set_program_name): Don't strip off a leading
13822         "lt-" prefix outside a .libs directory.
13823         Suggested by Paul Eggert.
13824
13825 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13826             Bruno Haible  <bruno@clisp.org>
13827
13828         Improve memory cleanup in 'relocatable' module.
13829         * lib/relocatable.h (compute_curr_prefix): Change return type to
13830         'char *'.
13831         * lib/relocatable.c (compute_curr_prefix): Change return type to
13832         'char *'. Free curr_installdir after use.
13833         (relocate): Free curr_prefix_better after use.
13834         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13835
13836 2008-01-01  Bruno Haible  <bruno@clisp.org>
13837
13838         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13839         failure on older glibc systems.
13840         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13841
13842 2008-01-05  Eric Blake  <ebb9@byu.net>
13843
13844         Avoid quadratic system memmem.
13845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13846         Reported by Ralf Wildenhues.
13847
13848         Fix memmem test for mingw.
13849         * modules/memmem-tests (configure.ac): Check for alarm.
13850         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13851         it.
13852         * doc/functions/memmem.texi: New file.
13853         * doc/gnulib.texi (Function Substitutes): Add memmem.
13854         Reported by Bruno Haible.
13855
13856 2008-01-04  Bruno Haible  <bruno@clisp.org>
13857
13858         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13859         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13860         gl_HEADER_STRING_H_DEFAULTS.
13861
13862 2008-01-04  Eric Blake  <ebb9@byu.net>
13863
13864         Shorten duration of memmem test.
13865         * tests/test-memmem.c (main): Use alarm to declare failure if test
13866         is taking too long.
13867         Reported by Ralf Wildenhues.
13868
13869 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13870
13871         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13872         string, needed by strerror.
13873
13874 2008-01-03  Colin Watson  <cjwatson@debian.org>
13875             Bruno Haible  <bruno@clisp.org>
13876
13877         * doc/gnulib-tool.texi (Localization): New section.
13878
13879 2008-01-02  Bruno Haible  <bruno@clisp.org>
13880
13881         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13882         variables to 'unsigned char *' type.
13883         Reported by Paul Eggert.
13884
13885 2008-01-02  Jim Meyering  <jim@meyering.net>
13886
13887         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13888
13889 2007-12-31  Jim Meyering  <jim@meyering.net>
13890
13891         Avoid use of private FTS type name.
13892         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13893
13894 2007-12-30  Karl Berry  <karl@gnu.org>
13895
13896         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13897         work around defect in Texinfo and/or the standalone Info browser.
13898
13899 2007-12-30  Bruno Haible  <bruno@clisp.org>
13900
13901         Unify 5 copies of the KMP code.
13902         * lib/str-kmp.h: New file.
13903         * lib/c-strcasestr.c: Include str-kmp.h.
13904         (knuth_morris_pratt): Remove function.
13905         (c_strcasestr): Update.
13906         * lib/c-strstr.c: Include str-kmp.h.
13907         (knuth_morris_pratt): Remove function.
13908         (c_strcasestr): Update.
13909         * lib/mbscasestr.c: Include str-kmp.h.
13910         (knuth_morris_pratt_unibyte): Remove function.
13911         * lib/mbsstr.c: Include str-kmp.h.
13912         (knuth_morris_pratt_unibyte): Remove function.
13913         * lib/strcasestr.c: Include str-kmp.h.
13914         (knuth_morris_pratt): Remove function.
13915         (strcasestr): Update.
13916         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13917         * modules/c-strstr (Files): Likewise.
13918         * modules/mbscasestr (Files): Likewise.
13919         * modules/mbsstr (Files): Likewise.
13920         * modules/strcasestr (Files): Likewise.
13921         Suggested by Paul Eggert.
13922
13923 2007-12-30  Bruno Haible  <bruno@clisp.org>
13924
13925         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13926         defined.
13927
13928 2007-12-30  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/xmalloca.h: Include xalloc.h.
13931         (xnmalloca): New macro.
13932
13933 2007-12-30  Bruno Haible  <bruno@clisp.org>
13934
13935         * lib/malloca.h (nmalloca): New macro.
13936         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13937         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13938         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13939         knuth_morris_pratt_multibyte): Likewise.
13940         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13941         knuth_morris_pratt_multibyte): Likewise.
13942         * lib/memmem.c (knuth_morris_pratt): Likewise.
13943         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13944
13945 2007-12-25  Bruno Haible  <bruno@clisp.org>
13946
13947         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13948         * lib/glob.c: Don't include openat.h.
13949         (link_exists2_p): Add back the code that deals with the
13950         !GLOB_ALTDIRFUNC case.
13951         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13952         let it do the filename concatenation.
13953         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13954         * modules/glob (Depends-on): Remove openat.
13955
13956 2007-12-31  Bruno Haible  <bruno@clisp.org>
13957
13958         * modules/dirfd (License): Change to LGPLv2+.
13959         Approved by Jim Meyering.
13960
13961 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13962
13963         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13964         when multiplying M by sizeof (size_t).
13965
13966 2007-12-10  Martin Lambers  <marlam@marlam.de>
13967
13968         Override getpagesize on mingw.
13969         * lib/getpagesize.c: New file.
13970         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13971         * modules/getpagesize (Files): Add lib/getpagesize.c.
13972         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13974         REPLACE_GETPAGESIZE.
13975         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13976
13977 2007-12-25  Bruno Haible  <bruno@clisp.org>
13978
13979         * modules/localcharset (Notice): New field.
13980         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13981         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13982
13983 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13984             Bruno Haible  <bruno@clisp.org>
13985
13986         Avoid using the syntax symbol() in formatted documentation.
13987         * MODULES.html.sh (func_module): When replacing symbol() with a
13988         hyperlink, remove the parentheses. Show an error if some remain.
13989         Recognize and render the '...' syntax.
13990         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13991         Rework. Add paragraph about GCC's inlining.
13992         * doc/alloca.texi: Likewise.
13993         * doc/error.texi: Remove parentheses from symbol reference.
13994         * doc/gnulib-intro.texi: Likewise.
13995         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13996         * modules/fnmatch (Description): Reword to say "the ... function".
13997         * modules/full-read (Description): Likewise.
13998         * modules/full-write (Description): Likewise.
13999         * modules/safe-read (Description): Likewise.
14000         * modules/safe-write (Description): Likewise.
14001         * modules/strchrnul (Description): Likewise.
14002         * modules/trim (Description): Likewise.
14003         * modules/error (Description): Remove parentheses from symbol
14004         references.
14005         * modules/verror (Description): Likewise.
14006         Reported by Karl Berry.
14007
14008 2007-12-25  Bruno Haible  <bruno@clisp.org>
14009
14010         Fixup after 2007-10-16 commit.
14011         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
14012
14013 2007-12-24  Bruno Haible  <bruno@clisp.org>
14014
14015         Make --enable-relocatable work with DESTDIR.
14016         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
14017         to compute installdir from destprog.
14018         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
14019         also set the RELOC_DESTDIR variable.
14020         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14021
14022 2007-12-24  Bruno Haible  <bruno@clisp.org>
14023
14024         Fix link error due to xalloc_die().
14025         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
14026         of xreadlink.
14027         * lib/relocwrapper.c: Update comments.
14028         * build-aux/install-reloc: Remove xreadlink.c from file list.
14029         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
14030         xreadlink.c.
14031         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14032
14033 2007-12-24  Bruno Haible  <bruno@clisp.org>
14034
14035         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
14036         * lib/setenv.h: Remove file.
14037         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
14038         lib/setenv.h.
14039         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
14040         (Depends-on): Add stdlib.
14041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
14042         gl_FUNC_UNSETENV.
14043         (Include): Replace setenv.h with <stdlib.h>.
14044         * modules/unsetenv: New file.
14045         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
14046         * lib/unsetenv.c: Include <stdlib.h> first.
14047         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
14048         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
14049         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
14050         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
14051         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
14052         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
14054         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14055         * doc/functions/unsetenv.texi: Update.
14056         * modules/xsetenv (Depends-on): Add unsetenv.
14057         * modules/getdate (Depends-on): Likewise.
14058         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
14059         * lib/xsetenv.c: Don't include setenv.h.
14060         * lib/getdate.y: Likewise.
14061         * lib/relocwrapper.c: Likewise.
14062         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
14063         (Depends-on): Add stdlib.
14064         * NEWS: Mention the changes.
14065         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14066
14067 2007-12-23  Bruno Haible  <bruno@clisp.org>
14068
14069         * lib/memmem.c (memmem): Use lowercase variable names. Tab
14070         indentation.
14071
14072 2007-12-23  Bruno Haible  <bruno@clisp.org>
14073
14074         * lib/c-strcasestr.c: Add more comments.
14075         * lib/c-strstr.c: Likewise.
14076         * lib/mbscasestr.c: Likewise.
14077         * lib/mbsstr.c: Likewise.
14078         * lib/strcasestr.c: Likewise.
14079         * lib/memmem.c: Likewise.
14080
14081 2007-12-23  Bruno Haible  <bruno@clisp.org>
14082
14083         * tests/test-memmem.c: Include <string.h> first.
14084
14085 2007-12-22  Bruno Haible  <bruno@clisp.org>
14086
14087         * gnulib-tool (func_create_testdir): Change $auxdir while generating
14088         the contents of $testsbase.
14089         Reported by Ralf Wildenhues.
14090
14091 2007-12-22  Bruno Haible  <bruno@clisp.org>
14092
14093         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
14094         two variables local_ldadd_before, local_ldadd_last.
14095
14096 2007-12-20  Eric Blake  <ebb9@byu.net>
14097
14098         Work around circular library issue when cross-compiling.
14099         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
14100         that progname.o does not need to pull in rpl_memcmp.
14101
14102 2007-12-19  Eric Blake  <ebb9@byu.net>
14103
14104         Fix memmem to avoid O(n^2) worst-case complexity.
14105         * lib/memmem.c (knuth_morris_pratt): New function.
14106         (memmem): Use it if first few naive iterations fail.
14107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
14108         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
14109         * modules/memchr (License): Likewise.
14110         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
14111         malloca.
14112         * tests/test-memmem.c: Rewrite, borrowing ideas from
14113         test-mbsstr1.c; the old version wouldn't even compile!
14114         * modules/memmem-tests: New file.
14115         * lib/string.in.h (rpl_memmem): Add declaration.
14116         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
14117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
14118         REPLACE_MEMMEM.
14119
14120 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
14123         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
14124         before any system include files, and undef after them all.  This
14125         should fix a problem on VMS reported by John E. Malmberg in
14126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
14127
14128 2007-12-17  Eric Blake  <ebb9@byu.net>
14129
14130         Revert addition of verify, for BSD/OS.
14131         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
14132         can't handle large files, for the sake of obsolete platforms.
14133         * modules/fseeko (Depends-on): Remove verify.
14134         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
14135         * doc/functions/ftello.texi (ftello): Likewise.
14136         * doc/functions/fgetpos.texi (fgetpos): Likewise.
14137         Reported by Larry Jones.
14138
14139 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
14140
14141         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
14142         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
14143
14144 2007-12-17  Jim Meyering  <meyering@redhat.com>
14145
14146         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
14147         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
14148         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
14149         * modules/getcwd (Depends-on): Add openat.
14150         Reported by Petr Salinger.
14151
14152 2007-12-17  Bruno Haible  <bruno@clisp.org>
14153
14154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
14155         avoid a segmentation fault of the configure test on x86_64 systems.
14156
14157 2007-12-15  Jim Meyering  <meyering@redhat.com>
14158
14159         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
14160
14161 2007-12-13  Eric Blake  <ebb9@byu.net>
14162
14163         Another fseek test.
14164         * tests/test-fseek.c (main): Also test ungetc handling.
14165         * tests/test-fseeko.c (main): Likewise.
14166         * modules/fseeko (Depends-on): Add verify.
14167         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
14168         large.
14169         Reported by Larry Jones.
14170
14171         Fix fseeko on mingw.
14172         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
14173         seek.
14174
14175         Beef up fseek tests.
14176         * tests/test-fseek.c (main): Also test eof handling.
14177         * tests/test-fseeko.c (main): Likewise.
14178         Reported by Larry Jones.
14179
14180 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
14181
14182         Fix fseeko on BSD-based platforms.
14183         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
14184         successful seek.
14185
14186 2007-12-12  Eric Blake  <ebb9@byu.net>
14187
14188         Allow circular dependency of separate libtests.a
14189         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
14190         when use_libtests.
14191
14192 2007-12-11  Eric Blake  <ebb9@byu.net>
14193
14194         Fix bug with -0.0L in previous patch.
14195         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
14196         * tests/test-isnan.c (main): Also test on zeroes.
14197         * tests/test-isnanf.c (main): Likewise.
14198         * tests/test-isnanl.h (main): Likewise.
14199
14200         Detect pseudo-denormals on x86 even when cross-compiling.
14201         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
14202         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
14203         invalid bit patterns that happen to satisfy ==.
14204
14205         Avoid link failures with separate libtests.a.
14206         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
14207         last, to satisfy circular dependencies.
14208
14209 2007-12-11  Eric Blake  <ebb9@byu.net>
14210         and Bruno Haible  <bruno@clisp.org>
14211
14212         Fix OpenBSD 4.0 <float.h> handling of long double.
14213         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
14214         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
14215         * doc/headers/float.texi (float.h): Document OpenBSD bug.
14216
14217 2007-12-11  Jim Meyering  <meyering@redhat.com>
14218
14219         * users.txt: Add libvirt.
14220
14221         Support versions of autoconf prior to 2.59c.
14222         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
14223         if it is not already defined.
14224
14225 2007-12-09  Bruno Haible  <bruno@clisp.org>
14226
14227         Let 'gnulib-tool --import' collect sources needed for the tests in
14228         tests/ rather than in lib/.
14229         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
14230         argument. If true, add rules to generate libtests.a, and put libtests.a
14231         into $(LDADD). Consider source files in subdirectories and set
14232         uses_subdirs.
14233         (func_emit_initmacro_start, func_emit_initmacro_end,
14234         func_emit_initmacro_done): Pass all arguments explicitly.
14235         (func_import): Determine two module lists main_modules,
14236         testsrelated_modules. Determine use_libtests. Determine two variables
14237         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
14238         instead of just sed_transform_lib_file. Determine two variables
14239         main_files and testsrelated_files. Compute 'files' as the union of
14240         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
14241         func_add_or_update. In the generated gnulib-comp.m4, collect the
14242         object files for tests/ in different variables than those for lib/.
14243         Substitute LIBTESTS_LIBDEPS.
14244         (func_create_testdir): Combine the uses_subdirs results from
14245         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
14246
14247 2007-12-09  Bruno Haible  <bruno@clisp.org>
14248
14249         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
14250         the build-aux directory.
14251
14252 2007-12-09  Bruno Haible  <bruno@clisp.org>
14253
14254         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
14255         introduced on 2006-09-09.
14256
14257 2007-12-07  Jim Meyering  <meyering@redhat.com>
14258
14259         Let these macros work also with autoconf-2.59.
14260         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
14261         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
14262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14263
14264 2007-12-06  Jim Meyering  <meyering@redhat.com>
14265
14266         Avoid a configure-time syntax error in gl_FUNC_ACL.
14267         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
14268         function in each branch, before testing the cache variable.
14269
14270 2007-12-04  Eric Blake  <ebb9@byu.net>
14271
14272         Make scripts executable.
14273         * build-aux/config.guess: Add execute permissions.
14274         * build-aux/config.sub: Likewise.
14275         * build-aux/gendocs.sh: Likewise.
14276
14277         Fix frexp on mingw.
14278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
14279         cross-compiling.
14280         * doc/functions/frexp.texi (frexp): Document the bug.
14281
14282         Make cygwin fseeko check more reliable.
14283         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
14284         version numbers, rather than unrelated feature check.
14285         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
14286         * doc/functions/ftello.texi (ftello): Likewise.
14287         Reported by Bruno Haible.
14288
14289         * m4/strerror.m4: Bump version number.
14290
14291 2007-12-03  Bruno Haible  <bruno@clisp.org>
14292
14293         * doc/functions/mprotect.texi: Mention the mingw problem.
14294
14295 2007-12-03  Eric Blake  <ebb9@byu.net>
14296
14297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
14298         REPLACE_STRERROR is initialized before this macro.
14299
14300 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14301
14302         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
14303         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
14304         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
14305         put -lsec in even for programs other than 'ls'.  This fixes a problem
14306         for gettext reported by Bruno Haible in
14307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
14308         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
14309         Add support for Solaris 10.  This isn't efficient, but should get the
14310         job done for now.
14311
14312 2007-12-03  James Youngman  <jay@gnu.org>
14313
14314         * doc/regexprops-generic.texi: change "an close-group" to "a
14315         close-group" and "illegal" to "not allowed".
14316
14317 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14318
14319         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
14320         pr_byname.h. Needed for the rare case when the maintainer has done
14321         "make maintainer-clean" in the source directory and then attempts a
14322         build outside the source directory.
14323         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
14324         scripts_byname.h.
14325
14326 2007-12-02  Martin Lambers <marlam@marlam.de>
14327             Bruno Haible  <bruno@clisp.org>
14328
14329         * lib/getpagesize.h: Remove file.
14330         * lib/unistd.in.h: Include declaration of getpagesize here.
14331         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
14332         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
14333         HAVE_SYS_PARAM_H.
14334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
14335         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14336         * modules/getpagesize (Files): Remove lib/getpagesize.h.
14337         (Depends-on): Add unistd.
14338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14339         (Include): Use <unistd.h> instead of getpagesize.h.
14340         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
14341         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14342         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
14343         gl_GETPAGESIZE invocation, already handled by module dependency.
14344         * lib/pagealign_alloc.c: Don't include getpagesize.h.
14345
14346 2007-12-02  Bruno Haible  <bruno@clisp.org>
14347
14348         * modules/strings-tests: New file.
14349         * tests/test-strings.c: New file.
14350
14351         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
14352         * lib/strings.in.h: New file.
14353         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
14354         * m4/strings_h.m4: New file.
14355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
14356         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
14357         * modules/strings: New file.
14358         * modules/string (Makefile.am): Update.
14359         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
14360         Reported by Karl Berry.
14361
14362 2007-12-01  Eric Blake  <ebb9@byu.net>
14363
14364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
14365         accomodate fix in cygwin 1.5.25.
14366
14367 2007-12-01  Jim Meyering  <meyering@redhat.com>
14368
14369         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
14370         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
14371         that would inhibit utf8-optimization of a regexp containing line-
14372         or buffer-anchors, e.g., `^', `$'.
14373
14374 2007-11-30  Bruno Haible  <bruno@clisp.org>
14375
14376         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
14377         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
14378         glthread_recursive_lock_init.
14379         * lib/lock.c (glthread_recursive_lock_init)
14380         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
14381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14382
14383 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14384
14385         New function qset_acl, like set_acl but with syscall semantics.
14386         * lib/acl.h (qset_acl): New decl.
14387         * lib/acl.c (qset_acl): New function.
14388         (set_acl): Use new function.  Use more-consistent diagnostics.
14389
14390 2007-11-28  Jim Meyering  <meyering@redhat.com>
14391
14392         * modules/physmem (License): Change from GPL to LGPLv2+.
14393
14394 2007-11-26  Bruno Haible  <bruno@clisp.org>
14395
14396         * lib/vasnprintf.c (decode_long_double): Don't abort if the
14397         'long double' type has excess precision.
14398         Reported by Jim Meyering in
14399         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
14400
14401 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14402
14403         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
14404         Sync from <http://gnu.org/licenses>.
14405         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
14406         with license text from same location.
14407         * doc/maintain.texi, doc/standards.texi:  Sync from
14408         <http://savannah.gnu.org/projects/gnustandards>.
14409
14410 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
14411         and Jim Meyering  <meyering@redhat.com>
14412
14413         Adjust getdate' grammar to accept a slightly more regular language.
14414         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
14415         Before, the former was rejected.
14416         * lib/getdate.y (digits_to_date_time): New function, factored
14417         out of ...
14418         (number): ...here.  Just call digits_to_date_time.
14419         (hybrid): New non-terminal to handle an <unsigned number,
14420         signed relative offset> sequence consistently.
14421
14422 2007-11-18  Jim Meyering  <meyering@redhat.com>
14423
14424         Pull my changes from coreutils:
14425         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
14426         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
14427         use of $gnulib_tool_option_extras, so that it's separated from the
14428         preceding argument.
14429
14430         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
14431         * build-aux/bootstrap (cp_mark_as_generated): Create any required
14432         parent destination directories before copying a file into place.
14433
14434 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14435
14436         bootstrap: work also with 4-argument variant of AC_INIT
14437         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
14438
14439 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         Port test-getaddrinfo to Solaris.
14442         Problem reported by Bruno Haible in
14443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
14444         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
14445         explanation of setting 'hints'.
14446         Don't reject an implementation merely because it returns EAI_SERVICE.
14447         (EAI_SERVICE): Define to 0 if not defined.
14448
14449 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         The license of gnu-make and posix-shell is now "GPLed build tool".
14452         * modules/gnu-make (License): Likewise.
14453         * modules/posix-shell (License): Likewise.
14454
14455         New module posix-shell, for determining a POSIX shell
14456         or perhaps something that is close enough to a POSIX shell.
14457         * m4/posix-shell.m4: New file.
14458         * modules/posix-shell: New file.
14459
14460         * MODULES.html.sh: Mention new module.
14461
14462         New module gnu-make, for determining whether we're using GNU Make.
14463         * m4/gnu-make.m4: New file.
14464         * modules/gnu-make: New file.
14465         * MODULES.html.sh: Mention new module.
14466
14467 2007-11-14  Jim Meyering  <meyering@redhat.com>
14468
14469         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
14470         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
14471         use this macro to create a function _definition_.
14472         Remove useless "#undef ARGMATCH_DIE".
14473
14474 2007-11-14  Bruno Haible  <bruno@clisp.org>
14475
14476         * lib/config.charset: Update for OpenBSD 4.1.
14477         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
14478
14479 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
14480
14481         Document 64-bit #if problems in stdint.texi.
14482         * doc/headers/stdint.texi (stdint.h): Mention problems with
14483         64-bit-#if, and how to work around them.
14484
14485         Don't insist on 'long long int' support in the preprocessor.  It
14486         breaks too many things.  For example, PRIdMAX still uses a 'long
14487         long int' format with the latest Sun compiler, even though
14488         HAVE_LONG_LONG_INT isn't defined due to that compiler's
14489         preprocessor problem.  This causes the latest coreutils to dump
14490         core on Solaris 10 sparc with the Sun C compiler.
14491         Instead, fix the 2007-10-16 problem in a different way, by evaluating
14492         the troublesome expressions at configure-time, not at #if-time.
14493         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
14494         preprocessor.
14495         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
14496         compile-time C checks, done at 'configure'-time.
14497         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
14498         * modules/inttypes (Makefile): Substitute the new symbols that
14499         gl_INTTYPES_H now generates.
14500         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
14501
14502 2007-11-12  Bruno Haible  <bruno@clisp.org>
14503
14504         Tests for Unicode character classification functions.
14505
14506         * modules/unictype/bidicategory-byname-tests: New file.
14507         * modules/unictype/bidicategory-name-tests: New file.
14508         * modules/unictype/bidicategory-of-tests: New file.
14509         * modules/unictype/bidicategory-test-tests: New file.
14510         * modules/unictype/block-list-tests: New file.
14511         * modules/unictype/block-of-tests: New file.
14512         * modules/unictype/block-test-tests: New file.
14513         * modules/unictype/category-C-tests: New file.
14514         * modules/unictype/category-Cc-tests: New file.
14515         * modules/unictype/category-Cf-tests: New file.
14516         * modules/unictype/category-Cn-tests: New file.
14517         * modules/unictype/category-Co-tests: New file.
14518         * modules/unictype/category-Cs-tests: New file.
14519         * modules/unictype/category-L-tests: New file.
14520         * modules/unictype/category-Ll-tests: New file.
14521         * modules/unictype/category-Lm-tests: New file.
14522         * modules/unictype/category-Lo-tests: New file.
14523         * modules/unictype/category-Lt-tests: New file.
14524         * modules/unictype/category-Lu-tests: New file.
14525         * modules/unictype/category-M-tests: New file.
14526         * modules/unictype/category-Mc-tests: New file.
14527         * modules/unictype/category-Me-tests: New file.
14528         * modules/unictype/category-Mn-tests: New file.
14529         * modules/unictype/category-N-tests: New file.
14530         * modules/unictype/category-Nd-tests: New file.
14531         * modules/unictype/category-Nl-tests: New file.
14532         * modules/unictype/category-No-tests: New file.
14533         * modules/unictype/category-P-tests: New file.
14534         * modules/unictype/category-Pc-tests: New file.
14535         * modules/unictype/category-Pd-tests: New file.
14536         * modules/unictype/category-Pe-tests: New file.
14537         * modules/unictype/category-Pf-tests: New file.
14538         * modules/unictype/category-Pi-tests: New file.
14539         * modules/unictype/category-Po-tests: New file.
14540         * modules/unictype/category-Ps-tests: New file.
14541         * modules/unictype/category-S-tests: New file.
14542         * modules/unictype/category-Sc-tests: New file.
14543         * modules/unictype/category-Sk-tests: New file.
14544         * modules/unictype/category-Sm-tests: New file.
14545         * modules/unictype/category-So-tests: New file.
14546         * modules/unictype/category-Z-tests: New file.
14547         * modules/unictype/category-Zl-tests: New file.
14548         * modules/unictype/category-Zp-tests: New file.
14549         * modules/unictype/category-Zs-tests: New file.
14550         * modules/unictype/category-and-not-tests: New file.
14551         * modules/unictype/category-and-tests: New file.
14552         * modules/unictype/category-byname-tests: New file.
14553         * modules/unictype/category-name-tests: New file.
14554         * modules/unictype/category-none-tests: New file.
14555         * modules/unictype/category-of-tests: New file.
14556         * modules/unictype/category-or-tests: New file.
14557         * modules/unictype/category-test-withtable-tests: New file.
14558         * modules/unictype/combining-class-tests: New file.
14559         * modules/unictype/ctype-alnum-tests: New file.
14560         * modules/unictype/ctype-alpha-tests: New file.
14561         * modules/unictype/ctype-blank-tests: New file.
14562         * modules/unictype/ctype-cntrl-tests: New file.
14563         * modules/unictype/ctype-digit-tests: New file.
14564         * modules/unictype/ctype-graph-tests: New file.
14565         * modules/unictype/ctype-lower-tests: New file.
14566         * modules/unictype/ctype-print-tests: New file.
14567         * modules/unictype/ctype-punct-tests: New file.
14568         * modules/unictype/ctype-space-tests: New file.
14569         * modules/unictype/ctype-upper-tests: New file.
14570         * modules/unictype/ctype-xdigit-tests: New file.
14571         * modules/unictype/decimal-digit-tests: New file.
14572         * modules/unictype/digit-tests: New file.
14573         * modules/unictype/mirror-tests: New file.
14574         * modules/unictype/numeric-tests: New file.
14575         * modules/unictype/property-alphabetic-tests: New file.
14576         * modules/unictype/property-ascii-hex-digit-tests: New file.
14577         * modules/unictype/property-bidi-arabic-digit-tests: New file.
14578         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14579         * modules/unictype/property-bidi-block-separator-tests: New file.
14580         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14581         * modules/unictype/property-bidi-common-separator-tests: New file.
14582         * modules/unictype/property-bidi-control-tests: New file.
14583         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14584         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14585         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14586         * modules/unictype/property-bidi-european-digit-tests: New file.
14587         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14588         * modules/unictype/property-bidi-left-to-right-tests: New file.
14589         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14590         * modules/unictype/property-bidi-other-neutral-tests: New file.
14591         * modules/unictype/property-bidi-pdf-tests: New file.
14592         * modules/unictype/property-bidi-segment-separator-tests: New file.
14593         * modules/unictype/property-bidi-whitespace-tests: New file.
14594         * modules/unictype/property-byname-tests: New file.
14595         * modules/unictype/property-combining-tests: New file.
14596         * modules/unictype/property-composite-tests: New file.
14597         * modules/unictype/property-currency-symbol-tests: New file.
14598         * modules/unictype/property-dash-tests: New file.
14599         * modules/unictype/property-decimal-digit-tests: New file.
14600         * modules/unictype/property-default-ignorable-code-point-tests: New file.
14601         * modules/unictype/property-deprecated-tests: New file.
14602         * modules/unictype/property-diacritic-tests: New file.
14603         * modules/unictype/property-extender-tests: New file.
14604         * modules/unictype/property-format-control-tests: New file.
14605         * modules/unictype/property-grapheme-base-tests: New file.
14606         * modules/unictype/property-grapheme-extend-tests: New file.
14607         * modules/unictype/property-grapheme-link-tests: New file.
14608         * modules/unictype/property-hex-digit-tests: New file.
14609         * modules/unictype/property-hyphen-tests: New file.
14610         * modules/unictype/property-id-continue-tests: New file.
14611         * modules/unictype/property-id-start-tests: New file.
14612         * modules/unictype/property-ideographic-tests: New file.
14613         * modules/unictype/property-ids-binary-operator-tests: New file.
14614         * modules/unictype/property-ids-trinary-operator-tests: New file.
14615         * modules/unictype/property-ignorable-control-tests: New file.
14616         * modules/unictype/property-iso-control-tests: New file.
14617         * modules/unictype/property-join-control-tests: New file.
14618         * modules/unictype/property-left-of-pair-tests: New file.
14619         * modules/unictype/property-line-separator-tests: New file.
14620         * modules/unictype/property-logical-order-exception-tests: New file.
14621         * modules/unictype/property-lowercase-tests: New file.
14622         * modules/unictype/property-math-tests: New file.
14623         * modules/unictype/property-non-break-tests: New file.
14624         * modules/unictype/property-not-a-character-tests: New file.
14625         * modules/unictype/property-numeric-tests: New file.
14626         * modules/unictype/property-other-alphabetic-tests: New file.
14627         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14628         * modules/unictype/property-other-grapheme-extend-tests: New file.
14629         * modules/unictype/property-other-id-continue-tests: New file.
14630         * modules/unictype/property-other-id-start-tests: New file.
14631         * modules/unictype/property-other-lowercase-tests: New file.
14632         * modules/unictype/property-other-math-tests: New file.
14633         * modules/unictype/property-other-uppercase-tests: New file.
14634         * modules/unictype/property-paired-punctuation-tests: New file.
14635         * modules/unictype/property-paragraph-separator-tests: New file.
14636         * modules/unictype/property-pattern-syntax-tests: New file.
14637         * modules/unictype/property-pattern-white-space-tests: New file.
14638         * modules/unictype/property-private-use-tests: New file.
14639         * modules/unictype/property-punctuation-tests: New file.
14640         * modules/unictype/property-quotation-mark-tests: New file.
14641         * modules/unictype/property-radical-tests: New file.
14642         * modules/unictype/property-sentence-terminal-tests: New file.
14643         * modules/unictype/property-soft-dotted-tests: New file.
14644         * modules/unictype/property-space-tests: New file.
14645         * modules/unictype/property-terminal-punctuation-tests: New file.
14646         * modules/unictype/property-test-tests: New file.
14647         * modules/unictype/property-titlecase-tests: New file.
14648         * modules/unictype/property-unassigned-code-value-tests: New file.
14649         * modules/unictype/property-unified-ideograph-tests: New file.
14650         * modules/unictype/property-uppercase-tests: New file.
14651         * modules/unictype/property-variation-selector-tests: New file.
14652         * modules/unictype/property-white-space-tests: New file.
14653         * modules/unictype/property-xid-continue-tests: New file.
14654         * modules/unictype/property-xid-start-tests: New file.
14655         * modules/unictype/property-zero-width-tests: New file.
14656         * modules/unictype/scripts-tests: New file.
14657         * modules/unictype/syntax-c-ident-tests: New file.
14658         * modules/unictype/syntax-c-whitespace-tests: New file.
14659         * modules/unictype/syntax-java-ident-tests: New file.
14660         * modules/unictype/syntax-java-whitespace-tests: New file.
14661         * tests/unictype/test-bidi_byname.c: New file.
14662         * tests/unictype/test-bidi_name.c: New file.
14663         * tests/unictype/test-bidi_of.c: New file.
14664         * tests/unictype/test-bidi_test.c: New file.
14665         * tests/unictype/test-block_list.c: New file.
14666         * tests/unictype/test-block_of.c: New file.
14667         * tests/unictype/test-block_test.c: New file.
14668         * tests/unictype/test-categ_and.c: New file.
14669         * tests/unictype/test-categ_and_not.c: New file.
14670         * tests/unictype/test-categ_byname.c: New file.
14671         * tests/unictype/test-categ_name.c: New file.
14672         * tests/unictype/test-categ_none.c: New file.
14673         * tests/unictype/test-categ_of.c: New file.
14674         * tests/unictype/test-categ_or.c: New file.
14675         * tests/unictype/test-categ_test_withtable.c: New file.
14676         * tests/unictype/test-combining.c: New file.
14677         * tests/unictype/test-decdigit.c: New file.
14678         * tests/unictype/test-digit.c: New file.
14679         * tests/unictype/test-mirror.c: New file.
14680         * tests/unictype/test-numeric.c: New file.
14681         * tests/unictype/test-pr_byname.c: New file.
14682         * tests/unictype/test-pr_test.c: New file.
14683         * tests/unictype/test-predicate-part1.h: New file.
14684         * tests/unictype/test-predicate-part2.h: New file.
14685         * tests/unictype/test-scripts.c: New file.
14686         * tests/unictype/test-sy_c_ident.c: New file.
14687         * tests/unictype/test-sy_java_ident.c: New file.
14688
14689         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14690         for Unicode 5.0.0.
14691         * tests/unictype/test-categ_Cc.c: Likewise.
14692         * tests/unictype/test-categ_Cf.c: Likewise.
14693         * tests/unictype/test-categ_Cn.c: Likewise.
14694         * tests/unictype/test-categ_Co.c: Likewise.
14695         * tests/unictype/test-categ_Cs.c: Likewise.
14696         * tests/unictype/test-categ_L.c: Likewise.
14697         * tests/unictype/test-categ_Ll.c: Likewise.
14698         * tests/unictype/test-categ_Lm.c: Likewise.
14699         * tests/unictype/test-categ_Lo.c: Likewise.
14700         * tests/unictype/test-categ_Lt.c: Likewise.
14701         * tests/unictype/test-categ_Lu.c: Likewise.
14702         * tests/unictype/test-categ_M.c: Likewise.
14703         * tests/unictype/test-categ_Mc.c: Likewise.
14704         * tests/unictype/test-categ_Me.c: Likewise.
14705         * tests/unictype/test-categ_Mn.c: Likewise.
14706         * tests/unictype/test-categ_N.c: Likewise.
14707         * tests/unictype/test-categ_Nd.c: Likewise.
14708         * tests/unictype/test-categ_Nl.c: Likewise.
14709         * tests/unictype/test-categ_No.c: Likewise.
14710         * tests/unictype/test-categ_P.c: Likewise.
14711         * tests/unictype/test-categ_Pc.c: Likewise.
14712         * tests/unictype/test-categ_Pd.c: Likewise.
14713         * tests/unictype/test-categ_Pe.c: Likewise.
14714         * tests/unictype/test-categ_Pf.c: Likewise.
14715         * tests/unictype/test-categ_Pi.c: Likewise.
14716         * tests/unictype/test-categ_Po.c: Likewise.
14717         * tests/unictype/test-categ_Ps.c: Likewise.
14718         * tests/unictype/test-categ_S.c: Likewise.
14719         * tests/unictype/test-categ_Sc.c: Likewise.
14720         * tests/unictype/test-categ_Sk.c: Likewise.
14721         * tests/unictype/test-categ_Sm.c: Likewise.
14722         * tests/unictype/test-categ_So.c: Likewise.
14723         * tests/unictype/test-categ_Z.c: Likewise.
14724         * tests/unictype/test-categ_Zl.c: Likewise.
14725         * tests/unictype/test-categ_Zp.c: Likewise.
14726         * tests/unictype/test-categ_Zs.c: Likewise.
14727         * tests/unictype/test-ctype_alnum.c: Likewise.
14728         * tests/unictype/test-ctype_alpha.c: Likewise.
14729         * tests/unictype/test-ctype_blank.c: Likewise.
14730         * tests/unictype/test-ctype_cntrl.c: Likewise.
14731         * tests/unictype/test-ctype_digit.c: Likewise.
14732         * tests/unictype/test-ctype_graph.c: Likewise.
14733         * tests/unictype/test-ctype_lower.c: Likewise.
14734         * tests/unictype/test-ctype_print.c: Likewise.
14735         * tests/unictype/test-ctype_punct.c: Likewise.
14736         * tests/unictype/test-ctype_space.c: Likewise.
14737         * tests/unictype/test-ctype_upper.c: Likewise.
14738         * tests/unictype/test-ctype_xdigit.c: Likewise.
14739         * tests/unictype/test-decdigit.h: Likewise.
14740         * tests/unictype/test-digit.h: Likewise.
14741         * tests/unictype/test-numeric.h: Likewise.
14742         * tests/unictype/test-pr_alphabetic.c: Likewise.
14743         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14744         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14745         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14746         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14747         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14748         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14749         * tests/unictype/test-pr_bidi_control.c: Likewise.
14750         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14751         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14752         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14753         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14754         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14755         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14756         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14757         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14758         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14759         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14760         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14761         * tests/unictype/test-pr_combining.c: Likewise.
14762         * tests/unictype/test-pr_composite.c: Likewise.
14763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14764         * tests/unictype/test-pr_dash.c: Likewise.
14765         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14766         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14767         * tests/unictype/test-pr_deprecated.c: Likewise.
14768         * tests/unictype/test-pr_diacritic.c: Likewise.
14769         * tests/unictype/test-pr_extender.c: Likewise.
14770         * tests/unictype/test-pr_format_control.c: Likewise.
14771         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14772         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14773         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14774         * tests/unictype/test-pr_hex_digit.c: Likewise.
14775         * tests/unictype/test-pr_hyphen.c: Likewise.
14776         * tests/unictype/test-pr_id_continue.c: Likewise.
14777         * tests/unictype/test-pr_id_start.c: Likewise.
14778         * tests/unictype/test-pr_ideographic.c: Likewise.
14779         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14780         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14781         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14782         * tests/unictype/test-pr_iso_control.c: Likewise.
14783         * tests/unictype/test-pr_join_control.c: Likewise.
14784         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14785         * tests/unictype/test-pr_line_separator.c: Likewise.
14786         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14787         * tests/unictype/test-pr_lowercase.c: Likewise.
14788         * tests/unictype/test-pr_math.c: Likewise.
14789         * tests/unictype/test-pr_non_break.c: Likewise.
14790         * tests/unictype/test-pr_not_a_character.c: Likewise.
14791         * tests/unictype/test-pr_numeric.c: Likewise.
14792         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14793         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14794         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14795         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14796         * tests/unictype/test-pr_other_id_start.c: Likewise.
14797         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14798         * tests/unictype/test-pr_other_math.c: Likewise.
14799         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14800         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14801         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14802         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14803         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14804         * tests/unictype/test-pr_private_use.c: Likewise.
14805         * tests/unictype/test-pr_punctuation.c: Likewise.
14806         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14807         * tests/unictype/test-pr_radical.c: Likewise.
14808         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14809         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14810         * tests/unictype/test-pr_space.c: Likewise.
14811         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14812         * tests/unictype/test-pr_titlecase.c: Likewise.
14813         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14814         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14815         * tests/unictype/test-pr_uppercase.c: Likewise.
14816         * tests/unictype/test-pr_variation_selector.c: Likewise.
14817         * tests/unictype/test-pr_white_space.c: Likewise.
14818         * tests/unictype/test-pr_xid_continue.c: Likewise.
14819         * tests/unictype/test-pr_xid_start.c: Likewise.
14820         * tests/unictype/test-pr_zero_width.c: Likewise.
14821         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14822         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14823
14824 2007-11-12  Bruno Haible  <bruno@clisp.org>
14825
14826         Unicode character classification functions.
14827         * lib/unictype.h: New file.
14828         * modules/unictype/base: New file.
14829         * modules/unictype/category-L: New file.
14830         * modules/unictype/category-Lu: New file.
14831         * modules/unictype/category-Ll: New file.
14832         * modules/unictype/category-Lt: New file.
14833         * modules/unictype/category-Lm: New file.
14834         * modules/unictype/category-Lo: New file.
14835         * modules/unictype/category-M: New file.
14836         * modules/unictype/category-Mn: New file.
14837         * modules/unictype/category-Mc: New file.
14838         * modules/unictype/category-Me: New file.
14839         * modules/unictype/category-N: New file.
14840         * modules/unictype/category-Nd: New file.
14841         * modules/unictype/category-Nl: New file.
14842         * modules/unictype/category-No: New file.
14843         * modules/unictype/category-P: New file.
14844         * modules/unictype/category-Pc: New file.
14845         * modules/unictype/category-Pd: New file.
14846         * modules/unictype/category-Ps: New file.
14847         * modules/unictype/category-Pe: New file.
14848         * modules/unictype/category-Pi: New file.
14849         * modules/unictype/category-Pf: New file.
14850         * modules/unictype/category-Po: New file.
14851         * modules/unictype/category-S: New file.
14852         * modules/unictype/category-Sm: New file.
14853         * modules/unictype/category-Sc: New file.
14854         * modules/unictype/category-Sk: New file.
14855         * modules/unictype/category-So: New file.
14856         * modules/unictype/category-Z: New file.
14857         * modules/unictype/category-Zs: New file.
14858         * modules/unictype/category-Zl: New file.
14859         * modules/unictype/category-Zp: New file.
14860         * modules/unictype/category-C: New file.
14861         * modules/unictype/category-Cc: New file.
14862         * modules/unictype/category-Cf: New file.
14863         * modules/unictype/category-Cs: New file.
14864         * modules/unictype/category-Co: New file.
14865         * modules/unictype/category-Cn: New file.
14866         * modules/unictype/category-or: New file.
14867         * modules/unictype/category-of: New file.
14868         * modules/unictype/category-test: New file.
14869         * modules/unictype/category-test-withtable: New file.
14870         * modules/unictype/category-byname: New file.
14871         * modules/unictype/category-none: New file.
14872         * modules/unictype/category-and: New file.
14873         * modules/unictype/category-and-not: New file.
14874         * modules/unictype/category-name: New file.
14875         * modules/unictype/combining-class: New file.
14876         * modules/unictype/category-all: New file.
14877         * modules/unictype/bidicategory-all: New file.
14878         * modules/unictype/bidicategory-byname: New file.
14879         * modules/unictype/bidicategory-name: New file.
14880         * modules/unictype/bidicategory-of: New file.
14881         * modules/unictype/bidicategory-test: New file.
14882         * modules/unictype/decimal-digit: New file.
14883         * modules/unictype/digit: New file.
14884         * modules/unictype/numeric: New file.
14885         * modules/unictype/mirror: New file.
14886         * modules/unictype/property-white-space: New file.
14887         * modules/unictype/property-alphabetic: New file.
14888         * modules/unictype/property-other-alphabetic: New file.
14889         * modules/unictype/property-not-a-character: New file.
14890         * modules/unictype/property-default-ignorable-code-point: New file.
14891         * modules/unictype/property-other-default-ignorable-code-point: New
14892         file.
14893         * modules/unictype/property-deprecated: New file.
14894         * modules/unictype/property-logical-order-exception: New file.
14895         * modules/unictype/property-variation-selector: New file.
14896         * modules/unictype/property-private-use: New file.
14897         * modules/unictype/property-unassigned-code-value: New file.
14898         * modules/unictype/property-uppercase: New file.
14899         * modules/unictype/property-other-uppercase: New file.
14900         * modules/unictype/property-lowercase: New file.
14901         * modules/unictype/property-other-lowercase: New file.
14902         * modules/unictype/property-titlecase: New file.
14903         * modules/unictype/property-soft-dotted: New file.
14904         * modules/unictype/property-id-start: New file.
14905         * modules/unictype/property-other-id-start: New file.
14906         * modules/unictype/property-id-continue: New file.
14907         * modules/unictype/property-other-id-continue: New file.
14908         * modules/unictype/property-xid-start: New file.
14909         * modules/unictype/property-xid-continue: New file.
14910         * modules/unictype/property-pattern-white-space: New file.
14911         * modules/unictype/property-pattern-syntax: New file.
14912         * modules/unictype/property-join-control: New file.
14913         * modules/unictype/property-grapheme-base: New file.
14914         * modules/unictype/property-grapheme-extend: New file.
14915         * modules/unictype/property-other-grapheme-extend: New file.
14916         * modules/unictype/property-grapheme-link: New file.
14917         * modules/unictype/property-bidi-control: New file.
14918         * modules/unictype/property-bidi-left-to-right: New file.
14919         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14920         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14921         * modules/unictype/property-bidi-european-digit: New file.
14922         * modules/unictype/property-bidi-eur-num-separator: New file.
14923         * modules/unictype/property-bidi-eur-num-terminator: New file.
14924         * modules/unictype/property-bidi-arabic-digit: New file.
14925         * modules/unictype/property-bidi-common-separator: New file.
14926         * modules/unictype/property-bidi-block-separator: New file.
14927         * modules/unictype/property-bidi-segment-separator: New file.
14928         * modules/unictype/property-bidi-whitespace: New file.
14929         * modules/unictype/property-bidi-non-spacing-mark: New file.
14930         * modules/unictype/property-bidi-boundary-neutral: New file.
14931         * modules/unictype/property-bidi-pdf: New file.
14932         * modules/unictype/property-bidi-embedding-or-override: New file.
14933         * modules/unictype/property-bidi-other-neutral: New file.
14934         * modules/unictype/property-hex-digit: New file.
14935         * modules/unictype/property-ascii-hex-digit: New file.
14936         * modules/unictype/property-ideographic: New file.
14937         * modules/unictype/property-unified-ideograph: New file.
14938         * modules/unictype/property-radical: New file.
14939         * modules/unictype/property-ids-binary-operator: New file.
14940         * modules/unictype/property-ids-trinary-operator: New file.
14941         * modules/unictype/property-zero-width: New file.
14942         * modules/unictype/property-space: New file.
14943         * modules/unictype/property-non-break: New file.
14944         * modules/unictype/property-iso-control: New file.
14945         * modules/unictype/property-format-control: New file.
14946         * modules/unictype/property-dash: New file.
14947         * modules/unictype/property-hyphen: New file.
14948         * modules/unictype/property-punctuation: New file.
14949         * modules/unictype/property-line-separator: New file.
14950         * modules/unictype/property-paragraph-separator: New file.
14951         * modules/unictype/property-quotation-mark: New file.
14952         * modules/unictype/property-sentence-terminal: New file.
14953         * modules/unictype/property-terminal-punctuation: New file.
14954         * modules/unictype/property-currency-symbol: New file.
14955         * modules/unictype/property-math: New file.
14956         * modules/unictype/property-other-math: New file.
14957         * modules/unictype/property-paired-punctuation: New file.
14958         * modules/unictype/property-left-of-pair: New file.
14959         * modules/unictype/property-combining: New file.
14960         * modules/unictype/property-composite: New file.
14961         * modules/unictype/property-decimal-digit: New file.
14962         * modules/unictype/property-numeric: New file.
14963         * modules/unictype/property-diacritic: New file.
14964         * modules/unictype/property-extender: New file.
14965         * modules/unictype/property-ignorable-control: New file.
14966         * modules/unictype/property-test: New file.
14967         * modules/unictype/property-byname: New file.
14968         * modules/unictype/property-all: New file.
14969         * modules/unictype/scripts: New file.
14970         * modules/unictype/scripts-all: New file.
14971         * modules/unictype/block-of: New file.
14972         * modules/unictype/block-test: New file.
14973         * modules/unictype/block-list: New file.
14974         * modules/unictype/block-all: New file.
14975         * modules/unictype/syntax-c-whitespace: New file.
14976         * modules/unictype/syntax-java-whitespace: New file.
14977         * modules/unictype/syntax-c-ident: New file.
14978         * modules/unictype/syntax-java-ident: New file.
14979         * modules/unictype/ctype-alnum: New file.
14980         * modules/unictype/ctype-alpha: New file.
14981         * modules/unictype/ctype-cntrl: New file.
14982         * modules/unictype/ctype-digit: New file.
14983         * modules/unictype/ctype-graph: New file.
14984         * modules/unictype/ctype-lower: New file.
14985         * modules/unictype/ctype-print: New file.
14986         * modules/unictype/ctype-punct: New file.
14987         * modules/unictype/ctype-space: New file.
14988         * modules/unictype/ctype-upper: New file.
14989         * modules/unictype/ctype-xdigit: New file.
14990         * modules/unictype/ctype-blank: New file.
14991         * lib/unictype/bidi_byname.c: New file.
14992         * lib/unictype/bidi_name.c: New file.
14993         * lib/unictype/bidi_of.c: New file.
14994         * lib/unictype/bidi_test.c: New file.
14995         * lib/unictype/bitmap.h: New file.
14996         * lib/unictype/block_test.c: New file.
14997         * lib/unictype/blocks.c: New file.
14998         * lib/unictype/categ_C.c: New file.
14999         * lib/unictype/categ_Cc.c: New file.
15000         * lib/unictype/categ_Cf.c: New file.
15001         * lib/unictype/categ_Cn.c: New file.
15002         * lib/unictype/categ_Co.c: New file.
15003         * lib/unictype/categ_Cs.c: New file.
15004         * lib/unictype/categ_L.c: New file.
15005         * lib/unictype/categ_Ll.c: New file.
15006         * lib/unictype/categ_Lm.c: New file.
15007         * lib/unictype/categ_Lo.c: New file.
15008         * lib/unictype/categ_Lt.c: New file.
15009         * lib/unictype/categ_Lu.c: New file.
15010         * lib/unictype/categ_M.c: New file.
15011         * lib/unictype/categ_Mc.c: New file.
15012         * lib/unictype/categ_Me.c: New file.
15013         * lib/unictype/categ_Mn.c: New file.
15014         * lib/unictype/categ_N.c: New file.
15015         * lib/unictype/categ_Nd.c: New file.
15016         * lib/unictype/categ_Nl.c: New file.
15017         * lib/unictype/categ_No.c: New file.
15018         * lib/unictype/categ_P.c: New file.
15019         * lib/unictype/categ_Pc.c: New file.
15020         * lib/unictype/categ_Pd.c: New file.
15021         * lib/unictype/categ_Pe.c: New file.
15022         * lib/unictype/categ_Pf.c: New file.
15023         * lib/unictype/categ_Pi.c: New file.
15024         * lib/unictype/categ_Po.c: New file.
15025         * lib/unictype/categ_Ps.c: New file.
15026         * lib/unictype/categ_S.c: New file.
15027         * lib/unictype/categ_Sc.c: New file.
15028         * lib/unictype/categ_Sk.c: New file.
15029         * lib/unictype/categ_Sm.c: New file.
15030         * lib/unictype/categ_So.c: New file.
15031         * lib/unictype/categ_Z.c: New file.
15032         * lib/unictype/categ_Zl.c: New file.
15033         * lib/unictype/categ_Zp.c: New file.
15034         * lib/unictype/categ_Zs.c: New file.
15035         * lib/unictype/categ_and.c: New file.
15036         * lib/unictype/categ_and_not.c: New file.
15037         * lib/unictype/categ_byname.c: New file.
15038         * lib/unictype/categ_name.c: New file.
15039         * lib/unictype/categ_none.c: New file.
15040         * lib/unictype/categ_of.c: New file.
15041         * lib/unictype/categ_or.c: New file.
15042         * lib/unictype/categ_test.c: New file.
15043         * lib/unictype/combining.c: New file.
15044         * lib/unictype/ctype_alnum.c: New file.
15045         * lib/unictype/ctype_alpha.c: New file.
15046         * lib/unictype/ctype_blank.c: New file.
15047         * lib/unictype/ctype_cntrl.c: New file.
15048         * lib/unictype/ctype_digit.c: New file.
15049         * lib/unictype/ctype_graph.c: New file.
15050         * lib/unictype/ctype_lower.c: New file.
15051         * lib/unictype/ctype_print.c: New file.
15052         * lib/unictype/ctype_punct.c: New file.
15053         * lib/unictype/ctype_space.c: New file.
15054         * lib/unictype/ctype_upper.c: New file.
15055         * lib/unictype/ctype_xdigit.c: New file.
15056         * lib/unictype/decdigit.c: New file.
15057         * lib/unictype/digit.c: New file.
15058         * lib/unictype/identsyntaxmap.h: New file.
15059         * lib/unictype/mirror.c: New file.
15060         * lib/unictype/numeric.c: New file.
15061         * lib/unictype/pr_alphabetic.c: New file.
15062         * lib/unictype/pr_ascii_hex_digit.c: New file.
15063         * lib/unictype/pr_bidi_arabic_digit.c: New file.
15064         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
15065         * lib/unictype/pr_bidi_block_separator.c: New file.
15066         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
15067         * lib/unictype/pr_bidi_common_separator.c: New file.
15068         * lib/unictype/pr_bidi_control.c: New file.
15069         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
15070         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
15071         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
15072         * lib/unictype/pr_bidi_european_digit.c: New file.
15073         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
15074         * lib/unictype/pr_bidi_left_to_right.c: New file.
15075         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
15076         * lib/unictype/pr_bidi_other_neutral.c: New file.
15077         * lib/unictype/pr_bidi_pdf.c: New file.
15078         * lib/unictype/pr_bidi_segment_separator.c: New file.
15079         * lib/unictype/pr_bidi_whitespace.c: New file.
15080         * lib/unictype/pr_byname.c: New file.
15081         * lib/unictype/pr_byname.gperf: New file.
15082         * lib/unictype/pr_combining.c: New file.
15083         * lib/unictype/pr_composite.c: New file.
15084         * lib/unictype/pr_currency_symbol.c: New file.
15085         * lib/unictype/pr_dash.c: New file.
15086         * lib/unictype/pr_decimal_digit.c: New file.
15087         * lib/unictype/pr_default_ignorable_code_point.c: New file.
15088         * lib/unictype/pr_deprecated.c: New file.
15089         * lib/unictype/pr_diacritic.c: New file.
15090         * lib/unictype/pr_extender.c: New file.
15091         * lib/unictype/pr_format_control.c: New file.
15092         * lib/unictype/pr_grapheme_base.c: New file.
15093         * lib/unictype/pr_grapheme_extend.c: New file.
15094         * lib/unictype/pr_grapheme_link.c: New file.
15095         * lib/unictype/pr_hex_digit.c: New file.
15096         * lib/unictype/pr_hyphen.c: New file.
15097         * lib/unictype/pr_id_continue.c: New file.
15098         * lib/unictype/pr_id_start.c: New file.
15099         * lib/unictype/pr_ideographic.c: New file.
15100         * lib/unictype/pr_ids_binary_operator.c: New file.
15101         * lib/unictype/pr_ids_trinary_operator.c: New file.
15102         * lib/unictype/pr_ignorable_control.c: New file.
15103         * lib/unictype/pr_iso_control.c: New file.
15104         * lib/unictype/pr_join_control.c: New file.
15105         * lib/unictype/pr_left_of_pair.c: New file.
15106         * lib/unictype/pr_line_separator.c: New file.
15107         * lib/unictype/pr_logical_order_exception.c: New file.
15108         * lib/unictype/pr_lowercase.c: New file.
15109         * lib/unictype/pr_math.c: New file.
15110         * lib/unictype/pr_non_break.c: New file.
15111         * lib/unictype/pr_not_a_character.c: New file.
15112         * lib/unictype/pr_numeric.c: New file.
15113         * lib/unictype/pr_other_alphabetic.c: New file.
15114         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
15115         * lib/unictype/pr_other_grapheme_extend.c: New file.
15116         * lib/unictype/pr_other_id_continue.c: New file.
15117         * lib/unictype/pr_other_id_start.c: New file.
15118         * lib/unictype/pr_other_lowercase.c: New file.
15119         * lib/unictype/pr_other_math.c: New file.
15120         * lib/unictype/pr_other_uppercase.c: New file.
15121         * lib/unictype/pr_paired_punctuation.c: New file.
15122         * lib/unictype/pr_paragraph_separator.c: New file.
15123         * lib/unictype/pr_pattern_syntax.c: New file.
15124         * lib/unictype/pr_pattern_white_space.c: New file.
15125         * lib/unictype/pr_private_use.c: New file.
15126         * lib/unictype/pr_punctuation.c: New file.
15127         * lib/unictype/pr_quotation_mark.c: New file.
15128         * lib/unictype/pr_radical.c: New file.
15129         * lib/unictype/pr_sentence_terminal.c: New file.
15130         * lib/unictype/pr_soft_dotted.c: New file.
15131         * lib/unictype/pr_space.c: New file.
15132         * lib/unictype/pr_terminal_punctuation.c: New file.
15133         * lib/unictype/pr_test.c: New file.
15134         * lib/unictype/pr_titlecase.c: New file.
15135         * lib/unictype/pr_unassigned_code_value.c: New file.
15136         * lib/unictype/pr_unified_ideograph.c: New file.
15137         * lib/unictype/pr_uppercase.c: New file.
15138         * lib/unictype/pr_variation_selector.c: New file.
15139         * lib/unictype/pr_white_space.c: New file.
15140         * lib/unictype/pr_xid_continue.c: New file.
15141         * lib/unictype/pr_xid_start.c: New file.
15142         * lib/unictype/pr_zero_width.c: New file.
15143         * lib/unictype/scripts.c: New file.
15144         * lib/unictype/sy_c_ident.c: New file.
15145         * lib/unictype/sy_c_whitespace.c: New file.
15146         * lib/unictype/sy_java_ident.c: New file.
15147         * lib/unictype/sy_java_whitespace.c: New file.
15148
15149         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
15150         Unicode 5.0.0.
15151         * lib/unictype/blocks.h: Likewise.
15152         * lib/unictype/categ_C.h: Likewise.
15153         * lib/unictype/categ_Cc.h: Likewise.
15154         * lib/unictype/categ_Cf.h: Likewise.
15155         * lib/unictype/categ_Cn.h: Likewise.
15156         * lib/unictype/categ_Co.h: Likewise.
15157         * lib/unictype/categ_Cs.h: Likewise.
15158         * lib/unictype/categ_L.h: Likewise.
15159         * lib/unictype/categ_Ll.h: Likewise.
15160         * lib/unictype/categ_Lm.h: Likewise.
15161         * lib/unictype/categ_Lo.h: Likewise.
15162         * lib/unictype/categ_Lt.h: Likewise.
15163         * lib/unictype/categ_Lu.h: Likewise.
15164         * lib/unictype/categ_M.h: Likewise.
15165         * lib/unictype/categ_Mc.h: Likewise.
15166         * lib/unictype/categ_Me.h: Likewise.
15167         * lib/unictype/categ_Mn.h: Likewise.
15168         * lib/unictype/categ_N.h: Likewise.
15169         * lib/unictype/categ_Nd.h: Likewise.
15170         * lib/unictype/categ_Nl.h: Likewise.
15171         * lib/unictype/categ_No.h: Likewise.
15172         * lib/unictype/categ_P.h: Likewise.
15173         * lib/unictype/categ_Pc.h: Likewise.
15174         * lib/unictype/categ_Pd.h: Likewise.
15175         * lib/unictype/categ_Pe.h: Likewise.
15176         * lib/unictype/categ_Pf.h: Likewise.
15177         * lib/unictype/categ_Pi.h: Likewise.
15178         * lib/unictype/categ_Po.h: Likewise.
15179         * lib/unictype/categ_Ps.h: Likewise.
15180         * lib/unictype/categ_S.h: Likewise.
15181         * lib/unictype/categ_Sc.h: Likewise.
15182         * lib/unictype/categ_Sk.h: Likewise.
15183         * lib/unictype/categ_Sm.h: Likewise.
15184         * lib/unictype/categ_So.h: Likewise.
15185         * lib/unictype/categ_Z.h: Likewise.
15186         * lib/unictype/categ_Zl.h: Likewise.
15187         * lib/unictype/categ_Zp.h: Likewise.
15188         * lib/unictype/categ_Zs.h: Likewise.
15189         * lib/unictype/categ_of.h: Likewise.
15190         * lib/unictype/combining.h: Likewise.
15191         * lib/unictype/ctype_alnum.h: Likewise.
15192         * lib/unictype/ctype_alpha.h: Likewise.
15193         * lib/unictype/ctype_blank.h: Likewise.
15194         * lib/unictype/ctype_cntrl.h: Likewise.
15195         * lib/unictype/ctype_digit.h: Likewise.
15196         * lib/unictype/ctype_graph.h: Likewise.
15197         * lib/unictype/ctype_lower.h: Likewise.
15198         * lib/unictype/ctype_print.h: Likewise.
15199         * lib/unictype/ctype_punct.h: Likewise.
15200         * lib/unictype/ctype_space.h: Likewise.
15201         * lib/unictype/ctype_upper.h: Likewise.
15202         * lib/unictype/ctype_xdigit.h: Likewise.
15203         * lib/unictype/decdigit.h: Likewise.
15204         * lib/unictype/digit.h: Likewise.
15205         * lib/unictype/mirror.h: Likewise.
15206         * lib/unictype/numeric.h: Likewise.
15207         * lib/unictype/pr_alphabetic.h: Likewise.
15208         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15209         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15210         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15211         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15212         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15213         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15214         * lib/unictype/pr_bidi_control.h: Likewise.
15215         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15216         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15217         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15218         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15219         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15220         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15221         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15222         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15223         * lib/unictype/pr_bidi_pdf.h: Likewise.
15224         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15225         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15226         * lib/unictype/pr_combining.h: Likewise.
15227         * lib/unictype/pr_composite.h: Likewise.
15228         * lib/unictype/pr_currency_symbol.h: Likewise.
15229         * lib/unictype/pr_dash.h: Likewise.
15230         * lib/unictype/pr_decimal_digit.h: Likewise.
15231         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15232         * lib/unictype/pr_deprecated.h: Likewise.
15233         * lib/unictype/pr_diacritic.h: Likewise.
15234         * lib/unictype/pr_extender.h: Likewise.
15235         * lib/unictype/pr_format_control.h: Likewise.
15236         * lib/unictype/pr_grapheme_base.h: Likewise.
15237         * lib/unictype/pr_grapheme_extend.h: Likewise.
15238         * lib/unictype/pr_grapheme_link.h: Likewise.
15239         * lib/unictype/pr_hex_digit.h: Likewise.
15240         * lib/unictype/pr_hyphen.h: Likewise.
15241         * lib/unictype/pr_id_continue.h: Likewise.
15242         * lib/unictype/pr_id_start.h: Likewise.
15243         * lib/unictype/pr_ideographic.h: Likewise.
15244         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15245         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15246         * lib/unictype/pr_ignorable_control.h: Likewise.
15247         * lib/unictype/pr_iso_control.h: Likewise.
15248         * lib/unictype/pr_join_control.h: Likewise.
15249         * lib/unictype/pr_left_of_pair.h: Likewise.
15250         * lib/unictype/pr_line_separator.h: Likewise.
15251         * lib/unictype/pr_logical_order_exception.h: Likewise.
15252         * lib/unictype/pr_lowercase.h: Likewise.
15253         * lib/unictype/pr_math.h: Likewise.
15254         * lib/unictype/pr_non_break.h: Likewise.
15255         * lib/unictype/pr_not_a_character.h: Likewise.
15256         * lib/unictype/pr_numeric.h: Likewise.
15257         * lib/unictype/pr_other_alphabetic.h: Likewise.
15258         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15259         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15260         * lib/unictype/pr_other_id_continue.h: Likewise.
15261         * lib/unictype/pr_other_id_start.h: Likewise.
15262         * lib/unictype/pr_other_lowercase.h: Likewise.
15263         * lib/unictype/pr_other_math.h: Likewise.
15264         * lib/unictype/pr_other_uppercase.h: Likewise.
15265         * lib/unictype/pr_paired_punctuation.h: Likewise.
15266         * lib/unictype/pr_paragraph_separator.h: Likewise.
15267         * lib/unictype/pr_pattern_syntax.h: Likewise.
15268         * lib/unictype/pr_pattern_white_space.h: Likewise.
15269         * lib/unictype/pr_private_use.h: Likewise.
15270         * lib/unictype/pr_punctuation.h: Likewise.
15271         * lib/unictype/pr_quotation_mark.h: Likewise.
15272         * lib/unictype/pr_radical.h: Likewise.
15273         * lib/unictype/pr_sentence_terminal.h: Likewise.
15274         * lib/unictype/pr_soft_dotted.h: Likewise.
15275         * lib/unictype/pr_space.h: Likewise.
15276         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15277         * lib/unictype/pr_titlecase.h: Likewise.
15278         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15279         * lib/unictype/pr_unified_ideograph.h: Likewise.
15280         * lib/unictype/pr_uppercase.h: Likewise.
15281         * lib/unictype/pr_variation_selector.h: Likewise.
15282         * lib/unictype/pr_white_space.h: Likewise.
15283         * lib/unictype/pr_xid_continue.h: Likewise.
15284         * lib/unictype/pr_xid_start.h: Likewise.
15285         * lib/unictype/pr_zero_width.h: Likewise.
15286         * lib/unictype/scripts.h: Likewise.
15287         * lib/unictype/scripts_byname.gperf: Likewise.
15288         * lib/unictype/sy_c_ident.h: Likewise.
15289         * lib/unictype/sy_c_whitespace.h: Likewise.
15290         * lib/unictype/sy_java_ident.h: Likewise.
15291         * lib/unictype/sy_java_whitespace.h: Likewise.
15292
15293         * lib/unictype/Makefile: New file.
15294         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
15295         glibc.
15296         * lib/unictype/3level.h: New file, copied from glibc.
15297         * lib/unictype/3levelbit.h: New file.
15298
15299 2007-11-11  Bruno Haible  <bruno@clisp.org>
15300
15301         * modules/gperf: New file.
15302         * modules/iconv_open (Depends-on): Add it.
15303         (Makefile.am): Remove the GPERF definition.
15304
15305 2007-11-11  Bruno Haible  <bruno@clisp.org>
15306
15307         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
15308         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
15309
15310 2007-11-11  Bruno Haible  <bruno@clisp.org>
15311
15312         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
15313         (usage): Remove function.
15314
15315 2007-11-11  Bruno Haible  <bruno@clisp.org>
15316
15317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
15318         gl_FUNC_CEILF_LIBS.
15319         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
15320         gl_FUNC_CEIL_LIBS.
15321         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
15322         gl_FUNC_CEILL_LIBS.
15323         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
15324         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
15325         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
15326
15327 2007-11-11  Bruno Haible  <bruno@clisp.org>
15328
15329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
15330         roundf were declared but do not exist on functions.
15331         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
15332         roundl were declared but do not exist on functions.
15333         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
15334         HAVE_FLOORL_AND_CEILL, respectively.
15335         Needed for Sun C on Solaris 10.
15336
15337 2007-11-11  Bruno Haible  <bruno@clisp.org>
15338
15339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
15340         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
15341         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
15342         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
15343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
15344         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
15345         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
15346         HAVE_DECL_ROUNDF.
15347         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
15348         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
15349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
15350         of HAVE_DECL_ROUND*.
15351         * modules/math (Makefile.am): Update.
15352
15353 2007-11-10  Bruno Haible  <bruno@clisp.org>
15354
15355         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
15356         ptrdiff_t as m4/intl.m4.
15357
15358 2007-11-10  Jim Meyering  <meyering@redhat.com>
15359
15360         Avoid link failure for the argmatch test.
15361         * tests/test-argmatch.c (usage): Define function to avoid a link
15362         failure: argmatch_die requires a usage function.
15363
15364 2007-11-09  Bruno Haible  <bruno@clisp.org>
15365
15366         * doc/functions/snprintf.texi: Mention BeOS deficiency.
15367         * doc/functions/vsnprintf.texi: Likewise.
15368         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
15369         with a size argument < 2.
15370
15371 2007-11-09  Bruno Haible  <bruno@clisp.org>
15372
15373         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
15374         buffer. Fixes an inefficiency introduced on 2007-11-03.
15375
15376 2007-11-09  Bruno Haible  <bruno@clisp.org>
15377
15378         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
15379         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
15380
15381 2007-11-08  Jim Meyering  <meyering@redhat.com>
15382
15383         Change cache variable name prefix "jm_" to "gl_" everywhere.
15384         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
15385         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
15386         * m4/uptime.m4: s/gl_/jm_/
15387
15388 2007-11-07  Bruno Haible  <bruno@clisp.org>
15389
15390         Update to GNU gettext 0.17.
15391         * m4/intl.m4: Update to GNU gettext 0.17.
15392         * m4/po.m4: Likewise.
15393         * modules/gettext (Files): Remove m4/ulonglong.m4.
15394         (configure.ac): Require gettext infrastructure from version 0.17.
15395
15396 2007-11-06  Bruno Haible  <bruno@clisp.org>
15397
15398         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
15399         symbolic values are not defined in a public header.
15400         * lib/freadable.c (freadable) [QNX]: Likewise.
15401         * lib/freadahead.c (freadahead) [QNX]: Likewise.
15402         * lib/freading.c (freading) [QNX]: Likewise.
15403         * lib/fseterr.c (fseterr) [QNX]: Likewise.
15404         * lib/fwritable.c (fwritable) [QNX]: Likewise.
15405         * lib/fwriting.c (fwriting) [QNX]: Likewise.
15406         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
15407         Reported by Alain Magloire.
15408
15409         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
15410
15411 2007-11-05  Bruno Haible  <bruno@clisp.org>
15412
15413         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
15414         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
15415         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
15416         Reported by Eric Blake.
15417
15418 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15419             Bruno Haible  <bruno@clisp.org>
15420
15421         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
15422         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
15423         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
15424         (malloc): Undefine also before including <stdlib.h>.
15425         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
15426         Needed on OSF/1 4.0.
15427
15428 2007-11-05  Jim Meyering  <meyering@redhat.com>
15429
15430         git-version-gen: sync from coreutils.
15431         * build-aux/git-version-gen: Add comments.
15432         Change the first '-' to '.' in the snapshot version string,
15433         e.g., 6.9-377-08144 -> 6.9.377-08144
15434         Remove first parameter.
15435         Don't declare a version "-dirty" merely because a time
15436         stamp has changed.
15437
15438 2007-11-04  Bruno Haible  <bruno@clisp.org>
15439
15440         * lib/lock.h: Protect all macro definitions containing an 'if'
15441         statement through a "do { ... } while (0)".
15442         * lib/tls.h: Likewise.
15443
15444 2007-11-04  Bruno Haible  <bruno@clisp.org>
15445
15446         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
15447
15448 2007-11-04  Bruno Haible  <bruno@clisp.org>
15449
15450         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
15451         * modules/fprintf-posix (Depends-on): Add nocrash.
15452         * modules/snprintf-posix (Depends-on): Likewise.
15453         * modules/sprintf-posix (Depends-on): Likewise.
15454         * modules/vasnprintf-posix (Depends-on): Likewise.
15455         * modules/vasprintf-posix (Depends-on): Likewise.
15456         * modules/vfprintf-posix (Depends-on): Likewise.
15457         * modules/vsnprintf-posix (Depends-on): Likewise.
15458         * modules/vsprintf-posix (Depends-on): Likewise.
15459         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15460         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15461         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15462         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15463         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15464         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15465         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15466
15467 2007-11-04  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/nocrash: New file.
15470         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
15471         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
15472
15473 2007-11-04  Bruno Haible  <bruno@clisp.org>
15474
15475         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
15476         precision handling.
15477         * tests/test-vasprintf-posix.c (test_function): Likewise.
15478         * tests/test-snprintf-posix.h (test_function): Likewise.
15479         * tests/test-sprintf-posix.h (test_function): Likewise.
15480
15481         Fix *printf behaviour for large precisions on mingw and BeOS.
15482         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
15483         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
15484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
15485         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15487         gl_PRINTF_PRECISION and test its result. Invoke
15488         gl_PREREQ_VASNPRINTF_PRECISION.
15489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15496         * doc/functions/fprintf.texi: Update.
15497         * doc/functions/printf.texi: Update.
15498         * doc/functions/snprintf.texi: Update.
15499         * doc/functions/sprintf.texi: Update.
15500         * doc/functions/vfprintf.texi: Update.
15501         * doc/functions/vprintf.texi: Update.
15502         * doc/functions/vsnprintf.texi: Update.
15503         * doc/functions/vsprintf.texi: Update.
15504
15505 2007-11-04  Bruno Haible  <bruno@clisp.org>
15506
15507         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
15508
15509 2007-11-04  Bruno Haible  <bruno@clisp.org>
15510
15511         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
15512         Reported by Sylvain Beucler <beuc@gnu.org>.
15513
15514 2007-11-03  Bruno Haible  <bruno@clisp.org>
15515
15516         * tests/test-fprintf-posix2.sh: New file.
15517         * tests/test-fprintf-posix2.c: New file.
15518         * modules/fprintf-posix-tests (Files): Add them.
15519         (TESTS): Add test-fprintf-posix2.sh.
15520         (configure.ac): Check for getrlimit and setrlimit.
15521         (check_PROGRAMS): Add test-fprintf-posix2.
15522
15523         * tests/test-printf-posix2.sh: New file.
15524         * tests/test-printf-posix2.c: New file.
15525         * modules/printf-posix-tests (Files): Add them.
15526         (TESTS): Add test-printf-posix2.sh.
15527         (configure.ac): Check for getrlimit and setrlimit.
15528         (check_PROGRAMS): Add test-printf-posix2.
15529
15530         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
15531         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
15532         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
15533         (decode_double): New function, copied from decode_long_double.
15534         (scale10_round_decimal_decoded): New function, extracted from
15535         scale10_round_decimal_long_double.
15536         (scale10_round_decimal_long_double): Use it.
15537         (scale10_round_decimal_double): New function.
15538         (floorlog10): New function.
15539         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
15540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
15541         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15543         gl_PRINTF_ENOMEM and test its result. Invoke
15544         gl_PREREQ_VASNPRINTF_ENOMEM.
15545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15552         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15553         * modules/snprintf-posix (Depends-on): Likewise.
15554         * modules/sprintf-posix (Depends-on): Likewise.
15555         * modules/vasnprintf-posix (Depends-on): Likewise.
15556         * modules/vasprintf-posix (Depends-on): Likewise.
15557         * modules/vfprintf-posix (Depends-on): Likewise.
15558         * modules/vsnprintf-posix (Depends-on): Likewise.
15559         * modules/vsprintf-posix (Depends-on): Likewise.
15560         * doc/functions/fprintf.texi: Update.
15561         * doc/functions/printf.texi: Update.
15562         * doc/functions/snprintf.texi: Update.
15563         * doc/functions/sprintf.texi: Update.
15564         * doc/functions/vfprintf.texi: Update.
15565         * doc/functions/vprintf.texi: Update.
15566         * doc/functions/vsnprintf.texi: Update.
15567         * doc/functions/vsprintf.texi: Update.
15568
15569 2007-11-03  Bruno Haible  <bruno@clisp.org>
15570
15571         * modules/frexp-nolibm-tests: New file.
15572
15573         * modules/frexp-nolibm: New file.
15574         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15575
15576 2007-11-03  Bruno Haible  <bruno@clisp.org>
15577
15578         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15579         value is C99 compliant.
15580         Needed for OSF/1 5.1.
15581
15582 2007-11-03  Bruno Haible  <bruno@clisp.org>
15583
15584         Fix out-of-memory handling of vasnprintf.
15585         * lib/printf-parse.c: Include <errno.h>.
15586         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15587         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15588         is already set.
15589
15590 2007-11-02  Eric Blake  <ebb9@byu.net>
15591
15592         Fix tests on cygwin.
15593         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15594
15595 2007-11-01  Bruno Haible  <bruno@clisp.org>
15596
15597         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15598         warning.
15599         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15600         needed for POSIX compatibility.
15601
15602 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15603
15604         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15605         for compatibility with GNU.
15606
15607 2007-11-01  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15610         (putenv): Renamed from rpl_putenv. Change argument type from
15611         'const char *' to 'char *'.
15612         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15613         of defining putenv in config.h, just set REPLACE_PUTENV.
15614         * modules/putenv (Depends-on): Add stdlib.
15615         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15616         (Include): Use <stdlib.h>.
15617         * lib/stdlib.in.h (putenv): New declaration.
15618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15619         REPLACE_PUTENV.
15620         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15621         REPLACE_PUTENV.
15622         Needed for MacOS X 10.5.0.
15623         Reported by Peter O'Gorman <peter@pogma.com>.
15624
15625 2007-11-01  Jim Meyering  <meyering@redhat.com>
15626
15627         Treat an empty date string exactly like "0".
15628         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15629         if the remaining date string (to be parsed) is empty, use "0".
15630         Reported by Mischa Molhoek and discussed in this thread:
15631         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15632
15633 2007-10-31  Bruno Haible  <bruno@clisp.org>
15634
15635         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15636         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15637         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15638         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15639         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15640         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15641
15642 2007-10-31  Bruno Haible  <bruno@clisp.org>
15643
15644         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15645         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15646         (AC_TYPE_LONG_LONG_INT): Use it.
15647         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15648         it as well.
15649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15650         to m4/longlong.m4.
15651         * modules/stdint (Files): Remove m4/ulonglong.m4.
15652         * modules/strtoull (Files): Use m4/longlong.m4 instead of
15653         m4/ulonglong.m4.
15654         * modules/strtoumax (Files): Likewise.
15655
15656 2007-10-30  Bruno Haible  <bruno@clisp.org>
15657
15658         * modules/xvasprintf-posix: New file.
15659         Suggested by Eric Blake.
15660
15661 2007-10-30  Bruno Haible  <bruno@clisp.org>
15662
15663         * modules/xprintf-posix-tests: New file.
15664         * tests/test-xprintf-posix.sh: New file.
15665         * tests/test-xprintf-posix.c: New file.
15666         * tests/test-xfprintf-posix.c: New file.
15667
15668         * modules/xprintf-posix: New file.
15669
15670 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15671
15672         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15673         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15674         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15675
15676 2007-10-29  Bruno Haible  <bruno@clisp.org>
15677
15678         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15679         contain the special marker '_cv_'.
15680         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15681         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15682         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15683         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15684         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15685         Reported by Ralf Wildenhues.
15686
15687 2007-10-29  Bruno Haible  <bruno@clisp.org>
15688
15689         * gnulib-tool (func_import): When --lgpl is not specified, set
15690         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15691         GPLv3.
15692         Reported by Simon Josefsson.
15693
15694 2007-10-28  Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15697         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15698         HAVE_DECL_ISFINITE.
15699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15700         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15701         HAVE_DECL_ISFINITE.
15702
15703 2007-10-28  Bruno Haible  <bruno@clisp.org>
15704
15705         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15706         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15707
15708 2007-10-28  Bruno Haible  <bruno@clisp.org>
15709
15710         Fix link errors with Sun C 5.0 on Solaris 10.
15711         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15712         function is declared but not present in the compiler's libm.
15713         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15714         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15715         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15716         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15717         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15718         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15719         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15721         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15722         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15723         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15724         HAVE_DECL_FLOORL.
15725
15726 2007-10-28  Bruno Haible  <bruno@clisp.org>
15727
15728         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15729         gl_FUNC_FLOORL. Cache the result.
15730         (gl_FUNC_FLOORL): Use it.
15731         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15732         gl_FUNC_CEILL. Cache the result.
15733         (gl_FUNC_CEILL): Use it.
15734
15735         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15736         gl_FUNC_FLOOR. Cache the result.
15737         (gl_FUNC_FLOOR): Use it.
15738         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15739         gl_FUNC_CEIL. Cache the result.
15740         (gl_FUNC_CEIL): Use it.
15741
15742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15743         gl_FUNC_FLOORF. Cache the result.
15744         (gl_FUNC_FLOORF): Use it.
15745         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15746         gl_FUNC_CEILF. Cache the result.
15747         (gl_FUNC_CEILF): Use it.
15748
15749 2007-10-28  Bruno Haible  <bruno@clisp.org>
15750
15751         * gnulib-tool: Allow specifying the LGPL version number through
15752         --lgpl=2 or --lgpl=3.
15753         (func_usage): Document --lgpl with argument.
15754         Handle --lgpl=... arguments.
15755         (func_import): Recognize also gl_LGPL calls with an argument. When
15756         --lgpl=2 is used and the module's license is just LGPL, report an
15757         error. Set sed_transform_lib_file according to the lgpl variable. In
15758         the generated files, use --lgpl or gl_LGPL invocations with argument,
15759         if necessary.
15760         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15761         an LGPv2+ license.
15762         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15763         gl_LGPL macro.
15764
15765 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15766             Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15769         (u16_uctomb_aux): Likewise.
15770         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15771         !HAVE_INLINE.
15772         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15773
15774 2007-10-28  Bruno Haible  <bruno@clisp.org>
15775
15776         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15777         Invoke AM_GETTEXT_OPTION if it exists.
15778         * modules/vasprintf: Likewise.
15779         * modules/verror: Likewise.
15780         * modules/xprintf: Likewise.
15781         * modules/xvasprintf: Likewise.
15782
15783 2007-10-27  Ben Pfaff  <blp@gnu.org>
15784
15785         * lib/math.in.h: Define isfinite macro and prototypes for
15786         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15787         implementations.
15788         * m4/math_h.m4: New substitutions for isfinite module.
15789         * lib/isfinite.c: New file.
15790         * m4/isfinite.m4: New file.
15791         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15792         * modules/isfinite: New file.
15793         * modules/isfinite-tests: New file.
15794         * tests/tests-isfinite.c: New file.
15795         * doc/functions/isfinite.texi: Mention isfinite module.
15796         * MODULES.html.sh: Mention new module.
15797
15798 2007-10-27  Ben Pfaff  <blp@gnu.org>
15799
15800         Ralf Wildenhues reported that Tru64 4.0D declares the round
15801         functions but does not have definitions.
15802         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15803         cannot be found in any library, set the output variable to
15804         "missing" instead of "".
15805         * m4/round.m4: Also use our substitute if we cannot find round in
15806         any library, even if it is declared.
15807         * m4/roundf.m4: Likewise for roundf.
15808         * m4/roundl.m4: Likewise for roundl.
15809         * lib/math.in.h: Undefine roundf, round, roundl before defining
15810         their replacements, to allow for hypothetical systems where these
15811         may be defined as macros but not available in libraries.
15812
15813 2007-10-27  Bruno Haible  <bruno@clisp.org>
15814
15815         * doc/gnulib.texi: Invoke @firstparagraphindent.
15816         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15817         changes in gnulib.
15818         (Source changes): New section.
15819
15820 2007-10-26  Bruno Haible  <bruno@clisp.org>
15821
15822         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15823         borrowed from autoconf.
15824
15825 2007-10-26  Bruno Haible  <bruno@clisp.org>
15826
15827         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15828         strerror returned the empty string. Needed on HP-UX 11.00.
15829
15830 2007-10-24  Micah Cowan  <micah@cowan.name>
15831
15832         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15833         * build-aux/bootstrap: Remove support for now-unnecessary option,
15834         --cvs-user, and envvars CVS_USER, CVS_RSH.
15835
15836 2007-10-24  Jim Meyering  <meyering@redhat.com>
15837
15838         Avoid diagnostics from sha1sum when there is no cached checksum.
15839         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15840         if the po.s1 file hasn't been created yet.
15841
15842         * build-aux/bootstrap: Sync from coreutils:
15843         2007-10-24  Jim Meyering  <meyering@redhat.com>
15844         Get gnulib from the git repository, not from an obsolete cvs one.
15845         * build-aux/bootstrap: Suggestion from Micah Cowan.
15846         2007-10-04  Jim Meyering  <jim@meyering.net>
15847         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15848         (update_po_files): Work also when there are no .po files in po/.
15849
15850 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15851
15852         * README: Append ".git" to git and cg examples.
15853         Problem reported by Benoit Sigoure.
15854
15855 2007-10-23  Micah Cowan  <micah@cowan.name>
15856
15857         * users.txt: Add wget.
15858
15859 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15860
15861         Fix linking of some unistdio tests on FreeBSD.
15862         * modules/unistdio/u16-vsnprintf-tests
15863         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15864         * modules/unistdio/u16-vsprintf-tests
15865         (test_u16_vsnprintf1_LDADD): Likewise.
15866         * modules/unistdio/u32-vsnprintf-tests
15867         (test_u32_vsnprintf1_LDADD): Likewise.
15868         * modules/unistdio/u32-vsprintf-tests
15869         (test_u32_vsprintf1_LDADD): Likewise.
15870         * modules/unistdio/u8-vsnprintf-tests
15871         (test_u8_vsnprintf1_LDADD): Likewise.
15872         * modules/unistdio/u8-vsprintf-tests
15873         (test_u8_vsprintf1_LDADD): Likewise.
15874         * modules/unistdio/ulc-vsnprintf-tests
15875         (test_ulc_vsnprintf1_LDADD): Likewise.
15876         * modules/unistdio/ulc-vsprintf-tests
15877         (test_ulc_vsprintf1_LDADD): Likewise.
15878
15879         Fix linking of some uniconv tests on FreeBSD.
15880         * modules/uniconv/u16-conv-from-enc-tests
15881         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15882         * modules/uniconv/u16-conv-to-enc-tests
15883         (test_u16_conv_to_enc_LDADD): Likewise.
15884         * modules/uniconv/u16-strconv-from-enc-tests
15885         (test_u16_strconv_from_enc_LDADD): Likewise.
15886         * modules/uniconv/u16-strconv-to-enc-tests
15887         (test_u16_strconv_to_enc_LDADD): Likewise.
15888         * modules/uniconv/u32-conv-from-enc-tests
15889         (test_u32_conv_from_enc_LDADD): Likewise.
15890         * modules/uniconv/u32-conv-to-enc-tests
15891         (test_u32_conv_to_enc_LDADD): Likewise.
15892         * modules/uniconv/u32-strconv-from-enc-tests
15893         (test_u32_strconv_from_enc_LDADD): Likewise.
15894         * modules/uniconv/u32-strconv-to-enc-tests
15895         (test_u32_strconv_to_enc_LDADD): Likewise.
15896         * modules/uniconv/u8-conv-from-enc-tests
15897         (test_u8_conv_from_enc_LDADD): Likewise.
15898         * modules/uniconv/u8-conv-to-enc-tests
15899         (test_u8_conv_to_enc_LDADD): Likewise.
15900         * modules/uniconv/u8-strconv-from-enc-tests
15901         (test_u8_strconv_from_enc_LDADD): Likewise.
15902         * modules/uniconv/u8-strconv-to-enc-tests
15903         (test_u8_strconv_to_enc_LDADD): Likewise.
15904
15905 2007-10-22  Bruno Haible  <bruno@clisp.org>
15906
15907         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15908         size.
15909
15910 2007-10-22  Eric Blake  <ebb9@byu.net>
15911
15912         Tweak x*printf documentation.
15913         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15914         variable name and comments.
15915         Suggested by Bruno Haible.
15916
15917 2007-10-22  Bruno Haible  <bruno@clisp.org>
15918
15919         * lib/acl.c (copy_acl): Fix file name in comment.
15920
15921 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         Fix Tru64 problem with stdbool.h.
15924         * lib/stdbool.in.h (false, true):
15925         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15926         Don't declare as an enum in this situation; it runs afoul of Tru64.
15927         Problem reported by Steven M. Schweda in
15928         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15929
15930 2007-10-22  Eric Blake  <ebb9@byu.net>
15931
15932         Also wrap vf?printf.
15933         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15934         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15935         (xvprintf, xvfprintf): New functions.
15936
15937 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15938
15939         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15940         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15941
15942         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15943         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15944
15945 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15946
15947         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15948         by Bruno Haible.
15949
15950 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15951
15952         * lib/getloadavg.c
15953         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15954         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15955
15956         * tests/test-i-ring.c: Work for C89.
15957
15958 2007-10-22  Bruno Haible  <bruno@clisp.org>
15959
15960         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15961         -1u, in preprocessor expression, so that we don't test for the bug
15962         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15964
15965 2007-10-22  Eric Blake  <ebb9@byu.net>
15966
15967         * tests/test-yesno.sh: Silence stderr during test.
15968
15969 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15970
15971         * modules/crypto/gc-camellia: New file.
15972
15973         * m4/gc-camellia.m4: New file.
15974
15975         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15976
15977         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15978
15979 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15980
15981         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15982         --help to stdout.  Reported by sms@antinode.org (Steven
15983         M. Schweda).
15984
15985 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15986
15987         * users.txt: Fix link to libksba.
15988
15989 2007-10-21  Ben Pfaff  <blp@gnu.org>
15990
15991         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15992         round.c roundf implementation that depends on floorf and ceilf to
15993         be tested unconditionally.
15994
15995 2007-10-21  Ben Pfaff  <blp@gnu.org>
15996
15997         * m4/check-libm-func.m4: Removed.
15998         * m4/check-math-lib.m4: New file.
15999         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
16000         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
16001         definition and lack of AC_LIBOBJ([roundf]).
16002         * m4/roundl.m4: Ditto, and similarly for roundl.
16003         * modules/round: Reference new m4 file.
16004         * modules/roundf: Ditto.
16005         * modules/roundl: Ditto.
16006         * tests/test-round2.c (main): Use ROUND instead of round.
16007         Bug report from Bruno Haible.
16008
16009 2007-10-21  Bruno Haible  <bruno@clisp.org>
16010
16011         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
16012         context.
16013
16014 2007-10-21  Bruno Haible  <bruno@clisp.org>
16015
16016         * tests/test-wcwidth.c (main): Allow negative result for some control
16017         characters.
16018
16019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
16020         Needed on OSF/1 5.1.
16021
16022 2007-10-21  Bruno Haible  <bruno@clisp.org>
16023
16024         * tests/test-floorf1.c: Include isnanf.h.
16025         (main): Use isnanf() instead of isnan().
16026         * tests/test-ceilf1.c: Include isnanf.h.
16027         (main): Use isnanf() instead of isnan().
16028         * tests/test-truncf1.c: Include isnanf.h.
16029         (main): Use isnanf() instead of isnan().
16030         * tests/test-roundf1.c: Include isnanf.h.
16031         (main): Use isnanf() instead of isnan().
16032
16033 2007-10-21  Eric Blake  <ebb9@byu.net>
16034
16035         * users.txt: Update URL for m4.
16036
16037 2007-10-21  Bruno Haible  <bruno@clisp.org>
16038
16039         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
16040
16041 2007-10-21  Bruno Haible  <bruno@clisp.org>
16042
16043         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
16044         Git's management files if the CVS files are not present.
16045
16046 2007-10-20  Bruno Haible  <bruno@clisp.org>
16047
16048         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
16049         gcc-3.4.x.
16050
16051 2007-10-20  Ben Pfaff  <blp@gnu.org>
16052
16053         * lib/math.in.h: Declare round, roundf, roundl if we are providing
16054         implementations.
16055         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
16056         * lib/round.c: New file.
16057         * lib/roundf.c: New file.
16058         * lib/roundl.c: New file.
16059         * m4/round.m4: New file.
16060         * m4/roundf.m4: New file.
16061         * m4/roundl.m4: New file.
16062         * m4/check-libm-func-m4: New file.
16063         * modules/math: Replace round, roundf, roundl related @VARS@ in
16064         math.in.h.
16065         * modules/round: New file.
16066         * modules/round-tests: New file.
16067         * modules/roundf: New file.
16068         * modules/roundf-tests: New file.
16069         * modules/roundl: New file.
16070         * modules/roundl-tests: New file.
16071         * tests/test-round1.c: New file.
16072         * tests/test-round2.c: New file.
16073         * tests/test-roundf1.c: New file.
16074         * tests/test-roundf2.c: New file.
16075         * tests/test-roundl.c: New file.
16076         * doc/functions/round.texi: Mention round module.
16077         * doc/functions/roundf.texi: Mention roundf module.
16078         * doc/functions/roundl.texi: Mention roundl module.
16079         * MODULES.html.sh: Mention new modules.
16080         Thanks to Bruno Haible for suggestions.
16081
16082 2007-10-20  Jim Meyering  <meyering@redhat.com>
16083
16084         * lib/xprintf.c: Include <config.h> unconditionally.
16085
16086         Change xprintf's license to GPL.
16087         * modules/xprintf (License): s/LGPL/GPL/, since this module
16088         depends on modules (exit and exitfail) which are GPL.
16089         Suggestion from Bruno Haible.
16090
16091         xprintf fixes.
16092         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
16093         Use a clearer diagnostic.
16094         Patch from Bruno Haible.
16095
16096 2007-10-20  Bruno Haible  <bruno@clisp.org>
16097
16098         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
16099         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
16100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16101
16102 2007-10-20  Bruno Haible  <bruno@clisp.org>
16103
16104         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
16105         precision in the comparison result > x - 1 or similar.
16106         * tests/test-ceilf2.c (correct_result_p): Likewise.
16107         * tests/test-truncf2.c (correct_result_p): Likewise.
16108         * tests/test-trunc2.c (correct_result_p): Likewise.
16109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16110
16111 2007-10-20  Bruno Haible  <bruno@clisp.org>
16112
16113         * modules/ceil: New file.
16114         * m4/ceil.m4: New file.
16115         * doc/functions/ceil.texi: Mention the 'ceil' module.
16116
16117 2007-10-20  Bruno Haible  <bruno@clisp.org>
16118
16119         * modules/floor: New file.
16120         * m4/floor.m4: New file.
16121         * doc/functions/floor.texi: Mention the 'floor' module.
16122
16123 2007-10-20  Bruno Haible  <bruno@clisp.org>
16124
16125         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
16126         of %a.
16127         * modules/floorf-tests (Depends-on): Likewise.
16128         * modules/truncf-tests (Depends-on): Likewise.
16129         * modules/trunc-tests (Depends-on): Likewise.
16130         Reported by Ben Pfaff.
16131
16132 2007-10-19  Jim Meyering  <meyering@redhat.com>
16133
16134         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
16135         Don't bother testing specific errno values.  Just test ferror.
16136
16137         New module: xprintf
16138         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
16139
16140 2007-10-19  Bruno Haible  <bruno@clisp.org>
16141
16142         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
16143         syntax.
16144         * modules/javaexec (Makefile.am): Likewise.
16145         * modules/relocatable-prog (Makefile.am): Likewise.
16146         Suggested by Jim Meyering.
16147
16148 2007-10-18  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
16151         Reported by Jim Meyering.
16152
16153 2007-10-18  Eric Blake  <ebb9@byu.net>
16154
16155         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
16156
16157 2007-10-18  Bruno Haible  <bruno@clisp.org>
16158
16159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
16160         the format string into writable memory. Needed in Fortify conditions.
16161
16162 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
16163             Bruno Haible  <bruno@clisp.org>
16164
16165         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
16166         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
16167         * modules/trim (Depends-on): Add mbchar.
16168         (configure.ac): Add gl_FUNC_MBRTOWC.
16169         (Makefile.am): Augment lib_SOURCES.
16170
16171 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16172
16173         Modify glob.c to use fstatat and dirfd, to simplify it.
16174         Suggested by Eric Blake.
16175         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
16176         Don't include <stdbool.h>; not used.
16177         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
16178         (link_exists_p): Simplify implementation, since we can now assume
16179         dirfd and fstatat.
16180         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
16181
16182 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16183
16184         * gnulib-tool (func_get_dependencies): Fix sed script to
16185         match only tests.
16186
16187 2007-10-17  Bruno Haible  <bruno@clisp.org>
16188
16189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
16190         allow locale names without encoding suffix.
16191         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16192         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16193
16194 2007-10-16  Bruno Haible  <bruno@clisp.org>
16195
16196         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
16197         * lib/getgroups.c (getgroups): Likewise.
16198         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
16199
16200 2007-10-16  Bruno Haible  <bruno@clisp.org>
16201
16202         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
16203         * modules/malloc-posix (License): Likewise.
16204         * modules/realloc-posix (License): Likewise.
16205         * modules/calloc-posix (License): Likewise.
16206         * modules/intprops (License): Change from GPL to LGPL, with
16207         Paul Eggert's approval.
16208
16209 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16210
16211         Merge glibc changes into lib/glob.c.
16212
16213         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
16214         2007-10-15 04:59:03 UTC.  Here are the changes:
16215
16216         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
16217
16218         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
16219
16220         * lib/glob.c: Add some branch prediction throughout.
16221
16222         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
16223
16224         [BZ #5103]
16225         * lib/glob.c (glob): Recognize patterns starting \/.
16226
16227         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
16228
16229         [BZ #3996]
16230         * lib/glob.c (attribute_hidden): Define if not defined.
16231         (glob): Unescape dirname, filename or username when needed and not
16232         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
16233         is NULL.  Handle unescaped [ in pattern without closing ].
16234         Don't pass GLOB_CHECK down to recursive glob for directories.
16235         (__glob_pattern_type): New function.
16236         (__glob_pattern_p): Implement using __glob_pattern_type.
16237         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
16238         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
16239         Remove unreachable code.
16240
16241         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
16242
16243         * lib/glob.c (glob_in_dir): Add some comments and asserts to
16244         explain why there are no leaks.
16245
16246         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
16247
16248         [BZ #3253]
16249         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
16250         time, rather allocate increasingly bigger arrays of pointers, if
16251         possible with alloca, if too large with malloc.
16252
16253 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16254
16255         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
16256         Problem reported by H.Merijn Brand in
16257         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
16258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
16259         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
16260
16261 2007-10-15  Bruno Haible  <bruno@clisp.org>
16262
16263         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
16264         with explicit rpl_ prefix.
16265         * lib/fopen.c (fopen): Likewise.
16266         * lib/freopen.c (freopen): Likewise.
16267         * lib/iconv.c (iconv): Likewise.
16268         * lib/iconv_close.c (iconv_close): Likewise.
16269
16270 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16271
16272         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
16273
16274 2007-10-15  Bruno Haible  <bruno@clisp.org>
16275
16276         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
16277         <stddef.h> instead of <stdlib.h> since we only need NULL.
16278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16279
16280 2007-10-15  Bruno Haible  <bruno@clisp.org>
16281
16282         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
16283         Replace paragraph talking about LIBOBJS.
16284         Reported by Colin Watson <cjwatson@debian.org>.
16285
16286 2007-10-15  Bruno Haible  <bruno@clisp.org>
16287
16288         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
16289         <stdlib.h> before using NULL.
16290
16291 2007-10-15  Simon Josefsson  <simon@josefsson.org>
16292
16293         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
16294         Reported by Albert Chin <china@thewrittenword.com>.
16295
16296 2007-10-14  Bruno Haible  <bruno@clisp.org>
16297
16298         * modules/iconv_open-utf-tests: New file.
16299         * tests/test-iconv-utf.c: New file.
16300
16301         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
16302         * modules/iconv_open-utf: New file.
16303         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
16304         (iconv, iconv_close): New declarations.
16305         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
16306         be defined.
16307         (iconv_open): Add special handling of conversion between UTF-8 and
16308         UTF-{16,32}{BE,LE}.
16309         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
16310         * lib/iconv_close.c: New file.
16311         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
16312         gl_FUNC_ICONV_OPEN.
16313         (gl_FUNC_ICONV_OPEN): Use it.
16314         (gl_FUNC_ICONV_OPEN_UTF): New macro.
16315         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
16316         and REPLACE_ICONV_UTF.
16317         * modules/iconv_open (Depends-on): Add c-strcase.
16318         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
16319         ICONV_CONST.
16320         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
16321
16322 2007-10-13  Albert Chin  <china@thewrittenword.com>
16323             Bruno Haible  <bruno@clisp.org>
16324
16325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
16326         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
16327
16328 2007-10-13  Bruno Haible  <bruno@clisp.org>
16329
16330         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
16331         defined, use the ISO C99 inline semantics.
16332         * lib/argp.h (ARGP_EI): Likewise.
16333
16334 2007-10-13  Bruno Haible  <bruno@clisp.org>
16335
16336         Handle 'inline' change in gcc 4.3.0.
16337         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
16338         argp_fmtstream_write, argp_fmtstream_set_lmargin,
16339         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
16340         argp_fmtstream_point): Disable 'extern' declaration if the function
16341         definition is going to be provided inline.
16342         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
16343         semantics, not the ISO C99 inline semantics.
16344         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
16345         'extern' declaration if the function definition is going to be provided
16346         inline.
16347         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
16348         the GNU C inline semantics, not the ISO C99 inline semantics. With
16349         GCC 4.2, avoid a warning.
16350
16351 2007-10-13  Bruno Haible  <bruno@clisp.org>
16352
16353         * lib/freading.h (freading): Enable the use of __freading for
16354         glibc >= 2.7.
16355         * lib/freading.c (freading): Likewise.
16356
16357 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
16360         "warning: C99 inline functions are not supported; using GNU89".
16361
16362 2007-10-12  Bruno Haible  <bruno@clisp.org>
16363
16364         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
16365         of 2.
16366         * tests/test-ceilf2.c: New file.
16367         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
16368
16369         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
16370         * modules/ceilf-tests: Update.
16371
16372 2007-10-12  Bruno Haible  <bruno@clisp.org>
16373
16374         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
16375         of 2.
16376         * tests/test-floorf2.c: New file.
16377         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
16378
16379         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
16380         * modules/floorf-tests: Update.
16381
16382 2007-10-12  Bruno Haible  <bruno@clisp.org>
16383
16384         * tests/test-trunc2.c: New file.
16385         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
16386
16387         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
16388         * modules/trunc-tests: Update.
16389
16390 2007-10-12  Bruno Haible  <bruno@clisp.org>
16391
16392         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
16393         of 2.
16394         * tests/test-truncf2.c: New file.
16395         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
16396
16397         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
16398         * modules/truncf-tests: Update.
16399
16400 2007-10-11  Eric Blake  <ebb9@byu.net>
16401
16402         Don't claim strerror is broken on Interix.
16403         * doc/functions/strerror.texi (strerror): Known broken systems are
16404         now Solaris 8, and not Interix.
16405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
16406         Interix on cross-compile.
16407         Reported by Martin Koeppe in
16408         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
16409
16410 2007-10-11  Bruno Haible  <bruno@clisp.org>
16411
16412         * modules/i-ring-tests: New file.
16413         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
16414         instead of assert.
16415
16416 2007-10-11  Bruno Haible  <bruno@clisp.org>
16417
16418         * modules/filenamecat-tests: New file.
16419         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
16420         * lib/filenamecat.c: Remove test code.
16421
16422 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
16425
16426         * lib/strerror.c: Include <string.h> always, to test interface,
16427         and to remove the need for the dummy.
16428         Include intprops.h to compute width instead of doing it ourselves
16429         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
16430         (strerror): Define it to return NULL if there's no system strerror.
16431         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
16432         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
16433         ancient pre-strerror Unix systems well any more.  Saying "unknown
16434         system error" is enough.
16435         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
16436         simpler strerror.c implementation.
16437         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
16438         Simplify the tests to reflect the simpler strerror implementation.
16439         * modules/strerror (Depends-on): Add intprops.
16440
16441 2007-10-09  Eric Blake  <ebb9@byu.net>
16442
16443         Silence test-fpending.
16444         * modules/fpending-tests (Files): Add wrapper script.
16445         * tests/test-fpending.sh: New file.
16446
16447 2007-10-09  Bruno Haible  <bruno@clisp.org>
16448
16449         * MODULES.html.sh (func_module): Don't create a hyperlink for
16450         function names like 'printf_frexp'.
16451         (Misc): Add crc, memxor.
16452         (Characteristics of floating types): New section.
16453         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
16454         isnanf-nolibm, signbit, trunc, truncf, truncl.
16455         (Enhancements for ISO C 99 functions): New subsection Input/output.
16456         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
16457         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
16458         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
16459         (Compatibility checks for POSIX:2001 functions): Add clock-time.
16460         (Enhancements for POSIX:2001 functions): Add chdir-long.
16461         (File system functions): Add areadlink, chdir-safer, read-file.
16462         Remove cycle-check.
16463         (File system as inode set): New section.
16464         (Date and time): Add gethrxtime.
16465         (Multithreading): Add openmp.
16466         (Internationalization functions): Add localename.
16467         (Unicode string functions): Add unistr/u*-mbsnlen.
16468         (Support for maintaining and releasing projects): Add git-version-gen.
16469         (Lone files): Remove directories.
16470
16471 2007-10-08  Ben Pfaff  <blp@gnu.org>
16472
16473         * lib/xmalloca.h: Fix typo in comment.
16474
16475 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16476
16477         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
16478         when avoiding problems with integer overflow.  Use a portable test
16479         instead.
16480
16481 2007-10-08  Simon Josefsson  <simon@josefsson.org>
16482
16483         * modules/dummy (License): Change to LGPLv2+.
16484         * modules/float (License): Likewise
16485         * modules/realloc (License): Likewise
16486         * modules/stdlib (License): Likewise
16487
16488 2007-10-07  Bruno Haible  <bruno@clisp.org>
16489
16490         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
16491         * floor.c (TWO_MANT_DIG): Likewise.
16492         * ceil.c (TWO_MANT_DIG): Likewise.
16493         Reported by Ben Pfaff.
16494
16495 2007-10-07  Bruno Haible  <bruno@clisp.org>
16496
16497         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
16498         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
16499         * lib/frexp.c (FUNC): Likewise.
16500         * lib/printf-frexp.h (printf_frexp): Likewise.
16501         * lib/printf-frexpl.h (printf_frexpl): Likewise.
16502         * lib/printf-frexp.c (FUNC): Likewise.
16503         Suggested by Jim Meyering.
16504
16505 2007-10-07  Jim Meyering  <meyering@redhat.com>
16506
16507         Make xnanosleep's integer overflow test more robust.
16508         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
16509         so that gcc-4.3.0 doesn't optimize away this test for overflow.
16510
16511 2007-10-07  Bruno Haible  <bruno@clisp.org>
16512
16513         * NEWS: Mention the license change.
16514
16515         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
16516         abbreviations in the modules files.
16517
16518         Change copyright notice from GPLv2+ to GPLv3+.
16519         * README: Change copyright notice.
16520         * MODULES.html.sh: Likewise.
16521         * build-aux/bootstrap.conf: Likewise.
16522         * build-aux/config.libpath: Likewise.
16523         * build-aux/csharpcomp.sh.in: Likewise.
16524         * build-aux/csharpexec.sh.in: Likewise.
16525         * build-aux/install-reloc: Likewise.
16526         * build-aux/javacomp.sh.in: Likewise.
16527         * build-aux/javaexec.sh.in: Likewise.
16528         * build-aux/ldd.sh.in: Likewise.
16529         * build-aux/reloc-ldflags: Likewise.
16530         * build-aux/relocatable.sh.in: Likewise.
16531         * build-aux/x-to-1.in: Likewise.
16532         * check-module: Likewise.
16533         * config/srclistvars.sh: Likewise.
16534         * gnulib-tool: Likewise.
16535         * lib/acl-internal.h: Likewise.
16536         * lib/acl.c: Likewise.
16537         * lib/acl.h: Likewise.
16538         * lib/acl_entries.c: Likewise.
16539         * lib/areadlink-with-size.c: Likewise.
16540         * lib/areadlink.c: Likewise.
16541         * lib/areadlink.h: Likewise.
16542         * lib/argmatch.c: Likewise.
16543         * lib/argmatch.h: Likewise.
16544         * lib/argp-ba.c: Likewise.
16545         * lib/argp-eexst.c: Likewise.
16546         * lib/argp-fmtstream.c: Likewise.
16547         * lib/argp-fmtstream.h: Likewise.
16548         * lib/argp-fs-xinl.c: Likewise.
16549         * lib/argp-help.c: Likewise.
16550         * lib/argp-namefrob.h: Likewise.
16551         * lib/argp-parse.c: Likewise.
16552         * lib/argp-pin.c: Likewise.
16553         * lib/argp-pv.c: Likewise.
16554         * lib/argp-pvh.c: Likewise.
16555         * lib/argp-xinl.c: Likewise.
16556         * lib/argp.h: Likewise.
16557         * lib/at-func.c: Likewise.
16558         * lib/atanl.c: Likewise.
16559         * lib/backupfile.c: Likewise.
16560         * lib/backupfile.h: Likewise.
16561         * lib/basename.c: Likewise.
16562         * lib/binary-io.h: Likewise.
16563         * lib/byteswap.in.h: Likewise.
16564         * lib/c-stack.c: Likewise.
16565         * lib/c-stack.h: Likewise.
16566         * lib/c-strcasestr.c: Likewise.
16567         * lib/c-strcasestr.h: Likewise.
16568         * lib/c-strstr.c: Likewise.
16569         * lib/c-strstr.h: Likewise.
16570         * lib/c-strtod.c: Likewise.
16571         * lib/calloc.c: Likewise.
16572         * lib/canon-host.c: Likewise.
16573         * lib/canon-host.h: Likewise.
16574         * lib/canonicalize-lgpl.c: Likewise.
16575         * lib/canonicalize.c: Likewise.
16576         * lib/canonicalize.h: Likewise.
16577         * lib/ceil.c: Likewise.
16578         * lib/ceilf.c: Likewise.
16579         * lib/ceill.c: Likewise.
16580         * lib/chdir-long.c: Likewise.
16581         * lib/chdir-long.h: Likewise.
16582         * lib/chdir-safer.c: Likewise.
16583         * lib/chdir-safer.h: Likewise.
16584         * lib/chown.c: Likewise.
16585         * lib/classpath.c: Likewise.
16586         * lib/classpath.h: Likewise.
16587         * lib/clean-temp.c: Likewise.
16588         * lib/clean-temp.h: Likewise.
16589         * lib/cloexec.c: Likewise.
16590         * lib/close-stream.c: Likewise.
16591         * lib/closein.c: Likewise.
16592         * lib/closein.h: Likewise.
16593         * lib/closeout.c: Likewise.
16594         * lib/closeout.h: Likewise.
16595         * lib/concat-filename.c: Likewise.
16596         * lib/copy-file.c: Likewise.
16597         * lib/copy-file.h: Likewise.
16598         * lib/count-one-bits.h: Likewise.
16599         * lib/crc.c: Likewise.
16600         * lib/crc.h: Likewise.
16601         * lib/creat-safer.c: Likewise.
16602         * lib/csharpcomp.c: Likewise.
16603         * lib/csharpcomp.h: Likewise.
16604         * lib/csharpexec.c: Likewise.
16605         * lib/csharpexec.h: Likewise.
16606         * lib/cycle-check.c: Likewise.
16607         * lib/cycle-check.h: Likewise.
16608         * lib/diacrit.c: Likewise.
16609         * lib/diacrit.h: Likewise.
16610         * lib/diffseq.h: Likewise.
16611         * lib/dirchownmod.c: Likewise.
16612         * lib/dirent.in.h: Likewise.
16613         * lib/dirfd.c: Likewise.
16614         * lib/dirfd.h: Likewise.
16615         * lib/dirname.c: Likewise.
16616         * lib/dirname.h: Likewise.
16617         * lib/dummy.c: Likewise.
16618         * lib/dup-safer.c: Likewise.
16619         * lib/dup2.c: Likewise.
16620         * lib/eealloc.h: Likewise.
16621         * lib/error.c: Likewise.
16622         * lib/error.h: Likewise.
16623         * lib/euidaccess.c: Likewise.
16624         * lib/exclude.c: Likewise.
16625         * lib/exclude.h: Likewise.
16626         * lib/execute.c: Likewise.
16627         * lib/execute.h: Likewise.
16628         * lib/exitfail.c: Likewise.
16629         * lib/exitfail.h: Likewise.
16630         * lib/expl.c: Likewise.
16631         * lib/fatal-signal.c: Likewise.
16632         * lib/fatal-signal.h: Likewise.
16633         * lib/fbufmode.c: Likewise.
16634         * lib/fbufmode.h: Likewise.
16635         * lib/fchdir.c: Likewise.
16636         * lib/fchmodat.c: Likewise.
16637         * lib/fchownat.c: Likewise.
16638         * lib/fcntl--.h: Likewise.
16639         * lib/fcntl-safer.h: Likewise.
16640         * lib/fcntl.in.h: Likewise.
16641         * lib/fd-safer.c: Likewise.
16642         * lib/fflush.c: Likewise.
16643         * lib/file-has-acl.c: Likewise.
16644         * lib/file-set.c: Likewise.
16645         * lib/file-type.c: Likewise.
16646         * lib/file-type.h: Likewise.
16647         * lib/fileblocks.c: Likewise.
16648         * lib/filemode.c: Likewise.
16649         * lib/filemode.h: Likewise.
16650         * lib/filename.h: Likewise.
16651         * lib/filenamecat.c: Likewise.
16652         * lib/filenamecat.h: Likewise.
16653         * lib/findprog.c: Likewise.
16654         * lib/findprog.h: Likewise.
16655         * lib/float.in.h: Likewise.
16656         * lib/floor.c: Likewise.
16657         * lib/floorf.c: Likewise.
16658         * lib/floorl.c: Likewise.
16659         * lib/fopen-safer.c: Likewise.
16660         * lib/fopen.c: Likewise.
16661         * lib/fpending.c: Likewise.
16662         * lib/fpending.h: Likewise.
16663         * lib/fprintf.c: Likewise.
16664         * lib/fprintftime.h: Likewise.
16665         * lib/fpucw.h: Likewise.
16666         * lib/fpurge.c: Likewise.
16667         * lib/fpurge.h: Likewise.
16668         * lib/freadable.c: Likewise.
16669         * lib/freadable.h: Likewise.
16670         * lib/freadahead.c: Likewise.
16671         * lib/freadahead.h: Likewise.
16672         * lib/freading.c: Likewise.
16673         * lib/freading.h: Likewise.
16674         * lib/free.c: Likewise.
16675         * lib/freopen.c: Likewise.
16676         * lib/frexp.c: Likewise.
16677         * lib/frexpl.c: Likewise.
16678         * lib/fseek.c: Likewise.
16679         * lib/fseterr.c: Likewise.
16680         * lib/fseterr.h: Likewise.
16681         * lib/fstatat.c: Likewise.
16682         * lib/fstrcmp.c: Likewise.
16683         * lib/fstrcmp.h: Likewise.
16684         * lib/fsusage.c: Likewise.
16685         * lib/fsusage.h: Likewise.
16686         * lib/ftell.c: Likewise.
16687         * lib/ftello.c: Likewise.
16688         * lib/fts-cycle.c: Likewise.
16689         * lib/fts.c: Likewise.
16690         * lib/fts_.h: Likewise.
16691         * lib/full-read.c: Likewise.
16692         * lib/full-read.h: Likewise.
16693         * lib/full-write.c: Likewise.
16694         * lib/full-write.h: Likewise.
16695         * lib/fwritable.c: Likewise.
16696         * lib/fwritable.h: Likewise.
16697         * lib/fwriteerror.c: Likewise.
16698         * lib/fwriteerror.h: Likewise.
16699         * lib/fwriting.c: Likewise.
16700         * lib/fwriting.h: Likewise.
16701         * lib/gcd.c: Likewise.
16702         * lib/gcd.h: Likewise.
16703         * lib/getcwd.c: Likewise.
16704         * lib/getdate.h: Likewise.
16705         * lib/getdate.y: Likewise.
16706         * lib/getdomainname.c: Likewise.
16707         * lib/getdomainname.h: Likewise.
16708         * lib/getgroups.c: Likewise.
16709         * lib/gethostname.c: Likewise.
16710         * lib/gethrxtime.c: Likewise.
16711         * lib/gethrxtime.h: Likewise.
16712         * lib/getloadavg.c: Likewise.
16713         * lib/getndelim2.c: Likewise.
16714         * lib/getndelim2.h: Likewise.
16715         * lib/getnline.c: Likewise.
16716         * lib/getnline.h: Likewise.
16717         * lib/getopt.c: Likewise.
16718         * lib/getopt.in.h: Likewise.
16719         * lib/getopt1.c: Likewise.
16720         * lib/getopt_int.h: Likewise.
16721         * lib/getpagesize.h: Likewise.
16722         * lib/getsubopt.c: Likewise.
16723         * lib/gettime.c: Likewise.
16724         * lib/getugroups.c: Likewise.
16725         * lib/getugroups.h: Likewise.
16726         * lib/getusershell.c: Likewise.
16727         * lib/gl_anyavltree_list1.h: Likewise.
16728         * lib/gl_anyavltree_list2.h: Likewise.
16729         * lib/gl_anyhash_list1.h: Likewise.
16730         * lib/gl_anyhash_list2.h: Likewise.
16731         * lib/gl_anylinked_list1.h: Likewise.
16732         * lib/gl_anylinked_list2.h: Likewise.
16733         * lib/gl_anyrbtree_list1.h: Likewise.
16734         * lib/gl_anyrbtree_list2.h: Likewise.
16735         * lib/gl_anytree_list1.h: Likewise.
16736         * lib/gl_anytree_list2.h: Likewise.
16737         * lib/gl_anytree_oset.h: Likewise.
16738         * lib/gl_anytreehash_list1.h: Likewise.
16739         * lib/gl_anytreehash_list2.h: Likewise.
16740         * lib/gl_array_list.c: Likewise.
16741         * lib/gl_array_list.h: Likewise.
16742         * lib/gl_array_oset.c: Likewise.
16743         * lib/gl_array_oset.h: Likewise.
16744         * lib/gl_avltree_list.c: Likewise.
16745         * lib/gl_avltree_list.h: Likewise.
16746         * lib/gl_avltree_oset.c: Likewise.
16747         * lib/gl_avltree_oset.h: Likewise.
16748         * lib/gl_avltreehash_list.c: Likewise.
16749         * lib/gl_avltreehash_list.h: Likewise.
16750         * lib/gl_carray_list.c: Likewise.
16751         * lib/gl_carray_list.h: Likewise.
16752         * lib/gl_linked_list.c: Likewise.
16753         * lib/gl_linked_list.h: Likewise.
16754         * lib/gl_linkedhash_list.c: Likewise.
16755         * lib/gl_linkedhash_list.h: Likewise.
16756         * lib/gl_list.c: Likewise.
16757         * lib/gl_list.h: Likewise.
16758         * lib/gl_oset.c: Likewise.
16759         * lib/gl_oset.h: Likewise.
16760         * lib/gl_rbtree_list.c: Likewise.
16761         * lib/gl_rbtree_list.h: Likewise.
16762         * lib/gl_rbtree_oset.c: Likewise.
16763         * lib/gl_rbtree_oset.h: Likewise.
16764         * lib/gl_rbtreehash_list.c: Likewise.
16765         * lib/gl_rbtreehash_list.h: Likewise.
16766         * lib/gl_sublist.c: Likewise.
16767         * lib/gl_sublist.h: Likewise.
16768         * lib/group-member.c: Likewise.
16769         * lib/group-member.h: Likewise.
16770         * lib/hard-locale.c: Likewise.
16771         * lib/hard-locale.h: Likewise.
16772         * lib/hash-pjw.c: Likewise.
16773         * lib/hash-pjw.h: Likewise.
16774         * lib/hash-triple.c: Likewise.
16775         * lib/hash.c: Likewise.
16776         * lib/hash.h: Likewise.
16777         * lib/human.c: Likewise.
16778         * lib/human.h: Likewise.
16779         * lib/i-ring.c: Likewise.
16780         * lib/i-ring.h: Likewise.
16781         * lib/idcache.c: Likewise.
16782         * lib/imaxabs.c: Likewise.
16783         * lib/imaxdiv.c: Likewise.
16784         * lib/inet_pton.c: Likewise.
16785         * lib/inet_pton.h: Likewise.
16786         * lib/intprops.h: Likewise.
16787         * lib/inttostr.c: Likewise.
16788         * lib/inttostr.h: Likewise.
16789         * lib/inttypes.in.h: Likewise.
16790         * lib/isapipe.c: Likewise.
16791         * lib/isdir.c: Likewise.
16792         * lib/isnan.c: Likewise.
16793         * lib/isnan.h: Likewise.
16794         * lib/isnanf.c: Likewise.
16795         * lib/isnanf.h: Likewise.
16796         * lib/isnanl-nolibm.h: Likewise.
16797         * lib/isnanl.c: Likewise.
16798         * lib/isnanl.h: Likewise.
16799         * lib/javacomp.c: Likewise.
16800         * lib/javacomp.h: Likewise.
16801         * lib/javaexec.c: Likewise.
16802         * lib/javaexec.h: Likewise.
16803         * lib/javaversion.c: Likewise.
16804         * lib/javaversion.h: Likewise.
16805         * lib/javaversion.java: Likewise.
16806         * lib/lbrkprop.h: Likewise.
16807         * lib/lchmod.h: Likewise.
16808         * lib/lchown.c: Likewise.
16809         * lib/ldexpl.c: Likewise.
16810         * lib/linebreak.c: Likewise.
16811         * lib/linebreak.h: Likewise.
16812         * lib/linebuffer.c: Likewise.
16813         * lib/linebuffer.h: Likewise.
16814         * lib/locale.in.h: Likewise.
16815         * lib/logl.c: Likewise.
16816         * lib/long-options.c: Likewise.
16817         * lib/long-options.h: Likewise.
16818         * lib/lstat.c: Likewise.
16819         * lib/lstat.h: Likewise.
16820         * lib/math.in.h: Likewise.
16821         * lib/mbchar.c: Likewise.
16822         * lib/mbchar.h: Likewise.
16823         * lib/mbfile.h: Likewise.
16824         * lib/mbiter.h: Likewise.
16825         * lib/mbscasecmp.c: Likewise.
16826         * lib/mbscasestr.c: Likewise.
16827         * lib/mbschr.c: Likewise.
16828         * lib/mbscspn.c: Likewise.
16829         * lib/mbslen.c: Likewise.
16830         * lib/mbsncasecmp.c: Likewise.
16831         * lib/mbsnlen.c: Likewise.
16832         * lib/mbspbrk.c: Likewise.
16833         * lib/mbspcasecmp.c: Likewise.
16834         * lib/mbsrchr.c: Likewise.
16835         * lib/mbssep.c: Likewise.
16836         * lib/mbsspn.c: Likewise.
16837         * lib/mbsstr.c: Likewise.
16838         * lib/mbstok_r.c: Likewise.
16839         * lib/mbswidth.c: Likewise.
16840         * lib/mbswidth.h: Likewise.
16841         * lib/mbuiter.h: Likewise.
16842         * lib/memcasecmp.c: Likewise.
16843         * lib/memcasecmp.h: Likewise.
16844         * lib/memchr.c: Likewise.
16845         * lib/memcmp.c: Likewise.
16846         * lib/memcoll.c: Likewise.
16847         * lib/memcoll.h: Likewise.
16848         * lib/memcpy.c: Likewise.
16849         * lib/memrchr.c: Likewise.
16850         * lib/mkancesdirs.c: Likewise.
16851         * lib/mkdir-p.c: Likewise.
16852         * lib/mkdir-p.h: Likewise.
16853         * lib/mkdir.c: Likewise.
16854         * lib/mkdirat.c: Likewise.
16855         * lib/mkdtemp.c: Likewise.
16856         * lib/mkstemp-safer.c: Likewise.
16857         * lib/mkstemp.c: Likewise.
16858         * lib/modechange.c: Likewise.
16859         * lib/modechange.h: Likewise.
16860         * lib/mountlist.c: Likewise.
16861         * lib/mountlist.h: Likewise.
16862         * lib/mpsort.c: Likewise.
16863         * lib/nanosleep.c: Likewise.
16864         * lib/obstack.c: Likewise.
16865         * lib/obstack.h: Likewise.
16866         * lib/open-safer.c: Likewise.
16867         * lib/open.c: Likewise.
16868         * lib/openat-die.c: Likewise.
16869         * lib/openat-priv.h: Likewise.
16870         * lib/openat-proc.c: Likewise.
16871         * lib/openat.c: Likewise.
16872         * lib/openat.h: Likewise.
16873         * lib/pagealign_alloc.c: Likewise.
16874         * lib/pagealign_alloc.h: Likewise.
16875         * lib/physmem.c: Likewise.
16876         * lib/physmem.h: Likewise.
16877         * lib/pipe-safer.c: Likewise.
16878         * lib/pipe.c: Likewise.
16879         * lib/pipe.h: Likewise.
16880         * lib/posixtm.c: Likewise.
16881         * lib/posixtm.h: Likewise.
16882         * lib/posixver.c: Likewise.
16883         * lib/printf-frexp.c: Likewise.
16884         * lib/printf-frexp.h: Likewise.
16885         * lib/printf-frexpl.c: Likewise.
16886         * lib/printf-frexpl.h: Likewise.
16887         * lib/printf.c: Likewise.
16888         * lib/progname.c: Likewise.
16889         * lib/progname.h: Likewise.
16890         * lib/progreloc.c: Likewise.
16891         * lib/putenv.c: Likewise.
16892         * lib/quote.c: Likewise.
16893         * lib/quote.h: Likewise.
16894         * lib/quotearg.c: Likewise.
16895         * lib/quotearg.h: Likewise.
16896         * lib/raise.c: Likewise.
16897         * lib/readline.c: Likewise.
16898         * lib/readline.h: Likewise.
16899         * lib/readlink.c: Likewise.
16900         * lib/readtokens.c: Likewise.
16901         * lib/readtokens.h: Likewise.
16902         * lib/readtokens0.c: Likewise.
16903         * lib/readtokens0.h: Likewise.
16904         * lib/readutmp.c: Likewise.
16905         * lib/readutmp.h: Likewise.
16906         * lib/realloc.c: Likewise.
16907         * lib/relocwrapper.c: Likewise.
16908         * lib/rename-dest-slash.c: Likewise.
16909         * lib/rename.c: Likewise.
16910         * lib/rmdir.c: Likewise.
16911         * lib/rpmatch.c: Likewise.
16912         * lib/safe-read.c: Likewise.
16913         * lib/safe-read.h: Likewise.
16914         * lib/safe-write.c: Likewise.
16915         * lib/safe-write.h: Likewise.
16916         * lib/same-inode.h: Likewise.
16917         * lib/same.c: Likewise.
16918         * lib/same.h: Likewise.
16919         * lib/save-cwd.c: Likewise.
16920         * lib/save-cwd.h: Likewise.
16921         * lib/savedir.c: Likewise.
16922         * lib/savedir.h: Likewise.
16923         * lib/savewd.c: Likewise.
16924         * lib/savewd.h: Likewise.
16925         * lib/search.in.h: Likewise.
16926         * lib/setenv.c: Likewise.
16927         * lib/setenv.h: Likewise.
16928         * lib/settime.c: Likewise.
16929         * lib/sh-quote.c: Likewise.
16930         * lib/sh-quote.h: Likewise.
16931         * lib/sig2str.c: Likewise.
16932         * lib/sig2str.h: Likewise.
16933         * lib/signal.in.h: Likewise.
16934         * lib/signbitd.c: Likewise.
16935         * lib/signbitf.c: Likewise.
16936         * lib/signbitl.c: Likewise.
16937         * lib/sigprocmask.c: Likewise.
16938         * lib/sincosl.c: Likewise.
16939         * lib/sleep.c: Likewise.
16940         * lib/sprintf.c: Likewise.
16941         * lib/sqrtl.c: Likewise.
16942         * lib/stat-time.h: Likewise.
16943         * lib/stdio--.h: Likewise.
16944         * lib/stdio-safer.h: Likewise.
16945         * lib/stdlib--.h: Likewise.
16946         * lib/stdlib-safer.h: Likewise.
16947         * lib/stdlib.in.h: Likewise.
16948         * lib/stpcpy.c: Likewise.
16949         * lib/stpncpy.c: Likewise.
16950         * lib/strchrnul.c: Likewise.
16951         * lib/strcspn.c: Likewise.
16952         * lib/strerror.c: Likewise.
16953         * lib/strftime.c: Likewise.
16954         * lib/strftime.h: Likewise.
16955         * lib/striconveh.c: Likewise.
16956         * lib/striconveh.h: Likewise.
16957         * lib/striconveha.c: Likewise.
16958         * lib/striconveha.h: Likewise.
16959         * lib/stripslash.c: Likewise.
16960         * lib/strnlen1.c: Likewise.
16961         * lib/strnlen1.h: Likewise.
16962         * lib/strtod.c: Likewise.
16963         * lib/strtoimax.c: Likewise.
16964         * lib/strtok_r.c: Likewise.
16965         * lib/strtol.c: Likewise.
16966         * lib/strtoll.c: Likewise.
16967         * lib/strtoul.c: Likewise.
16968         * lib/strtoull.c: Likewise.
16969         * lib/sysexits.in.h: Likewise.
16970         * lib/tempname.c: Likewise.
16971         * lib/tempname.h: Likewise.
16972         * lib/timespec.h: Likewise.
16973         * lib/tls.c: Likewise.
16974         * lib/tls.h: Likewise.
16975         * lib/tmpdir.c: Likewise.
16976         * lib/tmpdir.h: Likewise.
16977         * lib/tmpfile-safer.c: Likewise.
16978         * lib/tmpfile.c: Likewise.
16979         * lib/trigl.c: Likewise.
16980         * lib/trigl.h: Likewise.
16981         * lib/trim.c: Likewise.
16982         * lib/trim.h: Likewise.
16983         * lib/trunc.c: Likewise.
16984         * lib/truncf.c: Likewise.
16985         * lib/truncl.c: Likewise.
16986         * lib/tsearch.c: Likewise.
16987         * lib/unicodeio.c: Likewise.
16988         * lib/unicodeio.h: Likewise.
16989         * lib/unistd--.h: Likewise.
16990         * lib/unistd-safer.h: Likewise.
16991         * lib/unistdio/ulc-fprintf.c: Likewise.
16992         * lib/unistdio/ulc-vfprintf.c: Likewise.
16993         * lib/unlinkdir.c: Likewise.
16994         * lib/unlinkdir.h: Likewise.
16995         * lib/unlocked-io.h: Likewise.
16996         * lib/unsetenv.c: Likewise.
16997         * lib/userspec.c: Likewise.
16998         * lib/utime.c: Likewise.
16999         * lib/utimecmp.c: Likewise.
17000         * lib/utimecmp.h: Likewise.
17001         * lib/utimens.c: Likewise.
17002         * lib/verify.h: Likewise.
17003         * lib/verror.c: Likewise.
17004         * lib/verror.h: Likewise.
17005         * lib/version-etc-fsf.c: Likewise.
17006         * lib/version-etc.c: Likewise.
17007         * lib/version-etc.h: Likewise.
17008         * lib/vfprintf.c: Likewise.
17009         * lib/vprintf.c: Likewise.
17010         * lib/vsprintf.c: Likewise.
17011         * lib/w32spawn.h: Likewise.
17012         * lib/wait-process.c: Likewise.
17013         * lib/wait-process.h: Likewise.
17014         * lib/wcwidth.c: Likewise.
17015         * lib/write-any-file.c: Likewise.
17016         * lib/xalloc-die.c: Likewise.
17017         * lib/xalloc.h: Likewise.
17018         * lib/xasprintf.c: Likewise.
17019         * lib/xgetcwd.c: Likewise.
17020         * lib/xgetcwd.h: Likewise.
17021         * lib/xgetdomainname.c: Likewise.
17022         * lib/xgetdomainname.h: Likewise.
17023         * lib/xgethostname.c: Likewise.
17024         * lib/xmalloc.c: Likewise.
17025         * lib/xmalloca.c: Likewise.
17026         * lib/xmalloca.h: Likewise.
17027         * lib/xmemcoll.c: Likewise.
17028         * lib/xnanosleep.c: Likewise.
17029         * lib/xreadlink.c: Likewise.
17030         * lib/xreadlink.h: Likewise.
17031         * lib/xsetenv.c: Likewise.
17032         * lib/xsetenv.h: Likewise.
17033         * lib/xstriconv.c: Likewise.
17034         * lib/xstriconv.h: Likewise.
17035         * lib/xstrndup.c: Likewise.
17036         * lib/xstrndup.h: Likewise.
17037         * lib/xstrtod.c: Likewise.
17038         * lib/xstrtod.h: Likewise.
17039         * lib/xstrtol-error.c: Likewise.
17040         * lib/xstrtol.c: Likewise.
17041         * lib/xstrtol.h: Likewise.
17042         * lib/xtime.h: Likewise.
17043         * lib/xvasprintf.c: Likewise.
17044         * lib/xvasprintf.h: Likewise.
17045         * lib/yesno.c: Likewise.
17046         * lib/yesno.h: Likewise.
17047         * posix-modules: Likewise.
17048         * tests/test-alloca-opt.c: Likewise.
17049         * tests/test-arcfour.c: Likewise.
17050         * tests/test-arctwo.c: Likewise.
17051         * tests/test-argmatch.c: Likewise.
17052         * tests/test-argp-2.sh: Likewise.
17053         * tests/test-argp.c: Likewise.
17054         * tests/test-arpa_inet.c: Likewise.
17055         * tests/test-array_list.c: Likewise.
17056         * tests/test-array_oset.c: Likewise.
17057         * tests/test-atexit.c: Likewise.
17058         * tests/test-avltree_list.c: Likewise.
17059         * tests/test-avltree_oset.c: Likewise.
17060         * tests/test-avltreehash_list.c: Likewise.
17061         * tests/test-base64.c: Likewise.
17062         * tests/test-binary-io.c: Likewise.
17063         * tests/test-byteswap.c: Likewise.
17064         * tests/test-c-ctype.c: Likewise.
17065         * tests/test-c-strcasecmp.c: Likewise.
17066         * tests/test-c-strcasestr.c: Likewise.
17067         * tests/test-c-strncasecmp.c: Likewise.
17068         * tests/test-c-strstr.c: Likewise.
17069         * tests/test-canonicalize-lgpl.c: Likewise.
17070         * tests/test-canonicalize.c: Likewise.
17071         * tests/test-carray_list.c: Likewise.
17072         * tests/test-ceilf.c: Likewise.
17073         * tests/test-ceill.c: Likewise.
17074         * tests/test-count-one-bits.c: Likewise.
17075         * tests/test-crc.c: Likewise.
17076         * tests/test-dirname.c: Likewise.
17077         * tests/test-fbufmode.c: Likewise.
17078         * tests/test-fcntl.c: Likewise.
17079         * tests/test-fflush.c: Likewise.
17080         * tests/test-floorf.c: Likewise.
17081         * tests/test-floorl.c: Likewise.
17082         * tests/test-fopen.c: Likewise.
17083         * tests/test-fprintf-posix.c: Likewise.
17084         * tests/test-fprintf-posix.h: Likewise.
17085         * tests/test-fpurge.c: Likewise.
17086         * tests/test-freadable.c: Likewise.
17087         * tests/test-freadahead.c: Likewise.
17088         * tests/test-freading.c: Likewise.
17089         * tests/test-freopen.c: Likewise.
17090         * tests/test-frexp.c: Likewise.
17091         * tests/test-frexpl.c: Likewise.
17092         * tests/test-fseek.c: Likewise.
17093         * tests/test-fseeko.c: Likewise.
17094         * tests/test-fseterr.c: Likewise.
17095         * tests/test-fstrcmp.c: Likewise.
17096         * tests/test-ftell.c: Likewise.
17097         * tests/test-ftello.c: Likewise.
17098         * tests/test-fwritable.c: Likewise.
17099         * tests/test-fwriting.c: Likewise.
17100         * tests/test-getaddrinfo.c: Likewise.
17101         * tests/test-getpass.c: Likewise.
17102         * tests/test-gettimeofday.c: Likewise.
17103         * tests/test-hmac-md5.c: Likewise.
17104         * tests/test-hmac-sha1.c: Likewise.
17105         * tests/test-iconv.c: Likewise.
17106         * tests/test-iconvme.c: Likewise.
17107         * tests/test-inttypes.c: Likewise.
17108         * tests/test-isnan.c: Likewise.
17109         * tests/test-isnanf.c: Likewise.
17110         * tests/test-isnanl-nolibm.c: Likewise.
17111         * tests/test-isnanl.c: Likewise.
17112         * tests/test-isnanl.h: Likewise.
17113         * tests/test-ldexpl.c: Likewise.
17114         * tests/test-linked_list.c: Likewise.
17115         * tests/test-linkedhash_list.c: Likewise.
17116         * tests/test-locale.c: Likewise.
17117         * tests/test-localename.c: Likewise.
17118         * tests/test-lock.c: Likewise.
17119         * tests/test-lseek.c: Likewise.
17120         * tests/test-malloca.c: Likewise.
17121         * tests/test-math.c: Likewise.
17122         * tests/test-mbscasecmp.c: Likewise.
17123         * tests/test-mbscasestr1.c: Likewise.
17124         * tests/test-mbscasestr2.c: Likewise.
17125         * tests/test-mbscasestr3.c: Likewise.
17126         * tests/test-mbscasestr4.c: Likewise.
17127         * tests/test-mbschr.c: Likewise.
17128         * tests/test-mbscspn.c: Likewise.
17129         * tests/test-mbsncasecmp.c: Likewise.
17130         * tests/test-mbspbrk.c: Likewise.
17131         * tests/test-mbspcasecmp.c: Likewise.
17132         * tests/test-mbsrchr.c: Likewise.
17133         * tests/test-mbsspn.c: Likewise.
17134         * tests/test-mbsstr1.c: Likewise.
17135         * tests/test-mbsstr2.c: Likewise.
17136         * tests/test-mbsstr3.c: Likewise.
17137         * tests/test-md5.c: Likewise.
17138         * tests/test-memmem.c: Likewise.
17139         * tests/test-netinet_in.c: Likewise.
17140         * tests/test-open.c: Likewise.
17141         * tests/test-printf-frexp.c: Likewise.
17142         * tests/test-printf-frexpl.c: Likewise.
17143         * tests/test-printf-posix.c: Likewise.
17144         * tests/test-printf-posix.h: Likewise.
17145         * tests/test-rbtree_list.c: Likewise.
17146         * tests/test-rbtree_oset.c: Likewise.
17147         * tests/test-rbtreehash_list.c: Likewise.
17148         * tests/test-read-file.c: Likewise.
17149         * tests/test-rijndael.c: Likewise.
17150         * tests/test-search.c: Likewise.
17151         * tests/test-signbit.c: Likewise.
17152         * tests/test-sleep.c: Likewise.
17153         * tests/test-snprintf-posix.c: Likewise.
17154         * tests/test-snprintf-posix.h: Likewise.
17155         * tests/test-snprintf.c: Likewise.
17156         * tests/test-sprintf-posix.c: Likewise.
17157         * tests/test-sprintf-posix.h: Likewise.
17158         * tests/test-stat-time.c: Likewise.
17159         * tests/test-stdbool.c: Likewise.
17160         * tests/test-stdint.c: Likewise.
17161         * tests/test-stdio.c: Likewise.
17162         * tests/test-stdlib.c: Likewise.
17163         * tests/test-stpncpy.c: Likewise.
17164         * tests/test-strcasestr.c: Likewise.
17165         * tests/test-striconv.c: Likewise.
17166         * tests/test-striconveh.c: Likewise.
17167         * tests/test-striconveha.c: Likewise.
17168         * tests/test-string.c: Likewise.
17169         * tests/test-sys_select.c: Likewise.
17170         * tests/test-sys_socket.c: Likewise.
17171         * tests/test-sys_stat.c: Likewise.
17172         * tests/test-sys_time.c: Likewise.
17173         * tests/test-sysexits.c: Likewise.
17174         * tests/test-time.c: Likewise.
17175         * tests/test-tls.c: Likewise.
17176         * tests/test-trunc.c: Likewise.
17177         * tests/test-truncf.c: Likewise.
17178         * tests/test-truncl.c: Likewise.
17179         * tests/test-unistd.c: Likewise.
17180         * tests/test-vasnprintf-posix.c: Likewise.
17181         * tests/test-vasnprintf-posix2.c: Likewise.
17182         * tests/test-vasnprintf.c: Likewise.
17183         * tests/test-vasprintf-posix.c: Likewise.
17184         * tests/test-vasprintf.c: Likewise.
17185         * tests/test-verify.c: Likewise.
17186         * tests/test-vfprintf-posix.c: Likewise.
17187         * tests/test-vprintf-posix.c: Likewise.
17188         * tests/test-vsnprintf-posix.c: Likewise.
17189         * tests/test-vsnprintf.c: Likewise.
17190         * tests/test-vsprintf-posix.c: Likewise.
17191         * tests/test-wchar.c: Likewise.
17192         * tests/test-wctype.c: Likewise.
17193         * tests/test-wcwidth.c: Likewise.
17194         * tests/test-xstrtol.c: Likewise.
17195         * tests/test-xvasprintf.c: Likewise.
17196         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17197         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17198         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17199         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17200         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17201         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17202         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17203         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17204         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17205         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17206         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17207         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17208         * tests/uniname/test-uninames.c: Likewise.
17209         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17210         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
17211         * tests/unistdio/test-u16-printf1.h: Likewise.
17212         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17213         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17214         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17215         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17216         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17217         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17218         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17219         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
17220         * tests/unistdio/test-u32-printf1.h: Likewise.
17221         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17222         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17223         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17224         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17225         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17226         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17227         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17228         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
17229         * tests/unistdio/test-u8-printf1.h: Likewise.
17230         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17231         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17232         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17233         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17234         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17235         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17236         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17237         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
17238         * tests/unistdio/test-ulc-printf1.h: Likewise.
17239         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17240         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17241         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17242         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17243         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17244         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17245         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17246         * tests/uniwidth/test-u16-width.c: Likewise.
17247         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17248         * tests/uniwidth/test-u32-width.c: Likewise.
17249         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17250         * tests/uniwidth/test-u8-width.c: Likewise.
17251         * tests/uniwidth/test-uc_width.c: Likewise.
17252         * config/srclist-update: Likewise.
17253         (fixlicense): Update to GPLv3+.
17254
17255         Change copyright notice from LGPLv2.1+ to LGPLv3+.
17256         * tests/test-tsearch.c: Change copyright notice.
17257
17258         Change copyright notice from LGPLv2.0+ to LGPLv3+.
17259         * lib/c-strcaseeq.h: Change copyright notice.
17260         * lib/streq.h: Likewise.
17261         * lib/uniconv.h: Likewise.
17262         * lib/uniconv/u-conv-from-enc.h: Likewise.
17263         * lib/uniconv/u-conv-to-enc.h: Likewise.
17264         * lib/uniconv/u-strconv-from-enc.h: Likewise.
17265         * lib/uniconv/u-strconv-to-enc.h: Likewise.
17266         * lib/uniconv/u16-conv-from-enc.c: Likewise.
17267         * lib/uniconv/u16-conv-to-enc.c: Likewise.
17268         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
17269         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
17270         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
17271         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
17272         * lib/uniconv/u32-conv-from-enc.c: Likewise.
17273         * lib/uniconv/u32-conv-to-enc.c: Likewise.
17274         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
17275         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
17276         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
17277         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
17278         * lib/uniconv/u8-conv-from-enc.c: Likewise.
17279         * lib/uniconv/u8-conv-to-enc.c: Likewise.
17280         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
17281         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
17282         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
17283         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
17284         * lib/uniname.h: Likewise.
17285         * lib/uniname/uniname.c: Likewise.
17286         * lib/unistdio.h: Likewise.
17287         * lib/unistdio/u-asnprintf.h: Likewise.
17288         * lib/unistdio/u-asprintf.h: Likewise.
17289         * lib/unistdio/u-printf-args.c: Likewise.
17290         * lib/unistdio/u-printf-args.h: Likewise.
17291         * lib/unistdio/u-printf-parse.h: Likewise.
17292         * lib/unistdio/u-snprintf.h: Likewise.
17293         * lib/unistdio/u-sprintf.h: Likewise.
17294         * lib/unistdio/u-vasprintf.h: Likewise.
17295         * lib/unistdio/u-vsnprintf.h: Likewise.
17296         * lib/unistdio/u-vsprintf.h: Likewise.
17297         * lib/unistdio/u16-asnprintf.c: Likewise.
17298         * lib/unistdio/u16-asprintf.c: Likewise.
17299         * lib/unistdio/u16-printf-parse.c: Likewise.
17300         * lib/unistdio/u16-snprintf.c: Likewise.
17301         * lib/unistdio/u16-sprintf.c: Likewise.
17302         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
17303         * lib/unistdio/u16-u16-asprintf.c: Likewise.
17304         * lib/unistdio/u16-u16-snprintf.c: Likewise.
17305         * lib/unistdio/u16-u16-sprintf.c: Likewise.
17306         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
17307         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
17308         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
17309         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
17310         * lib/unistdio/u16-vasnprintf.c: Likewise.
17311         * lib/unistdio/u16-vasprintf.c: Likewise.
17312         * lib/unistdio/u16-vsnprintf.c: Likewise.
17313         * lib/unistdio/u16-vsprintf.c: Likewise.
17314         * lib/unistdio/u32-asnprintf.c: Likewise.
17315         * lib/unistdio/u32-asprintf.c: Likewise.
17316         * lib/unistdio/u32-printf-parse.c: Likewise.
17317         * lib/unistdio/u32-snprintf.c: Likewise.
17318         * lib/unistdio/u32-sprintf.c: Likewise.
17319         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
17320         * lib/unistdio/u32-u32-asprintf.c: Likewise.
17321         * lib/unistdio/u32-u32-snprintf.c: Likewise.
17322         * lib/unistdio/u32-u32-sprintf.c: Likewise.
17323         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
17324         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
17325         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
17326         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
17327         * lib/unistdio/u32-vasnprintf.c: Likewise.
17328         * lib/unistdio/u32-vasprintf.c: Likewise.
17329         * lib/unistdio/u32-vsnprintf.c: Likewise.
17330         * lib/unistdio/u32-vsprintf.c: Likewise.
17331         * lib/unistdio/u8-asnprintf.c: Likewise.
17332         * lib/unistdio/u8-asprintf.c: Likewise.
17333         * lib/unistdio/u8-printf-parse.c: Likewise.
17334         * lib/unistdio/u8-snprintf.c: Likewise.
17335         * lib/unistdio/u8-sprintf.c: Likewise.
17336         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
17337         * lib/unistdio/u8-u8-asprintf.c: Likewise.
17338         * lib/unistdio/u8-u8-snprintf.c: Likewise.
17339         * lib/unistdio/u8-u8-sprintf.c: Likewise.
17340         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
17341         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
17342         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
17343         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
17344         * lib/unistdio/u8-vasnprintf.c: Likewise.
17345         * lib/unistdio/u8-vasprintf.c: Likewise.
17346         * lib/unistdio/u8-vsnprintf.c: Likewise.
17347         * lib/unistdio/u8-vsprintf.c: Likewise.
17348         * lib/unistdio/ulc-asnprintf.c: Likewise.
17349         * lib/unistdio/ulc-asprintf.c: Likewise.
17350         * lib/unistdio/ulc-printf-parse.c: Likewise.
17351         * lib/unistdio/ulc-snprintf.c: Likewise.
17352         * lib/unistdio/ulc-sprintf.c: Likewise.
17353         * lib/unistdio/ulc-vasnprintf.c: Likewise.
17354         * lib/unistdio/ulc-vasprintf.c: Likewise.
17355         * lib/unistdio/ulc-vsnprintf.c: Likewise.
17356         * lib/unistdio/ulc-vsprintf.c: Likewise.
17357         * lib/unistr.h: Likewise.
17358         * lib/unistr/u-cpy-alloc.h: Likewise.
17359         * lib/unistr/u-cpy.h: Likewise.
17360         * lib/unistr/u-endswith.h: Likewise.
17361         * lib/unistr/u-move.h: Likewise.
17362         * lib/unistr/u-set.h: Likewise.
17363         * lib/unistr/u-startswith.h: Likewise.
17364         * lib/unistr/u-stpcpy.h: Likewise.
17365         * lib/unistr/u-stpncpy.h: Likewise.
17366         * lib/unistr/u-strcat.h: Likewise.
17367         * lib/unistr/u-strcpy.h: Likewise.
17368         * lib/unistr/u-strcspn.h: Likewise.
17369         * lib/unistr/u-strdup.h: Likewise.
17370         * lib/unistr/u-strlen.h: Likewise.
17371         * lib/unistr/u-strncat.h: Likewise.
17372         * lib/unistr/u-strncpy.h: Likewise.
17373         * lib/unistr/u-strnlen.h: Likewise.
17374         * lib/unistr/u-strpbrk.h: Likewise.
17375         * lib/unistr/u-strspn.h: Likewise.
17376         * lib/unistr/u-strstr.h: Likewise.
17377         * lib/unistr/u-strtok.h: Likewise.
17378         * lib/unistr/u16-check.c: Likewise.
17379         * lib/unistr/u16-chr.c: Likewise.
17380         * lib/unistr/u16-cmp.c: Likewise.
17381         * lib/unistr/u16-cpy-alloc.c: Likewise.
17382         * lib/unistr/u16-cpy.c: Likewise.
17383         * lib/unistr/u16-endswith.c: Likewise.
17384         * lib/unistr/u16-mblen.c: Likewise.
17385         * lib/unistr/u16-mbsnlen.c: Likewise.
17386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17388         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17389         * lib/unistr/u16-mbtouc.c: Likewise.
17390         * lib/unistr/u16-mbtoucr.c: Likewise.
17391         * lib/unistr/u16-move.c: Likewise.
17392         * lib/unistr/u16-next.c: Likewise.
17393         * lib/unistr/u16-prev.c: Likewise.
17394         * lib/unistr/u16-set.c: Likewise.
17395         * lib/unistr/u16-startswith.c: Likewise.
17396         * lib/unistr/u16-stpcpy.c: Likewise.
17397         * lib/unistr/u16-stpncpy.c: Likewise.
17398         * lib/unistr/u16-strcat.c: Likewise.
17399         * lib/unistr/u16-strchr.c: Likewise.
17400         * lib/unistr/u16-strcmp.c: Likewise.
17401         * lib/unistr/u16-strcpy.c: Likewise.
17402         * lib/unistr/u16-strcspn.c: Likewise.
17403         * lib/unistr/u16-strdup.c: Likewise.
17404         * lib/unistr/u16-strlen.c: Likewise.
17405         * lib/unistr/u16-strmblen.c: Likewise.
17406         * lib/unistr/u16-strmbtouc.c: Likewise.
17407         * lib/unistr/u16-strncat.c: Likewise.
17408         * lib/unistr/u16-strncmp.c: Likewise.
17409         * lib/unistr/u16-strncpy.c: Likewise.
17410         * lib/unistr/u16-strnlen.c: Likewise.
17411         * lib/unistr/u16-strpbrk.c: Likewise.
17412         * lib/unistr/u16-strrchr.c: Likewise.
17413         * lib/unistr/u16-strspn.c: Likewise.
17414         * lib/unistr/u16-strstr.c: Likewise.
17415         * lib/unistr/u16-strtok.c: Likewise.
17416         * lib/unistr/u16-to-u32.c: Likewise.
17417         * lib/unistr/u16-to-u8.c: Likewise.
17418         * lib/unistr/u16-uctomb-aux.c: Likewise.
17419         * lib/unistr/u16-uctomb.c: Likewise.
17420         * lib/unistr/u32-check.c: Likewise.
17421         * lib/unistr/u32-chr.c: Likewise.
17422         * lib/unistr/u32-cmp.c: Likewise.
17423         * lib/unistr/u32-cpy-alloc.c: Likewise.
17424         * lib/unistr/u32-cpy.c: Likewise.
17425         * lib/unistr/u32-endswith.c: Likewise.
17426         * lib/unistr/u32-mblen.c: Likewise.
17427         * lib/unistr/u32-mbsnlen.c: Likewise.
17428         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17429         * lib/unistr/u32-mbtouc.c: Likewise.
17430         * lib/unistr/u32-mbtoucr.c: Likewise.
17431         * lib/unistr/u32-move.c: Likewise.
17432         * lib/unistr/u32-next.c: Likewise.
17433         * lib/unistr/u32-prev.c: Likewise.
17434         * lib/unistr/u32-set.c: Likewise.
17435         * lib/unistr/u32-startswith.c: Likewise.
17436         * lib/unistr/u32-stpcpy.c: Likewise.
17437         * lib/unistr/u32-stpncpy.c: Likewise.
17438         * lib/unistr/u32-strcat.c: Likewise.
17439         * lib/unistr/u32-strchr.c: Likewise.
17440         * lib/unistr/u32-strcmp.c: Likewise.
17441         * lib/unistr/u32-strcpy.c: Likewise.
17442         * lib/unistr/u32-strcspn.c: Likewise.
17443         * lib/unistr/u32-strdup.c: Likewise.
17444         * lib/unistr/u32-strlen.c: Likewise.
17445         * lib/unistr/u32-strmblen.c: Likewise.
17446         * lib/unistr/u32-strmbtouc.c: Likewise.
17447         * lib/unistr/u32-strncat.c: Likewise.
17448         * lib/unistr/u32-strncmp.c: Likewise.
17449         * lib/unistr/u32-strncpy.c: Likewise.
17450         * lib/unistr/u32-strnlen.c: Likewise.
17451         * lib/unistr/u32-strpbrk.c: Likewise.
17452         * lib/unistr/u32-strrchr.c: Likewise.
17453         * lib/unistr/u32-strspn.c: Likewise.
17454         * lib/unistr/u32-strstr.c: Likewise.
17455         * lib/unistr/u32-strtok.c: Likewise.
17456         * lib/unistr/u32-to-u16.c: Likewise.
17457         * lib/unistr/u32-to-u8.c: Likewise.
17458         * lib/unistr/u32-uctomb.c: Likewise.
17459         * lib/unistr/u8-check.c: Likewise.
17460         * lib/unistr/u8-chr.c: Likewise.
17461         * lib/unistr/u8-cmp.c: Likewise.
17462         * lib/unistr/u8-cpy-alloc.c: Likewise.
17463         * lib/unistr/u8-cpy.c: Likewise.
17464         * lib/unistr/u8-endswith.c: Likewise.
17465         * lib/unistr/u8-mblen.c: Likewise.
17466         * lib/unistr/u8-mbsnlen.c: Likewise.
17467         * lib/unistr/u8-mbtouc-aux.c: Likewise.
17468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17469         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17470         * lib/unistr/u8-mbtouc.c: Likewise.
17471         * lib/unistr/u8-mbtoucr.c: Likewise.
17472         * lib/unistr/u8-move.c: Likewise.
17473         * lib/unistr/u8-next.c: Likewise.
17474         * lib/unistr/u8-prev.c: Likewise.
17475         * lib/unistr/u8-set.c: Likewise.
17476         * lib/unistr/u8-startswith.c: Likewise.
17477         * lib/unistr/u8-stpcpy.c: Likewise.
17478         * lib/unistr/u8-stpncpy.c: Likewise.
17479         * lib/unistr/u8-strcat.c: Likewise.
17480         * lib/unistr/u8-strchr.c: Likewise.
17481         * lib/unistr/u8-strcmp.c: Likewise.
17482         * lib/unistr/u8-strcpy.c: Likewise.
17483         * lib/unistr/u8-strcspn.c: Likewise.
17484         * lib/unistr/u8-strdup.c: Likewise.
17485         * lib/unistr/u8-strlen.c: Likewise.
17486         * lib/unistr/u8-strmblen.c: Likewise.
17487         * lib/unistr/u8-strmbtouc.c: Likewise.
17488         * lib/unistr/u8-strncat.c: Likewise.
17489         * lib/unistr/u8-strncmp.c: Likewise.
17490         * lib/unistr/u8-strncpy.c: Likewise.
17491         * lib/unistr/u8-strnlen.c: Likewise.
17492         * lib/unistr/u8-strpbrk.c: Likewise.
17493         * lib/unistr/u8-strrchr.c: Likewise.
17494         * lib/unistr/u8-strspn.c: Likewise.
17495         * lib/unistr/u8-strstr.c: Likewise.
17496         * lib/unistr/u8-strtok.c: Likewise.
17497         * lib/unistr/u8-to-u16.c: Likewise.
17498         * lib/unistr/u8-to-u32.c: Likewise.
17499         * lib/unistr/u8-uctomb-aux.c: Likewise.
17500         * lib/unistr/u8-uctomb.c: Likewise.
17501         * lib/unitypes.h: Likewise.
17502         * lib/uniwidth.h: Likewise.
17503         * lib/uniwidth/cjk.h: Likewise.
17504         * lib/uniwidth/u16-strwidth.c: Likewise.
17505         * lib/uniwidth/u16-width.c: Likewise.
17506         * lib/uniwidth/u32-strwidth.c: Likewise.
17507         * lib/uniwidth/u32-width.c: Likewise.
17508         * lib/uniwidth/u8-strwidth.c: Likewise.
17509         * lib/uniwidth/u8-width.c: Likewise.
17510         * lib/uniwidth/width.c: Likewise.
17511
17512 2007-10-07  Bruno Haible  <bruno@clisp.org>
17513
17514         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
17515         The file is still under LGPL (see modules/inttypes).
17516
17517 2007-10-06  Bruno Haible  <bruno@clisp.org>
17518
17519         * modules/trunc (Dependencies): Add 'extensions'.
17520         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
17521         Reported by Ben Pfaff <blp@gnu.org>.
17522
17523 2007-10-06  Bruno Haible  <bruno@clisp.org>
17524
17525         * modules/freopen-tests: New file.
17526         * tests/test-freopen.c: New file.
17527
17528         * modules/fopen-tests: New file.
17529         * tests/test-fopen.c: New file.
17530
17531         * modules/fopen: New file.
17532         * lib/fopen.c: New file.
17533         * m4/fopen.m4: New file.
17534         * modules/freopen: New file.
17535         * lib/freopen.c: New file.
17536         * m4/freopen.m4: New file.
17537         * lib/stdio.in.h (fopen, freopen): New declarations.
17538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17539         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17540         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
17541         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17542         * doc/functions/fopen.texi: Mention the 'fopen' module.
17543         * doc/functions/freopen.texi: Mention the 'freopen' module.
17544
17545 2007-10-06  Bruno Haible  <bruno@clisp.org>
17546
17547         * modules/open-tests: New file.
17548         * tests/test-open.c: New file.
17549
17550         * modules/open: New file.
17551         * lib/open.c: New file.
17552         * m4/open.m4: New file.
17553         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17554         lib/open.c does.
17555         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17556         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17557         macros.
17558         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17559         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17560         REPLACE_OPEN.
17561         * doc/functions/open.texi: Mention the 'open' module.
17562
17563 2007-10-04  Bruno Haible  <bruno@clisp.org>
17564
17565         * modules/ceill-tests: New file.
17566         * tests/test-ceill.c: New file.
17567
17568         * modules/ceill: New file.
17569         * lib/ceill.c: Replace entire file.
17570         * m4/ceill.m4: New file.
17571         * lib/math.in.h (ceill): Replace declaration.
17572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17573         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17574         * doc/functions/ceill.texi: Mention the 'ceill' module.
17575         * modules/mathl (Files): Remove lib/ceill.c.
17576         (Depends-on): Add ceill.
17577
17578 2007-10-04  Bruno Haible  <bruno@clisp.org>
17579
17580         * modules/ceilf-tests: New file.
17581         * tests/test-ceilf.c: New file.
17582
17583         * modules/ceilf: New file.
17584         * lib/ceil.c: New file.
17585         * lib/ceilf.c: New file.
17586         * m4/ceilf.m4: New file.
17587         * lib/math.in.h (ceilf): New declaration.
17588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17589         HAVE_DECL_CEILF.
17590         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17591         HAVE_DECL_CEILF.
17592         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17593
17594 2007-10-04  Bruno Haible  <bruno@clisp.org>
17595
17596         * modules/floorl-tests: New file.
17597         * tests/test-floorl.c: New file.
17598
17599         * modules/floorl: New file.
17600         * lib/floorl.c: Replace entire file.
17601         * m4/floorl.m4: New file.
17602         * lib/math.in.h (floorl): Replace declaration.
17603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17604         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17605         * doc/functions/floorl.texi: Mention the 'floorl' module.
17606         * modules/mathl (Files): Remove lib/floorl.c.
17607         (Depends-on): Add floorl.
17608
17609 2007-10-04  Bruno Haible  <bruno@clisp.org>
17610
17611         * modules/floorf-tests: New file.
17612         * tests/test-floorf.c: New file.
17613
17614         * modules/floorf: New file.
17615         * lib/floor.c: New file.
17616         * lib/floorf.c: New file.
17617         * m4/floorf.m4: New file.
17618         * lib/math.in.h (floorf): New declaration.
17619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17620         HAVE_DECL_FLOORF.
17621         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17622         HAVE_DECL_FLOORF.
17623         * doc/functions/floorf.texi: Mention the 'floorf' module.
17624
17625 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17626             Bruno Haible  <bruno@clisp.org>
17627
17628         Advertise for the Git server instead of the CVS server.
17629         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17630         repository instead of the CVS one.
17631         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17632         about all VCS systems generically.
17633         * doc/gnulib.texi (Introduction): Capitalize `Git'.
17634
17635 2007-10-04  Bruno Haible  <bruno@clisp.org>
17636
17637         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17638         means.
17639         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17640
17641 2007-10-04  Bruno Haible  <bruno@clisp.org>
17642
17643         * modules/truncl-tests: New file.
17644         * tests/test-truncl.c: New file.
17645
17646         * modules/truncl: New file.
17647         * lib/truncl.c: New file.
17648         * m4/truncl.m4: New file.
17649         * lib/math.in.h (truncl): New declaration.
17650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17651         HAVE_DECL_TRUNCL.
17652         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17653         HAVE_DECL_TRUNCL.
17654         * doc/functions/truncl.texi: Mention the 'truncl' module.
17655
17656 2007-10-04  Bruno Haible  <bruno@clisp.org>
17657
17658         * modules/truncf-tests: New file.
17659         * tests/test-truncf.c: New file.
17660
17661         * modules/truncf: New file.
17662         * lib/trunc.c: Make paramerizable through USE_* macros.
17663         * lib/truncf.c: New file.
17664         * m4/truncf.m4: New file.
17665         * lib/math.in.h (truncf): New declaration.
17666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17667         HAVE_DECL_TRUNCF.
17668         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17669         HAVE_DECL_TRUNCF.
17670         * doc/functions/truncf.texi: Mention the 'truncf' module.
17671
17672 2007-10-03  Bruno Haible  <bruno@clisp.org>
17673
17674         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17675         augmentation also for tests modules.
17676         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17677         * modules/atexit-tests (Makefile.am): Likewise.
17678         * modules/binary-io-tests (Makefile.am): Likewise.
17679         * modules/c-strcase-tests (Makefile.am): Likewise.
17680         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17681         * modules/canonicalize-tests (Makefile.am): Likewise.
17682         * modules/closein-tests (Makefile.am): Likewise.
17683         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17684         * modules/freadahead-tests (Makefile.am): Likewise.
17685         * modules/fseek-tests (Makefile.am): Likewise.
17686         * modules/fseeko-tests (Makefile.am): Likewise.
17687         * modules/ftell-tests (Makefile.am): Likewise.
17688         * modules/ftello-tests (Makefile.am): Likewise.
17689         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17690         * modules/isnanl-tests (Makefile.am): Likewise.
17691         * modules/lseek-tests (Makefile.am): Likewise.
17692         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17693         * modules/mbscasestr-tests (Makefile.am): Likewise.
17694         * modules/mbschr-tests (Makefile.am): Likewise.
17695         * modules/mbscspn-tests (Makefile.am): Likewise.
17696         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17697         * modules/mbspbrk-tests (Makefile.am): Likewise.
17698         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17699         * modules/mbsrchr-tests (Makefile.am): Likewise.
17700         * modules/mbsspn-tests (Makefile.am): Likewise.
17701         * modules/mbsstr-tests (Makefile.am): Likewise.
17702         * modules/printf-posix-tests (Makefile.am): Likewise.
17703         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17704         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17705         * modules/tsearch-tests (Makefile.am): Likewise.
17706         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17707         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17708         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17709         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17710         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17711         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17712         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17713         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17714         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17715         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17716         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17717         * modules/xstrtol-tests (Makefile.am): Likewise.
17718         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17719         * modules/yesno-tests (Makefile.am): Likewise.
17720
17721 2007-10-03  Bruno Haible  <bruno@clisp.org>
17722
17723         * modules/trunc-tests: New file.
17724         * tests/test-trunc.c: New file.
17725
17726         * modules/trunc: New file.
17727         * lib/trunc.c: New file.
17728         * m4/trunc.m4: New file.
17729         * lib/math.in.h (trunc): New declaration.
17730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17731         HAVE_DECL_TRUNC.
17732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17733         HAVE_DECL_TRUNC.
17734         * doc/functions/trunc.texi: Mention the 'trunc' module.
17735
17736 2007-10-03  Bruno Haible  <bruno@clisp.org>
17737
17738         * tests/test-fpending.c: New file, mostly copied
17739         from coreutils/lib/t-fpending.c.
17740         * modules/fpending-tests: New file.
17741
17742 2007-10-03  Bruno Haible  <bruno@clisp.org>
17743
17744         Port the stdio extensions to QNX (untested).
17745         * lib/fseterr.c (fseterr): Add support for QNX.
17746         * lib/fbufmode.c (fbufmode): Likewise.
17747         * lib/freadable.c (freadable): Likewise.
17748         * lib/fwritable.c (fwritable): Likewise.
17749         * lib/freading.c (freading): Likewise.
17750         * lib/fwriting.c (fwriting): Likewise.
17751         * lib/freadahead.c (freadahed): Likewise.
17752         * lib/fpurge.c (fpurge): Likewise.
17753         * lib/fseeko.c (rpl_fseeko): Likewise.
17754
17755 2007-10-03  Bruno Haible  <bruno@clisp.org>
17756             Jim Meyering  <jim@meyering.net>
17757             Eric Blake  <ebb9@byu.net>
17758
17759         * doc/relocatable.texi: Use @command instead of @program.
17760
17761 2007-10-02  Jim Meyering  <jim@meyering.net>
17762
17763         Perform one more "_.h" -> ".in.h" substitution.
17764         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17765         instead of unistd_.h here, too.
17766
17767 2007-10-01  Bruno Haible  <bruno@clisp.org>
17768
17769         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17770         Needed for the alloca-opt module.
17771
17772 2007-09-30  Bruno Haible  <bruno@clisp.org>
17773
17774         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17775         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17776         alloca_.h.
17777         * lib/argz.in.h: Renamed from lib/argz_.h.
17778         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17779         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17780         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17781         byteswap_.h.
17782         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17783         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17784         dirent_.h.
17785         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17786         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17787         fcntl_.h.
17788         * lib/float.in.h: Renamed from lib/float_.h.
17789         * modules/float (Files, Makefile.am): Use float.in.h instead of
17790         float_.h.
17791         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17792         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17793         fnmatch_.h.
17794         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17795         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17796         getopt_.h.
17797         * lib/glob.in.h: Renamed from lib/glob_.h.
17798         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17799         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17800         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17801         iconv_.h.
17802         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17803         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17804         inttypes_.h.
17805         * lib/locale.in.h: Renamed from lib/locale_.h.
17806         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17807         locale_.h.
17808         * lib/math.in.h: Renamed from lib/math_.h.
17809         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17810         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17811         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17812         of netinet_in_.h. Add dependency.
17813         * lib/poll.in.h: Renamed from lib/poll_.h.
17814         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17815         * lib/search.in.h: Renamed from lib/search_.h.
17816         * modules/search (Files, Makefile.am): Use search.in.h instead of
17817         search_.h.
17818         * lib/signal.in.h: Renamed from lib/signal_.h.
17819         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17820         _signal.h.
17821         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17822         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17823         stdbool_.h.
17824         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17825         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17826         stdint_.h.
17827         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17828         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17829         stdio_.h.
17830         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17831         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17832         stdlib_.h.
17833         * lib/string.in.h: Renamed from lib/string_.h.
17834         * modules/string (Files, Makefile.am): Use string.in.h instead of
17835         string_.h.
17836         * doc/gnulib-tool.texi (Initial import): Update.
17837         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17838         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17839         of sys_select_.h. Add dependency.
17840         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17841         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17842         of sys_socket_.h.
17843         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17844         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17845         sys_stat_.h.
17846         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17847         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17848         sys_time_.h.
17849         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17850         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17851         sysexits_.h.
17852         * lib/time.in.h: Renamed from lib/time_.h.
17853         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17854         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17855         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17856         unistd_.h.
17857         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17858         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17859         wchar_.h.
17860         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17861         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17862         wctype_.h.
17863         * build-aux/bootstrap (slurp): Update.
17864         * lib/.cppi-disable: Update.
17865
17866 2007-09-30  Bruno Haible  <bruno@clisp.org>
17867
17868         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17869         Needed on BeOS.
17870
17871 2007-09-30  Bruno Haible  <bruno@clisp.org>
17872
17873         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17874
17875 2007-09-29  Bruno Haible  <bruno@clisp.org>
17876
17877         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17878
17879 2007-09-29  Bruno Haible  <bruno@clisp.org>
17880
17881         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17882         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17883         * build-aux/install-reloc: Compile also areadlink.c.
17884         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17885
17886 2007-09-29  Bruno Haible  <bruno@clisp.org>
17887
17888         * gnulib-tool (func_emit_initmacro_done): Indentation.
17889
17890 2007-09-29  Bruno Haible  <bruno@clisp.org>
17891
17892         * README: Add CVS checkout update instructions.
17893         Info from Bob Proulx <bob@proulx.com>.
17894
17895 2007-09-28  Eric Blake  <ebb9@byu.net>
17896
17897         Provide move-if-change.
17898         * build-aux/move-if-change: New file, based on best practice
17899         rather than any canonical upstream location.
17900
17901 2007-09-28  Jim Meyering  <jim@meyering.net>
17902
17903         Fix canonicalize loop-detection corner case.
17904         Do not attempt to stat the symlink values stored via seen_triple.
17905         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17906         on linux-2.6.18, (but not 2.6.22).
17907         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17908         triple_compare.  The former compares dev,ino,filename, while the latter
17909         would actually stat dirname(filename) when dev and ino were equal.
17910         * lib/hash-triple.c: Install <string.h>.
17911         (STREQ): Define.
17912         (triple_compare_ino_str): New function.
17913         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17914
17915 2007-09-28  Eric Blake  <ebb9@byu.net>
17916
17917         Enforce that AC_REPLACE_FUNCS files exist.
17918         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17919         override check for typos.
17920
17921         Fix test-closein on Solaris 10.
17922         * tests/test-closein.c (main): Don't assume stdin can be inherited
17923         closed on all systems.
17924         * tests/test-closein.sh: Likewise.
17925         Reported by Piotr Tarnowski.
17926
17927 2007-09-28  Jim Meyering  <jim@meyering.net>
17928
17929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17930
17931 2007-09-27  Jim Meyering  <jim@meyering.net>
17932
17933         canonicalize: Avoid a false-positive cycle failure.
17934         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17935         Sort.  Remove cycle-check.
17936         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17937         not cycle-check.h.
17938         (seen_triple): New function.
17939         (canonicalize_filename_mode): Use it instead of cycle-check.
17940         * tests/test-canonicalize.c: Add a test for this bug.
17941         * tests/test-canonicalize.sh: Set up and run the test.
17942
17943         New module, file-set, from coreutils.
17944         * modules/file-set: Define it.
17945         * lib/file-set.c, lib/file-set.h: Implement.
17946
17947         New module, hash-triple, from coreutils.
17948         * modules/hash-triple: Define it.
17949         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17950
17951 2007-09-25  Eric Blake  <ebb9@byu.net>
17952
17953         Fix strerror on Interix.
17954         * lib/string_.h (strerror): Declare replacement.
17955         * doc/functions/strerror.texi (strerror): Document the Interix
17956         shortcoming.
17957         * modules/string (Makefile.am): Support new hooks.
17958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17959         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17960         gl_FUNC_STRERROR_SEPARATE.
17961         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17962         * lib/strerror.c (rpl_strerror): Provide replacement.
17963         * modules/strerror (Depends-on): Add string.
17964         (configure.ac): Detect use of module.
17965         * tests/test-strerror.c: New file.
17966         * modules/strerror-tests: New test module.
17967         * modules/argp (Depends-on): Add strerror.
17968         * modules/error (Depends-on): Likewise.
17969         Reported by Martin Koeppe.
17970
17971 2007-09-24  Bruno Haible  <bruno@clisp.org>
17972
17973         * README: Update git instructions.
17974
17975 2007-09-24  Eric Blake  <ebb9@byu.net>
17976
17977         Revert fpending breakage from 2007-09-08.
17978         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17979         __fpending.c.
17980
17981 2007-09-24  Jim Meyering  <jim@meyering.net>
17982
17983         filenamecat.c: Add a test.
17984         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17985         showing how the function works when DIR is the empty string.
17986
17987 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17988
17989         * tests/test-canonicalize.sh: Turn on executable bit.
17990
17991 2007-09-19  Eric Blake  <ebb9@byu.net>
17992
17993         * README: Update CVS instructions.
17994
17995 2007-09-18  Bruno Haible  <bruno@clisp.org>
17996
17997         * modules/areadlink: New file.
17998         * lib/areadlink.h (areadlink): New declaration.
17999         * lib/areadlink.c: New file, based on lib/xreadlink.c.
18000
18001 2007-09-17  Jim Meyering  <jim@meyering.net>
18002
18003         * lib/savewd.c (ESTALE) [!defined]: Define.
18004         Reported to be required on Interix by Martin Koeppe.
18005
18006 2007-09-17  Bruno Haible  <bruno@clisp.org>
18007
18008         * gnulib-tool (func_version): Use $version.
18009
18010 2007-09-16  Bruno Haible  <bruno@clisp.org>
18011
18012         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
18013         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
18014         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
18015         Reported by Greg Schafer <gschafer@zip.com.au>.
18016
18017 2007-09-15  Bruno Haible  <bruno@clisp.org>
18018
18019         * gnulib-tool (sed): Try a little harder to make bash understand the
18020         alias.
18021         Reported by Bruce Korb <bruce.korb@gmail.com>.
18022
18023 2007-09-13  Eric Blake  <ebb9@byu.net>
18024
18025         * ChangeLog: Remove conflict markers.
18026
18027 2007-09-13  Simon Josefsson  <simon@josefsson.org>
18028
18029         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
18030         Reported by Bruno Haible <bruno@clisp.org>.
18031
18032 2007-09-12  Bruno Haible  <bruno@clisp.org>
18033
18034         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
18035         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
18036         is not defined.
18037
18038 2007-09-12  Eric Blake  <ebb9@byu.net>
18039
18040         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
18041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
18042         Autoconf definition.
18043         * modules/euidaccess (Depends-on): Add extensions, for
18044         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
18045         * modules/fnmatch (Depends-on): Likewise.
18046         * modules/getaddrinfo (Depends-on): Likewise.
18047         * modules/getdelim (Depends-on): Likewise.
18048         * modules/getline (Depends-on): Likewise.
18049         * modules/getsubopt (Depends-on): Likewise.
18050         * modules/gettext (Depends-on): Likewise.
18051         * modules/group-member (Depends-on): Likewise.
18052         * modules/mbchar (Depends-on): Likewise.
18053         * modules/memmem (Depends-on): Likewise.
18054         * modules/mempcpy (Depends-on): Likewise.
18055         * modules/memrchr (Depends-on): Likewise.
18056         * modules/pagealign_alloc (Depends-on): Likewise.
18057         * modules/readutmp (Depends-on): Likewise.
18058         * modules/stpcpy (Depends-on): Likewise.
18059         * modules/stpncpy (Depends-on): Likewise.
18060         * modules/strchrnul (Depends-on): Likewise.
18061         * modules/strndup (Depends-on): Likewise.
18062         * modules/strsep (Depends-on): Likewise.
18063         * modules/strverscmp (Depends-on): Likewise.
18064         * modules/vasprintf (Depends-on): Likewise.
18065         * modules/wcwidth (Depends-on): Likewise.
18066         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
18067         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
18068         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
18069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
18070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18071         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18072         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
18073         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18074         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
18075         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18077         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18079         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18080         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
18081         * m4/readutmp.m4 (gl_READUTMP): Likewise.
18082         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18083         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18085         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18088         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18089         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
18090         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
18091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18092         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
18093         so that lock.m4 can be used in gettext without extensions module.
18094
18095 2007-09-11  Bruno Haible  <bruno@clisp.org>
18096
18097         * m4/isc-posix.m4: Remove file.
18098         Suggested by Eric Blake.
18099
18100 2007-09-11  Eric Blake  <ebb9@byu.net>
18101
18102         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
18103
18104 2007-09-10  Bruno Haible  <bruno@clisp.org>
18105
18106         * posix-modules: Fix typo in error message.
18107         Reported by Matt <mkraai@beckman.com>.
18108
18109 2007-09-09  Bruno Haible  <bruno@clisp.org>
18110
18111         * doc/functions/getdelim.texi: Update list of platforms lacking the
18112         function.
18113         * doc/functions/getline.texi: Likewise.
18114
18115 2007-09-09  Jim Meyering  <jim@meyering.net>
18116
18117         * lib/hash.c (hash_initialize): Detect calloc failure.
18118         Reported by Bruno Haible.
18119
18120 2007-09-09  Bruno Haible  <bruno@clisp.org>
18121
18122         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
18123         malloc or realloc fails.
18124
18125 2007-09-09  Bruno Haible  <bruno@clisp.org>
18126
18127         * modules/getcwd (Depends-on): Add malloc-posix.
18128         * modules/glob (Depends-on): Likewise.
18129         * modules/putenv (Depends-on): Likewise.
18130         * modules/strdup (Depends-on): Likewise.
18131         * modules/getdelim (Depends-on): Add realloc-posix.
18132         * modules/read-file (Depends-on): Likewise.
18133
18134 2007-09-09  Bruno Haible  <bruno@clisp.org>
18135
18136         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
18137         (gl_FUNC_MALLOC_POSIX): Require it.
18138         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
18139         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
18140         * modules/realloc (Files): Add m4/malloc.m4.
18141         * modules/calloc (Files): Likewise.
18142
18143 2007-09-09  Bruno Haible  <bruno@clisp.org>
18144
18145         * modules/malloc-posix: New file.
18146         * modules/malloc (Depends-on): Add malloc-posix.
18147         * lib/malloc.c: Include errno.h.
18148         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
18149         and a POSIX-compatible malloc into a single function. Set ENOMEM
18150         when returning NULL.
18151         * m4/malloc.m4: New file.
18152         * doc/functions/malloc.texi: Mention the malloc-posix module.
18153         * lib/stdlib_.h (malloc): New declaration.
18154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18155         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
18156         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
18157         and HAVE_MALLOC_POSIX.
18158
18159 2007-09-09  Bruno Haible  <bruno@clisp.org>
18160
18161         * modules/realloc-posix: New file.
18162         * modules/realloc (Depends-on): Add realloc-posix.
18163         * lib/realloc.c: Include errno.h.
18164         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
18165         and a POSIX-compatible realloc into a single function. Set ENOMEM
18166         when returning NULL.
18167         * m4/realloc.m4: New file.
18168         * doc/functions/realloc.texi: Mention the realloc-posix module.
18169         * lib/stdlib_.h (realloc): New declaration.
18170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18171         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
18172         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
18173         and HAVE_REALLOC_POSIX.
18174
18175 2007-09-09  Bruno Haible  <bruno@clisp.org>
18176
18177         * modules/calloc-posix: New file.
18178         * modules/calloc (Depends-on): Add calloc-posix.
18179         * lib/calloc.c: Include errno.h.
18180         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
18181         and a POSIX-compatible calloc into a single function. Set ENOMEM
18182         when returning NULL.
18183         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
18184         * doc/functions/calloc.texi: Mention the calloc-posix module.
18185         * lib/stdlib_.h (calloc): New declaration.
18186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18187         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
18188         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
18189         and HAVE_CALLOC_POSIX.
18190
18191 2007-09-09  Bruno Haible  <bruno@clisp.org>
18192
18193         Allow for modules to show an arbitrary notice.
18194         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
18195         * gnulib-tool: New option --extract-notice.
18196         (func_usage): Document it.
18197         (sed_extract_prog): Update.
18198         (func_get_notice): New function.
18199         (func_modules_notice): New function.
18200         (func_import, func_create_testdir): Invoke it.
18201         Suggested by Jim Meyering.
18202
18203 2007-09-09  Bruno Haible  <bruno@clisp.org>
18204
18205         * gnulib-tool: New options --verbose, --quiet.
18206         (func_usage): Document them.
18207         (verbose): New variable.
18208         (func_execute_command): New function.
18209         (func_import): Don't show the module list and the file list if
18210         $verbose < 0.
18211         (func_create_testdir): Likewise. Use func_execute_command.
18212         (func_create_megatestdir): Use func_execute_command.
18213
18214 2007-09-08  Bruno Haible  <bruno@clisp.org>
18215
18216         * gnulib-tool (func_import): Prefer rsync over wget when available,
18217         for fetching the PO files.
18218
18219 2007-09-08  Bruno Haible  <bruno@clisp.org>
18220
18221         * posix-modules: New file. Portions copied from gnulib-tool.
18222         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
18223
18224 2007-09-08  Jim Meyering  <jim@meyering.net>
18225
18226         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
18227         * lib/fpending.h: Rename from __fpending.h.
18228         * lib/fpending.c: Rename from __fpending.c.
18229         Include "fpending.h", not "__fpending.h".
18230         * lib/__fpending.h, lib/__fpending.c: Remove files.
18231         * modules/fpending (Files): Reflect new file names.
18232         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
18233
18234 2007-09-08  Bruno Haible  <bruno@clisp.org>
18235
18236         * m4/inttypes-h.m4: Remove stub file.
18237
18238 2007-09-07  Simon Josefsson  <simon@josefsson.org>
18239
18240         * doc/headers/stdint.texi: Discuss #include_next issue.
18241
18242 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18243
18244         * build-aux/bootstrap: Remove obsolete comment about wget --help.
18245
18246 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18247
18248         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
18249         in variable name.
18250
18251 2007-09-03  Jim Meyering  <jim@meyering.net>
18252
18253         New module: git-version-gen.
18254         * modules/git-version-gen: New file.
18255
18256         Import changes from coreutils for bootstrap script.
18257
18258         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
18259
18260         bootstrap: uses rsync to download the .po files
18261         * build-aux/bootstrap (po_download_command_format): New global.
18262         (download_po_files): Use rsync.
18263         (update_po_files): Don't remove .po files after download,
18264         so future rsync runs can take advantage of the copies.
18265
18266         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
18267
18268         Solve the unnecessary-.po-file-regeneration problem once and for all.
18269         * build-aux/bootstrap (download_po_files): New function, renamed from
18270         get_translations.  Now, downloads, but doesn't update LINGUAS.
18271         (update_po_files): New function.
18272
18273         bootstrap: Ignore more.
18274         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
18275         uniwidth to e.g., lib/.gitignore.
18276         (slurp): Handle the sys_stat_.h -> sys mapping, too.
18277
18278         * build-aux/bootstrap: New setting: vc_ignore.
18279         (insert_sorted_if_absent): Create $file if absent.
18280         Adapt to new, possibly empty, list: $vc_ignore.
18281
18282         bootstrap: generate more ignorable names
18283         * build-aux/bootstrap (slurp): When generating ignorable names,
18284         also map .sin to .sed, .gperf to .c, and .y to .c.
18285
18286 2007-09-03  Jim Meyering  <jim@meyering.net>
18287
18288         * build-aux/git-version-gen: New file, from coreutils.  For details, see
18289         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
18290
18291 2007-09-02  Bruno Haible  <bruno@clisp.org>
18292
18293         Fix mis-recognition of 'mcs' on QNX 6.
18294         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
18295         output contains the string "Mono".
18296         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
18297         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
18298
18299 2007-09-01  Bruno Haible  <bruno@clisp.org>
18300
18301         Fix collision between uniwidth/* and linebreak modules.
18302         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
18303         u32_width): Remove declarations.
18304         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
18305         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
18306         streq3, streq2, streq1, streq0): Remove functions.
18307         (STREQ): Remove macro.
18308         (is_cjk_encoding): Remove function.
18309         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
18310         (uc_width, u8_width, u16_width, u32_width): Remove functions.
18311         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
18312         * NEWS: Document the change.
18313
18314 2007-09-01  Bruno Haible  <bruno@clisp.org>
18315
18316         * lib/streq.h: Add double-inclusion guard.
18317
18318 2007-09-01  Karl Berry  <karl@gnu.org>
18319
18320         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
18321
18322 2007-08-28  Jim Meyering  <jim@meyering.net>
18323
18324         Rename mreadlink_with_size to areadlink_with_size.
18325         * NEWS: Document the change.
18326         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
18327         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
18328         * lib/mreadlink.h: Rename this to...
18329         * lib/areadlink.h: ...this.
18330         * modules/mreadlink-with-size: Rename this to...
18331         * modules/areadlink-with-size: ...this.
18332         * lib/canonicalize.c: Reflect the renaming.
18333         * modules/canonicalize: Likewise.
18334
18335 2007-08-26  Bruno Haible  <bruno@clisp.org>
18336
18337         * gnulib-tool (func_import): When deciding which files to remove,
18338         consider also dangling symbolic links.
18339         Reported by Eric Blake.
18340
18341 2007-08-26  Bruno Haible  <bruno@clisp.org>
18342
18343         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
18344
18345 2007-08-23  Simon Josefsson  <simon@josefsson.org>
18346
18347         * lib/readline.c: Don't include getline.h, the prototype is now
18348         found in stdio.h.
18349
18350 2007-08-23  Jim Meyering  <jim@meyering.net>
18351
18352         Getdelim touchup.
18353         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
18354         around the funlockfile call, since funlockfile never sets errno.
18355         Don't set errno upon failed realloc.
18356
18357 2007-08-22  Eric Blake  <ebb9@byu.net>
18358
18359         Getline touchups.
18360         * lib/getdelim.c (getdelim): Revert regression that required *n to
18361         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
18362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
18363         getdelim, rather than whether implementation is missing.
18364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
18365         * lib/stdio_.h (getline): Also declare if replacement is
18366         required.
18367         * doc/functions/getdelim.texi: New file.
18368         * doc/functions/getline.texi: Likewise.
18369         * doc/gnulib.texi (Function Substitutes): Add new files.
18370         Reported by Bruno Haible.
18371
18372 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
18373
18374         * users.txt: Add Guile.
18375
18376 2007-08-22  Eric Blake  <ebb9@byu.net>
18377
18378         * tests/test-getdelim.c (main): Use remove, not unlink.
18379         * tests/test-getline.c (main): Likewise.
18380
18381         Move getline and getdelim into stdio.h, per POSIX 200x.
18382         * modules/getline (Files): Remove getline.h.
18383         (Depends-on): Add stdio.
18384         (configure.ac): Add module indicator.
18385         * modules/getdelim (Files): Remove getdelim.h.
18386         (Depends-on): Add stdio.
18387         (configure.ac): Add module indicator.
18388         * modules/stdio (Makefile.am): Work with new indicators.
18389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18390         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
18391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18392         * lib/getdelim.h: Delete.
18393         * lib/getline.h: Delete.
18394         * lib/stdio_.h (getdelim, getline): Declare.
18395         * modules/getdelim-tests: New module.
18396         * modules/getline-tests: Likewise.
18397         * tests/test-getdelim.c: New file.
18398         * tests/test-getline.c: Likewise.
18399         * NEWS: Document the change.
18400         * lib/getline.c: Update choice of header.
18401         * lib/csharpcomp.c: Likewise.
18402         * lib/getpass.c: Likewise.
18403         * lib/javacomp.c: Likewise.
18404         * lib/javaversion.c: Likewise.
18405         * lib/yesno.c: Likewise.
18406         * lib/getdelim.c: Likewise.
18407         (getdelim): Set errno on failure, and avoid memory leak.
18408
18409 2007-08-19  Bruno Haible  <bruno@clisp.org>
18410
18411         * modules/closein (Depends-on): Add freadahead.
18412         * lib/closein.c: Include freadahead.h.
18413         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
18414         is zero.
18415
18416 2007-08-19  Bruno Haible  <bruno@clisp.org>
18417
18418         * modules/freadahead-tests: New file.
18419         * tests/test-freadahead.sh: New file.
18420         * tests/test-freadahead.c: New file.
18421
18422         * modules/freadahead: New file.
18423         * lib/freadahead.h: New file.
18424         * lib/freadahead.c: New file.
18425         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18426         fbufmode, fpurge, freadable, fwritable.
18427
18428 2007-08-19  Eric Blake  <ebb9@byu.net>
18429
18430         Test yesno in combination with closein.
18431         * lib/yesno.c (yesno): Document use of stdin.
18432         * modules/yesno-tests (Files): New module.
18433         * tests/test-yesno.c (main): New file.
18434         * tests/test-yesno.sh: Likewise.
18435
18436 2007-08-19  Bruno Haible  <bruno@clisp.org>
18437
18438         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
18439         * lib/fseeko.c (rpl_fseeko): Likewise.
18440         * lib/fseterr.c (fseterr): Likewise.
18441
18442 2007-08-19  Bruno Haible  <bruno@clisp.org>
18443
18444         * tests/test-lseek.c (main): Disable a test for BeOS.
18445         * doc/functions/lseek.texi: Document the BeOS bug.
18446
18447 2007-08-19  Bruno Haible  <bruno@clisp.org>
18448             Eric Blake  <ebb9@byu.net>
18449
18450         * lib/lseek.c: Include <sys/stat.h>.
18451         (rpl_lseek): Add workaround code also for Unix platforms.
18452         Needed for BeOS.
18453         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
18454         * doc/functions/lseek.texi: Document BeOS definiency.
18455
18456 2007-08-18  Bruno Haible  <bruno@clisp.org>
18457
18458         * modules/fstrcmp-tests: New file.
18459         * tests/test-fstrcmp.c: New file.
18460
18461 2007-08-18  Bruno Haible  <bruno@clisp.org>
18462
18463         * modules/fstrcmp: New file, from GNU gettext with modifications.
18464         * lib/fstrcmp.h: New file, from GNU gettext.
18465         * lib/fstrcmp.c: New file, from GNU gettext.
18466         * MODULES.html.sh (String handling): Add fstrcmp.
18467
18468 2007-08-18  Bruno Haible  <bruno@clisp.org>
18469
18470         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
18471         'bool'.
18472         (diag, compareseq): Remove const from the ctxt argument.
18473         (USE_HEURISTIC): Undefine at the end.
18474
18475 2007-08-18  Jim Meyering  <jim@meyering.net>
18476
18477         New file: lib/idcache.h
18478         * NEWS: Mention the addition.
18479         * modules/idcache (Files): Add lib/idcache.h
18480         * lib/idcache.c: Include "idcache.h".
18481         Don't include <sys/types.h>.
18482         Add a FIXME comment.
18483         Move file-scoped "static" declarations to the top.
18484         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
18485
18486 2007-08-17  Bruno Haible  <bruno@clisp.org>
18487         and Paul Eggert  <eggert@cs.ucla.edu>
18488
18489         * MODULES.html.sh: Add diffseq.
18490         * modules/diffseq: New file.
18491         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
18492         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
18493
18494 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         Import changes from coreutils for bootstrap script.
18497
18498         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         * build-aux/bootstrap (slurp): Work even in environments where
18501         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
18502         current code does not slurp files whose names start with ".", and
18503         this looks like it might be a troublesome area.
18504
18505         2007-07-11  Jim Meyering  <jim@meyering.net>
18506
18507         If there's a GPL vN copyright comment, require that N == 3.
18508
18509         2007-07-08  Jim Meyering  <jim@meyering.net>
18510
18511         Run the coreutils-specific code only if tests/Makefile.am.in exists.
18512         * build-aux/bootstrap (mam_template): Move definition out of loop.
18513
18514         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
18515
18516         * build-aux/bootstrap (symlink_to_dir): Rename function from
18517         symlink_to_gnulib.  Add a directory parameter.  Update all
18518         callers.
18519         (cp_mark_as_generated): Also check for -- and link to -- files in
18520         gl/.
18521
18522         2007-07-08  Jim Meyering  <jim@meyering.net>
18523
18524         Adapt to deeper hierarchy in gnulib.
18525         * build-aux/bootstrap (symlink_to_dir): If the destination
18526         directory doesn't exist, create it. This is required at least for
18527         "lib/uniwidth/cjk.h".
18528
18529         2007-05-15  Jim Meyering  <jim@meyering.net>
18530
18531         * build-aux/bootstrap: Now that generated Makefile.am files
18532         are no longer under version control, they must be created at
18533         bootstrap time.
18534
18535 2007-08-14  Ben Pfaff  <blp@gnu.org>
18536
18537         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
18538
18539 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
18542         given the changes below.
18543         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
18544         even on hosts that have padding bits beyond the supported 64.
18545
18546 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18547
18548         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
18549         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
18550         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
18551         depends on it.
18552         (xstrtol_error): Remove.
18553         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18554         but with a different signature.
18555         (ATTRIBUTE_NORETURN, __attribute__): New macros.
18556         * lib/xstrtol-error.c: Include exitfail.h.
18557         (xstrtol_fatal): New function, with a different signature from the
18558         old xstrtol_error, so that the caller need not worry about passing
18559         in an exit status, or about storage management of the option argument.
18560         (xstrtol_error): Now a static function.  Redo signature to
18561         implement xstrtol_fatal.  Output the correct number of hyphens in
18562         front of the option so that the caller need not worry about
18563         storage management.
18564         (N_): New macro.
18565         (_): Remove; not used now.
18566         * modules/xstrtol: Depend on getopt.
18567         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18568         of old STRTOL_FATAL_ERROR macro.
18569         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18570         of test program.
18571         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18572         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18573
18574 2007-08-08  Eric Blake  <ebb9@byu.net>
18575
18576         * lib/xstrtol-error.c: Add missing include.
18577
18578         Move xstrtol messages into gnulib domain, when --pobase is used.
18579         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18580         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18581         * modules/xstrtol (Files): Distribute new file.
18582         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18583         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18584         * tests/test-xstrtol.c: ...into new file.
18585         * tests/test-xstrtoul.c: Also test xstrtoul.
18586         * tests/test-xstrtoimax.c: Also test xstrtoimax.
18587         * tests/test-xstrtoumax.c: Also test xstrtoumax.
18588         * tests/test-xstrtol.sh: Drive the tests.
18589         * tests/test-xstrtoimax.sh: Likewise.
18590         * tests/test-xstrtoumax.sh: Likewise.
18591         * modules/xstrtol-tests: New module.
18592         * modules/xstrtoimax-tests: Likewise.
18593         * modules/xstrtoumax-tests: Likewise.
18594
18595 2007-08-08  Jim Meyering  <jim@meyering.net>
18596
18597         New function: mfile_name_concat.
18598         * lib/filenamecat.c (mfile_name_concat): New function, just like
18599         file_name_concat, but return NULL upon failure rather than exiting
18600         with a diagnostic.
18601         * lib/filenamecat.h: Declare it.
18602
18603 2007-08-07  Bruno Haible  <bruno@clisp.org>
18604
18605         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18606         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18607         warning from gcc.
18608         Reported by Eric Blake.
18609
18610 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18611
18612         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18613         * modules/crypto/arcfour (License): Likewise.
18614         * modules/crypto/des-tests (License): Likewise.
18615         * modules/crypto/gc-arctwo-tests (License): Likewise.
18616         * modules/crypto/gc-des-tests (License): Likewise.
18617         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18618         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18619         * modules/crypto/gc-md2-tests (License): Likewise.
18620         * modules/crypto/gc-md4-tests (License): Likewise.
18621         * modules/crypto/gc-md5-tests (License): Likewise.
18622         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18623         * modules/crypto/gc-rijndael-tests (License): Likewise.
18624         * modules/crypto/gc-sha1-tests (License): Likewise.
18625         * modules/crypto/gc-tests (License): Likewise.
18626         * modules/crypto/hmac-md5 (License): Likewise.
18627         * modules/crypto/hmac-sha1 (License): Likewise.
18628         * modules/crypto/md2-tests (License): Likewise.
18629         * modules/crypto/md4-tests (License): Likewise.
18630         * modules/crypto/md5 (License): Likewise.
18631         * modules/crypto/rijndael (License): Likewise.
18632         * modules/crypto/sha1 (License): Likewise.
18633         * modules/memxor (License): Likewise.
18634
18635 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18636         and Bruno Haible  <bruno@clisp.org>
18637
18638         * NEWS: Describe interface changes to human, xstrtol.
18639         * lib/human.h: Include <xstrtol.h>.
18640         (human_options): Return enum strtol_error, not int.  Remove
18641         bool arg; take int * instead.
18642         * lib/human.c: Don't include "gettext.h".
18643         (_): Remove; no longer used.
18644         Don't include <xstrtol.h>, since human.h does it.
18645         (human_options): Adjust to abovementioned interface changes.
18646         Do not report error to stderr; that's now the caller's
18647         responsibility.
18648         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18649         interface change.
18650         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18651         Str, Argument_type_string.  All uses changed.  Put " argument"
18652         in diagnostics to make them clearer.  Change wording of suffix
18653         message for clarity.
18654         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18655         Argument_type_string.
18656         (STRTOL_FATAL_WARN): Remove; no longer used.
18657         * modules/human (Depends-on): Remove gettext-h.
18658
18659 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18660
18661         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18662
18663 2007-07-31  Bruno Haible  <bruno@clisp.org>
18664
18665         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18666         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18667         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18668
18669 2007-07-31  Bruno Haible  <bruno@clisp.org>
18670
18671         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18672         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18673
18674 2007-07-30  Bruno Haible  <bruno@clisp.org>
18675
18676         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18677         * modules/c-ctype (License): Likewise.
18678         * modules/c-strcase (License): Likewise.
18679         * modules/check-version (License): Likewise.
18680         * modules/iconv (License): Likewise.
18681         * modules/iconv_open (License): Likewise.
18682         * modules/read-file (License): Likewise.
18683         * modules/striconv (License): Likewise.
18684         * modules/strverscmp (License): Likewise.
18685         * modules/vasprintf (License): Likewise.
18686         * modules/crypto/des (License): Likewise.
18687         * modules/crypto/gc (License): Likewise.
18688         * modules/crypto/gc-arcfour (License): Likewise.
18689         * modules/crypto/gc-arctwo (License): Likewise.
18690         * modules/crypto/gc-des (License): Likewise.
18691         * modules/crypto/gc-hmac-md5 (License): Likewise.
18692         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18693         * modules/crypto/gc-md2 (License): Likewise.
18694         * modules/crypto/gc-md4 (License): Likewise.
18695         * modules/crypto/gc-md5 (License): Likewise.
18696         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18697         * modules/crypto/gc-random (License): Likewise.
18698         * modules/crypto/gc-rijndael (License): Likewise.
18699         * modules/crypto/gc-sha1 (License): Likewise.
18700         * modules/crypto/md2 (License): Likewise.
18701         * modules/crypto/md4 (License): Likewise.
18702
18703 2007-07-30  Jim Meyering  <jim@meyering.net>
18704
18705         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18706         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18707         it has valid stat data.  This bug would cause du not to count the
18708         sizes of inaccessible directories.
18709         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18710         in <http://bugzilla.redhat.com/250077>.
18711
18712 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18713             Bruno Haible  <bruno@clisp.org>
18714
18715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18716         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18717         #include_next, gives a diagnostic about it, but reports no error in
18718         the exit code.
18719         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18720
18721 2007-07-24  Ben Pfaff  <blp@gnu.org>
18722
18723         Improve name: "count-one-bits" is better than "popcount".
18724         * MODULES.html.sh: Update name.
18725         * lib/popcount.h: Renamed lib/count-one-bits.h.
18726         (popcount): Renamed count_one_bits.
18727         (popcountl): Renamed count_one_bits_l.
18728         (popcountll): Renamed count_one_bits_ll.
18729         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18730         * modules/popcount: Renamed module/count-one-bits.
18731         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18732         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18733
18734 2007-07-23  Ben Pfaff  <blp@gnu.org>
18735
18736         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18737         better code generation, and add U to large constants to avoid
18738         warnings, in non-GCC case.
18739         Suggested by Bruno Haible.
18740
18741 2007-07-23  Ben Pfaff  <blp@gnu.org>
18742
18743         * lib/popcount.h: Use verify_true instead of if...abort.
18744         * modules/popcount: Depend on verify module.
18745         Suggested by Jim Meyering.
18746
18747 2007-07-23  Bruno Haible  <bruno@clisp.org>
18748
18749         * gnulib-tool (func_import): Create a .cvsignore file also when the
18750         directory is not yet in CVS but the toplevel directory is. When
18751         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18752         Reported by Karl Berry.
18753
18754 2007-07-22  Ben Pfaff  <blp@gnu.org>
18755
18756         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18757         case.
18758         Suggested by Eric Blake.
18759
18760 2007-07-22  Ben Pfaff  <blp@gnu.org>
18761
18762         New module: popcount.
18763         * MODULES.html.sh: Add popcount.
18764         * modules/popcount: New file.
18765         * modules/popcount-tests: New file.
18766         * tests/test-popcount.c: New file.
18767         * lib/popcount.h: New file.
18768         * m4/popcount.m4: New file.
18769
18770 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18771
18772         * build-aux/announce-gen: Update to GPLv3.
18773
18774         * build-aux/config.guess: Update from config.
18775
18776 2007-07-21  Bruno Haible  <bruno@clisp.org>
18777
18778         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18779         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18780
18781 2007-07-20  Jim Meyering  <jim@meyering.net>
18782
18783         * check-module: Diagnose a self-dependency.
18784
18785 2007-07-19  Bruno Haible  <bruno@clisp.org>
18786
18787         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18788         empty.
18789         Reported by Eric Blake.
18790
18791 2007-07-18  Bruno Haible  <bruno@clisp.org>
18792
18793         * gnulib-tool: New options --po-base, --po-domain.
18794         (func_usage): Document them.
18795         (pobase, po_domain): New variables.
18796         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18797         DEFAULT_TEXT_DOMAIN.
18798         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18799         (func_import): Consider pobase and po_domain. Create a po/ directory.
18800         (func_create_testdir): Set pobase and po_domain to empty.
18801         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18802         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18803
18804 2007-07-18  Bruno Haible  <bruno@clisp.org>
18805
18806         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18807         EXTRA_DIST augmentation for files in build-aux/.
18808
18809 2007-07-16  Bruno Haible  <bruno@clisp.org>
18810
18811         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18812         * modules/getdelim (License): Likewise.
18813
18814 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18815
18816         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18817         * modules/d-type (License): Likewise.
18818         * modules/extensions (License): Likewise.
18819         * modules/fnmatch (License): Likewise.
18820         * modules/fseeko (License): Likewise.
18821         * modules/getaddrinfo (License): Likewise.
18822         * modules/getline (License): Likewise.
18823         * modules/getlogin_r (License): Likewise.
18824         * modules/getpass (License): Likewise.
18825         * modules/gettimeofday (License): Likewise.
18826         * modules/glob (License): Likewise.
18827         * modules/inet_ntop (License): Likewise.
18828         * modules/malloc (License): Likewise.
18829         * modules/malloca (License): Likewise.
18830         * modules/memmem (License): Likewise.
18831         * modules/mempcpy (License): Likewise.
18832         * modules/memset (License): Likewise.
18833         * modules/minmax (License): Likewise.
18834         * modules/mktime (License): Likewise.
18835         * modules/netinet_in (License): Likewise.
18836         * modules/pathmax (License): Likewise.
18837         * modules/poll (License): Likewise.
18838         * modules/regex (License): Likewise.
18839         * modules/snprintf (License): Likewise.
18840         * modules/stdbool (License): Likewise.
18841         * modules/stdint (License): Likewise.
18842         * modules/stdio (License): Likewise.
18843         * modules/strcase (License): Likewise.
18844         * modules/strcasestr (License): Likewise.
18845         * modules/strdup (License): Likewise.
18846         * modules/string (License): Likewise.
18847         * modules/strndup (License): Likewise.
18848         * modules/strnlen (License): Likewise.
18849         * modules/strpbrk (License): Likewise.
18850         * modules/strptime (License): Likewise.
18851         * modules/strsep (License): Likewise.
18852         * modules/sys_select (License): Likewise.
18853         * modules/sys_socket (License): Likewise.
18854         * modules/sys_stat (License): Likewise.
18855         * modules/sys_time (License): Likewise.
18856         * modules/time (License): Likewise.
18857         * modules/time_r (License): Likewise.
18858         * modules/timegm (License): Likewise.
18859         * modules/unistd (License): Likewise.
18860         * modules/vsnprintf (License): Likewise.
18861         * modules/wctype (License): Likewise.
18862
18863 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18864
18865         * modules/argz (License): LGPLv2+.
18866
18867 2007-07-15  Karl Berry  <karl@gnu.org>
18868
18869         * doc/gnulib.texi: revise node structure per new fdl.texi.
18870
18871 2007-07-14  Bruno Haible  <bruno@clisp.org>
18872
18873         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18874         the output file.
18875         * lib/uniname/uninames.h: Regenerated.
18876
18877 2007-07-14  Karl Berry  <karl@gnu.org>
18878
18879         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18880         omitting sectioning and index commands.
18881
18882 2007-07-13  Bruno Haible  <bruno@clisp.org>
18883
18884         New gnulib-tool option --more-symlinks.
18885         * gnulib-tool (func_usage): Document --more-symlinks.
18886         (do_copyrights): New variable.
18887         Recognize option --more-symlinks.
18888         (func_import): Don't add a copyright notice transform to
18889         sed_transform_lib_file if do_copyrights is empty.
18890
18891 2007-07-13  Bruno Haible  <bruno@clisp.org>
18892
18893         * lib/vasnprintf.c (decimal_point_char): Define also if
18894         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18895         && !NEED_PRINTF_DIRECTIVE_A.
18896         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18897         Gary V. Vaughan <gary@gnu.org>.
18898
18899 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18900
18901         * lib/inttypes_.h: Undo previous change, since it was fixed
18902         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18903
18904 2007-07-13  Bruno Haible  <bruno@clisp.org>
18905
18906         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18907         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18908
18909 2007-07-13  Jim Meyering  <jim@meyering.net>
18910
18911         df: Don't fail for Tru64's "file-on-file mount".
18912         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18913         so we fall through and use statfs instead.  Details here:
18914         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18915         Reported by Albert Chin.
18916
18917 2007-07-13  Bruno Haible  <bruno@clisp.org>
18918
18919         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18920         * modules/configmake (License): Likewise.
18921         * modules/gettext (License): Likewise.
18922         * modules/gettext-h (License): Likewise.
18923         * modules/include_next (License): Likewise.
18924         * modules/link-warning (License): Likewise.
18925         * modules/localcharset (License): Likewise.
18926         * modules/localename (License): Likewise.
18927         * modules/lock (License): Likewise.
18928         * modules/relocatable-lib-lgpl (License): Likewise.
18929         * modules/size_max (License): Likewise.
18930         * modules/vasnprintf (License): Likewise.
18931         * modules/wchar (License): Likewise.
18932         * modules/xsize (License): Likewise.
18933
18934 2007-07-13  Bruno Haible  <bruno@clisp.org>
18935
18936         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18937         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18938
18939 2007-07-12  Bruno Haible  <bruno@clisp.org>
18940
18941         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18942         in the modules files.
18943
18944 2007-07-11  Karl Berry  <karl@gnu.org>
18945
18946         * MODULES.html.sh (func_module): use
18947          sed -e '\|^'"${includefile}"'$|d'
18948          instead of /.../d, to avoid errors on $includefile's containing /.
18949
18950 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18951
18952         * gnulib-tool (func_import): Avoid duplication of --avoid
18953         statements
18954         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18955         names to `_' in variable names.
18956
18957 2007-07-10  Eric Blake  <ebb9@byu.net>
18958
18959         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18960         * NEWS: Document this change.
18961
18962 2007-07-08  Bruno Haible  <bruno@clisp.org>
18963
18964         Update to Unicode 5.0.
18965         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18966         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18967         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18968         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18969         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18970         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18971         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18972         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18973         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18974         U+10A3F, U+1D242..U+1D244.
18975         (nonspacing_table_ind): Update.
18976         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18977         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18978
18979 2007-07-08  Bruno Haible  <bruno@clisp.org>
18980
18981         Update to Unicode 5.0.
18982         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18983         code transform. Extend the name index field of unicode_name_to_code and
18984         unicode_code_to_name from 16 to 24 bits.
18985         * lib/uniname/uniname.c (unicode_character_name,
18986         unicode_name_character): Add the range 0x12xxx to the code transform.
18987         * lib/uniname/uninames.h: Regenerated.
18988         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18989
18990 2007-07-07  Bruno Haible  <bruno@clisp.org>
18991
18992         * modules/wcwidth-tests: New file.
18993         * tests/test-wcwidth.c: New file.
18994
18995         Work around MacOS X wcwidth() bug.
18996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18997         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18998         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18999         original wcwidth in non-UTF-8 locales.
19000         * modules/wcwidth (Depends-on): Add localcharset, streq,
19001         uniwidth/width.
19002         * doc/functions/wcwidth.texi: Update.
19003
19004 2007-07-07  Bruno Haible  <bruno@clisp.org>
19005
19006         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
19007         (wcwidth): New declaration.
19008         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
19009         macros.
19010         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
19011         here. Prepare for creating <wchar.h> unconditionally.
19012         * modules/wchar (Depends-on): Add link-warning.
19013         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
19014         REPLACE_WCWIDTH, and GL_LINK_WARNING.
19015         * lib/wcwidth.h: Remove file.
19016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
19017         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
19018         * modules/wcwidth (Files): Remove lib/wcwidth.h.
19019         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
19020         (Include): Replace wcwidth.h with <wchar.h>.
19021         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
19022         * lib/mbchar.h: Don't include wcwidth.h.
19023         * lib/mbswidth.c: Likewise.
19024         * NEWS: Mention the change.
19025
19026 2007-07-07  Bruno Haible  <bruno@clisp.org>
19027
19028         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
19029         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
19030         definition with an external declaration.
19031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
19032         defined as a function. Remove AC_C_INLINE requirement.
19033         * modules/wcwidth (Files): Add lib/wcwidth.c.
19034         (Makefile.am): Remove redundant statement.
19035
19036 2007-07-07  Bruno Haible  <bruno@clisp.org>
19037
19038         * MODULES.html.sh (Unicode string functions): Add the new modules.
19039
19040         * tests/uniwidth/test-u32-strwidth.c: New file.
19041         * modules/uniwidth/u32-strwidth-tests: New file.
19042
19043         * lib/uniwidth/u32-strwidth.c: New file.
19044         * modules/uniwidth/u32-strwidth: New file.
19045
19046         * tests/uniwidth/test-u16-strwidth.c: New file.
19047         * modules/uniwidth/u16-strwidth-tests: New file.
19048
19049         * lib/uniwidth/u16-strwidth.c: New file.
19050         * modules/uniwidth/u16-strwidth: New file.
19051
19052         * tests/uniwidth/test-u8-strwidth.c: New file.
19053         * modules/uniwidth/u8-strwidth-tests: New file.
19054
19055         * lib/uniwidth/u8-strwidth.c: New file.
19056         * modules/uniwidth/u8-strwidth: New file.
19057
19058         * tests/uniwidth/test-u32-width.c: New file.
19059         * modules/uniwidth/u32-width-tests: New file.
19060
19061         * lib/uniwidth/u32-width.c: New file.
19062         * modules/uniwidth/u32-width: New file.
19063
19064         * tests/uniwidth/test-u16-width.c: New file.
19065         * modules/uniwidth/u16-width-tests: New file.
19066
19067         * lib/uniwidth/u16-width.c: New file.
19068         * modules/uniwidth/u16-width: New file.
19069
19070         * tests/uniwidth/test-u8-width.c: New file.
19071         * modules/uniwidth/u8-width-tests: New file.
19072
19073         * lib/uniwidth/u8-width.c: New file.
19074         * modules/uniwidth/u8-width: New file.
19075
19076         * tests/uniwidth/test-uc_width.c: New file.
19077         * modules/uniwidth/width-tests: New file.
19078
19079         * lib/uniwidth/width.c: New file, from GNU libiconv.
19080         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
19081         * modules/uniwidth/width: New file.
19082
19083         * lib/uniwidth.h: New file, from GNU libiconv.
19084         * modules/uniwidth/base: New file.
19085
19086 2007-07-07  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/uniname.h: New file, from GNU gettext.
19089         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
19090         * lib/uniname/uninames.h: New file, from GNU gettext.
19091         * lib/uniname/uniname.c: New file, from GNU gettext.
19092         * tests/uniname/test-uninames.sh: New file.
19093         * tests/uniname/test-uninames.c: New file, from GNU gettext.
19094         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
19095         * modules/uniname/base: New file.
19096         * modules/uniname/uniname: New file.
19097         * modules/uniname/uniname-tests: New file.
19098         * MODULES.html.sh (Unicode string functions): Add the new modules.
19099
19100 2007-07-06  Bruno Haible  <bruno@clisp.org>
19101
19102         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
19103
19104 2007-07-06  Bruno Haible  <bruno@clisp.org>
19105
19106         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
19107         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
19108         includes <cygwin/sys_time.h> which includes <sys/select.h> which
19109         include <sys/time.h>.
19110         Reported by Eric Blake.
19111
19112 2007-07-06  Eric Blake  <ebb9@byu.net>
19113
19114         Fix testing canonicalize on cygwin.
19115         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19116         Revert patch from 2007-06-19.
19117         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
19118         canonicalize module is also in use.
19119         * tests/test-canonicalize.c: New file.
19120         * tests/test-canonicalize.sh: Likewise.
19121         * modules/canonicalize-tests: Likewise.
19122
19123 2007-07-06  Jim Meyering  <jim@meyering.net>
19124
19125         * lib/getugroups.c (getugroups): Detect getgrent failure.
19126         Adjust comment to reflect reality: this function may return -1.
19127
19128 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19129
19130         * build-aux/bootstrap (TP_URL,get_translations): Update to use
19131         the new TP address.
19132         (usage): Fix typo
19133         (gnulib_mk): New variable.
19134
19135 2007-07-05  Jim Meyering  <jim@meyering.net>
19136
19137         Don't let endgrent clobber errno, no matter how improbable.
19138         * lib/getugroups.c (getugroups): Save and restore errno around
19139         endgrent call.
19140
19141         Close the group DB even when failing with 2^31 or more members.
19142         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
19143
19144 2007-07-04  Jim Meyering  <jim@meyering.net>
19145
19146         * lib/getugroups.h: New file.
19147         * lib/getugroups.c: Include "getugroups.h".
19148         Remove uses of "register" keyword.
19149         Move local variable, "cp", down into scope where used.
19150         Give "username" parameter the "const" attribute.
19151         * modules/getugroups (Files): Add lib/getugroups.h
19152
19153 2007-07-04  Karl Berry  <karl@gnu.org>
19154
19155         * MODULES.html.sh (func_all_modules): Complete rename of
19156         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
19157
19158 2007-07-02  Bruno Haible  <bruno@clisp.org>
19159
19160         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
19161         mode, when inttypes.h comes from gnulib.
19162         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19163
19164 2007-07-02  Simon Josefsson  <simon@josefsson.org>
19165
19166         * NEWS: Mention lgpl module name change.
19167
19168         * modules/lgpl-2.1: Renamed from lgpl.
19169
19170         * NEWS: Mention gpl module name change.
19171
19172         * modules/gpl-3.0: New file, based on gpl-2.0.
19173
19174         * modules/gpl-2.0: Renamed from gpl.
19175
19176         * modules/gpl: Fix filename, doc/gpl.texi is now found at
19177         doc/gpl-2.0.texi.
19178
19179 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19180
19181         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
19182         #define __STDC_LIMIT_MACROS temporarily while including
19183         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
19184         Problem reported by Joel E. Denny in
19185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
19186
19187 2007-07-01  Bruno Haible  <bruno@clisp.org>
19188
19189         * lib/unistdio.h: New file.
19190         * lib/unistdio/u-asnprintf.h: New file.
19191         * lib/unistdio/u-asprintf.h: New file.
19192         * lib/unistdio/u-printf-args.c: New file.
19193         * lib/unistdio/u-printf-args.h: New file.
19194         * lib/unistdio/u-printf-parse.h: New file.
19195         * lib/unistdio/u-snprintf.h: New file.
19196         * lib/unistdio/u-sprintf.h: New file.
19197         * lib/unistdio/u-vasprintf.h: New file.
19198         * lib/unistdio/u-vsnprintf.h: New file.
19199         * lib/unistdio/u-vsprintf.h: New file.
19200         * lib/unistdio/ulc-asnprintf.c: New file.
19201         * lib/unistdio/ulc-asprintf.c: New file.
19202         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
19203         * lib/unistdio/ulc-printf-parse.c: New file.
19204         * lib/unistdio/ulc-snprintf.c: New file.
19205         * lib/unistdio/ulc-sprintf.c: New file.
19206         * lib/unistdio/ulc-vasnprintf.c: New file.
19207         * lib/unistdio/ulc-vasprintf.c: New file.
19208         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
19209         * lib/unistdio/ulc-vsnprintf.c: New file.
19210         * lib/unistdio/ulc-vsprintf.c: New file.
19211         * lib/unistdio/u8-asnprintf.c: New file.
19212         * lib/unistdio/u8-asprintf.c: New file.
19213         * lib/unistdio/u8-printf-parse.c: New file.
19214         * lib/unistdio/u8-snprintf.c: New file.
19215         * lib/unistdio/u8-sprintf.c: New file.
19216         * lib/unistdio/u8-vasnprintf.c: New file.
19217         * lib/unistdio/u8-vasprintf.c: New file.
19218         * lib/unistdio/u8-vsnprintf.c: New file.
19219         * lib/unistdio/u8-vsprintf.c: New file.
19220         * lib/unistdio/u8-u8-asnprintf.c: New file.
19221         * lib/unistdio/u8-u8-asprintf.c: New file.
19222         * lib/unistdio/u8-u8-snprintf.c: New file.
19223         * lib/unistdio/u8-u8-sprintf.c: New file.
19224         * lib/unistdio/u8-u8-vasnprintf.c: New file.
19225         * lib/unistdio/u8-u8-vasprintf.c: New file.
19226         * lib/unistdio/u8-u8-vsnprintf.c: New file.
19227         * lib/unistdio/u8-u8-vsprintf.c: New file.
19228         * lib/unistdio/u16-asnprintf.c: New file.
19229         * lib/unistdio/u16-asprintf.c: New file.
19230         * lib/unistdio/u16-printf-parse.c: New file.
19231         * lib/unistdio/u16-snprintf.c: New file.
19232         * lib/unistdio/u16-sprintf.c: New file.
19233         * lib/unistdio/u16-vasnprintf.c: New file.
19234         * lib/unistdio/u16-vasprintf.c: New file.
19235         * lib/unistdio/u16-vsnprintf.c: New file.
19236         * lib/unistdio/u16-vsprintf.c: New file.
19237         * lib/unistdio/u16-u16-asnprintf.c: New file.
19238         * lib/unistdio/u16-u16-asprintf.c: New file.
19239         * lib/unistdio/u16-u16-snprintf.c: New file.
19240         * lib/unistdio/u16-u16-sprintf.c: New file.
19241         * lib/unistdio/u16-u16-vasnprintf.c: New file.
19242         * lib/unistdio/u16-u16-vasprintf.c: New file.
19243         * lib/unistdio/u16-u16-vsnprintf.c: New file.
19244         * lib/unistdio/u16-u16-vsprintf.c: New file.
19245         * lib/unistdio/u32-asnprintf.c: New file.
19246         * lib/unistdio/u32-asprintf.c: New file.
19247         * lib/unistdio/u32-printf-parse.c: New file.
19248         * lib/unistdio/u32-snprintf.c: New file.
19249         * lib/unistdio/u32-sprintf.c: New file.
19250         * lib/unistdio/u32-vasnprintf.c: New file.
19251         * lib/unistdio/u32-vasprintf.c: New file.
19252         * lib/unistdio/u32-vsnprintf.c: New file.
19253         * lib/unistdio/u32-vsprintf.c: New file.
19254         * lib/unistdio/u32-u32-asnprintf.c: New file.
19255         * lib/unistdio/u32-u32-asprintf.c: New file.
19256         * lib/unistdio/u32-u32-snprintf.c: New file.
19257         * lib/unistdio/u32-u32-sprintf.c: New file.
19258         * lib/unistdio/u32-u32-vasnprintf.c: New file.
19259         * lib/unistdio/u32-u32-vasprintf.c: New file.
19260         * lib/unistdio/u32-u32-vsnprintf.c: New file.
19261         * lib/unistdio/u32-u32-vsprintf.c: New file.
19262         * tests/unistdio/test-ulc-asnprintf1.c: New file.
19263         * tests/unistdio/test-ulc-asnprintf1.h: New file.
19264         * tests/unistdio/test-ulc-printf1.h: New file.
19265         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
19266         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
19267         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
19268         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
19269         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
19270         * tests/unistdio/test-ulc-vasprintf1.c: New file.
19271         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
19272         * tests/unistdio/test-ulc-vsprintf1.c: New file.
19273         * tests/unistdio/test-u8-asnprintf1.c: New file.
19274         * tests/unistdio/test-u8-asnprintf1.h: New file.
19275         * tests/unistdio/test-u8-printf1.h: New file.
19276         * tests/unistdio/test-u8-vasnprintf1.c: New file.
19277         * tests/unistdio/test-u8-vasnprintf2.c: New file.
19278         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
19279         * tests/unistdio/test-u8-vasnprintf3.c: New file.
19280         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
19281         * tests/unistdio/test-u8-vasprintf1.c: New file.
19282         * tests/unistdio/test-u8-vsnprintf1.c: New file.
19283         * tests/unistdio/test-u8-vsprintf1.c: New file.
19284         * tests/unistdio/test-u16-asnprintf1.c: New file.
19285         * tests/unistdio/test-u16-asnprintf1.h: New file.
19286         * tests/unistdio/test-u16-printf1.h: New file.
19287         * tests/unistdio/test-u16-vasnprintf1.c: New file.
19288         * tests/unistdio/test-u16-vasnprintf2.c: New file.
19289         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
19290         * tests/unistdio/test-u16-vasnprintf3.c: New file.
19291         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
19292         * tests/unistdio/test-u16-vasprintf1.c: New file.
19293         * tests/unistdio/test-u16-vsnprintf1.c: New file.
19294         * tests/unistdio/test-u16-vsprintf1.c: New file.
19295         * tests/unistdio/test-u32-asnprintf1.c: New file.
19296         * tests/unistdio/test-u32-asnprintf1.h: New file.
19297         * tests/unistdio/test-u32-printf1.h: New file.
19298         * tests/unistdio/test-u32-vasnprintf1.c: New file.
19299         * tests/unistdio/test-u32-vasnprintf2.c: New file.
19300         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
19301         * tests/unistdio/test-u32-vasnprintf3.c: New file.
19302         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
19303         * tests/unistdio/test-u32-vasprintf1.c: New file.
19304         * tests/unistdio/test-u32-vsnprintf1.c: New file.
19305         * tests/unistdio/test-u32-vsprintf1.c: New file.
19306         * modules/unistdio/base: New file.
19307         * modules/unistdio/u-printf-args: New file.
19308         * modules/unistdio/ulc-asnprintf: New file.
19309         * modules/unistdio/ulc-asprintf: New file.
19310         * modules/unistdio/ulc-fprintf: New file.
19311         * modules/unistdio/ulc-printf-parse: New file.
19312         * modules/unistdio/ulc-snprintf: New file.
19313         * modules/unistdio/ulc-sprintf: New file.
19314         * modules/unistdio/ulc-vasnprintf: New file.
19315         * modules/unistdio/ulc-vasprintf: New file.
19316         * modules/unistdio/ulc-vfprintf: New file.
19317         * modules/unistdio/ulc-vsnprintf: New file.
19318         * modules/unistdio/ulc-vsprintf: New file.
19319         * modules/unistdio/u8-asnprintf: New file.
19320         * modules/unistdio/u8-asprintf: New file.
19321         * modules/unistdio/u8-printf-parse: New file.
19322         * modules/unistdio/u8-snprintf: New file.
19323         * modules/unistdio/u8-sprintf: New file.
19324         * modules/unistdio/u8-vasnprintf: New file.
19325         * modules/unistdio/u8-vasprintf: New file.
19326         * modules/unistdio/u8-vsnprintf: New file.
19327         * modules/unistdio/u8-vsprintf: New file.
19328         * modules/unistdio/u8-u8-asnprintf: New file.
19329         * modules/unistdio/u8-u8-asprintf: New file.
19330         * modules/unistdio/u8-u8-snprintf: New file.
19331         * modules/unistdio/u8-u8-sprintf: New file.
19332         * modules/unistdio/u8-u8-vasnprintf: New file.
19333         * modules/unistdio/u8-u8-vasprintf: New file.
19334         * modules/unistdio/u8-u8-vsnprintf: New file.
19335         * modules/unistdio/u8-u8-vsprintf: New file.
19336         * modules/unistdio/u16-asnprintf: New file.
19337         * modules/unistdio/u16-asprintf: New file.
19338         * modules/unistdio/u16-printf-parse: New file.
19339         * modules/unistdio/u16-snprintf: New file.
19340         * modules/unistdio/u16-sprintf: New file.
19341         * modules/unistdio/u16-vasnprintf: New file.
19342         * modules/unistdio/u16-vasprintf: New file.
19343         * modules/unistdio/u16-vsnprintf: New file.
19344         * modules/unistdio/u16-vsprintf: New file.
19345         * modules/unistdio/u16-u16-asnprintf: New file.
19346         * modules/unistdio/u16-u16-asprintf: New file.
19347         * modules/unistdio/u16-u16-snprintf: New file.
19348         * modules/unistdio/u16-u16-sprintf: New file.
19349         * modules/unistdio/u16-u16-vasnprintf: New file.
19350         * modules/unistdio/u16-u16-vasprintf: New file.
19351         * modules/unistdio/u16-u16-vsnprintf: New file.
19352         * modules/unistdio/u16-u16-vsprintf: New file.
19353         * modules/unistdio/u32-asnprintf: New file.
19354         * modules/unistdio/u32-asprintf: New file.
19355         * modules/unistdio/u32-printf-parse: New file.
19356         * modules/unistdio/u32-snprintf: New file.
19357         * modules/unistdio/u32-sprintf: New file.
19358         * modules/unistdio/u32-vasnprintf: New file.
19359         * modules/unistdio/u32-vasprintf: New file.
19360         * modules/unistdio/u32-vsnprintf: New file.
19361         * modules/unistdio/u32-vsprintf: New file.
19362         * modules/unistdio/u32-u32-asnprintf: New file.
19363         * modules/unistdio/u32-u32-asprintf: New file.
19364         * modules/unistdio/u32-u32-snprintf: New file.
19365         * modules/unistdio/u32-u32-sprintf: New file.
19366         * modules/unistdio/u32-u32-vasnprintf: New file.
19367         * modules/unistdio/u32-u32-vasprintf: New file.
19368         * modules/unistdio/u32-u32-vsnprintf: New file.
19369         * modules/unistdio/u32-u32-vsprintf: New file.
19370         * modules/unistdio/ulc-asnprintf-tests: New file.
19371         * modules/unistdio/ulc-vasnprintf-tests: New file.
19372         * modules/unistdio/ulc-vasprintf-tests: New file.
19373         * modules/unistdio/ulc-vsnprintf-tests: New file.
19374         * modules/unistdio/ulc-vsprintf-tests: New file.
19375         * modules/unistdio/u8-asnprintf-tests: New file.
19376         * modules/unistdio/u8-vasnprintf-tests: New file.
19377         * modules/unistdio/u8-vasprintf-tests: New file.
19378         * modules/unistdio/u8-vsnprintf-tests: New file.
19379         * modules/unistdio/u8-vsprintf-tests: New file.
19380         * modules/unistdio/u16-asnprintf-tests: New file.
19381         * modules/unistdio/u16-vasnprintf-tests: New file.
19382         * modules/unistdio/u16-vasprintf-tests: New file.
19383         * modules/unistdio/u16-vsnprintf-tests: New file.
19384         * modules/unistdio/u16-vsprintf-tests: New file.
19385         * modules/unistdio/u32-asnprintf-tests: New file.
19386         * modules/unistdio/u32-vasnprintf-tests: New file.
19387         * modules/unistdio/u32-vasprintf-tests: New file.
19388         * modules/unistdio/u32-vsnprintf-tests: New file.
19389         * modules/unistdio/u32-vsprintf-tests: New file.
19390         * MODULES.html.sh (Unicode string functions): Add the new modules.
19391
19392 2007-07-01  Bruno Haible  <bruno@clisp.org>
19393
19394         * lib/sprintf.c (sprintf): Limit the available length estimation,
19395         to avoid address wraparound.
19396         * lib/vsprintf.c (vsprintf): Likewise.
19397         * modules/sprintf-posix (Dependencies): Add stdint.
19398         * modules/vsprintf-posix (Dependencies): Likewise.
19399
19400 2007-07-01  Bruno Haible  <bruno@clisp.org>
19401
19402         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
19403         Windows PATH as well. Conservative double-quoting. Comments.
19404
19405 2007-07-01  Bruno Haible  <bruno@clisp.org>
19406             Eric Blake  <ebb9@byu.net>
19407             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19408
19409         * gnulib-tool (self_abspathname): Fix algorithm to cope with
19410         empty components in $PATH, denoting '.'.
19411
19412 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19413
19414         * gnulib-tool: Fix indentation.
19415         (func_create_megatestdir): Likewise.
19416         Report by Bruno Haible.
19417
19418 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19419
19420         Sync from Automake.
19421         * build-aux/gnupload: Fix shell portability issues with for loops.
19422         Report by Karl Berry.
19423
19424 2007-06-29  Simon Josefsson  <simon@josefsson.org>
19425
19426         * build-aux/maint.mk (POURL): Use translationproject.org.
19427
19428 2007-06-27  Simon Josefsson  <simon@josefsson.org>
19429             Bruno Haible  <bruno@clisp.org>
19430
19431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
19432         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
19433         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
19434         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
19435         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
19436
19437 2007-06-27  Bruno Haible  <bruno@clisp.org>
19438
19439         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
19440         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
19441
19442 2007-06-26  Karl Berry  <karl@gnu.org>
19443
19444         * MODULES.html.sh: remove xreadlink-with-size.
19445
19446 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19447
19448         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
19449         method that I hope also handles the double-include problem noted
19450         by Bruno Haible in
19451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
19452
19453 2007-06-23  Bruno Haible  <bruno@clisp.org>
19454
19455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19456         Don't let the 'mostlyclean' target fail if the last subdirectory could
19457         not be removed.
19458         Reported by Karl Berry.
19459
19460 2007-06-23  Bruno Haible  <bruno@clisp.org>
19461
19462         * gnulib-tool (echo): Add a speedier workaround for ksh.
19463         * tests/test-echo.sh: Likewise.
19464
19465 2007-06-23  Bruno Haible  <bruno@clisp.org>
19466
19467         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
19468         * tests/test-echo.sh: Likewise.
19469
19470 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19471
19472         * gnulib-tool (IFS): Initialize early, so we don't set it to
19473         empty later.
19474         (self_abspathname): Rewrite algorithm to set it, reindent.
19475         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19476         (func_create_megatestdir): Merge some sed scripts.
19477
19478 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19479
19480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
19481         exposed by Sun Studio 11 cc on Solaris 8.
19482
19483 2007-06-22  Bruno Haible  <bruno@clisp.org>
19484
19485         * gnulib-tool (echo): Ensure the echo primitive does not interpret
19486         backslashes.
19487         * tests/test-echo.sh: New file.
19488
19489 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19490
19491         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
19492         simplify `sed_replace_build_aux' scripts, they are portable but
19493         echoing them with `echo' is not.
19494         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
19495
19496 2007-06-21  Karl Berry  <karl@gnu.org>
19497
19498         * config/srclist.txt: guess we can't handle the licenses via
19499         srclist at the moment.
19500
19501 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19502
19503         * MODULES.html.sh: Add include_next.
19504         * modules/include_next: New file.
19505
19506 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19507
19508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
19509         INCLUDE_NEXT.
19510         (gl_CHECK_NEXT_HEADERS): New macro.
19511         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
19512         the obsolescent gl_ABSOLUTE_HEADER.
19513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19514         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19515         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19517         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19518         * m4/math_h.m4 (gl_MATH_H): Likewise.
19519         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19520         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19521         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19522         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19523         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19524         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19528         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19530         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19531         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
19532         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19533         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19534         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19535         * m4/inttypes.m4 (gl_INTTYPES_H): Define
19536         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
19537         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
19538         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
19539         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
19540         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
19541         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
19542         * lib/float_.h: Likewise.
19543         * lib/inttypes_.h: Likewise.
19544         * lib/math_.h: Likewise.
19545         * lib/search_.h: Likewise.
19546         * lib/signal_.h: Likewise.
19547         * lib/stdint_.h: Likewise.
19548         * lib/stdio_.h: Likewise.
19549         * lib/stdlib_.h: Likewise.
19550         * lib/string_.h: Likewise.
19551         * lib/sys_stat_.h: Likewise.
19552         * lib/sys_time_.h: Likewise.
19553         * lib/time_.h: Likewise.
19554         * lib/unistd_.h: Likewise.
19555         * lib/wchar_.h: Likewise.
19556         * lib/wctype_.h: Likewise.
19557         * lib/dirent_.h: Likewise.
19558         * lib/iconv_.h: Likewise.
19559         * lib/locale_.h: Likewise.
19560         * lib/netinet_in_.h: Likewise.
19561         * lib/sys_select_.h: Likewise.
19562         * lib/sys_socket_.h: Likewise.
19563         * lib/sysexits_.h: Likewise.
19564         * modules/fcntl (Depends-on): Depend on include_next, not
19565         absolute_header.
19566         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19567         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19568         * modules/fchdir: Likewise.
19569         * modules/float: Likewise.
19570         * modules/iconv_open: Likewise.
19571         * modules/inttypes: Likewise.
19572         * modules/locale: Likewise.
19573         * modules/math: Likewise.
19574         * modules/netinet_in: Likewise.
19575         * modules/search: Likewise.
19576         * modules/signal: Likewise.
19577         * modules/stdint: Likewise.
19578         * modules/stdio: Likewise.
19579         * modules/stdlib: Likewise.
19580         * modules/string: Likewise.
19581         * modules/sys_select: Likewise.
19582         * modules/sys_socket: Likewise.
19583         * modules/sys_stat: Likewise.
19584         * modules/sys_time: Likewise.
19585         * modules/sysexits: Likewise.
19586         * modules/time: Likewise.
19587         * modules/unistd: Likewise.
19588         * modules/wchar: Likewise.
19589         * modules/wctype: Likewise.
19590         * modules/sys_stat: Change maintainer to "all".
19591         * modules/unistd: Likewise.
19592
19593 2007-06-20  Karl Berry  <karl@gnu.org>
19594
19595         * config/srclist.txt: track www changes in license files.
19596
19597 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
19598
19599         * build-aux/bootstrap: Remove stray dot.
19600         Make sure build_aux settings are honored when linking
19601         gnulib_extra_files.
19602
19603 2007-06-19  Eric Blake  <ebb9@byu.net>
19604
19605         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19606         Allow compilation on cygwin.
19607
19608 2007-06-19  Jim Meyering  <jim@meyering.net>
19609
19610         xreadlink-with-size: Remove module.  No longer used.
19611         Ex-callers now use xreadlink or mreadlink-with-size.
19612         * modules/xreadlink-with-size: Remove module.
19613         * lib/xreadlink-with-size.c: Remove file.
19614         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19615         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19616         just before the function definition *is* accurate.
19617
19618         Eliminate one way canonicalize_filename_mode could exit.
19619         * lib/canonicalize.c (canonicalize_filename_mode):
19620         Use mreadlink_with_size, not xreadlink_with_size.
19621
19622 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19623
19624         Detect porting problems to FreeBSD/arm, which has time_t wider than
19625         long int.  Original problem reported for GNU diff by Xin Li in
19626         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19627         * modules/getdate (Depends-on): Add intprops, verify.
19628         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19629         is an integer type no wider than long int.
19630
19631 2007-06-18  Jim Meyering  <jim@meyering.net>
19632
19633         New module: mreadlink-with-size.
19634         * MODULES.html.sh: Add mreadlink-with-size.
19635         * modules/mreadlink-with-size: New module
19636         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19637         not xreadlink-with-size.
19638         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19639
19640 2007-06-16  Bruno Haible  <bruno@clisp.org>
19641
19642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19643         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19644         Reported by Gary V. Vaughan <gary@gnu.org>.
19645
19646 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         Revamp lchown so that it lives in unistd.h where it belongs.
19649         * lib/lchown.h: Remove.
19650         * lib/dirchownmod.c: Don't include lib/lchown.h.
19651         * lib/fchownat.c: Likewise.
19652         * lib/openat.c: Likewise.
19653         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19654         does not follow symlinks.
19655         (EOPNOTSUPP): Define if not defined.
19656         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19657         is defined to 0.
19658         (lchown): New decl.
19659         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19660         Do not check for lchown decl.
19661         Set REPLACE_LCHOWN.
19662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19663         REPLACE_LCHOWN.
19664         * modules/chown: Make it clear it follows symlinks.
19665         * modules/lchown: Make it clear it doesn't follow symlinks.
19666         (Files): Remove lib/lchown.h
19667         (Depends-on): Add unistd.
19668         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19669         (Include): Include <unistd.h>, not "lchown.h".
19670         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19671         REPLACE_LCHOWN.
19672
19673 2007-06-15  Jim Meyering  <jim@meyering.net>
19674
19675         Change license (GPL to LGPL) of fsusage and dependents.
19676         * modules/fsusage (License): Change to LGPL.
19677         * modules/full-read (License): Likewise.
19678         * modules/full-write (License): Likewise.
19679         * modules/safe-read (License): Likewise.
19680         * modules/safe-write (License): Likewise.
19681
19682 2007-06-14  Ben Pfaff  <blp@gnu.org>
19683
19684         Missing part of allocsa -> malloca transition.
19685         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19686         gl_MALLOCA.
19687
19688 2007-06-12  Bruno Haible  <bruno@clisp.org>
19689
19690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19691         to ia64, x86_64, i386.
19692         Reported by Eric Blake.
19693
19694 2007-06-12  Bruno Haible  <bruno@clisp.org>
19695
19696         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19697         cross-compiling to x86_64.
19698
19699 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19702         glitch reported by Ralf Wildenhues in
19703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19704
19705         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19706         Vin Shelton.
19707
19708 2007-06-11  Bruno Haible  <bruno@clisp.org>
19709
19710         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19711         replacement string.
19712         Reported by Eric Blake.
19713
19714 2007-06-10  Bruno Haible  <bruno@clisp.org>
19715
19716         Prepare vasnprintf code for use with Unicode strings.
19717         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19718         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19719         TYPE_U32_STRING.
19720         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19721         a_u32_string variants.
19722         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19723         * lib/printf-args.c: Don't include config.h and the specification
19724         header if PRINTF_FETCHARGS is already defined.
19725         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19726         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19727         TYPE_U16_STRING, TYPE_U32_STRING.
19728         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19729         u16_directive, u16_directives, u32_directive, u32_directives): New
19730         types.
19731         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19732         New declarations.
19733         * lib/printf-parse.c: Don't include config.h and the specification
19734         header if PRINTF_PARSE is already defined. Eliminate the set of
19735         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19736         them now. Include c-ctype.h.
19737         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19738         directive and CHAR_T_ONLY_ASCII.
19739         * lib/vasnprintf.c: Don't include config.h and the specification header
19740         if VASNPRINTF is already defined.
19741         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19742         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19743         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19744         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19745         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19746         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19747         code accordingly.
19748         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19749         pad_ourselves also in this case, with the 'c' and 's' directives, and
19750         with a different notion of "width".
19751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19752
19753 2007-06-10  Bruno Haible  <bruno@clisp.org>
19754
19755         * modules/unistr/u32-mbsnlen: New file.
19756         * lib/unistr/u32-mbsnlen.c: New file.
19757
19758         * modules/unistr/u16-mbsnlen: New file.
19759         * lib/unistr/u16-mbsnlen.c: New file.
19760
19761         * modules/unistr/u8-mbsnlen: New file.
19762         * lib/unistr/u8-mbsnlen.c: New file.
19763
19764         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19765         declarations.
19766
19767 2007-06-10  Bruno Haible  <bruno@clisp.org>
19768
19769         * lib/string_.h (mbsnlen): New declaration.
19770         * lib/mbsnlen.c: New file.
19771         * m4/mbsnlen.m4: New file.
19772         * modules/mbsnlen: New file.
19773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19774         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19775         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19776
19777 2007-06-10  Bruno Haible  <bruno@clisp.org>
19778
19779         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19780
19781 2007-06-10  Bruno Haible  <bruno@clisp.org>
19782
19783         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19784         * lib/mbuiter.h: Likewise.
19785
19786 2007-06-10  Bruno Haible  <bruno@clisp.org>
19787
19788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19789         declaration.
19790
19791 2007-06-10  Karl Berry  <karl@gnu.org>
19792
19793         * config/srclist.txt: remove gettext entries, Bruno prefers
19794         to update individually.
19795
19796 2007-06-10  Bruno Haible  <bruno@clisp.org>
19797
19798         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19799         'maxlen'. Ensure only length + width bytes are allocated, not
19800         length + 1 + width.
19801
19802 2007-06-09  Bruno Haible  <bruno@clisp.org>
19803
19804         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19805         (CHAR_T): Remove macro.
19806         (VASNPRINTF): Update.
19807
19808 2007-06-09  Bruno Haible  <bruno@clisp.org>
19809
19810         * MODULES.html.sh (Unicode string functions): Add the new modules.
19811
19812         * modules/uniconv/u32-conv-to-enc: New file.
19813         * lib/uniconv/u32-conv-to-enc.c: New file.
19814         * modules/uniconv/u32-conv-to-enc-tests: New file.
19815         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19816
19817         * modules/uniconv/u16-conv-to-enc: New file.
19818         * lib/uniconv/u16-conv-to-enc.c: New file.
19819         * lib/uniconv/u-conv-to-enc.h: New file.
19820         * modules/uniconv/u16-conv-to-enc-tests: New file.
19821         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19822
19823         * modules/uniconv/u8-conv-to-enc: New file.
19824         * lib/uniconv/u8-conv-to-enc.c: New file.
19825         * modules/uniconv/u8-conv-to-enc-tests: New file.
19826         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19827
19828         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19829         u32_conv_to_encoding): New declarations.
19830
19831 2007-06-09  Bruno Haible  <bruno@clisp.org>
19832
19833         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19834
19835 2007-06-09  Bruno Haible  <bruno@clisp.org>
19836
19837         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19838         * modules/malloca: Renamed from modules/allocsa, updated.
19839         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19840         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19841         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19842         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19843         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19844         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19845         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19846         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19847         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19848         * modules/c-strcasestr (Depends-on): Update.
19849         * lib/c-strcasestr.c: Update.
19850         * modules/c-strstr (Depends-on): Update.
19851         * lib/c-strstr.c: Update.
19852         * modules/canonicalize-lgpl (Depends-on): Update.
19853         * lib/canonicalize-lgpl.c: Update.
19854         * modules/clean-temp (Depends-on): Update.
19855         * lib/clean-temp.c: Update.
19856         * modules/csharpcomp (Depends-on): Update.
19857         * lib/csharpcomp.c: Update.
19858         * modules/csharpexec (Depends-on): Update.
19859         * lib/csharpexec.c: Update.
19860         * modules/javacomp (Depends-on): Update.
19861         * lib/javacomp.c: Update.
19862         * modules/javaexec (Depends-on): Update.
19863         * lib/javaexec.c: Update.
19864         * modules/mbscasestr (Depends-on): Update.
19865         * lib/mbscasestr.c: Update.
19866         * modules/mbsstr (Depends-on): Update.
19867         * lib/mbsstr.c: Update.
19868         * modules/setenv (Depends-on): Update.
19869         * lib/setenv.c: Update.
19870         * modules/strcasestr (Depends-on): Update.
19871         * lib/strcasestr.c: Update.
19872         * modules/striconveha (Depends-on): Update.
19873         * lib/striconveha.c: Update.
19874         * modules/relocatable-prog-wrapper (Files): Update.
19875         * lib/relocwrapper.c: Update.
19876         * build-aux/install-reloc: Update.
19877         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19878
19879 2007-06-08  Bruno Haible  <bruno@clisp.org>
19880
19881         Port to uClibc.
19882         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19883         * lib/fpurge.c (fpurge): Likewise.
19884         * lib/freading.c (freading): Likewise.
19885         * lib/fseeko.c (rpl_fseeko): Likewise.
19886         * lib/fseterr.c (fseterr): Likewise.
19887         * lib/fwriting.c (fwriting): Likewise.
19888         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19889
19890 2007-06-08  Bruno Haible  <bruno@clisp.org>
19891
19892         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19893         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19894         * modules/gettext (Files): Add m4/intlmacosx.m4.
19895
19896 2007-06-07  Bruno Haible  <bruno@clisp.org>
19897
19898         * modules/localename-tests: New file.
19899         * tests/test-localename.c: New file.
19900
19901         New module 'localename'.
19902         * lib/localename.h: New file.
19903         * lib/localename.c: New file, from GNU gettext.
19904         * m4/localename.m4: New file.
19905         * modules/localename: New file.
19906
19907 2007-06-07  Bruno Haible  <bruno@clisp.org>
19908
19909         Work around the lack of <wchar.h> on some builds of uClibc.
19910         * doc/headers/wchar.texi: Update.
19911         * lib/wchar_.h: Include <wchar.h> only if it exists.
19912         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19913         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19914         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19915         doesn't exist.
19916         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19917         * modules/mbfile (Depends-on): Add wchar.
19918         * modules/mbiter (Depends-on): Likewise.
19919         * modules/mbuiter (Depends-on): Likewise.
19920         Reported by Simon Josefsson.
19921
19922 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19923
19924         Work around problem reported by Steven M. Schweda in
19925         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19926         Tru64 5.1B with the Compaq compiler environment installed declares
19927         an 'isblank' function but does not define it in the C library.
19928         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19929         * lib/regex_internal.h (isblank): Likewise.
19930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19931         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19932
19933 2007-06-05  Bruno Haible  <bruno@clisp.org>
19934
19935         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19936         ia64.
19937         * modules/printf-safe: New file.
19938         * modules/fprintf-posix (Depends-on): Add printf-safe.
19939         * modules/printf-posix (Depends-on): Likewise.
19940         * modules/snprintf-posix (Depends-on): Likewise.
19941         * modules/sprintf-posix (Depends-on): Likewise.
19942         * modules/vasnprintf-posix (Depends-on): Likewise.
19943         * modules/vasprintf-posix (Depends-on): Likewise.
19944         * modules/vfprintf-posix (Depends-on): Likewise.
19945         * modules/vprintf-posix (Depends-on): Likewise.
19946         * modules/vsnprintf-posix (Depends-on): Likewise.
19947         * modules/vsprintf-posix (Depends-on): Likewise.
19948         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19949         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19950         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19951         "no" on i386, x86_64, ia64.
19952         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19953         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19954         on i386, x86_64, ia64.
19955         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19956         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19957         on i386, x86_64, ia64.
19958         * tests/test-vasnprintf-posix.c: Include float.h.
19959         (LDBL80_WORDS): New macro.
19960         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19961         on i386, x86_64, ia64.
19962         * tests/test-vasprintf-posix.c: Include float.h.
19963         (LDBL80_WORDS): New macro.
19964         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19965         on i386, x86_64, ia64.
19966         * tests/test-snprintf-posix.c: Include float.h.
19967         * tests/test-sprintf-posix.c: Likewise.
19968         * tests/test-vsnprintf-posix.c: Likewise.
19969         * tests/test-vsprintf-posix.c: Likewise.
19970
19971 2007-06-05  Bruno Haible  <bruno@clisp.org>
19972
19973         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19975         non-IEEE numbers on i386, x86_64, ia64.
19976         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19977         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19978         * tests/test-isnanl.h: Include float.h.
19979         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19980
19981 2007-06-05  Bruno Haible  <bruno@clisp.org>
19982
19983         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19984         also the %a / %A. Handle the %a / %A code before this extra handling.
19985
19986 2007-06-05  Bruno Haible  <bruno@clisp.org>
19987
19988         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19989         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19990
19991 2007-06-05  Bruno Haible  <bruno@clisp.org>
19992
19993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19994         typo in variable name.
19995
19996 2007-06-05  Eric Blake  <ebb9@byu.net>
19997
19998         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19999         Reported by Simon Josefsson.
20000
20001 2007-06-04  Bruno Haible  <bruno@clisp.org>
20002
20003         Avoid test failures on some PowerPC platforms.
20004         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
20005         Define differently for PowerPC.
20006         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
20007         Reported by Gary V. Vaughan <gary@gnu.org>.
20008
20009 2007-06-02  Bruno Haible  <bruno@clisp.org>
20010
20011         Fix test-stdint failure on FreeBSD/ia64.
20012         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
20013         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
20014         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
20015         * doc/headers/stdint.texi: Update.
20016
20017 2007-06-01  Bruno Haible  <bruno@clisp.org>
20018
20019         * tests/test-binary-io.c (main): Pass a third argument to open().
20020         Reported by Gary V. Vaughan <gary@gnu.org>.
20021
20022 2007-06-01  Bruno Haible  <bruno@clisp.org>
20023
20024         * doc/functions/frexpl.texi: Update for mingw.
20025
20026 2007-06-01  Bruno Haible  <bruno@clisp.org>
20027
20028         * tests/test-lseek.c (main): Disable test of errno for invalid third
20029         argument.
20030         * doc/functions/lseek.texi: Update.
20031         Reported by Gary V. Vaughan <gary@gnu.org>.
20032
20033 2007-05-28  Bruno Haible  <bruno@clisp.org>
20034
20035         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
20036
20037 2007-05-31  Eric Blake  <ebb9@byu.net>
20038
20039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
20040         cross compiling.
20041
20042 2007-05-30  Eric Blake  <ebb9@byu.net>
20043         and Bruno Haible  <bruno@clisp.org>
20044
20045         Work around mingw test failures exposed by m4-1.4.9b.
20046         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
20047         * tests/test-unistd.c: Disable uid_t and git_t tests for the
20048         moment.
20049
20050 2007-05-30  Bruno Haible  <bruno@clisp.org>
20051
20052         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
20053         assuming that they are closed. Needed on HP-UX 11.
20054
20055 2007-05-29  Bruno Haible  <bruno@clisp.org>
20056
20057         Fix a problem with #include_next.
20058         * lib/dirent_.h: Split the double-inclusion guard.
20059         * lib/fcntl_.h: Likewise.
20060         * lib/float_.h: Likewise.
20061         * lib/iconv_.h: Likewise.
20062         * lib/inttypes_.h: Likewise.
20063         * lib/locale_.h: Likewise.
20064         * lib/math_.h: Likewise.
20065         * lib/netinet_in_.h: Likewise.
20066         * lib/search_.h: Likewise.
20067         * lib/signal_.h: Likewise.
20068         * lib/stdint_.h: Likewise.
20069         * lib/stdio_.h: Likewise.
20070         * lib/stdlib_.h: Likewise.
20071         * lib/string_.h: Likewise.
20072         * lib/sys_select_.h: Likewise.
20073         * lib/sys_socket_.h: Likewise.
20074         * lib/sys_stat_.h: Likewise.
20075         * lib/sys_time_.h: Likewise.
20076         * lib/sysexits_.h: Likewise.
20077         * lib/time_.h: Likewise.
20078         * lib/unistd_.h: Likewise.
20079         * lib/wchar_.h: Likewise.
20080         * lib/wctype_.h: Likewise.
20081
20082 2007-05-29  Bruno Haible  <bruno@clisp.org>
20083
20084         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
20085         for the moment.
20086
20087 2007-05-29  Bruno Haible  <bruno@clisp.org>
20088
20089         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
20090         invocation.
20091         Reported by Eric Blake.
20092
20093 2007-05-29  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
20096         compiling case.
20097
20098 2007-05-29  Eric Blake  <ebb9@byu.net>
20099             Bruno Haible  <bruno@clisp.org>
20100
20101         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
20102         cross compiles.
20103
20104 2007-05-28  Eric Blake  <ebb9@byu.net>
20105
20106         * modules/closein-tests (test_closein_LDADD): Support test on
20107         cygwin with libtool.
20108
20109 2007-05-28  Bruno Haible  <bruno@clisp.org>
20110
20111         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
20112         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20113         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20114         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20115         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20116         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20117         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20118         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20119         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20120
20121 2007-05-28  Eric Blake  <ebb9@byu.net>
20122
20123         Unconditionally include <config.h> in unit tests.
20124         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
20125         * tests/test-allocsa.c, tests/test-arcfour.c,
20126         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
20127         tests/test-array_list.c, tests/test-array_oset.c,
20128         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
20129         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
20130         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
20131         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
20132         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
20133         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
20134         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
20135         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
20136         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
20137         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
20138         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
20139         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
20140         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
20141         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
20142         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
20143         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
20144         test-md5.c, test-memmem.c, test-printf-posix.c,
20145         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
20146         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
20147         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
20148         test-strcasestr.c, test-striconv.c, test-striconveh.c,
20149         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
20150         test-vasnprintf-posix2.c, test-vasnprintf.c,
20151         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
20152         test-vfprintf-posix.c, test-vprintf-posix.c,
20153         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
20154         test-xvasprintf.c: Likewise.
20155
20156 2007-05-28  Bruno Haible  <bruno@clisp.org>
20157
20158         * gnulib-tool (func_import): Remember the --with-tests command-line
20159         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
20160         Reported by Eric Blake.
20161
20162 2007-05-28  Bruno Haible  <bruno@clisp.org>
20163
20164         * modules/ftell-tests: New file.
20165         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
20166         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
20167
20168         * lib/ftell.c: New file.
20169         * modules/ftell: New file.
20170         * m4/ftell.m4: New file.
20171         * doc/functions/ftell.texi: Update.
20172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
20173         REPLACE_FTELL.
20174         * lib/stdio_.h (rpl_ftell): New declaration.
20175         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
20176         REPLACE_FTELL.
20177
20178 2007-05-28  Eric Blake  <ebb9@byu.net>
20179
20180         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
20181
20182 2007-05-28  Bruno Haible  <bruno@clisp.org>
20183
20184         * modules/fseek-tests: New file.
20185         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
20186         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
20187
20188         * lib/fseek.c: New file.
20189         * modules/fseek: New file.
20190         * m4/fseek.m4: New file.
20191         * doc/functions/fseek.texi: Update.
20192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
20193         REPLACE_FSEEK.
20194         * lib/stdio_.h (rpl_fseek): New declaration.
20195         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
20196         REPLACE_FSEEK.
20197
20198 2007-05-28  Bruno Haible  <bruno@clisp.org>
20199
20200         * lib/stdio_.h (fflush): More comments.
20201
20202 2007-05-28  Bruno Haible  <bruno@clisp.org>
20203
20204         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
20205         runtime test.
20206
20207 2007-05-28  Eric Blake  <ebb9@byu.net>
20208
20209         Improve lseek module.
20210         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
20211         * lib/unistd_.h (lseek): Scale back link warning message.
20212         * tests/test-lseek.c: Beef up test.
20213         * tests/test-lseek.sh: Exercise more facets of lseek.
20214         Reported by Bruno Haible.
20215
20216 2007-05-28  Bruno Haible  <bruno@clisp.org>
20217
20218         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
20219         to define.
20220
20221 2007-05-27  Bruno Haible  <bruno@clisp.org>
20222
20223         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
20224
20225 2007-05-27  Bruno Haible  <bruno@clisp.org>
20226
20227         * modules/openmp: New file.
20228         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
20229         Noah Misch.
20230
20231 2007-05-26  Bruno Haible  <bruno@clisp.org>
20232
20233         * modules/chdir-long (Depends-on): Add fchdir.
20234         * modules/chdir-safer (Depends-on): Likewise.
20235         * modules/fts (Depends-on): Likewise.
20236         * modules/fts-lgpl (Depends-on): Likewise.
20237         * modules/openat (Depends-on): Likewise.
20238         * modules/savewd (Depends-on): Likewise.
20239
20240 2007-05-24  Eric Blake  <ebb9@byu.net>
20241
20242         Fix lseek on mingw.
20243         * modules/lseek: New module.
20244         * m4/lseek.m4: New file.
20245         * lib/lseek.c: New file.
20246         * modules/lseek-tests: New file.
20247         * tests/test-lseek.c: New file.
20248         * tests/test-lseek.sh: New file.
20249         * MODULES.html.sh: Document lseek module.
20250         * modules/fflush (Depends-on): Add lseek, fseeko.
20251         * modules/fseeko (Depends-on): Likewise.
20252         * modules/ftello (Depends-on): Likewise.
20253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
20254         broken.
20255         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
20256         broken.
20257         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
20258         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
20259         * lib/ftello.c (rpl_ftello): Likewise.
20260         * tests/test-fseeko.c (main): Test this.
20261         * tests/test-fseeko.sh: Likewise.
20262         * tests/test-ftello.c (main): Likewise.
20263         * tests/test-ftello.sh: Likewise.
20264         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
20265         implies replacing fseek.
20266         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
20267         HAVE_FTELLO.
20268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
20269         * modules/unistd (Makefile.am): Likewise.
20270         * lib/unistd_.h (lseek): Declare a replacement.
20271         * doc/functions/lseek.texi (lseek): Document this fix.
20272         * doc/functions/fseek.texi (fseek): Likewise.
20273         * doc/functions/ftell.texi (ftell): Likewise.
20274
20275 2007-05-24  Bruno Haible  <bruno@clisp.org>
20276
20277         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
20278         in the printed representation of a NaN.
20279         * tests/test-vasprintf-posix.c (test_function): Likewise.
20280         * tests/test-snprintf-posix.h (test_function): Likewise.
20281         * tests/test-sprintf-posix.h (test_function): Likewise.
20282         Reported by Eric Blake.
20283
20284 2007-05-23  Eric Blake  <ebb9@byu.net>
20285
20286         Fix fseeko/ftello on cygwin 1.5.24.
20287         * doc/functions/fseeko.texi (fseeko): Document the fix.
20288         * doc/functions/ftello.texi (ftello): Document the fix.
20289         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
20290         * doc/functions/stdout.text (stdout): New file.
20291         * doc/functions/stderr.text (stderr): New file.
20292         * doc/gnulib.texi (Function Substitutes): Use new files.
20293         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
20294         prior to 1.7.0.
20295         * tests/test-ftello.c (main): Likewise for ftello.
20296         * tests/test-fseeko.sh: New file.
20297         * tests/test-ftello.sh: New file.
20298         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
20299         with seekable stdin.
20300         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
20301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
20302         (gl_REPLACE_FSEEKO): New macro.
20303         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
20304         * modules/fseeko (Files): Distribute fseeko.c.
20305         * modules/ftello (Files): Distribute ftello.c.
20306         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
20307         mode.
20308         * lib/ftello.c (rpl_ftello): New file.
20309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
20310         fseeko, ftello.
20311         (gl_STDIN_LARGE_OFFSET): New macro.
20312         * modules/stdio (Makefile.am): Perform the replacement.
20313         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
20314
20315 2007-05-23  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
20318         GNULIB_POSIXCHECK is defined.
20319
20320 2007-05-21  Bruno Haible  <bruno@clisp.org>
20321
20322         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
20323         Check also the output for NaN arguments. When cross-compiling, guess
20324         no on IRIX.
20325         * lib/vasnprintf.c: Update comments.
20326         * tests/test-vasnprintf-posix.c (strisnan): New function.
20327         (test_function): Use it.
20328         * tests/test-vasprintf-posix.c (strisnan): New function.
20329         (test_function): Use it.
20330         * tests/test-snprintf-posix.h (strisnan): New function.
20331         (test_function): Use it.
20332         * tests/test-sprintf-posix.h (strisnan): New function.
20333         (test_function): Use it.
20334         Reported by Eric Blake.
20335
20336 2007-05-20  Bruno Haible  <bruno@clisp.org>
20337
20338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
20339         numbers that fails on BeOS.
20340         * doc/functions/frexpl.texi: Update.
20341
20342 2007-05-20  Jim Meyering  <jim@meyering.net>
20343
20344         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
20345         forced upon us by glibc-2.6.
20346
20347 2007-05-20  Bruno Haible  <bruno@clisp.org>
20348
20349         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
20350         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
20351         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
20352         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
20353         NEED_PRINTF_INFINITE.
20354         (is_infinitel): New function.
20355         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
20356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
20357         gl_PREREQ_VASNPRINTF_INFINITE.
20358         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
20359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20360         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
20361         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
20362         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
20363         gl_PREREQ_VASNPRINTF_INFINITE.
20364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20368         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20371         * doc/functions/fprintf.texi: Update.
20372         * doc/functions/printf.texi: Update.
20373         * doc/functions/snprintf.texi: Update.
20374         * doc/functions/sprintf.texi: Update.
20375         * doc/functions/vfprintf.texi: Update.
20376         * doc/functions/vprintf.texi: Update.
20377         * doc/functions/vsnprintf.texi: Update.
20378         * doc/functions/vsprintf.texi: Update.
20379
20380 2007-05-20  Bruno Haible  <bruno@clisp.org>
20381
20382         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
20383         was not found in libc.
20384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20385
20386 2007-05-20  Bruno Haible  <bruno@clisp.org>
20387
20388         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20389         printed as "-nan" instead of "nan".
20390         * tests/test-vasprintf-posix.c (test_function): Likewise.
20391         * tests/test-snprintf-posix.h (test_function): Likewise.
20392         * tests/test-sprintf-posix.h (test_function): Likewise.
20393         Needed for HP-UX 11.
20394
20395 2007-05-20  Jim Meyering  <jim@meyering.net>
20396
20397         Fix buggy test for the fchownat-deref bug.
20398         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
20399         symlink required for the run-test.  Without it, this test would
20400         always declare that fchownat doesn't work, and client code would
20401         unnecessarily use the replacement function with fixed libc.
20402         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
20403         Reported by Greg Schafer.
20404
20405 2007-05-19  Bruno Haible  <bruno@clisp.org>
20406
20407         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
20408         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
20409         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
20410         Needed for IRIX 6.5 and Solaris 2.5.1.
20411
20412 2007-05-19  Bruno Haible  <bruno@clisp.org>
20413
20414         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
20415         (test_function): Skip tests involving -0.0 on platforms where
20416         -0.0 = 0.0.
20417         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
20418         (test_function): Skip tests involving -0.0 on platforms where
20419         -0.0 = 0.0.
20420         * tests/test-snprintf-posix.h (have_minus_zero): New function.
20421         (test_function): Skip tests involving -0.0 on platforms where
20422         -0.0 = 0.0.
20423         * tests/test-sprintf-posix.h (have_minus_zero): New function.
20424         (test_function): Skip tests involving -0.0 on platforms where
20425         -0.0 = 0.0.
20426         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
20427         tests.
20428         * tests/test-printf-posix.h (test_function): Likewise.
20429         * tests/test-printf-posix.output: Remove all -0.0 related results.
20430         Needed for IRIX 6.5.
20431
20432 2007-05-19  Bruno Haible  <bruno@clisp.org>
20433
20434         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20435         printed as "nan0x7fffffff" instead of "nan".
20436         * tests/test-vasprintf-posix.c (test_function): Likewise.
20437         * tests/test-snprintf-posix.h (test_function): Likewise.
20438         * tests/test-sprintf-posix.h (test_function): Likewise.
20439         * tests/test-fprintf-posix.h (NaN): Remove macro.
20440         (test_function): Remove all NaN related tests.
20441         * tests/test-printf-posix.h (NaN): Remove macro.
20442         (test_function): Remove all NaN related tests.
20443         * tests/test-printf-posix.output: Remove all NaN related results.
20444         Needed for IRIX 6.5.
20445
20446 2007-05-19  Bruno Haible  <bruno@clisp.org>
20447
20448         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
20449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20450
20451 2007-05-19  Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/float_.h: New file.
20454         * m4/float_h.m4: New file.
20455         * modules/float: New file.
20456         * modules/isnanl (Dependencies): Add float.
20457         * modules/isnanl-nolibm (Dependencies): Likewise.
20458         * modules/mathl (Dependencies): Likewise.
20459         * modules/printf-frexpl (Dependencies): Likewise.
20460         * modules/signbit (Dependencies): Likewise.
20461         * modules/vasnprintf (Dependencies): Likewise.
20462         * doc/headers/float.texi: Update.
20463
20464 2007-05-19  Jim Meyering  <jim@meyering.net>
20465
20466         * lib/utimens.c (gl_futimens): Rename from futimens,
20467         now that glibc-2.6 declares futimens.
20468         * lib/utimens.h: Likewise.
20469
20470 2007-05-19  Bruno Haible  <bruno@clisp.org>
20471
20472         Avoid test failures on mingw.
20473         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
20474         * tests/test-printf-posix.sh: Likewise.
20475         * tests/test-vfprintf-posix.sh: Likewise.
20476         * tests/test-vprintf-posix.sh: Likewise.
20477
20478 2007-05-19  Bruno Haible  <bruno@clisp.org>
20479
20480         Fix *printf result for NaN, Inf, -0.0 on mingw.
20481         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
20482         * lib/vasnprintf.c: Include math.h and isnan.h.
20483         (is_infinite_or_zero): New function.
20484         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
20485         values in the %f, %F, %e, %E, %g, %G directives.
20486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
20487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20488         gl_PRINTF_INFINITE and test its result. Invoke
20489         gl_PREREQ_VASNPRINTF_INFINITE.
20490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20497         * doc/functions/fprintf.texi: Update.
20498         * doc/functions/printf.texi: Update.
20499         * doc/functions/snprintf.texi: Update.
20500         * doc/functions/sprintf.texi: Update.
20501         * doc/functions/vfprintf.texi: Update.
20502         * doc/functions/vprintf.texi: Update.
20503         * doc/functions/vsnprintf.texi: Update.
20504         * doc/functions/vsprintf.texi: Update.
20505
20506 2007-05-19  Bruno Haible  <bruno@clisp.org>
20507
20508         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
20509         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
20510         Instead of multiplying with 10^k, set extra_zeroes to k.
20511         (scale10_round_long_double): Remove function.
20512
20513 2007-05-18  Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
20516         introduced on 2007-05-06.
20517
20518 2007-05-18  Bruno Haible  <bruno@clisp.org>
20519
20520         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
20521         %g directives.
20522         * tests/test-vasprintf-posix.c (test_function): Likewise.
20523         * tests/test-snprintf-posix.h (test_function): Likewise.
20524         * tests/test-sprintf-posix.h (test_function): Likewise.
20525
20526 2007-05-18  Bruno Haible  <bruno@clisp.org>
20527
20528         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
20529         (strmatch): New function.
20530         (test_function): Test the %f directive on numbers of various exponents.
20531         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
20532         (strmatch): New function.
20533         (test_function): Test the %f directive on numbers of various exponents.
20534         * tests/test-snprintf-posix.h (strmatch): New function.
20535         (test_function): Test the %f directive on numbers of various exponents.
20536         * tests/test-sprintf-posix.h (strmatch): New function.
20537         (test_function): Test the %f directive on numbers of various exponents.
20538         * tests/test-snprintf-posix.c (SIZEOF): New macro.
20539         * tests/test-sprintf-posix.c (SIZEOF): New macro.
20540         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
20541         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
20542
20543 2007-05-18  Bruno Haible  <bruno@clisp.org>
20544
20545         Add support for 'long double' number output.
20546         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
20547         * lib/vasnprintf.c: Include math.h and float+.h.
20548         (mp_limb_t): New type.
20549         (GMP_LIMB_BITS): New macro.
20550         (mp_twolimb_t): New type.
20551         (GMP_TWOLIMB_BITS): New macro.
20552         (mpn_t): New type.
20553         (multiply, divide, convert_to_decimal, decode_long_double,
20554         scale10_round_long_double, scale10_round_decimal_long_double,
20555         floorlog10l): New functions.
20556         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20557         for the %f, %F, %e, %E, %g, %G directives.
20558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20560         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20561         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20569         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20570         * modules/snprintf-posix (Depends-on): Likewise.
20571         * modules/sprintf-posix (Depends-on): Likewise.
20572         * modules/vasnprintf-posix (Depends-on): Likewise.
20573         * modules/vasprintf-posix (Depends-on): Likewise.
20574         * modules/vfprintf-posix (Depends-on): Likewise.
20575         * modules/vsnprintf-posix (Depends-on): Likewise.
20576         * modules/vsprintf-posix (Depends-on): Likewise.
20577         * modules/vasnprintf (Files): Add lib/float+.h.
20578         * doc/functions/fprintf.texi: Update.
20579         * doc/functions/printf.texi: Update.
20580         * doc/functions/snprintf.texi: Update.
20581         * doc/functions/sprintf.texi: Update.
20582         * doc/functions/vfprintf.texi: Update.
20583         * doc/functions/vprintf.texi: Update.
20584         * doc/functions/vsnprintf.texi: Update.
20585         * doc/functions/vsprintf.texi: Update.
20586
20587 2007-05-18  Bruno Haible  <bruno@clisp.org>
20588
20589         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20590
20591 2007-05-18  Bruno Haible  <bruno@clisp.org>
20592
20593         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20594         for printing 64-bit integers. Needed for mingw.
20595
20596 2007-05-18  Bruno Haible  <bruno@clisp.org>
20597
20598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20599         gl_FUNC_FREXPL_WORKS.
20600         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20601
20602 2007-05-18  Bruno Haible  <bruno@clisp.org>
20603
20604         * modules/frexpl-nolibm-tests: New file.
20605
20606         * modules/frexpl-nolibm: New file.
20607         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20608
20609 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20610
20611         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20612         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20613         GCC 4.2, which otherwise issues a lot of warnings.
20614         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20615         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20616         Likewise.
20617         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20618         * modules/iconv_open (iconv.h): Likewise.
20619         * modules/locale (locale.h): Likewise.
20620         * modules/netinet_in (netinet/in.h): Likewise.
20621         * modules/sys_select (sys_select.h): Likewise.
20622         * modules/sys_socket (sys/socket.h): Likewise.
20623         * modules/sys_stat (sys/stat.h): Likewise.
20624         * modules/sysexits (sysexits.h): Likewise.
20625         * modules/unistd (unistd.h): Likewise.
20626
20627 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20628
20629         * modules/closein-tests (Makefile.am): Distribute
20630         `test-closein.sh'.
20631
20632 2007-05-17  Bruno Haible  <bruno@clisp.org>
20633
20634         * tests/test-printf-posix.output: Renamed from
20635         tests/test-fprintf-posix.out.
20636         * modules/fprintf-posix-tests: Update.
20637         * modules/printf-posix-tests: Update.
20638         * modules/vfprintf-posix-tests: Update.
20639         * modules/vprintf-posix-tests: Update.
20640         * tests/test-fprintf-posix.sh: Update.
20641         * tests/test-printf-posix.sh: Update.
20642         * tests/test-vfprintf-posix.sh: Update.
20643         * tests/test-vprintf-posix.sh: Update.
20644         Reported by Ralf Wildenhues.
20645
20646 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20649         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20650         GCC 4.2, which otherwise issues a lot of warnings.
20651         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20652         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20653         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20654         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20655         it should no longer be needed.
20656         * lib/string_.h: Likewise.
20657         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20658         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20659         * modules/inttypes (inttypes.h): Likewise.
20660         * modules/math (math.h): Likewise.
20661         * modules/search (search.h): Likewise.
20662         * modules/signal (signal.h): Likewise.
20663         * modules/stdint (stdint.h): Likewise.
20664         * modules/stdio (stdio.h): Likewise.
20665         * modules/stdlib (stdlib.h): Likewise.
20666         * modules/string (string.h): Likewise.
20667         * modules/sys_time (sys/time.h): Likewise.
20668         * modules/time (time.h): Likewise.
20669         * modules/wchar (wchar.h): Likewise.
20670         * modules/wctype (wtype.h): Likewise.
20671
20672 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20673
20674         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20675
20676 2007-05-13  Bruno Haible  <bruno@clisp.org>
20677
20678         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20679         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20680         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20681         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20682         (gl_PREREQ_STRTOK_R): Don't require it here.
20683
20684 2007-05-13  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20687         when used in C++ mode.
20688
20689 2007-05-12  Bruno Haible  <bruno@clisp.org>
20690
20691         * lib/linebuffer.h: Tweak doc.
20692         * lib/linebuffer.c: Likewise.
20693
20694 2007-05-12  James Youngman  <jay@gnu.org>
20695
20696         * lib/linebuffer.c (readlinebuffer_delim): New function,
20697         like readlinebuffer, but use a caller-specified delimiter.
20698         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20699         as the delimiter.
20700         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20701
20702 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20703
20704         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20705         * modules/openat (Files): Remove openat-die.c.
20706         (Depends-on): Add openat-die.
20707         * modules/openat-die: New module.
20708
20709 2007-05-06  Bruno Haible  <bruno@clisp.org>
20710
20711         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20712         Update with info about Cygwin.
20713         * doc/functions/fprintf.texi: Update.
20714         * doc/functions/printf.texi: Update.
20715         * doc/functions/snprintf.texi: Update.
20716         * doc/functions/sprintf.texi: Update.
20717         * doc/functions/vfprintf.texi: Update.
20718         * doc/functions/vprintf.texi: Update.
20719         * doc/functions/vsnprintf.texi: Update.
20720         * doc/functions/vsprintf.texi: Update.
20721         Reported by Eric Blake.
20722
20723 2007-05-06  Bruno Haible  <bruno@clisp.org>
20724
20725         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20726         padding ourselves for the floating-point directives.
20727         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20730         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20731         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20739         * tests/test-snprintf-posix.h (test_function): Also check the width
20740         and some flags in the %f directive.
20741         * tests/test-sprintf-posix.h (test_function): Likewise.
20742         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20743         * tests/test-vasprintf-posix.c (test_function): Likewise.
20744         * doc/functions/fprintf.texi: Update.
20745         * doc/functions/printf.texi: Update.
20746         * doc/functions/snprintf.texi: Update.
20747         * doc/functions/sprintf.texi: Update.
20748         * doc/functions/vfprintf.texi: Update.
20749         * doc/functions/vprintf.texi: Update.
20750         * doc/functions/vsnprintf.texi: Update.
20751         * doc/functions/vsprintf.texi: Update.
20752
20753 2007-05-06  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20756         pass the ' flag character to sprintf or snprintf.
20757         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20760         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20761         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20765         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20766         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20768         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20769         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20770         flag.
20771         * tests/test-sprintf-posix.h (test_function): Likewise.
20772         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20773         * tests/test-vasprintf-posix.c (test_function): Likewise.
20774         * doc/functions/fprintf.texi: Update.
20775         * doc/functions/printf.texi: Update.
20776         * doc/functions/snprintf.texi: Update.
20777         * doc/functions/sprintf.texi: Update.
20778         * doc/functions/vfprintf.texi: Update.
20779         * doc/functions/vprintf.texi: Update.
20780         * doc/functions/vsnprintf.texi: Update.
20781         * doc/functions/vsprintf.texi: Update.
20782
20783 2007-05-01  Bruno Haible  <bruno@clisp.org>
20784
20785         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20786
20787 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20790         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20791
20792 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20793
20794         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20795         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20797
20798 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20799
20800         * lib/argp-help.c (struct hol_entry): New member `ord'.
20801         (HOL_ENTRY_PTRCMP): Use ord for comparison
20802         (hol_sort): Initialize ord.
20803
20804 2007-05-01  Bruno Haible  <bruno@clisp.org>
20805
20806         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20807         Reported by Eric Blake.
20808         * doc/gnulib.texi (Function Substitutes): Update.
20809
20810 2007-05-01  Bruno Haible  <bruno@clisp.org>
20811
20812         * doc/functions.texi: Remove file, now redundant through
20813         doc/functions/*.texi.
20814
20815 2007-05-01  Bruno Haible  <bruno@clisp.org>
20816
20817         * modules/argp (Depends-on): Add sleep.
20818
20819 2007-05-01  Bruno Haible  <bruno@clisp.org>
20820
20821         * modules/sleep-tests: New file.
20822         * tests/test-sleep.c: New file.
20823
20824         * modules/sleep: New file.
20825         * lib/sleep.c: New file.
20826         * m4/sleep.m4: New file.
20827         * lib/unistd_.h (sleep): New declaration.
20828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20829         HAVE_SLEEP.
20830         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20831         * doc/functions/sleep.texi: Document the sleep module.
20832
20833 2007-05-01  Bruno Haible  <bruno@clisp.org>
20834
20835         * lib/sigprocmask.h: Remove file.
20836         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20837         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20838         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20839         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20840         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20841         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20842         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20843         HAVE_SIGSET_T as a shell variable.
20844         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20845         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20846         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20847         (Depends-on): Add signal. Remove verify.
20848         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20849         (Include): Mention <signal.h> instead of sigprocmask.h.
20850         * NEWS: Mention the change.
20851         * lib/fatal-signal.c: Don't include sigprocmask.h.
20852
20853 2007-05-01  Bruno Haible  <bruno@clisp.org>
20854
20855         * modules/signal: New file.
20856         * lib/signal_.h: New file.
20857         * m4/signal_h.m4: New file.
20858
20859 2007-05-01  Bruno Haible  <bruno@clisp.org>
20860
20861         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20862         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20863         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20864         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20865
20866 2007-05-01  Bruno Haible  <bruno@clisp.org>
20867
20868         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20869         configure time.
20870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20871         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20872         * modules/sys_stat (Makefile.am): Substitute their values into
20873         sys/stat.h.
20874
20875 2007-05-01  Bruno Haible  <bruno@clisp.org>
20876
20877         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20878         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20879         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20880
20881 2007-05-01  Bruno Haible  <bruno@clisp.org>
20882
20883         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20884         'assert' module here.
20885
20886 2007-05-01  Bruno Haible  <bruno@clisp.org>
20887
20888         * doc/functions/*.texi: New files.
20889         * doc/functions/google-ranking.txt: New file.
20890         * doc/gnulib.texi (Function Substitutes): New chapter.
20891         (ctime, inet_ntoa): Remove sections.
20892         * doc/ctime.texi: Remove file.
20893         * doc/inet_ntoa.texi: Remove file.
20894         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20895         dependencies.
20896         (%.info): New rule, specifying a --reference-limit.
20897
20898 2007-05-01  Bruno Haible  <bruno@clisp.org>
20899
20900         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20901
20902 2007-05-01  Bruno Haible  <bruno@clisp.org>
20903
20904         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20905         the portability of 'mkdir' to mingw systems.
20906
20907 2007-05-01  Bruno Haible  <bruno@clisp.org>
20908
20909         * doc/headers/google-ranking.txt: New file.
20910
20911 2007-04-30  Eric Blake  <ebb9@byu.net>
20912
20913         Prefer fseeko to fseek.
20914         * modules/getpass (Depends-on): Add fseeko.
20915         * lib/getpass.c (getpass): Use fseeko, not fseek.
20916
20917 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20918
20919         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20920         assumes the sorting is stable, while most qsort implementations
20921         are not.  Use argument addresses to ensure they never compare as
20922         equal.
20923
20924         * tests/test-argp-2.sh (usage-indent test): Fix output
20925         (func_compare): Restore diff options
20926         * tests/test-argp.c: Restore #include "progname.h"
20927
20928 2007-04-29  Bruno Haible  <bruno@clisp.org>
20929
20930         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20932         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20934         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20935         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20936         (TESTS, check_PROGRAMS): Add test-snprintf.
20937         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20938         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20939         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20940         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20941         assertions that fail on HP-UX, OSF/1, or IRIX.
20942         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20943
20944 2007-04-29  Bruno Haible  <bruno@clisp.org>
20945
20946         * MODULES.html.sh (posix_functions): Remove 'contents'.
20947
20948 2007-04-29  Karl Berry  <karl@gnu.org>
20949
20950         * config/srclist.txt (gendocs_template_min): new entry.
20951
20952 2007-04-29  Bruno Haible  <bruno@clisp.org>
20953
20954         Work around fpurge bug on BSD systems.
20955         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20956         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20957         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20958         fpurge to rpl_fpurge if the system already has this function.
20959         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20960         the case where the system already has this function. Correct invariants
20961         on BSD systems.
20962         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20963         BSD systems.
20964
20965 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20966
20967         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20968         proposed by Sven Verdoolaege.
20969
20970         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20971         options.
20972         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20973         (usage and help tests): Update
20974
20975 2007-04-29  Bruno Haible  <bruno@clisp.org>
20976
20977         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20978         Print more information in case of failure. Disable a test on BeOS.
20979
20980 2007-04-29  Bruno Haible  <bruno@clisp.org>
20981
20982         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20983         This helps debugging on systems on which no gdb is available.
20984
20985 2007-04-29  Bruno Haible  <bruno@clisp.org>
20986
20987         * lib/freading.h: Improve comments.
20988         * lib/fwriting.h: Likewise.
20989         * tests/test-freading.c (main): Don't check freading immediately after
20990         repositioning. Needed for glibc.
20991
20992 2007-04-29  Bruno Haible  <bruno@clisp.org>
20993
20994         * lib/freading.c (freading): Trivial simplification.
20995
20996 2007-04-28  Bruno Haible  <bruno@clisp.org>
20997
20998         * tests/test-fwriting.c (main): Also test the interaction between
20999         fflush and fwriting.
21000         * modules/fwriting-tests (Depends-on): Add fflush.
21001
21002         * tests/test-freading.c (main): Also test the interaction between
21003         fflush and freading.
21004         * modules/freading-tests (Depends-on): Add fflush.
21005
21006 2007-04-28  Bruno Haible  <bruno@clisp.org>
21007
21008         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
21009         fseeko and ftello.
21010         Suggested by Eric Blake.
21011
21012 2007-04-28  Jim Meyering  <jim@meyering.net>
21013
21014         Avoid false-negative in gl_STDINT_H's C99 conformance test.
21015         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
21016         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
21017
21018 2007-04-27  Eric Blake  <ebb9@byu.net>
21019
21020         * doc/headers/assert.texi (assert.h): Document assert module use.
21021
21022 2007-04-27  Bruno Haible  <bruno@clisp.org>
21023
21024         * doc/headers/*.texi: New files.
21025         * doc/gnulib.texi (Header File Substitutes): New chapter.
21026         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
21027         dependencies.
21028         (standards.info ,standards.html, standards.dvi): Update dependencies.
21029         (mostlyclean, clean): New targets.
21030
21031 2007-04-27  Bruno Haible  <bruno@clisp.org>
21032
21033         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
21034         * modules/sysexits (Files, Makefile.am): Update.
21035
21036         * lib/sys_socket_.h: Renamed from lib/socket_.h.
21037         * modules/sys_socket (Files, Makefile.am): Update.
21038
21039         * lib/sys_stat_.h: Renamed from lib/stat_.h.
21040         * modules/sys_stat (Files, Makefile.am): Update.
21041
21042 2007-04-27  Eric Blake  <ebb9@byu.net>
21043
21044         * lib/freading.h: Improve comments.
21045         * lib/fwriting.h: Likewise.
21046         * lib/fflush.c: Likewise.
21047
21048         Fix closein for mingw.
21049         * modules/closein-tests: Add tests for closein.
21050         * tests/test-closein.c: New file.
21051         * tests/test-closein.sh: Likewise.
21052         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
21053         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
21054
21055 2007-04-27  Bruno Haible  <bruno@clisp.org>
21056
21057         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
21058         version is < 6.
21059         * lib/math_.h [__DECC]: Likewise.
21060         * lib/stdio_.h [__DECC]: Likewise.
21061         * lib/stdlib_.h [__DECC]: Likewise.
21062         * lib/string_.h [__DECC]: Likewise.
21063         * lib/time_.h [__DECC]: Likewise.
21064         * lib/wchar_.h [__DECC]: Likewise.
21065         * lib/wctype_.h [__DECC]: Likewise.
21066
21067 2007-04-27  Bruno Haible  <bruno@clisp.org>
21068
21069         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
21070
21071 2007-04-27  Bruno Haible  <bruno@clisp.org>
21072
21073         * lib/fflush.c: Add comments.
21074         * modules/fpurge-tests (Depends-on): Add fflush.
21075         * modules/freadable-tests (Depends-on): Likewise.
21076         * modules/fwritable-tests (Depends-on): Likewise.
21077
21078 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
21079
21080         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
21081         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
21082         Report by Bruno Haible <bruno@clisp.org>.
21083
21084 2007-04-26  Eric Blake  <ebb9@byu.net>
21085
21086         Fix fflush on mingw.
21087         * modules/fflush (Depends-on): Add freading.
21088         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
21089         but unread data.
21090
21091 2007-04-26  Eric Blake  <ebb9@byu.net>
21092         and Bruno Haible  <bruno@clisp.org>
21093
21094         Implement freading and fwriting.
21095         * lib/freading.c: New file.
21096         * lib/freading.h: Likewise.
21097         * m4/freading.m4: Likewise.
21098         * modules/freading: Likewise.
21099         * modules/freading-tests: Likewise.
21100         * tests/test-freading.c: Likewise.
21101         * lib/fwriting.c: New file.
21102         * lib/fwriting.h: Likewise.
21103         * m4/fwriting.m4: Likewise.
21104         * modules/fwriting: Likewise.
21105         * modules/fwriting-tests: Likewise.
21106         * tests/test-fwriting.c: Likewise.
21107         * MODULES.html.sh (File stream based Input/Output): Mention them.
21108
21109 2007-04-26  Bruno Haible  <bruno@clisp.org>
21110
21111         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
21112         'long' when we assume it.
21113         Suggested by Eric Blake.
21114
21115 2007-04-26  Bruno Haible  <bruno@clisp.org>
21116
21117         Ensure fseeko, ftello are declared on glibc systems.
21118         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
21119         * modules/fseeko (configure.ac-early): Likewise.
21120         * modules/ftello (configure.ac-early): Likewise.
21121         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
21122         AC_FUNC_FSEEKO for this.
21123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
21124         (gl_CHECK_FSEEKO): Remove macro.
21125
21126 2007-04-26  Bruno Haible  <bruno@clisp.org>
21127
21128         * tests/test-fflush.c (main): Also check the ftell result after
21129         fflush and fseek/fseeko.
21130         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
21131         file descriptor position cache in the stream.
21132         * lib/fseeko.c (rpl_fseeko): Likewise.
21133
21134 2007-04-26  Bruno Haible  <bruno@clisp.org>
21135
21136         * modules/fflush-tests (Depends-on): Add fseeko.
21137
21138 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
21139             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21140
21141         * lib/argz_.h: ensure error_t definition is obtained in same
21142         mechanism system argz.h would have.
21143         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
21144         argz facilities are known bad.  Err on the side of caution if
21145         cross-compiling.
21146
21147 2007-04-25  Eric Blake  <ebb9@byu.net>
21148
21149         * lib/fpurge.c (includes): Use stdlib.h for free.
21150         * tests/test-fflush.c (main): Also test fflush-fseeko.
21151
21152 2007-04-25  Bruno Haible  <bruno@clisp.org>
21153
21154         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
21155         * lib/fseeko.c: New file.
21156         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
21157         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
21158         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
21159         gl_FUNC_FSEEKO.
21160         (gl_FUNC_FSEEKO): Invoke it.
21161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
21162         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
21163         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
21164
21165 2007-04-25  Bruno Haible  <bruno@clisp.org>
21166
21167         * modules/fflush (Depends-on): Add ftello.
21168
21169 2007-04-25  Bruno Haible  <bruno@clisp.org>
21170
21171         * modules/ftello-tests: New file.
21172         * tests/test-ftello.c: New file.
21173
21174         * modules/ftello: New file.
21175         * m4/ftello.m4: New file.
21176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
21177         HAVE_FTELLO.
21178         * lib/stdio_.h (ftello): New declaration.
21179         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
21180         HAVE_FTELLO.
21181
21182 2007-04-25  Bruno Haible  <bruno@clisp.org>
21183
21184         * modules/fseeko-tests: New file.
21185         * tests/test-fseeko.c: New file.
21186
21187         * modules/fseeko: New file.
21188         * m4/fseeko.m4: New file.
21189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
21190         HAVE_FSEEKO.
21191         * lib/stdio_.h (fseeko): New declaration.
21192         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
21193         HAVE_FSEEKO.
21194
21195 2007-04-25  Bruno Haible  <bruno@clisp.org>
21196
21197         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
21198
21199 2007-04-25  Bruno Haible  <bruno@clisp.org>
21200
21201         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
21202         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
21203         * tests/test-unistd.c: Likewise.
21204         * tests/test-fcntl.c: Likewise.
21205
21206 2007-04-23  Eric Blake  <ebb9@byu.net>
21207
21208         * lib/fflush.c: Fix missing include.
21209         Reported by Bruno Haible.
21210
21211 2007-04-23  Bruno Haible  <bruno@clisp.org>
21212
21213         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
21214         Reported by Eric Blake.
21215
21216 2007-04-23  Bruno Haible  <bruno@clisp.org>
21217
21218         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
21219
21220 2007-04-23  Bruno Haible  <bruno@clisp.org>
21221
21222         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
21223
21224 2007-04-23  Bruno Haible  <bruno@clisp.org>
21225
21226         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
21227         Needed on HP-UX 11.
21228
21229 2007-04-16  Eric Blake  <ebb9@byu.net>
21230
21231         Make fflush rely on fpurge.
21232         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
21233         open coding all variants.
21234         * modules/fflush (Depends-on): Add fpurge and unistd.
21235         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
21236         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
21237
21238         Fix --with-tests compilation on cygwin.
21239         * modules/argmatch-tests (Makefile.am): List gnulib library first
21240         in LDADD.
21241         * modules/argp-tests (Makefile.am): Likewise.
21242         * modules/array-list-tests (Makefile.am): Likewise.
21243         * modules/array-oset-tests (Makefile.am): Likewise.
21244         * modules/avltree-list-tests (Makefile.am): Likewise.
21245         * modules/avltree-oset-tests (Makefile.am): Likewise.
21246         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21247         * modules/carray-list-tests (Makefile.am): Likewise.
21248         * modules/dirname-tests (Makefile.am): Likewise.
21249         * modules/frexp-tests (Makefile.am): Likewise.
21250         * modules/isnanl-tests (Makefile.am): Likewise.
21251         * modules/linked-list-tests (Makefile.am): Likewise.
21252         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21253         * modules/lock-tests (Makefile.am): Likewise.
21254         * modules/rbtree-list-tests (Makefile.am): Likewise.
21255         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21256         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21257         * modules/tls-tests (Makefile.am): Likewise.
21258         * modules/tsearch-tests (Makefile.am): Likewise.
21259         * modules/xvasprintf-tests (Makefile.am): Likewise.
21260
21261         Fix fpurge for cygwin.
21262         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
21263         value.
21264         * modules/fpurge-tests (Depends-on): Clean up trash.
21265
21266 2007-04-16  Simon Josefsson  <simon@josefsson.org>
21267
21268         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
21269
21270         * m4/autobuild.m4: Re-indent.
21271
21272 2007-04-13  Bruno Haible  <bruno@clisp.org>
21273
21274         * modules/fpurge-tests: New file.
21275         * tests/test-fpurge.c: New file.
21276
21277         * modules/fpurge: New file.
21278         * lib/fpurge.h: New file.
21279         * lib/fpurge.c: New file.
21280         * m4/fpurge.m4: New file.
21281
21282 2007-04-13  Bruno Haible  <bruno@clisp.org>
21283
21284         * modules/fbufmode-tests: New file.
21285         * tests/test-fbufmode.c: New file.
21286
21287         * modules/fbufmode: New file.
21288         * lib/fbufmode.h: New file.
21289         * lib/fbufmode.c: New file.
21290         * m4/fbufmode.m4: New file.
21291
21292 2007-04-13  Bruno Haible  <bruno@clisp.org>
21293
21294         * modules/fwritable-tests: New file.
21295         * tests/test-fwritable.c: New file.
21296
21297         * modules/fwritable: New file.
21298         * lib/fwritable.h: New file.
21299         * lib/fwritable.c: New file.
21300         * m4/fwritable.m4: New file.
21301
21302 2007-04-13  Bruno Haible  <bruno@clisp.org>
21303
21304         * modules/freadable-tests: New file.
21305         * tests/test-freadable.c: New file.
21306
21307         * modules/freadable: New file.
21308         * lib/freadable.h: New file.
21309         * lib/freadable.c: New file.
21310         * m4/freadable.m4: New file.
21311
21312 2007-04-13  Bruno Haible  <bruno@clisp.org>
21313
21314         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
21315         MOSTLYCLEANFILES.
21316
21317 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
21320         gzip bootstrap.conf to avoid dragging in i18n machinery.
21321         (gnulib_tool_option): Use it.
21322
21323 2007-04-13  Bruno Haible  <bruno@clisp.org>
21324
21325         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
21326         %F directives.
21327         * tests/test-vasprintf-posix.c (test_function): Likewise.
21328         * tests/test-snprintf-posix.h (test_function): Likewise.
21329         * tests/test-sprintf-posix.h (test_function): Likewise.
21330         * tests/test-fprintf-posix.h (test_function): Likewise.
21331         * tests/test-printf-posix.h (test_function): Likewise.
21332         * tests/test-fprintf-posix.out: Likewise.
21333
21334 2007-04-13  Bruno Haible  <bruno@clisp.org>
21335
21336         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
21337         * modules/tls-tests (configure.ac): Likewise.
21338         Reported by Arto C. Nirkko <anirkko@insel.ch>.
21339
21340 2007-04-13  Bruno Haible  <bruno@clisp.org>
21341
21342         * lib/tls.c (glthread_tls_get): Fix return type.
21343         Patch by Arto C. Nirkko <anirkko@insel.ch>.
21344
21345 2007-04-12  Eric Blake  <ebb9@byu.net>
21346
21347         * modules/gettime (Depends-on): Remove gettime.
21348         Reported by Dmitry V. Levin.
21349
21350 2007-04-12  Bruno Haible  <bruno@clisp.org>
21351
21352         * modules/fflush (Include): Mention <stdio.h>.
21353         * modules/strtoimax (Include): Mention <inttypes.h>.
21354         * modules/strtoumax (Include): Likewise.
21355
21356 2007-04-12  Eric Blake  <ebb9@byu.net>
21357
21358         * .cvsignore: New file.
21359         * .gitignore: Likewise.
21360
21361 2007-04-12  Bruno Haible  <bruno@clisp.org>
21362
21363         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
21364         not before, since $(LDADD) often contains libgnu.a.
21365         * modules/striconv-tests (test_striconv_LDADD): Likewise.
21366         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
21367         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
21368         Needed on Cygwin.
21369
21370 2007-04-12  Eric Blake  <ebb9@byu.net>
21371
21372         Work around glibc's failure to flush stdin on fclose.
21373         * lib/closein.c (close_stdin): Flush stdin before closing.
21374
21375         Work around glibc's failure to reset seekable stdin on exit.
21376         * modules/closein: New module.
21377         * lib/closein.c: New file.
21378         * lib/closein.h: Likewise.
21379         * m4/closein.m4: Likewise.
21380         * MODULES.html.sh (File stream based Input/Output): Document it.
21381
21382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21383
21384         * gnulib-tool: Rename generated 'autobuild' script to
21385         'do-autobuild' in --create-megatestdir output.
21386
21387         * doc/gnulib.texi (Build robot for gnulib): Fix.
21388
21389 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21390
21391         * modules/sysexits (Depends-on): Add absolute-header.
21392
21393 2007-04-12  Eric Blake  <ebb9@byu.net>
21394
21395         No need to preserve errno on success.
21396         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
21397         Reported by Bruno Haible.
21398
21399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21400
21401         * MODULES.html.sh (Support for maintaining and releasing
21402         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
21403
21404 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21405
21406         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
21407
21408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21409
21410         * modules/autobuild: New module.
21411
21412         * m4/autobuild.m4: New file.
21413
21414 2007-04-11  Bruno Haible  <bruno@clisp.org>
21415
21416         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
21417         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
21418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
21419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
21420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
21427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
21430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
21433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
21436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
21439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
21442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21444         Reported by Eric Blake.
21445
21446 2007-04-11  Bruno Haible  <bruno@clisp.org>
21447
21448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
21449
21450 2007-04-10  Bruno Haible  <bruno@clisp.org>
21451
21452         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
21453         for NaN and Infinity. Needed on FreeBSD 6.1.
21454         * tests/test-vasnprintf-posix.c (test_function): Undo last change
21455         regarding results for "%010a" of Infinity and NaN.
21456         * tests/test-vasprintf-posix.c (test_function): Likewise.
21457         * tests/test-snprintf-posix.h (test_function): Likewise.
21458         * tests/test-sprintf-posix.h (test_function): Likewise.
21459         * tests/test-fprintf-posix.h (test_function): Likewise.
21460         * tests/test-printf-posix.h (test_function): Likewise.
21461         * tests/test-fprintf-posix.out: Likewise.
21462
21463 2007-04-10  Bruno Haible  <bruno@clisp.org>
21464
21465         * modules/locale-tests: New file.
21466         * tests/test-locale.c: New file.
21467
21468         * modules/locale: New file.
21469         * lib/locale_.h: New file.
21470         * m4/locale_h.m4: New file.
21471
21472 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
21473             Bruno Haible  <bruno@clisp.org>
21474
21475         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
21476         be determined, test for availability of the copysignf, copysign,
21477         copysignl functions.
21478         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
21479         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
21480         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
21481
21482 2007-04-09  Eric Blake  <ebb9@byu.net>
21483
21484         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
21485         * modules/stdio (Makefile.am): Support fflush.
21486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21487         * modules/fflush: New file.
21488         * lib/fflush.c: Likewise.
21489         * m4/fflush.m4: Likewise.
21490         * modules/fflush-tests: New test.
21491         * tests/test-fflush.c: Likewise.
21492         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
21493
21494 2007-04-06  Bruno Haible  <bruno@clisp.org>
21495
21496         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
21497         (VASNPRINTF): Use signbit for faster determination whether to print a
21498         minus sign.
21499         * modules/vasnprintf (Files): Remove lib/float+.h.
21500         * modules/fprintf-posix (Depends-on): Add signbit.
21501         * modules/snprintf-posix (Depends-on): Likewise.
21502         * modules/sprintf-posix (Depends-on): Likewise.
21503         * modules/vasnprintf-posix (Depends-on): Likewise.
21504         * modules/vasprintf-posix (Depends-on): Likewise.
21505         * modules/vfprintf-posix (Depends-on): Likewise.
21506         * modules/vsnprintf-posix (Depends-on): Likewise.
21507         * modules/vsprintf-posix (Depends-on): Likewise.
21508
21509 2007-04-06  Bruno Haible  <bruno@clisp.org>
21510
21511         * tests/test-frexp.c (main): Test also the sign bit of zero results.
21512         * tests/test-frexpl.c (main): Likewise.
21513         * tests/test-ldexpl.c (main): Likewise.
21514         * modules/frexp-tests (Depends-on): Add signbit.
21515         * modules/frexpl-tests (Depdends-on): Likewise.
21516         * modules/ldexpl-tests (Depdends-on): Likewise.
21517
21518 2007-04-06  Bruno Haible  <bruno@clisp.org>
21519
21520         * modules/signbit-tests: New file.
21521         * tests/test-signbit.c: New file.
21522
21523         * modules/signbit: New file.
21524         * lib/signbitf.c: New file.
21525         * lib/signbitd.c: New file.
21526         * lib/signbitl.c: New file.
21527         * m4/signbit.m4: New file.
21528         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
21529         (signbit): New macro.
21530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
21531         REPLACE_SIGNBIT.
21532         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
21533         REPLACE_FREXPL into math.h.
21534
21535 2007-04-06  Bruno Haible  <bruno@clisp.org>
21536
21537         * modules/isnanf-nolibm-tests: New file.
21538         * tests/test-isnanf.c: New file.
21539
21540         * modules/isnanf-nolibm: New file.
21541         * lib/isnanf.h: New file.
21542         * lib/isnanf.c: New file.
21543         * lib/isnan.c: Consider the USE_FLOAT macro.
21544         * m4/isnanf.m4: New file.
21545
21546 2007-04-06  Bruno Haible  <bruno@clisp.org>
21547
21548         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
21549         (Link): New section.
21550
21551         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21552
21553 2007-04-06  Bruno Haible  <bruno@clisp.org>
21554
21555         Assume the 'long double' type.
21556         * m4/longdouble.m4: Remove file.
21557         * config/srclist.txt: Don't mention longdouble.m4.
21558         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21559         * lib/float+.h: Likewise.
21560         * lib/frexp.c: Likewise.
21561         * lib/printf-args.h: Likewise.
21562         * lib/printf-args.c: Likewise.
21563         * lib/printf-frexp.c: Likewise.
21564         * lib/printf-parse.c: Likewise.
21565         * lib/vasnprintf.c: Likewise.
21566         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21567         * m4/intl.m4: Likewise.
21568         * m4/isnanl.m4: Likewise.
21569         * m4/printf.m4: Likewise.
21570         * m4/printf-frexpl.m4: Likewise.
21571         * m4/vasnprintf.m4: Likewise.
21572         * modules/allocsa (Files): Remove m4/longdouble.m4.
21573         * modules/gettext (Files): Likewise.
21574         * modules/relocatable-prog-wrapper (Files): Likewise.
21575         * modules/vasnprintf (Files): Likewise.
21576         * modules/isnanl (Files): Likewise.
21577         (Include): Simplify.
21578         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21579         (Include): Simplify.
21580         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21581         (Include): Simplify.
21582         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21583         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21584         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21585         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21586         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21587         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21588         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21589         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21590         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21591         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21592         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21593         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21594         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21595         * tests/test-isnanl.c: Likewise.
21596         * tests/test-snprintf-posix.h: Likewise.
21597         * tests/test-sprintf-posix.h: Likewise.
21598         * tests/test-vasnprintf-posix.c: Likewise.
21599         * tests/test-vasnprintf-posix2.c: Likewise.
21600         * tests/test-vasprintf-posix.c: Likewise.
21601
21602 2007-04-06  Bruno Haible  <bruno@clisp.org>
21603
21604         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21605         * lib/math_.h [__DECC]: Include the overridden include file through
21606         #include_next, outside the double-inclusion guard.
21607         * lib/stdio_.h [__DECC]: Likewise.
21608         * lib/stdlib_.h [__DECC]: Likewise.
21609         * lib/string_.h [__DECC]: Likewise.
21610         * lib/time_.h [__DECC]: Likewise.
21611         * lib/wchar_.h [__DECC]: Likewise.
21612         * lib/wctype_.h [__DECC]: Likewise.
21613         * lib/inttypes_.h [__DECC]: Likewise.
21614         Reported by Albert Chin <china@thewrittenword.com> in
21615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21616
21617 2007-04-04  Eric Blake  <ebb9@byu.net>
21618
21619         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21620         1.5.x.
21621
21622 2007-04-04  Bruno Haible  <bruno@clisp.org>
21623
21624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21625         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21626
21627 2007-04-04  Bruno Haible  <bruno@clisp.org>
21628
21629         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21630         results for "%010a" of Infinity and NaN.
21631         * tests/test-vasprintf-posix.c (test_function): Likewise.
21632         * tests/test-snprintf-posix.h (test_function): Likewise.
21633         * tests/test-sprintf-posix.h (test_function): Likewise.
21634         * tests/test-fprintf-posix.h (test_function): Remove these tests.
21635         * tests/test-printf-posix.h (test_function): Likewise.
21636         * tests/test-fprintf-posix.out: Update.
21637         Needed for FreeBSD 6.1.
21638
21639 2007-04-04  Bruno Haible  <bruno@clisp.org>
21640
21641         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21642         directly used by the gnulib modules nor by gnulib-tool.
21643
21644 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21645
21646         * DEPENDENCIES: Give overall description of version dependency
21647         desirability.  Use more-typical names for apps.
21648         Add shell, coreutils, diffutils, grep, tar, gzip.
21649
21650 2007-04-04  Simon Josefsson  <simon@josefsson.org>
21651
21652         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
21653
21654 2007-04-04  Karl Berry  <karl@gnu.org>
21655
21656         * MODULES.html.sh (func_module): missing '.
21657
21658 2007-04-03  Bruno Haible  <bruno@clisp.org>
21659
21660         * modules/argmatch-tests (Makefile.am): New variable
21661         test_argmatch_LDADD.
21662         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21663         * modules/array-list-tests (Makefile.am): New variable
21664         test_array_list_LDADD.
21665         * modules/array-oset-tests (Makefile.am): New variable
21666         test_array_oset_LDADD.
21667         * modules/avltree-list-tests (Makefile.am): New variable
21668         test_avltree_list_LDADD.
21669         * modules/avltree-oset-tests (Makefile.am): New variable
21670         test_avltree_oset_LDADD.
21671         * modules/avltreehash-list-tests (Makefile.am): New variable
21672         test_avltreehash_list_LDADD.
21673         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21674         test_canonicalize_lgpl_LDADD.
21675         * modules/carray-list-tests (Makefile.am): New variable
21676         test_carray_list_LDADD.
21677         * modules/dirname-tests (Makefile.am): New variable
21678         test_dirname_LDADD.
21679         * modules/linked-list-tests (Makefile.am): New variable
21680         test_linked_list_LDADD.
21681         * modules/linkedhash-list-tests (Makefile.am): New variable
21682         test_linkedhash_list_LDADD.
21683         * modules/rbtree-list-tests (Makefile.am): New variable
21684         test_rbtree_list_LDADD.
21685         * modules/rbtree-oset-tests (Makefile.am): New variable
21686         test_rbtree_oset_LDADD.
21687         * modules/rbtreehash-list-tests (Makefile.am): New variable
21688         test_rbtreehash_list_LDADD.
21689         * modules/xvasprintf-tests (Makefile.am): New variable
21690         test_xvasprintf_LDADD.
21691         Reported by Eric Blake.
21692
21693 2007-04-03  Eric Blake  <ebb9@byu.net>
21694
21695         * DEPENDENCIES: Weaken m4 requirements.
21696
21697 2007-04-03  Bruno Haible  <bruno@clisp.org>
21698
21699         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21700         * modules/isnanl-tests (configure.ac): Likewise.
21701
21702 2007-04-03  Ben Pfaff  <blp@gnu.org>
21703
21704         * modules/iconv_open: Add $(srcdir)/ to source directory
21705         references in Makefile fragments that call gperf, to fix VPATH
21706         builds.
21707
21708 2007-04-03  Bruno Haible  <bruno@clisp.org>
21709
21710         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21711         * lib/ldexpl.c: Undo last change.
21712
21713 2007-04-03  Bruno Haible  <bruno@clisp.org>
21714
21715         * modules/printf-frexpl (Depends-on): Undo last change.
21716         (Files): Add m4/ldexpl.m4.
21717
21718 2007-04-03  Bruno Haible  <bruno@clisp.org>
21719
21720         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21721         * modules/isnanl (Link): New section.
21722
21723         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21724         * modules/frexp (Link): New section.
21725
21726         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21727         * modules/frexpl (Link): New section.
21728
21729         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21730         * modules/ldexpl (Link): New section.
21731
21732 2007-04-03  Bruno Haible  <bruno@clisp.org>
21733
21734         * modules/TEMPLATE-EXTENDED: New file.
21735         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21736
21737 2007-04-03  Bruno Haible  <bruno@clisp.org>
21738
21739         * DEPENDENCIES: New file.
21740         Suggested by Simon Josefsson.
21741
21742 2007-04-03  Bruno Haible  <bruno@clisp.org>
21743
21744         * doc/gnulib.texi: Escape @.
21745
21746 2007-04-03  James Youngman  <jay@gnu.org>
21747         and Paul Eggert  <eggert@cs.ucla.edu>
21748
21749         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21750         birthtime on all systems that have birthtime, not just those which
21751         use st_birthtimensec rather than st_birthtim.  Putting zero in
21752         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21753         that the birth time is not available for files on an NFS mount.
21754
21755 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21756
21757         * modules/memxor: Move back from crypto/, suggested by Bruno.
21758         * modules/crypto/hmac-sha1: Fix memxor dependency.
21759
21760         * modules/crypto/gc: Moved from ../.
21761
21762 2007-04-02  Eric Blake  <ebb9@byu.net>
21763
21764         * lib/ldexpl.c (includes): Avoid libm.
21765
21766         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21767
21768 2007-04-02  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21771         on IRIX.
21772
21773 2007-04-02  Bruno Haible  <bruno@clisp.org>
21774
21775         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21776         x86 or x86_64 platforms running MacOS X.
21777         Reported by Ryan Schmidt <@ryandesign.com>.
21778
21779 2007-04-02  Bruno Haible  <bruno@clisp.org>
21780
21781         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21782         i386.
21783
21784 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21785
21786         * modules/crypto/arcfour: Moved from ../.
21787         * modules/crypto/arcfour-tests: Moved from ../.
21788         * modules/crypto/arctwo: Moved from ../.
21789         * modules/crypto/arctwo-tests: Moved from ../.
21790         * modules/crypto/des: Moved from ../.
21791         * modules/crypto/des-tests: Moved from ../.
21792         * modules/crypto/gc-arcfour: Moved from ../.
21793         * modules/crypto/gc-arcfour-tests: Moved from ../.
21794         * modules/crypto/gc-arctwo: Moved from ../.
21795         * modules/crypto/gc-arctwo-tests: Moved from ../.
21796         * modules/crypto/gc-des: Moved from ../.
21797         * modules/crypto/gc-des-tests: Moved from ../.
21798         * modules/crypto/gc-hmac-md5: Moved from ../.
21799         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21800         * modules/crypto/gc-hmac-sha1: Moved from ../.
21801         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21802         * modules/crypto/gc-md2: Moved from ../.
21803         * modules/crypto/gc-md2-tests: Moved from ../.
21804         * modules/crypto/gc-md4: Moved from ../.
21805         * modules/crypto/gc-md4-tests: Moved from ../.
21806         * modules/crypto/gc-md5: Moved from ../.
21807         * modules/crypto/gc-md5-tests: Moved from ../.
21808         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21809         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21810         * modules/crypto/gc-random: Moved from ../.
21811         * modules/crypto/gc-rijndael: Moved from ../.
21812         * modules/crypto/gc-rijndael-tests: Moved from ../.
21813         * modules/crypto/gc-sha1: Moved from ../.
21814         * modules/crypto/gc-sha1-tests: Moved from ../.
21815         * modules/crypto/gc-tests: Moved from ../.
21816         * modules/crypto/hmac-md5: Moved from ../.
21817         * modules/crypto/hmac-md5-tests: Moved from ../.
21818         * modules/crypto/hmac-sha1: Moved from ../.
21819         * modules/crypto/hmac-sha1-tests: Moved from ../.
21820         * modules/crypto/md2: Moved from ../.
21821         * modules/crypto/md2-tests: Moved from ../.
21822         * modules/crypto/md4: Moved from ../.
21823         * modules/crypto/md4-tests: Moved from ../.
21824         * modules/crypto/md5: Moved from ../.
21825         * modules/crypto/md5-tests: Moved from ../.
21826         * modules/crypto/memxor: Moved from ../.
21827         * modules/crypto/rijndael: Moved from ../.
21828         * modules/crypto/rijndael-tests: Moved from ../.
21829         * modules/crypto/sha1: Moved from ../.
21830
21831 2007-03-30  James Youngman  <jay@gnu.org>
21832
21833         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21834         rename() to change the ctime of a file (because ctime is unaffected
21835         by rename on jfs2 on AIX 5.1).
21836         (main): Start by doing cleanup, in case a previous run failed leaving
21837         test files behind.
21838
21839 2007-03-31  Bruno Haible  <bruno@clisp.org>
21840
21841         Support old proprietary implementations of iconv.
21842         * modules/iconv_open: New file.
21843         * lib/iconv_.h: New file.
21844         * m4/iconv_h.m4: New file.
21845         * lib/iconv_open.c: New file.
21846         * lib/iconv_open-aix.gperf: New file.
21847         * lib/iconv_open-hpux.gperf: New file.
21848         * lib/iconv_open-irix.gperf: New file.
21849         * lib/iconv_open-osf.gperf: New file.
21850         * m4/iconv_open.m4: New file.
21851         * modules/linebreak (Depends-on): Add iconv_open.
21852         * modules/striconv (Depends-on): Likewise.
21853         * modules/striconveh (Depends-on): Likewise.
21854         * modules/unicodeio (Depends-on): Likewise.
21855         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21856         (iconv_t)(-1).
21857         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21858         conversion if cd is (iconv_t)(-1).
21859         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21860         is not possible.
21861
21862 2007-03-31  Bruno Haible  <bruno@clisp.org>
21863
21864         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21865         work on Solaris either. Protect also second use of "autodetect_jp".
21866
21867 2007-03-31  Bruno Haible  <bruno@clisp.org>
21868
21869         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21870         the function is not present.
21871
21872 2007-03-31  Bruno Haible  <bruno@clisp.org>
21873
21874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21875         the function is not present.
21876
21877 2007-03-31  Bruno Haible  <bruno@clisp.org>
21878
21879         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21880         a bug in HP-UX iconv_open().
21881
21882 2007-03-31  Bruno Haible  <bruno@clisp.org>
21883
21884         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21885         (Mathematics <math.h>): New section, add fpieee.
21886         (Input/output <stdio.h>): Add fseterr.
21887         (Mathematics <math.h>): New section, add printf-frexp.
21888         (Container data structures): Add sublist.
21889         (Core language properties): Add fpucw, inline.
21890         (Functions for greatest-width integer types <inttypes.h>): Add
21891         imaxabs, imaxdiv, inttypes.
21892         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21893         isnanl-nolibm, ldexp.
21894         (Mathematics <math.h>): New section, add printf-frexpl.
21895         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21896         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21897         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21898         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21899         (Unicode string functions): Add unistr/u*-mbtoucr.
21900         (Java): Add javacomp-script, javaexec-script.
21901         (C#): Add csharpcomp-script, csharpexec-script.
21902         (Support for building libraries and executables): Add havelib,
21903         relocatable-*.
21904         (Support for maintaining and releasing projects): Renamed from
21905         'Support for maintaining and release projects'. Add announce-gen.
21906
21907 2007-03-31  Bruno Haible  <bruno@clisp.org>
21908
21909         * README: Talk primarily about git.
21910         (git and CVS): Renamed from CVS.
21911         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21912         gnulib is available through git.
21913         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21914
21915 2007-03-30  Bruno Haible  <bruno@clisp.org>
21916
21917         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21918         * lib/poll_.h: Likewise.
21919         * lib/stat_.h: Likewise.
21920         * lib/sys_time_.h: Likewise.
21921         * lib/sysexit_.h: Likewise.
21922         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21923         * lib/stdbool_.h: Likewise.
21924         * lib/byteswap_.h: Add double-inclusion guard.
21925
21926 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21927
21928         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21929
21930 2007-03-30  Karl Berry  <karl@gnu.org>
21931
21932         * config/srclist-update: double space after USA in the license
21933         substitution, since that's how it's usually (?) written.
21934
21935 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21936
21937         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21938         reported by Bruno Haible.
21939
21940 2007-03-29  Bruno Haible  <bruno@clisp.org>
21941
21942         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21943         a bug in AIX iconv().
21944
21945 2007-03-29  Bruno Haible  <bruno@clisp.org>
21946
21947         * modules/ldexpl-tests: New file.
21948         * tests/test-ldexpl.c: New file.
21949
21950 2007-03-29  Bruno Haible  <bruno@clisp.org>
21951
21952         * lib/ldexpl.c: Include fpucw.h.
21953         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21954         multiplication.
21955         * modules/ldexpl (Depends-on): Add fpucw.
21956
21957 2007-03-29  Bruno Haible  <bruno@clisp.org>
21958
21959         * modules/ldexpl: New file.
21960         * m4/ldexpl.m4: New file.
21961         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21962         set.
21963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21964         REPLACE_LDEXPL.
21965         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21966         REPLACE_LDEXPL.
21967         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21968         gl_FUNC_LDEXPL_WORKS.
21969         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21970         * modules/mathl (Files): Remove lib/ldexpl.c.
21971         (Depends-on): Add ldexpl.
21972
21973 2007-03-29  Bruno Haible  <bruno@clisp.org>
21974
21975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21976
21977 2007-03-29  Bruno Haible  <bruno@clisp.org>
21978
21979         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21980         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21981         and possibly also HP-UX.
21982         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21983         work on AIX, IRIX, HP-UX, OSF/1.
21984         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21985         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21986         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21987         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21988         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21989         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21990
21991 2007-03-29  Bruno Haible  <bruno@clisp.org>
21992
21993         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21994
21995 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21996
21997         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21998         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21999
22000 2007-03-29  Eric Blake  <ebb9@byu.net>
22001
22002         * lib/acl-internal.h: Remove redundant include.
22003         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
22004         Cygwin when a file is locked.
22005
22006 2007-03-29  Bruno Haible  <bruno@clisp.org>
22007
22008         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
22009         file.
22010         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
22011
22012 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
22013
22014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
22015         try to remove a parent directory if the child couldn't be removed
22016         (except for the first rmdir, which could fail because the child
22017         doesn't exist).  Problem reported by Jeff Blaine in
22018         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
22019
22020 2007-03-28  Bruno Haible  <bruno@clisp.org>
22021
22022         * lib/striconveh.c (utf8conv_carefully): New function.
22023         (mem_cd_iconveh_internal): Invoke it.
22024
22025 2007-03-28  Bruno Haible  <bruno@clisp.org>
22026
22027         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
22028         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
22029         input.
22030         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
22031         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
22032         unistr/u8-uctomb.
22033
22034 2007-03-28  Bruno Haible  <bruno@clisp.org>
22035
22036         * modules/unistr/u8-mbtoucr: New file.
22037         * lib/unistr/u8-mbtoucr.c: New file.
22038         * modules/unistr/u16-mbtoucr: New file.
22039         * lib/unistr/u16-mbtoucr.c: New file.
22040         * modules/unistr/u16-mbtoucr: New file.
22041         * lib/unistr/u16-mbtoucr.c: New file.
22042         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
22043
22044 2007-03-27  Simon Josefsson  <simon@josefsson.org>
22045             Bruno Haible  <bruno@clisp.org>
22046
22047         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
22048         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
22049         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
22050
22051         * m4/stdio_h.m4: Add stubs for vasprintf too.
22052
22053         * modules/stdio: Support vasprintf in sed command.
22054
22055         * modules/vasprintf: Depend on stdio for prototypes.  Remove
22056         vasprintf.h.  Add stdio module indicator.
22057
22058         * lib/stdio_.h: Declare asprintf and vasprintf, based on
22059         vasprintf.h.
22060
22061         * lib/vasprintf.h: File removed.
22062
22063         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
22064         * lib/vasprintf.c: Ditto.
22065         * lib/xvasprintf.c: Ditto.
22066         * tests/test-vasprintf-posix.c: Ditto.
22067         * tests/test-vasprintf.c: Ditto.
22068
22069 2007-03-27  Bruno Haible  <bruno@clisp.org>
22070
22071         Make vasnprintf multithread-safe.
22072         * lib/vasnprintf.c (decimal_point_char): New function.
22073         (VASNPRINTF): Use it.
22074         Suggested by Simon Josefsson.
22075
22076 2007-03-27  Eric Blake  <ebb9@byu.net>
22077
22078         Support sub-second birthtime on cygwin.
22079         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
22080         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
22081         (get_stat_birthtime): Also work with st_birthtim.
22082
22083 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         * lib/stat-time.h (USE_BIRTHTIME): Remove.
22086         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
22087         (get_stat_birthtime_ns): Do not try to use "spare" fields.
22088         (get_stat_birthtime_ns): Simplify compile-time tests.
22089         (get_stat_birthtime): Change the API to look like
22090         get_stat_mtime etc., except return a negative tv_nsec on error.
22091         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
22092         Don't check for "spare" fields.
22093         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
22094         or for struct stat.st_birthtime, as these tests aren't used.
22095         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
22096
22097 2007-03-27  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/stat-time.h: Include <sys/stat.h>.
22100
22101 2007-03-27  James Youngman  <jay@gnu.org>
22102
22103         * lib/stat-time.h (get_stat_birthtime): New function for
22104           retrieving st_birthtime as provided by UFS2 (hence *BSD).
22105         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
22106           and its variants.
22107         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
22108         * modules/stat-time-test: New file.
22109         * tests/test-stat-time.c: New test, devised by Bruno Haible.
22110
22111 2007-03-26  Bruno Haible  <bruno@clisp.org>
22112
22113         Better support of signalling NaNs.
22114         * lib/atanl.c: Include isnanl.h.
22115         (atanl): Perform test for NaN at the beginning of the function and
22116         through a call to isnanl.
22117         * lib/cosl.c: Include isnanl.h.
22118         (cosl): Perform test for NaN at the beginning of the function and
22119         through a call to isnanl.
22120         * lib/ldexpl.c: Include isnanl.h.
22121         (ldexpl): Perform test for NaN through a call to isnanl.
22122         * lib/logl.c: Include isnanl.h.
22123         (logl): Perform test for NaN at the beginning of the function and
22124         through a call to isnanl.
22125         * lib/sinl.c: Include isnanl.h.
22126         (sinl): Perform test for NaN at the beginning of the function and
22127         through a call to isnanl.
22128         * lib/sqrtl.c: Include isnanl.h.
22129         (sqrtl): Perform test for NaN at the beginning of the function and
22130         through a call to isnanl.
22131         * lib/tanl.c: Include isnanl.h.
22132         (tanl): Perform test for NaN at the beginning of the function and
22133         through a call to isnanl.
22134         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
22135         * modules/mathl (Depends-on): Add isnanl.
22136
22137 2007-03-26  Eric Blake  <ebb9@byu.net>
22138
22139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
22140         regression in logic sense of previous patch.
22141
22142 2007-03-26  Bruno Haible  <bruno@clisp.org>
22143
22144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
22145         unportable shell command "if ! ...".
22146         Reported by Ralf Wildenhues.
22147
22148 2007-03-25  Bruno Haible  <bruno@clisp.org>
22149
22150         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
22151         <sysexits.h> file, and only add EX_CONFIG.
22152         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
22153         absolute file name and whether it is sufficient. Substitute also
22154         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
22155         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
22156         ABSOLUTE_SYSEXITS_H into sysexits.h.
22157
22158 2007-03-25  Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
22161         hints is NULL.
22162
22163 2007-03-25  Bruno Haible  <bruno@clisp.org>
22164
22165         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
22166         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22167
22168 2007-03-25  Bruno Haible  <bruno@clisp.org>
22169
22170         * lib/vasnprintf.c: Include langinfo.h.
22171         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
22172         multithread-safe.
22173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
22174         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
22175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
22181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22182         Reported by Simon Josefsson.
22183
22184 2007-03-25  Bruno Haible  <bruno@clisp.org>
22185
22186         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
22187         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
22188         * modules/vasnprintf (Depends-on): Add stdint.
22189
22190 2007-03-25  Bruno Haible  <bruno@clisp.org>
22191
22192         * modules/fpieee: New file.
22193         * m4/fpieee.m4: New file.
22194         * modules/isnan-nolibm (Depends-on): Add fpieee.
22195         * modules/isnanl-nolibm (Depends-on): Add fpieee.
22196         * modules/isnanl (Depends-on): Add fpieee.
22197
22198 2007-03-25  Bruno Haible  <bruno@clisp.org>
22199
22200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
22201
22202 2007-03-25  Bruno Haible  <bruno@clisp.org>
22203
22204         Avoid test failures on IRIX 6.5.
22205         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
22206         (main): Use it.
22207         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
22208         macros.
22209         (main): Use them.
22210
22211 2007-03-25  Bruno Haible  <bruno@clisp.org>
22212
22213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
22214         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
22215         exists but doesn't work.
22216         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
22217         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
22218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
22219         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
22220
22221 2007-03-25  Bruno Haible  <bruno@clisp.org>
22222
22223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
22224         returns inf. Needed on IRIX 6.5.
22225
22226 2007-03-25  Bruno Haible  <bruno@clisp.org>
22227
22228         * tests/test-frexpl.c: Include isnanl-nolibm.h.
22229         (main): Use isnanl instead of x != x idiom.
22230         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
22231
22232         * tests/test-frexp.c: Include isnan.h.
22233         (main): Use isnan instead of x != x idiom.
22234         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
22235
22236 2007-03-25  Bruno Haible  <bruno@clisp.org>
22237
22238         * tests/test-frexp.c (NaN): New function/macro.
22239         (main): Use it instead of 0.0 / 0.0.
22240         * tests/test-isnan.c (NaN): New function/macro.
22241         (main): Use it instead of 0.0 / 0.0.
22242         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
22243         (test_function): Use it instead of 0.0 / 0.0.
22244         * tests/test-vasprintf-posix.c (NaN): New function/macro.
22245         (test_function): Use it instead of 0.0 / 0.0.
22246         * tests/test-snprintf-posix.h (NaN): New function/macro.
22247         (test_function): Use it instead of 0.0 / 0.0.
22248         * tests/test-sprintf-posix.h (NaN): New function/macro.
22249         (test_function): Use it instead of 0.0 / 0.0.
22250         * tests/test-fprintf-posix.h (NaN): New function/macro.
22251         (test_function): Use it instead of 0.0 / 0.0.
22252         * tests/test-printf-posix.h (NaN): New function/macro.
22253         (test_function): Use it instead of 0.0 / 0.0.
22254
22255         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
22256
22257 2007-03-25  Bruno Haible  <bruno@clisp.org>
22258
22259         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
22260
22261 2007-03-25  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/regexec.c (merge_state_with_log): Make static.
22264
22265 2007-03-25  Bruno Haible  <bruno@clisp.org>
22266
22267         * lib/trigl.c (kernel_rem_pio2): Make static.
22268
22269 2007-03-25  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/sincosl.c (sincosl_table): Make static.
22272
22273 2007-03-25  Bruno Haible  <bruno@clisp.org>
22274
22275         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
22276         if the compiler does not support C99.
22277
22278 2007-03-25  Bruno Haible  <bruno@clisp.org>
22279
22280         * modules/time (Makefile.am): Ensure all rule action lines start with a
22281         tab.
22282
22283 2007-03-24  Bruno Haible  <bruno@clisp.org>
22284
22285         * modules/tsearch-tests: New file.
22286         * tests/test-tsearch.sh: New file.
22287         * tests/test-tsearch.c: New file, mostly copied from glibc.
22288
22289         * modules/search-tests: New file.
22290         * tests/test-search.c: New file.
22291
22292         * modules/search: New file.
22293         * lib/search_.h: New file, incorporating lib/tsearch.h.
22294         * m4/search_h.m4: New file.
22295         * lib/tsearch.h: Remove file.
22296         * lib/tsearch.c: Include search.h instead of tsearch.h.
22297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
22298         HAVE_TSEARCH.
22299         * modules/tsearch (Files): Remove lib/tsearch.h.
22300         (Depends-on): Add search.
22301         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
22302         (Include): Change tsearch.h into search.h.
22303
22304 2007-03-24  Bruno Haible  <bruno@clisp.org>
22305
22306         * modules/fpucw: New file.
22307         * lib/fpucw.h: New file.
22308         * lib/frexp.c: Include fpucw.h.
22309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22310         (FUNC): Use them.
22311         * lib/printf-frexp.c: Include fpucw.h.
22312         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22313         (FUNC): Use them.
22314         * lib/vasnprintf.c: Include fpucw.h.
22315         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
22316         'long double' calculations.
22317         * tests/test-frexpl.c: Include fpucw.h.
22318         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22319         * tests/test-printf-frexpl.c: Include fpucw.h.
22320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22321         * modules/frexpl (Depends-on): Add fpucw.
22322         * modules/printf-frexpl (Depends-on): Likewise.
22323         * modules/fprintf-posix (Depends-on): Likewise.
22324         * modules/snprintf-posix (Depends-on): Likewise.
22325         * modules/sprintf-posix (Depends-on): Likewise.
22326         * modules/vasnprintf-posix (Depends-on): Likewise.
22327         * modules/vasprintf-posix (Depends-on): Likewise.
22328         * modules/vfprintf-posix (Depends-on): Likewise.
22329         * modules/vsnprintf-posix (Depends-on): Likewise.
22330         * modules/vsprintf-posix (Depends-on): Likewise.
22331         * modules/frexpl-tests (Depends-on): Likewise.
22332         * modules/printf-frexpl-tests (Depends-on): Likewise.
22333
22334 2007-03-24  Bruno Haible  <bruno@clisp.org>
22335
22336         * lib/float+.h: New file.
22337         * lib/isnan.c: Include float+.h.
22338         (SIZE): New macro.
22339         (FUNC): Compare only SIZE bytes of the value.
22340         * lib/vasnprintf.c: Include float+.h.
22341         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
22342         SIZEOF_LDBL or SIZEOF_DBL bytes.
22343         * modules/isnan-nolibm (Files): Add lib/float+.h.
22344         * modules/isnanl-nolibm (Files): Add lib/float+.h.
22345         * modules/isnanl (Files): Add lib/float+.h.
22346         * modules/vasnprintf (Files): Add lib/float+.h.
22347
22348 2007-03-24  Bruno Haible  <bruno@clisp.org>
22349
22350         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
22351         include isnanl-nolibm.h.
22352
22353 2007-03-24  Bruno Haible  <bruno@clisp.org>
22354
22355         * tests/test-read-file.c (main): Don't produce spurious output for
22356         expected situations. Make the test fail if it encountered unexpected
22357         results.
22358
22359 2007-03-24  Bruno Haible  <bruno@clisp.org>
22360
22361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
22362         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
22363
22364 2007-03-24  Bruno Haible  <bruno@clisp.org>
22365
22366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
22367
22368 2007-03-24  Bruno Haible  <bruno@clisp.org>
22369
22370         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
22371         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
22372
22373         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
22374         * modules/utf8-ucs4: Turn into a symbolic link to module
22375         unistr/u8-mbtouc.
22376
22377         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
22378         utf8-ucs4-unsafe.
22379         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
22380         unistr/u8-mbtouc-unsafe.
22381
22382         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
22383         * modules/utf16-ucs4: Turn into a symbolic link to module
22384         unistr/u16-mbtouc.
22385
22386         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
22387         utf16-ucs4-unsafe.
22388         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
22389         unistr/u16-mbtouc-unsafe.
22390
22391         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
22392         * modules/ucs4-utf8: Turn into a symbolic link to module
22393         unistr/u8-ubtomb.
22394
22395         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
22396         * modules/ucs4-utf16: Turn into a symbolic link to module
22397         unistr/u16-ubtomb.
22398
22399 2007-03-24  Bruno Haible  <bruno@clisp.org>
22400
22401         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
22402         Enable the function only if HAVE_INLINE.
22403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
22404         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22405         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
22406         Enable the function only if HAVE_INLINE.
22407         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
22408         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22409         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
22410         Enable the function only if HAVE_INLINE.
22411         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
22412         Enable the function only if HAVE_INLINE.
22413         * modules/utf8-ucs4: Update.
22414         * modules/utf8-ucs4-unsafe: Update.
22415         * modules/utf16-ucs4: Update.
22416         * modules/utf16-ucs4-unsafe: Update.
22417         * modules/ucs4-utf8: Update.
22418         * modules/ucs4-utf16: Update.
22419
22420 2007-03-24  Bruno Haible  <bruno@clisp.org>
22421
22422         * lib/utf8-ucs4.h: Remove file.
22423         * lib/utf8-ucs4-unsafe.h: Remove file.
22424         * lib/utf16-ucs4.h: Remove file.
22425         * lib/utf16-ucs4-unsafe.h: Remove file.
22426         * lib/ucs4-utf8.h: Remove file.
22427         * lib/ucs4-utf16.h: Remove file.
22428         * lib/unistr.h: Include their previous contents.
22429         * m4/utf-ucs4.m4: Remove file.
22430         * m4/ucs4-utf.m4: Remove file.
22431         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
22432         (Depends-on): Add unistr/base.
22433         (configure.ac): Remove gl_UTF_UCS4.
22434         (Makefile.am): Update.
22435         (Include): Change to unistr.h.
22436         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
22437         (Depends-on): Add unistr/base.
22438         (configure.ac): Remove gl_UTF_UCS4.
22439         (Makefile.am): Update.
22440         (Include): Change to unistr.h.
22441         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
22442         (Depends-on): Add unistr/base.
22443         (configure.ac): Remove gl_UTF_UCS4.
22444         (Makefile.am): Update.
22445         (Include): Change to unistr.h.
22446         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
22447         (Depends-on): Add unistr/base.
22448         (configure.ac): Remove gl_UTF_UCS4.
22449         (Makefile.am): Update.
22450         (Include): Change to unistr.h.
22451         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
22452         (Depends-on): Add unistr/base.
22453         (configure.ac): Remove gl_UCS4_UTF.
22454         (Makefile.am): Update.
22455         (Include): Change to unistr.h.
22456         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
22457         (Depends-on): Add unistr/base.
22458         (configure.ac): Remove gl_UCS4_UTF.
22459         (Makefile.am): Update.
22460         (Include): Change to unistr.h.
22461         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
22462         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
22463         utf8-ucs4-unsafe.h.
22464         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
22465         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
22466         utf16-ucs4-unsafe.h.
22467         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
22468         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
22469         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
22470         * lib/unistr/u8-strchr.c: Likewise.
22471         * lib/unistr/u8-strrchr.c: Likewise.
22472         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
22473         * lib/unistr/u16-strchr.c: Likewise.
22474         * lib/unistr/u16-strrchr.c: Likewise.
22475         * lib/striconveh.c: Update.
22476         * lib/linebreak.c: Update.
22477
22478 2007-03-24  Bruno Haible  <bruno@clisp.org>
22479
22480         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
22481         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
22482
22483 2007-03-22  Bruno Haible  <bruno@clisp.org>
22484
22485         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
22486
22487 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22488
22489         * MODULES.html.sh (File system functions): New module write-any-file.
22490         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
22491         * m4/write-any-file.m4: New files.
22492
22493 2007-03-23  Eric Blake  <ebb9@byu.net>
22494
22495         * gnulib-tool: Rearrange space-tab sequences, since some editors
22496         like to eat them.
22497
22498 2007-03-23  Eric Blake  <ebb9@byu.net>
22499
22500         * lib/version-etc.c (version_etc_va): Update license wording to
22501         be more concise.  Recommended by Richard Stallman.
22502
22503 2007-03-22  Bruno Haible  <bruno@clisp.org>
22504
22505         * lib/poll.c (MSG_PEEK): New fallback definition.
22506
22507 2007-03-22  Bruno Haible  <bruno@clisp.org>
22508
22509         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
22510         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
22511         (main): Update.
22512         Fixes a compilation error on BeOS.
22513
22514 2007-03-22  Bruno Haible  <bruno@clisp.org>
22515
22516         * modules/frexpl-tests: New file.
22517         * tests/test-frexpl.c: New file.
22518
22519         * modules/frexpl: New file.
22520         * m4/frexpl.m4: New file.
22521         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
22522         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
22523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
22524         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
22525         (Depends-on): Add frexpl. Remove isnanl-nolibm.
22526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
22527
22528 2007-03-22  Bruno Haible  <bruno@clisp.org>
22529
22530         * lib/frexpl.c: Share code with lib/frexp.c.
22531         * modules/mathl (Files): Add lib/frexp.c.
22532         (Depends-on): Add isnanl-nolibm.
22533
22534 2007-03-22  Bruno Haible  <bruno@clisp.org>
22535
22536         * modules/printf-frexp (Files): Add m4/frexp.m4.
22537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
22538         only if the found frexp function actually works.
22539
22540 2007-03-22  Bruno Haible  <bruno@clisp.org>
22541
22542         * lib/frexp.c: Remove older implementation that uses divisions.
22543
22544 2007-03-21  Bruno Haible  <bruno@clisp.org>
22545
22546         * modules/frexp-tests: New file.
22547         * tests/test-frexp.c: New file.
22548
22549         * modules/frexp: New file.
22550         * lib/frexp.c: New file.
22551         * m4/frexp.m4: New file.
22552         * lib/math_.h (frexp): New declaration.
22553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22554         REPLACE_FREXP.
22555         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22556
22557 2007-03-21  Bruno Haible  <bruno@clisp.org>
22558
22559         * modules/isnanl-tests: New file.
22560         * tests/test-isnanl.c: New file.
22561
22562         * modules/isnanl: New file.
22563         * lib/isnanl.h: New file.
22564         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22565         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22566         gl_FUNC_ISNANL_WORKS.
22567         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22568         New macros.
22569
22570 2007-03-21  Bruno Haible  <bruno@clisp.org>
22571
22572         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22573         lib/isnanl.h.
22574         (Include): Update.
22575         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22576         * lib/vasnprintf.c: Update.
22577         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22578         tests/test-isnanl.h, remove tests/test-isnanl.c.
22579         (Makefile.am): Update.
22580         * tests/test-isnanl-nolibm.c: New file.
22581         * tests/test-isnanl.h: New file.
22582         * tests/test-isnanl.c: Remove file.
22583
22584 2007-03-21  Jim Meyering  <jim@meyering.net>
22585
22586         When trying to open ".", treat ESTALE like EACCES.
22587         * lib/savewd.c (savewd_save): Resort to forking not just upon
22588         failure with EACCES, but also when errno is ESTALE.
22589
22590 2007-03-20  Bruno Haible  <bruno@clisp.org>
22591
22592         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22593         Needed on AIX 5.1. Reported by Matthew Woehlke.
22594
22595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22596
22597         Suggestions by Bruno Haible:
22598         * lib/acl-internal.h: Include "gettext.h" rather than rolling
22599         our own.
22600         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22601         * modules/acl (Depends-on): Add gettext.
22602
22603 2007-03-19  Bruno Haible  <bruno@clisp.org>
22604
22605         * modules/iconvme: Remove file.
22606         * lib/iconvme.h: Remove file.
22607         * lib/iconvme.c: Remove file.
22608         * m4/iconvme.m4: Remove file.
22609
22610 2007-03-19  Bruno Haible  <bruno@clisp.org>
22611
22612         * doc/relocatable-maint.texi: Break long shell script line.
22613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22614
22615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22618         handle file_has_acl.
22619         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22620         * lib/acl.c: Move header inclusions and related macro defns into
22621         lib/acl-internal.h.
22622         (S_ISLNK): Remove defn, since that's now done for us.
22623         (file_has_acl): Move to lib/file-has-acl.c.
22624         Call acl_trivial if available.  This is the crucial part of the fix.
22625         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22626         shared within the library.  Rewrite a bit, partly to make it compatible
22627         with the GNU coding style.
22628         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22629         Remove unnecessary double-quotes.
22630         Don't test for acl_to_text; the build will catch that.
22631         Replace acl_entries if it doesn't exist and it is needed.
22632         Check for -lsec and acl_trivial (as used on Solaris 10).
22633         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22634         lib/file-has-acl.c.
22635         (Depends-on): Add sys_stat, for S_ISLNK.
22636
22637 2007-03-19  Ben Pfaff  <blp@gnu.org>
22638
22639         * doc/gnulib.texi: Fix typos.
22640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22641
22642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22643
22644         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22645         If size is zero here, buf must be zero.
22646
22647 2007-03-19  Simon Josefsson  <simon@josefsson.org>
22648
22649         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
22650         <bruno@clisp.org>.
22651
22652 2007-03-18  Bruno Haible  <bruno@clisp.org>
22653
22654         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22655         Suggested by Eric Blake.
22656
22657 2007-03-18  Ben Pfaff  <blp@gnu.org>
22658
22659         * doc/relocatable.texi: Recommend using as prefix a directory
22660         that does not exist and will never be created.  Based on
22661         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22662         and others.
22663
22664 2007-03-17  Bruno Haible  <bruno@clisp.org>
22665
22666         * lib/fchownat.c: Include lchown.h.
22667
22668 2007-03-17  Bruno Haible  <bruno@clisp.org>
22669
22670         Fix endless loop when the given allocated size was > INT_MAX.
22671         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22672         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22673         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22674         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22675         * lib/sprintf.c (sprintf): Likewise.
22676
22677 2007-03-17  Bruno Haible  <bruno@clisp.org>
22678
22679         * tests/test-argp-2.sh (func_compare): Output a context diff.
22680
22681 2007-03-17  Bruno Haible  <bruno@clisp.org>
22682
22683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22684         locale's decimal-point character.
22685
22686 2007-03-17  Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22689         before comparing it. Needed because on some platforms (e.g. x86) a
22690         'long double' occupies less bytes than sizeof (long double).
22691
22692 2007-03-17  Bruno Haible  <bruno@clisp.org>
22693
22694         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22695         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22696         * tests/test-getaddrinfo.c (simple): Likewise.
22697         * tests/test-read-file.c (main): Likewise.
22698
22699 2007-03-17  Bruno Haible  <bruno@clisp.org>
22700
22701         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22702
22703 2007-03-17  Bruno Haible  <bruno@clisp.org>
22704
22705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22706         unused variable.
22707
22708 2007-03-17  Bruno Haible  <bruno@clisp.org>
22709
22710         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22711         * tests/test-c-strncasecmp.c: Likewise.
22712
22713 2007-03-17  Bruno Haible  <bruno@clisp.org>
22714
22715         * modules/stdlib (Depends-on): Add unistd.
22716         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22717         Needed for MacOS X 10.3.
22718
22719 2007-03-17  Bruno Haible  <bruno@clisp.org>
22720
22721         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22722
22723 2007-03-17  Bruno Haible  <bruno@clisp.org>
22724
22725         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22726
22727 2007-03-17  Bruno Haible  <bruno@clisp.org>
22728
22729         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22730         to reflect files copied from gnulib (with or without modifications).
22731         Suggested by Jim Meyering.
22732
22733 2007-03-17  Eric Blake  <ebb9@byu.net>
22734
22735         * NEWS: Document stdlib change from 2007-02-18.
22736
22737 2007-03-17  Jim Meyering  <jim@meyering.net>
22738
22739         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22740         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22741         someone uses a name containing shell meta-characters.
22742         Reported by Alfred M. Szmidt.
22743
22744         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22745
22746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22747
22748         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22749         and copy gettext configuration files only if configure.ac contains
22750         a use of AM_GNU_GETTEXT_VERSION.
22751
22752 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22753
22754         * build-aux/bootstrap (gnulib_name): New variable.
22755         (gnulib_tool_options): Use it.
22756
22757 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22758
22759         * tests/test-des.c: Use new namespace.
22760
22761 2007-03-15  Bruno Haible  <bruno@clisp.org>
22762
22763         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22764         Reported by James Youngman <jay@gnu.org>.
22765
22766 2007-03-15  Bruno Haible  <bruno@clisp.org>
22767
22768         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22769         declared prototype. Needed with cc on OSF/1 5.1.
22770
22771 2007-03-15  Bruno Haible  <bruno@clisp.org>
22772
22773         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22774         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22775         (struct gl_list_implementation): Add dispose_fn argument to the
22776         'create_empty', 'create' methods.
22777         (struct gl_list_impl_base): Add field 'dispose_fn'.
22778         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22779         argument.
22780         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22781         dispose_fn argument.
22782         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22783         dispose_fn on the dropped values.
22784         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22785         dispose_fn argument.
22786         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22787         dropped values.
22788         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22789         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22790         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22792         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22793         argument.
22794         (gl_tree_list_free): Call dispose_fn on the dropped values.
22795         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22796         the dropped values.
22797         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22798         Add dispose_fn argument.
22799         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22800         Call dispose_fn on the dropped values.
22801         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22802         Add dispose_fn argument.
22803         (gl_sublist_create): Initialize the 'dispose_fn' field.
22804         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22805         * tests/test-array_list.c (main): Update.
22806         * tests/test-carray_list.c (main): Update.
22807         * tests/test-avltree_list.c (main): Update.
22808         * tests/test-rbtree_list.c (main): Update.
22809         * tests/test-avltreehash_list.c (main): Update.
22810         * tests/test-rbtreehash_list.c (main): Update.
22811         * tests/test-linked_list.c (main): Update.
22812         * tests/test-linkedhash_list.c (main): Update.
22813         * tests/test-array_oset.c (main): Update.
22814
22815 2007-03-15  Bruno Haible  <bruno@clisp.org>
22816
22817         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22818         (gl_oset_create_empty): Add dispose_fn argument.
22819         (struct gl_oset_implementation): Add dispose_fn argument to
22820         'create_empty' method.
22821         (struct gl_oset_impl_base): Add dispose_fn field.
22822         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22823         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22824         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22825         values.
22826         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22827         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22828         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22829         dropped value.
22830         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22831         dropped value.
22832         * tests/test-array_oset.c (main): Update.
22833         * tests/test-avltree_oset.c (main): Update.
22834         * tests/test-rbtree_oset.c (main): Update.
22835         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22836
22837 2007-03-13  Bruno Haible  <bruno@clisp.org>
22838
22839         * tests/test-stdbool.c (i): Update after last patch.
22840
22841 2007-03-12  Bruno Haible  <bruno@clisp.org>
22842
22843         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22844         the iswprint macro. Needed on Solaris 2.5.1.
22845
22846 2007-03-12  Bruno Haible  <bruno@clisp.org>
22847
22848         * tests/test-printf-frexp.c (main): Declare x as volatile.
22849
22850 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22851
22852         * doc/gnulib.texi (Build robot for gnulib): New section.
22853
22854 2007-03-12  Jim Meyering  <jim@meyering.net>
22855
22856         * build-aux/bootstrap: New file.
22857         * build-aux/bootstrap.conf: New file, from coreutils.
22858
22859 2007-03-11  Bruno Haible  <bruno@clisp.org>
22860
22861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22862
22863 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22864
22865         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22866         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22867         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22868
22869 2007-03-11  Bruno Haible  <bruno@clisp.org>
22870
22871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22872         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22873
22874 2007-03-11  Bruno Haible  <bruno@clisp.org>
22875
22876         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22877         formula. Needed for SunPRO C 5.0.
22878
22879 2007-03-11  Bruno Haible  <bruno@clisp.org>
22880
22881         * modules/long-options (Depends-on): Add getopt.
22882
22883 2007-03-11  Bruno Haible  <bruno@clisp.org>
22884
22885         * modules/modechange (Depends-on): Add stdbool.
22886
22887 2007-03-11  Bruno Haible  <bruno@clisp.org>
22888
22889         * modules/i-ring (Depends-on): Add stdbool.
22890
22891 2007-03-11  Bruno Haible  <bruno@clisp.org>
22892
22893         * modules/gc-des (Depends-on): Add stdbool.
22894
22895 2007-03-11  Bruno Haible  <bruno@clisp.org>
22896
22897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22898
22899 2007-03-11  Bruno Haible  <bruno@clisp.org>
22900
22901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22902
22903 2007-03-11  Bruno Haible  <bruno@clisp.org>
22904
22905         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22906
22907 2007-03-11  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/vasnprintf.c (sprintf): Undefine.
22910
22911 2007-03-11  Bruno Haible  <bruno@clisp.org>
22912
22913         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22914         initializers in SunPRO C and Compaq C compilers.
22915
22916 2007-03-11  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22919         decrementing code ANSI C compliant.
22920
22921 2007-03-11  Bruno Haible  <bruno@clisp.org>
22922
22923         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22924         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22925
22926 2007-03-11  Bruno Haible  <bruno@clisp.org>
22927
22928         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22929         <stdbool.h> substitute doesn't pass.
22930
22931 2007-03-11  Bruno Haible  <bruno@clisp.org>
22932
22933         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22934
22935 2007-03-11  Bruno Haible  <bruno@clisp.org>
22936
22937         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22938         script, for submission to autobuild.josefsson.org.
22939
22940 2007-03-10  Bruno Haible  <bruno@clisp.org>
22941
22942         * modules/canonicalize-lgpl-tests: New file.
22943         * tests/test-canonicalize-lgpl.sh: New file.
22944         * tests/test-canonicalize-lgpl.c: New file.
22945
22946         * modules/c-strcase-tests: New file.
22947         * tests/test-c-strcase.sh: New file.
22948         * tests/test-c-strcasecmp.c: New file.
22949         * tests/test-c-strncasecmp.c: New file.
22950
22951         * modules/atexit-tests: New file.
22952         * tests/test-atexit.sh: New file.
22953         * tests/test-atexit.c: New file.
22954
22955 2007-03-10  Bruno Haible  <bruno@clisp.org>
22956
22957         * tests/test-binary-io.sh: Use temporary filenames that are not so
22958         likely to clash with those of other tests (in a parallel make).
22959         * tests/test-binary-io.c: Likewise.
22960
22961 2007-03-10  Bruno Haible  <bruno@clisp.org>
22962
22963         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22964         fallback; use #error instead.
22965         Suggested by Simon Josefsson.
22966
22967 2007-03-10  Bruno Haible  <bruno@clisp.org>
22968
22969         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22970         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22971         first and the last.
22972
22973 2007-03-10  Bruno Haible  <bruno@clisp.org>
22974
22975         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22976
22977 2007-03-10  Bruno Haible  <bruno@clisp.org>
22978
22979         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22980         "make distcheck".
22981         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22982         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22983         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22984
22985 2007-03-10  Bruno Haible  <bruno@clisp.org>
22986
22987         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22988         variable.
22989         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22990         variable.
22991
22992 2007-03-09  Eric Blake  <ebb9@byu.net>
22993         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22994
22995         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22996         types are not being provided by gnulib.
22997         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22998         types are supported.
22999
23000 2007-03-10  Bruno Haible  <bruno@clisp.org>
23001
23002         * lib/stdio_.h (__attribute__): New macro.
23003         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
23004         vsprintf): Specify __attribute__ __format__ for GCC.
23005         Suggested by Eric Blake.
23006
23007 2007-03-09  Bruno Haible  <bruno@clisp.org>
23008
23009         * modules/printf-posix-tests: New file.
23010         * tests/test-printf-posix.sh: New file.
23011         * tests/test-printf-posix.c: New file.
23012
23013         * modules/printf-posix: New file.
23014         * lib/printf.c: New file.
23015         * m4/printf-posix-rpl.m4: New file.
23016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
23017         REPLACE_PRINTF.
23018         * lib/stdio_.h (printf): New declaration.
23019         (format, __format__, ____printf____, ____scanf____, ____strftime____,
23020         ____strfmon____): New macros.
23021         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
23022         REPLACE_PRINTF.
23023
23024 2007-03-09  Bruno Haible  <bruno@clisp.org>
23025
23026         * tests/test-vasnprintf-posix2.sh: New file.
23027         * tests/test-vasnprintf-posix2.c: New file.
23028         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
23029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23030         (Makefile.am): Activate test-vasnprintf-posix2.sh.
23031
23032         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
23033         a locale dependent decimal point, rather than always '.'.
23034
23035 2007-03-09  Eric Blake  <ebb9@byu.net>
23036
23037         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
23038         spite of platforms like Tandem/NSK that define it to -1.
23039
23040 2007-03-08  Bruno Haible  <bruno@clisp.org>
23041
23042         * modules/vprintf-posix-tests: New file.
23043         * tests/test-vprintf-posix.sh: New file.
23044         * tests/test-vprintf-posix.c: New file.
23045         * tests/test-printf-posix.h: New file.
23046
23047         * modules/vprintf-posix: New file.
23048         * lib/vprintf.c: New file.
23049         * m4/vprintf-posix.m4: New file.
23050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
23051         REPLACE_VPRINTF.
23052         * lib/stdio_.h (vprintf): New declaration.
23053         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
23054         REPLACE_VPRINTF.
23055
23056 2007-03-08  Bruno Haible  <bruno@clisp.org>
23057
23058         * modules/fprintf-posix-tests: New file.
23059         * tests/test-fprintf-posix.sh: New file.
23060         * tests/test-fprintf-posix.c: New file.
23061
23062         * modules/fprintf-posix: New file.
23063         * lib/fprintf.c: New file.
23064         * m4/fprintf-posix.m4: New file.
23065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
23066         REPLACE_FPRINTF.
23067         * lib/stdio_.h (fprintf): New declaration.
23068         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
23069         REPLACE_FPRINTF.
23070
23071 2007-03-08  Bruno Haible  <bruno@clisp.org>
23072
23073         * modules/vfprintf-posix-tests: New file.
23074         * tests/test-vfprintf-posix.sh: New file.
23075         * tests/test-vfprintf-posix.c: New file.
23076         * tests/test-fprintf-posix.h: New file.
23077         * tests/test-fprintf-posix.out: New file.
23078
23079         * modules/vfprintf-posix: New file.
23080         * lib/vfprintf.c: New file.
23081         * m4/vfprintf-posix.m4: New file.
23082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
23083         REPLACE_VFPRINTF.
23084         * lib/stdio_.h (vfprintf): New declaration.
23085         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
23086         REPLACE_VFPRINTF.
23087
23088 2007-03-08  Bruno Haible  <bruno@clisp.org>
23089
23090         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
23091
23092 2007-03-08  Bruno Haible  <bruno@clisp.org>
23093
23094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
23095         instead of 'expr' invocations.
23096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23101         Suggested by Paul Eggert.
23102
23103 2007-03-08  Bruno Haible  <bruno@clisp.org>
23104
23105         * modules/fseterr-tests: New file.
23106         * tests/test-fseterr.c: New file.
23107
23108         * modules/fseterr: New file.
23109         * lib/fseterr.h: New file.
23110         * lib/fseterr.c: New file.
23111
23112 2007-03-08  Bruno Haible  <bruno@clisp.org>
23113
23114         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
23115         * lib/getopt_.h: Likewise.
23116         * lib/mbswidth.h: Likewise.
23117         * lib/setenv.h: Likewise.
23118         * lib/vasnprintf.h: Likewise.
23119         * lib/vasprintf.h: Likewise.
23120         * lib/verror.h: Likewise.
23121         * lib/xsetenv.h: Likewise.
23122         * lib/xvasprintf.h: Likewise.
23123
23124 2007-03-08  Jim Meyering  <jim@meyering.net>
23125
23126         * users.txt: Add parted.
23127
23128         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
23129
23130 2007-03-07  Bruno Haible  <bruno@clisp.org>
23131
23132         * m4/printf.m4: Make the shell script snippets copy&pastable.
23133
23134 2007-03-02  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/netinet_in_.h: New file.
23137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
23138         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
23139         * modules/netinet_in (Files): Add lib/netinet_in_.h.
23140         (Depends-on): Add absolute-header.
23141         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
23142         into netinet/in.h.
23143
23144 2007-03-03  Bruno Haible  <bruno@clisp.org>
23145
23146         * lib/sys_select_.h: New file.
23147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
23148         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
23149         * modules/sys_select (Files): Add lib/sys_select_.h.
23150         (Depends-on): Add absolute-header.
23151         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
23152         into sys/select.h.
23153
23154 2007-03-02  Bruno Haible  <bruno@clisp.org>
23155
23156         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
23157         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
23158         values.
23159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
23160         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
23161         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
23162         * modules/sys_socket (Depends-on): Add absolute-header.
23163         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
23164         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
23165         (Include): Remove requirement of inclusion of <sys/types.h>.
23166
23167 2007-03-02  Bruno Haible  <bruno@clisp.org>
23168
23169         * lib/byteswap_.h (bswap_32): Fix formula.
23170
23171 2007-03-06  Bruno Haible  <bruno@clisp.org>
23172
23173         * modules/sprintf-posix-tests: New file.
23174         * tests/test-sprintf-posix.c: New file.
23175
23176         * modules/sprintf-posix: New file.
23177         * lib/sprintf.c: New file.
23178         * m4/sprintf-posix.m4: New file.
23179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
23180         REPLACE_SPRINTF.
23181         * lib/stdio_.h (sprintf): New declaration.
23182         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
23183         REPLACE_SPRINTF.
23184
23185 2007-03-06  Bruno Haible  <bruno@clisp.org>
23186
23187         * modules/vsprintf-posix-tests: New file.
23188         * tests/test-vsprintf-posix.c: New file.
23189         * tests/test-sprintf-posix.h: New file.
23190
23191         * modules/vsprintf-posix: New file.
23192         * lib/vsprintf.c: New file.
23193         * m4/vsprintf-posix.m4: New file.
23194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
23195         REPLACE_VSPRINTF.
23196         * lib/stdio_.h (vsprintf): New declaration.
23197         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
23198         REPLACE_VSPRINTF.
23199
23200 2007-03-06  Bruno Haible  <bruno@clisp.org>
23201
23202         * modules/vsnprintf (Depend-on): Remove minmax.
23203
23204 2007-03-06  Bruno Haible  <bruno@clisp.org>
23205
23206         * modules/snprintf-posix-tests: New file.
23207         * tests/test-snprintf-posix.c: New file.
23208
23209         * modules/snprintf-posix: New file.
23210         * m4/snprintf-posix.m4: New file.
23211         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
23212         gl_FUNC_SNPRINTF.
23213         (gl_FUNC_SNPRINTF): Invoke it.
23214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
23215         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
23216         is set.
23217         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
23218
23219 2007-03-06  Bruno Haible  <bruno@clisp.org>
23220
23221         * modules/vsnprintf-posix-tests: New file.
23222         * tests/test-vsnprintf-posix.c: New file.
23223         * tests/test-snprintf-posix.h: New file.
23224
23225         * modules/vsnprintf-posix: New file.
23226         * m4/vsnprintf-posix.m4: New file.
23227         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
23228         gl_FUNC_VSNPRINTF.
23229         (gl_FUNC_VSNPRINTF): Invoke it.
23230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
23231         * lib/stdio_.h (vsnprintf): Define as a replacement if
23232         REPLACE_VSNPRINTF is set.
23233         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
23234
23235 2007-03-06  Bruno Haible  <bruno@clisp.org>
23236
23237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
23238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
23239
23240 2007-03-06  Bruno Haible  <bruno@clisp.org>
23241
23242         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
23243         (asinl): Declare also if HAVE_DECL_ASINL is set.
23244         (atanl): Declare also if HAVE_DECL_ATANL is set.
23245         (ceill): Declare also if HAVE_DECL_CEILL is set.
23246         (cosl): Declare also if HAVE_DECL_COSL is set.
23247         (expl): Declare also if HAVE_DECL_EXPL is set.
23248         (floorl): Declare also if HAVE_DECL_FLOORL is set.
23249         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
23250         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
23251         (logl): Declare also if HAVE_DECL_LOGL is set.
23252         (sinl): Declare also if HAVE_DECL_SINL is set.
23253         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
23254         (tanl): Declare also if HAVE_DECL_TANL is set.
23255         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
23256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
23257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
23258         declaration of frexpl, ldexpl.
23259         * modules/printf-frexpl (Depends-on): Add math.
23260         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
23261
23262 2007-03-05  Bruno Haible  <bruno@clisp.org>
23263
23264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
23265         frexpl and ldexpl are declared.
23266         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
23267
23268 2007-03-05  Bruno Haible  <bruno@clisp.org>
23269
23270         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
23271         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
23272
23273 2007-03-05  Bruno Haible  <bruno@clisp.org>
23274
23275         * lib/stdio_.h: Include <stddef.h>.
23276
23277 2007-03-05  Bruno Haible  <bruno@clisp.org>
23278
23279         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
23280
23281 2007-03-05  Bruno Haible  <bruno@clisp.org>
23282
23283         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
23284         NetBSD 4, from Ralf Wildenhues.
23285
23286 2007-03-04  Bruno Haible  <bruno@clisp.org>
23287
23288         * lib/vasprintf.h: Update #if logic for the case when the functions
23289         exist but are overridden.
23290
23291 2007-03-04  Bruno Haible  <bruno@clisp.org>
23292
23293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
23294         implementations: glibc-2.4 and MacOS X 10.3.
23295         * tests/test-vasnprintf-posix.c (test_function): Test also the case
23296         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
23297         * tests/test-vasprintf-posix.c (test_function): Likewise.
23298
23299 2007-03-04  Bruno Haible  <bruno@clisp.org>
23300
23301         * modules/vasprintf-posix-tests: New file.
23302         * tests/test-vasprintf-posix.c: New file.
23303
23304         * modules/vasprintf-posix: New file.
23305         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
23306         defined.
23307         * m4/vasprintf-posix.m4: New file.
23308         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
23309         gl_FUNC_VASPRINTF.
23310         (gl_FUNC_VASPRINTF): Invoke it.
23311         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
23312         here.
23313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
23314
23315 2007-03-04  Bruno Haible  <bruno@clisp.org>
23316
23317         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
23318         REPLACE_GETTIMEOFDAY.
23319         * modules/sys_time (Makefile.am): Likewise.
23320         * m4/sys_time_h.m4: Likewise.
23321         * m4/gettimeofday.m4: Likewise.
23322
23323 2007-03-04  Bruno Haible  <bruno@clisp.org>
23324
23325         * modules/vasnprintf-posix-tests: New file.
23326         * tests/test-vasnprintf-posix.c: New file.
23327
23328         * modules/vasnprintf-posix: New file.
23329         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
23330         printf-frexpl.h.
23331         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
23332         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
23333         REPLACE_VASNPRINTF is defined.
23334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
23335         gl_FUNC_VASNPRINTF.
23336         (gl_FUNC_VASNPRINTF): Invoke it.
23337         * m4/vasnprintf-posix.m4: New file.
23338         * m4/printf.m4: New file.
23339
23340 2007-03-04  Bruno Haible  <bruno@clisp.org>
23341
23342         Compile progreloc.c only if --enable-relocatable is specified.
23343         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
23344         if --enable-relocatable was specified.
23345         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
23346         lib_SOURCES.
23347
23348 2007-03-04  Jim Meyering  <jim@meyering.net>
23349
23350         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
23351         Use it consistently, rather than enumerating errno constants.
23352
23353 2007-03-04  Bruno Haible  <bruno@clisp.org>
23354
23355         * modules/xvasprintf-tests: New file.
23356         * tests/test-xvasprintf.c: New file.
23357
23358         * modules/vasprintf-tests: New file.
23359         * tests/test-vasprintf.c: New file.
23360
23361         * modules/vasnprintf-tests: New file.
23362         * tests/test-vasnprintf.c: New file.
23363
23364         * modules/vsnprintf-tests: New file.
23365         * tests/test-vsnprintf.c: New file.
23366
23367         * modules/snprintf-tests: New file.
23368         * tests/test-snprintf.c: New file.
23369
23370 2007-03-04  Bruno Haible  <bruno@clisp.org>
23371
23372         Compile relocatable.c only if --enable-relocatable is specified.
23373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
23374         gl_RELOCATABLE_LIBRARY.
23375         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
23376         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
23377         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
23378         gl_RELOCATABLE_LIBRARY.
23379         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
23380         (Makefile.am): Remove lib_SOURCES.
23381         * modules/relocatable-lib-lgpl (configure.ac): Invoke
23382         gl_RELOCATABLE_LIBRARY.
23383         (Makefile.am): Remove lib_SOURCES.
23384         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
23385         always.
23386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
23387         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
23388
23389 2007-03-04  Bruno Haible  <bruno@clisp.org>
23390
23391         * modules/argmatch-tests: New file.
23392         * tests/test-argmatch.c: New file.
23393
23394         * tests/test-allocsa.c (main): Halve the number of loop runs.
23395
23396         * modules/alloca-opt-tests: New file.
23397         * tests/test-alloca-opt.c: New file.
23398
23399 2007-03-04  Jim Meyering  <jim@meyering.net>
23400
23401         Work around difference between Linux ACLs and Solaris 10 ZFS.
23402         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
23403         for EINVAL.
23404
23405 2007-03-03  Bruno Haible  <bruno@clisp.org>
23406
23407         * modules/relocatable-prog (Depends-on): Add back progreloc's
23408         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
23409
23410 2007-03-03  Bruno Haible  <bruno@clisp.org>
23411
23412         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
23413         * modules/relocatable-lib: New file.
23414
23415 2007-03-03  Bruno Haible  <bruno@clisp.org>
23416
23417         * modules/relocatable-prog: Renamed from modules/relocatable.
23418         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
23419
23420 2007-03-03  Bruno Haible  <bruno@clisp.org>
23421
23422         * modules/relocatable-script (Files): Add doc/relocatable.texi,
23423         m4/relocatable-lib.m4.
23424         (Depends-on): Remove 'relocatable'.
23425         (configure.ac): Add gl_RELOCATABLE_NOP.
23426
23427 2007-03-03  Bruno Haible  <bruno@clisp.org>
23428
23429         * modules/relocatable-prog-wrapper: New file.
23430         * modules/relocatable (Depends-on): Add it. Remove all other
23431         dependencies except progname.
23432         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
23433
23434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
23435         (gl_FUNC_STRERROR): Nop.
23436         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
23437
23438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
23439         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
23440
23441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
23442         (gl_FUNC_READLINK): Update.
23443
23444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
23445
23446 2007-03-03  Bruno Haible  <bruno@clisp.org>
23447
23448         * lib/xreadlink.c: Include <unistd.h> unconditionally.
23449         * modules/xreadlink (Depends-on): Add unistd.
23450         * modules/xreadlink-with-size (Depends-on): Likewise.
23451
23452 2007-03-03  Bruno Haible  <bruno@clisp.org>
23453
23454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
23455         extracted from gt_FUNC_SETENV.
23456         (gt_FUNC_SETENV): Remove macro.
23457         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
23458         remove gt_FUNC_SETENV.
23459
23460 2007-03-03  Bruno Haible  <bruno@clisp.org>
23461
23462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
23463         ENABLE_RELOCATABLE here.
23464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
23465
23466 2007-03-03  Bruno Haible  <bruno@clisp.org>
23467
23468         * modules/rbtreehash-list-tests (Depends-on): Add progname.
23469         * tests/test-rbtreehash_list.c: Include progname.h.
23470         (main): Call set_program_name.
23471
23472         * modules/rbtree-oset-tests (Depends-on): Add progname.
23473         * tests/test-rbtree_oset.c: Include progname.h.
23474         (main): Call set_program_name.
23475
23476         * modules/rbtree-list-tests (Depends-on): Add progname.
23477         * tests/test-rbtree_list.c: Include progname.h.
23478         (main): Call set_program_name.
23479
23480         * modules/linked-list-tests (Depends-on): Add progname.
23481         * tests/test-linked_list.c: Include progname.h.
23482         (main): Call set_program_name.
23483
23484 2007-03-03  Bruno Haible  <bruno@clisp.org>
23485
23486         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
23487         All uses of __restrict changed to _Restrict_.
23488         * lib/glob_.h (__restrict): Remove macro.
23489
23490 2007-03-02  Bruno Haible  <bruno@clisp.org>
23491
23492         * modules/gettext (configure.ac): Require gettext infrastructure
23493         from version 0.16.1.
23494
23495 2007-03-02  Bruno Haible  <bruno@clisp.org>
23496
23497         * modules/linkedhash-list-tests (Depends-on): Add progname.
23498         * tests/test-linkedhash_list.c: Include progname.h.
23499         (main): Call set_program_name.
23500
23501         * modules/carray-list-tests (Depends-on): Add progname.
23502         * tests/test-carray_list.c: Include progname.h.
23503         (main): Call set_program_name.
23504
23505         * modules/avltreehash-list-tests (Depends-on): Add progname.
23506         * tests/test-avltreehash_list.c: Include progname.h.
23507         (main): Call set_program_name.
23508
23509         * modules/avltree-oset-tests (Depends-on): Add progname.
23510         * tests/test-avltree_oset.c: Include progname.h.
23511         (main): Call set_program_name.
23512
23513         * modules/avltree-list-tests (Depends-on): Add progname.
23514         * tests/test-avltree_list.c: Include progname.h.
23515         (main): Call set_program_name.
23516
23517         * modules/array-oset-tests (Depends-on): Add progname.
23518         * tests/test-array_oset.c: Include progname.h.
23519         (main): Call set_program_name.
23520
23521         * modules/array-list-tests (Depends-on): Add progname.
23522         * tests/test-array_list.c: Include progname.h.
23523         (main): Call set_program_name.
23524
23525         * modules/argp-tests (Depends-on): Add progname.
23526         * tests/test-argp.c: Include argp.h first. Include progname.h.
23527         (main): Call set_program_name.
23528
23529 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
23530
23531         * doc/gnulib-tool.texi (Initial import): Reword description of
23532         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
23533         limited effect even if defined after the first system include.
23534
23535 2007-03-01  Bruno Haible  <bruno@clisp.org>
23536
23537         * build-aux/config.libpath: Update to libtool-1.5.22.
23538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23539
23540 2007-03-01  Bruno Haible  <bruno@clisp.org>
23541
23542         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
23543         foo_CFLAGS.
23544         Reported by Ralf Wildenhues.
23545
23546 2007-03-01  Bruno Haible  <bruno@clisp.org>
23547
23548         * build-aux/install-reloc: Remove object files left over by some
23549         compilers.
23550         Reported by Ralf Wildenhues.
23551
23552 2007-03-01  Bruno Haible  <bruno@clisp.org>
23553
23554         * build-aux/install-reloc: Break long lines.
23555
23556 2007-03-01  Bruno Haible  <bruno@clisp.org>
23557
23558         * doc/relocatable.texi: Document that it may not work on OpenBSD.
23559         Reported by Ralf Wildenhues.
23560
23561 2007-03-01  Bruno Haible  <bruno@clisp.org>
23562
23563         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23564         include ordering constraints.
23565
23566 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23567
23568         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23570         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23571         as another example.
23572         * lib/time_.h: Fix misspelling.
23573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23574         Require gl_HEADER_TIME_H_DEFAULTS.
23575         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23576         * m4/time_r.m4 (gl_TIME_R): Likewise.
23577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23578
23579 2007-03-01  Bruno Haible  <bruno@clisp.org>
23580
23581         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23582         * m4/utimens.m4 (gl_UTIMENS): Likewise.
23583
23584 2007-03-01  Jim Meyering  <jim@meyering.net>
23585
23586         * modules/xreadlink (Maintainer): Add my name.
23587         * modules/xreadlink-with-size (Depends-on): Alphabetize.
23588
23589 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
23590             Bruno Haible  <bruno@clisp.org>
23591
23592         * build-aux/install-reloc: Compile also c-ctype.c.
23593         * build-aux/relocatable.sh.in: New file.
23594         * doc/relocatable.texi: New file.
23595         * doc/relocatable-maint.texi: New file.
23596         * doc/gnulib.texi: Include relocatable-maint.texi.
23597         * lib/progreloc.c: Include unistd.h unconditionally.
23598         * lib/relocwrapper.c: Include unistd.h unconditionally.
23599         Include c-ctype.h.
23600         (add_dotbin): Use c_tolower.
23601         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23602         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23603         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23604         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23605         to m4/relocatable-lib.m4.
23606         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23607         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23608         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23609         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23610         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23611         * modules/relocatable: New file.
23612         * modules/relocatable-lib: New file.
23613         * modules/relocatable-script: New file.
23614
23615 2007-02-28  Bruno Haible  <bruno@clisp.org>
23616
23617         Import --enable-relocatable infrastructure.
23618         * build-aux/config.libpath: New file, from GNU gettext.
23619         * build-aux/install-reloc: New file, from GNU gettext.
23620         * build-aux/reloc-ldflags: New file, from GNU gettext.
23621         * lib/relocatable.h: New file, from GNU gettext.
23622         * lib/relocatable.c: New file, from GNU gettext.
23623         * lib/relocwrapper.c: New file, from GNU gettext.
23624         * m4/relocatable.m4: New file, from GNU gettext.
23625
23626 2007-02-28  Bruno Haible  <bruno@clisp.org>
23627
23628         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23629
23630         * modules/xreadlink: New file, from GNU gettext with modifications.
23631         * lib/xreadlink.c: New file, from GNU gettext.
23632         * lib/xreadlink.h: Add comments.
23633         (xreadlink): New declaration.
23634
23635         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23636         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23637         lib/xreadlink-with-size.c.
23638         (configure.ac): Remove gl_XREADLINK invocation.
23639         (Makefile.am): Augment lib_SOURCES.
23640         * m4/xreadlink.m4: Remove file.
23641         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23642         (xreadlink_with_size): Renamed from xreadink.
23643         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23644         * modules/canonicalize (Depends-on): Replace xreadlink with
23645         xreadlink-with-size.
23646         * lib/canonicalize.c (canonicalize_filename_mode): Update.
23647
23648 2007-02-25  Jim Meyering  <jim@meyering.net>
23649
23650         * build-aux/announce-gen: When complaining about excess arguments,
23651         list them.
23652
23653 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23654
23655         * README: Document signed integer overflow situation more
23656         accurately.
23657
23658 2007-02-25  Bruno Haible  <bruno@clisp.org>
23659
23660         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23661         'a' or 'A' conversion.
23662
23663 2007-02-25  Bruno Haible  <bruno@clisp.org>
23664
23665         * modules/filename: Renamed from modules/pathname.
23666         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23667         lib/concatpath.c with lib/concat-filename.c.
23668         (Makefile.am): Update.
23669         (Include): Replace pathname.h with filename.h.
23670         * lib/filename.h: Renamed from lib/pathname.h.
23671         (concatenated_filename): Renamed from concatenated_pathname.
23672         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23673         (concatenated_filename): Renamed from concatenated_pathname.
23674         * lib/findprog.c: Include filename.h instead of pathname.h.
23675         (find_in_path): Update.
23676         * lib/javacomp.c: Include filename.h instead of pathname.h.
23677         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23678         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23679         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23680         is_oldgcj_14_13_usable, is_javac_usable): Update.
23681         * lib/javaexec.c: Include filename.h instead of pathname.h.
23682         (execute_java_class): Update.
23683         * modules/findprog: Update.
23684         * modules/javacomp: Update.
23685         * modules/javaexec: Update.
23686         * MODULES.html.sh (File system functions): Add 'filename', remove
23687         'pathname'.
23688
23689 2007-02-25  Bruno Haible  <bruno@clisp.org>
23690
23691         * modules/printf-frexpl-tests: New file.
23692         * tests/test-printf-frexpl.c: New file.
23693
23694         * modules/printf-frexpl: New file.
23695         * lib/printf-frexpl.h: New file.
23696         * lib/printf-frexpl.c: New file.
23697         * m4/printf-frexpl.m4: New file.
23698
23699 2007-02-25  Bruno Haible  <bruno@clisp.org>
23700
23701         * modules/printf-frexp-tests: New file.
23702         * tests/test-printf-frexp.c: New file.
23703
23704         * modules/printf-frexp: New file.
23705         * lib/printf-frexp.h: New file.
23706         * lib/printf-frexp.c: New file.
23707         * m4/printf-frexp.m4: New file.
23708
23709 2007-02-25  Bruno Haible  <bruno@clisp.org>
23710
23711         Assume automake >= 1.10 for the tests.
23712         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23713         * modules/arctwo-tests: Likewise.
23714         * modules/argp-tests: Likewise.
23715         * modules/avltree-list-tests: Likewise.
23716         * modules/avltree-oset-tests: Likewise.
23717         * modules/avltreehash-list-tests: Likewise.
23718         * modules/carray-list-tests: Likewise.
23719         * modules/crc-tests: Likewise.
23720         * modules/des-tests: Likewise.
23721         * modules/gc-arcfour-tests: Likewise.
23722         * modules/gc-arctwo-tests: Likewise.
23723         * modules/gc-des-tests: Likewise.
23724         * modules/gc-hmac-md5-tests: Likewise.
23725         * modules/gc-hmac-sha1-tests: Likewise.
23726         * modules/gc-md2-tests: Likewise.
23727         * modules/gc-md4-tests: Likewise.
23728         * modules/gc-md5-tests: Likewise.
23729         * modules/gc-pbkdf2-sha1-tests: Likewise.
23730         * modules/gc-rijndael-tests: Likewise.
23731         * modules/gc-sha1-tests: Likewise.
23732         * modules/gc-tests: Likewise.
23733         * modules/getaddrinfo-tests: Likewise.
23734         * modules/hmac-md5-tests: Likewise.
23735         * modules/hmac-sha1-tests: Likewise.
23736         * modules/linked-list-tests: Likewise.
23737         * modules/linkedhash-list-tests: Likewise.
23738         * modules/lock-tests: Likewise.
23739         * modules/md2-tests: Likewise.
23740         * modules/md4-tests: Likewise.
23741         * modules/md5-tests: Likewise.
23742         * modules/rbtree-list-tests: Likewise.
23743         * modules/rbtree-oset-tests: Likewise.
23744         * modules/rbtreehash-list-tests: Likewise.
23745         * modules/read-file-tests: Likewise.
23746         * modules/rijndael-tests: Likewise.
23747         * modules/stdint-tests: Likewise.
23748         * modules/tls-tests: Likewise.
23749
23750 2007-02-24  Bruno Haible  <bruno@clisp.org>
23751
23752         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23753         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23754         function; instead check whether isnan with a double argument links.
23755         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23756         function; instead check whether isnan with a 'long double' argument
23757         links.
23758         Reported by Eric Blake <ebb9@byu.net>.
23759
23760 2007-02-24  Bruno Haible  <bruno@clisp.org>
23761
23762         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23763         defined.
23764         * lib/isnanl.c: Remove all code. Just include isnan.c.
23765         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23766
23767 2007-02-25  Jim Meyering  <jim@meyering.net>
23768
23769         Avoid conflicting types for 'unsetenv' on FreeBSD.
23770         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23771         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23772         in stdlib.h.
23773
23774 2007-02-24  Bruno Haible  <bruno@clisp.org>
23775
23776         * modules/isnanl-nolibm-tests: New file.
23777         * tests/test-isnanl.c: New file.
23778
23779         * modules/isnanl-nolibm: New file.
23780         * lib/isnanl.h: New file.
23781         * lib/isnanl.c: New file.
23782         * m4/isnanl.m4: New file.
23783
23784 2007-02-24  Bruno Haible  <bruno@clisp.org>
23785
23786         * modules/isnan-nolibm-tests: New file.
23787         * tests/test-isnan.c: New file.
23788
23789         * modules/isnan-nolibm: New file.
23790         * lib/isnan.h: New file.
23791         * lib/isnan.c: New file.
23792         * m4/isnan.m4: New file.
23793
23794 2007-02-24  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23797         assume that an exponent fits in 20 bits.
23798
23799 2007-02-24  Jim Meyering  <jim@meyering.net>
23800
23801         * m4/regex.m4: Update the description of the configure-time option,
23802         --without-included-regex, to state accurately what the defaults are,
23803         and perhaps to give people an idea why using this option is risky.
23804
23805 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23806
23807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23808         loops on small arguments.  This attempts to avoid the problem
23809         Bruno Haible reported for AIX 4.3.2 in
23810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23811
23812 2007-02-23  Bruno Haible  <bruno@clisp.org>
23813
23814         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23815         Needed for help2man.
23816
23817 2007-02-23  Karl Berry  <karl@gnu.org>
23818
23819         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23820         exists, foo.h should be cvs-ignored, not committed.
23821
23822 2007-02-23  Eric Blake  <ebb9@byu.net>
23823
23824         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23825         * lib/stat-time.h (includes): Likewise.
23826         * lib/utimecmp.c (includes): Likewise.
23827         * lib/utimens.h (includes): Likewise.
23828         * lib/getdate.y (includes): Also include "timespec.h" for use
23829         internal to the module.
23830         * modules/utimens (Depends-on): Revert yesterday's patch.
23831         * modules/nanosleep (Depends-on): Add missing dependency.
23832
23833 2007-02-22  Bruno Haible  <bruno@clisp.org>
23834
23835         * lib/glob.c: Don't include getlogin_r.h.
23836
23837 2007-02-22  Jim Meyering  <jim@meyering.net>
23838
23839         * modules/utimens (Depends-on): Add timespec, required for
23840         utimens.h's inclusion of timespec.h.
23841
23842 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23843
23844         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23845         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23846         Schwab in
23847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23848         I'll try to think of a better way to fix the Solaris problem.
23849
23850         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23851         like glibc; on Solaris 10, it fails with errno == EINVAL.
23852         POSIX says the behavior is unspecified if the first argument is NULL,
23853         so play it safe and never pass NULL to the system getcwd.
23854
23855 2007-02-21  Jim Meyering  <jim@meyering.net>
23856
23857         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23858         of gettimeofday.  It would conflict with the one now always
23859         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23860         an IRIX 6.5 build failure.
23861
23862 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23863
23864         Minor fixups to port to Solaris 10 with Sun C 5.8.
23865         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23866         * modules/getcwd (Depends-on): Add dirfd.
23867         * lib/putenv.c (putenv): #undef it.
23868         (rpl_putenv): New decl.
23869         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23870
23871 2007-02-20  Bruno Haible  <bruno@clisp.org>
23872
23873         * modules/stdio-tests: New file.
23874         * tests/test-stdio.c: New file.
23875
23876         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23877         (Depends-on): Add stdio.
23878         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23879         (Include): Use <stdio.h> instead of vsnprintf.h.
23880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23881         HAVE_DECL_VSNPRINTF.
23882         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23883
23884         * modules/snprintf (Files): Remove lib/snprintf.h.
23885         (Depends-on): Add stdio.
23886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23887         (Include): Use <stdio.h> instead of snprintf.h.
23888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23889         HAVE_DECL_SNPRINTF.
23890         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23891         * lib/getaddrinfo.c: Likewise.
23892
23893         * modules/stdio: New file.
23894         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23895         * lib/snprintf.h: Remove file.
23896         * lib/vsnprintf.h: Remove file.
23897         * lib/.cppi-disable: Remove snprintf.h.
23898         * m4/stdio_h.m4: New file.
23899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23900
23901 2007-02-20  Jim Meyering  <jim@meyering.net>
23902
23903         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23904         used by e.g., mingw.  From Bruno Haible.
23905
23906 2007-02-19  Bruno Haible  <bruno@clisp.org>
23907
23908         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23909         warnings.
23910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23911
23912 2007-02-19  Bruno Haible  <bruno@clisp.org>
23913
23914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23915         from mingw users.
23916
23917 2007-02-19  Bruno Haible  <bruno@clisp.org>
23918
23919         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23920         warnings.
23921         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23922
23923 2007-02-19  Jim Meyering  <jim@meyering.net>
23924
23925         Don't use FD after a successful "fdopendir (fd)".
23926         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23927         Reset it by calling dirfd on the just-obtained DIR*.
23928
23929         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23930         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23931
23932 2007-02-18  Bruno Haible  <bruno@clisp.org>
23933
23934         * lib/readlink.c: Include <unistd.h>.
23935         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23936         HAVE_READLINK.
23937         * modules/readlink (Depends-on): Add unistd.
23938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23939         (Include): Add <unistd.h>.
23940
23941         * lib/getlogin_r.h: Remove file.
23942         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23944         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23945         HAVE_DECL_GETLOGIN_R.
23946         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23948         (Include): Use <unistd.h> instead of getlogin_r.h.
23949
23950         * lib/getcwd.h: Remove file.
23951         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23952         * lib/xgetcwd.c: Likewise.
23953         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23954         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23955         * modules/getcwd (Files): Remove lib/getcwd.h.
23956         (Depends-on): Add unistd.
23957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23958         (Include): Use <unistd.h> instad of getcwd.h.
23959
23960         * lib/ftruncate.c: Include <unistd.h> first.
23961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23962         Set HAVE_FTRUNCATE.
23963         * modules/ftruncate (Depends-on): Add unistd.
23964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23965
23966         * lib/fchdir.c: Include <unistd.h> first.
23967         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23969         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23970         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23971         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23972
23973         * lib/dup2.c: Include <unistd.h> first.
23974         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23975         HAVE_DUP2.
23976         * modules/dup2 (Depends-on): Add unistd.
23977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23978
23979         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23980         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23981         REPLACE_CHOWN. Don't define chown as a macro here.
23982         * modules/chown (Depends-on): Add unistd.
23983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23984
23985         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23986         Add definition for GL_LINK_WARNING.
23987         (chown, dup2): New declarations.
23988         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23989         link warning.
23990         (ftruncate): New declaration.
23991         (getcwd): New declaration, taken from old getcwd.h.
23992         (getlogin_r): New declaration, taken from old getlogin_r.h.
23993         (readlink): New declaration.
23994         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23995         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23996         (gl_PREREQ_UNISTD): Remove macro.
23997         (gl_UNISTD_MODULE_INDICATOR): New macro.
23998         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23999         many new variables. Don't set UNISTD_H.
24000         * modules/unistd (Description): Change.
24001         (Depends-on): Add link-warning.
24002         (configure.ac): Update.
24003         (Makefile.am): Create unistd.h always. Substitute many new variables
24004         into it.
24005
24006 2007-02-18  Bruno Haible  <bruno@clisp.org>
24007
24008         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
24009         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
24010         HAVE_GETSUBOPT.
24011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
24012         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
24013         * lib/getsubopt.h: Remove file.
24014         * modules/getsubopt (Files): Remove lib/getsubopt.h.
24015         (Depends-on): Add stdlib.
24016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24017         (Includes): Use <stdlib.h> instead of getsubopt.h.
24018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
24019         Set HAVE_GETSUBOPT.
24020         * lib/getsubopt.c: Don't include getsubopt.h.
24021
24022 2007-02-18  Bruno Haible  <bruno@clisp.org>
24023
24024         * modules/fchdir (Depends-on): Add dup2.
24025
24026 2007-02-18  Bruno Haible  <bruno@clisp.org>
24027
24028         * lib/stdlib_.h: Handle glibc's special invocation convention
24029         specially.
24030
24031 2007-02-18  Bruno Haible  <bruno@clisp.org>
24032
24033         * modules/stdlib-tests: New file.
24034         * tests/test-stdlib.c: New file.
24035
24036         * modules/mkstemp (Files): Remove lib/mkstemp.h.
24037         (Depends-on): Add stdlib.
24038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24039         (Includes): Use <stdlib.h> instead of mkstemp.h.
24040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24041         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
24042         * lib/mkstemp.c: Don't include mkstemp.h.
24043         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
24044         * lib/stdlib--.h: Don't include mkstemp.h.
24045
24046         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
24047         (Depends-on): Add stdlib.
24048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24049         (Includes): Use <stdlib.h> instead of mkdtemp.h.
24050         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24051         HAVE_MKDTEMP.
24052         * lib/mkdtemp.c: Don't include mkdtemp.h.
24053         * lib/clean-temp.c: Don't include mkdtemp.h.
24054
24055         * modules/exit (Files): Remove lib/exit.h.
24056         (Depends-on): Add stdlib.
24057         (Makefile.am): Remove lib_SOURCES.
24058         (Include): Use <stdlib.h> instead of exit.h.
24059         * lib/argmatch.c: Don't include exit.h.
24060         * lib/execute.c: Likewise.
24061         * lib/pagealign_alloc.c: Likewise.
24062         * lib/pipe.c: Likewise.
24063         * lib/wait-process.c: Likewise.
24064         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
24065         * lib/exitfail.c: Likewise.
24066         * lib/savewd.c: Likewise.
24067         * lib/xsetenv.c: Likewise.
24068
24069         * modules/stdlib: New file.
24070         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
24071         and extra comments about mkstemp().
24072         * lib/exit.h: Remove file.
24073         * lib/mkdtemp.h: Remove file.
24074         * lib/mkstemp.h: Remove file.
24075         * m4/stdlib_h.m4: New file.
24076         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
24077
24078 2007-02-18  Bruno Haible  <bruno@clisp.org>
24079
24080         * modules/math-tests: New file.
24081         * tests/test-math.c: New file.
24082
24083         * modules/math: New file.
24084         * modules/mathl (Files): Remove lib/mathl.h.
24085         (Depends-on): Add math.
24086         (Makefile.am): Don't mention mathl.h.
24087         (Include): Use <math.h> instead of mathl.h.
24088         * lib/math_.h: New file.
24089         * lib/mathl.h: Remove file.
24090         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
24091         mathl.h.
24092         * lib/asinl.c: Likewise.
24093         * lib/atanl.c: Likewise.
24094         * lib/ceill.c: Likewise.
24095         * lib/cosl.c: Likewise.
24096         * lib/expl.c: Likewise.
24097         * lib/floorl.c: Likewise.
24098         * lib/frexpl.c: Likewise.
24099         * lib/ldexpl.c: Likewise.
24100         * lib/logl.c: Likewise.
24101         * lib/sincosl.c: Likewise.
24102         * lib/sinl.c: Likewise.
24103         * lib/sqrtl.c: Likewise.
24104         * lib/tanl.c: Likewise.
24105         * lib/trigl.c: Likewise.
24106         * m4/math_h.m4: New file.
24107         * MODULES.html.sh (Mathematics): Add math.
24108
24109 2007-02-17  Bruno Haible  <bruno@clisp.org>
24110
24111         * modules/wctype-tests: New file.
24112         * tests/test-wctype.c: New file.
24113
24114         * modules/wchar-tests: New file.
24115         * tests/test-wchar.c: New file.
24116
24117         * modules/unistd-tests: New file.
24118         * tests/test-unistd.c: New file.
24119
24120         * modules/time-tests: New file.
24121         * tests/test-time.c: New file.
24122
24123         * modules/sysexits-tests: New file.
24124         * tests/test-sysexits.c: New file.
24125
24126         * modules/sys_time-tests: New file.
24127         * tests/test-sys_time.c: New file.
24128
24129         * modules/sys_stat-tests: New file.
24130         * tests/test-sys_stat.c: New file.
24131
24132         * modules/sys_socket-tests: New file.
24133         * tests/test-sys_socket.c: New file.
24134
24135         * modules/sys_select-tests: New file.
24136         * tests/test-sys_select.c: New file.
24137
24138         * modules/string-tests: New file.
24139         * tests/test-string.c: New file.
24140
24141         * modules/stdbool-tests: New file.
24142         * tests/test-stdbool.c: New file.
24143
24144         * modules/netinet_in-tests: New file.
24145         * tests/test-netinet_in.c: New file.
24146
24147         * modules/inttypes-tests: New file.
24148         * tests/test-inttypes.c: New file.
24149
24150         * modules/fcntl-tests: New file.
24151         * tests/test-fcntl.c: New file.
24152
24153         * modules/byteswap-tests: New file.
24154         * tests/test-byteswap.c: New file.
24155
24156         * modules/arpa_inet-tests: New file.
24157         * tests/test-arpa_inet.c: New file.
24158
24159 2007-02-17  Bruno Haible  <bruno@clisp.org>
24160
24161         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
24162         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
24163         if the corresponding module is not enabled. Emit link warnings if
24164         the function is used nevertheless.
24165         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
24166         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
24167         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
24168         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
24169         * modules/inttypes (Depends-on): Add link-warning.
24170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24171         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
24172         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
24173         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
24174         * modules/imaxdiv (configure.ac): Likewise.
24175         * modules/strtoimax (configure.ac): Likewise.
24176         * modules/strtoumax (configure.ac): Likewise.
24177
24178 2007-02-17  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
24181         gl_STRING_MODULE_INDICATOR_DEFAULTS.
24182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
24183         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
24184
24185 2007-02-17  Bruno Haible  <bruno@clisp.org>
24186
24187         * modules/link-warning: New file.
24188         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
24189         * lib/string_.h (GL_LINK_WARNING): Remove definition.
24190         * modules/string (Depends-on): Add link-warning.
24191         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24192         string.h.
24193         * MODULES.html.sh (Support for building libraries and executables): Add
24194         link-warning.
24195
24196 2007-02-17  Bruno Haible  <bruno@clisp.org>
24197
24198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
24199         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
24200         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
24201         long lines.
24202
24203 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
24204             Bruno Haible  <bruno@clisp.org>
24205
24206         * modules/tmpfile: New file.
24207         * lib/tmpfile.c: New file.
24208         * m4/tmpfile.m4: New file.
24209         * MODULES.html.sh (func_all_modules): New section "Input/output".
24210
24211 2007-02-15  Bruno Haible  <bruno@clisp.org>
24212
24213         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
24214         (supports_delete_on_close): New function.
24215         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
24216
24217 2007-02-14  Bruno Haible  <bruno@clisp.org>
24218
24219         * modules/mbspcasecmp-tests: New file.
24220         * tests/test-mbspcasecmp.sh: New file.
24221         * tests/test-mbspcasecmp.c: New file.
24222
24223         New module mbspcasecmp.
24224         * modules/mbspcasecmp: New file.
24225         * lib/mbspcasecmp.c: New file.
24226         * lib/string_.h (strncasecmp): Change warning message.
24227         (mbspcasecmp): New declaration.
24228         * m4/mbspcasecmp.m4: New file.
24229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24230         GNULIB_MBSPCASECMP.
24231         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
24232         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
24233
24234 2007-02-14  Bruno Haible  <bruno@clisp.org>
24235
24236         * modules/mbsncasecmp-tests: New file.
24237         * tests/test-mbsncasecmp.sh: New file.
24238         * tests/test-mbsncasecmp.c: New file.
24239
24240         New module mbsncasecmp.
24241         * modules/mbsncasecmp: New file.
24242         * lib/mbsncasecmp.c: New file.
24243         * lib/string_.h (mbsncasecmp): New declaration.
24244         * m4/mbsncasecmp.m4: New file.
24245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24246         GNULIB_MBSNCASECMP.
24247         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
24248         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
24249
24250 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
24253         Verify that it doesn't overlap with our flags.
24254         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
24255         do not have the desired effect in multibyte locales; instead, use
24256         mbscasecmp.
24257         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
24258         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
24259         we don't require GNU fnmatch ourselves (if our users require it, they
24260         should do so explicitly).
24261
24262         Fix regex code so it doesn't rely on strcasecmp.
24263         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
24264         Otherwise, include gnulib's langinfo.h.
24265         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
24266         undesirable behavior in non-C locales.  Instead, rely on localecharset.
24267         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
24268         * modules/regex (FILES): Remove m4/codeset.m4.
24269         (Depends-on): Add localcharset.  Remove strcase.
24270
24271 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24272
24273         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
24274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24275
24276 2007-02-13  Bruno Haible  <bruno@clisp.org>
24277
24278         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
24279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24280
24281 2007-02-12  Bruno Haible  <bruno@clisp.org>
24282
24283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
24285         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
24286         time warning rather than a link error.
24287
24288 2007-02-12  Bruno Haible  <bruno@clisp.org>
24289
24290         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
24291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24293
24294 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
24297         args, not 2.
24298
24299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24300
24301         New module 'time', so that apps can include <time.h> as per
24302         POSIX and GNU instead of separate include files like time_r.h
24303         and timegm.h.  This implementation tries out a simpler approach
24304         for replacing decls in standard include files (as compared to
24305         the string module), somewhat as an experiment.
24306
24307         * config/srclist.txt: Comment out mktime.c for now.
24308         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
24309         since it doesn't apply any more.  Use generic wording instead.
24310         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
24311         'time'.
24312         * lib/time_.h, m4/time_h.m4, modules/time: New files.
24313         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
24314         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
24315         Don't include <sys/types.h>; no longer needed since we assume C89.
24316         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
24317         * lib/strftime.c: Likewise.
24318         * lib/time_r.c: Likewise.
24319         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
24320         * lib/nanosleep.c: Include <time.h> first, to check interface.
24321         * lib/strptime.c: Likewise.
24322         * lib/time_r.c: Likewise.
24323         * lib/timegm.c: Likewise.
24324         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
24325         needed.
24326         * lib/timegm.c: Don't include timegm.h; no longer needed.
24327         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
24328         time.h now handles any problems in that area.
24329         (struct timespec, nanosleep): Remove; time.h now arranges for these.
24330         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
24331         that time.h defines struct timespec.
24332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
24333         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
24334         handles that.
24335         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
24336         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
24337         needed.  Set REPLACE_LOCALTIME.
24338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
24339         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
24340         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
24341         nanosleep; time_h.m4 now does that.  Don't require
24342         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
24343         module handles this now.
24344         * modules/getdate (Depends-on): Remove timespec.  Add time.
24345         * modules/nanosleep (Depends-on): Likewise.
24346         * modules/stat-time (Depends-on): Likewise.
24347         * modules/nanosleep (Include): Include time.h, not timespec.h.
24348         * modules/strptime (Files): Remove lib/strptime.h.
24349         (Depends-on): Add extensions, time.
24350         (Include): Include time.h, not strptime.h.
24351         * modules/time_r (Files): Remove lib/time_r.h.
24352         (Depends-on): Add time.
24353         (Include): Include time.h, not time_r.h.
24354         * modules/timegm: Likewise.
24355         * modules/timespec (Description): Now does timespec-related decls
24356         of our own, instead of struct timespec itself.
24357         (Depends-on): Add time; remove extensions.
24358         (Maintainer): Add self.
24359         * modules/utimecmp (Depends-on): Add time; remove timespec.
24360         * modules/utimens (Depends-on): Likewise.
24361         * modules/xnanosleep (Depends-on): Likewise.
24362
24363 2007-02-11  Bruno Haible  <bruno@clisp.org>
24364
24365         * lib/c-strstr.c: Include allocsa.h.
24366         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24367         * lib/c-strcasestr.c: Include allocsa.h.
24368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24369         * lib/strcasestr.c: Include allocsa.h.
24370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24371         * lib/mbsstr.c: Include allocsa.h.
24372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24373         allocsa/freesa instead of malloc/free.
24374         * lib/mbscasestr.c: Include allocsa.h.
24375         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24376         allocsa/freesa instead of malloc/free.
24377         * modules/c-strstr (Depends-on): Add allocsa.
24378         * modules/c-strcasestr (Depends-on): Likewise.
24379         * modules/strcasestr (Depends-on): Likewise.
24380         * modules/mbsstr (Depends-on): Likewise.
24381         * modules/mbscasestr (Depends-on): Likewise.
24382
24383 2007-02-11  Bruno Haible  <bruno@clisp.org>
24384
24385         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
24386
24387         * modules/mbsspn-tests: New file.
24388         * tests/test-mbsspn.sh: New file.
24389         * tests/test-mbsspn.c: New file.
24390
24391 2007-02-11  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
24394
24395         * modules/mbspbrk-tests: New file.
24396         * tests/test-mbspbrk.sh: New file.
24397         * tests/test-mbspbrk.c: New file.
24398
24399 2007-02-11  Bruno Haible  <bruno@clisp.org>
24400
24401         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
24402         unneeded cast.
24403
24404         * modules/mbscspn-tests: New file.
24405         * tests/test-mbscspn.sh: New file.
24406         * tests/test-mbscspn.c: New file.
24407
24408 2007-02-11  Bruno Haible  <bruno@clisp.org>
24409
24410         * modules/mbscasecmp-tests: New file.
24411         * tests/test-mbscasecmp.sh: New file.
24412         * tests/test-mbscasecmp.c: New file.
24413
24414 2007-02-11  Bruno Haible  <bruno@clisp.org>
24415
24416         Ensure O(n) worst-case complexity of mbscasestr.
24417         * lib/mbscasestr.c: Include stdbool.h.
24418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24419         functions.
24420         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
24421         the bookkeeping indicates that it's worth it.
24422         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
24423
24424         * modules/mbscasestr-tests: New file.
24425         * tests/test-mbscasestr1.c: New file.
24426         * tests/test-mbscasestr2.sh: New file.
24427         * tests/test-mbscasestr2.c: New file.
24428         * tests/test-mbscasestr3.sh: New file.
24429         * tests/test-mbscasestr3.c: New file.
24430         * tests/test-mbscasestr4.sh: New file.
24431         * tests/test-mbscasestr4.c: New file.
24432         * m4/locale-tr.m4: New file.
24433
24434 2007-02-11  Bruno Haible  <bruno@clisp.org>
24435
24436         Ensure O(n) worst-case complexity of mbsstr.
24437         * lib/mbsstr.c: Include stdbool.h.
24438         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24439         functions.
24440         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
24441         bookkeeping indicates that it's worth it.
24442         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
24443
24444         * modules/mbsstr-tests: New file.
24445         * tests/test-mbsstr1.c: New file.
24446         * tests/test-mbsstr2.sh: New file.
24447         * tests/test-mbsstr2.c: New file.
24448         * tests/test-mbsstr3.sh: New file.
24449         * tests/test-mbsstr3.c: New file.
24450         * m4/locale-fr.m4: New file.
24451
24452 2007-02-11  Bruno Haible  <bruno@clisp.org>
24453
24454         * lib/mbsrchr.c (mbsrchr): Fix bug.
24455
24456         * modules/mbsrchr-tests: New file.
24457         * tests/test-mbsrchr.sh: New file.
24458         * tests/test-mbsrchr.c: New file.
24459
24460 2007-02-11  Bruno Haible  <bruno@clisp.org>
24461
24462         * lib/mbschr.c (mbschr): Fix bug.
24463
24464         * modules/mbschr-tests: New file.
24465         * tests/test-mbschr.sh: New file.
24466         * tests/test-mbschr.c: New file.
24467         * m4/locale-zh.m4: New file.
24468
24469 2007-02-11  Bruno Haible  <bruno@clisp.org>
24470
24471         Support for copying multibyte string iterators.
24472         * lib/mbiter.h: Include <string.h>.
24473         (mbiter_multi_copy): New function.
24474         (mbi_copy): New macro.
24475         * lib/mbuiter.h: Include <string.h>.
24476         (mbuiter_multi_copy): New function.
24477         (mbui_copy): New macro.
24478
24479 2007-02-11  Bruno Haible  <bruno@clisp.org>
24480
24481         New module mbslen.
24482         * modules/mbslen: New file.
24483         * lib/mbslen.c: New file.
24484         * lib/string_.h (mbslen): New declaration.
24485         * m4/mbslen.m4: New file.
24486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24487         GNULIB_MBSLEN.
24488         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
24489         * MODULES.html.sh (Internationalization functions): Add mbslen.
24490
24491 2007-02-11  Bruno Haible  <bruno@clisp.org>
24492
24493         Ensure O(n) worst-case complexity of strcasestr substitute.
24494         * lib/strcasestr.c: Include stdbool.h.
24495         (knuth_morris_pratt): New function.
24496         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24497         bookkeeping indicates that it's worth it.
24498         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
24499
24500         * modules/strcasestr-tests: New file.
24501         * tests/test-strcasestr.c: New file.
24502
24503 2007-02-11  Bruno Haible  <bruno@clisp.org>
24504
24505         Ensure O(n) worst-case complexity of c_strcasestr.
24506         * lib/c-strcasestr.c: Include stdbool.h, string.h.
24507         (knuth_morris_pratt): New function.
24508         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
24509         the bookkeeping indicates that it's worth it.
24510         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
24511
24512         * modules/c-strcasestr-tests: New file.
24513         * tests/test-c-strcasestr.c: New file.
24514
24515 2007-02-11  Bruno Haible  <bruno@clisp.org>
24516
24517         Ensure O(n) worst-case complexity of c_strstr.
24518         * lib/c-strstr.c: Include stdbool.h, string.h.
24519         (knuth_morris_pratt): New function.
24520         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24521         bookkeeping indicates that it's worth it.
24522         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
24523
24524         * lib/c-strstr.c: Complete rewrite for maintainability.
24525
24526         * modules/c-strstr-tests: New file.
24527         * tests/test-c-strstr.c: New file.
24528
24529 2007-02-11  Bruno Haible  <bruno@clisp.org>
24530
24531         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
24532         5.2.1 and earlier, whereby \055 was treated just like the range
24533         delimiter '-'.
24534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24535
24536 2007-02-08  Bruno Haible  <bruno@clisp.org>
24537
24538         * modules/regex (Depends-on): Add stdbool.
24539         Reported by Dalibor Topic <robilad@kaffe.org>.
24540
24541 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24542
24543         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
24544         Prefer returning from main to exiting from it.
24545         Remove unnecessary parens after sizeof.
24546
24547 2007-02-05  Bruno Haible  <bruno@clisp.org>
24548
24549         New module mbssep.
24550         * modules/mbssep: New file.
24551         * lib/mbssep.c: New file.
24552         * lib/string_.h (strsep): Add a conditional link warning.
24553         (mbssep): New declaration.
24554         * m4/mbssep.m4: New file.
24555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24556         GNULIB_MBSSEP.
24557         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24558         * MODULES.html.sh (Internationalization functions): Add mbssep.
24559
24560 2007-02-05  Bruno Haible  <bruno@clisp.org>
24561
24562         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24563         Optimize search in case of 1 delimiter.
24564
24565 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24566
24567         * lib/acl.h: Include sys/types.h before sys/acl.h.
24568
24569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24570
24571         Merge upstream fix for glibc bugzilla #3957:
24572
24573         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
24574
24575         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24576         bit for RE_HAT_LISTS_NOT_NEWLINE.
24577         (build_charclass_op): Remove bogus comment.
24578
24579 2007-02-05  Simon Josefsson  <simon@josefsson.org>
24580
24581         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24582
24583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24586         * lib/memmem.c [!defined _LIBC]: Include config.h.
24587
24588 2007-02-04  Bruno Haible  <bruno@clisp.org>
24589
24590         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24591         warning message.
24592
24593 2007-02-04  Bruno Haible  <bruno@clisp.org>
24594
24595         New module mbstok_r.
24596         * modules/mbstok_r: New file.
24597         * lib/mbstok_r.c: New file.
24598         * lib/string_.h (strtok_r): Change argument names to match the
24599         comments. Add a conditional link warning.
24600         (mbstok_r): New declaration.
24601         * m4/mbstok_r.m4: New file.
24602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24603         GNULIB_MBSTOK_R.
24604         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24605         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24606
24607 2007-02-04  Bruno Haible  <bruno@clisp.org>
24608
24609         New module mbsspn.
24610         * modules/mbsspn: New file.
24611         * lib/mbsspn.c: New file.
24612         * lib/string_.h (strspn): Add a conditional link warning.
24613         (mbsspn): New declaration.
24614         * m4/mbsspn.m4: New file.
24615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24616         GNULIB_MBSSPN.
24617         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24618         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24619
24620 2007-02-04  Bruno Haible  <bruno@clisp.org>
24621
24622         New module mbspbrk.
24623         * modules/mbspbrk: New file.
24624         * lib/mbspbrk.c: New file.
24625         * lib/string_.h (strpbrk): Add a conditional link warning.
24626         (mbspbrk): New declaration.
24627         * m4/mbspbrk.m4: New file.
24628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24629         GNULIB_MBSPBRK.
24630         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24631         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24632
24633 2007-02-04  Bruno Haible  <bruno@clisp.org>
24634
24635         New module mbscspn.
24636         * modules/mbscspn: New file.
24637         * lib/mbscspn.c: New file.
24638         * lib/string_.h (strcspn): Add a conditional link warning.
24639         (mbscspn): New declaration.
24640         * m4/mbscspn.m4: New file.
24641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24642         GNULIB_MBSCSPN.
24643         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24644         * MODULES.html.sh (Internationalization functions): Add mbscspn.
24645
24646 2007-02-04  Bruno Haible  <bruno@clisp.org>
24647
24648         New module mbscasestr, reduced goal of strcasestr.
24649         * modules/mbscasestr: New file.
24650         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24651         (mbscasestr): Renamed from strcasestr.
24652         * lib/strcasestr.c: Don't include mbuiter.h.
24653         (strcasestr): Remove support for multibyte locales.
24654         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24655         Change the conditional link warning.
24656         (mbscasestr): New declaration.
24657         * m4/mbscasestr.m4: New file.
24658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24659         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24660         REPLACE_STRCASESTR.
24661         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24663         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24665         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24666         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24667         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24668         (Depends-on): Remove mbuiter.
24669         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24670
24671 2007-02-04  Bruno Haible  <bruno@clisp.org>
24672
24673         Simplify handling of strncasecmp.
24674         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24675         the conditional link warning.
24676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24677         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24679         * modules/strcase (configure.ac): Don't invoke
24680         gl_STRING_MODULE_INDICATOR.
24681         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24682
24683 2007-02-04  Bruno Haible  <bruno@clisp.org>
24684
24685         New module mbscasecmp, reduced goal of strcasecmp.
24686         * modules/mbscasecmp: New file.
24687         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24688         (mbscasecmp): Renamed from strcasecmp.
24689         * lib/strcasecmp.c: Don't include mbuiter.h.
24690         (strcasecmp): Remove support for multibyte locales.
24691         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24692         Change the conditional link warning.
24693         (mbscasecmp): New declaration.
24694         * m4/mbscasecmp.m4: New file.
24695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24696         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24697         REPLACE_STRCASECMP.
24698         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24700         GNULIB_MBSCASECMP.
24701         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24702         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24703         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24704         (Depends-on): Remove mbuiter.
24705         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24706
24707 2007-02-04  Bruno Haible  <bruno@clisp.org>
24708
24709         New module mbsstr. Remove module strstr.
24710         * modules/mbsstr: New file.
24711         * modules/strstr: Remove file.
24712         * lib/mbsstr.c: Renamed from lib/strstr.c.
24713         (mbsstr): Renamed from strstr.
24714         * lib/string_.h (strstr): Remove declaration. Change the conditional
24715         link warning.
24716         (mbsstr): New declaration.
24717         * m4/mbsstr.m4: New file.
24718         * m4/strstr.m4: Remove file.
24719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24720         REPLACE_STRSTR.
24721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24722         Don't initialize GNULIB_STRSTR.
24723         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24724         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24725         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24726         (Support for systems lacking ANSI C 89): Remove strstr.
24727
24728 2007-02-04  Bruno Haible  <bruno@clisp.org>
24729
24730         New module mbsrchr.
24731         * modules/mbsrchr: New file.
24732         * lib/mbsrchr.c: New file.
24733         * lib/string_.h (strrchr): Add a conditional link warning.
24734         (mbsrchr): New declaration.
24735         * m4/mbsrchr.m4: New file.
24736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24737         GNULIB_MBSRCHR.
24738         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24739         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24740
24741 2007-02-04  Bruno Haible  <bruno@clisp.org>
24742
24743         New module mbschr.
24744         * modules/mbschr: New file.
24745         * lib/mbschr.c: New file.
24746         * lib/string_.h (strchr): Add a conditional link warning.
24747         (mbschr): New declaration.
24748         * m4/mbschr.m4: New file.
24749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24750         GNULIB_MBSCHR.
24751         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24752         * MODULES.html.sh (Internationalization functions): Add mbschr.
24753
24754 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24755
24756         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24757
24758         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24759
24760 2007-02-04  Bruno Haible  <bruno@clisp.org>
24761
24762         New module description section 'configure.ac-early'.
24763         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24764         (func_get_autoconf_early_snippet): New function.
24765         (func_import, func_create_testdir): Use it. Remove special cases for
24766         modules 'extensions' and 'lock'.
24767         * modules/extensions (configure.ac-early): Require
24768         gl_USE_SYSTEM_EXTENSIONS.
24769         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24770
24771 2007-02-04  Bruno Haible  <bruno@clisp.org>
24772
24773         Make use of gcj-4.3's -fsource and -ftarget option.
24774         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24775         and if so try the options -fsource and -ftarget.
24776         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24777         source_version, ftarget_option, target_version arguments.
24778         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24779         (is_envjavac_oldgcj_14_14_usable): Renamed from
24780         is_envjavac_gcj_14_14_usable.
24781         (is_envjavac_oldgcj_14_13_usable): Renamed from
24782         is_envjavac_gcj_14_13_usable.
24783         (is_gcj_present): Update.
24784         (is_gcj_43, is_gcj43_usable): New functions.
24785         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24786         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24787         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24788         try the options -fsource and -ftarget.
24789
24790 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24793         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24794         larger value.
24795
24796 2007-02-03  Jim Meyering  <jim@meyering.net>
24797
24798         Give tools a better chance to allocate space for very large buffers.
24799         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24800
24801         Make pwd and readlink work also when run with an unreadable parent dir
24802         on systems with openat support.
24803         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24804         provided getcwd function, even when we have openat support.
24805         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24806
24807 2007-02-02  Bruno Haible  <bruno@clisp.org>
24808
24809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24811         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24812         portability problems if one of these functions is only used on specific
24813         platforms.
24814         Reported by Paul Eggert.
24815
24816 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24817
24818         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24819         is causing more trouble than it's curing.
24820         * lib/regex_internal.h (__mempcpy): Remove.
24821         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24822         (and make the code a tad smaller to boot).
24823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24824
24825 2007-02-02  Jim Meyering  <jim@meyering.net>
24826
24827         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24828         section, not in the Makefile.am: one.
24829
24830 2007-02-02  Eric Blake  <ebb9@byu.net>
24831
24832         * lib/strchrnul.c: Always include config.h first.
24833
24834         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24835         gnulib strstr is not necessary here.
24836
24837 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24838
24839         * m4/socklen.m4: Fix typo.
24840
24841 2007-02-02  Eric Blake  <ebb9@byu.net>
24842
24843         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24844         * modules/netinet_in (Makefile.am): Likewise.
24845
24846 2007-02-01  Bruno Haible  <bruno@clisp.org>
24847
24848         * lib/string_.h (GL_LINK_WARNING): New macro.
24849         (strcasecmp, strstr, strcasestr): If provided by the system,
24850         conditionally define as a macro that leads to a warning instead of to
24851         an error.
24852         (strncasecmp): Conditionally define as a macro that leads to a warning.
24853
24854 2007-02-01  Karl Berry  <karl@gnu.org>
24855
24856         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24857
24858 2007-02-01  Bruno Haible  <bruno@clisp.org>
24859
24860         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24861         renamings.
24862
24863 2007-02-01  Eric Blake  <ebb9@byu.net>
24864
24865         * modules/regex (Depends-on): Revert dependence on mempcpy.
24866         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24867         module's definition of mempcpy.
24868         Reported by Paul Eggert.
24869
24870 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24871
24872         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24873         the symbol XYZ before redefining it.  This fixes a problem with
24874         programs that don't use XYZ, when compiled on systems that define
24875         XYZ to something else.
24876
24877 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24878
24879         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24880         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24881         writeable to group or other and (2) is intended to have a special
24882         mode bit that is set or cleared.  In such a case, the directory
24883         should be neither group- nor other-writeable until the special
24884         mode bits are right.
24885
24886 2007-01-31  Eric Blake  <ebb9@byu.net>
24887
24888         * modules/mountlist (Depends-on): Add strstr.
24889
24890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24891         bug.
24892         * modules/string (Makefile.am): Remove redundant replacement.
24893         * modules/regex (Depends-on): Add mempcpy.
24894
24895 2007-01-31  Bruno Haible  <bruno@clisp.org>
24896
24897         New module description field 'Link'.
24898         * gnulib-tool (func_usage): Document --extract-link-directive.
24899         (sed_extract_prog): Recognize 'Link' directive.
24900         (func_get_link_directive): New function.
24901         (func_import): Show summary of link directives.
24902         Handle --extract-link-directive option.
24903         * modules/acl (Link): New section.
24904         * modules/clock-time (Link): New section.
24905         * modules/euidaccess (Link): New section.
24906         * modules/gettext (Link): New section.
24907         * modules/iconv (Link): New section.
24908         * modules/lock (Link): New section.
24909         * modules/nanosleep (Link): New section.
24910         * modules/readline (Link): New section.
24911
24912 2007-01-27  Bruno Haible  <bruno@clisp.org>
24913
24914         Enforce the use of gnulib modules for unportable <string.h> functions.
24915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24917         (gl_HEADER_STRING_H_BODY): Require it.
24918         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24919         the symbol XYZ to one that gives a link error.
24920         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24921         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24922         * modules/mempcpy (configure.ac): Likewise.
24923         * modules/memrchr (configure.ac): Likewise.
24924         * modules/stpcpy (configure.ac): Likewise.
24925         * modules/stpncpy (configure.ac): Likewise.
24926         * modules/strcase (configure.ac): Likewise.
24927         * modules/strcasestr (configure.ac): Likewise.
24928         * modules/strchrnul (configure.ac): Likewise.
24929         * modules/strdup (configure.ac): Likewise.
24930         * modules/strndup (configure.ac): Likewise.
24931         * modules/strnlen (configure.ac): Likewise.
24932         * modules/strpbrk (configure.ac): Likewise.
24933         * modules/strsep (configure.ac): Likewise.
24934         * modules/strstr (configure.ac): Likewise.
24935         * modules/strtok_r (configure.ac): Likewise.
24936
24937 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24938
24939         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24940
24941 2007-01-30  Jim Meyering  <jim@meyering.net>
24942
24943         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24944
24945 2007-01-29  Bruno Haible  <bruno@clisp.org>
24946
24947         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24948         * lib/execute.c: Likewise.
24949         * lib/pipe.c: Likewise.
24950         * lib/printf-args.h: Likewise.
24951         * lib/printf-args.c: Likewise.
24952         * lib/printf-parse.c: Likewise.
24953         * lib/vasnprintf.c: Likewise.
24954
24955 2007-01-29  Eric Blake  <ebb9@byu.net>
24956
24957         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24958         declaration.
24959
24960 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24961
24962         * lib/strptime.h (strptime): Use 'restrict' for args where
24963         POSIX requires this.
24964         * lib/strptime.c (strptime): Likewise.
24965         Change license notice from LGPL to GPL, since gnulib-tool will
24966         change this as needed.
24967         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24968         defined.
24969         Include "strptime.h" first, to check interface.
24970         Do not #undef _LIBC and _NL_CURRENT.
24971         Do not include <stdlib.h>; no longer needed.
24972         Include "time_r.h" and declare ptime_locale_status
24973         only if _LIBC is not defined.
24974         (__P): Remove unused macro.
24975         (match_string): Bring back glibc version, but use it only if _LIBC
24976         is defined.
24977         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24978         Remove unnecessary assertion and abort() call.
24979         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24980         * m4/strptime.m4: Fix serial number comment.
24981         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24982         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24983         (Depends-on): Add time_r.
24984
24985 2007-01-29  Bruno Haible  <bruno@clisp.org>
24986
24987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24988         strptime.
24989         * modules/strptime (Depends-on): Add stdbool.
24990         * lib/strptime.h: Include <time.h> always. Add comments.
24991
24992 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24993
24994         * modules/strptime: New file.
24995         * lib/strptime.h: New file.
24996         * lib/strptime.c: New file.
24997         * m4/strptime.m4: New file.
24998
24999 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25000
25001         * MODULES.html.sh: New module mpsort.
25002         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
25003
25004         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
25005         a circularity problem with HP-UX ia64 reported by Bob Proulx in
25006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
25007         All uses changed.
25008         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
25009         All uses changed.
25010         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
25011         to _Restrict_.
25012         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
25013         the parameter matches the prototype.
25014
25015 2007-01-28  Jim Meyering  <jim@meyering.net>
25016
25017         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
25018         sys/time.h here, reverting that part of the previous patch:
25019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
25020
25021 2007-01-28  Bruno Haible  <bruno@clisp.org>
25022
25023         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
25024         value of $(SYS_TIME_H).
25025         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
25026         remove it conditionally, too. [added by Jim Meyering]
25027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
25028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
25030         GETTIMEOFDAY_REPLACEMENT to 1.
25031
25032 2007-01-28  Bruno Haible  <bruno@clisp.org>
25033
25034         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
25035         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
25036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
25037         Set UNISTD_H instead of UNISTD_H2.
25038         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
25039
25040 2007-01-28  Bruno Haible  <bruno@clisp.org>
25041
25042         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
25043         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
25044
25045 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25046
25047         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
25048         (func_create_testdir): Ensure C locale for `grep' and `tr'
25049         character ranges.
25050         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
25051         ACLOCAL_AMFLAGS parsing state machine.
25052
25053 2007-01-27  Bruno Haible  <bruno@clisp.org>
25054
25055         * modules/unistr/base: Update.
25056
25057 2007-01-27  Bruno Haible  <bruno@clisp.org>
25058
25059         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
25060         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
25061         * modules/unistr/u32-mbtouc-unsafe: Renamed from
25062         modules/unistr/u32-mbtouc.
25063         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
25064         * lib/unistr.h: Update.
25065         * lib/linebreak.c: Update.
25066         * modules/unistr/u32-mbtouc: Renamed from
25067         modules/unistr/u32-mbtouc-safe.
25068         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
25069         * lib/unistr.h: Update.
25070         * lib/unistr/u32-to-u8.c: Update.
25071         * lib/unistr/u32-to-u16.c: Update.
25072
25073 2007-01-27  Bruno Haible  <bruno@clisp.org>
25074
25075         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
25076         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
25077         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
25078         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
25079         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
25080         * modules/unistr/u16-mbtouc-unsafe: Renamed from
25081         modules/unistr/u16-mbtouc.
25082         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
25083         * lib/unistr.h: Update.
25084         * lib/linebreak.c: Update.
25085         * modules/linebreak: Update.
25086         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
25087         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
25088         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
25089         * modules/unistr/u16-mbtouc: Renamed from
25090         modules/unistr/u16-mbtouc-safe.
25091         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
25092         * lib/unistr.h: Update.
25093         * lib/unistr/u16-to-u8.c: Update.
25094         * modules/unistr/u16-to-u8: Update.
25095         * lib/unistr/u16-to-u32.c: Update.
25096         * modules/unistr/u16-to-u32: Update.
25097
25098 2007-01-27  Bruno Haible  <bruno@clisp.org>
25099
25100         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
25101         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
25102         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
25103         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
25104         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
25105         * modules/unistr/u8-mbtouc-unsafe: Renamed from
25106         modules/unistr/u8-mbtouc.
25107         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
25108         * lib/unistr.h: Update.
25109         * lib/striconveh.c: Update.
25110         * modules/striconveh: Update.
25111         * lib/linebreak.c: Update.
25112         * modules/linebreak: Update.
25113         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
25114         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
25115         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
25116         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
25117         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
25118         * lib/unistr.h: Update.
25119         * lib/striconveh.c: Update.
25120         * modules/striconveh: Update.
25121         * lib/unistr/u8-to-u16.c: Update.
25122         * modules/unistr/u8-to-u16: Update.
25123         * lib/unistr/u8-to-u32.c: Update.
25124         * modules/unistr/u8-to-u32: Update.
25125
25126 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25127
25128         Sync from Libtool.
25129         * lib/argz.c: Do not include strings.h nor memory.h, include
25130         string.h unconditionally.  Patch by Simon Josefsson.
25131
25132 2007-01-27  Bruno Haible  <bruno@clisp.org>
25133
25134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
25135         from gl_HEADER_STRING_H_BODY.
25136         (gl_HEADER_STRING_H_BODY): Require it.
25137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
25138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
25143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25145         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
25146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25148         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
25149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25150         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25152
25153 2007-01-27  Bruno Haible  <bruno@clisp.org>
25154
25155         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
25156         check_PROGRAMS into noinst_PROGRAMS.
25157         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
25158         check_PROGRAMS in this case.
25159         (func_import): Set for_test to false.
25160         (func_create_testdir): Set for_test to true.
25161
25162 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25163             Bruno Haible  <bruno@clisp.org>
25164
25165         * modules/strcasestr (Files): Remove lib/strcasestr.h.
25166         (Depends-on): Add string.
25167         (Includes): Use <string.h> instead of strcasestr.h.
25168         * modules/string (Makefile.am): Also substitute the value of
25169         REPLACE_STRCASESTR.
25170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
25171         assume strcasestr is declared in <string.h> not <strings.h>. Also
25172         set REPLACE_STRCASESTR.
25173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
25174         REPLACE_STRCASESTR.
25175         * lib/strcasestr.h: Remove file.
25176         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
25177         * lib/string_.h (strcasestr): New declaration.
25178
25179 2007-01-27  Bruno Haible  <bruno@clisp.org>
25180
25181         * lib/string_.h: Use 'extern'.
25182
25183 2007-01-27  Jim Meyering  <jim@meyering.net>
25184
25185         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
25186         of set-but-not-used local, "q".
25187
25188         * lib/mempcpy.c: Include <config.h> before <string.h>.
25189         This fixes a compilation error on HP-UX, due to the system's
25190         "restrict"-using mempcpy prototype.
25191
25192 2007-01-26  Bruno Haible  <bruno@clisp.org>
25193
25194         Small optimization.
25195         * lib/javacomp.c: Include c-strstr.h.
25196          (is_envjavac_gcj): Use c_strstr instead of strstr.
25197         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
25198
25199 2007-01-26  Bruno Haible  <bruno@clisp.org>
25200
25201         * MODULES.html.sh (Unicode string functions): Add the new modules.
25202
25203         * modules/uniconv/u32-strconv-to-locale: New file.
25204         * lib/uniconv/u32-strconv-to-locale.c: New file.
25205
25206         * modules/uniconv/u16-strconv-to-locale: New file.
25207         * lib/uniconv/u16-strconv-to-locale.c: New file.
25208
25209         * modules/uniconv/u8-strconv-to-locale: New file.
25210         * lib/uniconv/u8-strconv-to-locale.c: New file.
25211
25212         * modules/uniconv/u32-strconv-from-locale: New file.
25213         * lib/uniconv/u32-strconv-from-locale.c: New file.
25214
25215         * modules/uniconv/u16-strconv-from-locale: New file.
25216         * lib/uniconv/u16-strconv-from-locale.c: New file.
25217
25218         * modules/uniconv/u8-strconv-from-locale: New file.
25219         * lib/uniconv/u8-strconv-from-locale.c: New file.
25220
25221         * modules/uniconv/u32-strconv-to-enc: New file.
25222         * lib/uniconv/u32-strconv-to-enc.c: New file.
25223         * modules/uniconv/u32-strconv-to-enc-tests: New file.
25224         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
25225
25226         * modules/uniconv/u16-strconv-to-enc: New file.
25227         * lib/uniconv/u16-strconv-to-enc.c: New file.
25228         * lib/uniconv/u-strconv-to-enc.h: New file.
25229         * modules/uniconv/u16-strconv-to-enc-tests: New file.
25230         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
25231
25232         * modules/uniconv/u8-strconv-to-enc: New file.
25233         * lib/uniconv/u8-strconv-to-enc.c: New file.
25234         * modules/uniconv/u8-strconv-to-enc-tests: New file.
25235         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
25236
25237         * modules/uniconv/u32-strconv-from-enc: New file.
25238         * lib/uniconv/u32-strconv-from-enc.c: New file.
25239         * modules/uniconv/u32-strconv-from-enc-tests: New file.
25240         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
25241
25242         * modules/uniconv/u16-strconv-from-enc: New file.
25243         * lib/uniconv/u16-strconv-from-enc.c: New file.
25244         * modules/uniconv/u16-strconv-from-enc-tests: New file.
25245         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
25246
25247         * modules/uniconv/u8-strconv-from-enc: New file.
25248         * lib/uniconv/u8-strconv-from-enc.c: New file.
25249         * lib/uniconv/u-strconv-from-enc.h: New file.
25250         * modules/uniconv/u8-strconv-from-enc-tests: New file.
25251         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
25252
25253         * modules/uniconv/u32-conv-from-enc: New file.
25254         * lib/uniconv/u32-conv-from-enc.c: New file.
25255         * modules/uniconv/u32-conv-from-enc-tests: New file.
25256         * tests/uniconv/test-u32-conv-from-enc.c: New file.
25257
25258         * modules/uniconv/u16-conv-from-enc: New file.
25259         * lib/uniconv/u16-conv-from-enc.c: New file.
25260         * lib/uniconv/u-conv-from-enc.h: New file.
25261         * modules/uniconv/u16-conv-from-enc-tests: New file.
25262         * tests/uniconv/test-u16-conv-from-enc.c: New file.
25263
25264         * modules/uniconv/u8-conv-from-enc: New file.
25265         * lib/uniconv/u8-conv-from-enc.c: New file.
25266         * modules/uniconv/u8-conv-from-enc-tests: New file.
25267         * tests/uniconv/test-u8-conv-from-enc.c: New file.
25268
25269         * modules/uniconv/base: New file.
25270         * lib/uniconv.h: New file.
25271
25272 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         * doc/gnulib-tool.texi (Initial import): Update to match current
25275         behavior with strdup module.
25276         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
25277         * lib/memmem.h: Remove; all uses removed.  This is now done
25278         by <string.h>.
25279         * lib/mempcpy.h: Likewise.
25280         * lib/memrchr.h: Likewise.
25281         * lib/stpcpy.h: Likewise.
25282         * lib/stpncpy.h: Likewise.
25283         * lib/strcase.h: Likewise.
25284         * lib/strchrnul.h: Likewise.
25285         * lib/strdup.h: Likewise.
25286         * lib/strndup.h: Likewise.
25287         * lib/strnlen.h: Likewise.
25288         * lib/strpbrk.h: Likewise.
25289         * lib/strsep.h: Likewise.
25290         * lib/strstr.h: Likewise.
25291         * lib/strtok_r.h: Likewise.
25292         * lib/string_.h: New file.
25293         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
25294         Rely on <string.h> instead.
25295         * lib/canon-host.c: Likewise.
25296         * lib/chdir-long.c: Likewise.
25297         * lib/concatpath.c: Likewise.
25298         * lib/exclude.c: Likewise.
25299         * lib/fchdir.c: Likewise.
25300         * lib/getaddrinfo.c: Likewise.
25301         * lib/getcwd.c: Likewise.
25302         * lib/getsubopt.c: Likewise.
25303         * lib/glob.c: Likewise.
25304         * lib/hard-locale.c: Likewise.
25305         * lib/iconvme.c: Likewise.
25306         * lib/javacomp.c: Likewise.
25307         * lib/mempcpy.c: Likewise.
25308         * lib/memrchr.c: Likewise.
25309         * lib/regex_internal.h: Likewise.
25310         * lib/stpncpy.c: Likewise.
25311         * lib/strcasecmp.c: Likewise.
25312         * lib/strchrnul.c: Likewise.
25313         * lib/strdup.c: Likewise.
25314         * lib/striconv.c: Likewise.
25315         * lib/striconveh.c: Likewise.
25316         * lib/striconveha.c: Likewise.
25317         * lib/strncasecmp.c: Likewise.
25318         * lib/strndup.c: Likewise.
25319         * lib/strnlen.c: Likewise.
25320         * lib/strsep.c: Likewise.
25321         * lib/strstr.c: Likewise.
25322         * lib/strtok_r.c: Likewise.
25323         * lib/userspec.c: Likewise.
25324         * lib/w32spawn.h: Likewise.
25325         * lib/xstrndup.c: Likewise.
25326         * lib/mountlist.c (strstr): Remove decl.
25327         * m4/string_h.m4: New file.
25328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
25329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
25330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
25331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
25332         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
25333         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
25334         Set REPLACE_STRCASECMP if necessary.
25335         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
25336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
25337         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
25338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
25339         HAVE_DECL_STRDUP if necessary.
25340         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
25341         since gl_FUNC_STRNDUP does that now.
25342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
25343         Check for decl here...
25344         (gl_PREREQ_STRNLEN): ... not here.
25345         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
25346         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
25347         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
25348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
25349         necessary.
25350         * modules/string: New file.
25351         * modules/memmem (Files): Remove special-purpose include file.
25352         (Depends-on): Add string.
25353         (Include): Include <string.h>, not the removed file.
25354         * modules/mempcpy: Likewise.
25355         * modules/memrchr: Likewise.
25356         * modules/stpcpy: Likewise.
25357         * modules/stpncpy: Likewise.
25358         * modules/strcase: Likewise.
25359         * modules/strchrnul: Likewise.
25360         * modules/strdup: Likewise.
25361         * modules/strndup: Likewise.
25362         * modules/strnlen: Likewise.
25363         * modules/strpbrk: Likewise.
25364         * modules/strsep: Likewise.
25365         * modules/strstr: Likewise.
25366         * modules/strtok_r: Likewise.
25367         * tests/test-dirname.c: Don't include "strdup.h", since
25368         <string.h> now suffices.
25369         * tests/test-memmem.c: Don't include "memmem.h", since
25370         <string.h> now suffices.
25371
25372 2007-01-25  Bruno Haible  <bruno@clisp.org>
25373
25374         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
25375         *resultp is 0.
25376
25377         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
25378         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
25379         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
25380         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
25381
25382         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
25383         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
25384         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
25385         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
25386         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
25387         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
25388
25389 2007-01-24  Bruno Haible  <bruno@clisp.org>
25390
25391         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
25392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
25393         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
25394         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
25395         gl_FUNC_FTS_CORE.
25396         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
25397         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
25398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25399         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
25400         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
25401         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
25402         gl_FUNC_FCHOWNAT.
25403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
25404         gl_FUNC_STRFTIME.
25405         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
25406         Reported by Ralf Wildenhues.
25407
25408 2007-01-24  Bruno Haible  <bruno@clisp.org>
25409
25410         Drop AC_REQUIRE calls that are redundant with the module dependencies.
25411         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
25412         gl_GETADDRINFO.
25413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
25414         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
25415         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
25416
25417 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25418
25419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
25420         Don't use 'exit'; just return from 'main'.
25421         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
25422
25423         * lib/fnmatch_.h: Readjust white space and comments to match
25424         glibc, to avoid spurious diffs.
25425
25426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25427
25428         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
25429         2004-12-01 change by Jakub Jelinek, since this code won't compile
25430         if !LIBC.  Problem reported by Bob Proulx.
25431
25432 2007-01-23  Bruno Haible  <bruno@clisp.org>
25433
25434         * lib/striconveh.c: Include c-strcaseeq.h.
25435         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
25436         * modules/striconveh (Depends-on): Add c-strcaseeq.
25437
25438 2007-01-23  Bruno Haible  <bruno@clisp.org>
25439
25440         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
25441
25442         * modules/c-strcaseeq: New file.
25443         * lib/c-strcaseeq.h: New file.
25444
25445         * modules/streq: New file.
25446         * lib/streq.h: New file.
25447
25448 2007-01-23  Bruno Haible  <bruno@clisp.org>
25449
25450         * modules/striconveha-tests: New file.
25451         * tests/test-striconveha.c: New file.
25452
25453         * lib/striconveha.h: Include <stdbool.h>.
25454         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
25455         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
25456         (mem_iconveha_notranslit): Renamed from mem_iconveha.
25457         (mem_iconveha): New function.
25458         (str_iconveha_notranslit): Renamed from str_iconveha.
25459         (str_iconveha): New function.
25460         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
25461         c-strcase.
25462
25463 2007-01-23  Bruno Haible  <bruno@clisp.org>
25464
25465         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
25466         encodings without forgiving before trying any encoding with handler.
25467         (str_iconveha): Try all encodings without forgiving before trying any
25468         encoding with handler.
25469
25470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25471
25472         Import the following changes from libc.
25473
25474         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25475
25476         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
25477
25478         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25479
25480         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
25481         normal_bracket label.
25482
25483         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
25484
25485         [BZ #361]
25486         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
25487         to normal_bracket after fetching the next character.
25488
25489 2007-01-22  Bruno Haible  <bruno@clisp.org>
25490
25491         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
25492         argument.
25493         * lib/striconveh.c (iconv_carefully_1): New function.
25494         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
25495         argument.
25496         (str_cd_iconveh): Update.
25497         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
25498         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
25499         * tests/test-striconveh.c (MAGIC): New macro.
25500         (new_offsets): New function.
25501         (main): Test call with and without offsets.
25502
25503 2007-01-22  Bruno Haible  <bruno@clisp.org>
25504
25505         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
25506         * modules/sys_select (Makefile.am): Likewise.
25507         * modules/sys_socket (Makefile.am): Likewise.
25508         * modules/sys_time (Makefile.am): Likewise.
25509
25510 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25511
25512         * modules/gettimeofday (License): Change from GPL to LGPL, since
25513         gettimeofday is a library function.
25514
25515 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25516
25517         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
25518
25519 2007-01-21  Bruno Haible  <bruno@clisp.org>
25520
25521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
25522
25523 2007-01-21  Bruno Haible  <bruno@clisp.org>
25524
25525         * modules/striconveha: New file.
25526         * lib/striconveha.h: New file.
25527         * lib/striconveha.c: New file.
25528         * MODULES.html.sh (Internationalization functions): Add striconveha.
25529         * lib/striconv.c (str_iconv): Optimize the case of an empty input
25530         string.
25531         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
25532
25533 2007-01-21  Bruno Haible  <bruno@clisp.org>
25534
25535         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
25536         * lib/striconveh.c (str_iconveh): Likewise.
25537
25538 2007-01-21  Bruno Haible  <bruno@clisp.org>
25539
25540         * lib/striconveh.h (mem_iconveh): New declaration.
25541         * lib/striconveh.c (mem_iconveh): New function.
25542         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
25543
25544 2007-01-21  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
25547
25548         * lib/striconveh.h (mem_cd_iconveh): Change specification.
25549         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
25550         original result buffer.
25551         (str_cd_iconveh): Update.
25552         * tests/test-striconveh.c (main): Update.
25553
25554         * lib/striconv.h (mem_cd_iconv): Change specification.
25555         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25556         result buffer.
25557         (str_cd_iconv): Update.
25558         * tests/test-striconv.c (main): Update.
25559
25560 2007-01-21  Bruno Haible  <bruno@clisp.org>
25561
25562         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25563
25564 2007-01-20  Jim Meyering  <jim@meyering.net>
25565
25566         * lib/userspec.c (parse_with_separator): If a user or group string
25567         starts with "+", skip the corresponding name-to-ID look-up, since
25568         such a look-up must fail: user and group names may not include "+".
25569
25570 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25571
25572         * lib/poll.c: Include sys/time.h and time.h unconditionally,
25573         since we now assume the sys_time module.
25574         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25575         check for sys/time.h; no longer needed.
25576         * modules/poll (Depends-on): Depend on sys_time.
25577
25578 2007-01-18  Bruno Haible  <bruno@clisp.org>
25579
25580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25582
25583         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25584         gettimeofday.
25585
25586         * tests/test-gettimeofday.c: Include <time.h>.
25587         (dummy): Remove variable.
25588
25589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25590         gl_HEADER_SYS_TIME_H.
25591         (gl_HEADER_SYS_TIME_H): New macro.
25592
25593         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25596         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25597         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25599         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25600         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25601         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25602         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25603         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25604
25605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25606         last change; it caused a compilation error when cross-compiling to
25607         Cygwin.
25608
25609 2007-01-18  Jim Meyering  <jim@meyering.net>
25610
25611         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25612         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25613         than the race-prone "test -d sys || mkdir sys".
25614         (configure.ac): Use AC_PROG_MKDIR_P.
25615         * modules/sys_select: Likewise.
25616         * modules/sys_socket: Likewise.
25617         * modules/sys_time: Likewise.
25618
25619 2007-01-18  Eric Blake  <ebb9@byu.net>
25620
25621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25622         replace gettimeofday.
25623         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25624         name, to avoid infinite recursion.
25625
25626 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25627
25628         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25629         module sys_time.
25630         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25631         assume timespec.h defines struct timeval.
25632         * lib/settime.c: Likewise.
25633         * lib/utimens.c: Likewise.
25634         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25635         since we now assume the gettimeofday module.
25636         * lib/tempname.c (__gen_tempname): Likewise.
25637         * lib/gettimeofday.h: Remove.
25638         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25639         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25640         Include <time.h>, for 'time()'.
25641         (localtime_buffer_addr): Also use this workaround if
25642         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
25643         to simplify the uses.  All uses changed.
25644         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25645         that #undef is inside {}, and 'const' follows type name consistently.
25646         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25647         (gettimeofday): Do not use the maximum possible value for
25648         tv->tv_usec, since that might break usages other than ls.c.
25649         Instead, we'll leave ls.c alone.  This undoes today's patch
25650         by Bruno.  Add a compile-time warning for 1s-clock resolution;
25651         we've never observed the problem but might as well keep the
25652         canary.
25653         * lib/nanosleep.c: Include timespec.h first, for interface check.
25654         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25655         now assume the sys_time module.
25656         * lib/tempname.c: Likewise.
25657         * lib/timespec.h: Likewise.
25658         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25659         needed.
25660         * lib/strftime.c: Likewise.
25661         * lib/timespec.h: Likewise.
25662         * lib/posixtm.c: Include posixtm.h first, for interface check.
25663         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25664         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25665         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25666         * lib/sys_time_.h: New file.
25667         * lib/timespec.h (struct timespec): Use long int, not long.
25668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25669         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25670         Remove obsolescent call to AC_HEADER_TIME.
25671         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25674         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25675         Likewise.
25676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25677         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25679         into the sys_time module.  Check for gettimeofday just once.
25680         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25681         for gettimeofday signature to just check the signature.  Merely
25682         compile it, since linking doesn't test signature.  Improve test for
25683         whether gettimeofday.o is actually needed.
25684         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25685         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25686         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25687         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25689         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25690         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25691         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25692         than worrying about sys/time.h.
25693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25694         Don't bother worrying about TIME_WITH_SYS_TIME.
25695         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25696         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25697         * m4/sys_time_h.m4: New file.
25698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25699         Don't include sys/time.h.  Return from main rather than exiting.
25700         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25701         all uses changed.
25702         * modules/gethrxtime (Depends-on): Add sys_time.
25703         * modules/gettime (Depends-on): Likewise.
25704         * modules/gettimeofday (Depends-on): Likewise.
25705         * modules/nanosleep (Depends-on): Likewise.
25706         * modules/settime (Depends-on): Likewise.
25707         * modules/tempname (Depends-on): Likewise.
25708         * modules/utimens (Depends-on): Likewise.
25709         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25710         (Include:) Change back to <sys/time.h>.
25711         (Maintainer:) Add self.
25712         * modules/sys_time: New file.
25713         * modules/tempname (Depends-on): Add gettimeofday.
25714         * tests/test-gettimeofday.c: Include <sys/time.h>
25715         rather than gettimeofday.h.
25716
25717 2007-01-17  Bruno Haible  <bruno@clisp.org>
25718
25719         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25720         the license default to GPL.
25721         (func_create_testdir): Don't complain if a module is LGPL and its
25722         tests module depends on GPLed modules.
25723
25724 2007-01-17  Bruno Haible  <bruno@clisp.org>
25725
25726         * lib/gettimeofday.c (gettimeofday): Add code for the case
25727         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25728         maximum possible value for tv->tv_usec, rather than the minimum one.
25729
25730 2005-10-08  Martin Lambers  <marlam@marlam.de>
25731 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25732 2007-01-16  Bruno Haible  <bruno@clisp.org>
25733
25734         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25735         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25736         gl_FUNC_GETTIMEOFDAY.
25737         (Include): Add gettimeofday.h.
25738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25741         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25742         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25743         * lib/gettimeofday.h: New file.
25744         * lib/gettimeofday.c: Include <sys/timeb.h>.
25745         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25746         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25747         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25748         fall back on time().
25749
25750         * tests/test-gettimeofday.c: New file.
25751         * modules/gettimeofday-tests: New file.
25752
25753 2007-01-16  Eric Blake  <ebb9@byu.net>
25754
25755         * modules/fnmatch (Depends-on): Depend on wchar.
25756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25757         * m4/fnmatch.m4: Likewise.
25758         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25759         * m4/mbchar.m4: Likewise.
25760         * modules/mbswidth (Depends-on): Depend on wchar.
25761         * lib/mbswidth.c: Assume <wchar.h>.
25762         * m4/mbswidth.m4: Likewise.
25763         * modules/quotearg (Depends-on): Depend on wchar.
25764         * lib/quotearg.c: Assume <wchar.h>.
25765         * m4/quotearg.m4: Likewise.
25766         * modules/regex (Depends-on): Depend on wchar.
25767         * lib/regex_internal.h: Assume <wchar.h>.
25768         * m4/regex.m4: Likewise.
25769         * modules/stdint (Depends-on): Depend on wchar.
25770         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25771         * m4/stdint.m4: Likewise.
25772         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25773         * modules/strftime (Depends-on): Depend on wchar.
25774         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25775         * modules/strtol (Depends-on): Depend on wchar.
25776         * lib/strtol.c: Assume <wchar.h>.
25777         * modules/wcwidth (Depends-on): Depend on wchar.
25778         * lib/wcwidth.h: Assume <wchar.h>.
25779         * m4/wcwidth.m4: Likewise.
25780
25781 2007-01-16  Bruno Haible  <bruno@clisp.org>
25782
25783         * modules/csharpexec-script: New, created from...
25784         * modules/csharpexec: ... this.
25785
25786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25787
25788         * modules/javaexec-script: New, created from...
25789         * modules/javaexec: ... this.
25790
25791 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25792
25793         * modules/poll (Dependencies): Add sys_select.
25794
25795 2007-01-15  Jim Meyering  <jim@meyering.net>
25796
25797         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25798         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25799         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25800         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25801
25802 2007-01-15  Bruno Haible  <bruno@clisp.org>
25803
25804         * modules/striconveh: New file.
25805         * lib/striconveh.h: New file.
25806         * lib/striconveh.c: New file.
25807         * MODULES.html.sh (Internationalization functions): Add striconveh.
25808
25809         * modules/striconveh-tests: New file.
25810         * tests/test-striconveh.c: New file.
25811
25812 2007-01-15  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25815         not from GNU libiconv or GNU libc.
25816
25817 2007-01-15  Bruno Haible  <bruno@clisp.org>
25818
25819         * doc/gnulib-intro.texi (Copyright): Explain the different license
25820         terms for module descriptions, autoconf macros, tests, documentation.
25821
25822 2007-01-14  Bruno Haible  <bruno@clisp.org>
25823
25824         * modules/striconv-tests: New file.
25825         * tests/test-striconv.c: New file.
25826
25827 2007-01-14  Bruno Haible  <bruno@clisp.org>
25828
25829         * modules/iconv-tests: New file.
25830         * tests/test-iconv.c: New file.
25831
25832 2007-01-14  Bruno Haible  <bruno@clisp.org>
25833
25834         * gnulib-tool (func_get_license): For test modules, use the license of
25835         the main module.
25836
25837 2007-01-14  Bruno Haible  <bruno@clisp.org>
25838
25839         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25840         if iconv is found to exist.
25841
25842 2007-01-14  Bruno Haible  <bruno@clisp.org>
25843
25844         * modules/c-ctype-tests: New file.
25845         * tests/test-c-ctype.c: New file.
25846
25847 2007-01-14  Bruno Haible  <bruno@clisp.org>
25848
25849         * modules/binary-io-tests: New file.
25850         * tests/test-binary-io.sh: New file.
25851         * tests/test-binary-io.c: New file.
25852
25853 2007-01-14  Bruno Haible  <bruno@clisp.org>
25854
25855         * modules/array-oset-tests: New file.
25856         * tests/test-array_oset.c: New file.
25857
25858 2007-01-14  Bruno Haible  <bruno@clisp.org>
25859
25860         * modules/array-list-tests: New file.
25861         * tests/test-array_list.c: New file.
25862
25863 2007-01-14  Bruno Haible  <bruno@clisp.org>
25864
25865         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25866         and make.
25867         Reported by Simon Josefsson in
25868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25869
25870 2007-01-14  Bruno Haible  <bruno@clisp.org>
25871
25872         * modules/allocsa-tests: New file.
25873         * tests/test-allocsa.c: New file.
25874
25875 2007-01-14  Bruno Haible  <bruno@clisp.org>
25876
25877         * modules/fchdir (Depends-on): Add absolute-header.
25878         * modules/unistd (Depends-on): Likewise.
25879
25880 2006-12-30  Bruno Haible  <bruno@clisp.org>
25881
25882         * modules/fchdir: New file.
25883         * modules/unistd (Files): Add lib/unistd_.h.
25884         (Makefile.am): Generate unistd.h from unistd_.h.
25885         * lib/fchdir.c: New file.
25886         * lib/dirent_.h: New file.
25887         * lib/unistd_.h: New file.
25888         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25889         * m4/fchdir.m4: New file.
25890         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25891         (gl_HEADER_UNISTD): Invoke it.
25892         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25893         function.
25894         * lib/backupfile.c (opendir, closedir): Undefine.
25895         * lib/chown.c (open, close): Undefine.
25896         * lib/clean-temp.c (open, close): Undefine.
25897         * lib/copy-file.c (open, close): Undefine.
25898         * lib/execute.c (open, close): Undefine.
25899         * lib/fsusage.c (open, close): Undefine.
25900         * lib/gc-gnulib.c (open, close): Undefine.
25901         * lib/getcwd.c (opendir, closedir): Undefine.
25902         * lib/glob.c (opendir, closedir): Undefine.
25903         * lib/javacomp.c (open, close): Undefine.
25904         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25905         * lib/openat-proc.c (open, close): Undefine.
25906         * lib/pagealign_alloc.c (open, close): Undefine.
25907         * lib/pipe.c (open, close): Undefine.
25908         * lib/progreloc.c (open, close): Undefine.
25909         * lib/savedir.c (opendir, closedir): Undefine.
25910         * lib/utime.c (open, close): Undefine.
25911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25912
25913 2007-01-10  Bruno Haible  <bruno@clisp.org>
25914
25915         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25916
25917 2007-01-12  Eric Blake  <ebb9@byu.net>
25918
25919         Provide a robust <wchar.h>.  Further simplifications are now
25920         possible in other modules, but not included here.
25921         * modules/wchar: New module.
25922         * m4/wchar.m4: New file.
25923         * lib/wchar_.h: Likewise.
25924         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25925         of the new module.
25926         * MODULES.html.sh (Extended multibyte and wide character utilities):
25927         New section.
25928
25929 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25932         to a reasonable default for memory allocation.
25933         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25934         file system that reports garbage st_size values for symlinks.
25935         Problem reported by Liyang Hu.
25936
25937 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25938
25939         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25940         Emacs .#* auto-save files).
25941
25942 2007-01-11  Bruno Haible  <bruno@clisp.org>
25943
25944         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25945         directory.
25946
25947 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25948
25949         Use @...@ consistently in lib/wctype_.h.
25950         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25951         on it being set to 1 or 0.
25952         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25953         go back to AC_SUBSTing it.
25954         * modules/wctype (Makefile.am): Undo previous change.
25955
25956 2007-01-10  Eric Blake  <ebb9@byu.net>
25957
25958         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25959         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25960         * modules/wctype (Makefile.am): Likewise.
25961         Reported by Chris McGuire.
25962
25963 2007-01-10  Jim Meyering  <jim@meyering.net>
25964
25965         fts.c: a small readability/maintainability improvement
25966         * lib/fts.c (fts_read): Make this code slightly more readable and
25967         maintainable by hoisting the "sp->fts_cur = p" assignments to
25968         immediately follow the statements that set P.  Derived from
25969         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25970
25971 2007-01-10  Eric Blake  <ebb9@byu.net>
25972
25973         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25974         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25976         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25977         Reported by Chris McGuire.
25978
25979 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25980
25981         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25982         in sed script.
25983
25984 2007-01-09  Bruno Haible  <bruno@clisp.org>
25985
25986         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25987         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25988         variables.
25989         (func_module): Use them.
25990
25991 2007-01-09  Bruno Haible  <bruno@clisp.org>
25992
25993         * modules/unistr/base: New file.
25994         * lib/unistr.h: New file.
25995
25996         * modules/unistr/u8-to-u16: New file.
25997         * lib/unistr/u8-to-u16.c: New file.
25998
25999         * modules/unistr/u8-to-u32: New file.
26000         * lib/unistr/u8-to-u32.c: New file.
26001
26002         * modules/unistr/u16-to-u8: New file.
26003         * lib/unistr/u16-to-u8.c: New file.
26004
26005         * modules/unistr/u16-to-u32: New file.
26006         * lib/unistr/u16-to-u32.c: New file.
26007
26008         * modules/unistr/u32-to-u8: New file.
26009         * lib/unistr/u32-to-u8.c: New file.
26010
26011         * modules/unistr/u32-to-u16: New file.
26012         * lib/unistr/u32-to-u16.c: New file.
26013
26014         * modules/unistr/u8-check: New file.
26015         * modules/unistr/u16-check: New file.
26016         * modules/unistr/u32-check: New file.
26017         * lib/unistr/u8-check.c: New file.
26018         * lib/unistr/u16-check.c: New file.
26019         * lib/unistr/u32-check.c: New file.
26020
26021         * modules/unistr/u8-chr: New file.
26022         * modules/unistr/u16-chr: New file.
26023         * modules/unistr/u32-chr: New file.
26024         * lib/unistr/u8-chr.c: New file.
26025         * lib/unistr/u16-chr.c: New file.
26026         * lib/unistr/u32-chr.c: New file.
26027
26028         * modules/unistr/u8-cmp: New file.
26029         * modules/unistr/u16-cmp: New file.
26030         * modules/unistr/u32-cmp: New file.
26031         * lib/unistr/u8-cmp.c: New file.
26032         * lib/unistr/u16-cmp.c: New file.
26033         * lib/unistr/u32-cmp.c: New file.
26034
26035         * modules/unistr/u8-cpy: New file.
26036         * modules/unistr/u16-cpy: New file.
26037         * modules/unistr/u32-cpy: New file.
26038         * lib/unistr/u8-cpy.c: New file.
26039         * lib/unistr/u16-cpy.c: New file.
26040         * lib/unistr/u32-cpy.c: New file.
26041         * lib/unistr/u-cpy.h: New file.
26042
26043         * modules/unistr/u8-cpy-alloc: New file.
26044         * modules/unistr/u16-cpy-alloc: New file.
26045         * modules/unistr/u32-cpy-alloc: New file.
26046         * lib/unistr/u8-cpy-alloc.c: New file.
26047         * lib/unistr/u16-cpy-alloc.c: New file.
26048         * lib/unistr/u32-cpy-alloc.c: New file.
26049         * lib/unistr/u-cpy-alloc.h: New file.
26050
26051         * modules/unistr/u8-endswith: New file.
26052         * modules/unistr/u16-endswith: New file.
26053         * modules/unistr/u32-endswith: New file.
26054         * lib/unistr/u8-endswith.c: New file.
26055         * lib/unistr/u16-endswith.c: New file.
26056         * lib/unistr/u32-endswith.c: New file.
26057         * lib/unistr/u-endswith.h: New file.
26058
26059         * modules/unistr/u8-mblen: New file.
26060         * modules/unistr/u16-mblen: New file.
26061         * modules/unistr/u32-mblen: New file.
26062         * lib/unistr/u8-mblen.c: New file.
26063         * lib/unistr/u16-mblen.c: New file.
26064         * lib/unistr/u32-mblen.c: New file.
26065
26066         * modules/unistr/u8-mbtouc: New file.
26067         * modules/unistr/u16-mbtouc: New file.
26068         * modules/unistr/u32-mbtouc: New file.
26069         * lib/unistr/u8-mbtouc.c: New file.
26070         * lib/unistr/u16-mbtouc.c: New file.
26071         * lib/unistr/u32-mbtouc.c: New file.
26072
26073         * modules/unistr/u8-mbtouc-safe: New file.
26074         * modules/unistr/u16-mbtouc-safe: New file.
26075         * modules/unistr/u32-mbtouc-safe: New file.
26076         * lib/unistr/u8-mbtouc-safe.c: New file.
26077         * lib/unistr/u16-mbtouc-safe.c: New file.
26078         * lib/unistr/u32-mbtouc-safe.c: New file.
26079
26080         * modules/unistr/u8-move: New file.
26081         * modules/unistr/u16-move: New file.
26082         * modules/unistr/u32-move: New file.
26083         * lib/unistr/u8-move.c: New file.
26084         * lib/unistr/u16-move.c: New file.
26085         * lib/unistr/u32-move.c: New file.
26086         * lib/unistr/u-move.h: New file.
26087
26088         * modules/unistr/u8-next: New file.
26089         * modules/unistr/u16-next: New file.
26090         * modules/unistr/u32-next: New file.
26091         * lib/unistr/u8-next.c: New file.
26092         * lib/unistr/u16-next.c: New file.
26093         * lib/unistr/u32-next.c: New file.
26094
26095         * modules/unistr/u8-prev: New file.
26096         * modules/unistr/u16-prev: New file.
26097         * modules/unistr/u32-prev: New file.
26098         * lib/unistr/u8-prev.c: New file.
26099         * lib/unistr/u16-prev.c: New file.
26100         * lib/unistr/u32-prev.c: New file.
26101
26102         * modules/unistr/u8-set: New file.
26103         * modules/unistr/u16-set: New file.
26104         * modules/unistr/u32-set: New file.
26105         * lib/unistr/u8-set.c: New file.
26106         * lib/unistr/u16-set.c: New file.
26107         * lib/unistr/u32-set.c: New file.
26108         * lib/unistr/u-set.h: New file.
26109
26110         * modules/unistr/u8-startswith: New file.
26111         * modules/unistr/u16-startswith: New file.
26112         * modules/unistr/u32-startswith: New file.
26113         * lib/unistr/u8-startswith.c: New file.
26114         * lib/unistr/u16-startswith.c: New file.
26115         * lib/unistr/u32-startswith.c: New file.
26116         * lib/unistr/u-startswith.h: New file.
26117
26118         * modules/unistr/u8-stpcpy: New file.
26119         * modules/unistr/u16-stpcpy: New file.
26120         * modules/unistr/u32-stpcpy: New file.
26121         * lib/unistr/u8-stpcpy.c: New file.
26122         * lib/unistr/u16-stpcpy.c: New file.
26123         * lib/unistr/u32-stpcpy.c: New file.
26124         * lib/unistr/u-stpcpy.h: New file.
26125
26126         * modules/unistr/u8-stpncpy: New file.
26127         * modules/unistr/u16-stpncpy: New file.
26128         * modules/unistr/u32-stpncpy: New file.
26129         * lib/unistr/u8-stpncpy.c: New file.
26130         * lib/unistr/u16-stpncpy.c: New file.
26131         * lib/unistr/u32-stpncpy.c: New file.
26132         * lib/unistr/u-stpncpy.h: New file.
26133
26134         * modules/unistr/u8-strcat: New file.
26135         * modules/unistr/u16-strcat: New file.
26136         * modules/unistr/u32-strcat: New file.
26137         * lib/unistr/u8-strcat.c: New file.
26138         * lib/unistr/u16-strcat.c: New file.
26139         * lib/unistr/u32-strcat.c: New file.
26140         * lib/unistr/u-strcat.h: New file.
26141
26142         * modules/unistr/u8-strchr: New file.
26143         * modules/unistr/u16-strchr: New file.
26144         * modules/unistr/u32-strchr: New file.
26145         * lib/unistr/u8-strchr.c: New file.
26146         * lib/unistr/u16-strchr.c: New file.
26147         * lib/unistr/u32-strchr.c: New file.
26148
26149         * modules/unistr/u8-strcmp: New file.
26150         * modules/unistr/u16-strcmp: New file.
26151         * modules/unistr/u32-strcmp: New file.
26152         * lib/unistr/u8-strcmp.c: New file.
26153         * lib/unistr/u16-strcmp.c: New file.
26154         * lib/unistr/u32-strcmp.c: New file.
26155
26156         * modules/unistr/u8-strcpy: New file.
26157         * modules/unistr/u16-strcpy: New file.
26158         * modules/unistr/u32-strcpy: New file.
26159         * lib/unistr/u8-strcpy.c: New file.
26160         * lib/unistr/u16-strcpy.c: New file.
26161         * lib/unistr/u32-strcpy.c: New file.
26162         * lib/unistr/u-strcpy.h: New file.
26163
26164         * modules/unistr/u8-strcspn: New file.
26165         * modules/unistr/u16-strcspn: New file.
26166         * modules/unistr/u32-strcspn: New file.
26167         * lib/unistr/u8-strcspn.c: New file.
26168         * lib/unistr/u16-strcspn.c: New file.
26169         * lib/unistr/u32-strcspn.c: New file.
26170         * lib/unistr/u-strcspn.h: New file.
26171
26172         * modules/unistr/u8-strdup: New file.
26173         * modules/unistr/u16-strdup: New file.
26174         * modules/unistr/u32-strdup: New file.
26175         * lib/unistr/u8-strdup.c: New file.
26176         * lib/unistr/u16-strdup.c: New file.
26177         * lib/unistr/u32-strdup.c: New file.
26178         * lib/unistr/u-strdup.h: New file.
26179
26180         * modules/unistr/u8-strlen: New file.
26181         * modules/unistr/u16-strlen: New file.
26182         * modules/unistr/u32-strlen: New file.
26183         * lib/unistr/u8-strlen.c: New file.
26184         * lib/unistr/u16-strlen.c: New file.
26185         * lib/unistr/u32-strlen.c: New file.
26186         * lib/unistr/u-strlen.h: New file.
26187
26188         * modules/unistr/u8-strmblen: New file.
26189         * modules/unistr/u16-strmblen: New file.
26190         * modules/unistr/u32-strmblen: New file.
26191         * lib/unistr/u8-strmblen.c: New file.
26192         * lib/unistr/u16-strmblen.c: New file.
26193         * lib/unistr/u32-strmblen.c: New file.
26194
26195         * modules/unistr/u8-strmbtouc: New file.
26196         * modules/unistr/u16-strmbtouc: New file.
26197         * modules/unistr/u32-strmbtouc: New file.
26198         * lib/unistr/u8-strmbtouc.c: New file.
26199         * lib/unistr/u16-strmbtouc.c: New file.
26200         * lib/unistr/u32-strmbtouc.c: New file.
26201
26202         * modules/unistr/u8-strncat: New file.
26203         * modules/unistr/u16-strncat: New file.
26204         * modules/unistr/u32-strncat: New file.
26205         * lib/unistr/u8-strncat.c: New file.
26206         * lib/unistr/u16-strncat.c: New file.
26207         * lib/unistr/u32-strncat.c: New file.
26208         * lib/unistr/u-strncat.h: New file.
26209
26210         * modules/unistr/u8-strncmp: New file.
26211         * modules/unistr/u16-strncmp: New file.
26212         * modules/unistr/u32-strncmp: New file.
26213         * lib/unistr/u8-strncmp.c: New file.
26214         * lib/unistr/u16-strncmp.c: New file.
26215         * lib/unistr/u32-strncmp.c: New file.
26216
26217         * modules/unistr/u8-strncpy: New file.
26218         * modules/unistr/u16-strncpy: New file.
26219         * modules/unistr/u32-strncpy: New file.
26220         * lib/unistr/u8-strncpy.c: New file.
26221         * lib/unistr/u16-strncpy.c: New file.
26222         * lib/unistr/u32-strncpy.c: New file.
26223         * lib/unistr/u-strncpy.h: New file.
26224
26225         * modules/unistr/u8-strnlen: New file.
26226         * modules/unistr/u16-strnlen: New file.
26227         * modules/unistr/u32-strnlen: New file.
26228         * lib/unistr/u8-strnlen.c: New file.
26229         * lib/unistr/u16-strnlen.c: New file.
26230         * lib/unistr/u32-strnlen.c: New file.
26231         * lib/unistr/u-strnlen.h: New file.
26232
26233         * modules/unistr/u8-strpbrk: New file.
26234         * modules/unistr/u16-strpbrk: New file.
26235         * modules/unistr/u32-strpbrk: New file.
26236         * lib/unistr/u8-strpbrk.c: New file.
26237         * lib/unistr/u16-strpbrk.c: New file.
26238         * lib/unistr/u32-strpbrk.c: New file.
26239         * lib/unistr/u-strpbrk.h: New file.
26240
26241         * modules/unistr/u8-strrchr: New file.
26242         * modules/unistr/u16-strrchr: New file.
26243         * modules/unistr/u32-strrchr: New file.
26244         * lib/unistr/u8-strrchr.c: New file.
26245         * lib/unistr/u16-strrchr.c: New file.
26246         * lib/unistr/u32-strrchr.c: New file.
26247
26248         * modules/unistr/u8-strspn: New file.
26249         * modules/unistr/u16-strspn: New file.
26250         * modules/unistr/u32-strspn: New file.
26251         * lib/unistr/u8-strspn.c: New file.
26252         * lib/unistr/u16-strspn.c: New file.
26253         * lib/unistr/u32-strspn.c: New file.
26254         * lib/unistr/u-strspn.h: New file.
26255
26256         * modules/unistr/u8-strstr: New file.
26257         * modules/unistr/u16-strstr: New file.
26258         * modules/unistr/u32-strstr: New file.
26259         * lib/unistr/u8-strstr.c: New file.
26260         * lib/unistr/u16-strstr.c: New file.
26261         * lib/unistr/u32-strstr.c: New file.
26262         * lib/unistr/u-strstr.h: New file.
26263
26264         * modules/unistr/u8-strtok: New file.
26265         * modules/unistr/u16-strtok: New file.
26266         * modules/unistr/u32-strtok: New file.
26267         * lib/unistr/u8-strtok.c: New file.
26268         * lib/unistr/u16-strtok.c: New file.
26269         * lib/unistr/u32-strtok.c: New file.
26270         * lib/unistr/u-strtok.h: New file.
26271
26272         * modules/unistr/u8-uctomb: New file.
26273         * modules/unistr/u16-uctomb: New file.
26274         * modules/unistr/u32-uctomb: New file.
26275         * lib/unistr/u8-uctomb.c: New file.
26276         * lib/unistr/u16-uctomb.c: New file.
26277         * lib/unistr/u32-uctomb.c: New file.
26278
26279         * MODULES.html.sh (Unicode string functions): Add the new modules.
26280
26281 2007-01-08  Bruno Haible  <bruno@clisp.org>
26282
26283         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
26284         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
26285         subdirectories.
26286
26287 2007-01-08  Karl Berry  <karl@gnu.org>
26288
26289         * doc/error.texi: mention that main() fns must set program_name
26290         when progname is used.
26291
26292 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26293
26294         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
26295         WCTYPE_H is empty, for the benefit of builds from non-distclean
26296         directories.  Problem reported by Eric Blake in
26297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
26298
26299 2007-01-08  Bruno Haible  <bruno@clisp.org>
26300
26301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
26302         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
26303         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
26304         PROVIDE_CANONICALIZE_FILENAME_MODE.
26305         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
26306
26307 2007-01-08  Bruno Haible  <bruno@clisp.org>
26308
26309         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
26310         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
26311         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
26312         * lib/fts.c: Likewise.
26313         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
26314
26315 2006-12-25  Bruno Haible  <bruno@clisp.org>
26316
26317         * modules/utf8-ucs4-safe: New file.
26318         * lib/utf8-ucs4-safe.h: New file.
26319         * lib/unistr/utf8-ucs4-safe.c: New file.
26320
26321         * modules/utf16-ucs4-safe: New file.
26322         * lib/utf16-ucs4-safe.h: New file.
26323         * lib/unistr/utf16-ucs4-safe.c: New file.
26324
26325         * MODULES.html.sh (Unicode string functions): Add the new modules.
26326
26327 2007-01-08  Bruno Haible  <bruno@clisp.org>
26328
26329         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
26330         (Depends-on): Add unitypes.
26331         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26332         (u8_mbtouc_aux): Move out to separate file.
26333         (u8_mbtouc): Use ucs4_t, uint8_t types.
26334         * lib/unistr/utf8-ucs4.c: New file.
26335
26336         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
26337         (Depends-on): Add unitypes.
26338         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26339         (u16_mbtouc_aux): Move out to separate file.
26340         (u16_mbtouc): Use ucs4_t, uint16_t types.
26341         * lib/unistr/utf16-ucs4.c: New file.
26342
26343         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
26344         (Depends-on): Add unitypes.
26345         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
26346         (u8_uctomb_aux): Move out to separate file.
26347         (u8_uctomb): Use ucs4_t, uint8_t types.
26348         * lib/unistr/ucs4-utf8.c: New file.
26349
26350         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
26351         (Depends-on): Add unitypes.
26352         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
26353         (u16_uctomb_aux): Move out to separate file.
26354         (u16_uctomb): Use ucs4_t, uint16_t types.
26355         * lib/unistr/ucs4-utf16.c: New file.
26356
26357 2006-12-25  Bruno Haible  <bruno@clisp.org>
26358
26359         * modules/unitypes: New file.
26360         * lib/unitypes.h: New file.
26361         * MODULES.html.sh (func_all_modules): New section "Unicode string
26362         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
26363         this section. Add unitypes.
26364
26365 2007-01-08  Bruno Haible  <bruno@clisp.org>
26366
26367         Avoid variable names that conflict with those from libtool.
26368         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
26369         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
26370         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
26371         library_names_spec to acl_library_names_spec, hardcode_* to
26372         acl_hardcode_*.
26373         Reported by Ralf Wildenhues.
26374
26375 2007-01-08  Bruno Haible  <bruno@clisp.org>
26376
26377         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
26378         definition.
26379         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
26380         definition.
26381         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
26382         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
26383         definition.
26384         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
26385         definition.
26386         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
26387         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
26388         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
26389         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
26390         definition.
26391         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
26392         definition.
26393         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
26394         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
26395         GC_USE_<algorithm>.
26396         * lib/gc-libgcrypt.c: Likewise.
26397         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
26398         * modules/gc-arctwo (configure.ac): Likewise.
26399         * modules/gc-des (configure.ac): Likewise.
26400         * modules/gc-hmac-md5 (configure.ac): Likewise.
26401         * modules/gc-hmac-sha1 (configure.ac): Likewise.
26402         * modules/gc-md2 (configure.ac): Likewise.
26403         * modules/gc-md4 (configure.ac): Likewise.
26404         * modules/gc-md5 (configure.ac): Likewise.
26405         * modules/gc-random (configure.ac): Likewise.
26406         * modules/gc-rijndael (configure.ac): Likewise.
26407         * modules/gc-sha1 (configure.ac): Likewise.
26408
26409 2007-01-08  Bruno Haible  <bruno@clisp.org>
26410
26411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
26412         macro definition.
26413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
26414         definition.
26415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
26416         definition.
26417         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
26418         * modules/fcntl-safer (configure.ac): Likewise.
26419         * modules/fopen-safer (configure.ac): Likewise.
26420         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
26421         GNULIB_FWRITEERROR macro definition.
26422
26423 2007-01-08  Bruno Haible  <bruno@clisp.org>
26424
26425         * m4/gnulib-common.m4: New file.
26426         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
26427         (func_get_filelist): Add m4/gnulib-common.m4.
26428
26429 2007-01-08  Bruno Haible  <bruno@clisp.org>
26430
26431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
26432         command.
26433
26434 2007-01-08  Jim Meyering  <jim@meyering.net>
26435
26436         Use a more robust test for a "can't happen" condition.
26437         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
26438         narrowed the st_size value.  Presuming the "can't happen" condition
26439         is true, that narrowing could conceivably convert an invalid st_size
26440         value into a valid one.  Instead, use a change based on Matthew
26441         Woehlke's original patch.
26442
26443         Slight readability improvement: use an assert-like macro
26444         in place of literal "abort ()" uses.
26445         * lib/fts.c (fts_assert): Define.
26446         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
26447         Use this macro instead of a bare 'abort'.
26448
26449 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26450
26451         Don't worry about using IRIX 5.3's wctype.h broken definitions;
26452         simply work around them.
26453         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
26454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
26455         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
26456         declaring.
26457         Don't bother to define as macros, since the standard doesn't require it.
26458         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
26459         longer worry about IRIX 5.3.
26460         (HAVE_WCTYPE_CTMP_BUG): Remove.
26461
26462 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26463
26464         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
26465         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
26466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26467         Problems reported by Georg Schwarz for IRIX 5.3.
26468
26469         * gnulib-tool (autoconf_minversion): Take the maximum version number
26470         found, not the minimum.  Problem reported by James Youngman.
26471
26472 2007-01-03  Karl Berry  <karl@gnu.org>
26473
26474         * doc/error.texi: new file, explaining interaction with progname.
26475         * doc/gnulib.texi: include it.  Update copyright.
26476
26477 2007-01-03  Simon Josefsson  <simon@josefsson.org>
26478
26479         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
26480         AC_CANONICAL_HOST, to improve autobuild outputs.
26481
26482 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
26483             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26484
26485         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
26486         sockets, server sockets, and other file descriptors.  Count errors
26487         to compute the return value.  Reorder the code a bit to be easier
26488         to follow.  Don't set event bits that were not requested (except
26489         POLLERR and POLLHUP).
26490
26491 2007-01-01  Bruno Haible  <bruno@clisp.org>
26492
26493         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
26494
26495 2007-01-03  Jim Meyering  <jim@meyering.net>
26496
26497         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
26498
26499 2007-01-02  Bruno Haible  <bruno@clisp.org>
26500
26501         * modules/settime (Include): Require timespec.h.
26502         * modules/nanosleep (Include): Likewise.
26503
26504 2007-01-01  Bruno Haible  <bruno@clisp.org>
26505
26506         * gnulib-tool (func_emit_copyright_notice): Bump year.
26507         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
26508
26509 2007-01-01  Bruno Haible  <bruno@clisp.org>
26510
26511         Improve support for OpenBSD.
26512         * build-aux/config.rpath (libname_spec): Export.
26513         (library_names_spec): New variable. Export.
26514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
26515         library_names_spec from the config.rpath output. Locate shared library
26516         through the name pattern in library_names_spec.
26517
26518 2007-01-01  Eric Blake  <ebb9@byu.net>
26519
26520         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
26521
26522 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
26525         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
26526         assume the C locale, and avoid an "eval" that could cause trouble.
26527         Problem with SORT reported by Bob Proulx.
26528
26529         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
26530         Define.  Trivial patch from Henning Nielsen Lund, originally
26531         sent to bug-grep@gnu.org today.
26532
26533 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26534
26535         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
26536         struct stat.  Problem reported by Henning Nielsen Lund.
26537         * lib/acl.c: Include acl.h first, to check interface.  Don't
26538         bother to include sys/types.h and sys/stat.h again.
26539
26540 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         Import the following change from libc; problem reported by
26543         Sven Verdoolaege.
26544
26545         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
26546
26547         [BZ #1373]
26548         * lib/argp.h: Remove __NTH for __argp_usage inline function.
26549
26550 2006-12-28  Jim Meyering  <jim@meyering.net>
26551
26552         * build-aux/announce-gen: Do not assume that the package
26553         builds any of tar.gz, tar.bz2, and .xdelta files.
26554         Suggestion from Simon Josefsson.
26555
26556 2006-12-28  Simon Josefsson  <simon@josefsson.org>
26557
26558         * modules/announce-gen: New file.
26559
26560 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26561
26562         * lib/mbchar.h: Just include <wctype.h>; the wctype module
26563         handles its gotchas now.
26564         * lib/mbswidth.c: Likewise.
26565         * lib/wcwidth.h: Likewise.
26566         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26567         and iswcntrl; the wctype module does this stuff now.
26568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26570         * modules/mbchar (Depends-on): Add wctype.
26571         * modules/mbswidth (Depends-on): Likewise.
26572         * modules/wcwidth (Depends-on): Likewise.
26573
26574 2006-12-27  Eric Blake  <ebb9@byu.net>
26575
26576         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26577         module uses more than what <wctype.h> is required to provide.
26578
26579 2006-12-26  Eric Blake  <ebb9@byu.net>
26580
26581         * gnulib-tool (sed_extract_prog): Avoid space-tab.
26582
26583 2006-12-26  Eric Blake  <ebb9@byu.net>
26584
26585         * modules/absolute-header: New module.
26586         * modules/fcntl (Depends-on): Depend on it.
26587         * modules/inttypes (Depends-on): Likewise.
26588         * modules/stdint (Depends-on): Likewise.
26589         * modules/sys_stat (Depends-on): Likewise.
26590         * modules/wctype (Depends-on): Likewise.
26591         * MODULES.html.sh (Support for building libraries and
26592         executables): Document it.
26593
26594 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26595
26596         * gnulib-tool (SED): Remove, undoing previous change.
26597         The problem was that it broke coreutils on Solaris, because
26598         "sed --posix" leaked into a makefile.
26599         (sed): New alias, if 'alias' and GNU sed.
26600
26601 2006-12-24  Jim Meyering  <jim@meyering.net>
26602
26603         Work around an fchownat bug in glibc-2.4:
26604         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26605         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26606         in spite of the -P option.
26607         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26608         New macros.
26609         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26610         * modules/openat (Files): Add lib/fchownat.c.
26611         * lib/openat.c (fchownat): Don't define here.  Move to...
26612         * lib/fchownat.c: ...this new file.
26613
26614 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26615
26616         Fix bug reported by Bruno Haible in
26617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26618         where quotearg.c didn't compile on Mac OS X 10.2 because it
26619         lacks <wchar.h> and wint_t.
26620         * lib/wctype_.h (__wctype_wint_t): New type.
26621         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26622         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26623         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26624         Arg is now of type __wctype_wint_t, not wint_t.
26625         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26626         substitute HAVE_WINT_T.
26627         * modules/wctype (Files): Add m4/wint_t.m4.
26628         (wctype.h): Substitute HAVE_WINT_T.
26629
26630 2006-12-23  Bruno Haible  <bruno@clisp.org>
26631
26632         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26633
26634 2006-12-23  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26637         S_ISLNK.
26638         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26639         mingw.
26640
26641 2006-12-22  Bruno Haible  <bruno@clisp.org>
26642
26643         * lib/copy-file.c: Include acl.h.
26644         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26645         Close the file descriptors only after being done with copy_acl.
26646         * modules/copy-file (Depends-on): Add acl.
26647
26648 2006-12-22  Bruno Haible  <bruno@clisp.org>
26649
26650         * gnulib-tool (SED): New variable.
26651         Use $SED instead of sed everywhere.
26652
26653 2006-12-22  Bruno Haible  <bruno@clisp.org>
26654
26655         * modules/no-c++: New file.
26656         * m4/no-c++.m4: New file.
26657         * MODULES.html.sh (Support for building libraries and executables):
26658         Add no-c++.
26659
26660 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26661
26662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26663         Include <limits.h>, and use its INT_MAX to rewrite the
26664         j loop so that it does not overflow 'int'.  Problem reported by
26665         Ralf Wildenhues in
26666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26667         Play it safe by shifting left by 1 rather than multiplying by 2,
26668         as GCC is less likely to optimize this away when the value
26669         is signed (when it assumes overflow leads to undefined behavior).
26670         Also, don't assume time_t uses two's complement.
26671
26672 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26673
26674         * MODULES.html.sh: New module wctype.
26675         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26676         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26677         <wctype.h>, since the new wctype module should fix this.
26678         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26679         the wctype module should arrange for it.
26680         * lib/regex_internal.h: Likewise.
26681         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26682         since the wctype module should handle this now.
26683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26684         * modules/fnmatch (Depends-on): Add wctype.
26685         * modules/quotearg (Depends-on): Likewise.
26686         * modules/regex (Depends-on): Likewise.
26687
26688 2006-12-19  Bruno Haible  <bruno@clisp.org>
26689
26690         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26691         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26692
26693 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26694
26695         * modules/savewd (Depends-on): Fix dependency on fcntl.
26696
26697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26700         conforms to C99, rather than relying on the user's environment
26701         setting of STDINT_H.
26702
26703 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26704         and Eric Blake  <ebb9@byu.net>
26705
26706         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26707         This is more consistent with the other defines here.
26708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26709         Port to z/OS.  Problem reported by Paul Gilmartin.
26710         Change local vars to use gl_ prefix rather than ac_.
26711         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26712         with other defines.
26713         * modules/double-slash-root: New module.
26714         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26715         (Depends-on): Add double-slash-root.
26716         * MODULES.html.sh (File system functions): Mention new module.
26717
26718 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26719
26720         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26721         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26722         This is for the benefit of gzip, which doesn't do i18n.
26723
26724 2006-12-12  Jim Meyering  <jim@meyering.net>
26725
26726         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26727         Reported by Andreas Schwab <schwab@suse.de>.
26728
26729 2006-12-12  Bruno Haible  <bruno@clisp.org>
26730
26731         Merge these changes.
26732         2006-09-05  Bruno Haible  <bruno@clisp.org>
26733         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26734         iconv_alloc succeeded.
26735         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26736         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26737         test for " && dest " at the end - dest is always != NULL there. Call
26738         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26739         with 2xNULL arguments, also to flush the state storage. Handle the
26740         IRIX iconv behaviour. Realloc the final result, to throw away unused
26741         memory.
26742
26743 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26746         and fchmodat unconditionally, since glibc 2.4 has them.
26747         Problem reported by Arkadiusz Miskiewicz.
26748
26749 2006-12-10  Bruno Haible  <bruno@clisp.org>
26750
26751         * gnulib-tool (func_import): Show the include files only for those
26752         modules that are copied and specified.
26753         Reported by Karl Berry.
26754
26755 2006-12-08  Jim Meyering  <jim@meyering.net>
26756
26757         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26758         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26759
26760         * build-aux/announce-gen: Add two new options, both optional:
26761         --bootstrap-tools=TOOL_LIST
26762               a comma-separated list of tools, e.g.,
26763               autoconf,automake,bison,gnulib
26764         --gnulib-snapshot-date=DATE
26765               if gnulib is in the bootstrap tool list,
26766               then report this as the snapshot date.
26767               If not specified, use the current date/time.
26768               If you specify a date here, be sure it's UTC.
26769
26770 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26771
26772         * tests/test-argp-2.sh: Fix test to match actual output.
26773         (func_compare): Fix sed script to be portable.
26774
26775 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26776
26777         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26778         workaround for this case.  It is not autoconfigured now; offhand
26779         it's hard to see how to autoconfigure it.
26780
26781 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26782
26783         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26784         a directory that is about to be chowned.  Such a directory's
26785         initial file permissions should permit the owner only and this
26786         should not be changed until after the chown, since the group and
26787         other bits would be incorrect if they granted permission before
26788         the chown.
26789
26790         Fix porting problem for iswctype reported by Georg Schwarz in:
26791         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26793         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26796
26797 2006-12-03  Jim Meyering  <jim@meyering.net>
26798
26799         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26800         p->fts_statp may not yet be defined.
26801         (fts_read): Instead, set it in the caller, once p->fts_statp is
26802         sure to be defined, and corresponds to a top-level directory.
26803         This bug made du -x fail.  Here's the coreutils test case:
26804         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26805         Reported by Mike Frysinger.
26806
26807 2006-12-01  Jim Meyering  <jim@meyering.net>
26808
26809         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26810         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26811         Reported by Simon Josefsson.
26812
26813 2006-11-30  Jim Meyering  <jim@meyering.net>
26814
26815         * m4/warning.m4: Use the all-permissive copyright notice
26816         recommended by RMS (rather than LGPL).
26817         * m4/vararrays.m4: Likewise.
26818         * m4/flexmember.m4: Likewise.
26819
26820 2006-11-29  Bruno Haible  <bruno@clisp.org>
26821
26822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26823         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26824         using +=.
26825         Reported by Simon Josefsson <simon@josefsson.org>.
26826
26827 2006-11-28  James Youngman <jay@gnu.org>
26828
26829         * README: Advise users that they might find the bug-gnulib@gnu.org
26830         and autotools-announce@gnu.org mailing lists useful.
26831
26832 2006-11-28  Bruno Haible  <bruno@clisp.org>
26833
26834         * m4/ptrdiff_max.m4: Remove file.
26835
26836 2006-11-21  Bruno Haible  <bruno@clisp.org>
26837
26838         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26839         _AC_COMPUTE_INT.
26840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26841         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26842         _AC_COMPUTE_INT.
26843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26845         _AC_COMPUTE_INT.
26846         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26847
26848 2006-11-28  Jim Meyering  <jim@meyering.net>
26849
26850         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26851         warning from "gcc -Wshadow" about shadowing the builtin.
26852
26853 2006-11-27  Bruno Haible  <bruno@clisp.org>
26854
26855         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26856         _AC_COMPUTE_INT.
26857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26858
26859 2006-11-27  Bruno Haible  <bruno@clisp.org>
26860             Paul Eggert  <eggert@cs.ucla.edu>
26861
26862         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26863
26864 2006-11-26  Bruno Haible  <bruno@clisp.org>
26865
26866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26867         noinst_LTLIBRARIES.
26868
26869 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26870             Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26873         if compiling with "gcc -ansi".
26874
26875 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         Fix some incompatibilities with gcc -ansi -pedantic.
26878         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26879         if compiling pedantically with GCC, unless it's C99 or later.
26880         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26881         it mishandles gcc -ansi -pedantic as well.
26882         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26883         if gcc -pedantic.
26884         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26885         initializers for struct if -pedantic, unless it's C99 or later.
26886
26887 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26888
26889         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26890         Don't close an fd more than once. Identical atimes indicate
26891         success, not failure.
26892
26893 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26894
26895         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26896
26897 2006-11-23  Jim Meyering  <jim@meyering.net>
26898
26899         * build-aux/announce-gen: New file.  From coreutils.
26900
26901 2006-11-22  Jim Meyering  <jim@meyering.net>
26902
26903         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26904         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26905         (fts_read): Use a temporary to narrow the overused st_size member
26906         before using it in a switch statement.  Reported by Matthew Woehlke.
26907
26908         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26910
26911 2006-11-20  Bruno Haible  <bruno@clisp.org>
26912
26913         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26914         changequote instead of pairs of brackets.
26915         Reported by Andreas Schwab <schwab@suse.de>.
26916
26917 2006-11-21  Jim Meyering  <jim@meyering.net>
26918
26919         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26920         so as to remain compatible with older compilers.
26921         Patch from Michael Deutschmann.
26922
26923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26924
26925         * MODULES.html.sh (File system functions): Add openat.
26926
26927         * lib/openat.h (rpl_fstatat): New macro, if
26928         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26929         (fstatat): Define to rpl_fstatat under the same conditions,
26930         unless COMPILING_FSTATAT.
26931         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26932         seems to have the bug.
26933         * lib/fstatat.c: New file.
26934         * modules/openat (Files): Add it.
26935
26936 2006-11-20  Bruno Haible  <bruno@clisp.org>
26937
26938         * Makefile: New file.
26939
26940 2006-11-20  Jim Meyering  <jim@meyering.net>
26941
26942         The beginnings of syntax-related checks for gnulib.
26943         * lib/Makefile: New file.
26944         * lib/t-idcache: New script.  Ensure that the two halves of
26945         idcache.c stay in sync.
26946
26947         * lib/idcache.c: Adjust comments in user- and group- portions to
26948         be more accurate, and to be consistent with one another.
26949
26950 2006-11-20  Jim Meyering  <jim@meyering.net>
26951
26952         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26953         continue using the flexible array member (thus, this module performs
26954         half as many malloc calls), with the addition that...
26955         (getgroup, getuser): Consistently record a non-match via an empty
26956         "name" string, and map an empty string match to a NULL return value.
26957         * modules/idcache (Depends-on): Re-add flexmember.
26958
26959         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26960         (getuidbyname, getgroup, getgidbyname): Likewise.
26961
26962         Use cleaner syntax: NULL rather than 0.
26963         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26964
26965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26966
26967         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26968         It mishandled the case where the group was missing.
26969         Problem reported by Greg Schafer.
26970         * modules/idcache: Likewise.
26971
26972 2006-11-18  Jim Meyering  <jim@meyering.net>
26973
26974         * check-module (%exempt_header): Add exception for some
26975         conditionally-included headers.
26976
26977         * modules/i-ring (Depends-on): Add verify.
26978         (License): Change to LGPL.
26979
26980 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26981
26982         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26983         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26984         and inttostr.h.  Use snprintf rather than uinttostr, so that
26985         LGPLed code doesn't depend on GPLed.
26986
26987 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26988
26989         * modules/inline (License): Change from GPL to LGPL.
26990
26991 2006-11-17  Jim Meyering  <jim@meyering.net>
26992
26993         * modules/d-type (License): Switch to LGPL.
26994
26995 2006-11-15  Bruno Haible  <bruno@clisp.org>
26996
26997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26998
26999 2006-11-15  Eric Blake  <ebb9@byu.net>
27000
27001         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
27002         the module dependency.
27003
27004 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27005             Bruno Haible  <bruno@clisp.org>
27006
27007         * gnulib-tool (func_create_testdir): Add license consistency check.
27008
27009 2006-11-15  Eric Blake  <ebb9@byu.net>
27010
27011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
27012         random "(cached)" in configure output.
27013
27014 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27015
27016         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
27017         test for conforming inttypes.h is both announced and cached.
27018
27019         * MODULES.html.sh (seen_modules, seen_files): New variables.
27020         (func_module): Rewrite to use a few less gnulib-tool and sed
27021         invocations.  Avoid a couple of quadratic algorithms for ...
27022         (missed_modules, missed_files): ... these, with ...
27023         (func_append, func_tmpdir): ... these new functions, from
27024         gnulib-tool.  Analogously, install traps for cleanup.
27025
27026         * tests/test-gc.c (main): Remove unused variables.
27027         * tests/test-read-file.c: Include stdlib.h, for 'free'.
27028
27029 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27030
27031         * modules/inttostr (License): Change to LGPL.
27032
27033 2006-11-14  Eric Blake  <ebb9@byu.net>
27034
27035         * modules/tempname (License): Change to LGPL.
27036
27037 2006-11-14  Eric Blake  <ebb9@byu.net>
27038
27039         * doc/functions.texi (Function Portability): *printf functions on
27040         Cygwin now understand all POSIX size specifiers.
27041
27042 2006-11-14  Bruno Haible  <bruno@clisp.org>
27043
27044         * modules/c-ctype (License): Change to LGPL.
27045
27046 2006-11-12  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27049         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
27050         for GNOME libraries, for which the include files are installed in
27051         subdirectories of $prefix/include.
27052
27053 2006-11-12  Bruno Haible  <bruno@clisp.org>
27054
27055         * m4/lib-link.m4: Require at least autoconf-2.54.
27056         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
27057         name to underscores for the --with option.
27058
27059 2006-11-13  Bruno Haible  <bruno@clisp.org>
27060
27061         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
27062         the tests directory.
27063         Reported by Ralf Wildenhues.
27064
27065 2006-11-13  Bruno Haible  <bruno@clisp.org>
27066
27067         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
27068         (func_emit_initmacro_end): Undo the override here.
27069         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
27070         Works around the famous automake error in coreutils.
27071
27072 2006-11-13  Eric Blake  <ebb9@byu.net>
27073
27074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
27075         element, not its node.
27076
27077 2006-11-12  Bruno Haible  <bruno@clisp.org>
27078
27079         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
27080         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
27081
27082 2006-11-12  Bruno Haible  <bruno@clisp.org>
27083
27084         * gnulib-tool: New option --local-symlink.
27085         (func_usage): Document it.
27086         (lsymbolic): New variable.
27087         (func_import, func_create_testdir): If --symlink was not specified,
27088         test whether --local-symlink was specified and the file comes from
27089         the local_gnulib_dir.
27090
27091 2006-11-12  Bruno Haible  <bruno@clisp.org>
27092
27093         * gnulib-tool (func_ln): New function.
27094         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
27095
27096 2006-11-12  Bruno Haible  <bruno@clisp.org>
27097
27098         Finish support for source files in subdirectories.
27099         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
27100         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
27101         AUTOMAKE_OPTIONS.
27102         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
27103
27104 2006-11-12  Bruno Haible  <bruno@clisp.org>
27105
27106         * gnulib-tool (func_get_automake_snippet): Synthesize also an
27107         EXTRA_lib_SOURCES augmentation.
27108         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
27109
27110 2006-11-12  Jim Meyering  <jim@meyering.net>
27111
27112         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
27113         file descriptors.  This also averts a failure on systems with
27114         native openat support when a traversed directory lacks "x" access.
27115         * lib/fts_.h: Include "i-ring.h"
27116         (struct FTS) [fts_fd_ring]: New member.
27117         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
27118         (FCHDIR): Add parentheses.
27119         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
27120         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
27121         When descending, rather than simply closing the previous
27122         fts_cwd_fd value, push that file descriptor onto the ring.
27123         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
27124         (fts_open): Initialize the new fd_ring member.
27125         (fts_close): Clear the ring.
27126         (fts_safe_changedir): When possible, use our new fd_ring to skip
27127         the diropen and fstat and dev/ino comparison that would normally
27128         accompany a virtual `chdir ("..")'.
27129
27130         * modules/fts (Depends-on): Add i-ring.
27131         * modules/i-ring: New module.
27132         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
27133         * m4/i-ring.m4: New file.
27134
27135 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27136
27137         * gnulib-tool (func_create_testdir): Fix replacement of
27138         `build-aux' in configure.ac.  Run autotools in gltests
27139         subdirectory.
27140         (func_create_testdir, func_create_megatestdir, test): There is
27141         no need for '--force' in most autotool invocations in a new
27142         tree.  Actually fail the whole test if any of the tools, or the
27143         configure or make stages fail.
27144
27145         Sync from Automake.
27146         * build-aux/gnupload: Revert last change.  Add pointer to upload
27147         instructions of the GNU Maintenance Instructions.
27148         Suggestion by Karl Berry.
27149
27150 2006-11-10  Jim Meyering  <jim@meyering.net>
27151
27152         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
27153
27154 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27155
27156         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
27157         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
27158         (bind_textdomain_codeset) [! ENABLE_NLS]:
27159         Evaluate all the arguments.  That way, callers get compatible behavior
27160         if the arguments have side effects.  Also, it avoids some GCC
27161         diagnostics in some cases; Joel E. Denny reported problems when Bison
27162         was configured with --enable-gcc-warnigs.
27163
27164 2006-11-10  Jim Meyering  <jim@meyering.net>
27165
27166         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
27167         relevant options in CFLAGS (like -O, -fno-inline) are taken into
27168         account.
27169
27170 2006-11-10  Jim Meyering  <jim@meyering.net>
27171
27172         * modules/inline: New file/module.
27173         * modules/xalloc (Files): Remove m4/inline.m4.
27174         (Depends-on): Add inline, instead.
27175         * modules/oset: Likewise.
27176         * modules/list: Likewise.
27177
27178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27179
27180         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
27181         Problem reported by Matthew Woehlke.
27182
27183 2006-11-09  Bruno Haible  <bruno@clisp.org>
27184
27185         * lib/tempname.c (gen_tempname): Remove variant that invokes
27186         __gen_tempname.
27187         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
27188         __gen_tempname.
27189
27190 2006-11-08  Bruno Haible  <bruno@clisp.org>
27191
27192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
27193         to 'yes' instead of 'cross-compiling'.
27194
27195 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         * lib/quotearg.h (quotearg_free): New decl.
27198         * lib/quotearg.c (quotearg_free): New function.
27199         (slot0, nslots, slotvec0, slotvec):
27200         Now file-scope so that quotearg_free can get at them.
27201
27202 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27203
27204         Sync from Automake.
27205         * build-aux/gnupload: Add missing 'gnu' to example URL.
27206         Report by Karl Berry.
27207
27208 2006-11-08  Bruno Haible  <bruno@clisp.org>
27209
27210         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
27211         Suggested by Paul Eggert.
27212
27213 2006-11-08  Jim Meyering  <jim@meyering.net>
27214
27215         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
27216         It's already included if !_LIBC.
27217         (fts_safe_changedir): Add a comment.
27218
27219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27220
27221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
27222         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
27223         Matthew Woehlke.
27224
27225         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
27226         definitions up, to avoid colliding with change below.
27227         (static_inline) [HAVE_INLINE]: New macro.
27228         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
27229         Provide extern decls when !HAVE_INLINE.  Do not define unless
27230         static_inline is defined, either by us or by xmalloc.c.  Use
27231         static_inline rather than static inline.
27232         (XCALLOC): Optimize sizeof(T) = 1 case.
27233         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
27234
27235 2006-11-07  Bruno Haible  <bruno@clisp.org>
27236
27237         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
27238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
27239         AC_C_INLINE.
27240         * modules/xalloc (Files): Add m4/inline.m4.
27241
27242 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27243
27244         * README: Fix typo.
27245         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
27246         (Miscellanous Notes): ...from this.
27247
27248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27249
27250         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27251         Mention that offsetof should be used instead of sizeof.
27252         From Bruno Haible.
27253
27254 2006-11-07  Bruno Haible  <bruno@clisp.org>
27255
27256         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
27257
27258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27259
27260         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27261         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
27262         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27263         (gl_tree_add_before, gl_tree_add_after):
27264         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
27265         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
27266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
27268         (gl_linked_add_after, gl_linked_add_at): Likewise.
27269         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
27270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27271         (gl_tree_add_before, gl_tree_add_after): Likewise.
27272         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
27273         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
27274         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27275
27276 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27277
27278         * lib/gl_oset.h: Use C comment style, not C++ comment style.
27279
27280 2006-11-06  Bruno Haible  <bruno@clisp.org>
27281
27282         * m4/inline.m4: New file.
27283         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
27284         * modules/list (Files): Add m4/inline.m4.
27285         * modules/oset (Files): Likewise.
27286
27287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27288
27289         * lib/idcache.c: Include <stddef.h>, for offsetof.
27290         (struct userid.name): Change from char * to a flexible array member.
27291         All uses changed.
27292         * modules/idcache (Depends-on): Add flexmember.
27293
27294         * MODULES.html.sh (Core language properties): New module flexmember.
27295         * modules/flexmember, m4/flexmember.m4: New files.
27296
27297         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
27298         inline functions that are identical with the old xnmalloc_inline,
27299         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
27300         that we can avoid some unnecessary integer multiplications and
27301         divisions in the common case where the element size is known at
27302         compile time.
27303         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
27304         needed.
27305         (xnboundedmalloc): Remove.
27306         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
27307         arguments, for consistency with rest of this header.
27308         (xcharalloc): Rewrite using XNMALLOC.
27309         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
27310         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
27311         versions have been moved to lib/xalloc.h and renamed to be the
27312         non-*_inline versions.
27313         (xmalloc, xrealloc): Implement without reference to the xnmalloc
27314         and xnrealloc functions, since those functions are now inline and
27315         now call us.
27316         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
27317         renaming described above.
27318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
27319         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
27320         captures the dependency in AC_C_INLINE.
27321
27322         New module canonicalize-lgpl, proposed by Charles Wilson in
27323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
27324         with a few small changes afterwards.
27325         * MODULES.html.sh (File system functions): New module
27326         canonicalize-lgpl.
27327         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
27328         and canonicalize_file_name.
27329         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
27330         * modules/canonicalize-lgpl: New files.
27331
27332 2006-11-05  Bruno Haible  <bruno@clisp.org>
27333
27334         * gnulib-tool (func_import, func_create_testdir): Create directories
27335         also for files in subdirectories of lib/.
27336
27337 2006-11-05  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
27340         ANSI C compliant.
27341
27342 2006-11-03  Bruno Haible  <bruno@clisp.org>
27343
27344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
27346         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
27347         (xnboundedmalloc): New inline function.
27348         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
27349         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
27350         xmalloc.
27351         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
27352         xmalloc.
27353         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
27354         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
27355         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
27356         xmalloc.
27357         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27358         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
27359         xmalloc.
27360         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
27361         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27362         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
27363         xmalloc.
27364         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27365         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
27366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27367         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
27368         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
27369         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
27370         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
27371
27372 2006-11-03  Bruno Haible  <bruno@clisp.org>
27373
27374         * lib/c-ctype.h [C++]: Define functions without name mangling.
27375         * lib/fwriteerror.h [C++]: Likewise.
27376         * lib/gcd.h [C++]: Likewise.
27377         * lib/linebreak.h [C++]: Likewise.
27378
27379 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27380
27381         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
27382         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
27383         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
27384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
27385         Check for functions and headers just once.
27386         Check for declaration of canonicalize_file_name.
27387         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
27388
27389 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27390
27391         * gnulib-tool (func_import): Fix typo in actioncmd.
27392
27393 2006-11-02  Bruno Haible  <bruno@clisp.org>
27394
27395         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
27396         newline sequence in the Makefile.am snippet as a space, like "make"
27397         does.
27398         Reported by Roger Persson <perrog@gmail.com>.
27399
27400 2006-11-01  Bruno Haible  <bruno@clisp.org>
27401
27402         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
27403         already declared in <string.h>.
27404         * lib/strcase.h (strncasecmp): Don't declare it if yes.
27405
27406 2006-11-01  Bruno Haible  <bruno@clisp.org>
27407
27408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
27409         * lib/strcase.h: Include <string.h>.
27410         (strcasecmp): Define to rpl_strcasecmp here.
27411
27412 2006-11-01  Bruno Haible  <bruno@clisp.org>
27413
27414         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
27415
27416 2006-11-01  Eric Blake  <ebb9@byu.net>
27417
27418         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
27419
27420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
27421
27422 2006-10-29  Bruno Haible  <bruno@clisp.org>
27423
27424         Make it compile in C++ mode.
27425         * lib/full-write.c (full_rw): Add a cast.
27426
27427 2006-11-01  Bruno Haible  <bruno@clisp.org>
27428
27429         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
27430         be POSIX compliant.
27431         Reported by Roger Persson <perrog@gmail.com>.
27432
27433 2006-11-01  Eric Blake  <ebb9@byu.net>
27434
27435         * lib/getopt_.h: Fix comments.
27436
27437 2006-10-31  Eric Blake  <ebb9@byu.net>
27438
27439         * modules/tmpdir (Depends-on): Add sys_stat.
27440         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
27441         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27442         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
27443         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
27444         tempname.
27445
27446 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27447
27448         Avoid some C++ diagnostics reported by Bruno Haible.
27449         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
27450         xmalloc.
27451         (quotearg_alloc): Use xcharalloc rather than xmalloc.
27452         (struct slotvec): Move to top level.
27453         (quotearg_n_options): Rewrite to avoid xmalloc.
27454         * lib/xalloc.h (xcharalloc): New function.
27455         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
27456         [defined __cplusplus]: Add function template that provides result
27457         type propagation.  This part of the change is from Bruno Haible.
27458
27459 2006-10-29  Bruno Haible  <bruno@clisp.org>
27460
27461         Make it compile in C++ mode.
27462         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
27463         * lib/strnlen1.c (strnlen1): Cast memchr result.
27464         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
27465         * lib/clean-temp.c (string_equals, string_hash): Add casts.
27466         (create_temp_dir): Rename local variable 'template'.
27467         (compile_csharp_using_sscli): Add cast.
27468         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
27469         * lib/findprog.c (find_in_path): Likewise.
27470         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
27471         * lib/wait-process.c (register_slave_subprocess): Likewise.
27472
27473 2006-10-22  Bruno Haible  <bruno@clisp.org>
27474
27475         * modules/tsearch: New file.
27476         * lib/tsearch.h: New file.
27477         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
27478         * m4/tsearch.m4: New file.
27479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
27480
27481 2006-10-29  Eric Blake  <ebb9@byu.net>
27482
27483         * lib/arcfour.c: Assume config.h.
27484         * lib/arctwo.c: Likewise.
27485         * lib/base64.c: Likewise.
27486         * lib/check-version.c: Likewise.
27487         * lib/crc.c: Likewise.
27488         * lib/des.c: Likewise.
27489         * lib/gc-gnulib.c: Likewise.
27490         * lib/gc-libgcrypt.c: Likewise.
27491         * lib/gc-pbkdf2-sha1.c: Likewise.
27492         * lib/getaddrinfo.c: Likewise.
27493         * lib/getdelim.c: Likewise.
27494         * lib/getline.c: Likewise.
27495         * lib/hmac-md5.c: Likewise.
27496         * lib/hmac-sha1.c: Likewise.
27497         * lib/iconvme.c: Likewise.
27498         * lib/md2.c: Likewise.
27499         * lib/md4.c: Likewise.
27500         * lib/memxor.c: Likewise.
27501         * lib/read-file.c: Likewise.
27502         * lib/readline.c: Likewise.
27503         * lib/rijndael-alg-fst.c: Likewise.
27504         * lib/rijndael-api-fst.c: Likewise.
27505         * lib/xgetdomainname.c: Likewise.
27506
27507 2006-10-28  Eric Blake  <ebb9@byu.net>
27508
27509         * lib/xstrndup.c: Assume config.h.
27510
27511 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27512
27513         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
27514         stat-macros.h is now for our own macros, whereas stat_h is for
27515         macros in the <sys/stat.h> name space.
27516         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
27517         (STAT_MACROS_H): Remove.
27518         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
27519         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
27520         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
27521         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
27522         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
27523         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
27524         Move these macros to ...
27525         * lib/stat_.h: here.  Don't include stat-macros.h.
27526         * lib/canonicalize.c: Don't include stat-macros.h.
27527         * lib/chown.c: Likewise.
27528         * lib/euidaccess.c: Likewise.
27529         * lib/file-type.c: Likewise.
27530         * lib/filemode.c: Likewise.
27531         * lib/glob.c: Likewise.
27532         * lib/isapipe.c: Likewise.
27533         * lib/lchown.c: Likewise.
27534         * lib/lstat.c: Likewise.
27535         * lib/mkdir-p.c: Likewise.
27536         * lib/rmdir.c: Likewise.
27537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
27538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
27539         unless mkdir isn't declared, to speed up 'configure'.
27540         Always create sys/stat.h, since it's unlikely any real sys/stat.h
27541         would define all the S_* symbols.
27542         * modules/canonicalize (Depends-on):
27543         Depend on sys_stat, not stat-macros.
27544         * modules/chown: Likewise.
27545         * modules/euidaccess: Likewise.
27546         * modules/filemode: Likewise.
27547         * modules/file-type: Likewise.
27548         * modules/glob: Likewise.
27549         * modules/isapipe: Likewise.
27550         * modules/lchown: Likewise.
27551         * modules/lstat: Likewise.
27552         * modules/mkancesdirs: Likewise.
27553         * modules/rmdir: Likewise.
27554         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27555         * modules/modechange: Likewise.
27556         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27557         (configure.ac): Remove gl_STAT_MACROS.
27558         * modules/sys_stat (Depends-on): Remove stat-macros.
27559
27560 2006-10-27  Bruno Haible  <bruno@clisp.org>
27561
27562         * m4/signed.m4: Remove file.
27563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27564         invocation.
27565         * modules/vasnprintf (Files): Remove m4/signed.m4.
27566
27567 2006-10-27  Bruno Haible  <bruno@clisp.org>
27568
27569         Update to GNU gettext 0.16.
27570         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27571         m4/inttypes-h.m4, m4/signed.m4.
27572         * m4/gettext.m4: Update to GNU gettext 0.16.
27573         * m4/intl.m4: New file, from GNU gettext.
27574         * m4/intldir.m4: New file, from GNU gettext.
27575         * config/srclist.txt: Update
27576
27577 2006-10-27  Eric Blake  <ebb9@byu.net>
27578
27579         * MODULES.html.sh: Document tempname.
27580         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27581         dependencies.
27582         (Files): Move lib/tempname.c...
27583         * modules/tempname: ...to this new module.
27584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27585         (gl_PREREQ_TEMPNAME): Move...
27586         * m4/tempname.m4: ...to this new file.
27587         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27588         * modules/sys_stat (Depends-on): Add stat-macros.
27589         * lib/stat_.h (includes): Pick up stat macros.
27590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27591         if stat macros are broken.
27592         * lib/tempname.c (includes): No need to include "stat-macros.h".
27593         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27594         (direxists, __path_search) [!_LIBC]: Don't compile these in
27595         gnulib; the tmpdir module covers that.
27596         * lib/tempname.h: New file.
27597
27598 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27599
27600         * COPYING: Explain how gnulib-tool converts licence headers.
27601         Almost all wording by Eric Blake.
27602
27603 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27604
27605         * lib/mbchar.h (is_basic_table): Make read-only.
27606         * lib/mbchar.c (is_basic_table): Likewise.
27607         Reported by John Darrington.
27608
27609 2006-10-25  Bruno Haible  <bruno@clisp.org>
27610
27611         * lib/progname.h (set_program_name): Undefine before defining.
27612
27613 2006-10-25  Bruno Haible  <bruno@clisp.org>
27614
27615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27616         false for non-gcc C++ compilers.
27617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27618
27619 2006-10-24  Bruno Haible  <bruno@clisp.org>
27620
27621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27622         iconv implementations like Irix iconv.
27623
27624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27625
27626         * modules/vararrays: New file.
27627         * m4/vararrays.m4: New file, taken from diffutils.
27628         * MODULES.html.sh: New module vararrays.
27629
27630 2006-10-24  Karl Berry  <karl@gnu.org>
27631
27632         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27633         Don't call GNU Unix.
27634
27635 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27636
27637         * users.txt: Add Libtool.
27638
27639         Sync from Libtool:
27640
27641         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27642
27643         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27644         to gnulib's policy of including config.h unconditionally.
27645
27646 2006-10-24  Bruno Haible  <bruno@clisp.org>
27647
27648         * modules/wcwidth (Files): Add m4/wint_t.m4.
27649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27650         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27651
27652 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27655         to pacify GCC with some -W flags enabled.  Problem reported by
27656         Bruno Haible.
27657
27658 2006-10-24  Jim Meyering  <jim@meyering.net>
27659
27660         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27661         Reported by Karl Berry.
27662
27663 2006-10-23  Bruno Haible  <bruno@clisp.org>
27664
27665         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27666
27667 2006-10-24  Bruno Haible  <bruno@clisp.org>
27668
27669         * lib/gl_list.h: Use C comment style, not C++ comment style.
27670
27671 2006-10-23  Eric Blake  <ebb9@byu.net>
27672
27673         * lib/getaddrinfo.c (includes): Add missing include.
27674
27675 2006-10-23  Bruno Haible  <bruno@clisp.org>
27676             Paul Eggert  <eggert@cs.ucla.edu>
27677
27678         Ability to rename obstack_free.
27679         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27680         obstack_free.
27681         (obstack_free): Invoke the __obstack_free macro.
27682         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27683
27684 2006-10-23  Bruno Haible  <bruno@clisp.org>
27685             Paul Eggert  <eggert@cs.ucla.edu>
27686
27687         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27688         __argc, __argv from the declaration. (They are defined as macros on
27689         mingw.)
27690
27691 2006-10-22  Bruno Haible  <bruno@clisp.org>
27692
27693         * doc/gnulib-intro.texi: New file.
27694         * doc/gnulib.texi: Include it.
27695
27696 2006-10-21  Bruno Haible  <bruno@clisp.org>
27697
27698         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27699         "Introduction", "Miscellanous Notes", "Particular Modules".
27700
27701 2006-10-21  Bruno Haible  <bruno@clisp.org>
27702
27703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27704         Change mostlyclean-local rule to avoid sh syntax error from bash
27705         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27706
27707 2006-10-23  Jim Meyering  <jim@meyering.net>
27708
27709         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27710         in place of snprintf.
27711
27712         * modules/inttostr (Files): Add lib/uinttostr.c.
27713         * lib/uinttostr.c (inttostr): New file/function.
27714         * lib/inttostr.h (uinttostr): Declare.
27715         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27716         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27717         Add uinttostr.
27718         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27719
27720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27721
27722         * lib/canonicalize.c (ELOOP): Define if not already defined.
27723         Problem reported by Bruno Haible in
27724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27725
27726 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27727
27728         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27729         Problem reported by Perry Smith and Ville Laurikari.
27730
27731         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27732         uses.
27733
27734 2006-10-19  Bruno Haible  <bruno@clisp.org>
27735
27736         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27737         for mingw.
27738
27739 2006-10-19  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27742         Needed for mingw.
27743
27744 2006-10-19  Bruno Haible  <bruno@clisp.org>
27745
27746         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27747
27748 2006-10-19  Bruno Haible  <bruno@clisp.org>
27749
27750         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27751         it.
27752
27753 2006-10-19  Bruno Haible  <bruno@clisp.org>
27754
27755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27756         invocation.
27757
27758 2006-10-19  Bruno Haible  <bruno@clisp.org>
27759
27760         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27761         mountlist by default.
27762
27763 2006-10-16  Bruno Haible  <bruno@clisp.org>
27764
27765         * lib/c-strstr.c: Include c-strstr.h.
27766
27767 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27768
27769         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27770         in a slash.
27771
27772 2006-10-18  Bruno Haible  <bruno@clisp.org>
27773
27774         * lib/lock.h [C++]: Wrap definitions in extern "C".
27775
27776 2006-10-18  Bruno Haible  <bruno@clisp.org>
27777
27778         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27779         gl_LIBOBJS list.
27780
27781 2006-10-18  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27784
27785 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27786
27787         * lib/xstrtol.h: Include gettext.h.
27788         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27789         Problem reported by Eric Blake.
27790         * modules/xstrtol (Depends-on): Add gettext-h.
27791
27792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27793
27794         * lib/strftime.c (advance): New macro.
27795         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27796         incomplete type, so you can't add 0 to it.  Problem and patch
27797         reported by Eelco Dolstra for dietlibc.
27798
27799 2006-10-18  Jim Meyering  <jim@meyering.net>
27800
27801         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27802         type for a local, and rename it: s/up/user_proc/.
27803
27804 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27805
27806         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27807         READ_UTMP_USER_PROCESS.
27808         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27809
27810 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27811
27812         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27813         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27814
27815 2006-10-17  Eric Blake  <ebb9@byu.net>
27816
27817         * lib/sigprocmask.c (sigprocmask): Fix typo.
27818
27819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27820
27821         * modules/clean-temp (Makefile.am): Don't add to make output...
27822         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27823         config.h.
27824
27825 2006-10-17  Bruno Haible  <bruno@clisp.org>
27826
27827         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27828         differently if DEFAULT_TEXT_DOMAIN is set.
27829
27830 2006-10-16  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/clean-temp.c: Include fwriteerror.h.
27833
27834 2006-10-16  Bruno Haible  <bruno@clisp.org>
27835
27836         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27837
27838 2006-10-16  Bruno Haible  <bruno@clisp.org>
27839
27840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27841         * lib/sigprocmask.h: Include <sys/types.h>.
27842         (sigset_t): Use the system's definition if present.
27843
27844 2006-10-17  Eric Blake  <ebb9@byu.net>
27845
27846         * lib/xvasprintf.c (includes): Assume config.h.
27847         * lib/xasprintf.c (includes): Likewise.
27848
27849 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27850
27851         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27852         at least as wide as intmax_t.
27853
27854 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27855
27856         (Imported from Automake.)
27857         * build-aux/gnupload: Update to version 1.1 of directive file.
27858
27859 2006-10-16  Eric Blake  <ebb9@byu.net>
27860
27861         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27862         match Automake 1.10a.
27863
27864 2006-10-14  Bruno Haible  <bruno@clisp.org>
27865
27866         * modules/sigprocmask: New file.
27867         * lib/sigprocmask.h: New file.
27868         * lib/sigprocmask.c: New file.
27869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27870         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27871         request sigprocmask.o.
27872         (gl_PREREQ_SIGPROCMASK): New macro.
27873         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27874         (Depends-on): Add sigprocmask.
27875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27876         gt_SIGNALBLOCKING. Test for 'raise' only once.
27877         * lib/fatal-signal.c: Include sigprocmask.h.
27878         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27879         unblock_fatal_signals): Define always.
27880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27881         sigprocmask.
27882
27883 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27884
27885         Sync from Automake.
27886         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27887         which incorrectly sets the mode of an existing destination
27888         directory.  In some cases the unpatched install-sh could do the
27889         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27890         system.  We hope this is rare in practice, but it's clearly worth
27891         fixing.  Problem reported by Alex Unleashed in
27892         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27893         Also, don't bother to check for -m bugs unless we're using -m;
27894         suggested by Stepan Kasal.
27895
27896 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27897
27898         Sync from Automake.
27899         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27900         `-c' flag, so they appear at the same position as in %FASTDEP%
27901         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27902         which ignores unknown options only after the first non-option.
27903         Bug report against M4 by Nelson H. F. Beebe.
27904
27905 2006-10-13  Jim Meyering  <jim@meyering.net>
27906
27907         Fix a bug in yesterday's change.
27908         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27909         p->fts_statp->st_dev would be used uninitialized.
27910         Ensures that we always call fts_stat on the very first entry.
27911         Miklos Szeredi reported that find -xdev stopped working.
27912
27913 2006-10-12  Bruno Haible  <bruno@clisp.org>
27914
27915         * gnulib-tool (func_get_automake_snippet): Append an automatically
27916         computed EXTRA_DIST augmentation.
27917         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27918         * modules/alloca-opt (Makefile.am): Likewise.
27919         * modules/allocsa (Makefile.am): Likewise.
27920         * modules/arcfour (Makefile.am): Likewise.
27921         * modules/arctwo (Makefile.am): Likewise.
27922         * modules/argmatch (Makefile.am): Likewise.
27923         * modules/argz (Makefile.am): Likewise.
27924         * modules/atexit (Makefile.am): Likewise.
27925         * modules/backupfile (Makefile.am): Likewise.
27926         * modules/byteswap (Makefile.am): Likewise.
27927         * modules/c-strtod (Makefile.am): Likewise.
27928         * modules/c-strtold (Makefile.am): Likewise.
27929         * modules/calloc (Makefile.am): Likewise.
27930         * modules/canon-host (Makefile.am): Likewise.
27931         * modules/canonicalize (Makefile.am): Likewise.
27932         * modules/chdir-long (Makefile.am): Likewise.
27933         * modules/chdir-safer (Makefile.am): Likewise.
27934         * modules/check-version (Makefile.am): Likewise.
27935         * modules/chown (Makefile.am): Likewise.
27936         * modules/cloexec (Makefile.am): Likewise.
27937         * modules/close-stream (Makefile.am): Likewise.
27938         * modules/closeout (Makefile.am): Likewise.
27939         * modules/crc (Makefile.am): Likewise.
27940         * modules/csharpexec (Makefile.am): Likewise.
27941         * modules/cycle-check (Makefile.am): Likewise.
27942         * modules/des (Makefile.am): Likewise.
27943         * modules/dev-ino (Makefile.am): Likewise.
27944         * modules/dirfd (Makefile.am): Likewise.
27945         * modules/dirname (Makefile.am): Likewise.
27946         * modules/dup2 (Makefile.am): Likewise.
27947         * modules/eealloc (Makefile.am): Likewise.
27948         * modules/error (Makefile.am): Likewise.
27949         * modules/euidaccess (Makefile.am): Likewise.
27950         * modules/exclude (Makefile.am): Likewise.
27951         * modules/exitfail (Makefile.am): Likewise.
27952         * modules/fcntl-safer (Makefile.am): Likewise.
27953         * modules/fcntl (Makefile.am): Likewise.
27954         * modules/file-type (Makefile.am): Likewise.
27955         * modules/fileblocks (Makefile.am): Likewise.
27956         * modules/filemode (Makefile.am): Likewise.
27957         * modules/filenamecat (Makefile.am): Likewise.
27958         * modules/fnmatch (Makefile.am): Likewise.
27959         * modules/fopen-safer (Makefile.am): Likewise.
27960         * modules/fpending (Makefile.am): Likewise.
27961         * modules/fprintftime (Makefile.am): Likewise.
27962         * modules/free (Makefile.am): Likewise.
27963         * modules/fsusage (Makefile.am): Likewise.
27964         * modules/ftruncate (Makefile.am): Likewise.
27965         * modules/fts (Makefile.am): Likewise.
27966         * modules/gc-arcfour (Makefile.am): Likewise.
27967         * modules/gc-des (Makefile.am): Likewise.
27968         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27969         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27970         * modules/gc-md4 (Makefile.am): Likewise.
27971         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27972         * modules/gc-sha1 (Makefile.am): Likewise.
27973         * modules/gc (Makefile.am): Likewise.
27974         * modules/getaddrinfo (Makefile.am): Likewise.
27975         * modules/getcwd (Makefile.am): Likewise.
27976         * modules/getdelim (Makefile.am): Likewise.
27977         * modules/getdomainname (Makefile.am): Likewise.
27978         * modules/getgroups (Makefile.am): Likewise.
27979         * modules/gethostname (Makefile.am): Likewise.
27980         * modules/gethrxtime (Makefile.am): Likewise.
27981         * modules/getline (Makefile.am): Likewise.
27982         * modules/getloadavg (Makefile.am): Likewise.
27983         * modules/getlogin_r (Makefile.am): Likewise.
27984         * modules/getndelim2 (Makefile.am): Likewise.
27985         * modules/getopt (Makefile.am): Likewise.
27986         * modules/getpagesize (Makefile.am): Likewise.
27987         * modules/getpass-gnu (Makefile.am): Likewise.
27988         * modules/getpass (Makefile.am): Likewise.
27989         * modules/getsubopt (Makefile.am): Likewise.
27990         * modules/gettime (Makefile.am): Likewise.
27991         * modules/gettimeofday (Makefile.am): Likewise.
27992         * modules/getugroups (Makefile.am): Likewise.
27993         * modules/getusershell (Makefile.am): Likewise.
27994         * modules/glob (Makefile.am): Likewise.
27995         * modules/group-member (Makefile.am): Likewise.
27996         * modules/hard-locale (Makefile.am): Likewise.
27997         * modules/hash (Makefile.am): Likewise.
27998         * modules/hmac-md5 (Makefile.am): Likewise.
27999         * modules/hmac-sha1 (Makefile.am): Likewise.
28000         * modules/human (Makefile.am): Likewise.
28001         * modules/idcache (Makefile.am): Likewise.
28002         * modules/imaxabs (Makefile.am): Likewise.
28003         * modules/imaxdiv (Makefile.am): Likewise.
28004         * modules/inet_ntop (Makefile.am): Likewise.
28005         * modules/inet_pton (Makefile.am): Likewise.
28006         * modules/intprops (Makefile.am): Likewise.
28007         * modules/inttostr (Makefile.am): Likewise.
28008         * modules/inttypes (Makefile.am): Likewise.
28009         * modules/isapipe (Makefile.am): Likewise.
28010         * modules/javaversion (Makefile.am): Likewise.
28011         * modules/lchmod (Makefile.am): Likewise.
28012         * modules/lchown (Makefile.am): Likewise.
28013         * modules/localcharset (Makefile.am): Likewise.
28014         * modules/long-options (Makefile.am): Likewise.
28015         * modules/lstat (Makefile.am): Likewise.
28016         * modules/malloc (Makefile.am): Likewise.
28017         * modules/mathl (Makefile.am): Likewise.
28018         * modules/mbchar (Makefile.am): Likewise.
28019         * modules/md2 (Makefile.am): Likewise.
28020         * modules/md4 (Makefile.am): Likewise.
28021         * modules/md5 (Makefile.am): Likewise.
28022         * modules/memcasecmp (Makefile.am): Likewise.
28023         * modules/memchr (Makefile.am): Likewise.
28024         * modules/memcmp (Makefile.am): Likewise.
28025         * modules/memcoll (Makefile.am): Likewise.
28026         * modules/memcpy (Makefile.am): Likewise.
28027         * modules/memmem (Makefile.am): Likewise.
28028         * modules/memmove (Makefile.am): Likewise.
28029         * modules/mempcpy (Makefile.am): Likewise.
28030         * modules/memrchr (Makefile.am): Likewise.
28031         * modules/memset (Makefile.am): Likewise.
28032         * modules/memxor (Makefile.am): Likewise.
28033         * modules/mkancesdirs (Makefile.am): Likewise.
28034         * modules/mkdir-p (Makefile.am): Likewise.
28035         * modules/mkdir (Makefile.am): Likewise.
28036         * modules/mkdtemp (Makefile.am): Likewise.
28037         * modules/mkstemp (Makefile.am): Likewise.
28038         * modules/mktime (Makefile.am): Likewise.
28039         * modules/modechange (Makefile.am): Likewise.
28040         * modules/mountlist (Makefile.am): Likewise.
28041         * modules/nanosleep (Makefile.am): Likewise.
28042         * modules/obstack (Makefile.am): Likewise.
28043         * modules/openat (Makefile.am): Likewise.
28044         * modules/pagealign_alloc (Makefile.am): Likewise.
28045         * modules/pathmax (Makefile.am): Likewise.
28046         * modules/physmem (Makefile.am): Likewise.
28047         * modules/poll (Makefile.am): Likewise.
28048         * modules/posixtm (Makefile.am): Likewise.
28049         * modules/posixver (Makefile.am): Likewise.
28050         * modules/putenv (Makefile.am): Likewise.
28051         * modules/quote (Makefile.am): Likewise.
28052         * modules/quotearg (Makefile.am): Likewise.
28053         * modules/raise (Makefile.am): Likewise.
28054         * modules/read-file (Makefile.am): Likewise.
28055         * modules/readline (Makefile.am): Likewise.
28056         * modules/readlink (Makefile.am): Likewise.
28057         * modules/readtokens (Makefile.am): Likewise.
28058         * modules/readutmp (Makefile.am): Likewise.
28059         * modules/realloc (Makefile.am): Likewise.
28060         * modules/regex (Makefile.am): Likewise.
28061         * modules/rename-dest-slash (Makefile.am): Likewise.
28062         * modules/rename (Makefile.am): Likewise.
28063         * modules/rijndael (Makefile.am): Likewise.
28064         * modules/rmdir (Makefile.am): Likewise.
28065         * modules/rpmatch (Makefile.am): Likewise.
28066         * modules/safe-read (Makefile.am): Likewise.
28067         * modules/safe-write (Makefile.am): Likewise.
28068         * modules/same-inode (Makefile.am): Likewise.
28069         * modules/same (Makefile.am): Likewise.
28070         * modules/save-cwd (Makefile.am): Likewise.
28071         * modules/savedir (Makefile.am): Likewise.
28072         * modules/setenv (Makefile.am): Likewise.
28073         * modules/settime (Makefile.am): Likewise.
28074         * modules/sha1 (Makefile.am): Likewise.
28075         * modules/sig2str (Makefile.am): Likewise.
28076         * modules/snprintf (Makefile.am): Likewise.
28077         * modules/stat-macros (Makefile.am): Likewise.
28078         * modules/stat-time (Makefile.am): Likewise.
28079         * modules/stdbool (Makefile.am): Likewise.
28080         * modules/stdint (Makefile.am): Likewise.
28081         * modules/stdlib-safer (Makefile.am): Likewise.
28082         * modules/stpcpy (Makefile.am): Likewise.
28083         * modules/stpncpy (Makefile.am): Likewise.
28084         * modules/strcase (Makefile.am): Likewise.
28085         * modules/strcasestr (Makefile.am): Likewise.
28086         * modules/strchrnul (Makefile.am): Likewise.
28087         * modules/strcspn (Makefile.am): Likewise.
28088         * modules/strdup (Makefile.am): Likewise.
28089         * modules/strerror (Makefile.am): Likewise.
28090         * modules/strftime (Makefile.am): Likewise.
28091         * modules/strndup (Makefile.am): Likewise.
28092         * modules/strnlen (Makefile.am): Likewise.
28093         * modules/strpbrk (Makefile.am): Likewise.
28094         * modules/strsep (Makefile.am): Likewise.
28095         * modules/strstr (Makefile.am): Likewise.
28096         * modules/strtod (Makefile.am): Likewise.
28097         * modules/strtoimax (Makefile.am): Likewise.
28098         * modules/strtok_r (Makefile.am): Likewise.
28099         * modules/strtol (Makefile.am): Likewise.
28100         * modules/strtoll (Makefile.am): Likewise.
28101         * modules/strtoul (Makefile.am): Likewise.
28102         * modules/strtoull (Makefile.am): Likewise.
28103         * modules/strtoumax (Makefile.am): Likewise.
28104         * modules/strverscmp (Makefile.am): Likewise.
28105         * modules/sys_socket (Makefile.am): Likewise.
28106         * modules/sys_stat (Makefile.am): Likewise.
28107         * modules/sysexits (Makefile.am): Likewise.
28108         * modules/time_r (Makefile.am): Likewise.
28109         * modules/timegm (Makefile.am): Likewise.
28110         * modules/timespec (Makefile.am): Likewise.
28111         * modules/tmpfile-safer (Makefile.am): Likewise.
28112         * modules/trim (Makefile.am): Likewise.
28113         * modules/unistd-safer (Makefile.am): Likewise.
28114         * modules/unlinkdir (Makefile.am): Likewise.
28115         * modules/unlocked-io (Makefile.am): Likewise.
28116         * modules/userspec (Makefile.am): Likewise.
28117         * modules/utime (Makefile.am): Likewise.
28118         * modules/utimecmp (Makefile.am): Likewise.
28119         * modules/utimens (Makefile.am): Likewise.
28120         * modules/vasnprintf (Makefile.am): Likewise.
28121         * modules/vasprintf (Makefile.am): Likewise.
28122         * modules/vsnprintf (Makefile.am): Likewise.
28123         * modules/xalloc (Makefile.am): Likewise.
28124         * modules/xgetcwd (Makefile.am): Likewise.
28125         * modules/xnanosleep (Makefile.am): Likewise.
28126         * modules/xreadlink (Makefile.am): Likewise.
28127         * modules/xstrtod (Makefile.am): Likewise.
28128         * modules/xstrtol (Makefile.am): Likewise.
28129         * modules/xstrtold (Makefile.am): Likewise.
28130         * modules/yesno (Makefile.am): Likewise.
28131         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
28132
28133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28134
28135         * modules/error (Makefile.am): Distribute files through
28136         EXTRA_DIST, not lib_SOURCES.
28137
28138 2006-10-12  Eric Blake  <ebb9@byu.net>
28139
28140         * modules/error (Makefile.am): Distribute files in /lib.
28141         * modules/obstack (Makefile.am): Likewise.
28142
28143 2006-10-12  Bruno Haible  <bruno@clisp.org>
28144
28145         * modules/acl (Makefile.am): Distribute all files in lib/ through
28146         EXTRA_DIST.
28147         * modules/arcfour (Makefile.am): Likewise.
28148         * modules/arctwo (Makefile.am): Likewise.
28149         * modules/argmatch (Makefile.am): Likewise.
28150         * modules/argz (Makefile.am): Likewise.
28151         * modules/atexit (Makefile.am): Likewise.
28152         * modules/backupfile (Makefile.am): Likewise.
28153         * modules/c-strtod (Makefile.am): Likewise.
28154         * modules/c-strtold (Makefile.am): Likewise.
28155         * modules/calloc (Makefile.am): Likewise.
28156         * modules/canon-host (Makefile.am): Likewise.
28157         * modules/canonicalize (Makefile.am): Likewise.
28158         * modules/chdir-long (Makefile.am): Likewise.
28159         * modules/chdir-safer (Makefile.am): Likewise.
28160         * modules/check-version (Makefile.am): Likewise.
28161         * modules/chown (Makefile.am): Likewise.
28162         * modules/cloexec (Makefile.am): Likewise.
28163         * modules/close-stream (Makefile.am): Likewise.
28164         * modules/closeout (Makefile.am): Likewise.
28165         * modules/crc (Makefile.am): Likewise.
28166         * modules/cycle-check (Makefile.am): Likewise.
28167         * modules/des (Makefile.am): Likewise.
28168         * modules/dirfd (Makefile.am): Likewise.
28169         * modules/dirname (Makefile.am): Likewise.
28170         * modules/dup2 (Makefile.am): Likewise.
28171         * modules/euidaccess (Makefile.am): Likewise.
28172         * modules/exclude (Makefile.am): Likewise.
28173         * modules/exitfail (Makefile.am): Likewise.
28174         * modules/fcntl-safer (Makefile.am): Likewise.
28175         * modules/file-type (Makefile.am): Likewise.
28176         * modules/fileblocks (Makefile.am): Likewise.
28177         * modules/filemode (Makefile.am): Likewise.
28178         * modules/filenamecat (Makefile.am): Likewise.
28179         * modules/fnmatch (Makefile.am): Likewise.
28180         * modules/fopen-safer (Makefile.am): Likewise.
28181         * modules/fpending (Makefile.am): Likewise.
28182         * modules/fprintftime (Makefile.am): Likewise.
28183         * modules/free (Makefile.am): Likewise.
28184         * modules/fsusage (Makefile.am): Likewise.
28185         * modules/ftruncate (Makefile.am): Likewise.
28186         * modules/fts (Makefile.am): Likewise.
28187         * modules/gc (Makefile.am): Likewise.
28188         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
28189         * modules/getaddrinfo (Makefile.am): Likewise.
28190         * modules/getcwd (Makefile.am): Likewise.
28191         * modules/getdelim (Makefile.am): Likewise.
28192         * modules/getdomainname (Makefile.am): Likewise.
28193         * modules/getgroups (Makefile.am): Likewise.
28194         * modules/gethostname (Makefile.am): Likewise.
28195         * modules/gethrxtime (Makefile.am): Likewise.
28196         * modules/getline (Makefile.am): Likewise.
28197         * modules/getloadavg (Makefile.am): Likewise.
28198         * modules/getlogin_r (Makefile.am): Likewise.
28199         * modules/getopt (Makefile.am): Likewise.
28200         * modules/getpass (Makefile.am): Likewise.
28201         * modules/getpass-gnu (Makefile.am): Likewise.
28202         * modules/getsubopt (Makefile.am): Likewise.
28203         * modules/gettime (Makefile.am): Likewise.
28204         * modules/gettimeofday (Makefile.am): Likewise.
28205         * modules/getugroups (Makefile.am): Likewise.
28206         * modules/getusershell (Makefile.am): Likewise.
28207         * modules/glob (Makefile.am): Likewise.
28208         * modules/group-member (Makefile.am): Likewise.
28209         * modules/hard-locale (Makefile.am): Likewise.
28210         * modules/hash (Makefile.am): Likewise.
28211         * modules/hmac-md5 (Makefile.am): Likewise.
28212         * modules/hmac-sha1 (Makefile.am): Likewise.
28213         * modules/human (Makefile.am): Likewise.
28214         * modules/idcache (Makefile.am): Likewise.
28215         * modules/imaxabs (Makefile.am): Likewise.
28216         * modules/imaxdiv (Makefile.am): Likewise.
28217         * modules/inet_ntop (Makefile.am): Likewise.
28218         * modules/inet_pton (Makefile.am): Likewise.
28219         * modules/inttostr (Makefile.am): Likewise.
28220         * modules/isapipe (Makefile.am): Likewise.
28221         * modules/lchown (Makefile.am): Likewise.
28222         * modules/long-options (Makefile.am): Likewise.
28223         * modules/lstat (Makefile.am): Likewise.
28224         * modules/malloc (Makefile.am): Likewise.
28225         * modules/mathl (Makefile.am): Likewise.
28226         * modules/mbchar (Makefile.am): Likewise.
28227         * modules/md2 (Makefile.am): Likewise.
28228         * modules/md4 (Makefile.am): Likewise.
28229         * modules/md5 (Makefile.am): Likewise.
28230         * modules/memcasecmp (Makefile.am): Likewise.
28231         * modules/memchr (Makefile.am): Likewise.
28232         * modules/memcmp (Makefile.am): Likewise.
28233         * modules/memcoll (Makefile.am): Likewise.
28234         * modules/memcpy (Makefile.am): Likewise.
28235         * modules/memmem (Makefile.am): Likewise.
28236         * modules/memmove (Makefile.am): Likewise.
28237         * modules/mempcpy (Makefile.am): Likewise.
28238         * modules/memrchr (Makefile.am): Likewise.
28239         * modules/memset (Makefile.am): Likewise.
28240         * modules/memxor (Makefile.am): Likewise.
28241         * modules/mkancesdirs (Makefile.am): Likewise.
28242         * modules/mkdir (Makefile.am): Likewise.
28243         * modules/mkdir-p (Makefile.am): Likewise.
28244         * modules/mkdtemp (Makefile.am): Likewise.
28245         * modules/mkstemp (Makefile.am): Likewise.
28246         * modules/mktime (Makefile.am): Likewise.
28247         * modules/modechange (Makefile.am): Likewise.
28248         * modules/mountlist (Makefile.am): Likewise.
28249         * modules/nanosleep (Makefile.am): Likewise.
28250         * modules/openat (Makefile.am): Likewise.
28251         * modules/pagealign_alloc (Makefile.am): Likewise.
28252         * modules/physmem (Makefile.am): Likewise.
28253         * modules/poll (Makefile.am): Likewise.
28254         * modules/posixtm (Makefile.am): Likewise.
28255         * modules/posixver (Makefile.am): Likewise.
28256         * modules/putenv (Makefile.am): Likewise.
28257         * modules/quote (Makefile.am): Likewise.
28258         * modules/quotearg (Makefile.am): Likewise.
28259         * modules/raise (Makefile.am): Likewise.
28260         * modules/read-file (Makefile.am): Likewise.
28261         * modules/readline (Makefile.am): Likewise.
28262         * modules/readlink (Makefile.am): Likewise.
28263         * modules/readtokens (Makefile.am): Likewise.
28264         * modules/readutmp (Makefile.am): Likewise.
28265         * modules/realloc (Makefile.am): Likewise.
28266         * modules/regex (Makefile.am): Likewise.
28267         * modules/rename (Makefile.am): Likewise.
28268         * modules/rename-dest-slash (Makefile.am): Likewise.
28269         * modules/rijndael (Makefile.am): Likewise.
28270         * modules/rmdir (Makefile.am): Likewise.
28271         * modules/rpmatch (Makefile.am): Likewise.
28272         * modules/safe-read (Makefile.am): Likewise.
28273         * modules/safe-write (Makefile.am): Likewise.
28274         * modules/same (Makefile.am): Likewise.
28275         * modules/save-cwd (Makefile.am): Likewise.
28276         * modules/savedir (Makefile.am): Likewise.
28277         * modules/setenv (Makefile.am): Likewise.
28278         * modules/settime (Makefile.am): Likewise.
28279         * modules/sha1 (Makefile.am): Likewise.
28280         * modules/sig2str (Makefile.am): Likewise.
28281         * modules/snprintf (Makefile.am): Likewise.
28282         * modules/stdlib-safer (Makefile.am): Likewise.
28283         * modules/stpcpy (Makefile.am): Likewise.
28284         * modules/stpncpy (Makefile.am): Likewise.
28285         * modules/strcase (Makefile.am): Likewise.
28286         * modules/strcasestr (Makefile.am): Likewise.
28287         * modules/strchrnul (Makefile.am): Likewise.
28288         * modules/strcspn (Makefile.am): Likewise.
28289         * modules/strdup (Makefile.am): Likewise.
28290         * modules/strerror (Makefile.am): Likewise.
28291         * modules/strftime (Makefile.am): Likewise.
28292         * modules/strndup (Makefile.am): Likewise.
28293         * modules/strnlen (Makefile.am): Likewise.
28294         * modules/strpbrk (Makefile.am): Likewise.
28295         * modules/strsep (Makefile.am): Likewise.
28296         * modules/strstr (Makefile.am): Likewise.
28297         * modules/strtod (Makefile.am): Likewise.
28298         * modules/strtoimax (Makefile.am): Likewise.
28299         * modules/strtok_r (Makefile.am): Likewise.
28300         * modules/strtol (Makefile.am): Likewise.
28301         * modules/strtoll (Makefile.am): Likewise.
28302         * modules/strtoul (Makefile.am): Likewise.
28303         * modules/strtoull (Makefile.am): Likewise.
28304         * modules/strtoumax (Makefile.am): Likewise.
28305         * modules/strverscmp (Makefile.am): Likewise.
28306         * modules/time_r (Makefile.am): Likewise.
28307         * modules/timegm (Makefile.am): Likewise.
28308         * modules/tmpfile-safer (Makefile.am): Likewise.
28309         * modules/unistd-safer (Makefile.am): Likewise.
28310         * modules/unlinkdir (Makefile.am): Likewise.
28311         * modules/userspec (Makefile.am): Likewise.
28312         * modules/utime (Makefile.am): Likewise.
28313         * modules/utimecmp (Makefile.am): Likewise.
28314         * modules/utimens (Makefile.am): Likewise.
28315         * modules/vasnprintf (Makefile.am): Likewise.
28316         * modules/vasprintf (Makefile.am): Likewise.
28317         * modules/vsnprintf (Makefile.am): Likewise.
28318         * modules/xalloc (Makefile.am): Likewise.
28319         * modules/xgetcwd (Makefile.am): Likewise.
28320         * modules/xnanosleep (Makefile.am): Likewise.
28321         * modules/xreadlink (Makefile.am): Likewise.
28322         * modules/xstrtod (Makefile.am): Likewise.
28323         * modules/xstrtol (Makefile.am): Likewise.
28324         * modules/xstrtold (Makefile.am): Likewise.
28325         * modules/yesno (Makefile.am): Likewise.
28326
28327 2006-10-12  Jim Meyering  <jim@meyering.net>
28328
28329         * m4/getloadavg.m4: Revert the change below.
28330
28331         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
28332         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
28333         fail with a symlink, which is what coreutils' ./bootstrap now
28334         creates by default.
28335
28336 2006-10-12  Bruno Haible  <bruno@clisp.org>
28337
28338         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
28339         mingw.
28340         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
28341         MSVC and mingw explicitly.
28342
28343 2006-10-11  Simon Josefsson  <jas@extundo.com>
28344             Bruno Haible  <bruno@clisp.org>
28345
28346         Add support for multiple gnulib-tool invocations in the scope of a
28347         single configure.ac file.
28348         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
28349         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
28350         with the same contents as the _LIBADD variable.
28351         (func_emit_initmacro_start, func_emit_initmacro_end,
28352         func_emit_initmacro_done): New functions.
28353         (func_import, func_create_testdir): Invoke them. Allow the identifiers
28354         gl_LIBOBJS and gl_LTLIBOBJS.
28355
28356 2006-10-11  Bruno Haible  <bruno@clisp.org>
28357
28358         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
28359         (func_create_testdir): Don't create po/Makefile.am, don't invoke
28360         autoreconf. Instead, invoke autopoint explicitly but move back the
28361         *.m4 files from gnulib.
28362
28363 2006-10-11  Bruno Haible  <bruno@clisp.org>
28364
28365         * gnulib-tool (func_usage): Make module names after --create-testdir
28366         optional.
28367         (func_create_testdir): If no module was specified, use nearly all
28368         modules.
28369
28370 2006-10-12  Jim Meyering  <jim@meyering.net>
28371
28372         Big performance improvement for fts-based tools that use FTS_NOSTAT.
28373         Avoid spurious inode-mismatch problems on non-POSIX file systems.
28374         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
28375         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
28376         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
28377         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
28378         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
28379         (fts_set_stat_required): New function.
28380         (fts_open): Defer the calls to fts_stat, if possible or requested.
28381         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
28382         into fts_stat itself.
28383         (fts_read): Perform any required (deferred) fts_stat call.
28384         (fts_build): Likewise, for the directory we're about to open and read.
28385         In the readdir loop, carefully decide whether each entry will require
28386         an eventual call to fts_stat, using dirent.d_type info if available.
28387         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
28388         a command line argument into this function.  Update all callers.
28389         Map a return value of FTS_DOT to FTS_D for a command line argument.
28390         * modules/fts (Depends-on): Add d-type.  Alphabetize.
28391         Thanks to Miklos Szeredi for his tenacity and for the initial
28392         bug report about "find" failing on a FUSE-based file system.
28393
28394         * lib/fts.c (fts_open): Use consistent indentation.
28395
28396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28397
28398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
28399         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
28400         reported by Jim Meyering.  All uses of cache variables renamed
28401         to match Autoconf's.
28402         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
28403         the other one.
28404
28405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28406         Fix misspelling in diagnostic.
28407
28408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28409
28410         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
28411         defined.  Problem reported by Matthew Woehlke.
28412
28413         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
28414         Add support for Tandem NonStop R series.
28415         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
28416         Use new macro.
28417
28418         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
28419         (has_trailing_slash): Omit size arg; all callers changed.
28420         Omit 'inline', since it doesn't help performance and we'd
28421         need to configure it.
28422         Don't count //, ///, etc. as having a trailing slash.
28423         As a side effect, this removes a C99ism reported by Matthew Woehlke.
28424         (rpl_rename_dest_slash): On failure, use rename's errno rather
28425         than (in some cases) an incorrect or junk errno.
28426         Simplify code by removing need to compute length; this does
28427         cause it to make two passes instead of one over the file name,
28428         but it's worth it.
28429
28430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
28431         change, since Autoconf's version may no longer be appropriate now
28432         that we are using CVS Autoconf's version.  Add support for Tandem.
28433
28434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28435             Bruno Haible  <bruno@clisp.org>
28436
28437         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
28438         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
28439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
28440         gl_AC_TYPE_LONG_LONG.
28441
28442         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
28443         instead of HAVE_LONG_LONG.
28444         * lib/printf-args.c (printf_fetchargs): Likewise.
28445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28446         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
28448         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
28449         gl_AC_TYPE_LONG_LONG.
28450
28451 2006-10-11  Bruno Haible  <bruno@clisp.org>
28452
28453         * m4/longlong.m4: Add comments.
28454         * m4/ulonglong.m4: Likewise.
28455
28456 2006-10-10  Bruno Haible  <bruno@clisp.org>
28457
28458         Make it possible to #define stpcpy, strdup to aliases.
28459         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
28460         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
28461
28462 2006-10-10  Bruno Haible  <bruno@clisp.org>
28463
28464         Make it possible to #define gcd to an alias.
28465         * lib/gcd.c: Include config.h.
28466
28467 2006-10-10  Bruno Haible  <bruno@clisp.org>
28468
28469         Make it possible to #define c_isascii to an alias.
28470         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
28471         defined. Undefine the macros before defining them, to avoid gcc
28472         warnings.
28473         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
28474         define NO_C_CTYPE_MACROS early.
28475
28476 2006-10-10  Bruno Haible  <bruno@clisp.org>
28477
28478         Make it possible to #define set_program_name to an alias.
28479         * lib/progname.c: Don't undefine set_program_name; instead, undefine
28480         ENABLE_RELOCATABLE early.
28481
28482 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28483
28484         Port to Tandem NSK OSS, which has 64-bit signed int but at most
28485         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
28486         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
28487         More generally, don't assume that 64-bit signed int is available
28488         if unsigned int is, and vice versa.
28489         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
28490         unsigned symbols, not on their signed counterparts.
28491         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
28492         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
28493         (UINT64_C, UINTMAX_C):
28494         Likewise.
28495         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
28496         unsigned counterparts.
28497         (Have_long_long, Unsigned): New macros.
28498         (Int): Renamed from INT.
28499         (strtoimax): Use the new macros.
28500         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
28501         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
28502         * modules/inttypes (inttypes.h): Substitute
28503         HAVE_UNSIGNED_LONG_LONG_INT.
28504         * modules/stdint (stdint.h): Likewise.
28505         (Files): Add m4/ulonglong.m4.
28506
28507 2006-10-10  Bruno Haible  <bruno@clisp.org>
28508
28509         Fix a gcc -Wshadow warning.
28510         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
28511         to 'bucket'.
28512         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
28513         gl_linked_indexof_from_to): Likewise.
28514         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
28515         Likewise.
28516         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
28517         Likewise.
28518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
28519         Reported by Eric Blake.
28520
28521 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28522
28523         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
28524         for NetBSD.  Problem reported by Bruno Haible.
28525
28526 2006-10-09  Jim Meyering  <jim@meyering.net>
28527
28528         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
28529         Patch from Bruno Haible.
28530
28531 2006-10-09  Jim Meyering  <jim@meyering.net>
28532
28533         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28534         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
28535         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
28536
28537 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28538
28539         Don't include <config.h> twice; this doesn't work in some cases,
28540         e.g., when config.h has "#define intmax_t long long int" and
28541         we include <config.h>, <inttypes.h>, <config.h> in that order.
28542         Problem reported by Matthew Woehlke in:
28543         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
28544         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
28545         * lib/fts-cycle.c: Don't include config.h.
28546         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
28547         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28548         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
28549         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
28550         inttypes.h.
28551         * lib/xstrtoumax.c: Likewise.
28552         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28553         __strtol and the like, so that this module is more like its siblings.
28554         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28555         Remove; no longer needed now that we assume gnulib inttypes.h.
28556
28557 2006-10-08  Bruno Haible  <bruno@clisp.org>
28558
28559         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28560         option.
28561
28562 2006-10-07  Jim Meyering  <jim@meyering.net>
28563
28564         * modules/inttypes (inttypes.h): Revert what seems to have been
28565         an inadvertent part of today's change: use "|", not "/" in the
28566         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28567
28568 2006-10-07  Bruno Haible  <bruno@clisp.org>
28569
28570         * modules/sublist: New file.
28571
28572 2006-10-07  Bruno Haible  <bruno@clisp.org>
28573
28574         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28575         * modules/argz (argz.h): Likewise.
28576         * modules/arpa_inet (arpa/inet.h): Likewise.
28577         * modules/byteswap (byteswap.h): Likewise.
28578         * modules/configmake (configmake.h): Likewise.
28579         * modules/fcntl (fcntl.h): Likewise.
28580         * modules/fnmatch (fnmatch.h): Likewise.
28581         * modules/getopt (getopt.h): Likewise.
28582         * modules/glob (glob.h): Likewise.
28583         * modules/inttypes (inttypes.h): Likewise.
28584         * modules/netinet_in (netinet/in.h): Likewise.
28585         * modules/poll (poll.h): Likewise.
28586         * modules/stdbool (stdbool.h): Likewise.
28587         * modules/stdint (stdint.h): Likewise.
28588         * modules/sys_select (sys/select.h): Likewise.
28589         * modules/sys_socket (sys/socket.h): Likewise.
28590         * modules/sys_stat (sys/stat.h): Likewise.
28591         * modules/sysexits (sysexits.h): Likewise.
28592         * modules/unistd (unistd.h): Likewise.
28593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28594         Add a "DO NOT EDIT" comment to the generated file.
28595         (func_import): Likewise for gnulib-comp.m4.
28596
28597 2006-10-07  Bruno Haible  <bruno@clisp.org>
28598
28599         * lib/gl_sublist.h: New file.
28600         * lib/gl_sublist.c: New file.
28601
28602 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28603
28604         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28605         name (relative to the original working directory) and the file
28606         name component (relative to the temporary working directory).  All
28607         callers changed.
28608         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28609         * lib/mkdir-p.c (make_dir_parents): Likewise.
28610         * lib/mkdir-p.h (make_dir_parents): Likewise.
28611
28612 2006-10-06  Eric Blake  <ebb9@byu.net>
28613
28614         Define several macros for use by the clean-temp module.
28615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28618
28619         * lib/clean-temp.h (close_stream_temp): New declaration.
28620         * lib/clean-temp.c (includes): Pull in headers according to what
28621         other modules are in use.
28622         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28623
28624 2006-10-06  Bruno Haible  <bruno@clisp.org>
28625
28626         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28627         instead of fopen, fwriteerror.
28628
28629 2006-10-06  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28632         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28633         int.
28634         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28635         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28636         Return an error indicator.
28637         Suggested by Eric Blake.
28638
28639 2006-10-06  Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28642         Reported by Eric Blake.
28643
28644 2006-10-06  Bruno Haible  <bruno@clisp.org>
28645
28646         * modules/closeout (Description): Mention stderr too.
28647
28648 2006-10-06  Bruno Haible  <bruno@clisp.org>
28649         and Paul Eggert  <eggert@cs.ucla.edu>
28650
28651         * lib/closeout.c (close_stdout): Also close stderr.
28652         * lib/closeout.h: Update comment.
28653
28654 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28655
28656         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28657         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28658         * lib/dirchownmod.c: Include lchown.h.
28659         * lib/lchown.c: Don't include files that lchown.h now includes.
28660         Don't declare chown, since lchown.h now does that.
28661         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28662         (lchown): Define to rpl_chown if lchown is declared but
28663         does not exist.  Declare using a prototype if lchown is not
28664         declared.  Add a copyright notice.
28665         * lib/mkstemp.h: Include <unistd.h>.
28666         * lib/openat.c: Include lchown.h.
28667
28668         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28669         we now test for that separately.
28670         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28671         rather than O_NOFOLLOW, when testing whether it's possible to
28672         avoid a race condition reliably.
28673         * lib/savewd.c (savewd_chdir): Likewise.
28674
28675         Remove macros that are no longer needed now that stdint.h is
28676         reliable.
28677         * lib/fsusage.c (UINTMAX_MAX): Remove.
28678         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28679         * lib/utimecmp.c (SIZE_MAX): Remove.
28680
28681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28682
28683         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28684         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28685         O_NOATIME works.
28686
28687 2006-10-05  Bruno Haible  <bruno@clisp.org>
28688
28689         * lib/gl_list.h (gl_sortedlist_search_from_to,
28690         gl_sortedlist_indexof_from_to): New declarations.
28691         (gl_list_implementation): New fields sortedlist_search_from_to,
28692         sortedlist_indexof_from_to.
28693         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28694         inline functions.
28695         * lib/gl_list.c (gl_sortedlist_search_from_to,
28696         gl_sortedlist_indexof_from_to): New functions.
28697         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28698         function.
28699         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28700         (gl_array_sortedlist_search_from_to): New function.
28701         (gl_array_list_implementation): Update.
28702         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28703         function.
28704         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28705         (gl_carray_sortedlist_search_from_to): New function.
28706         (gl_carray_list_implementation): Update.
28707         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28708         gl_linked_sortedlist_indexof_from_to): New functions.
28709         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28710         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28711         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28712         gl_tree_sortedlist_indexof_from_to): New functions.
28713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28715         Update.
28716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28717         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28718         Update.
28719
28720 2006-10-05  Bruno Haible  <bruno@clisp.org>
28721
28722         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28723         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28724         (struct gl_list_implementation): Add fields search_from_to,
28725         indexof_from_to. Remove fields search, indexof.
28726         (gl_list_search): Use the search_from_to method.
28727         (gl_list_search_from, gl_list_search_from_to): New functions.
28728         (gl_list_indexof): Use the indexof_from_to method.
28729         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28730         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28731         (gl_list_search_from, gl_list_search_from_to): New functions.
28732         (gl_list_indexof): Use the indexof_from_to method.
28733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28734         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28735         gl_array_indexof. Add start_index, end_index arguments.
28736         (gl_array_search_from_to): Renamed from gl_array_search. Add
28737         start_index, end_index arguments.
28738         (gl_array_remove, gl_array_list_implementation): Update.
28739         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28740         gl_carray_indexof. Add start_index, end_index arguments.
28741         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28742         start_index, end_index arguments.
28743         (gl_carray_remove, gl_carray_list_implementation): Update.
28744         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28745         gl_linked_search. Add start_index, end_index arguments.
28746         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28747         start_index, end_index arguments.
28748         (gl_linked_remove): Update.
28749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28751         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28752         field to 'size_t'.
28753         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28754         gl_tree_search. Add start_index, end_index arguments.
28755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28756         start_index, end_index arguments.
28757         (gl_tree_remove): Update.
28758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28760         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28761         function.
28762         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28763         gl_tree_search. Add start_index, end_index arguments.
28764         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28765         start_index, end_index arguments.
28766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28767         Update.
28768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28769
28770 2006-10-05  Bruno Haible  <bruno@clisp.org>
28771
28772         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28773
28774         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28775         fwriteerror_temp): New declarations.
28776         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28777         (descriptors): New variable.
28778         (cleanup): First, close the descriptors.
28779         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28780         fclose_temp, fwriteerror_temp): New functions.
28781
28782 2006-10-04  Jim Meyering  <jim@meyering.net>
28783
28784         * lib/fts.c (fts_open): Tiny comment change.
28785
28786 2006-10-04  Bruno Haible  <bruno@clisp.org>
28787
28788         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28790         gl_LOCK_BODY.
28791         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28792         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28793         gl_LOCK_EARLY_BODY.
28794         (gl_LOCK): Require gl_LOCK_BODY.
28795
28796 2006-10-04  Bruno Haible  <bruno@clisp.org>
28797
28798         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28799         (gl_oset_search_atleast): New declaration.
28800         (struct gl_oset_implementation): Add field 'search_atleast'.
28801         (gl_oset_search_atleast): New inline function.
28802         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28803         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28804         (gl_array_oset_implementation): Update.
28805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28806         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28807         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28808
28809 2006-10-04  Bruno Haible  <bruno@clisp.org>
28810
28811         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28812
28813 2006-10-03  Bruno Haible  <bruno@clisp.org>
28814
28815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28816         from gl_avltreehash_list_implementation.
28817
28818 2006-10-03  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/gl_oset.c (gl_oset_add): Fix return type.
28821
28822 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28823
28824         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28825
28826 2006-10-02  Eric Blake  <ebb9@byu.net>
28827
28828         * modules/strnlen (Depends-on): Add extensions.
28829
28830 2006-10-02  Eric Blake  <ebb9@byu.net>
28831
28832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28833         definition in 2.60+.
28834
28835 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28836
28837         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28838         checks.
28839
28840 2006-10-02  Bruno Haible  <bruno@clisp.org>
28841
28842         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28843         to the AUTOMAKE_OPTIONS.
28844         Reported by Jim Meyering.
28845
28846 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         Work around bug in Solaris 10 /proc file system:
28849         /proc/self/fd/NNN/.. isn't the parent directory of
28850         the directory whose file descriptor is NNN.  This needs to
28851         be worked around at run time, not compile time, since a
28852         program might be built on Solaris 8, where things work, and
28853         run on Solaris 10.
28854         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28855         to use the following interface instead:
28856         (OPENAT_BUFFER_SIZE): New macro.
28857         (openat_proc_name): New function.
28858         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28859         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28860         Likewise.
28861         * lib/openat-proc.c: New file.
28862         * modules/openat (Files): Add lib/openat-proc.c.
28863         (Depends-on): Add same-inode, stdbool.
28864         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28865
28866 2006-09-29  Bruno Haible  <bruno@clisp.org>
28867
28868         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28869         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28870         argument. Set stdout_closed before testing for ferror, not after.
28871         (fwriteerror, fwriteerror_no_ebadf): New functions.
28872
28873 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28874
28875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28876
28877 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28878
28879         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28880         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28881
28882 2006-09-28  Jim Meyering  <jim@meyering.net>
28883
28884         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28885         Include <unistd.h>.
28886
28887 2006-09-28  Bruno Haible  <bruno@clisp.org>
28888
28889         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28890         * modules/linkedhash-list (Depends-on): Likewise.
28891         * modules/rbtreehash-list (Depends-on): Likewise.
28892
28893 2006-09-28  Bruno Haible  <bruno@clisp.org>
28894
28895         * lib/strndup.h: Simplify the redefinition of strndup.
28896         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28898
28899 2006-09-28  Bruno Haible  <bruno@clisp.org>
28900
28901         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28902         * lib/gl_linkedhash_list.c: Likewise.
28903         * lib/gl_rbtreehash_list.c: Likewise.
28904
28905 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28906
28907         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28908         getaddrinfo.
28909
28910         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28911         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28912         it causes <stdio_ext.h> to cause a compile-time error.
28913         Problem reported by Nelson H. F. Beebe.
28914         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28915         of HAVE_DECL___PENDING.
28916
28917         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28919         declaration.
28920
28921 2006-09-27  Jim Meyering  <jim@meyering.net>
28922
28923         This file could end up with a definition for a function
28924         named __strndup, rather than rpl_strndup on a system with
28925         incomplete weak_alias support.
28926         * lib/strndup.c (strndup): Rename from __strndup.
28927         Remove #defines that used to map __strndup to strndup.
28928         Don't use K&R prototypes.
28929         Remove LIBC-related code, since this file is not sync'd with glibc.
28930         * lib/strndup.h: Revamp, accordingly.
28931         * m4/strndup.m4: Modernize.
28932
28933 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28934
28935         * modules/savewd (Depends-on): Add 'raise'.
28936         * lib/savewd.c: Include <signal.h>, for 'raise'.
28937
28938 2006-09-26  Jim Meyering  <jim@meyering.net>
28939
28940         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28941         when we detect Darwin 8.7.0's acl_get_file bug.
28942         Rearrange to perform the new (below) run-test while $LIBS
28943         contains any acl-related library.  Set USE_ACL at the end.
28944         (gl_ACL_GET_FILE): New function.
28945
28946 2006-09-26  Eric Blake  <ebb9@byu.net>
28947
28948         * lib/verror.c: Include <config.h> unconditionally.
28949
28950 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         * modules/clock-time (Maintainer): Add self.
28953         * modules/getlogin_r (Depends-on): Add extensions.
28954
28955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28956
28957         * modules/clock-time: New module.
28958         * modules/nanosleep (Depends-on): Add clock-time.
28959         * modules/gethrxtime (Depends-on): Likewise.
28960         * modules/gettime (Depends-on): Likewise.
28961         * modules/settime (Depends-on): Likewise.
28962
28963         * modules/fts-lgpl: Depend on openat.
28964         * modules/mkancesdirs: Depend on savewd.
28965         * modules/mkdir-p: Likewise.
28966
28967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28968
28969         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28970
28971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28972         `gl_have_arbitrary_file_name_length_limit' to
28973         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28974         actually works between configure runs.
28975
28976 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28977             Bruno Haible  <bruno@clisp.org>
28978
28979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28980
28981 2006-09-25  Jim Meyering  <jim@meyering.net>
28982
28983         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28984         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28985
28986 2006-09-25  Eric Blake  <ebb9@byu.net>
28987
28988         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28989         exec's in 2006-09-18 patch when shuffling fds.
28990
28991 2006-09-25  Bruno Haible  <bruno@clisp.org>
28992
28993         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28994         Reported by Jim Meyering.
28995
28996 2006-09-24  Jim Meyering  <jim@meyering.net>
28997
28998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28999         compare a pointer against a literal "0".  That caused failures with
29000         at least HP-UX's hpcc.
29001
29002 2006-09-22  Simon Josefsson  <jas@extundo.com>
29003
29004         * modules/gc-sha1:
29005         * modules/gc-md4:
29006         * modules/gc-hmac-sha1:
29007         * modules/gc-hmac-md5:
29008         * modules/gc-des:
29009         * modules/gc-arcfour: Distribute more files.
29010
29011 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29012
29013         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
29014         (gl_linked_iterator_from_to): Initialize struct completely.
29015         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
29016         (gl_tree_iterator_from_to): Likewise
29017         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
29018         * lib/gl_array_list.c [lint] (gl_array_iterator)
29019         (gl_array_iterator_from_to): Likewise.
29020         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
29021         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
29022         (gl_carray_iterator_from_to): Likewise.
29023
29024         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
29025         * lib/md4.c (md4_process_block): Remove unused variable.
29026         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
29027         parentheses for clarity.
29028
29029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29030
29031         * modules/bison-i18n (Depends-on): Add gettext.
29032
29033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29034
29035         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
29036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29037         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
29038         also add missing comma that caused broken test.
29039         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
29040         stdlib.h, for `abort'.
29041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
29042         variables.
29043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
29044         include unistd.h if present, for `rmdir'.
29045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
29046         variables.
29047         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
29048         in the process include standard headers for prototypes.
29049         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
29050         gets declared on GNU/Linux.
29051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
29052         unistd.h, for `rmdir'.
29053         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
29054
29055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
29056         always true.
29057         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
29058
29059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
29060
29061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29062
29063         * gnulib-tool (func_version): Create output all at once.  This
29064         may help avoid triggering unnecessary SIGPIPEs, and at any
29065         rate it doesn't hurt.
29066
29067 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29068             Bruno Haible  <bruno@clisp.org>
29069
29070         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
29071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29072         * m4/signed.m4 (bh_C_SIGNED): Likewise.
29073
29074         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
29075         (gl_FUNC_VASPRINTF): Invoke it.
29076
29077 2006-09-22  Bruno Haible  <bruno@clisp.org>
29078
29079         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
29080         getloadavg.c as first argument.
29081
29082 2006-09-22  Bruno Haible  <bruno@clisp.org>
29083
29084         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
29085         at the beginning of the gl_INIT macro.
29086         * modules/getloadavg (configure.ac): Pass $gl_source_base to
29087         gl_GETLOADAVG.
29088
29089 2006-09-22  Bruno Haible  <bruno@clisp.org>
29090
29091         * gnulib-tool (func_create_megatestdir): Don't include the config-h
29092         module.
29093         Suggested by Ralf Wildenhues.
29094
29095 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29096
29097         Import this patch from libc:
29098
29099         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
29100
29101         * lib/regex_internal.c (re_string_reconstruct): Handle
29102         offset < pstr->valid_raw_len && pstr->offsets_needed case.
29103         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
29104         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
29105         re_string_context_at.
29106
29107         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
29108         now requires it.
29109         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
29110         gl_REGEX now does it for us.
29111         (gl_REGEX): Add test taken from
29112         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
29113
29114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
29115         Check that large offsets work.  Modernize Autoconf usages.
29116         Prefer "yes" to mean a good thing rather than a bad.
29117         Don't put "#define mkstemp" in config.h, as this might interfere
29118         with standard system headers that "#define mkstemp mkstemp64".
29119
29120         * modules/mkstemp (Depends-on): Add extensions, so that
29121         mkstemp is visible on some platforms.
29122         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
29123         (Include): Change to "mkstemp.h" from <stdlib.h>.
29124         (Files): Add mkstemp.h.
29125
29126         * lib/mkstemp.h: New file, since some standard headers
29127         #define mkstemp.
29128         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
29129         Include "mkstemp.h".
29130         Make the _LIBC code resemble glibc original more,
29131         e.g., use K&R style.
29132         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
29133         (mkstemp): Remove, since mkstemp.h does this for us.
29134         * lib/stdlib--.h: Include mkstemp.h.
29135
29136         Import this patch from libc:
29137
29138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29139
29140         * lib/tempname.c (__gen_tempname): Change attempts_min
29141         into a macro.  Use preprocessor to decide how to initialize
29142         attempts [Coverity CID 67].
29143
29144 2006-09-20  Bruno Haible  <bruno@clisp.org>
29145
29146         * lib/mkdtemp.c: Import from libc.
29147         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29148                 * sysdeps/posix/tempname.c (__gen_tempname): Change
29149                 attempts_min into a macro.  Use preprocessor to decide how to
29150                 initialize attempts [Coverity CID 67].
29151         2001-11-27  Paul Eggert  <eggert@twinsun.com>
29152                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
29153                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
29154
29155 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29156
29157         * gnulib-tool (func_exit): New function, to allow to pass the
29158         exit status portably through the trap.  Use everywhere.
29159         (--help, --version): Signal a write error.
29160         (trap): catch SIGPIPE, for write errors.
29161         Exit at the end of the trap, with the correct exit status.
29162
29163 2006-09-19  Karl Berry  <karl@gnu.org>
29164
29165         * doc/gnulib.texi: note about the license texinfo files.
29166
29167 2006-09-19  Eric Blake  <ebb9@byu.net>
29168
29169         * gnulib-tool: Avoid space-tab.
29170
29171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29172
29173         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
29174         that prevented coreutils 6.1 from building.  Problem reported
29175         by Petter Reinholdtsen.
29176
29177 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29178
29179         * gnulib-tool (avoidlist): Fix typo that broke options like
29180         --avoid=lock that are used by coreutils bootstrap.
29181
29182 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
29183
29184         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
29185         more systematically.
29186
29187 2006-09-18  Jim Meyering  <jim@meyering.net>
29188
29189         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
29190
29191 2006-09-18  Bruno Haible  <bruno@clisp.org>
29192
29193         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
29194
29195 2006-09-18  Bruno Haible  <bruno@clisp.org>
29196
29197         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
29198         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
29199         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
29200         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
29201         * m4/gettext.m4: Require autoconf >= 2.52.
29202         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
29203         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
29204         of gl_cv_header_inttypes_h.
29205
29206 2006-09-18  Bruno Haible  <bruno@clisp.org>
29207
29208         * lib/javaversion.c: Include configmake.h.
29209
29210 2006-09-18  Bruno Haible  <bruno@clisp.org>
29211
29212         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
29213         avoid that the while loops be executed in a subshell.
29214
29215 2006-09-18  Bruno Haible  <bruno@clisp.org>
29216
29217         * MODULES.html.sh (func_module): Break long lines.
29218         Suggested by Bruce Korb <bkorb@gnu.org>.
29219
29220 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29221
29222         Speed up by a factor of 1.12.
29223         * gnulib-tool (nl): New variable.
29224         (func_import): Rewrite include directive extraction to only read each
29225         directive once.
29226
29227 2006-09-17  Bruno Haible  <bruno@clisp.org>
29228
29229         * modules/javaversion (Makefile.am): Remove DEFS setting.
29230         (Depends-on): Add configmake, for PKGDATADIR definition.
29231
29232 2006-09-17  Bruno Haible  <bruno@clisp.org>
29233
29234         * gnulib-tool (func_create_testdir): Rewrite all files at once.
29235
29236 2006-09-17  Bruno Haible  <bruno@clisp.org>
29237
29238         * gnulib-tool (func_append): New function, stolen from libtool.m4.
29239         (func_modules_transitive_closure, func_modules_add_dummy,
29240         func_modules_to_filelist, func_import, func_create_testdir,
29241         func_create_megatestdir, ...): Use it wherever possible.
29242         Suggested by Ralf Wildenhues.
29243
29244 2006-09-16  Karl Berry  <karl@gnu.org>
29245
29246         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
29247         to avoid sectioning errors.
29248         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
29249         [ifinfo]: blank line after @center-ed titles.
29250         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
29251         Spell FSF address consistently with others.
29252         (These changes approved by rms.)
29253
29254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29255
29256         Speed up by a factor of 1.61.
29257         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
29258         already checked module names again.
29259
29260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29261
29262         Speed up by a factor of 1.13.
29263         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
29264         for new_files, and the input to func_add_or_update.
29265
29266 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29267
29268         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
29269         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
29270
29271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * modules/mkancesdirs (Depends-on): Add fcntl.
29274         * modules/savewd: New file.
29275         * MODULES.html.sh (File system functions): Add savewd.
29276
29277         * modules/configmake (Makefile.am): Add support for the
29278         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
29279
29280 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29281
29282         * m4/savewd.m4: New file.
29283
29284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29285
29286         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
29287         (dirchownmod): New arg FD.  All callers changed.
29288         Use FD rather than opening the directory ourself, as opening is
29289         now the caller's responsibility.
29290         * lib/dirchownmod.h: Likewise.
29291         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
29292         hosts that require <sys/types.h> before <sys/stat.h>.  Include
29293         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
29294         (test_dir): Remove.
29295         (mkancesdirs): Return length of prefix of FILE that has already
29296         been made, or -2 if there is a child doing the work.  Redo
29297         algorithm so that it is O(N) rather than O(N**2).  Optimize away
29298         ".", and treat ".." specially since it might stray back into
29299         already-created areas.  Use a subprocess if necessary.  New arg
29300         WD; all users changed.  MAKE_DIR function should now return 1
29301         if it creates a directory that is not readable.  Return -2 if
29302         a child process is spun off.
29303         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
29304         Adjust signature to match code.
29305         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
29306         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
29307         all users changed.
29308         * lib/savewd.c, lib/savewd.h: New files.
29309
29310 2006-09-15  Jim Meyering  <jim@meyering.net>
29311
29312         * modules/rename-dest-slash: New module.
29313         * MODULES.html.sh (posix_compat): Add it here.
29314
29315         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
29316
29317 2006-09-15  Jim Meyering  <jim@meyering.net>
29318
29319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
29320         file.
29321
29322         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
29323
29324 2006-09-15  Jim Meyering  <jim@meyering.net>
29325
29326         * lib/rename-dest-slash.c (has_trailing_slash): Use
29327         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
29328         (rpl_rename_dest_slash): Perform the cheaper trailing slash
29329         test before testing whether SRC is a directory.
29330         Suggestions from Bruno Haible.
29331
29332         Avoid a warning about an unused variable.
29333         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
29334         into the #ifdef block where it's used.
29335
29336         * lib/rename-dest-slash.c: New file.
29337
29338 2006-09-14  Bruno Haible  <bruno@clisp.org>
29339
29340         * lib/allocsa.c: Include <config.h> unconditionally.
29341         * lib/asnprintf.c: Likewise.
29342         * lib/asprintf.c: Likewise.
29343         * lib/c-strcasecmp.c: Likewise.
29344         * lib/c-strcasestr.c: Likewise.
29345         * lib/c-strncasecmp.c: Likewise.
29346         * lib/c-strstr.c: Likewise.
29347         * lib/classpath.c: Likewise.
29348         * lib/clean-temp.c: Likewise.
29349         * lib/concatpath.c: Likewise.
29350         * lib/copy-file.c: Likewise.
29351         * lib/csharpcomp.c: Likewise.
29352         * lib/csharpexec.c: Likewise.
29353         * lib/execute.c: Likewise.
29354         * lib/fatal-signal.c: Likewise.
29355         * lib/findprog.c: Likewise.
29356         * lib/fwriteerror.c: Likewise.
29357         * lib/gl_array_list.c: Likewise.
29358         * lib/gl_array_oset.c: Likewise.
29359         * lib/gl_avltree_list.c: Likewise.
29360         * lib/gl_avltree_oset.c: Likewise.
29361         * lib/gl_avltreehash_list.c: Likewise.
29362         * lib/gl_carray_list.c: Likewise.
29363         * lib/gl_linked_list.c: Likewise.
29364         * lib/gl_linkedhash_list.c: Likewise.
29365         * lib/gl_list.c: Likewise.
29366         * lib/gl_oset.c: Likewise.
29367         * lib/gl_rbtree_list.c: Likewise.
29368         * lib/gl_rbtree_oset.c: Likewise.
29369         * lib/gl_rbtreehash_list.c: Likewise.
29370         * lib/imaxabs.c: Likewise.
29371         * lib/imaxdiv.c: Likewise.
29372         * lib/javacomp.c: Likewise.
29373         * lib/javaexec.c: Likewise.
29374         * lib/javaversion.c: Likewise.
29375         * lib/linebreak.c: Likewise.
29376         * lib/localcharset.c: Likewise.
29377         * lib/lock.c: Likewise.
29378         * lib/mbchar.c: Likewise.
29379         * lib/mbswidth.c: Likewise.
29380         * lib/mkdtemp.c: Likewise.
29381         * lib/pipe.c: Likewise.
29382         * lib/printf-args.c: Likewise.
29383         * lib/printf-parse.c: Likewise.
29384         * lib/progname.c: Likewise.
29385         * lib/progreloc.c: Likewise.
29386         * lib/readlink.c: Likewise.
29387         * lib/sh-quote.c: Likewise.
29388         * lib/stpcpy.c: Likewise.
29389         * lib/stpncpy.c: Likewise.
29390         * lib/strcasecmp.c: Likewise.
29391         * lib/strcasestr.c: Likewise.
29392         * lib/strcspn.c: Likewise.
29393         * lib/striconv.c: Likewise.
29394         * lib/strncasecmp.c: Likewise.
29395         * lib/strnlen1.c: Likewise.
29396         * lib/strstr.c: Likewise.
29397         * lib/strtok_r.c: Likewise.
29398         * lib/tls.c: Likewise.
29399         * lib/tmpdir.c: Likewise.
29400         * lib/unicodeio.c: Likewise.
29401         * lib/unsetenv.c: Likewise.
29402         * lib/vasnprintf.c: Likewise.
29403         * lib/vasprintf.c: Likewise.
29404         * lib/wait-process.c: Likewise.
29405         * lib/xallocsa.c: Likewise.
29406         * lib/xsetenv.c: Likewise.
29407         * lib/xstriconv.c: Likewise.
29408
29409 2006-09-13  Simon Josefsson  <jas@extundo.com>
29410
29411         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
29412         that internally, suggested by Ralf Wildenhues
29413         <Ralf.Wildenhues@gmx.de>.
29414
29415 2006-09-13  Simon Josefsson  <jas@extundo.com>
29416
29417         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
29418         @LIBOBJS@.
29419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29420
29421 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29422
29423         * lib/_fpending.c: Include <config.h> unconditionally, since we no
29424         longer worry about uses that don't define HAVE_CONFIG_H.
29425         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
29426         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
29427         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
29428         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
29429         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
29430         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
29431         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
29432         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
29433         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
29434         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
29435         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
29436         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
29437         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
29438         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
29439         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
29440         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
29441         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
29442         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
29443         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
29444         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
29445         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
29446         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
29447         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
29448         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
29449         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
29450         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
29451         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
29452         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
29453         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
29454         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
29455         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
29456         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
29457         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
29458         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
29459         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
29460         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
29461         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
29462         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
29463         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
29464         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
29465         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
29466         Likewise.
29467
29468 2006-09-13  Eric Blake  <ebb9@byu.net>
29469
29470         * lib/getopt.c: Fix typo in last commit.
29471
29472 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29473
29474         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
29475         dgettext.
29476
29477 2006-09-12  Jim Meyering  <jim@meyering.net>
29478
29479         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
29480         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
29481         Reported by Nelson H. F. Beebe.
29482
29483 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29484
29485         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
29486         program_invocation_name and program_invocation_short_name are
29487         initialized.
29488         * lib/argp-namefrob.h: Move declarations of program_invocation_name
29489         and program_invocation_short_name to argp.h, so they are visible
29490         to user programs.
29491         * lib/argp.h: Likewise
29492
29493 2006-09-10  Bruno Haible  <bruno@clisp.org>
29494
29495         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29496         m4/inttypes_h.m4, m4/uintmax_t.m4.
29497
29498 2006-09-10  Bruno Haible  <bruno@clisp.org>
29499
29500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
29501         gl_AC_TYPE_UINTMAX_T.
29502
29503 2006-09-10  Bruno Haible  <bruno@clisp.org>
29504
29505         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
29506
29507 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29508
29509         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
29510         convention.  Text proposed by Bruno Haible.
29511         (struct argp_option): Document the use of N_() wrappers.
29512
29513         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
29514         '\v', and translate the two parts separately, instead of feeding
29515         the whole string to gettext.  This allows to exclude
29516         '\v' from the strings visible to the translator by writing doc
29517         strings as N_("..") "\v" N_("..").
29518
29519 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
29520
29521         * config/srclist.txt: Undo latest change; the bug was fixed.
29522
29523 2006-09-09  Bruno Haible  <bruno@clisp.org>
29524
29525         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
29526         assignments if building a library without libtool.
29527         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
29528         in func_emit_lib_Makefile_am.
29529         (func_import): When building a static library libfoo.a, arrange to
29530         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
29531         (func_create_testdir): Likewise.
29532         * modules/gc (configure.ac, Makefile.am): If building statically,
29533         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
29534         * modules/iconvme (configure.ac, Makefile.am): Likewise.
29535         * modules/striconv (configure.ac, Makefile.am): Likewise.
29536         Based on a suggestion by Ralf Wildenhues.
29537
29538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29539
29540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29541         Check for unistd.h too, since Autoconf doesn't assume POSIX.
29542         Also:
29543
29544         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29545         Add year_2050_test to catch glibc bug 2821
29546         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29547
29548         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29549         Prefer #ifdef to #if.
29550
29551         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29552         Return from 'main' instead of calling 'exit'.
29553
29554 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         * lib/mktime.c (guess_time_tm): Fix bug where mktime
29557         returned the maximum time_t value rather than (time_t) -1.
29558         Problem originally reported by William Bardwell
29559         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29560
29561         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29562         Moved to here ...
29563         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29564         ... from here.
29565
29566 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29567
29568         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29569         2821 is fixed.
29570
29571 2006-09-08  Jim Meyering  <jim@meyering.net>
29572
29573         Don't make generated files read-only.  That would bother too many
29574         people.  However, do retain the ability to work when targets are
29575         read-only: remove the destination and temporary files before writing
29576         them (when generated via sed or echo), or by using the -f option for
29577         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
29578         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29579         * modules/byteswap, modules/configmake, modules/fcntl:
29580         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29581         * modules/localcharset, modules/netinet_in, modules/poll:
29582         * modules/stdbool, modules/stdint, modules/sys_select:
29583         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29584
29585 2006-09-08  Jim Meyering  <jim@meyering.net>
29586
29587         Avoid new build failure on FreeBSD 6.0.
29588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29589         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
29590         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29591
29592 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29593
29594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29595
29596 2006-09-07  Jim Meyering  <jim@meyering.net>
29597
29598         Fix global typo in last change: use chmod u-w, not chmod u-x.
29599         Spotted by Paul Eggert and Bruce Korb.
29600         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29601         * modules/byteswap, modules/configmake, modules/fcntl:
29602         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29603         * modules/localcharset, modules/netinet_in, modules/poll:
29604         * modules/stdbool, modules/stdint, modules/sys_select:
29605         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29606
29607 2006-09-06  Jim Meyering  <jim@meyering.net>
29608
29609         Make generated files be read-only.
29610         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29611         Ensure that each generated file is now read-only.
29612         * modules/argz: Likewise.
29613         * modules/arpa_inet: Likewise.
29614         * modules/byteswap: Likewise.
29615         * modules/configmake: Likewise.
29616         * modules/fcntl: Likewise.
29617         * modules/fnmatch: Likewise.
29618         * modules/getopt: Likewise.
29619         * modules/glob: Likewise.
29620         * modules/inttypes: Likewise.
29621         * modules/netinet_in: Likewise.
29622         * modules/poll: Likewise.
29623         * modules/stdbool: Likewise.
29624         * modules/stdint: Likewise.
29625         * modules/sys_select: Likewise.
29626         * modules/sys_socket: Likewise.
29627         * modules/sys_stat: Likewise.
29628         * modules/sysexits: Likewise.
29629         * modules/localcharset: Same as above, but continue using temporary
29630         file named "t-$@" (why different?) rather than the "$@-t" used
29631         everywhere else.
29632
29633         * modules/sysexits (Makefile.am): Replace literal occurrences
29634         of "sysexit.h" more readable, and more consistent, "$@".
29635
29636 2006-09-06  Bruno Haible  <bruno@clisp.org>
29637
29638         * modules/striconv: New file.
29639         * modules/xstriconv: New file.
29640         * MODULES.html.sh (Internationalization functions): Add striconv,
29641         xstriconv.
29642
29643 2006-09-06  Bruno Haible  <bruno@clisp.org>
29644
29645         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29646         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29647         not using libtool correctly.
29648
29649 2006-09-06  Bruno Haible  <bruno@clisp.org>
29650
29651         * lib/striconv.h: New file.
29652         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29653         iconvstring.c.
29654         * lib/xstriconv.h: New file.
29655         * lib/xstriconv.c: New file.
29656
29657 2006-09-06  Bruno Haible  <bruno@clisp.org>
29658
29659         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29660         lib_..._LDFLAGS.
29661
29662 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29663
29664         * lib/argz_.h: Sync from Libtool.
29665
29666         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29667                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29668
29669         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29670
29671 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29672
29673         * modules/trim: New file.
29674
29675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29676
29677         * lib/trim.h: New file.
29678         * lib/trim.c: New file.
29679
29680 2006-09-05  Bruno Haible  <bruno@clisp.org>
29681
29682         * MODULES.html.sh (String handling): Add trim.
29683
29684 2006-09-04  Karl Berry  <karl@gnu.org>
29685
29686         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29687         until next release.
29688
29689 2006-09-03  Bruno Haible  <bruno@clisp.org>
29690
29691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29692         correctly.
29693
29694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29695
29696         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29697         not gl_GETLOADAVG.  Omit unneeded semicolons.
29698         Problems reported by Ralf Wildenhues in
29699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29700         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29701         at the end, which is the usual gnulib style.
29702
29703         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29704         of doing all the work ourselves.
29705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29706         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29707
29708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29709
29710         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29711         Problem reported by Ralf Wildenhues in
29712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29713
29714         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29715         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29716
29717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29718
29719         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29720         yesterday's patch by changing test -n to test -z.
29721
29722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29725         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29726         the former is now obsolescent.
29727
29728         * modules/chdir-long (Depends-on): Add fcntl.
29729
29730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29731
29732         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29733         obsolescent, and programs should use gnulib instead.
29734         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29735         but with prefixes changed.
29736
29737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29738
29739         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29740         or stdbool.h, because they might not exist while configuring.
29741
29742         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29743         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29744         does that for us.
29745         (O_DIRECTORY): Remove.
29746
29747 2006-08-31  Eric Blake  <ebb9@byu.net>
29748
29749         * gnulib-tool: Don't let emacs change spaces to TAB.
29750
29751 2006-08-31  Bruno Haible  <bruno@clisp.org>
29752
29753         * gnulib-tool: When calling func_import more than once, do it in a
29754         subshell.
29755         Reported by Eric Blake <ebb9@byu.net>.
29756
29757 2006-08-31  Bruno Haible  <bruno@clisp.org>
29758
29759         * gnulib-tool (nl): Remove variable.
29760         (sed_transform_lib_file): Use more robust test for config-h module.
29761         (func_import): Fix typo in 2006-08-25 patch.
29762
29763 2006-08-31  Bruno Haible  <bruno@clisp.org>
29764
29765         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29766         specified, augment Makefile.am variables instead of assigning them.
29767
29768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29769
29770         Work around a bug in both the Linux and SunOS 64-bit kernels:
29771         nanosleep mishandles sleeps for longer than 2**31 seconds.
29772         Problem reported by Frank v Waveren in
29773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29775         Check for nanosleep bug.
29776         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29777
29778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29779
29780         Work around a bug in both the Linux and SunOS 64-bit kernels:
29781         nanosleep mishandles sleeps for longer than 2**31 seconds.
29782         Problem reported by Frank v Waveren in
29783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29784         * lib/nanosleep.c (BILLION): New constant.
29785         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29786         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29787         implementation.
29788
29789 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29790
29791         * modules/nanosleep (Depends-on): Add gettime.
29792
29793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29794         and Simon Josefsson  <jas@extundo.com>
29795         and Oskar Liljeblad  <oskar@osk.mine.nu>
29796
29797         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29798         * gnulib-tool (func_import): New license type 'unmodifiable license
29799         text'.
29800         * modules/fdl: Use it.  Longer description.
29801         * module/gpl, module/lgpl: New files.
29802
29803 2006-08-30  Jim Meyering  <jim@meyering.net>
29804
29805         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29806         shadowing the parameter.
29807
29808 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29809
29810         Sync from Libtool:
29811
29812         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29813
29814         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29815         sharing with gnulib.  Report by Eric Blake.
29816
29817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         * modules/isapipe: New file.
29820         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29821
29822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29823
29824         * modules/configmake (Makefile.am): Add a comment, and omit
29825         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29826         by Bruno Haible.
29827
29828 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29829
29830         * m4/isapipe.m4: New file.
29831
29832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29833
29834         * lib/isapipe.c, lib/isapipe.h: New files.
29835
29836 2006-08-29  Jim Meyering  <jim@meyering.net>
29837
29838         * modules/configmake (Makefile.am): Make configmake.h depend on
29839         Makefile.  Otherwise, a stale configmake.h could hang around.
29840
29841 2006-08-29  Eric Blake  <ebb9@byu.net>
29842
29843         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29844         resolution of upstream bug 3044.
29845
29846 2006-08-29  Bruno Haible  <bruno@clisp.org>
29847
29848         * modules/localcharset (Depends-on): Add configmake.
29849         (Makefile.am): Remove setting of LIBDIR through DEFS.
29850
29851 2006-08-29  Bruno Haible  <bruno@clisp.org>
29852
29853         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29854         defined.
29855
29856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29857
29858         * modules/fcntl: New file.
29859         * modules/chdir-safer (Depends-on): Add fcntl.
29860         * modules/fts: Likewise.
29861         * modules/mkdir-p: Likewise.
29862
29863         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29864         This undoes the most recent change, since we're now addressing the
29865         problem in a different way.
29866
29867         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29868         into output, since the output might be called Makefile.am even
29869         if $makefile_name is something different.
29870         (func_import): Use $makefile_am rather than
29871         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29872         empty.
29873
29874         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29875
29876 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29877
29878         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29879         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29880         recent change to stdint.m4, since we're now addressing the problem in a
29881         different way.
29882
29883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         * m4/fcntl_h.m4: New file.
29886
29887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         * lib/fcntl_.h: New file.
29890         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29891         the fcntl module.
29892         * lib/dirchownmod.c: Likewise.
29893         * lib/fts.c: Likewise.
29894
29895         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29896         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29897         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29898         just before including <inttypes.h>, to avoid circular inclusion.
29899
29900 2006-08-28  Jim Meyering  <jim@meyering.net>
29901
29902         * doc/visibility.texi: Actually read and correct the grammar of the
29903         sentence affected by yesterday's change.
29904
29905 2006-08-28  Eric Blake  <ebb9@byu.net>
29906
29907         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29908         needs wrapper.
29909
29910 2006-08-28  Eric Blake  <ebb9@byu.net>
29911
29912         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29913
29914 2006-08-28  Eric Blake  <ebb9@byu.net>
29915
29916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29917
29918 2006-08-28  Bruno Haible  <bruno@clisp.org>
29919
29920         * modules/c-strstr: New file, from GNU gettext.
29921         * MODULES.html.sh (String handling): Add c-strstr.
29922
29923 2006-08-28  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29926         macros.
29927         Reported by Eric Blake.
29928
29929 2006-08-28  Bruno Haible  <bruno@clisp.org>
29930
29931         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29932         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29933         * lib/vasprintf.c: Include errno.h, limits.h.
29934         (EOVERFLOW): New fallback definition.
29935         (vasprintf): Test here whether the string length is > INT_MAX.
29936         * lib/vsnprintf.c: Include errno.h, limits.h.
29937         (EOVERFLOW): New fallback definition.
29938         (vsnprintf): Fix bug when generated string was too long for the buffer.
29939         Test here whether the string length is > INT_MAX.
29940
29941 2006-08-28  Bruno Haible  <bruno@clisp.org>
29942
29943         * lib/inttypes_.h (SCNX*): Remove definitions.
29944         Reported by Eric Blake.
29945
29946 2006-08-28  Bruno Haible  <bruno@clisp.org>
29947
29948         * lib/c-strstr.h: New file, from GNU gettext.
29949         * lib/c-strstr.c: New file, from GNU gettext.
29950
29951 2006-08-28  Bruno Haible  <bruno@clisp.org>
29952
29953         * gnulib-tool: Reorder some statements.
29954
29955 2006-08-28  Bruno Haible  <bruno@clisp.org>
29956
29957         * gnulib-tool: New option --makefile-name.
29958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29959         $makefile_name.
29960         (func_import): Write $makefile_name to the cache file, and read it from
29961         there unless explicitly specified. Use $makefile_name as file name
29962         instead of Makefile.am. Adjust the recommendations accordingly.
29963
29964 2006-08-28  Bruno Haible  <bruno@clisp.org>
29965
29966         * gnulib-tool (func_verify_module): Check against misapplying patch.
29967
29968 2006-08-28  Bruno Haible  <bruno@clisp.org>
29969
29970         * gnulib-tool (func_relativize, func_relconcat): New functions.
29971         Give an error if --local-dir is given with --update.
29972         Remove trailing slashes from $local_gnulib_dir.
29973         (func_import): Store the relativized $local_gnulib_dir in
29974         gnulib-cache.m4, and read it from there if not specified explicitly.
29975
29976 2006-08-28  Bruno Haible  <bruno@clisp.org>
29977
29978         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29979         is the current directory. Respect also $local_gnulib_dir.
29980
29981 2006-08-28  Bruno Haible  <bruno@clisp.org>
29982             Simon Josefsson  <jas@extundo.com>
29983
29984         BeOS portability.
29985         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29986
29987 2006-08-27  Jim Meyering  <jim@meyering.net>
29988
29989         * doc/visibility.texi: Remove duplicate word: "pointer".
29990
29991 2006-08-26  Bruno Haible  <bruno@clisp.org>
29992
29993         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29994         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29995         (Makefile.am): Create inttypes.h from inttypes_.h.
29996         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29997
29998         * modules/imaxabs: New file.
29999
30000         * modules/imaxdiv: New file.
30001
30002 2006-08-26  Bruno Haible  <bruno@clisp.org>
30003
30004         * m4/inttypes.m4: New file.
30005         * m4/_inttypes_h.m4: Remove file.
30006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
30007         PRI_MACROS_BROKEN.
30008         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
30009
30010         * m4/imaxabs.m4: New file.
30011
30012         * m4/imaxdiv.m4: New file.
30013
30014 2006-08-26  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/inttypes_.h: New file.
30017         * lib/inttypes.h: Remove file.
30018         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
30019
30020         * lib/imaxabs.c: New file.
30021
30022         * lib/imaxdiv.c: New file.
30023
30024 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30025
30026         New config-h module, so that "make" output needn't be cluttered
30027         by -DHAVE_CONFIG_H.
30028         * MODULES.html.sh (Support for building libraries and executables):
30029         Add config-h.
30030         * modules/config-h: New file.
30031         * gnulib-tool (nl, sed_transform_lib_file): New vars.
30032         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
30033         the config-h module is used.
30034
30035         New configmake module, so that "make" output needn't be cluttered
30036         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
30037         * MODULES.html.sh (Support for building libraries and executables):
30038         Add configmake.
30039         * modules/configmake: New file.
30040
30041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30042
30043         * m4/config-h.m4: New file.
30044
30045 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30046
30047         * config/srclist.txt: Add elisp-comp.
30048
30049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         * MODULES.html.sh (Support for building libraries and executables):
30052         Add elisp-comp.
30053         * build-aux/elisp-comp: New file.
30054         * modules/elisp-comp: New file.
30055
30056 2006-08-24  Bruno Haible  <bruno@clisp.org>
30057
30058         * gnulib-tool (func_create_testdir): Use non-default values of
30059         sourcebase and m4base.
30060
30061 2006-08-24  Bruno Haible  <bruno@clisp.org>
30062
30063         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
30064         HTML structure.
30065
30066 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30067
30068         * modules/openat (Depends-on): Add lchown.
30069
30070 2006-08-23  Bruno Haible  <bruno@clisp.org>
30071
30072         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
30073         of gl_LOCK_EARLY instead of gl_LOCK.
30074
30075 2006-08-23  Bruno Haible  <bruno@clisp.org>
30076
30077         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
30078         on OSF/1 to no.
30079         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
30080
30081 2006-08-23  Bruno Haible  <bruno@clisp.org>
30082
30083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
30084         as unusable.
30085
30086         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
30087         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
30088         (gl_LOCK): New macro.
30089
30090 2006-08-22  Simon Josefsson  <jas@extundo.com>
30091
30092         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
30093         to md5 module.
30094
30095 2006-08-22  Simon Josefsson  <jas@extundo.com>
30096
30097         * MODULES.html.sh: Add "Support for maintaining and release
30098         projects".
30099
30100         * build-aux/gnupload: New file, from coreutils.
30101
30102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         Avoid the need for AC_LIBSOURCES in m4 macros.
30105         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
30106         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
30107         * modules/check-version (EXTRA_DIST): Add check-version.h.
30108         * modules/crc (EXTRA_DIST): Add crc.h.
30109         * modules/des (EXTRA_DIST): Add des.h.
30110         * modules/gc (EXTRA_DIST): Add gc.h.
30111         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
30112         * modules/getline (EXTRA_DIST): Add getline.h.
30113         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
30114         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
30115         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
30116         * modules/md2 (EXTRA_DIST): Add md2.h.
30117         * modules/md4 (EXTRA_DIST): Add md4.h.
30118         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
30119         * modules/read-file (EXTRA_DIST): Add read-file.h.
30120         * modules/readline (EXTRA_DIST): Add readline.h.
30121         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
30122         rijndael-api-fst.h.
30123
30124 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30125
30126         * m4/rijndael.m4 (gl_ARCFOUR):
30127         * m4/arctwo.m4 (gl_ARCTWO):
30128         * m4/check-version.m4 (gl_CHECK_VERSION):
30129         * m4/crc.m4 (gl_CRC):
30130         * m4/des.m4 (gl_DES):
30131         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
30132         * m4/gc.m4 (gl_GC):
30133         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
30134         * m4/getline.m4 (gl_FUNC_GETLINE):
30135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
30136         * m4/hmac-md5.m4 (gl_HMAC_MD5):
30137         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
30138         * m4/md2.m4 (gl_MD2):
30139         * m4/md4.m4 (gl_MD4):
30140         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
30141         * m4/read-file.m4 (gl_FUNC_READ_FILE):
30142         * m4/readline.m4 (gl_FUNC_READLINE):
30143         * m4/rijndael.m4 (gl_RIJNDAEL):
30144         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30145         to get the necessary .h files and whatnot.
30146
30147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30148
30149         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
30150         gnulib rather than the other way around.
30151         * config/srclistvars.sh (COREUTILS): Remove.
30152
30153 2006-08-22  Jim Meyering  <jim@meyering.net>
30154
30155         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
30156
30157         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
30158
30159 2006-08-22  Eric Blake  <ebb9@byu.net>
30160
30161         * modules/regexprops-generic: New file.
30162         * MODULES.html.sh (Support for building documentation): List it.
30163
30164 2006-08-22  Eric Blake  <ebb9@byu.net>
30165
30166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
30167         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
30169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30170
30171 2006-08-22  Bruno Haible  <bruno@clisp.org>
30172
30173         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
30174         and lib_LTLIBRARIES like the other lib_* variables.
30175
30176 2006-08-22  Bruno Haible  <bruno@clisp.org>
30177
30178         * build-aux/x-to-1.in: New file, from GNU gettext.
30179
30180 2006-08-22  Bruno Haible  <bruno@clisp.org>
30181
30182         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
30183         <utmpx.h> exists.
30184
30185 2006-08-22  Bruno Haible  <bruno@clisp.org>
30186
30187         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
30188         <utmpx.h> exists.
30189
30190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30191
30192         BeOS portability.
30193         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
30194         exist.
30195         Problem reported by Bruno Haible.
30196
30197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30198
30199         Avoid the need for AC_LIBSOURCES in m4 macros.
30200         * modules/acl (EXTRA_DIST): Add acl.h.
30201         * modules/argmatch (Files): Add m4/argmatch.m4.
30202         (configure.ac): Add gl_ARGMATCH.
30203         (EXTRA_DIST): Renamed from lib_SOURCES, for
30204         consistency with the other modules.  Remove argmatch.c.
30205         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
30206         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
30207         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
30208         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
30209         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
30210         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
30211         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
30212         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
30213         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
30214         * modules/closeout (EXTRA_DIST): Add closeout.h.
30215         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
30216         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
30217         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
30218         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
30219         dirname.h; remove basename.c and stripslash.c.
30220         * modules/exclude (EXTRA_DIST): Add exclude.h.
30221         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
30222         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
30223         * modules/file-type (EXTRA_DIST): Add file-type.h.
30224         * modules/filemode (EXTRA_DIST): Add filemode.h.
30225         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
30226         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30227         * modules/fpending (EXTRA_DIST): Add __fpending.h.
30228         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
30229         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
30230         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
30231         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
30232         * modules/getdate (EXTRA_DIST): Add getdate.c.
30233         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
30234         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
30235         * modules/getpass (EXTRA_DIST): Add getpass.h.
30236         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
30237         * modules/group-member (EXTRA_DIST): Add group-member.h.
30238         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
30239         * modules/hash (EXTRA_DIST): Add hash.h.
30240         * modules/human (EXTRA_DIST): Add human.h.
30241         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
30242         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
30243         * modules/lchown (EXTRA_DIST): Add lchown.h.
30244         * modules/long-options (EXTRA_DIST): Add long-options.h.
30245         * modules/lstat (EXTRA_DIST): Add lstat.h.
30246         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
30247         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
30248         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
30249         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
30250         * modules/memxor (EXTRA_DIST): Add memxor.h.
30251         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
30252         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
30253         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
30254         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
30255         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
30256         * modules/physmem (EXTRA_DIST): Add physmem.h.
30257         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
30258         * modules/posixver (EXTRA_DIST): Add posixver.h.
30259         * modules/quote (EXTRA_DIST): Add quote.h.
30260         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
30261         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
30262         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
30263         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
30264         regex_internal.h regexec.c.
30265         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
30266         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
30267         * modules/same (EXTRA_DIST): Add same.h.
30268         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
30269         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
30270         * modules/savedir (EXTRA_DIST): Add savedir.h.
30271         * modules/sha1 (EXTRA_DIST): Add sha1.h.
30272         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
30273         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
30274         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
30275         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
30276         * modules/strdup (EXTRA_DIST): Add strdup.h.
30277         * modules/strftime (EXTRA_DIST): Add strftime.h.
30278         * modules/strndup (EXTRA_DIST): Add strndup.h.
30279         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
30280         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
30281         * modules/time_r (EXTRA_DIST): Add time_r.h.
30282         * modules/timespec (EXTRA_DIST): Add timespec.h.
30283         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30284         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
30285         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
30286         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
30287         * modules/userspec (EXTRA_DIST): Add userspec.h.
30288         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
30289         * modules/utimens (EXTRA_DIST): Add utimens.h.
30290         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
30291         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
30292         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
30293         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
30294         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
30295         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
30296         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
30297         * modules/yesno (EXTRA_DIST): Add yesno.h.
30298
30299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
30302
30303         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
30304         * m4/dev-ino.m4, same-inode.m4: Remove.
30305
30306         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
30307         * m4/acl.m4 (AC_FUNC_ACL):
30308         * m4/backupfile.m4 (gl_BACKUPFILE):
30309         * m4/c-strtod.m4 (gl_C99_STRTOLD):
30310         * m4/canon-host.m4 (gl_CANON_HOST):
30311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
30313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
30314         * m4/cloexec.m4 (gl_CLOEXEC):
30315         * m4/close-stream.m4 (gl_CLOSE_STREAM):
30316         * m4/closeout.m4 (gl_CLOSEOUT):
30317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
30318         * m4/dirname.m4 (gl_DIRNAME):
30319         * m4/exclude.m4 (gl_EXCLUDE):
30320         * m4/exitfail.m4 (gl_EXITFAIL):
30321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
30322         * m4/file-type.m4 (gl_FILE_TYPE):
30323         * m4/filemode.m4 (gl_FILEMODE):
30324         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
30325         * m4/fpending.m4 (gl_FUNC_FPENDING):
30326         * m4/fprintftime.m4 (gl_FPRINTFTIME):
30327         * m4/fts.m4 (gl_FUNC_FTS):
30328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
30329         * m4/getdate.m4 (gl_GETDATE):
30330         * m4/gethrxtime.m4 (gl_GETHRXTIME):
30331         * m4/getpagesize.m4 (gl_GETPAGESIZE):
30332         * m4/getpass.m4 (gl_FUNC_GETPASS):
30333         * m4/gettime.m4 (gl_GETTIME):
30334         * m4/getugroups.m4 (gl_GETUGROUPS):
30335         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
30336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
30337         * m4/hard-locale.m4 (gl_HARD_LOCALE):
30338         * m4/hash.m4 (gl_HASH):
30339         * m4/idcache.m4 (gl_IDCACHE):
30340         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
30341         * m4/lchown.m4 (gl_FUNC_LCHOWN):
30342         * m4/long-options.m4 (gl_LONG_OPTIONS):
30343         * m4/lstat.m4 (gl_FUNC_LSTAT):
30344         * m4/md5.m4 (gl_MD5):
30345         * m4/memcasecmp.m4 (gl_MEMCASECMP):
30346         * m4/memcoll.m4 (gl_MEMCOLL):
30347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
30348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
30349         * m4/memxor.m4 (gl_MEMXOR):
30350         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
30351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
30352         * m4/modechange.m4 (gl_MODECHANGE):
30353         * m4/mountlist.m4 (gl_MOUNTLIST):
30354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30355         * m4/openat.m4 (gl_FUNC_OPENAT):
30356         * m4/pathmax.m4 (gl_PATHMAX):
30357         * m4/physmem.m4 (gl_PHYSMEM):
30358         * m4/posixtm.m4 (gl_POSIXTM):
30359         * m4/posixver.m4 (gl_POSIXVER):
30360         * m4/quote.m4 (gl_QUOTE):
30361         * m4/quotearg.m4 (gl_QUOTEARG):
30362         * m4/readtokens.m4 (gl_READTOKENS):
30363         * m4/readutmp.m4 (gl_READUTMP):
30364         * m4/regex.m4 (gl_REGEX):
30365         * m4/safe-read.m4 (gl_SAFE_READ):
30366         * m4/safe-write.m4 (gl_SAFE_WRITE):
30367         * m4/same.m4 (gl_SAME):
30368         * m4/save-cwd.m4 (gl_SAVE_CWD):
30369         * m4/savedir.m4 (gl_SAVEDIR):
30370         * m4/settime.m4 (gl_SETTIME):
30371         * m4/sha1.m4 (gl_SHA1):
30372         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
30373         * m4/stat-macros.m4 (gl_STAT_MACROS):
30374         * m4/stat-time.m4 (gl_STAT_TIME):
30375         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
30376         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
30377         * m4/strdup.m4 (gl_FUNC_STRDUP):
30378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
30379         * m4/strndup.m4 (gl_FUNC_STRNDUP):
30380         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
30381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
30382         * m4/time_r.m4 (gl_TIME_R):
30383         * m4/timespec.m4 (gl_TIMESPEC):
30384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
30385         * m4/unlinkdir.m4 (gl_UNLINKDIR):
30386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
30387         * m4/userspec.m4 (gl_USERSPEC):
30388         * m4/utimecmp.m4 (gl_UTIMECMP):
30389         * m4/utimens.m4 (gl_UTIMENS):
30390         * m4/xalloc.m4 (gl_XALLOC):
30391         * m4/xgetcwd.m4 (gl_XGETCWD):
30392         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
30393         * m4/xreadlink.m4 (gl_XREADLINK):
30394         * m4/xstrtod.m4 (gl_XSTRTOD):
30395         * m4/yesno.m4 (gl_YESNO):
30396         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30397         to get the necessary .h files and whatnot.
30398
30399 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
30400             Bruno Haible  <bruno@clisp.org>
30401
30402         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
30403         /bin/sh understanding of '!' conditional negation.
30404
30405 2006-08-21  Jim Meyering  <jim@meyering.net>
30406
30407         * modules/openat (Depends-on): Really alphabetize.
30408
30409         * modules/acl (Depends-on): Add error and quote.
30410
30411         * check-module (find_included_lib_files): Add at-func.c to the
30412         ok-to-include-more-than-once white list.
30413
30414         * modules/openat (Depends-on): Add lstat.  Alphabetize.
30415
30416 2006-08-21  Bruno Haible  <bruno@clisp.org>
30417
30418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30419         Emit a pkgdata_DATA variable only if some snippets add contents to it.
30420         Reported by Martin Lambers <marlam@marlam.de>.
30421
30422 2006-08-21  Bruno Haible  <bruno@clisp.org>
30423
30424         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
30425         specify an installation location, don't emit a noinst_LIBRARIES or
30426         noinst_LTLIBRARIES assignment.
30427
30428 2006-08-21  Bruno Haible  <bruno@clisp.org>
30429
30430         BeOS portability.
30431         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
30432         BeOS has mbrtowc() but no <wctype.h>.
30433
30434 2006-08-21  Bruno Haible  <bruno@clisp.org>
30435
30436         BeOS portability.
30437         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
30438         exist.
30439
30440 2006-08-21  Bruno Haible  <bruno@clisp.org>
30441
30442         BeOS portability.
30443         * lib/mbchar.h: Include <wctype.h> only if it exists.
30444
30445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30446
30447         Remove files that are no longer needed by their respective modules.
30448         * m4/obstack.m4: Remove.
30449         * m4/strerror_r.m4: Remove.
30450         * m4/uint32_t.m4: Remove.
30451         * m4/uintptr_t.m4: Remove.
30452         * m4/ullong_max.m4: Remove.
30453         * m4/xstrtoimax.m4: Remove.
30454         * m4/xstrtoumax.m4: Remove.
30455
30456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
30457         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
30458         dependencies now capture this.
30459
30460         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30461         Do not use AC_LIBSOURCES, since gnulib modules now do this.
30462         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
30463         * m4/human.m4 (gl_HUMAN): Likewise.
30464         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
30465         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
30466
30467         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
30468
30469         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
30470         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
30471         stdint.
30472         * m4/human.m4 (gl_HUMAN): Likewise.
30473         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
30474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
30475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30476         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30477         * m4/xstrtol (gl_XSTRTOL): Likewise.
30478
30479         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
30480         AC_TYPE_LONG_LONG_INT.
30481         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30482         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
30483         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
30484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30485
30486         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
30487         on stdbool.
30488
30489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
30490         (gl_PREREQ_XSTRTOUL): Remove.
30491
30492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
30493
30494         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
30495         mode.
30496
30497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30498
30499         Add and change modules to make it easier for coreutils to use
30500         gnulib-tool.
30501         * modules/backupfile (Files): Remove m4/d-ino.m4.
30502         (Depends-on): Add d-ino.
30503         * modules/cycle-check (Depends-on): Add stdint.
30504         (lib_SOURCES): Add cycle-check.h.
30505         * modules/d-ino: New module.
30506         * modules/d-type: New module.
30507         * modules/error (Files): Remove m4/strerror_r.m4.
30508         * modules/filemode (Files): Add m4/st_dm_mode.m4.
30509         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
30510         m4/inttypes_h.m4, m4/uintmax_t.m4.
30511         (Depends-on): Add stdint.
30512         (lib_SOURCES): Add fsusage.h.
30513         * modules/getcwd (Files): Remove d-ino.m4.
30514         (Depends-on): Add d-ino.
30515         * modules/getndelim2 (Depends-on): Add stdint.
30516         * modules/glob (Files): Remove m4/d-type.m4.
30517         (Depends-on): Add d-type.
30518         * modules/host-os: New module.
30519         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
30520         m4/inttypes_h.m4, m4/uintmax_t.m4.
30521         * Depends-on: Add stdint.
30522         (lib_SOURCES): Add human.h.
30523         * modules/inttostr (Files): Remove m4/intmax_t.m4,
30524         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
30525         m4/uintmax_t.m4, m4/ulonglong.m4.
30526         (Depends-on): Add stdint.
30527         (EXTRA_DIST): Add inttostr.h.
30528         * modules/lchmod: New module.
30529         * modules/link-follow: New module.
30530         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
30531         (Depends-on): Add lchmod.
30532         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
30533         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
30534         (Depends-on): Add stdint.
30535         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
30536         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
30537         (Depends-on): Add stdint.
30538         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
30539         * modules/perl: New module.
30540         * modules/regex (Depends-on): Add stdint.
30541         * modules/rmdir-errno: New module.
30542         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30543         m4/intmax_t.m4.
30544         (Depends-on): Add stdint.
30545         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30546         m4/uintmax_t.m4.
30547         (Depends-on): Add stdint.
30548         * modules/unlink-busy: New module.
30549         * modules/utimecmp (Depends-on): Add stdint.
30550         * modules/uptime: New module.
30551         * modules/winsz-ioctl: New module.
30552         * modules/winsz-termios: New module.
30553         * modules/xnanosleep (Depends-on): Add nanosleep.
30554         * modules/ullong_max: Remove.
30555         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30556         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30557         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30559         (Depends-on): Add inttypes.
30560         (lib_SOURCES): Add xstrtol.h.
30561         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30562         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30563         * MODULES.html.sh: Move 'assert' into the assert section.
30564         Move 'dummy' into the linking section.
30565         Remove ullong_max.
30566         Add section for compatibility checks for POSIX:2001 functions,
30567         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30568         winsz-ioctl, and winsz-termios into it.
30569         Add lchmod.
30570         Add top-level Misc section and put host-os, perl, and uptime
30571         into it.
30572
30573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30574
30575         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30576         now assume the stdint module.  Do not include inttypes.h.
30577         * lib/fsusage.h: Likewise.
30578         * lib/getndelim2.c: Likewise.
30579         * lib/human.h: Likewise.
30580         * lib/inttostr.h: Likewise.
30581         * lib/obstack.c: Likewise.
30582         * lib/regex_internal.h: Likewise.
30583         * lib/tempname.c: Likewise.
30584         * lib/utimecmp.c: Likewise.
30585         * lib/xstrtol.h: Likewise.
30586
30587         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30588
30589         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30590         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30591         * lib/xtime.h: Likewise.
30592
30593 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30594
30595         * modules/openat (Files): Add lib/fchmodat.c.
30596         Fixes problem reported by Jay Youngman.
30597
30598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30599
30600         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
30601         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
30602
30603 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30604             Bruno Haible  <bruno@clisp.org>
30605
30606         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30607         and is a script that invokes bison. Tighten the code. Add comments.
30608
30609 2006-08-18  Jim Meyering  <jim@meyering.net>
30610
30611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30612         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30613         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30614         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30615
30616 2006-08-18  Bruno Haible  <bruno@clisp.org>
30617
30618         * modules/bison-i18n: New file.
30619         * MODULES.html.sh (Internationalization functions): Add it.
30620
30621 2006-08-18  Bruno Haible  <bruno@clisp.org>
30622
30623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30624         sys/statvfs.h. When getmntinfo was found, check its declaration and
30625         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30626
30627 2006-08-18  Bruno Haible  <bruno@clisp.org>
30628
30629         * m4/bison-i18n.m4: New file, from bison.
30630
30631 2006-08-18  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30634         (ME_DUMMY): Treat "kernfs" as a dummy.
30635         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30636
30637 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30638
30639         Update from coreutils.
30640
30641         2006-08-15  Jim Meyering  <jim@meyering.net>
30642
30643         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30644
30645         2006-01-17  Jim Meyering  <jim@meyering.net>
30646
30647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30648
30649         2006-01-11  Jim Meyering  <jim@meyering.net>
30650
30651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30652         Check for the lchmod function.
30653
30654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30655
30656         Update from coreutils.
30657
30658         * lib/__fpending.h: Add copyright notice.
30659         * lib/fprintftime.h: Likewise.
30660         * lib/savedir.c: Use (C) in copyright notice.
30661         * lib/savedir.h: Likewise.
30662
30663         2006-08-15  Jim Meyering  <jim@meyering.net>
30664
30665         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30666         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30667         in support of the EXPECTED_ERRNO macro.
30668         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30669         definitions.  Instead, define the appropriate symbols and include
30670         "at-func.c".
30671         * lib/mkdirat.c (mkdirat): Likewise.
30672         * lib/fchmodat.c (fchmodat): Likewise.
30673         (ENOSYS): Remove definition.
30674         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30675         it.  Don't include "unistd--.h" -- it wasn't ever used.
30676
30677         2006-01-17  Jim Meyering  <jim@meyering.net>
30678
30679         Rewrite fts.c not to change the current working directory,
30680         by using openat, fstatat, fdopendir, etc..
30681
30682         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30683         (HAVE_OPENAT_SUPPORT): Define.
30684         [_LIBC] (fchdir): Don't undef or define; no longer used.
30685         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30686         Now, this `function' always succeeds, and consumes its file descriptor
30687         parameter -- so callers must not close such FDs.  Update callers.
30688         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30689         (diropen): Add parameter, SP.  Adjust all callers.
30690         Implement using diropen_fd, rather than open.
30691         (fts_open): Initialize new member, fts_cwd_fd.
30692         Remove fts_rft-setting code.
30693         (fts_close): Close fts_cwd_fd, if necessary.
30694         (__opendir2): Define in terms of opendir or opendirat,
30695         depending on whether the FST_NOCHDIR flag is set.
30696         (fts_build): Since fts_safe_changedir consumes its FD, and since
30697         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30698         and close the dup'd file descriptor upon failure.
30699         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30700         (fts_safe_changedir): Tweak semantics to reflect that this function
30701         now calls cwd_advance_fd and hence consumes its FD argument.
30702         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30703         [struct FTS] (fts_rft): Remove now-unused member.
30704         [struct FTS] (fts_cycle.state): Improve comment.
30705
30706         * lib/openat.c (openat_needs_fchdir): New function.
30707         * lib/openat.h (openat_needs_fchdir): Declare it.
30708
30709 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30712         Problem and fix reported by Pádraig Brady in
30713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30714
30715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30716
30717         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30718
30719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30720
30721         * lib/memcoll.c (memcoll): Optimize for the common case where the
30722         arguments are bytewise equal.
30723
30724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30725
30726         * doc/regexprops-generic.texi: Add a copyright notice.
30727
30728 2006-08-15  Bruno Haible  <bruno@clisp.org>
30729
30730         * modules/tmpdir (License): Change to LGPL.
30731
30732 2006-08-15  Bruno Haible  <bruno@clisp.org>
30733
30734         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30735         module.
30736
30737 2006-08-14  Simon Josefsson  <jas@extundo.com>
30738
30739         * config/srclist.txt: Add gnupload.
30740
30741 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30742
30743         Change copyright notice from LGPL 2 to GPL 2, since that's the
30744         standard form used in the gnulib repository.
30745         * tests/test-lock.c: Likewise.
30746         * tests/test-stdint.c: Likewise.
30747         * tests/test-tls.c: Likewise.
30748
30749         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30750         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30751         Add copyright notice.
30752
30753         * check-module: Add copyright notice.  Output a copyright
30754         notice if "--version" is specified.
30755         * modules/COPYING: New file.
30756         * tests/test-getaddrinfo.c: Add copyright notice.
30757         * tests/test-verify.c: Likewise.
30758
30759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30760
30761         Change copyright notice from LGPL 2 to GPL 2, since that's the
30762         standard form used in the gnulib repository.
30763         * lib/lock.c: LGPL -> GPL.
30764         * lib/lock.h: Likewise.
30765         * lib/strnlen1.c: Likewise.
30766         * lib/strnlen1.h: Likewise.
30767         * lib/tls.c: Likewise.
30768         * lib/tls.h: Likewise.
30769         * lib/tmpdir.c: Likewise.
30770
30771         * lib/TODO: Remove; this belongs only in coreutils.
30772
30773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30774
30775         Add copyright notices to long-enough files that lack them, since
30776         otherwise the files aren't clearly free.  Use the same notice that
30777         getdate.texi already uses.
30778         * doc/alloca-opt.texi: Add copyright notice.
30779         * doc/alloca.texi: Likewise.
30780         * doc/ctime.texi: Likewise.
30781         * doc/functions.texi: Likewise.
30782         * doc/gcd.texi: Likewise.
30783         * doc/gnulib-tool.texi: Likewise.
30784         * doc/inet_ntoa.texi: Likewise.
30785         * doc/visibility.texi: Likewise.
30786
30787         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30788         * doc/quote.texi: Add copyright notice.
30789
30790         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30791         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30792         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30793         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30794         is now obsolete, and give a pointer to the Sun list.
30795         Add copyright notice.
30796
30797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30798
30799         * config/srclistvars.sh: Add copyright notice.
30800
30801 2006-08-14  Eric Blake  <ebb9@byu.net>
30802
30803         Import the following change from libc:
30804
30805         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30806
30807         Upstream bug 2997.
30808         * lib/misc/error.c: Add space between program name and message if file
30809         name is missing.
30810
30811 2006-08-12  Karl Berry  <karl@gnu.org>
30812
30813         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30814         remove, these originate in gnulib now.
30815
30816 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30817
30818         * doc/Makefile (standards.info standards.html standards.dvi):
30819         Also depend on make-stds.texi.
30820
30821 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30822
30823         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30824         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30825
30826         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30827         in wchar_t.  Problem reported by Eric Blake.
30828
30829         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30830         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30831         Also, help the compiler to keep LEN in a register.
30832
30833 2006-08-11  Eric Blake  <ebb9@byu.net>
30834
30835         * users.txt: Sort.  Add tar.
30836
30837 2006-08-11  Bruno Haible  <bruno@clisp.org>
30838
30839         * users.txt: New file.
30840
30841 2006-08-11  Bruno Haible  <bruno@clisp.org>
30842
30843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30844         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30845
30846 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30847
30848         * modules/snprintf (Depends-on): Remove minmax.
30849         (Maintainer): Add self and Bruno.
30850
30851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30852
30853         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30854         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30855         (EOVERFLOW): Define if the system does not.
30856         Do not include "minmax.h"; it wasn't used.
30857         (snprintf): Don't assume size_t promotes to an unsigned type.
30858         Fix bug when generated string was too long for the buffer: the
30859         buffer's contents are supposed to be the initial prefix of the
30860         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30861         exceeds INT_MAX; do the check ourselves.
30862
30863         Import the following changes from libc:
30864
30865         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30866
30867         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30868         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30869         set wc to the byte which couldn't be converted.
30870         (re_string_reconstruct): Don't clear valid_raw_len before calling
30871         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30872         tip_context using re_string_context_at.
30873
30874         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30875
30876         * lib/posix/regex.h: g++ still cannot handled [restrict].
30877
30878         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30879
30880         * lib/posix/regex.h: Remove special handling for VMS.
30881
30882 2006-08-10  Jim Meyering  <jim@meyering.net>
30883
30884         * modules/same-inode: New module.
30885         * modules/dev-ino: New module.
30886         * modules/cycle-check: Depend on these modules, rather than simply
30887         including their .h files.
30888         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30889         required via m4/cycle-check.m4.
30890         * modules/same: Depend on new same-inode module, rather than
30891         including same-inode.h.
30892         * modules/chdir-safer: New file.
30893
30894         * modules/chown (Depends-on): Add stat-macros.
30895
30896 2006-08-10  Jim Meyering  <jim@meyering.net>
30897
30898         * m4/cycle-check.m4: New file.
30899         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30900         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30901
30902 2006-08-10  Eric Blake  <ebb9@byu.net>
30903
30904         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30905         in from original proposal.
30906
30907 2006-08-10  Eric Blake  <ebb9@byu.net>
30908         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30909
30910         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30911         namespace.
30912
30913 2006-08-10  Bruno Haible  <bruno@clisp.org>
30914
30915         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30916         as well.
30917
30918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30919
30920         Sync from coreutils.
30921
30922         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30923
30924         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30925         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30926
30927 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30928
30929         * modules/restrict: Remove; no longer needed now that we assume
30930         Autoconf 2.59 or later.
30931         * MODULES.html.sh: Remove 'restrict'.
30932         * modules/argp (Depends-on): Remove 'restrict'.
30933         * modules/base64 (Depends-on): Likewise.
30934         * modules/gc (Depends-on): Likewise.
30935         * modules/getaddrinfo (Depends-on): Likewise.
30936         * modules/glob (Depends-on): Likewise.
30937         * modules/inet_ntop (Depends-on): Likewise.
30938         * modules/inet_pton (Depends-on): Likewise.
30939         * modules/memxor (Depends-on): Likewise.
30940         * modules/regex (Depends-on): Likewise.
30941         * modules/strtok_r (Depends-on): Likewise.
30942         * modules/time_r (Depends-on): Likewise.
30943
30944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30945
30946         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30947         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30949         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30951         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30952         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30953         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30954
30955         Merge from coreutils.
30956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30957         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30959         * m4/time_r.m4 (gl_TIME_R): Likewise.
30960
30961 2006-08-09  Karl Berry  <karl@gnu.org>
30962
30963         * config/srclist.txt: no more gettext-tools, per Bruno.
30964
30965 2006-08-08  Eric Blake  <ebb9@byu.net>
30966
30967         * modules/verror: New module.
30968         * MODULES.html.sh: Document it.
30969
30970 2006-08-08  Eric Blake  <ebb9@byu.net>
30971
30972         * lib/verror.h, lib/verror.c: New files.
30973
30974 2006-08-08  Eric Blake  <ebb9@byu.net>
30975
30976         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30977         verror_at_line output complies with GNU Coding Standards even when
30978         file is NULL.
30979
30980 2006-08-07  Bruno Haible  <bruno@clisp.org>
30981
30982         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30983         versions of AIX.
30984         Reported by Ralf Wildenhues.
30985
30986 2006-08-07  Bruno Haible  <bruno@clisp.org>
30987
30988         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30989         in an AC_DEFUN. Needed so that the autoconf snippets can use
30990         AC_REQUIRE.
30991
30992 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30993
30994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30995         Initialize pkgdata_DATA.
30996         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30997         overriding it.
30998
30999 2006-08-06  Eric Blake  <ebb9@byu.net>
31000
31001         * lib/error.h: Fold in some upstream changes from glibc.
31002         * lib/error.c: Likewise.
31003
31004 2006-08-04  Bruno Haible  <bruno@clisp.org>
31005
31006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31007         Make the mostlyclean-local rule depend on mostlyclean-generic.
31008         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
31009
31010 2006-07-31  Bruno Haible  <bruno@clisp.org>
31011
31012         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
31013         <stdlib.h>, <string.h>.
31014
31015 2006-07-30  Bruno Haible  <bruno@clisp.org>
31016
31017         * modules/readlink (License): Change to LGPL.
31018
31019 2006-07-30  Bruno Haible  <bruno@clisp.org>
31020
31021         * modules/javaversion (Makefile.am): Distribute javaversion.java and
31022         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
31023         set PKGDATADIR to point to it.
31024
31025 2006-07-30  Bruno Haible  <bruno@clisp.org>
31026
31027         * modules/csharpexec (configure.ac): Comment out macro invocation.
31028         * modules/javaexec (configure.ac): Likewise.
31029         * modules/javacomp-script (configure.ac): Likewise.
31030
31031         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
31032
31033 2006-07-30  Bruno Haible  <bruno@clisp.org>
31034
31035         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
31036         linked-list.
31037
31038 2006-07-30  Bruno Haible  <bruno@clisp.org>
31039
31040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
31041
31042 2006-07-30  Bruno Haible  <bruno@clisp.org>
31043
31044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31045         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
31046         get removed.
31047
31048 2006-07-29  Bruno Haible  <bruno@clisp.org>
31049
31050         Make it possible for gnulib-tool to work with locally modified or
31051         augmented gnulib repositories.
31052         * gnulib-tool (func_usage): Document --local-dir option.
31053         (local_gnulib_dir): New variable.
31054         Handle --local-dir option.
31055         (func_lookup_file): New function.
31056         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
31057         (func_get_description, func_get_filelist, func_get_description,
31058         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
31059         func_get_automake_snippet, func_get_include_directive,
31060         func_get_license, func_get_maintainer): Use func_lookup_file.
31061         (func_import, func_create_testdir): Use func_lookup_file.
31062
31063 2006-07-29  Bruno Haible  <bruno@clisp.org>
31064
31065         * modules/setenv (Depends-on): Add unistd.
31066
31067 2006-07-29  Bruno Haible  <bruno@clisp.org>
31068
31069         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
31070
31071 2006-07-29  Bruno Haible  <bruno@clisp.org>
31072
31073         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
31074
31075 2006-07-29  Bruno Haible  <bruno@clisp.org>
31076
31077         * gnulib-tool (import, update): If there is no Makefile.am, look at
31078         aclocal.m4, instead of bailing out.
31079
31080 2006-07-29  Bruno Haible  <bruno@clisp.org>
31081
31082         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
31083         Categorize the options by when they are useful.
31084
31085 2006-07-29  Bruno Haible  <bruno@clisp.org>
31086
31087         * gnulib-tool (func_usage): Document option --no-libtool.
31088         Handle option --no-libtool.
31089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
31090         for changed semantics of $libtool variable.
31091         (func_import): Likewise. If libtool is not used, show this through
31092         an option --no-libtool.
31093         (func_create_testdir): Update.
31094
31095 2006-07-29  Bruno Haible  <bruno@clisp.org>
31096
31097         * gnulib-tool (func_import): Extend error message about missing
31098         --doc-base.
31099
31100 2006-07-29  Bruno Haible  <bruno@clisp.org>
31101
31102         * gnulib-tool (func_import): Don't create the $docbase directory if
31103         there is no file to store there.
31104
31105 2006-07-29  Bruno Haible  <bruno@clisp.org>
31106
31107         * gnulib-tool (autoconf_minversion): If a --dir option is given and
31108         relevant, look for configure.ac there, not in the current directory.
31109         Also use a simple search for AC_PREREQ, not "autoconf --trace".
31110
31111 2006-07-29  Bruno Haible  <bruno@clisp.org>
31112
31113         * gnulib-tool (SORT): New variable.
31114         (func_usage): Undocument --assume-autoconf option.
31115         Remove --assume-autoconf option handling.
31116         (autoconf_minversion): Determine from the contents of configure.ac.
31117         (func_import): Remove autoconf_minversion handling.
31118         Suggested by Eric Blake.
31119
31120 2006-07-29  Bruno Haible  <bruno@clisp.org>
31121
31122         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
31123
31124 2006-07-29  Bruno Haible  <bruno@clisp.org>
31125
31126         * config/srclist.txt (*setenv.[ch]): Remove rules.
31127
31128 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31129
31130         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
31131
31132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31133
31134         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
31135         arpa/inet.h.
31136
31137 2006-07-28  Simon Josefsson  <jas@extundo.com>
31138
31139         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
31140         * modules/inet_pton (Depends-on): Likewise.
31141
31142 2006-07-28  Simon Josefsson  <jas@extundo.com>
31143
31144         * m4/netinet_in_h.m4: New file.
31145
31146 2006-07-28  Simon Josefsson  <jas@extundo.com>
31147
31148         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
31149         #include's.
31150
31151 2006-07-28  Simon Josefsson  <jas@extundo.com>
31152
31153         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
31154         #include's.
31155
31156 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
31157
31158         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
31159         setgid on directories only if they set these bits.
31160         * lib/modechange.h: Remove obsolete comment about masks.
31161
31162 2006-07-28  Eric Blake  <ebb9@byu.net>
31163
31164         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
31165         macro expansion.
31166
31167 2006-07-28  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
31170
31171 2006-07-28  Bruno Haible  <bruno@clisp.org>
31172
31173         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
31174
31175 2006-07-28  Bruno Haible  <bruno@clisp.org>
31176
31177         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31179         Define fallbacks.
31180         Avoids link error on FreeBSD 4.x.
31181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31182
31183         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
31184         encoding.
31185         * lib/mbswidth.c (iswcntrl): Likewise.
31186
31187 2006-07-27  Bruno Haible  <bruno@clisp.org>
31188
31189         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
31190         test.
31191
31192 2006-07-27  Bruno Haible  <bruno@clisp.org>
31193
31194         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
31195         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
31196         defined.
31197
31198 2006-07-26  Eric Blake  <ebb9@byu.net>
31199
31200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
31201
31202 2006-07-26  Eric Blake  <ebb9@byu.net>
31203
31204         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
31205         like mingw that lack mkstemp.
31206         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
31207         avoid compilation warning on mingw.
31208
31209 2006-07-26  Bruno Haible  <bruno@clisp.org>
31210
31211         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
31212         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
31213         INT_FAST*_MIN, INTPTR_MIN.
31214
31215 2006-07-25  Bruno Haible  <bruno@clisp.org>
31216
31217         * modules/version-etc (Depends-on): Add stdarg.
31218
31219 2006-07-25  Bruno Haible  <bruno@clisp.org>
31220
31221         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
31222         complex commands.
31223
31224 2006-07-25  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
31227         defined in <stdarg.h> or config.h.
31228
31229 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31230
31231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
31232         (gl_STDIO_SAFER): Remove.
31233
31234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * MODULES.html.sh (File stream based Input/Output):
31237         Add fopen-safer, tmpfile-safer; remove stdio-safer.
31238         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
31239         * modules/fopen-safer, modules/tmpfile-safer: New files.
31240         * modules/stdio-safer: Remove.
31241
31242 2006-07-24  Bruno Haible  <bruno@clisp.org>
31243
31244         * modules/tmpdir: New file.
31245         * MODULES.html.sh (File system functions): Add it.
31246
31247 2006-07-24  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
31250         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
31251
31252 2006-07-24  Bruno Haible  <bruno@clisp.org>
31253
31254         * modules/clean-temp: New file.
31255
31256 2006-07-24  Bruno Haible  <bruno@clisp.org>
31257
31258         * m4/tmpdir.m4: New file, from GNU gettext.
31259
31260 2006-07-24  Bruno Haible  <bruno@clisp.org>
31261
31262         * lib/tmpdir.h: New file, from GNU gettext.
31263         * lib/tmpdir.c: New file, from GNU gettext.
31264
31265 2006-07-24  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/clean-temp.h: New file, from GNU gettext.
31268         * lib/clean-temp.c: New file, from GNU gettext.
31269
31270 2006-07-23  Eric Blake  <ebb9@byu.net>
31271
31272         * modules/stdio-safer (Files): Add tmpfile-safer.c.
31273         (Depends-on): Add binary-io.
31274
31275 2006-07-23  Eric Blake  <ebb9@byu.net>
31276
31277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
31278
31279 2006-07-23  Eric Blake  <ebb9@byu.net>
31280
31281         * lib/tmpfile-safer.c: New file.
31282         * lib/stdio-safer.h (fopen_safer): Add prototype.
31283         * lib/stdio--.h (tmpfile): Make safer.
31284
31285 2006-07-23  Bruno Haible  <bruno@clisp.org>
31286
31287         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
31288         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
31289         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
31290         gl_linked_remove_at): Use it.
31291
31292 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31293         and Simon Josefsson <jas@extundo.com>
31294
31295         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
31296
31297         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
31298
31299 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31300
31301         * modules/close-stream: New file.
31302         * modules/closeout (Description): Make it clear that it exits
31303         with a diagnostic on error.
31304         (Depends-on): Add close-stream.  Remove fpending, stdbool.
31305         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
31306
31307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31308
31309         * m4/close-stream.m4: New file.
31310
31311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31312
31313         * lib/close-stream.c, lib/close-stream.h: New files.
31314
31315 2006-07-22  Bruno Haible  <bruno@clisp.org>
31316
31317         Merge from GNU gettext 0.15.
31318
31319         2006-05-01  Bruno Haible  <bruno@clisp.org>
31320
31321                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
31322
31323         2006-07-22  Bruno Haible  <bruno@clisp.org>
31324
31325                 * modules/javaversion: New file.
31326                 * MODULES.html.sh (Java): Add javaversion.
31327
31328         2006-03-12  Bruno Haible  <bruno@clisp.org>
31329
31330                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
31331
31332         2005-12-04  Bruno Haible  <bruno@clisp.org>
31333
31334                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
31335                 (untested).
31336
31337         2006-06-21  Bruno Haible  <bruno@clisp.org>
31338
31339                 Avoid warnings from recent versions of mcs.
31340                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
31341                 -o, -L, -r any more. Use options documented since mcs-1.0
31342                 instead. Similarly for -g.
31343
31344         2005-12-04  Bruno Haible  <bruno@clisp.org>
31345
31346                 * build-aux/csharpcomp.sh.in: Suffix for resources is
31347                 .resources, not .resource.
31348
31349         2005-07-09  Bruno Haible  <bruno@clisp.org>
31350
31351                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
31352                 add a .dll suffix.
31353                 Reported by Mark Junker <mjscod@gmx.de>.
31354
31355         2006-07-22  Bruno Haible  <bruno@clisp.org>
31356
31357                 * modules/gettext: Upgrade to gettext-0.15.
31358                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
31359                 m4/visibility.m4.
31360                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
31361
31362 2006-07-22  Bruno Haible  <bruno@clisp.org>
31363
31364         Merge from GNU gettext 0.15.
31365
31366         2006-03-25  Bruno Haible  <bruno@clisp.org>
31367
31368                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
31369
31370         2006-07-21  Bruno Haible  <bruno@clisp.org>
31371
31372                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
31373                 "1.1".
31374
31375         2006-05-09  Bruno Haible  <bruno@clisp.org>
31376
31377                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
31378                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
31379                 for the conftestver execution.
31380
31381         2006-05-01  Bruno Haible  <bruno@clisp.org>
31382
31383                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
31384                 optional target-version argument. Verify that the compiler
31385                 groks source of the specified source-version, or add -source
31386                 option as necessary. Verify that the compiler produces
31387                 bytecode in the specified target-version, or add -target and
31388                 -source options as necessary. Make the result of the test
31389                 available as variable CONF_JAVAC. Also log error output in
31390                 config.log.
31391
31392         2006-03-11  Bruno Haible  <bruno@clisp.org>
31393
31394                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
31395
31396         2006-05-09  Bruno Haible  <bruno@clisp.org>
31397
31398                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
31399                 CLASSPATH_SEPARATOR to a semicolon.
31400
31401         2006-03-12  Bruno Haible  <bruno@clisp.org>
31402
31403                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
31404                 available as variable CONF_JAVA, for subsequent autoconf
31405                 tests. Also log error output in config.log.
31406
31407         2006-07-19  Bruno Haible  <bruno@clisp.org>
31408
31409                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
31410                 that getline works on glibc2 systems. Needed to avoid trouble
31411                 in relocatable.c.
31412                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
31413
31414         2005-12-04  Bruno Haible  <bruno@clisp.org>
31415
31416                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
31417                 launcher (untested).
31418
31419         2005-12-04  Bruno Haible  <bruno@clisp.org>
31420
31421                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
31422
31423         2006-07-22  Bruno Haible  <bruno@clisp.org>
31424
31425                 * gettext.m4: Update from GNU gettext-0.15.
31426                 * nls.m4: Likewise.
31427                 * po.m4: Likewise.
31428                 * inttypes-pri.m4: Likewise.
31429                 * inttypes-h.m4: Renamed from inttypes.m4.
31430                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
31431
31432 2006-07-22  Bruno Haible  <bruno@clisp.org>
31433
31434         Merge from GNU gettext 0.15.
31435
31436         2005-07-05  Bruno Haible  <bruno@clisp.org>
31437
31438                 * printf-args.c (printf_fetchargs): Work around broken
31439                 definition of wint_t on mingw.
31440
31441         2005-02-12  Bruno Haible  <bruno@clisp.org>
31442
31443                 * xallocsa.h: Add extern "C" for C++.
31444
31445         2006-05-17  Bruno Haible  <bruno@clisp.org>
31446
31447                 Cygwin portability.
31448                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
31449
31450         2006-04-30  Bruno Haible  <bruno@clisp.org>
31451
31452                 * progreloc.c: Include <mach-o/dyld.h> if available.
31453                 (find_executable): Use _NSGetExecutablePath when possible.
31454
31455         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31456
31457                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
31458                 function.
31459
31460         2005-12-29  Bruno Haible  <bruno@clisp.org>
31461
31462                 * progreloc.c (set_program_name_and_installdir): Fix
31463                 compilation error.
31464
31465         2005-12-04  Bruno Haible  <bruno@clisp.org>
31466
31467                 Cygwin portability.
31468                 * progreloc.c: Include <windows.h> also on Cygwin.
31469                 (find_executable): Add support for Cygwin.
31470                 (set_program_name_and_installdir): Handle also platforms with
31471                 nonempty EXEEXT.
31472
31473         2006-07-11  Bruno Haible  <bruno@clisp.org>
31474
31475                 * javacomp.c: Fix a comment.
31476                 Reported by Jim Meyering.
31477
31478         2006-04-30  Bruno Haible  <bruno@clisp.org>
31479
31480                 * javacomp.h (compile_java_class): Add source_version,
31481                 target_version arguments.
31482                 * javacomp.c: Rewritten to choose only a compiler that
31483                 respects the specified source_version and target_version.
31484
31485         2006-06-27  Bruno Haible  <bruno@clisp.org>
31486
31487                 Assume correct S_ISDIR macro.
31488                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
31489
31490         2006-07-22  Bruno Haible  <bruno@clisp.org>
31491
31492                 * javaversion.h: New file, from GNU gettext.
31493                 * javaversion.c: New file, from GNU gettext.
31494                 * javaversion.java: New file, from GNU gettext.
31495                 * javaversion.class: New file, from GNU gettext.
31496
31497         2006-05-17  Bruno Haible  <bruno@clisp.org>
31498
31499                 Cygwin portability.
31500                 * javaexec.c (execute_java_class): Test for jview program
31501                 also on Cygwin.
31502
31503         2006-04-09  Bruno Haible  <bruno@clisp.org>
31504
31505                 * fatal-signal.c: Don't include string.h.
31506                 (at_fatal_signal): Use a copying loop instead of memcpy.
31507
31508         2005-12-04  Bruno Haible  <bruno@clisp.org>
31509
31510                 * csharpexec.c: Add support for 'clix' launcher (untested).
31511                 (execute_csharp_using_sscli): New function.
31512                 (execute_csharp_program): Call it.
31513
31514         2006-06-21  Bruno Haible  <bruno@clisp.org>
31515
31516                 Avoid warnings from recent versions of mcs.
31517                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
31518                 -o, -L, -r any more. Use options documented since mcs-1.0
31519                 instead. Similarly for -g.
31520
31521         2005-07-09  Bruno Haible  <bruno@clisp.org>
31522
31523                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
31524                 add a .dll suffix.
31525                 Reported by Mark Junker <mjscod@gmx.de>.
31526
31527         2006-06-17  Bruno Haible  <bruno@clisp.org>
31528
31529                 * config.charset: Update for NetBSD 3.0.
31530
31531         2006-05-17  Bruno Haible  <bruno@clisp.org>
31532
31533                 Cygwin portability.
31534                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
31535
31536         2006-05-16  Bruno Haible  <bruno@clisp.org>
31537
31538                 * localcharset.c [CYGWIN]: Include <windows.h>.
31539                 (get_charset_aliases): For Cygwin, return the same CPxxx
31540                 aliases list as under WIN32.
31541                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
31542                 the environment variables. Fall back to GetACP().
31543
31544         2006-04-05  Bruno Haible  <bruno@clisp.org>
31545
31546                 * config.charset: Update Juan Manuel Guerrero's address.
31547
31548         2005-02-12  Bruno Haible  <bruno@clisp.org>
31549
31550                 * allocsa.h: Add extern "C" for C++.
31551
31552         2005-02-10  Bruno Haible  <bruno@clisp.org>
31553
31554                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31555                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31556
31557         2006-07-22  Bruno Haible  <bruno@clisp.org>
31558
31559                 * gettext.h: Update to GNU gettext-0.15.
31560
31561 2006-07-22  Bruno Haible  <bruno@clisp.org>
31562
31563         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31564         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31565         lib-prefix.m4, longdouble.m4, ssize_t.m4.
31566
31567 2006-07-21  Eric Blake  <ebb9@byu.net>
31568
31569         * modules/stdlib-safer: New file.
31570         * MODULES.html.sh (File stream based Input/Output): Add
31571         stdlib-safer.
31572
31573 2006-07-21  Eric Blake  <ebb9@byu.net>
31574
31575         * lib/stdlib-safer.h: New file from coreutils, required by
31576         stdlib--.h.
31577
31578 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31579
31580         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31581
31582 2006-07-20  Bruno Haible  <bruno@clisp.org>
31583
31584         * gnulib-tool: Recognize new option --assume-autoconf.
31585         (autoconf_minversion): New variable.
31586         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31587
31588 2006-07-20  Bruno Haible  <bruno@clisp.org>
31589
31590         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31591
31592 2006-07-19  Derek R. Price  <derek@ximbiot.com>
31593
31594         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31595         Reindent and repaginate.
31596
31597 2006-07-19  Derek Price  <derek@ximbiot.com>
31598
31599         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
31600         Correct grammar.
31601
31602 2006-07-17  Bruno Haible  <bruno@clisp.org>
31603
31604         * modules/list: New file.
31605         * modules/array-list: New file.
31606         * modules/carray-list, modules/carray-list-tests: New files.
31607         * modules/linked-list, modules/linked-list-tests: New files.
31608         * modules/avltree-list, modules/avltree-list-tests: New files.
31609         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31610         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31611         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31612         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31613         * modules/oset: New file.
31614         * modules/array-oset: New file.
31615         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31616         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31617         * tests/test-carray_list.c: New file.
31618         * tests/test-linked_list.c: New file.
31619         * tests/test-avltree_list.c: New file.
31620         * tests/test-rbtree_list.c: New file.
31621         * tests/test-linkedhash_list.c: New file.
31622         * tests/test-avltreehash_list.c: New file.
31623         * tests/test-rbtreehash_list.c: New file.
31624         * tests/test-avltree_oset.c: New file.
31625         * tests/test-rbtree_oset.c: New file.
31626         * MODULES.html.sh (Container data structures): New section.
31627
31628 2006-07-17  Bruno Haible  <bruno@clisp.org>
31629
31630         * m4/gl_list.m4: New file.
31631
31632 2006-07-17  Bruno Haible  <bruno@clisp.org>
31633
31634         * lib/gl_list.h: New file.
31635         * lib/gl_list.c: New file.
31636         * lib/gl_array_list.h: New file.
31637         * lib/gl_array_list.c: New file.
31638         * lib/gl_carray_list.h: New file.
31639         * lib/gl_carray_list.c: New file.
31640         * lib/gl_linked_list.h: New file.
31641         * lib/gl_linked_list.c: New file.
31642         * lib/gl_anylinked_list1.h: New file.
31643         * lib/gl_anylinked_list2.h: New file.
31644         * lib/gl_avltree_list.h: New file.
31645         * lib/gl_avltree_list.c: New file.
31646         * lib/gl_anyavltree_list1.h: New file.
31647         * lib/gl_anyavltree_list2.h: New file.
31648         * lib/gl_rbtree_list.h: New file.
31649         * lib/gl_rbtree_list.c: New file.
31650         * lib/gl_anyrbtree_list1.h: New file.
31651         * lib/gl_anyrbtree_list2.h: New file.
31652         * lib/gl_anytree_list1.h: New file.
31653         * lib/gl_anytree_list2.h: New file.
31654         * lib/gl_linkedhash_list.h: New file.
31655         * lib/gl_linkedhash_list.c: New file.
31656         * lib/gl_anyhash_list1.h: New file.
31657         * lib/gl_anyhash_list2.h: New file.
31658         * lib/gl_avltreehash_list.h: New file.
31659         * lib/gl_avltreehash_list.c: New file.
31660         * lib/gl_rbtreehash_list.h: New file.
31661         * lib/gl_rbtreehash_list.c: New file.
31662         * lib/gl_anytreehash_list1.h: New file.
31663         * lib/gl_anytreehash_list2.h: New file.
31664
31665         * lib/gl_oset.h: New file.
31666         * lib/gl_oset.c: New file.
31667         * lib/gl_array_oset.h: New file.
31668         * lib/gl_array_oset.c: New file.
31669         * lib/gl_avltree_oset.h: New file.
31670         * lib/gl_avltree_oset.c: New file.
31671         * lib/gl_rbtree_oset.h: New file.
31672         * lib/gl_rbtree_oset.c: New file.
31673         * lib/gl_anytree_oset.h: New file.
31674
31675 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31676
31677         * m4/mkancesdirs.m4: New file.
31678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31679         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31680         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31681         it.
31682
31683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31684
31685         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31686         * lib/mkancesdirs.h: New files.
31687         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31688         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31689         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31690         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31691         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31692         callers changed.  Revamp internals significantly, by not
31693         attempting to create directories that are temporarily more
31694         permissive than the final results.  Do not attempt to use
31695         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31696         This removes some race conditions, fixes some bugs, and simplifies
31697         things.  Use new dirchownmod function to do owner and mode changes.
31698         * lib/mkdir-p.h: Likewise.
31699         * lib/modechange.c (octal_to_mode): New function.
31700         (struct mode_change): New member mentioned.
31701         (make_node_op_equals): New arg mentioned.  All callers changed.
31702         (mode_compile): Keep track of which mode bits the user has explicitly
31703         mentioned.
31704         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31705         New arg PMODE_BITS, to keep track of which mode bits the user
31706         mentioned; it treats S_ISUID and S_ISGID speciall.
31707         All callers changed.
31708         * lib/modechange.h: Likewise.
31709
31710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31711
31712         * MODULES.html.sh: Add mkancestors.
31713         * modules/mkancesdirs: New module.
31714         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31715         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31716         The chdir-safer and afs files are now orphans; I'll remove them
31717         unless someone speaks up.
31718         Add lib/dirchownmod.c, lib/dirchownmod.h.
31719         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31720         Add lchown, mkancesdirs.
31721         (Maintainer): Add self.
31722
31723 2006-07-15  Karl Berry  <karl@gnu.org>
31724
31725         * gnulib-tool: help message wording/arrangement.
31726
31727 2006-07-14  Simon Josefsson  <jas@extundo.com>
31728
31729         * doc/gnulib.texi (Libtool and Windows): New section.
31730
31731 2006-07-12  Simon Josefsson  <jas@extundo.com>
31732
31733         * modules/gendocs (License): Fix license, approved by Karl.
31734
31735 2006-07-12  Eric Blake  <ebb9@byu.net>
31736
31737         * MODULES.html.sh: Add gendocs.
31738
31739 2006-07-11  Eric Blake  <ebb9@byu.net>
31740
31741         * modules/fdl: New module, to install doc/fdl.texi.
31742         * MODULES.html.sh: Add new section for documentation modules.
31743         * gnulib-tool: Avoid space-tab.
31744         (--doc-base): New option, to manage files from doc.
31745
31746 2006-07-11  Eric Blake  <ebb9@byu.net>
31747
31748         * m4/absolute-header.m4: Fix comments to match recent change.
31749
31750 2006-07-11  Eric Blake  <ebb9@byu.net>
31751
31752         * gnulib-tool: List --doc-base before --tests-base.
31753
31754 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31755
31756         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31757
31758 2006-07-11  Bruno Haible  <bruno@clisp.org>
31759
31760         * README: Mention where to put documentation.
31761
31762 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31763
31764         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31765
31766 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31767
31768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31769         to stdint.m4.
31770
31771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31772
31773         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31774         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31775         "no/such/file/stdint.h" when there is no such file, so that
31776         the resulting C code can be parsed by dodgy compilers.
31777         Problems reported by Bob Proulx.
31778
31779 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31780
31781         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31782         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31783         macros into the GNU _D_EXACT_NAMLEN.
31784         * lib/savedir.c:  Likewise.
31785         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31786
31787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31788         and Paul Eggert  <eggert@cs.ucla.edu>
31789
31790         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31791         * m4/savedir.m4:
31792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31793         macros into the GNU _D_EXACT_NAMLEN.
31794
31795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31796
31797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31798         around the absolute name, to work around a problem with the HP-UX
31799         11.23 native C compiler, reported by Bob Proulx.
31800
31801 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31802
31803         * doc/maintain.texi, make-stds.texi: Sync from
31804         <http://savannah.gnu.org/projects/gnustandards>.
31805
31806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31809
31810 2006-07-09  Jim Meyering  <jim@meyering.net>
31811
31812         * m4/glob.m4: Remove a doubled word in a comment.
31813
31814 2006-07-09  Jim Meyering  <jim@meyering.net>
31815
31816         * lib/argp-pv.c: Remove a doubled word in a comment.
31817         * lib/check-version.c (check_version): Likewise.
31818         * lib/javacomp.c (compile_java_class): Likewise.
31819
31820 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31821
31822         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31823         for the benefit of people using Autoconf 2.60.  If you want to
31824         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31825         (or m4/onceonly.m4, if pre-2.57) manually.
31826
31827 2006-07-08  Jim Meyering  <jim@meyering.net>
31828
31829         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31830         comment.
31831         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31832         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31833         comment.
31834
31835 2006-07-08  Jim Meyering  <jim@meyering.net>
31836
31837         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31838
31839 2006-07-07  Simon Josefsson  <jas@extundo.com>
31840
31841         * tests/test-crc.c: Change expected crc value, the test vector
31842         were probably computed using the old broken crc.c?
31843
31844 2006-07-06  Simon Josefsson  <jas@extundo.com>
31845
31846         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31847         now the canonical place for the M4 file).
31848
31849         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31850         from the sys_socket dependency now.
31851
31852         * modules/inet_pton (Files): Ditto.
31853
31854         * modules/inet_ntop (Files): Ditto.
31855
31856 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31857
31858         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31859         not gl_PREREQ_GETUSERSHELL.
31860
31861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31862
31863         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31864         with only one argument, for Autoconf 2.60.
31865         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31866         expand to nothing, so add a shell command to avoid syntax error.
31867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31868
31869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31870
31871         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31872
31873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31874
31875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31876         no longer needed.  Check for isblank decl.
31877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31878         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31879         of existence.
31880
31881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31882
31883         * lib/getloadavg.c: Use __VMS, not VMS.
31884         * lib/getopt.c: Likewise.
31885         * lib/getpagesize.h: Likewise.
31886         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31887         and probably does not work.
31888
31889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         * lib/.cppi-disable: Add wcwidth.
31892         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31893         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31894         (ISGRAPH): Remove.  All uses changed to isgraph.
31895         (FOLD) [!defined _LIBC]: Remove special case.
31896         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31897         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31898         HAVE_ISBLANK.
31899         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31900         case.
31901
31902 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31903
31904         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31905         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31906         brackets.  Other minor changes to suppress some compiler
31907         warnings.
31908
31909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31910         and Paul Eggert  <eggert@cs.ucla.edu>
31911
31912         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31913         of invoking obsolescent AC_HEADER_DIRENT macro.
31914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31915         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31918         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31920         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31921         * m4/readdir.m4: Remove; no longer needed.
31922
31923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31924         and Paul Eggert  <eggert@cs.ucla.edu>
31925
31926         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31927         Don't worry about this obsolete case any more.
31928         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31929         directories.
31930         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31931         worry about this obsolete case any more.
31932         * lib/fts.c: Likewise.
31933         * lib/getcwd.c: Likewise.
31934         * lib/glob.h: Likewise.
31935         * lib/savedir.c: Likewise.
31936
31937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31938
31939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31940         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31942         needed.
31943         All uses removed.
31944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31945         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31947         needed.
31948         * m4/getdate.m4 (gl_GETDATE): Likewise.
31949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31955         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31956         needed.
31957
31958 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31959
31960         * lib/memcasecmp.c: Include <limits.h>.
31961         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31962         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31963         Don't assume isdigit succeeds only on '0' through '9'.
31964
31965 2006-07-05  Eric Blake  <ebb9@byu.net>
31966
31967         * modules/getaddrinfo (Depends-on): Add snprintf.
31968
31969 2006-07-05  Eric Blake  <ebb9@byu.net>
31970
31971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31972         to avoid 'header present but could not be compiled' on cygwin.
31973
31974 2006-07-05  Eric Blake  <ebb9@byu.net>
31975
31976         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31977         missing from netdb.h.
31978         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31979
31980 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31981
31982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31983         no longer needed.
31984         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31985         * m4/getdate.m4 (gl_GETDATE): Likewise.
31986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31991
31992 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31993
31994         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31995         All uses of is_space replaced by isspace.
31996         * lib/exit.h: Don't talk about STDC_HEADERS.
31997         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31998         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31999         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
32000         replaced by isprint etc.
32001         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
32002         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32003         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
32004         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
32005         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
32006         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32007
32008 2006-07-05  Bruno Haible  <bruno@clisp.org>
32009
32010         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
32011         the function exists, before testing against AIX.
32012         Reported by Martin Lambers <marlam@marlam.de>.
32013
32014 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32015
32016         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
32017         From Mark D. Baushke.
32018
32019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
32022         to the absolute name, not just one, to bypass Sun C 5.8's
32023         "warning: #include of /usr/include/... may be non-portable".
32024
32025 2006-07-04  Eric Blake  <ebb9@byu.net>
32026
32027         * modules/dirname-tests: New test module.
32028         * tests/test-dirname.c: New file, replacing dirname.c
32029         TEST_DIRNAME section that was recently deleted.
32030
32031 2006-07-04  Bruno Haible  <bruno@clisp.org>
32032
32033         Assume ANSI C header files and <ctype.h> functions.
32034         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
32035         (mbsnwidth): Use isprint, iscntrl instead.
32036
32037 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32038
32039         Merge from coreutils.
32040         * MODULES.html.sh: Add xstrtold.
32041         * modules/xstrtold: New file.
32042         * modules/cycle-check (Files): Add lib/same-inode.h.
32043         * modules/dirname (Files): Add m4/double-slash-root.m4.
32044         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
32045         * modules/mkdir-p (Files): Add lib/same-inode.h.
32046         * modules/same (Files): Add lib/same-inode.h.
32047
32048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         * m4/absolute-header.m4: Renamed from full-header-path.m4.
32051         This is to keep the terminology clean; POSIX talks about
32052         "absolute pathnames", not "full pathnames", but the GNU
32053         Coding Standards say to use "path" for something else;
32054         so use "absolute" to keep both sides happy.
32055         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
32056         Set gl_absolute_header, not gl_full_header_path.
32057         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
32058         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
32059         All uses changed.
32060
32061         Merge from coreutils.
32062
32063         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32064
32065         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
32066         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
32067         want to require the building of c-strtod.o.
32068         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
32069         needs -lm directly.
32070         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
32071
32072         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32073
32074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
32075         --as-needed option if available.  Problem reported by Albert Chin in
32076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
32077         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
32078         cc merely issues a bunch of annoying warnings for --as-needed
32079         (this problem was reported by Bob Proulx).  Also, try linking with
32080         -lm to detect a bug in binutils 2.16 (this problem was reported
32081         by Ralf Wildenhues).
32082
32083         2006-06-18  Jim Meyering  <jim@meyering.net>
32084
32085         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
32086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
32087         macro.
32088         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
32089         also check for glibc-2.4's abort-inducing bug.
32090
32091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
32092         Low-probability clean-up should be to use rmdir to get rid of
32093         the just-created directory, not unlink.
32094
32095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
32096         configure fail, and request a bug report to inform us about it.
32097         Add a comment that, barring reports to the contrary, in 2007 we'll
32098         assume ftruncate is universally available.
32099
32100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32101
32102         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
32103
32104         2006-03-12  Jim Meyering  <jim@meyering.net>
32105
32106         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
32107         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
32108         * m4/same.m4 (gl_SAME): Likewise.
32109         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
32110
32111         2006-03-11  Eric Blake  <ebb9@byu.net>
32112
32113         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
32114         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
32115         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
32116         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
32117
32118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32119
32120         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
32121         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
32122         reported by Mark D. Baushke, one in
32123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
32124
32125         Merge from coreutils.
32126
32127         * lib/.cppi-disable: Add stdint_.h.
32128         * lib/.cvsignore: Add stdint.h.
32129
32130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32131
32132         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
32133         both double and long double versions.
32134         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
32135         * lib/xstrtold.c: New file.
32136         * lib/xstrtod.h (xstrtold): New decl.
32137
32138         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32139
32140         * lib/filemode.c (setst): Remove.
32141         (strmode): Rewrite to avoid setst.  This makes the code shorter,
32142         (arguably) clearer, and the generated code is a bit smaller on my
32143         Debian GNU/Linux stable x86 host.
32144
32145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32146
32147         * lib/filemode.c: Include "filemode.h" first, to test the interface.
32148         Assume that filemode.h includes sys/types.h and sys/stat.h.
32149         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
32150         (ftypelet): Reorder to put common cases first, for efficiency.
32151         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
32152         to do 'M'.
32153         (strmode): Renamed from mode_string, and now stores 12 bytes instead
32154         of 10, for compatibility with FreeBSD.  All callers changed.
32155         (filemodestring): Now stores 12 bytes instead of 10, and sets file
32156         types that can't be deduced solely from st_mode.  First arg is now a
32157         const pointer.
32158         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
32159         (strmode): Renamed from mode_string.
32160         (filemodestring): New decl.
32161         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
32162         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
32163         needed.
32164         (S_ISPORT, S_ISWHT): New macros, if not already defined.
32165
32166         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32167
32168         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
32169         fsusage.h now does that.  Include fsusage.h first, to test interface.
32170         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
32171         at most one method (the old code could have generated decls that
32172         didn't conform to C89, not that this was ever exercised).
32173         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
32174
32175         2006-03-19  Jim Meyering  <jim@meyering.net>
32176
32177         Work even in a chroot where d_ino values for entries in "/"
32178         don't match the stat.st_ino values for the same names.
32179         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
32180         number, iterate through all entries again, using lstat instead.
32181         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
32182         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
32183
32184         * lib/getcwd.c (__getcwd): Clarify a comment.
32185         Use memcpy in place of a call to strcpy.
32186
32187         2006-03-12  Jim Meyering  <jim@meyering.net>
32188
32189         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
32190         matches that of the current directory (which we're about to chdir ".."
32191         out of), then save the dev-ino of the parent, instead.
32192
32193         * lib/same-inode.h (SAME_INODE): New file/macro.
32194         * lib/chdir-safer.c (SAME_INODE): Remove definition.
32195         Include "same-inode.h", instead.
32196         * lib/same.c: Likewise.
32197         * lib/cycle-check.h: Include "same-inode.h".
32198         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
32199         * lib/cycle-check.c (SAME_INODE): Remove definition.
32200         * lib/root-dev-ino.h: Include "same-inode.h".
32201
32202         2006-03-11  Eric Blake  <ebb9@byu.net>
32203
32204         * lib/same.c (same_name): s/base_name/last_component/
32205         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
32206         * lib/filenamecat.c (file_name_concat): Likewise.
32207
32208         2006-03-11  Eric Blake  <ebb9@byu.net>,
32209                     Paul Eggert  <eggert@cs.ucla.edu>
32210
32211         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
32212         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
32213         drive prefix.
32214         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
32215         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
32216         (last_component): New method.
32217         * lib/dirname.c (dir_len): Determine when drive letters need a
32218         subsequent slash.  Preserve // when it is special.
32219         (dir_name): Don't append dot when drive letter is absolute.
32220         [TEST_DIRNAME]: Move into a full-blown gnulib test.
32221         * lib/basename.c (base_name): New semantics - malloc the result.
32222         Preserve // when it is special.  Preserve relative files that look
32223         like drive letters.
32224         (base_len): Preserve // when it is special.
32225         (last_component): New method, similar to old base_name semantics.
32226         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
32227         base_name.  Strip redundant slashes from ///.
32228
32229 2006-07-03  Jim Meyering  <jim@meyering.net>
32230
32231         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
32232         macro is used before the first cycle_check call.
32233
32234 2006-07-03  Eric Blake  <ebb9@byu.net>
32235
32236         * modules/dirname (Depends-on): Add xstrndup.
32237
32238 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32239
32240         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
32241         test cases, so that config.log is a bit easier to follow.
32242
32243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32244
32245         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
32246         both are 64 bits, since this seems to be the tradition, and this
32247         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
32248         we ever run into a host that prefers long long to long in this
32249         case, we'll need another configure-time test.  Problem reported by
32250         Jim Meyering.
32251
32252 2006-07-02  Eric Blake  <ebb9@byu.net>
32253
32254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
32255
32256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32257
32258         * modules/inttypes (Depends-on): No longer depends on stdint.
32259         * modules/stdint (Description): Say more about assumptions.
32260         Say that the fast types might differ.  Say macros are used.
32261         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
32262         (Makefile.am): Revise list of substituted symbols to match
32263         new stdint.m4.
32264         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
32265         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
32266         * tests/test-stdint.c (verify_same_types)
32267         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
32268         the code conforms to C99/C89.
32269         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
32270         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
32271
32272 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32273
32274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
32275         but fix a bug, by requiring at least 64 bits.
32276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
32277         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
32278         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
32279         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
32280
32281         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
32282         changes.  Make 2.59 a prerequisite.  Check and substitute for
32283         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
32284         inttypes.h.  Do not use special include files; just use the
32285         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
32286         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
32287         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
32288         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
32289         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
32290         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
32291         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
32292         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
32293         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
32294         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
32295         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
32296         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
32297         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
32298         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
32299         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
32300         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
32301         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
32302         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
32303         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
32304         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
32305         WINT_MAX.  Check for C99 conformance more strictly, by detecting
32306         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
32307         not check for things that C99 does not require, e.g., int8_t.  If
32308         a test isn't needed unless <stdint.h> isn't working, and is
32309         unlikely to be needed for any other reason, then don't do it
32310         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
32311         size_t, since we assume C89 freestanding at least.  Do not check
32312         for sig_atomic_t, wchar_t, or wint_t, since the code now does
32313         the right thing even if the types are not defined.  Instead use:
32314         (gl_STDINT_TYPE_PROPERTIES): New macro.
32315         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
32316         testing whether <sys/types.h> clashes, as Autoconf does this for
32317         us now.  All uses removed.
32318         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
32319         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
32320         (gl_CHECK_TYPE_SAME):
32321         Remove; no longer needed.
32322         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
32323         exists, since we'll return 0 anyway in that case.
32324         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
32325
32326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32327
32328         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
32329         possible collision with system files.
32330         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
32331         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
32332         WCHAR_MIN and WCHAR_MAX in this case.
32333         (<stddef.h>): Do not include; no longer needed.
32334         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
32335         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
32336         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
32337         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
32338         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
32339         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
32340         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
32341         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
32342         !defined(__c99))]: Include in this case too, since it's harmless
32343         now.
32344         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
32345         dangerous to do so.
32346         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
32347         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
32348         (_STDINT_MIN, _STDINT_MAX): New macros.
32349         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
32350         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
32351         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
32352         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
32353         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
32354         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
32355         macros, not typedefs; this simplifies things quite a bit.
32356         Use long int for all types narrower than int64_t.
32357         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
32358         Define in terms of long long int or int64_t or long int,
32359         not int64_t or int32_t.  This saves some compile-time testing.
32360         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
32361         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
32362         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
32363         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
32364         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
32365         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
32366         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
32367         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
32368         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
32369         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
32370         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32371         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32372         undef any previous version and define our own version, for
32373         simplicity and consistency with the new macros for types.
32374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32376         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
32377         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
32378         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
32379         @WINT_T_SUFFIX@ to keep things simple here.
32380         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
32381         Simplify by assuming typical 8/16/32/64 host, since we're
32382         already doing that elsewhere anyway.
32383         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
32384         and assume long long int is 64 bits if available.  This
32385         speeds up 'configure'.
32386
32387 2006-07-01  Eric Blake  <ebb9@byu.net>
32388
32389         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
32390         Reported by Andreas Buening.
32391
32392 2006-07-01  Eric Blake  <ebb9@byu.net>
32393
32394         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
32395
32396 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32397
32398         * lib/getaddrinfo.c: fixed typo
32399
32400 2006-06-29  Jim Meyering  <jim@meyering.net>
32401
32402         * modules/strftime (Maintainer): Add my name, since with the
32403         FPRINTFTIME changes strftime.c has forked from glibc.
32404
32405 2006-06-29  Eric Blake  <ebb9@byu.net>
32406
32407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
32408
32409 2006-06-29  Eric Blake  <ebb9@byu.net>
32410
32411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
32412
32413 2006-06-29  Eric Blake  <ebb9@byu.net>
32414
32415         * lib/stat_.h: New file.
32416
32417 2006-06-29  Eric Blake  <ebb9@byu.net>
32418
32419         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
32420         unused static function.
32421
32422 2006-06-29  Eric Blake  <ebb9@byu.net>
32423
32424         * doc/functions.texi (Function Portability): Document missing lstat
32425         on mingw.
32426
32427 2006-06-29  Eric Blake  <ebb9@byu.net>
32428
32429         * MODULES.html.sh: Add sys_stat.
32430         * modules/sys_stat: New module.
32431         * modules/mkstemp (Depends-on): Add sys_stat.
32432
32433 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32434
32435         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
32436
32437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32438
32439         * m4/c-bs-a.m4: Removed.
32440
32441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32442
32443         * lib/strftime.c: Assume strftime() exists.
32444
32445 2006-06-29  Derek Price  <derek@ximbiot.com>
32446
32447         * modules/c-bs-a: Removed - \a is C89.
32448         * MODULES.html.sh: Remove c-bs-a.
32449
32450 2006-06-29  Bruno Haible  <bruno@clisp.org>
32451
32452         * modules/wcwidth (License): Change to LGPL.
32453
32454 2006-06-28  Simon Josefsson  <jas@extundo.com>
32455
32456         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
32457         on _WIN32.
32458
32459         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
32460         getnameinfo.
32461
32462 2006-06-28  Simon Josefsson  <jas@extundo.com>
32463
32464         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
32465
32466 2006-06-28  Simon Josefsson  <jas@extundo.com>
32467
32468         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
32469         functions there.  It will succeed on Windows XP, but on Windows
32470         2000 and (presumably) earlier, it will fail, and use the internal
32471         re-implementation.
32472         (use_win32_p): New function.
32473         (getaddrinfo): Use strtoul on servname, to support numeric ports.
32474         Support AI_NUMERICSERV to disable getservbyname.
32475         (getnameinfo): New function, only supports
32476         NI_NUMERICHOST|NI_NUMERICSERV for now.
32477
32478         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
32479         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
32480         getnameinfo.
32481
32482 2006-06-28  Eric Blake  <ebb9@byu.net>
32483
32484         * modules/wcwidth: New file.
32485         * modules/mbchar (Depends-on): Add wcwidth.
32486         * modules/mbswidth (Depends-on): Add wcwidth.
32487         * MODULES.html.sh: Add wcwidth.
32488
32489 2006-06-28  Eric Blake  <ebb9@byu.net>
32490
32491         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
32492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
32493
32494 2006-06-28  Eric Blake  <ebb9@byu.net>
32495
32496         * lib/xvasprintf.h: Fix comments.
32497
32498 2006-06-28  Eric Blake  <ebb9@byu.net>
32499
32500         * lib/mbchar.h (wcwidth): Include wcwidth.h.
32501         * lib/mbswidth.c (wcwidth): Move from here...
32502         * lib/wcwidth.h: ...to this new file.
32503
32504 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32505
32506         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
32507
32508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
32509         it's obsolete.
32510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
32511
32512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32513
32514         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
32515         Autoconf 2.60 says this stuff was obsolete.
32516
32517 2006-06-28  Bruno Haible  <bruno@clisp.org>
32518
32519         * modules/wcwidth (Files): Add m4/wchar_t.m4.
32520
32521 2006-06-28  Bruno Haible  <bruno@clisp.org>
32522
32523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
32524         gt_TYPE_WCHAR_T.
32525
32526 2006-06-28  Bruno Haible  <bruno@clisp.org>
32527
32528         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
32529         declaration for wcwidth.
32530         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
32531
32532 2006-06-28  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/mkdtemp.c [MINGW]: Include <io.h>.
32535         (mkdir): Define using _mkdir.
32536
32537 2006-06-28  Bruno Haible  <bruno@clisp.org>
32538
32539         * lib/getaddrinfo.h: Fix POSIX URL.
32540         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
32541         _WIN32.
32542         (use_win32_p): Make static.
32543         (getaddrinfo): Reject service name if it is empty or does not consist
32544         solely of decimal digits, or if its value is > 65535.
32545         (getnameinfo): Remove useless casts.
32546
32547 2006-06-27  Simon Josefsson  <jas@extundo.com>
32548
32549         * modules/sys_select: New file, suggested by Bruno Haible, Paul
32550         Eggert and Martin Lambers.
32551
32552 2006-06-27  Simon Josefsson  <jas@extundo.com>
32553
32554         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32555         Eggert and Martin Lambers.
32556
32557 2006-06-27  Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32560         result to 0, not to empty.
32561         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32562
32563 2006-06-27  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32566
32567 2006-06-26  Simon Josefsson  <jas@extundo.com>
32568
32569         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32570         present.
32571
32572 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32573
32574         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32575         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
32576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32577
32578 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
32579
32580         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32581
32582 2006-06-26  Bruno Haible  <bruno@clisp.org>
32583
32584         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32585
32586 2006-06-26  Bruno Haible  <bruno@clisp.org>
32587
32588         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32589
32590 2006-06-26  Bruno Haible  <bruno@clisp.org>
32591
32592         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32593         SGI C compiler in pre-C99 mode.
32594         Suggested by Mark D. Baushke and Larry Jones.
32595
32596 2006-06-26  Bruno Haible  <bruno@clisp.org>
32597
32598         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32599         WCHAR_MAX.
32600         Reported by Mark D. Baushke and Larry Jones.
32601
32602 2006-06-26  Bruno Haible  <bruno@clisp.org>
32603
32604         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32605         in pre-C99 mode.
32606         Suggested by Mark D. Baushke and Larry Jones.
32607
32608 2006-06-23  Simon Josefsson  <jas@extundo.com>
32609             Bruno Haible  <bruno@clisp.org>
32610
32611         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32612         Emit mostlyclean-local rule.
32613         (func_emit_tests_Makefile_am): Likewise.
32614         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32615
32616 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32617
32618         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32619
32620 2006-06-23  Bruno Haible  <bruno@clisp.org>
32621
32622         * tests/test-stdint.c: Update to match ISO C 99 Technical
32623         Corrigendum 1.
32624
32625 2006-06-23  Bruno Haible  <bruno@clisp.org>
32626
32627         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32628
32629 2006-06-23  Bruno Haible  <bruno@clisp.org>
32630
32631         * lib/stdint_.h: Treat IRIX like OpenBSD.
32632
32633 2006-06-23  Bruno Haible  <bruno@clisp.org>
32634
32635         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32636         ISO C 99 Technical Corrigendum 1.
32637
32638 2006-06-22  Simon Josefsson  <jas@extundo.com>
32639
32640         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32641         MinGW.
32642
32643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32644
32645         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32646         needed.  Some compiler complained about some of them.  Problem reported
32647         by Larry Jones in
32648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32649
32650 2006-06-21  Simon Josefsson  <jas@extundo.com>
32651
32652         * tests/test-getaddrinfo.c: New file.
32653
32654         * modules/getaddrinfo-tests: New file.
32655
32656         * MODULES.html.sh: Add inet_pton.
32657
32658         * modules/inet_pton: New file.
32659
32660 2006-06-21  Simon Josefsson  <jas@extundo.com>
32661
32662         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32663         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32664         of using the (limited) gnulib implementation on Windows XP.
32665
32666         * m4/inet_pton.m4: New file.
32667
32668 2006-06-21  Simon Josefsson  <jas@extundo.com>
32669
32670         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32671         variable.
32672
32673         * lib/socket_.h: Don't define WINVER.
32674
32675         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32676         slightly modified to work in gnulib.
32677
32678 2006-06-21  Simon Josefsson  <jas@extundo.com>
32679
32680         * doc/gnulib.texi (Windows sockets): Add.
32681
32682 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32683
32684         * lib/read-file.c (fread_file): Start with buffer allocation of
32685         0 bytes rather than 1 byte; this simplifies the code.
32686         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32687         code to free buffer and save/restore errno.
32688         (internal_read_file): Remove unused local.
32689
32690 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32691
32692         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32693         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32694         Problem reported by Denis Excoffier in
32695         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32696
32697 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32698
32699         * modules/sys_socket, modules/socklen: Include sys/types since
32700         FreeBSD 4.x's sys/socket.h needs it.
32701
32702 2006-06-19  Simon Josefsson  <jas@extundo.com>
32703
32704         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32705
32706 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32707
32708         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32709
32710 2006-06-19  Bruno Haible  <bruno@clisp.org>
32711
32712         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32713         and FULL_PATH_INTTYPES_H in angle brackets.
32714         Reported by Mark D. Baushke <mdb@gnu.org>.
32715
32716 2006-06-17  Eric Blake  <ebb9@byu.net>
32717
32718         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32719         errno.
32720
32721 2006-06-17  Bruno Haible  <bruno@clisp.org>
32722
32723         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32724         <sys/inttypes.h>.
32725
32726 2006-06-17  Bruno Haible  <bruno@clisp.org>
32727
32728         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32729         whether errno is declared. Assume <errno.h> declares errno.
32730
32731 2006-06-17  Bruno Haible  <bruno@clisp.org>
32732
32733         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32734
32735 2006-06-17  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32738         problem on Solaris 2.5.1.
32739
32740 2006-06-16  Eric Blake  <ebb9@byu.net>
32741
32742         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32743         * lib/unicodeio.c [!defined errno]: Likewise.
32744         * lib/strtol.c [!defined errno]: Likewise.
32745         * lib/strtod.c [!defined errno]: Likewise.
32746
32747 2006-06-15  Eric Blake  <ebb9@byu.net>
32748
32749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32750
32751 2006-06-15  Eric Blake  <ebb9@byu.net>
32752
32753         * config/srclist.txt (ssize_t.m4): Lose sync.
32754
32755 2006-06-15  Bruno Haible  <bruno@clisp.org>
32756
32757         * modules/stdint (Files): Include m4/full-header-path.m4,
32758         m4/size_max.m4, m4/wchar_t.m4.
32759         (Makefile.am): Many more substitutions.
32760         * modules/stdint-tests: New file.
32761         * tests/test-stdint.c: New file.
32762
32763 2006-06-15  Bruno Haible  <bruno@clisp.org>
32764
32765         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32766         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32767         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32768         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32769         gl_CHECK_TYPE_SAME): New macros.
32770
32771 2006-06-15  Bruno Haible  <bruno@clisp.org>
32772
32773         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32774
32775 2006-06-15  Bruno Haible  <bruno@clisp.org>
32776
32777         * lib/stdint_.h: Rewritten to be fully auto-configured.
32778         Fixes bug on HP-UX/IA64.
32779
32780 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32781
32782         * lib/getdate.y (__attribute__): Don't define if already defined.
32783         Problem reported by Larry Jones.
32784         * lib/utimens.c (__attribute__): Likewise.
32785
32786 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32787
32788         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32789         reported by Andreas Schwab.
32790
32791 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32792             Bruno Haible  <bruno@clisp.org>
32793
32794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32795         check for the declaration of strnlen and a run test that exposes the
32796         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32797         rpl_strndup.
32798
32799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32800             Bruno Haible  <bruno@clisp.org>
32801
32802         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32803
32804 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32805
32806         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32807         compile test, for Tru64 4.0D.
32808
32809 2006-05-28  Karl Berry  <karl@gnu.org>
32810
32811         * config/srclist.txt (printf-args.c): lose sync.
32812
32813 2006-05-26  Martin Lambers  <marlam@marlam.de>
32814
32815         * lib/getpass.c: Updates the test for the native W32 API, and adds
32816         missing includes, thus fixing compilation warnings.
32817
32818 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32819
32820         * lib/exclude.c (exclude_fnmatch): New function.
32821         (excluded_file_name): Call exclude_fnmatch.
32822         * lib/exclude.h (excluded_file_name): New prototype
32823
32824 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32825
32826         * lib/tempname.c (small_open, large_open): New macros.
32827         (__open, __open64) [!_LIBC]: Remove.
32828         (__gen_tempname): Use small_open and large_open instead of __open
32829         and __open64.  This fixes a portability bug on HP-UX 11.11i
32830         reported by Simon Wing-Tang in
32831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32832
32833 2006-05-24  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32836         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32837         Reported by Thorsten Maerz <torte@netztorte.de> via
32838         Aaron Stone <aaron@serendipity.cx>.
32839
32840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32841
32842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32843         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32844         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32845         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32846         not really conditional on the cache.
32847         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32848
32849 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32850
32851         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32852         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32853         (my_usleep): Don't mishandle maximum value.
32854
32855 2006-05-19  Jim Meyering  <jim@meyering.net>
32856
32857         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32858
32859 2006-05-17  Bruno Haible  <bruno@clisp.org>
32860
32861         Cygwin portability.
32862         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32863
32864 2006-05-17  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/stdint_.h: Fix recognition of Cygwin.
32867
32868 2006-05-15  Bruno Haible  <bruno@clisp.org>
32869
32870         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32871         on libtool patch by Ralf Wildenhues.
32872
32873 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32874
32875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32876         test for C99 conformance; (bool) 0.5 is an integer constant
32877         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32878         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32879
32880 2006-05-11  Simon Josefsson  <jas@extundo.com>
32881
32882         * m4/xvasprintf.m4: Fix obvious typo.
32883
32884 2006-05-11  Jim Meyering  <jim@meyering.net>
32885
32886         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32887         James Lemley.
32888
32889 2006-05-10  Simon Josefsson  <jas@extundo.com>
32890
32891         * lib/md4.c: Typo fix, update copyright years.
32892         (K1, K2): Don't use L because it turn computations into 64-bit on
32893         64-bit platforms.
32894
32895 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32896
32897         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32898         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32899         unwanted sign propagation, e.g., on hosts with 64-bit int.
32900         There still are some problems with reeelly weird theoretical hosts
32901         (e.g., 33-bit int) but it's not worth worrying about now.
32902         * lib/sha1.c (rol): Likewise.
32903         (K1, K2, K3, K4): Remove unnecessary L suffix.
32904
32905 2006-05-10  Bruno Haible  <bruno@clisp.org>
32906
32907         * lib/des.c: Cast to avoid warnings.
32908
32909 2006-05-09  Bruno Haible  <bruno@clisp.org>
32910
32911         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32912         (Depends-on): Depend also on xsize, stdarg.
32913         (configure.ac): Add gl_XVASPRINTF.
32914
32915 2006-05-09  Bruno Haible  <bruno@clisp.org>
32916
32917         * m4/xvasprintf.m4: New file.
32918
32919 2006-05-09  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32922         (EOVERFLOW): Define fallback value.
32923         (xstrcat): New function.
32924         (xvasprintf): Recognize the special case of a string concatenation.
32925
32926 2006-05-08  Eric Blake  <ebb9@byu.net>
32927
32928         * gnulib-tool (func_version): Base copyright year on CVS date.
32929         (func_emit_copyright_notice): New function.
32930         (func_emit_lib_Makefile_am): Use it.
32931         (func_emit_tests_Makefile_am): Likewise.
32932         (func_import): Likewise.
32933
32934 2006-05-08  Bruno Haible  <bruno@clisp.org>
32935
32936         * modules/stdarg: New file.
32937         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32938
32939 2006-05-08  Bruno Haible  <bruno@clisp.org>
32940
32941         * m4/stdarg.m4: New file, from GNU gettext.
32942
32943 2006-05-08  Bruno Haible  <bruno@clisp.org>
32944
32945         * config/srclist.txt (build-aux/config.rpath): different from latest
32946         release.
32947
32948 2006-05-08  Bruno Haible  <bruno@clisp.org>
32949
32950         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32951
32952 2006-05-05  Jim Meyering  <jim@meyering.net>
32953
32954         * m4/warning.m4: New file, derived from bison's file by the same name.
32955
32956 2006-05-03  Bruno Haible  <bruno@clisp.org>
32957
32958         * lib/stdint_.h: Shorter URL.
32959         * lib/inttypes.h: Likewise.
32960
32961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32962
32963         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32964
32965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32966
32967         * lib/verify.h: Document the internals better.  Most of this change
32968         was written by Bruno Haible.
32969
32970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32971
32972         * doc/verify.texi: New file, partly based on a proposal by
32973         Bruno Haible.
32974
32975 2006-05-02  Bruno Haible  <bruno@clisp.org>
32976
32977         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32978         test from here...
32979         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32980
32981 2006-04-29  Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32984         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32985
32986 2006-04-29  Bruno Haible  <bruno@clisp.org>
32987
32988         * gnulib-tool: Make --update option actually work.
32989
32990 2006-04-29  Bruno Haible  <bruno@clisp.org>
32991
32992         * doc/gcd.texi: New file.
32993         * doc/gnulib.texi: Include it.
32994
32995 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32996
32997         * lib/getdate.y (get_date): When adding relative date, start with the
32998         initial time, not with the result of the first mktime call.
32999
33000 2006-04-25  Bruno Haible  <bruno@clisp.org>
33001
33002         * gnulib-tool (func_import): Output the include directives in three
33003         blocks, sorted separately.
33004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33005
33006 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33007
33008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
33009         to define main with arguments, for C++.  Reported by Eric Blake.
33010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33011         Prefer 'int main ()' to 'int main (void)', for C++.
33012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
33014         for 'main', for C99 and C++.
33015
33016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33017
33018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
33019         Don't assume that exit status -1 is valid.
33020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33021         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33023         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
33024         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
33025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
33026         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
33027         functions can be used without declaring them, or that you can
33028         exit with status -1.
33029         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33030
33031 2006-04-24  Karl Berry  <karl@gnu.org>
33032
33033         * config/srclist.txt (longdouble.m4): sync lost.
33034
33035 2006-04-24  Eric Blake  <ebb9@byu.net>
33036
33037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
33038
33039 2006-04-24  Bruno Haible  <bruno@clisp.org>
33040
33041         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
33042         poll() implementation in AIX.
33043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33044
33045 2006-04-24  Bruno Haible  <bruno@clisp.org>
33046
33047         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
33048         assigned exactly once.
33049
33050 2006-04-23  Claudio Fontana  <claudio@gnu.org>
33051             Bruno Haible  <bruno@clisp.org>
33052
33053         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
33054         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
33055         for AM_CPPFLAGS.
33056
33057 2006-04-23  Bruno Haible  <bruno@clisp.org>
33058
33059         * modules/copy-file: Depend on unistd.
33060         * modules/execute: Likewise.
33061         * modules/fatal-signal: Likewise.
33062         * modules/findprog: Likewise.
33063         * modules/mkdtemp : Likewise.
33064         * modules/pipe: Likewise.
33065         * modules/wait-process: Likewise.
33066
33067 2006-04-23  Bruno Haible  <bruno@clisp.org>
33068
33069         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
33070         condition was already detected.
33071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33072
33073 2006-04-23  Bruno Haible  <bruno@clisp.org>
33074
33075         * lib/copy-file.c: Include <unistd.h> unconditionally.
33076         * lib/execute.c: Likewise.
33077         * lib/fatal-signal.c: Likewise.
33078         * lib/findprog.c: Likewise.
33079         * lib/mkdtemp.c: Likewise.
33080         * lib/pipe.h: Likewise.
33081         * lib/pipe.c: Likewise.
33082         * lib/wait-process.h: Likewise.
33083
33084 2006-04-23  Bruno Haible  <bruno@clisp.org>
33085
33086         * gnulib-tool (func_usage): Fix --import description. Document
33087         --update.
33088         (func_import): Create temporary file in a temporary directory, if
33089         --dry-run is specified. Silence errors from 'grep' when there are no
33090         m4 files in $m4dir.
33091         (func_create_testdir): Silence errors from 'grep' when there are no
33092         m4 files in $m4dir.
33093         Reported by Karl Berry <karl@freefriends.org>.
33094
33095 2006-04-20  Bruno Haible  <bruno@clisp.org>
33096
33097         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
33098         one argument, so that the code will be portable to Autoconf 2.60.
33099         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
33100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33101         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
33102
33103 2006-04-19  Derek Price  <derek@ximbiot.com>
33104             Eric Blake  <ebb9@byu.net>
33105
33106         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
33107         rather than "/full/path.h".  Update comment to match.  Shorten &
33108         generalize m4_translit call via AS_TR_CPP.
33109
33110 2006-04-19  Derek Price  <derek@ximbiot.com>
33111             Eric Blake  <ebb9@byu.net>
33112
33113         * lib/inttypes.h: Correct grammar in comment.
33114
33115 2006-04-18  Derek Price  <derek@ximbiot.com>
33116             Paul Eggert  <eggert@cs.ucla.edu>
33117
33118         * modules/inttypes: New file.
33119         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
33120
33121 2006-04-18  Derek Price  <derek@ximbiot.com>
33122             Paul Eggert  <eggert@cs.ucla.edu>
33123
33124         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
33125         New files.
33126
33127 2006-04-18  Derek Price  <derek@ximbiot.com>
33128             Paul Eggert  <eggert@cs.ucla.edu>
33129
33130         * lib/inttypes.h: New file.
33131         * lib/strtoimax.c: Assume <inttypes.h>.
33132
33133 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
33134
33135         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
33136         isn't mounted.  Problem reported by Kir Kolyshkin.
33137
33138 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33139
33140         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
33141         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
33142         Derek R. Price.
33143         * lib/regex.h (RE_DUP_MAX): Update comment to match current
33144         implementation.
33145
33146 2006-04-12  Eric Blake  <ebb9@byu.net>
33147
33148         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
33149         is now done automatically by the corresponding Autoconf macro.
33150
33151 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
33152
33153         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
33154         time_r.h.
33155
33156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33157
33158         Merge regex changes from libc, removing some of our
33159         POSIX-conformance changes that were rejected and redoing them in a
33160         less-intrusive way.
33161
33162         * lib/regcomp.c (re_compile_internal, init_dfa):
33163         Length arg is now size_t, not Idx.  All uses changed.
33164         (peek_token): Forward decl now says internal_function.
33165         (__re_error_msgid, __re_error_msgid_idx):
33166         Now static rather than extern with attribute_hidden.
33167         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
33168         For some reason libc prefers K&R style defns for external functions.
33169         (regerror) [!defined _LIBC]: Likewise.
33170         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
33171         (seek_collating_symbol_entry, lookup_collation_sequence_value):
33172         (build_range_exp, build_collating_symbol):
33173         Use K&R-style defn.
33174         (re_compile_fastmap): Use '\0' to memset, not 0.
33175         (utf8_sb_map): Make the calculations more obvious.
33176         (init_dfa, parse_bracket_exp, build_charclass_op):
33177         Call calloc and cast result, as glibc does.
33178         (init_word_char, fetch_token, peek_token, peek_token_bracket):
33179         (build_range_exp, build_collating_symbol):
33180         Now internal functions.
33181
33182         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
33183
33184         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
33185         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
33186         Don't depend on VMS; depend on __VMS instead, for POSIX
33187         namespace cleanness.
33188         (regoff_t): Define to ssize_t, not long int.
33189
33190         Remove the REG_ macros named below.  Instead, make the old names
33191         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
33192         __USE_GNU_REGEX.
33193         (REG_BACKSLASH_ESCAPE_IN_LISTS):
33194         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
33195         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
33196         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
33197         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
33198         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
33199         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
33200         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
33201         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
33202         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
33203         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
33204         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
33205         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
33206         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
33207         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
33208         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
33209         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
33210         (REG_NREGS):
33211         Remove.  All uses replaced by the old RE_* names.
33212         (RE_BACKSLASH_ESCAPE_IN_LISTS):
33213         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
33214         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
33215         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
33216         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
33217         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
33218         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
33219         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
33220         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
33221         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
33222         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
33223         Don't bother having these macros be independent of each others'
33224         values, since they no longer exist in the POSIX name space.
33225
33226         Rename the following member names back to their old names,
33227         unless !__USE_GNU_REGEX.  All uses changed back.
33228         (buffer): Renamed from re_buffer.
33229         (allocated): Renamed from re_allocated.
33230         (used): Renamed from re_used.
33231         (syntax): Renamed from re_syntax.
33232         (fastmap): Renamed from re_fastmap.
33233         (translate): Renamed from re_translate.
33234         (can_be_null): Renamed from re_can_be_null.
33235         (regs_allocated): Renamed from re_regs_allocated.
33236         (fastmap_accurate): Renamed from re_fastmap_accurate.
33237         (no_sub): Renamed from re_no_sub.
33238         (not_bol): Renamed from re_not_bol.
33239         (not_eol): Renamed from re_not_eol.
33240         (newline_anchor): Renamed from re_newline_anchor.
33241         (num_regs): Renamed from rm_num_regs.
33242         (start): Renamed from rm_start.
33243         (end): Renamed from rm_end.
33244
33245         (free_state): Move up a bit.
33246
33247         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
33248         #define to be empty.
33249         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
33250         when that is what is intended.
33251         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
33252         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
33253         (MAX): New macro.
33254         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
33255         All uses changed back to re_malloc, etc.  It's now the caller's
33256         responsibility to check for overflow; all callers changed.
33257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
33258         (re_x2nrealloc): Remove.
33259         (free_state): Remove decl.
33260
33261         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
33262         (re_set_registers, re_exec):
33263         Use K&R-style defn.
33264
33265         2006-01-31  Roland McGrath  <roland@redhat.com>
33266
33267         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
33268         Reported by Mike Frysinger <vapier@gentoo.org>.
33269
33270         2006-01-15  Andreas Jaeger  <aj@suse.de>
33271
33272         [BZ #1950]
33273         * lib/regex_internal.c (re_string_reconstruct): Adjust for
33274         build_wcs_upper_buffer change.
33275         (build_wcs_upper_buffer): Change return type.
33276
33277         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
33278
33279         * lib/regex_internal.h: Include <stdint.h> if available.
33280
33281         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
33282
33283         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
33284
33285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
33286
33287         * lib/regcomp.c: Adjust for changed secondary hash function.
33288
33289         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
33290
33291         * lib/regex.h: Pretty printing.
33292         Clean up namespace a bit.
33293
33294         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
33295
33296         * lib/regexec.c (update_cur_sifted_state, check_arrival,
33297         check_arrival_add_next_nodes): Avoid using uninitialized variable.
33298
33299         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33300                     Ulrich Drepper  <drepper@redhat.com>
33301
33302         [BZ #1302]
33303         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
33304         changed.
33305         (bitset_word_t): Renamed from bitset_word.  All uses changed.
33306
33307         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
33308
33309         [BZ #281]
33310         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
33311         * lib/regcomp.c: Remove unnecessary uses of
33312         unsigned RE_TRANSLATE_TYPE.
33313         * lib/regex_internal.h: Likewise.
33314         * lib/regex_internal.c: Likewise.
33315         * lib/regexec.c: Likewise.
33316         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
33317
33318         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
33319
33320         * lib/regexec.c (find_recover_state): Remove unnecessary
33321         initialization.
33322         (transit_state_bkref): Make DFA a const pointer.
33323         (get_subexp): Likewise.
33324         (check_arrival): Likewise.
33325         (update_cur_sifted_state): Likewise.
33326         (re_search_internal): Likewise.
33327         (prune_impossible_nodes): Likewise.
33328         (acquire_init_state_context): Likewise.
33329         (proceed_next_node): Likewise.
33330         (set_regs): Likewise.
33331         (free_fail_stack_return): Likewise.
33332         (check_arrival_expand_ecl): Mark DFA parameter as const.
33333         (check_arrival_expand_ecl_sub): Likewise.
33334         (check_subexp_limits): Likewise.
33335         (sub_epsilon_src_nodes):  Likewise.
33336         (add_epsilon_src_nodes):  Likewise.
33337         (merge_state_array): Likewise.
33338         (update_regs): Likewise.
33339         (build_trtable): Likewise.
33340         (sift_states_backward): Mark MCTX parameter as const.
33341         (build_sifted_states): Likewise.
33342         (update_cur_sifted_state): Likewise.
33343         (sift_states_mkref): Likewise.
33344         (check_arrival_expand_ecl): Mark eclosure as const.
33345         (check_dst_limits_calc_pos_1): Likewise.
33346         * lib/regex_internal.h (re_match_context_t): Make dfa a const
33347         pointer.
33348
33349         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
33350
33351         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
33352         (transit_state_sb): Likewise.
33353         (transit_state_mb): Likewise.
33354         (sift_states_iter_mb): Likewise.
33355         (check_arrival_add_next_nodes): Likewise.
33356         (check_node_accept_bytes): Change first parameter to pointer-to-const.
33357         [_LIBC] (re_search_2_stub): Use mempcpy.
33358
33359         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
33360         mbrtowc for very simple UTF-8 case.
33361
33362         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
33363         a pointer-to-const.
33364         (re_acquire_state_context): Likewise.
33365         * lib/regex_internal.h: Adjust prototypes.
33366
33367         * lib/regex.c: Prevent using C++ compilers.
33368
33369         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
33370         (re_acquire_state_context): Likewise.
33371
33372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33373
33374         * modules/regex (Depends-on): Add ssize_t.
33375
33376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33377
33378         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
33379         translation table.
33380
33381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33382
33383         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
33384
33385 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
33386             Bruno Haible  <bruno@clisp.org>
33387
33388         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
33389         <sys/types.h> and <inttypes.h>.
33390
33391 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33392
33393         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
33394         `__error_t_defined', so argp.h will not typedef the former.
33395
33396 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33397
33398         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
33399         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
33400         glibc names.  Even if glibc is changed to conform to POSIX, the
33401         traditional names will be available anyway, since regex depends on
33402         the extensions module.  Also, fix a longstanding typo in the
33403         implementation of Spencer ERE test #75 from grep 2.3.  Problems
33404         reported by Emanuele Giaquinta.  Also, change sense of cached
33405         variable, so that the message makes sense.
33406
33407 2006-03-24  Simon Josefsson  <jas@extundo.com>
33408
33409         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
33410         including some doc fixes.
33411         (base64_encode_alloc): Fix +1 bug on allocation failures.
33412
33413 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33414
33415         * lib/base64.c (base64_encode): Do not read past end of array with
33416         unsanitized input on systems with CHAR_BIT > 8.
33417
33418 2006-03-24  Eric Blake  <ebb9@byu.net>
33419
33420         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
33421
33422 2006-03-22  Karl Berry  <karl@gnu.org>
33423
33424         * config/srclist.txt (*setenv.[ch]): get from coreutils.
33425         * config/srclistvars.sh (COREUTILS): new var.
33426
33427 2006-03-17  Jim Meyering  <jim@meyering.net>
33428
33429         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
33430         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
33431
33432 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33433
33434         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
33435         no longer needs it.  Instead, check that regoff_t is as least
33436         as wide as ptrdiff_t.
33437
33438         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
33439         so that our regex.h stays compatible with the installed regex.
33440         This is helpful for installers who configure --without-included-regex.
33441         Problem reported by Emanuele Giaquinta.
33442
33443 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33444
33445         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
33446         Typedef to long int, not to off_, as POSIX will likely change
33447         in that direction.
33448
33449 2006-03-15  Eric Blake  <ebb9@byu.net>
33450
33451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
33452
33453 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33454
33455         * lib/argp-help.c (validate_uparams): Fix typo
33456         * lib/argp-parse.c (argp_default_options): Consistently begin help
33457         messages with a lowercase letter.
33458
33459 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
33460
33461         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
33462         overrun buffers and shouldn't be used (much as gets shouldn't be
33463         used).
33464         * lib/time_r.c (asctime_r, ctime_r): Likewise.
33465
33466 2006-03-08  Simon Josefsson  <jas@extundo.com>
33467
33468         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
33469         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33470
33471 2006-03-08  Simon Josefsson  <jas@extundo.com>
33472
33473         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
33474         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33475
33476 2006-03-08  Simon Josefsson  <jas@extundo.com>
33477
33478         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
33479         signal that configure disabled the device.
33480
33481 2006-03-08  Simon Josefsson  <jas@extundo.com>
33482
33483         * build-aux/maint.mk: Fix refresh-po, to handle no translated
33484         languages.
33485
33486 2006-03-07  Simon Josefsson  <jas@extundo.com>
33487
33488         * modules/getopt (Depends-on): Add unistd.
33489
33490         * modules/unistd: New file.
33491
33492 2006-03-07  Simon Josefsson  <jas@extundo.com>
33493
33494         * modules/gc-random: New file.
33495
33496 2006-03-07  Simon Josefsson  <jas@extundo.com>
33497
33498         * m4/unistd_h.m4: New file.
33499
33500 2006-03-07  Simon Josefsson  <jas@extundo.com>
33501
33502         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
33503         test to be side-effect free by storing the result in the cache
33504         variable gl_cv_lib_readline, and moving the assignment of
33505         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
33506         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33507
33508 2006-03-07  Simon Josefsson  <jas@extundo.com>
33509
33510         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
33511         error on missing devices (the functions will return an error).
33512
33513         * m4/gc.m4: Move random stuff to gc-random.m4
33514
33515 2006-03-07  Simon Josefsson  <jas@extundo.com>
33516
33517         * lib/unistd_.h: New file.
33518
33519 2006-03-07  Simon Josefsson  <jas@extundo.com>
33520
33521         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
33522
33523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
33526         Problem reported by Juan Manuel Guerrero.
33527
33528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33529
33530         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
33531         the unistd module.
33532         * lib/getlogin_r.c: Likewise.
33533         * lib/getlogin_r.h: Likewise.
33534         * lib/glob.c: Likewise.
33535         * lib/pagealign_alloc.c: Likewise.
33536         * lib/unistd_.h: Remove; no longer needed.
33537
33538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33539
33540         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33541         Add unistd.
33542         * modules/c-stack (Depends-on): Add unistd.
33543         * modules/getlogin_r: Likewise.
33544         * modules/glob: Likewise.
33545         * modules/pagealign_alloc: Likewise.
33546         * modules/unistd (Files): Remove lib/unistd_.h.
33547         (EXTRA_DIST): Remove.
33548         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
33549         need unistd_.h.
33550         (MOSTLYCLEANFILES): Remove unistd.h-t.
33551
33552 2006-03-03  Simon Josefsson  <jas@extundo.com>
33553
33554         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33555
33556 2006-03-03  Simon Josefsson  <jas@extundo.com>
33557
33558         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33559         libidn and bison.
33560
33561 2006-03-03  Simon Josefsson  <jas@extundo.com>
33562
33563         * build-aux/maint.mk: Add indent target.
33564
33565 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
33566
33567         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33568         our replacement poll.h in any case, to avoid a differing
33569         declaration from a system header.  Seen on AIX.
33570
33571 2006-03-01  Simon Josefsson  <jas@extundo.com>
33572
33573         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33574         <kasal@ucw.cz>.
33575
33576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33577
33578         * modules/gettime (Depends-on): Add extensions module.
33579         * modules/nanosleep (Depends-on): Likewise.
33580         * modules/settime (Depends-on): Likewise.
33581
33582 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33583
33584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33585         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33586         pedantically.
33587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33588         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33589
33590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33591         not "==".  Reported by Ralf Wildenhues.
33592
33593 2006-03-01  Karl Berry  <karl@gnu.org>
33594
33595         * doc/Copyright/request-*: new files, synced from gnuorg.
33596
33597 2006-03-01  Karl Berry  <karl@gnu.org>
33598
33599         * config/srclist.txt (Copyright/*): new entries.
33600
33601 2006-02-28  Simon Josefsson  <jas@extundo.com>
33602
33603         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33604
33605 2006-02-27  Simon Josefsson  <jas@extundo.com>
33606
33607         * lib/base64.h: Indent #define's.  From Jim Meyering
33608         <jim@meyering.net>.
33609
33610 2006-02-27  Jim Meyering  <jim@meyering.net>
33611
33612         Revert the change of 2006-02-24, so these files can continue
33613         to be sync'd from gettext.
33614         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33615         of `config.h'.
33616
33617 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33618
33619         * modules/intprops: New file.
33620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33621         Add intprops.
33622         * modules/getloadavg (Files): Remove lib/intprops.h.
33623         (Depends-on): Add intprops.
33624         * modules/human: Likewise.
33625         * modules/inttostr: Likewise.
33626         * modules/openat: Likewise.
33627         * modules/sig2str: Likewise.
33628         * modules/userspec: Likewise.
33629         * modules/utimecmp: Likewise.
33630         * modules/xnanosleep: Likewise.
33631         * modules/xstrtol: Likewise.
33632
33633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
33634
33635         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33636         * modules/lock-tests (TESTS): Use $(EXEEXT).
33637         * modules/tls-tests: Likewise.
33638         * modules/argp-tests: Likewise.
33639         (check_PROGRAMS): New var, replacing...
33640         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33641
33642 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33643
33644         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33645         `config.h'.
33646
33647 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33648
33649         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33650
33651 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33652
33653         Sync from coreutils.
33654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33655         gl_CHDIR_SAFER.
33656
33657 2006-02-22  Jim Meyering  <jim@meyering.net>
33658
33659         Sync from coreutils.
33660         * m4/chdir-safer.m4: New file.
33661
33662 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33663
33664         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33665         AT_FDCWD exceeds INT_MAX.
33666         * lib/openat.h (AT_FDCWD): Likewise.
33667
33668 2006-02-17  Eric Blake  <address@hidden>
33669
33670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33671
33672 2006-02-16  Simon Josefsson  <jas@extundo.com>
33673
33674         * modules/getaddrinfo (Depends-on): Add sys_socket.
33675
33676 2006-02-15  Simon Josefsson  <jas@extundo.com>
33677
33678         * build-aux/maint.mk: Add dsyntax-check rule.
33679
33680 2006-02-15  Eric Blake  <ebb9@byu.net>
33681
33682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33683         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33684         'present but cannot compile' warnings on cygwin.
33685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33686         use ws2tcpip.h if sys/socket.h works.
33687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33688         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33689
33690 2006-02-14  Simon Josefsson  <jas@extundo.com>
33691
33692         * modules/maintainer-makefile (Files): Rename.
33693
33694         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33695         and (the local) Makefile.cfg to maint-cfg.mk.
33696
33697         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33698         to the latter.
33699
33700         * modules/maintainer-makefile: New module.
33701
33702         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33703         severaly stripped to make it possible to build it up from scratch
33704         with reliable tests.
33705
33706         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33707         fixes to permit overriding the default actions when configure and
33708         makefile are not available.
33709
33710 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33711
33712         Sync from coreutils.
33713         * modules/lstat (Depends-on): Don't depend on xalloc.
33714         (License): Change from GPL to LGPL, since this is now simply a
33715         replacement for a libc function.
33716
33717 2006-02-14  Jim Meyering  <jim@meyering.net>
33718
33719         Sync from coreutils.
33720
33721         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33722         failure on deficient systems, and simplify gnulib lgpl dependencies.
33723         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33724         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33725
33726         * lib/xalloc-die.c: Remove unused definition of N_.
33727
33728 2006-02-14  Jim Meyering  <jim@meyering.net>
33729
33730         Sync from coreutils.
33731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33732         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33733         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33734         double-quote uses of that variable, to accommodate the rare case in
33735         which getmntent is available in none of the libraries checked.  This
33736         happens at least on FreeBSD 5.0.
33737
33738 2006-02-13  Simon Josefsson  <jas@extundo.com>
33739
33740         * gnulib-tool (Usage): Fix --import, from
33741         karl@freefriends.org (Karl Berry).
33742
33743 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33744
33745         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33746
33747 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33748
33749         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33750         "autoupdate" on 2005-12-12.
33751
33752 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33753
33754         * modules/closeout (Depends-on): Remove atexit.
33755
33756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33757
33758         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33759         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33760
33761 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33762
33763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33764         __EXTENSIONS__ if this causes compilation to fail.  Problem
33765         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33766         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33767
33768 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33769
33770         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33771         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33773         All uses changed.
33774
33775 2006-01-26  Simon Josefsson  <jas@extundo.com>
33776
33777         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33778         prototype is visible on mingw32.
33779
33780         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33781         for mingw32.
33782
33783         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33784         mingw32).
33785
33786 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33787
33788         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33789         attempt to open for write; this always fails, at least on POSIX
33790         hosts.  This reinstates the 2006-01-09 change, which was
33791         inadvertently removed.
33792
33793 2006-01-26  Bruno Haible  <bruno@clisp.org>
33794
33795         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33796         Reported by Paul Eggert.
33797
33798 2006-01-26  Bruno Haible  <bruno@clisp.org>
33799             Paul Eggert  <eggert@cs.ucla.edu>
33800
33801         * lib/stdbool_.h (_Bool)
33802         [(! (defined __cplusplus || defined __BEOS__)
33803           && !defined __GNUC__
33804           && !(defined __HP_cc || defined __xlc__
33805                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33806                || defined __sgi))]:
33807         #define to signed char in these cases too; this simplifies
33808         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33809         etc., separately) and makes it more conservative.
33810
33811 2006-01-25  Simon Josefsson  <jas@extundo.com>
33812
33813         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33814         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33815         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33816
33817 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33818
33819         * lib/argp-namefrob.h: Bugfix. Remove stray #
33820
33821 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33822
33823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33824         so that we test the test.
33825         Check for yet another HP-UX cc bug involving *bool |= bool.
33826
33827 2006-01-25  Karl Berry  <karl@gnu.org>
33828
33829         * config/srclist.txt (vasnprintf.c): sync lost.
33830
33831 2006-01-25  Jim Meyering  <jim@meyering.net>
33832
33833         Sync from the stable (b5) branch of coreutils:
33834
33835         * lib/fts.c (fts_children): Don't let close() clobber errno from
33836         failed fchdir().
33837
33838         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33839         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33840         a dangling symlink.  That can also happen at least for ELOOP.
33841         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33842         FYI, this bug predates the inclusion of fts.c in coreutils.
33843
33844         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33845         in their own block, so pre-c99 compilers don't object.
33846
33847         Avoid the double-free (first in fts_read, second in fts_close) that
33848         would occur when an `active' directory is made inaccessible (e.g.,
33849         via chmod a-x) during a traversal.
33850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33851         before returning.  Reproduce this failure by
33852         mkdir -p a/b; cd a; chmod a-x . b
33853         Reported by Stavros Passas.
33854
33855 2006-01-25  Jim Meyering  <jim@meyering.net>
33856
33857         * lib/fileblocks.c: Remove more useless parentheses.
33858         * lib/readutmp.h: Likewise.
33859
33860 2006-01-25  Bruno Haible  <bruno@clisp.org>
33861
33862         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33863         warnings.
33864         Reported by Paul Eggert.
33865
33866 2006-01-25  Bruno Haible  <bruno@clisp.org>
33867
33868         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33869         rid of a trap command. For Solaris sh.
33870         Reported by Mark D. Baushke <mdb@gnu.org>.
33871
33872 2006-01-24  Simon Josefsson  <jas@extundo.com>
33873
33874         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33875         Bruno.
33876
33877 2006-01-24  Karl Berry  <karl@gnu.org>
33878
33879         * config/srclist.txt (argp-namefrob.h): sync lost.
33880
33881 2006-01-24  Jim Meyering  <jim@meyering.net>
33882
33883         * modules/openat (Files): Add lib/intprops.h.
33884         From Mark D. Baushke.
33885
33886 2006-01-24  Jim Meyering  <jim@meyering.net>
33887
33888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33889         Reported by Mark D. Baushke.
33890
33891 2006-01-24  Jim Meyering  <jim@meyering.net>
33892
33893         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33894
33895 2006-01-24  Bruno Haible  <bruno@clisp.org>
33896
33897         * modules/strnlen (Maintainer): Change from glibc to all.
33898
33899 2006-01-24  Bruno Haible  <bruno@clisp.org>
33900
33901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33902         Patch by Paul Eggert.
33903
33904 2006-01-24  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33907         already has it.
33908         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33909         2005-11-26.
33910
33911         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33912         'signed char' to avoid problems with the built-in _Bool type.
33913         Reported by Paul Eggert on 2005-11-26.
33914
33915 2006-01-24  Bruno Haible  <bruno@clisp.org>
33916
33917         * gnulib-tool (func_import): Avoid constructing complicated sed
33918         expressions inside backquote.
33919         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33920
33921 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33922
33923         These changes imported from libc.
33924         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33925         test and two separate function calls.
33926         * lib/strndup.c (__strndup): Add libc_hidden_def.
33927
33928 2006-01-23  Simon Josefsson  <jas@extundo.com>
33929
33930         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33931         Remove the test_*_SOURCES variable: automake infers it by default.
33932         * modules/tls-tests: Likewise.
33933
33934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33935
33936         Work around porting bugs reported by Dieter in
33937         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33938         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33939         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33940         Include "getopt.h" first, to check interface.
33941         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33942         !HAVE_DECL_GETENV.
33943         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33944         (__strndup): Revert to K&R-style function dfns, the glibc style.
33945         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33946         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33947         Include strnlen.h first, to get prototype properly.
33948         (strnlen): Renamed from __strnlen.
33949         Remove weak alias.
33950
33951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33952
33953         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33954
33955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33956
33957         * config/srclist.txt: Adjust to reflect glibc reorganization.
33958         This affects only comments.
33959
33960 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33961
33962          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33963          Reported by Bruce Korb <bkorb@gnu.org>.
33964
33965 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33966
33967         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33968         to pacify gcc -Wswitch-default.
33969
33970 2006-01-22  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33973         temporary buffer for sprintf, take into account the precision also
33974         for 'd', 'i', 'u', 'o', 'x', 'X'.
33975
33976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33977
33978         * modules/argp-tests: New module
33979         * tests/test-argp.c: New file
33980         * tests/test-argp-2.sh: New file
33981
33982 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33983
33984         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33985         (__argp_base_name): Removed
33986         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33987         typo.
33988         (__argp_base_name): Provide macro definition or extern declaration
33989         depending on the configuration
33990
33991 2006-01-20  Simon Josefsson  <jas@extundo.com>
33992
33993         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33994
33995 2006-01-20  Simon Josefsson  <jas@extundo.com>
33996
33997         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33998
33999 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34000
34001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
34002         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
34003         Suggested by Bruno Haible.
34004
34005 2006-01-20  Karl Berry  <karl@gnu.org>
34006
34007         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
34008         until changes propagate, I guess.
34009
34010 2006-01-19  Simon Josefsson  <jas@extundo.com>
34011
34012         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
34013
34014 2006-01-19  Simon Josefsson  <jas@extundo.com>
34015
34016         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
34017
34018 2006-01-19  Simon Josefsson  <jas@extundo.com>
34019
34020         * gnulib-tool: Set check_PROGRAMS.
34021
34022         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34023         modules/des-tests, modules/gc-arcfour-tests,
34024         modules/gc-arctwo-tests, modules/gc-des-tests,
34025         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34026         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34027         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34028         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34029         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34030         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
34031         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
34032         test_*_SOURCES.
34033
34034 2006-01-18  Simon Josefsson  <jas@extundo.com>
34035
34036         * modules/socklen (Depends-on): Depend on sys_socket.
34037
34038 2006-01-18  Simon Josefsson  <jas@extundo.com>
34039
34040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34041         modules/des-tests, modules/gc-arcfour-tests,
34042         modules/gc-arctwo-tests, modules/gc-des-tests,
34043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34048         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
34049         $(EXEEXT) to automake TESTS variable, for mingw32.
34050
34051 2006-01-17  Simon Josefsson  <jas@extundo.com>
34052
34053         * modules/socklen (Include): Need sys/socket.h.
34054
34055 2006-01-17  Bruno Haible  <bruno@clisp.org>
34056
34057         * modules/ssize_t (Include): Add <sys/types.h>.
34058
34059 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34060
34061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
34062         it's not portable and it doesn't work with cross-compiles.
34063         Problem reported by Bruno Haible.  Fix missing-$ typo in
34064         'test "gl_cv_ignore_unused_libraries" ...' that prevented
34065         -zignore from being used with Sun's C compiler.
34066
34067 2006-01-12  Simon Josefsson  <jas@extundo.com>
34068
34069         * lib/base64.c: Fix warning, reported by Bruno Haible
34070         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
34071
34072 2006-01-12  Bruno Haible  <bruno@clisp.org>
34073
34074         * modules/ldd: New file.
34075         * build-aux/ldd.sh.in: New file.
34076         * MODULES.html.sh (Support for building libraries and executables): Add
34077         ldd.
34078
34079 2006-01-12  Bruno Haible  <bruno@clisp.org>
34080
34081         * m4/ldd.m4: New file.
34082
34083 2006-01-12  Bruno Haible  <bruno@clisp.org>
34084
34085         * gnulib-tool (func_import, func_create_testdir): Don't go into an
34086         endless loop while replacing $auxdir with build-aux.
34087
34088 2006-01-11  Simon Josefsson  <jas@extundo.com>
34089
34090         * lib/stdint_.h (SIZE_MAX): Add missing (.
34091
34092 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
34093
34094         Sync from coreutils.
34095         * lib/md5.c: Fix commentary typos.
34096         (alignof, UNALIGNED_P): No need for a GCC-specific version.
34097         * lib/md5.h (__attribute__): Remove; unused.
34098         * lib/sha1.c: Fix commentary to match md5 better.
34099         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
34100         so that we don't need to worry about alignment.  All uses changed.
34101         This merges the 2005-10-28 md5 change into sha1.
34102
34103 2006-01-11  Jim Meyering  <jim@meyering.net>
34104
34105         Sync from coreutils.
34106         * lib/md5.c (OP): Fix spacing.
34107
34108 2006-01-11  Bruno Haible  <bruno@clisp.org>
34109
34110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34111         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
34112         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
34113
34114 2006-01-11  Bruno Haible  <bruno@clisp.org>
34115
34116         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34117         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
34118         the "early" section as well.
34119
34120 2006-01-11  Bruno Haible  <bruno@clisp.org>
34121
34122         Avoid "ar: no archive members specified" error on MacOS X.
34123         * gnulib-tool (func_modules_add_dummy): New function.
34124         (func_import, func_create_testdir): Invoke it.
34125
34126 2006-01-11  Bruno Haible  <bruno@clisp.org>
34127
34128         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
34129         with $auxdir in AC_CONFIG_FILES statements.
34130
34131 2006-01-11  Bruno Haible  <bruno@clisp.org>
34132
34133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34134         Initialize also noinst_HEADERS to empty.
34135
34136 2006-01-11  Bruno Haible  <bruno@clisp.org>
34137
34138         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
34139         variables.
34140         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
34141         autoreconf.
34142
34143 2006-01-11  Bruno Haible  <bruno@clisp.org>
34144
34145         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
34146         overridable by the user.
34147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34148
34149 2006-01-10  Simon Josefsson  <jas@extundo.com>
34150
34151         * modules/sys_socket: New file.
34152
34153 2006-01-10  Simon Josefsson  <jas@extundo.com>
34154
34155         * m4/sys_socket_h.m4: New file.
34156
34157 2006-01-10  Simon Josefsson  <jas@extundo.com>
34158
34159         * lib/socket_.h: New file.
34160
34161 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34162
34163         * modules/readutmp (Maintainer): Add myself.
34164
34165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34166
34167         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
34168         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
34169         People who are still concerned with buggy memcmp implementations
34170         can invoke gl_FUNC_MEMCMP themselves.
34171
34172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34173
34174         * lib/regex_internal.h (BITSET_WORD_BITS):
34175         Work around a bug in 64-bit PGC (before version 6.1-2), where the
34176         preprocessor mishandles large unsigned values as if they were signed.
34177         Problem reported by Claudio Fontana in
34178         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
34179
34180 2006-01-10  Jim Meyering  <jim@meyering.net>
34181
34182         Avoid the double-free (first in fts_read, second in fts_close) that
34183         would occur when an `active' directory is made inaccessible (e.g.,
34184         via chmod a-x) during a traversal.
34185         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
34186         before returning.  Reproduce this failure by
34187         mkdir -p a/b; cd a; chmod a-x . b
34188         Reported by Stavros Passas.
34189
34190         Sync from coreutils.
34191         * lib/sha1.c: Tweak grammar in a comment.
34192
34193 2006-01-10  Jim Meyering  <jim@meyering.net>
34194
34195         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
34196         Patch by Joerg Sonnenberger.
34197
34198 2006-01-10  Bruno Haible  <bruno@clisp.org>
34199
34200         * modules/readutmp: Depend on module free.
34201         * modules/strtok_r: Depend on module restrict.
34202
34203 2006-01-10  Bruno Haible  <bruno@clisp.org>
34204
34205         * modules/gettext (configure.ac): Add an invocation of
34206         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
34207
34208 2006-01-10  Bruno Haible  <bruno@clisp.org>
34209
34210         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
34211         Reported by Werner Lemberg <wl@gnu.org>.
34212
34213 2006-01-10  Bruno Haible  <bruno@clisp.org>
34214
34215         * lib/localcharset.c: Update from GNU gettext.
34216
34217 2006-01-10  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/argp.h (__const): Remove macro. Use const instead.
34220         * lib/argp-fmtstream.h (__const): Likewise.
34221         * lib/glob_.h (__const): Remove macro.
34222         * lib/glob-libc.h: Use const instead of __const.
34223
34224 2006-01-10  Bruno Haible  <bruno@clisp.org>
34225
34226         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
34227         variable.
34228         Needed to avoid an automake error regarding the 'gettext' module.
34229
34230 2006-01-09  Simon Josefsson  <jas@extundo.com>
34231
34232         * modules/inet_ntop (Depends-on): Add restrict.
34233
34234 2006-01-09  Simon Josefsson  <jas@extundo.com>
34235
34236         * modules/gc-rijndael-tests (License): Put under LGPL.
34237
34238         * modules/gc-des-tests (License): Likewise.
34239
34240         * modules/gc-arcfour-tests (License): Likewise.
34241
34242         * modules/gc-arctwo-tests (License): Likewise.
34243
34244         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
34245
34246         * modules/gc-hmac-sha1-tests (Files): Likewise.
34247
34248         * modules/gc-hmac-md5-tests (License): Likewise.
34249
34250         * modules/gc-sha1-tests (License): Likewise.
34251
34252         * modules/gc-md5-tests (License): Likewise.
34253
34254         * modules/gc-md4-tests (License): Likewise.
34255
34256         * modules/gc-md2-tests (License): Likewise.
34257
34258         * modules/gc-tests (License): Likewise.
34259
34260         * modules/des-tests (License): Likewise.
34261
34262         * modules/md4-tests (License): Likewise.
34263
34264         * modules/md2-tests (License): Likewise.
34265
34266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34267
34268         Sync from coreutils:
34269
34270         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
34271         * modules/lib-ignore: New file.
34272         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
34273         chdir-safer.m4, lchmod.m4.
34274         * modules/openat: Add mkdirat.c, openat-priv.h.
34275
34276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34277
34278         Sync from coreutils.
34279         * m4/lib-ignore.m4: New file.
34280         * m4/lchmod.m4: New file.
34281
34282 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34283
34284         Sync from coreutils.
34285         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
34286         for write access: POSIX says that must fail.
34287         * lib/fts.c (diropen): Likewise.
34288         * lib/save-cwd.c (save_cwd): Likewise.
34289         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
34290         well, for minor improvements on hosts that lack O_DIRECTORY.
34291         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
34292         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
34293         Fall back on chown if open failed with EACCES.
34294
34295         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
34296         Report an error at compile-time if only a 1-second nominal clock
34297         resolution is found.
34298
34299         * lib/lchmod.h: New file.
34300         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
34301         (make_dir_parents): Use lchown rather than chown, and
34302         lchmod rather than chmod.
34303
34304         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
34305         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
34306         "proc" reported by n0dalus.
34307
34308         * lib/mountlist.c: Include <limits.h>.
34309         (dev_from_mount_options)
34310         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
34311         New function.  It no longer assumes "dev=" has the System V meaning
34312         on Linux (since it doesn't).  It also parses "dev=" more carefully.
34313         (read_file_system_list)
34314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
34315         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
34316         dev= in that case.
34317
34318         * lib/posixtm.h (PDS_PRE_2000): New macro.
34319         * lib/posixtm.c (year): Arg is now syntax_bits rather than
34320         allow_century.  All usages changed.  Reject dates outside the range
34321         1969-1999 if PDS_PRE_2000 is used.
34322
34323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34324
34325         Sync from coreutils.
34326         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
34327         (Time of day items): Mention the possibility of leap seconds.
34328         Problem reported by Dr. David Alan Gilbert.
34329
34330 2006-01-09  Jim Meyering  <jim@meyering.net>
34331
34332         Sync from coreutils.
34333
34334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
34335
34336         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
34337
34338         * lib/modechange.c (mode_compile): Reject an invalid mode string
34339         that starts with an octal digit.  From Andreas Gruenbacher.
34340
34341         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
34342         and dup to open_safer and dup_safer, respectively.
34343         (openat_permissive): Fix typo in comment.
34344
34345         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
34346         "gettext.h"; either no longer needed or are guaranteed by openat.h.
34347         (_): Remove; no longer needed.
34348         (openat): Renamed from rpl_openat; no need for rpl_openat
34349         since openat.h renames openat for us.
34350         Replace most of the body with a call to openat_permissive,
34351         to avoid duplicate code.
34352         Port to (probably hypothetical) environments were mode_t is
34353         wider than int.
34354         (openat_permissive): Require mode arg, so that we can check
34355         types better.  Put it just after flags.  Change cwd failure
34356         indicator from pointer-to-bool to pointer-to-errno-value.
34357         All callers changed.
34358         Invoke openat_save_fail and/or openat_restore_fail if
34359         cwd_errno is null, so that openat can call us.
34360         (openat_permissive, fdopendir, fstatat, unlinkat):
34361         Simplify errno handling to avoid some duplicate code,
34362         as it's OK to set errno on success.
34363         * lib/openat.h: Revamp code so that function macros depend on
34364         __OPENAT_PREFIX only, not also on AT_FDCWD.
34365         (openat_ro): Remove.  Caller changed to use openat_permissive.
34366         (openat_permissive): Now a macro, if not a function.
34367         (openat_restore_fail, openat_save_fail): Now always functions,
34368         since mkdirat needs them even if __OPENAT_PREFIX is defined.
34369
34370         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
34371         and openat.c.
34372         * lib/mkdirat.c: Include openat-priv.h.
34373         Remove definitions of macros defined therein.
34374         * lib/openat.c: Likewise.
34375
34376         * lib/mkdirat.c (mkdirat): New file and function.
34377         * lib/openat.h (mkdirat): Declare.
34378
34379         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
34380
34381         * lib/openat.h (openat_permissive): Declare.
34382         (openat_ro): Define.
34383
34384         * lib/openat.c (EXPECTED_ERRNO): New macro.
34385         (openat_permissive): New function -- used in remove.c rewrite.
34386         (all functions): Set errno just before returning, only if there
34387         was an actual failure.
34388         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
34389
34390         Emulate openat-family functions using Linux's procfs, if possible.
34391         Idea and some code based on Ulrich Drepper's glibc changes.
34392
34393         * lib/openat.c: (BUILD_PROC_NAME): New macro.
34394         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
34395         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
34396         before falling back on save_cwd and restore_cwd.
34397         (fdopendir, fstatat, unlinkat): Likewise.
34398
34399         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
34400         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
34401
34402         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
34403         as second argument to va_arg.  Otherwise, some versions of gcc
34404         warn that `if this code is reached, the program will abort'.
34405
34406 2006-01-09  Jim Meyering  <jim@meyering.net>
34407
34408         Sync from coreutils.
34409         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
34410         Require openat-priv.h.
34411
34412 2006-01-09  Bruno Haible  <bruno@clisp.org>
34413
34414         * modules/strnlen (Include): Use strnlen.h.
34415
34416 2006-01-09  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
34419
34420 2006-01-09  Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/sysexit_.h (EX_OK): New macro.
34423         Suggested by Martin Lambers <marlam@marlam.de>.
34424
34425 2006-01-09  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
34428         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
34429
34430 2006-01-09  Bruno Haible  <bruno@clisp.org>
34431
34432         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
34433         numbers.
34434
34435 2006-01-09  Bruno Haible  <bruno@clisp.org>
34436
34437         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
34438         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
34439         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
34440         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
34441
34442 2006-01-09  Bruno Haible  <bruno@clisp.org>
34443
34444         * build-aux/javacomp.sh.in: New file, moved from lib/.
34445         * modules/javacomp-script (Files): Update.
34446         (configure.ac): Add AC_CONFIG_FILES invocation.
34447         (EXTRA_DIST): Remove variable.
34448
34449         * build-aux/javaexec.sh.in: New file, moved from lib/.
34450         * modules/javaexec (Files): Update.
34451         (configure.ac): Add AC_CONFIG_FILES invocation.
34452         (EXTRA_DIST): Remove javaexec.sh.in.
34453
34454         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
34455         * modules/csharpcomp-script (Files): Update.
34456         (configure.ac): Add AC_CONFIG_FILES invocation.
34457         (EXTRA_DIST): Remove variable.
34458
34459         * build-aux/csharpexec.sh.in: New file, moved from lib/.
34460         * modules/csharpexec (Files): Update.
34461         (configure.ac): Add AC_CONFIG_FILES invocation.
34462         (EXTRA_DIST): Remove csharpexec.sh.in.
34463
34464 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34465
34466         Sync from coreutils.
34467
34468         Add POSIX ACL support
34469         * lib/acl.h (copy_acl, set_acl): Add declarations.
34470         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
34471         systems other than Linux.
34472         (chmod_or_fchmod): New function: use fchmod when possible,
34473         and chmod otherwise.
34474         (file_has_acl): Add a POSIX ACL implementation, with a
34475         Linux-specific subcase.
34476         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
34477         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
34478         acls are unsupported.
34479         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
34480         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
34481         are unsupported.
34482
34483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34484
34485         Sync from coreutils.
34486         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
34487
34488 2006-01-07  Bruno Haible  <bruno@clisp.org>
34489
34490         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
34491         gl_EARLY.
34492
34493 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34494
34495         * lib/strftime.c (tzname): Don't declare if it is already #defined.
34496         Problem reported for Mingw by Mark Junker.
34497
34498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34499
34500         * README: Gnulib normally doesn't generate a tarball.
34501
34502 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34503
34504         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
34505         long int, not int, for nanosecond counts, so that people who are
34506         used to POSIX struct timespec won't be surprised.  Reported by Jim
34507         Meyering.
34508
34509 2005-12-28  Bruno Haible  <bruno@clisp.org>
34510
34511         * build-aux/config.rpath: Update from GNU gettext.
34512
34513 2005-12-16  Jim Meyering  <jim@meyering.net>
34514
34515         * modules/fprintftime: New module.
34516         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
34517
34518 2005-12-16  Jim Meyering  <jim@meyering.net>
34519
34520         * m4/fprintftime.m4: New file.
34521
34522 2005-12-16  Jim Meyering  <jim@meyering.net>
34523
34524         * lib/fprintftime.c, lib/fprintftime.h: New files.
34525
34526 2005-12-15  Simon Josefsson  <jas@extundo.com>
34527
34528         * modules/socklen (configure.ac): Fix M4 macro name, to align with
34529         new m4/socklen.m4.
34530
34531 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34532
34533         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
34534         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
34535
34536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34537
34538         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
34539         * lib/argp-help.c (fill_in_uparams): Check if the constructed
34540         struct uparams is valid. Fall back to the default values if it is
34541         not.
34542
34543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34544
34545         * modules/argp (Files): Add argp-pin.c
34546         (Depends-on): dirname
34547         (lib_SOURCES): Add argp-pin.c
34548
34549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34550
34551         * m4/argp.m4:  Check if program_invocation_name and
34552         program_invocation_short_name are declared and define appropriate
34553         macros if they are not.
34554
34555 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34556
34557         * lib/argp-help.c (__argp_base_name): New function
34558         (__argp_short_program_name): Rewrite using __argp_base_name
34559         * lib/argp-namefrob.h: Define program_invocation_name and
34560         program_invocation_short_name if requested
34561         (__argp_base_name): Add prototype
34562         * lib/argp-parse.c (argp_def): Use gettext wrappers
34563         (argp_default_parser): Use __argp_base_name
34564         * lib/argp-pin.c: New file. Defines program_invocation_name and
34565         program_invocation_short_name on systems that lack them.
34566
34567 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34568
34569         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34570         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34571         porting problem reported by Georg Schwarz in
34572         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34573
34574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34575
34576         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34578         porting problem reported by Georg Schwarz in
34579         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34580
34581 2005-12-05  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34584         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34585         Reported by Mark Junker <mjscod@gmx.de>.
34586
34587 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34588
34589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34590         Use implementation from Albert Chin, with some
34591         comments/corrections by Stepan Kasal and myself.
34592
34593 2005-12-02  Bruno Haible  <bruno@clisp.org>
34594
34595         * gnulib-tool (func_import): Accept GPLed build tool modules when
34596         --lgpl is given.
34597         * modules/csharpcomp-script: New file.
34598         * modules/csharpcomp: Depend on it.
34599         * modules/javacomp-script: New file.
34600         * modules/javacomp: Depend on it.
34601         Suggested by Simon Josefsson.
34602
34603 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34604
34605         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34606         statement, to work around an HP-UX 10.20 compiler bug reported by
34607         Peter O'Gorman.
34608
34609 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34610
34611         * modules/savedir (Depends-on): Add openat.
34612
34613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34614
34615         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34616         (uintmax_t) [defined uintmax_t]: Do not declare.
34617         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34618         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34619         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34620         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34621         sake of portability to weird hosts that C allows (though we don't
34622         know of any practical examples).
34623
34624         * lib/savedir.h (fdsavedir): New decl.
34625         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34626         contains most of the former guts of savedir.
34627         (savedir): Use savedirstream.
34628         Include "openat.h".
34629
34630 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34631
34632         * modules/obstack (Files): Add m4/ulonglong.m4.
34633         Problem reported by Davide Angelocola.
34634
34635 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34636
34637         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34638         coreutils no longer futzes with rounding modes.
34639
34640 2005-11-14  Jim Meyering  <jim@meyering.net>
34641
34642         * lib/mkstemp-safer.c: Include <config.h>, required for possible
34643         replacement of mkstemp.
34644
34645 2005-11-10  Simon Josefsson  <jas@extundo.com>
34646
34647         * lib/readline.c: Remove EOL.
34648
34649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34650
34651         * modules/gethrxtime (Depends-on): Add gettime.
34652
34653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34654
34655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34656         or gettimeofday; no longer needed.
34657
34658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34659
34660         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34661         time business.
34662         (gethrxtime) [! (HAVE_NANOUPTIME
34663         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34664         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34665         our own approximation.
34666
34667 2005-11-08  Eric Blake  <ebb9@byu.net>
34668
34669         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34670
34671 2005-11-08  Eric Blake  <ebb9@byu.net>
34672
34673         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34674
34675 2005-11-04  Bruno Haible  <bruno@clisp.org>
34676
34677         * gnulib-tool: Implement --update mode.
34678
34679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34680
34681         Fix porting problem reported by Theodoros V. Kalamatianos.
34682         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34683         Don't assume that futimes failing means we must fail.
34684
34685 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34686
34687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34688         variables to suggest the intended function of the PATH_MAX check.
34689
34690 2005-10-30  Kean Johnston  <jkj@sco.com>
34691
34692         Trivial changes to support SCO systems.
34693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34694         as PATH_MAX.
34695         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34696         where __ptr is null when no I/O is pending.
34697
34698 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34699
34700         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34701         leave errno alone.  Problem reported by Dmitry V. Levin.
34702
34703 2005-10-28  Simon Josefsson  <jas@extundo.com>
34704
34705         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34706         Test more.
34707
34708         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34709
34710         * modules/md2, modules/md2-tests: New files.
34711
34712 2005-10-28  Simon Josefsson  <jas@extundo.com>
34713
34714         * m4/inet_ntop.m4: More tests.
34715
34716         * m4/gc-md2.m4, md2.m4: New file.
34717
34718 2005-10-28  Simon Josefsson  <jas@extundo.com>
34719
34720         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34721         "restrict" keywords, as per POSIX.  Protect the function
34722         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34723         Don't use K&R prototypes.  Check the sprintf return values.
34724         Re-define EAFNOSUPPORT if not present.  Indent.
34725
34726         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34727         suggested by Bruno Haible <bruno@clisp.org>.
34728
34729         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34730
34731         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34732
34733         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34734         libgcrypt).
34735
34736         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34737
34738         * lib/md2.h, lib/md2.c: New files.
34739
34740 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34741
34742         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34743         errno alone.  Problem reported by Frederic Jolliton.
34744
34745 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34746
34747         * modules/verify (License): Change from GPL to LGPL.  This is a
34748         tiny module and there are apparently near-equivalents that are
34749         under the BSD license.
34750
34751 2005-10-24  Simon Josefsson  <jas@extundo.com>
34752
34753         * modules/sha1: Relicense to LGPL.
34754
34755 2005-10-24  Simon Josefsson  <jas@extundo.com>
34756
34757         * lib/md4.h: Shrink buffer size, now that we changed the type.
34758
34759 2005-10-23  Simon Josefsson  <jas@extundo.com>
34760
34761         * gnulib-tool (func_import): Fix --tests-base.
34762
34763 2005-10-22  Simon Josefsson  <jas@extundo.com>
34764
34765         * modules/arcfour (Depends-on): Need stdint.
34766
34767 2005-10-22  Simon Josefsson  <jas@extundo.com>
34768
34769         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34770         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34771
34772 2005-10-22  Simon Josefsson  <jas@extundo.com>
34773
34774         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34775         suggested by Bruno Haible <bruno@clisp.org>.
34776
34777 2005-10-22  Simon Josefsson  <jas@extundo.com>
34778
34779         * lib/crc.h: Include stddef.h, for size_t.
34780
34781 2005-10-22  Simon Josefsson  <jas@extundo.com>
34782
34783         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34784         arcfour_context struct (simplify test vector testing in GNU
34785         Shishi).
34786
34787 2005-10-21  Simon Josefsson  <jas@extundo.com>
34788
34789         * modules/des, modules/des-tests: New files.
34790
34791         * modules/gc-des, modules/gc-des-tests: New files.
34792
34793         * tests/test-des.c, tests/test-gc-des.c: New file.
34794
34795 2005-10-21  Simon Josefsson  <jas@extundo.com>
34796
34797         * modules/arctwo, modules/arctwo-tests: New files.
34798
34799         * tests/test-arctwo.c: New file.
34800
34801         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34802
34803         * tests/test-gc-arctwo.c: New file.
34804
34805 2005-10-21  Simon Josefsson  <jas@extundo.com>
34806
34807         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34808         Bruno Haible <bruno@clisp.org>.
34809
34810         * m4/gc-des.m4: New file.
34811
34812 2005-10-21  Simon Josefsson  <jas@extundo.com>
34813
34814         * m4/arctwo.m4: New file.
34815
34816         * m4/gc-arctwo.m4: New file.
34817
34818 2005-10-21  Simon Josefsson  <jas@extundo.com>
34819
34820         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34821         block.
34822
34823 2005-10-21  Simon Josefsson  <jas@extundo.com>
34824
34825         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34826         <bruno@clisp.org>.
34827
34828         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34829
34830         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34831         Bruno Haible <bruno@clisp.org>.
34832
34833         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34834         <bruno@clisp.org>.
34835
34836 2005-10-21  Simon Josefsson  <jas@extundo.com>
34837
34838         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34839
34840 2005-10-21  Simon Josefsson  <jas@extundo.com>
34841
34842         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34843
34844 2005-10-21  Simon Josefsson  <jas@extundo.com>
34845
34846         * lib/des.h, lib/des.c: New files.
34847
34848         * lib/gc-gnulib.c: Support DES.c
34849
34850 2005-10-21  Simon Josefsson  <jas@extundo.com>
34851
34852         * lib/arctwo.h, lib/arctwo.c: New files.
34853
34854         * lib/gc-gnulib.c: Support ARCTWO.
34855
34856 2005-10-21  Simon Josefsson  <jas@extundo.com>
34857
34858         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34859         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34860
34861 2005-10-21  Simon Josefsson  <jas@extundo.com>
34862
34863         * gnulib-tool (func_import, func_create_testdir): Define automake
34864         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34865         Makefile.am snippet),
34866         suggested by Bruno Haible <bruno@clisp.org>.
34867
34868         * modules/gc (Makefile.am): Use it.
34869
34870 2005-10-21  Bruno Haible  <bruno@clisp.org>
34871
34872         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34873         patch.
34874
34875 2005-10-19  Simon Josefsson  <jas@extundo.com>
34876
34877         * tests/test-gc-rijndael.c: New file.
34878
34879         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34880
34881 2005-10-19  Simon Josefsson  <jas@extundo.com>
34882
34883         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34884         interface too.
34885
34886 2005-10-19  Simon Josefsson  <jas@extundo.com>
34887
34888         * tests/test-gc-arcfour.c: New file.
34889
34890         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34891
34892 2005-10-19  Simon Josefsson  <jas@extundo.com>
34893
34894         * modules/gc-md4, modules/gc-md4-tests: New file.
34895
34896         * tests/test-gc-md4.c: New file.
34897
34898 2005-10-19  Simon Josefsson  <jas@extundo.com>
34899
34900         * m4/gc-md4.m4: New file.
34901
34902 2005-10-19  Simon Josefsson  <jas@extundo.com>
34903
34904         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34905         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34906         <kasal@ucw.cz>.
34907
34908 2005-10-19  Simon Josefsson  <jas@extundo.com>
34909
34910         * m4/gc-arcfour.m4: New file.
34911
34912         * m4/gc-rijndael.m4: New file.
34913
34914 2005-10-19  Simon Josefsson  <jas@extundo.com>
34915
34916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34917
34918 2005-10-19  Simon Josefsson  <jas@extundo.com>
34919
34920         * lib/gc-gnulib.c: Support ARCFOUR.
34921
34922 2005-10-19  Simon Josefsson  <jas@extundo.com>
34923
34924         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34925         support.
34926
34927         * lib/gc.h: Add ECB enum type.
34928
34929         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34930
34931 2005-10-18  Simon Josefsson  <jas@extundo.com>
34932
34933         * tests/test-md5.c: New file.
34934
34935         * modules/md5-tests: New file.
34936
34937 2005-10-18  Simon Josefsson  <jas@extundo.com>
34938
34939         * tests/test-md4.c: New file.
34940
34941         * modules/md4, modules/md4-tests: New files.
34942
34943 2005-10-18  Simon Josefsson  <jas@extundo.com>
34944
34945         * m4/md4.m4: New file.
34946
34947 2005-10-18  Simon Josefsson  <jas@extundo.com>
34948
34949         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34950
34951 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34952
34953         * gnulib-tool (func_create_testdir): Omit the second check whether
34954         BUILT_SOURCES in nonempty.
34955
34956 2005-10-17  Simon Josefsson  <jas@extundo.com>
34957
34958         * tests/test-rijndael.c: New file.
34959
34960 2005-10-17  Simon Josefsson  <jas@extundo.com>
34961
34962         * modules/sha1: Depend on stdint instead of md5.
34963
34964         * modules/md5: Depend on stdint, remove uint32_t.
34965
34966 2005-10-17  Simon Josefsson  <jas@extundo.com>
34967
34968         * modules/gc-sha1-tests: New file.
34969
34970         * tests/test-gc-sha1.c: New file.
34971
34972 2005-10-17  Simon Josefsson  <jas@extundo.com>
34973
34974         * m4/md5.m4: Remove call to uint32_t.m4.
34975
34976 2005-10-17  Simon Josefsson  <jas@extundo.com>
34977
34978         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34979
34980         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34981         md5.h.
34982
34983         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34984
34985         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34986
34987 2005-10-17  Simon Josefsson  <jas@extundo.com>
34988
34989         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34990
34991 2005-10-17  Simon Josefsson  <jas@extundo.com>
34992
34993         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34994
34995 2005-10-17  Simon Josefsson  <jas@extundo.com>
34996
34997         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34998
34999         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
35000
35001 2005-10-17  Bruno Haible  <bruno@clisp.org>
35002
35003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
35004         that it can also be used in a test.
35005
35006 2005-10-16  Bruno Haible  <bruno@clisp.org>
35007
35008         * gnulib-tool (func_emit_tests_Makefile_am): Also define
35009         TESTS_ENVIRONMENT, so that individual tests can augment it.
35010
35011         * gnulib-tool (func_create_testdir): Use an intermediate target for
35012         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
35013         macros, like $(ALLOCA_H), which cannot be passed through the command
35014         line.
35015
35016 2005-10-15  Simon Josefsson  <jas@extundo.com>
35017
35018         * modules/rijndael-tests: New file.
35019
35020         * modules/rijndael: New file.
35021
35022 2005-10-15  Simon Josefsson  <jas@extundo.com>
35023
35024         * m4/rijndael.m4: New file.
35025
35026 2005-10-15  Simon Josefsson  <jas@extundo.com>
35027
35028         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
35029
35030         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
35031
35032 2005-10-14  Simon Josefsson  <jas@extundo.com>
35033
35034         * tests/test-arcfour.c: New file.
35035
35036         * modules/arcfour, modules/arcfour-tests: New files.
35037
35038 2005-10-14  Simon Josefsson  <jas@extundo.com>
35039
35040         * m4/arcfour.m4: New file.
35041
35042 2005-10-14  Simon Josefsson  <jas@extundo.com>
35043
35044         * lib/arcfour.h, lib/arcfour.c: New files.
35045
35046 2005-10-14  Roland McGrath  <roland@redhat.com>
35047
35048         Import from libc.  [BZ #1331]
35049         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
35050         macro argument.
35051         Reported by Matej Vela <vela@debian.org>.
35052
35053 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35054
35055         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
35056         include <wchar.h>; no longer needed.
35057
35058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35059
35060         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
35061
35062 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
35063         and  Ulrich Drepper  <drepper@redhat.com>
35064
35065         Import from libc.
35066         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
35067         instead of inline stream orientation test and two separate
35068         function calls.  Pay no attention to USE_IN_LIBIO.
35069
35070 2005-10-13  Simon Josefsson  <jas@extundo.com>
35071
35072         * modules/gc-hmac-md5-tests: New file.
35073
35074         * tests/test-gc-hmac-sha1.c: New file.
35075
35076         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
35077
35078         * modules/gc-hmac-md5-tests: New file.
35079
35080         * tests/test-gc-md5.c: New file.
35081
35082         * modules/gc-md5-tests: New file.
35083
35084 2005-10-13  Simon Josefsson  <jas@extundo.com>
35085
35086         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
35087         Move memory allocation outside of loop.
35088
35089 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
35090
35091         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
35092         intermediate directory is in a read-only file system.  Problem
35093         reported by Eric Blake.
35094
35095 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
35096
35097         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
35098
35099 2005-10-12  Simon Josefsson  <jas@extundo.com>
35100
35101         * tests/test-hmac-sha1.c: New file.
35102
35103         * modules/hmac-sha1-tests: New file.
35104
35105         * modules/hmac-sha1: New file.
35106
35107 2005-10-12  Simon Josefsson  <jas@extundo.com>
35108
35109         * modules/gc-sha1: New file.
35110
35111 2005-10-12  Simon Josefsson  <jas@extundo.com>
35112
35113         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
35114
35115         * tests/test-gc-pbkdf2-sha1.c: New file.
35116
35117 2005-10-12  Simon Josefsson  <jas@extundo.com>
35118
35119         * modules/gc-md5, modules/gc-hmac-md5: New files.
35120
35121         * modules/gc (Files): Remove md5, memxor and hmac files.
35122
35123 2005-10-12  Simon Josefsson  <jas@extundo.com>
35124
35125         * m4/gc-pbkdf2-sha1.m4: New file.
35126
35127         * m4/gc-hmac-sha1.m4: New file.
35128
35129         * m4/gc-sha1: New file.
35130
35131         * m4/hmac-sha1.m4: New file.
35132
35133 2005-10-12  Simon Josefsson  <jas@extundo.com>
35134
35135         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
35136
35137         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
35138
35139 2005-10-12  Simon Josefsson  <jas@extundo.com>
35140
35141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
35142         suggested by Bruno Haible <bruno@clisp.org>.
35143
35144 2005-10-12  Simon Josefsson  <jas@extundo.com>
35145
35146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
35147
35148 2005-10-12  Simon Josefsson  <jas@extundo.com>
35149
35150         * lib/gc-pbkdf2-sha1.c: New file.
35151
35152         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
35153
35154 2005-10-12  Simon Josefsson  <jas@extundo.com>
35155
35156         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
35157
35158         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
35159
35160 2005-10-12  Simon Josefsson  <jas@extundo.com>
35161
35162         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
35163         GC_USE_HMAC_MD5, respectively.
35164
35165         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
35166         (gc_md5): Fix typo.
35167
35168         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
35169
35170         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
35171
35172         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
35173
35174 2005-10-12  Bruno Haible  <bruno@clisp.org>
35175
35176         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
35177         Reported by Stepan Kasal <kasal@ucw.cz>.
35178
35179 2005-10-11  Simon Josefsson  <jas@extundo.com>
35180
35181         * tests/test-crc.c: New file.
35182
35183         * modules/crc, modules/crc-tests: New files.
35184
35185 2005-10-11  Simon Josefsson  <jas@extundo.com>
35186
35187         * m4/crc.m4: New file.
35188
35189 2005-10-11  Simon Josefsson  <jas@extundo.com>
35190
35191         * lib/gc.h: Add gc_hash and gc_hash_buffer.
35192
35193         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
35194
35195         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
35196
35197 2005-10-11  Simon Josefsson  <jas@extundo.com>
35198
35199         * lib/crc.h, lib/crc.c: New files.
35200
35201         * lib/gc.h (gc_hash_buffer): Add doc.
35202
35203 2005-10-11  Bruno Haible  <bruno@clisp.org>
35204
35205         * modules/c-strcasestr: New file.
35206         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
35207
35208 2005-10-11  Bruno Haible  <bruno@clisp.org>
35209
35210         * modules/c-strcase: New file.
35211         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
35212
35213 2005-10-11  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/strcasecmp.c: Include limits.h.
35216         (strcasecmp): Avoid integer overflow on exotic platforms.
35217         * lib/strncasecmp.c: Include limits.h.
35218         (strncasecmp): Avoid integer overflow on exotic platforms.
35219         Reported by Paul Eggert.
35220
35221 2005-10-11  Bruno Haible  <bruno@clisp.org>
35222
35223         * lib/c-strcasestr.h: New file, from GNU gettext.
35224         * lib/c-strcasestr.c: New file, from GNU gettext.
35225
35226 2005-10-11  Bruno Haible  <bruno@clisp.org>
35227
35228         * lib/c-strcase.h: New file, from GNU gettext.
35229         * lib/c-strcasecmp.c: New file, from GNU gettext.
35230         * lib/c-strncasecmp.c: New file, from GNU gettext.
35231
35232 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35233
35234         * modules/mempcpy (License): GPL -> LGPL.
35235         * modules/strchrnul (License): Likewise.
35236         * modules/sysexits (License): Likewise.
35237
35238 2005-10-08  Simon Josefsson  <jas@extundo.com>
35239
35240         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
35241
35242 2005-10-07  Simon Josefsson  <jas@extundo.com>
35243
35244         * m4/memxor.m4: Remove gl_C_RESTRICT call.
35245
35246 2005-10-06  Simon Josefsson  <jas@extundo.com>
35247
35248         * tests/test-hmac-md5.c: New file.
35249
35250         * modules/hmac-md5-tests: New file.
35251
35252         * modules/hmac-md5: New file.
35253
35254 2005-10-06  Simon Josefsson  <jas@extundo.com>
35255
35256         * m4/hmac-md5.m4: New file.
35257
35258         * m4/memxor.m4: Require gl_C_RESTRICT.
35259
35260 2005-10-06  Simon Josefsson  <jas@extundo.com>
35261
35262         * lib/memxor.c (memxor): Avoid casts and warnings.
35263
35264 2005-10-06  Simon Josefsson  <jas@extundo.com>
35265
35266         * lib/hmac-md5.c: New file.
35267
35268         * lib/hmac.h: New file.
35269
35270 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35271
35272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
35273         promotes to int, not unsigned int, to catch the AIX 5.3
35274         compiler bug.
35275
35276 2005-10-05  Simon Josefsson  <jas@extundo.com>
35277
35278         * modules/memxor: New file.
35279
35280         * modules/iconv (Files): Move config.rpath to havelib, it is used
35281         there.
35282
35283         * modules/havelib (Files): Add config.rpath.
35284
35285 2005-10-05  Simon Josefsson  <jas@extundo.com>
35286
35287         * m4/memxor.m4: New file.
35288
35289 2005-10-05  Simon Josefsson  <jas@extundo.com>
35290
35291         * lib/memxor.c (memxor): Fix compiler error.
35292
35293         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
35294         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
35295
35296         * lib/memxor.h, lib/memxor.c: New files.
35297
35298         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
35299         we assume all systems have it, suggested by Jim Meyering
35300         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
35301         any systems lack sys/socket.h; mingw32 is known to lack it, but we
35302         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
35303         same reasons.
35304
35305 2005-10-05  Simon Josefsson  <jas@extundo.com>
35306
35307         * config/srclist.txt: Add glibc bug 1423 for md5.h.
35308
35309 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
35310
35311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
35312         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
35313         needed, since the source code now assumes these .h files.
35314
35315 2005-10-05  Derek Price  <derek@ximbiot.com>
35316
35317         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
35318
35319 2005-10-05  Bruno Haible  <bruno@clisp.org>
35320
35321         * modules/stdint (License): Change to LGPL.
35322
35323 2005-10-04  Simon Josefsson  <jas@extundo.com>
35324
35325         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
35326         D. Baushke" <mdb@gnu.org>.
35327
35328 2005-10-04  Bruno Haible  <bruno@clisp.org>
35329
35330         * lib/verify.h (verify_true): Provide alternative definition for C++.
35331
35332 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
35333
35334         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
35335         (SSIZE_MAX): New macro, if not already defined.
35336         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
35337         than 2 GiB.
35338
35339 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35340
35341         Sync from coreutils.
35342         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
35343         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
35344         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
35345         ULLONG_MAX doesn't work with 2.7.2.1.
35346
35347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35348
35349         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
35350         From Ben Pfaff.
35351
35352         * modules/exclude (Depends-on): Depend on verify.
35353         * modules/strtoimax (Depends-on): Likewise.
35354         * modules/utimecmp (Depends-on): Likewise.
35355
35356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35357
35358         * lib/exclude.c: Include verify.h.
35359         (verify): Remove.  All callers changed to use verify.h's version.
35360         * lib/strtoimax.c: Likewise.
35361         * lib/utimecmp.c: Likewis.e
35362
35363         Sync from coreutils.
35364         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
35365         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
35366         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
35367         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
35368         bother returning ENOSYS if settimeofday or stime fails; just let
35369         them return whatever errno they want to return.
35370         * lib/utimens.c: Include unistd.h, for dup2.
35371         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
35372         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
35373
35374 2005-10-02  Jim Meyering  <jim@meyering.net>
35375
35376         Sync from coreutils.
35377         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
35378         from glibc-2.2.5 that fails for read-only files.
35379
35380 2005-10-02  Jim Meyering  <jim@meyering.net>
35381
35382         Sync from coreutils.
35383         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
35384         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
35385         `#if HAVE_CONFIG_H'.
35386         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
35387         Remove AT_FDCWD test.
35388         Do not consume the fd unless successful.
35389         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
35390         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
35391         block, so that we don't even try to compile it if settimeofday is
35392         available.  This works around a compilation failure on OSF1 V5.1,
35393         due to stime requiring a `long int*' while tv_sec is `int'.
35394
35395 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
35396
35397         Sync from coreutils.
35398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
35399         against `yes', rather than just testing for nonempty.
35400
35401 2005-10-01  Simon Josefsson  <jas@extundo.com>
35402
35403         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
35404         and Darwin.
35405
35406         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
35407         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
35408         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
35409         freeaddrinfo and gai_strerror are declared by the POSIX headers.
35410         Check if struct addrinfo is declared.
35411
35412 2005-10-01  Simon Josefsson  <jas@extundo.com>
35413
35414         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
35415         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
35416         AI_* and EAI_* definitions.  Protect function declarations.
35417
35418 2005-10-01  Jim Meyering  <jim@meyering.net>
35419
35420         Sync from coreutils.
35421
35422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
35423         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
35424         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
35425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35426         in the inet and nsl libraries.  Required on Solaris 5.7.
35427
35428 2005-10-01  Jim Meyering  <jim@meyering.net>
35429
35430         Sync from coreutils.
35431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35432         in the inet and nsl libraries.  Required on Solaris 5.7.
35433
35434 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
35435
35436         * lib/getdelim.c (getdelim): Remove unused variables.
35437
35438 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35439
35440         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
35441         so that the code works even with ancient cpp.  Portability problem
35442         with GCC 2.7.2.1 reported by Thomas M.Ott.
35443
35444 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35445
35446         * modules/regex (Depends-on): Add strcase.
35447
35448         * modules/gethostname (Licence): Change from GPL to LGPL, since
35449         gethostname.c is a trivial implementation of a standard library
35450         function.
35451         * modules/poll (License): Change from GPL to LGPL, since it's
35452         derived from LGPL code.
35453
35454 2005-09-27  Jim Meyering  <jim@meyering.net>
35455
35456         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
35457         HAVE_CONFIG_H.
35458
35459         * lib/intprops.h (signed_type_or_expr__): Define.
35460         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
35461         for unsigned types.
35462
35463 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35464
35465         * lib/verify.h (verify_expr): Remove, replacing with:
35466         (verify_true): New macro that returns true instead of void.
35467         (verify_type__): Remove.
35468         (verify): Use verify_true rather than verify_type__.
35469
35470 2005-09-26  Bruno Haible  <bruno@clisp.org>
35471
35472         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
35473         is necessary.
35474         (lib_SOURCES): Remove mbchar.c.
35475         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
35476         (Files): Add m4/mbrtowc.m4.
35477         * modules/mbiter: Likewise.
35478         * modules/mbuiter: Likewise.
35479
35480 2005-09-26  Bruno Haible  <bruno@clisp.org>
35481
35482         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
35483         compile mbchar.c if they are not both present.
35484         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
35485         * m4/mbiter.m4 (gl_MBITER): Likewise.
35486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
35487         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
35488         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
35489
35490 2005-09-25  Jim Meyering  <jim@meyering.net>
35491
35492         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
35493         also uses socklen_t.
35494
35495 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35496
35497         * lib/utimens.c (ENOSYS): Define if not already defined.
35498         (futimens): Support having a null PATH if the file descriptor
35499         is nonnegative.
35500
35501         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
35502         Remove.
35503         (__attribute): Define to empty unless GCC 3.1 or later.
35504         This works around a core dump on OpenBSD 3.4, which has GCC
35505         2.95.3, which dumps core when given __attribute__(()).  It also
35506         simplifies other tests, since we really don't want to bother with
35507         worrying about which ancient version of GCC supported what.
35508         Original problem reported by Yoann Vandoorselaere, with part of
35509         the fix suggested by Derek Price.
35510
35511 2005-09-24  Jim Meyering  <jim@meyering.net>
35512
35513         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
35514         so we can once again use a positive bitfield width of 1 -- now we
35515         don't have to explain why we were using a bitfield width of 2.
35516
35517 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35518
35519         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
35520         and similarly for the other external symbols.  Problem reported
35521         by James Gallager.
35522
35523         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
35524         bug reported by Jim Meyering.
35525
35526         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
35527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
35528         not needed, since socklen is a prerequisite module.
35529
35530 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35531
35532         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
35533         Problem reported by Eric Blake.
35534         (getaddrinfo): Initialize se so that it's not garbage.
35535         Redo internal storage allocation so that it doesn't make unportable
35536         assumptions about alignment.
35537         Fix a memory leak.
35538
35539         * lib/utimens.c (futimens): Use futimesat if available.
35540         Prefer it to futimes since it doesn't have the futimes bug.
35541
35542         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
35543         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
35544         Instead, declare a function that returns a pointer to an array,
35545         and use verify_type__ to declare the size of the array.
35546         Problem and germ of a solution reported by Bruno Haible.
35547         (verify_type__): Use 2, not 1, for bitfield size, to avoid
35548         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
35549
35550 2005-09-23  Jim Meyering  <jim@meyering.net>
35551
35552         Sync from coreutils.
35553         Correct build failure (socklen_t not defined) on at least
35554         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35556
35557 2005-09-23  Jim Meyering  <jim@meyering.net>
35558
35559         * modules/getaddrinfo (Depends-on): Add socklen.
35560
35561 2005-09-23  Bruno Haible  <bruno@clisp.org>
35562
35563         * tests/test-verify.c: New file.
35564
35565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35566
35567         Sync from coreutils.
35568
35569         * modules/argmatch (Depends-on): Add verify.
35570         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35571         unistd-safer.
35572         * modules/save-cwd (Depends-on): Likewise.
35573
35574         * modules/openat (Files): Add lib/openat-die.c.
35575         (Depends-on): Remove error, exitfail.
35576         Add dirname.
35577
35578         * modules/verify: New file.
35579         * MODULES.html.sh (Diagnostics <assert.h>): New section,
35580         with "verify" module.
35581
35582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35583
35584         Sync from coreutils.
35585
35586         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35587         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35588         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35589         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35590         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35591         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35592         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35593         Don't bother checking for string.h, stdlib.h, unistd.h.
35594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35596         module's job.
35597         * m4/jm-macros.m4 (gl_MACROS): Likewise.
35598         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35599
35600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35601         (gl_GETDATE): Use it.
35602
35603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35604
35605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         Sync from coreutils.
35608
35609         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35610         stat-time.h.
35611         * lib/argmatch.h: Include verify.h
35612         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35613         (ARGMATCH_ASSERT): Remove; unused.
35614         * lib/canonicalize.c: Assume STDC_HEADERS.
35615         * lib/exclude.c: Include "strcase.h".
35616         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35617         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35618         and stdio-safer.h.
35619         (getusershell): Call fopen, not fopen_safer.
35620         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35621         Do not include unistd-safer.h.
35622         (save_cwd): Don't call fd_safer; no longer needed
35623         now that we include fcntl--.h.
35624
35625         * lib/getdate.y (relative_time): New type.
35626         (RELATIVE_TIME_0): New constant.
35627         (parser_control): Use relative_time instead of doing it ourselves.
35628         (%union): Add new relative_time rel member.
35629         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35630         Now typeless.
35631         (relunit, relunit_snumber): Now of type rel.
35632         (zone, rel, relunit, get_date): Adjust to above changes.
35633
35634         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35635         Do not include unistd-safer.h.
35636         (getloadavg): Don't call fd_safer; no longer needed
35637         now that we include fcntl--.h.
35638
35639         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35640         (make_dir_parents): Treat ENOSYS like EEXIST.
35641
35642         Improve quality of diagnostics on restore_cwd failure.
35643         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
35644         (make_dir_parents): Last arg is now int * (for errno), not bool *.
35645         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35646         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35647         each time through the loop.  Do not diagnose restore_cwd failure;
35648         that is the caller's job (and perhaps the caller does not care).
35649
35650         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35651         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35652         If the file already exists but is not a directory, don't bother
35653         to try to make its parents.
35654         Close potential file descriptor leak if we can't chdir("/") (!).
35655         Don't always return true if chdir($PWD) fails; return true only
35656         if the requested action was done successfully (except for the
35657         chdir($PWD)).
35658         Don't log final directory unless we actually made it.
35659         Refactor to avoid duplicate code to fix up permissions.
35660         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35661
35662         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35663         to make it a bit faster and (I hope) clearer.
35664         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35665         Fix bug in formats like %2N.
35666
35667         * lib/verify.h: New file.
35668
35669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35670
35671         Sync from coreutils.
35672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35673
35674 2005-09-22  Jim Meyering  <jim@meyering.net>
35675
35676         Sync from coreutils.
35677
35678         * m4/lstat.m4 (gl_FUNC_LSTAT):
35679         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35680         Remove obsolete comment.
35681         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35682         * m4/xstrtod.m4: Likewise.
35683
35684         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35685
35686 2005-09-22  Jim Meyering  <jim@meyering.net>
35687
35688         Sync from coreutils.
35689
35690         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35691
35692         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35693         the .tm_year member, since otherwise gcc-4.0 would now warn about
35694         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35695
35696         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35697         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35698
35699         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35700         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35701         when run in a time zone for which daylight savings time is in effect
35702         for the starting date.
35703
35704         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35705         stop us from restricting permissions of just-created absolute-named
35706         directories.
35707         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35708         to restore initial working directory.
35709         * lib/mkdir-p.c (make_dir_parents): New parameter:
35710         different_working_dir, to tell caller if/when we change the working
35711         directory and are unable to return to the initial one.
35712         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35713         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35714         `return false'.  This fixes a bug introduced on 2004-07-30.
35715
35716         * lib/openat.c (fdopendir): Be sure to close the supplied
35717         file descriptor before returning.  This makes our replacement
35718         implementation a little closer to Solaris's, where fdopendir
35719         ties the file descriptor to the returned DIR* pointer.
35720         * lib/openat.c (unlinkat): New function.
35721         * lib/openat.h (unlinkat): Add prototype.
35722         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35723         (openat_restore_fail): Rename from openat_restore_die.
35724         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35725
35726         Provide an alternative to exiting immediately upon save_cwd or
35727         restore_cwd failure.  Now, an application can arrange e.g.,
35728         to perform a longjump in that case.
35729         * lib/openat.c: Include dirname.h.
35730         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35731         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35732         and openat_restore_die rather than calling error directly.
35733         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35734
35735         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35736         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35737         define.
35738
35739         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35740         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35741                             int utc, int nanoseconds);
35742         Background:
35743         date should not have to allocate a megabyte of virtual memory to
35744         handle a format argument like +%1048575T.  When implemented with
35745         strftime, it must allocate such a buffer, use strftime to fill it
35746         in, print it, then free it.
35747         With fprintftime, it simply prints everything and exits.
35748         With no need for memory allocation, that's one fewer way to fail.
35749         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35750         optional field width, not before, so we accept %9:z, not %:9z.
35751         (my_strftime): Be sure to use L_('x') for literals.
35752
35753         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35754         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35755         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35756         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35757         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35758         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35759         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35760         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35761         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35762         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35763         * lib/xgethostname.c, lib/xreadlink.c:
35764         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35765
35766         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35767         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35768         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35770         and don't include <sys/file.h>).
35771
35772 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35773
35774         Sync from coreutils.
35775
35776         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35777         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35778         [!LDAV_DONE]: Avoid unused variable warning.
35779
35780 2005-09-21  Bruno Haible  <bruno@clisp.org>
35781
35782         * lib/unicodeio.h (unicode_to_mb): New declaration.
35783
35784 2005-09-20  Derek Price  <derek@ximbiot.com>
35785
35786         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35787         getaddrinfo.h.
35788
35789 2005-09-20  Bruno Haible  <bruno@clisp.org>
35790
35791         * gnulib-tool: Remove trailing slashes from the values specified for
35792         --source-base, --m4-base, --tests-base, --aux-dir.
35793         Suggested by Simon Josefsson <jas@extundo.com>.
35794
35795 2005-09-20  Bruno Haible  <bruno@clisp.org>
35796
35797         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35798         func_modules_to_filelist, func_import, func_create_testdir): Make all
35799         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35800         change when gnulib-tool is invoked in a different locale.
35801
35802 2005-09-19  Simon Josefsson  <jas@extundo.com>
35803
35804         * m4/socklen.m4: Fix typo.
35805
35806 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35807
35808         Use a consistent style for including <config.h>.
35809         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35810         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35811         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35812         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35813         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35814         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35815         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35816         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35817         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35818         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35819         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35820         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35821         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35822         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35823         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35824         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35825         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35826         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35827         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35828         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35829         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35830         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35831         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35832         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35833         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35834         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35835         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35836         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35837         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35838         lib/xstrtoumax.c, lib/yesno.c:
35839         Standardize inclusion of config.h.
35840         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35841         lib/inttostr.h:  Removed inclusion of config.h from header files.
35842         * lib/inttostr.c:  Adjusted in-tree users.
35843         * lib/timespec.h: Remove superfluous warning to include config.h.
35844         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35845         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35846         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35847         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35848         config.h with HAVE_CONFIG_H.
35849
35850 2005-09-19  Jim Meyering  <jim@meyering.net>
35851
35852         * modules/pathmax (License): Change to LGPL.
35853
35854 2005-09-19  Derek Price  <derek@ximbiot.com>
35855
35856         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35857
35858 2005-09-19  Bruno Haible  <bruno@clisp.org>
35859
35860         * gnulib-tool (import): Provide default for --tests-base.
35861
35862 2005-09-19  Bruno Haible  <bruno@clisp.org>
35863
35864         * doc/quote.texi: New file, extracted from gnulib.texi.
35865         * doc/ctime.texi: New file, extracted from gnulib.texi.
35866         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35867         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35868         * doc/gnulib.texi: Include them.
35869
35870 2005-09-18  Bruno Haible  <bruno@clisp.org>
35871
35872         Portability fix.
35873         * gnulib-tool (func_readlink): New function.
35874         (func_ln_if_changed): Use it.
35875
35876 2005-09-18  Bruno Haible  <bruno@clisp.org>
35877
35878         * gnulib-tool: Support --with-tests also with --import.
35879         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35880         (func_import): Use variables $testsbase and $inctests. Emit a
35881         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35882         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35883         SUBDIRS += $testsdir.
35884         (func_create_testdir): Update.
35885
35886 2005-09-18  Bruno Haible  <bruno@clisp.org>
35887
35888         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35889         instead of $dry_run.
35890         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35891         (func_ln_if_changed): Don't handle dry-run here.
35892         (func_import): In dry-run mode, detect more precisely which actions
35893         would be performed, and don't use "...ing" verbs.
35894
35895 2005-09-18  Bruno Haible  <bruno@clisp.org>
35896
35897         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35898         (func_import): Use join on two temporary files instead of three nested
35899         loops, in order to determine which files are new or old.
35900
35901 2005-09-18  Bruno Haible  <bruno@clisp.org>
35902
35903         * gnulib-tool (func_import): Comment out code that spits out the
35904         new files with --dry-run.
35905
35906 2005-09-18  Bruno Haible  <bruno@clisp.org>
35907
35908         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35909
35910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35911
35912         * lib/stat-time.h: New file.
35913         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35914         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35915         in a different way.
35916         (timespec_cmp): New function.
35917         * lib/utimecmp.c: Include stat-time.h.
35918         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35919         members exist, not on the obsolescent ST_MTIM_NSEC.
35920         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35921
35922 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35923
35924         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35925
35926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35927
35928         * MODULES.html.sh (File system functions): Add stat-time.
35929         * modules/stat-time: New file.
35930         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35931         is now done in a different way, by the stat-time module.
35932         * modules/utimecmp (Depends-on): Add stat-time.
35933
35934 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35935
35936         * m4/st_mtim.m4: Remove.  Superseded by...
35937         * m4/stat-time.m4: New file.
35938         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35939         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35940
35941 2005-09-15  Derek Price  <derek@ximbiot.com>
35942
35943         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35944
35945 2005-09-15  Derek Price  <derek@ximbiot.com>
35946
35947         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35948         * lib/regex_internal.c: Ditto, using this...
35949         (__GNUC_PREREQ): ...new macro.
35950         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35951         using...
35952         (__GNUC_PREREQ): ...this new macro.
35953
35954         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35955
35956 2005-09-15  Derek Price  <derek@ximbiot.com>
35957             Paul Eggert  <eggert@cs.ucla.edu>
35958
35959         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35960         changes, consolidating in...
35961         * lib/regex_internal.h: ...this file.
35962
35963 2005-09-13  Jim Meyering  <jim@meyering.net>
35964
35965         * lib/canon-host.c: Filter through gnu indent and reword comments
35966         slightly.
35967         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35968
35969 2005-09-13  Derek Price  <derek@ximbiot.com>
35970
35971         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35972         failure.
35973         Reported by Jim Meyering  <jim@meyering.net>.
35974
35975 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35976
35977         * lib/base64.c: Typo.
35978         (base64_encode): Put b64str in initialized data section.
35979
35980 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35981
35982         Merge glibc and coreutils changes into gnulib, plus a few
35983         extra fixes.
35984         * lib/md5.c: Use #error rather than a string.
35985         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35986         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35987         (__attribute__): Define to empty for non recent-GCC.
35988         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35989         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35990         Renamed from their non-__ counterparts, with new macros replacing
35991         them if not _LIBC.  Add __THROW attribute.
35992         (rol): Remove.
35993         (struct md5_ctx): Align buffer if using GCC.
35994         * lib/sha1.h (struct sha1_ctx): Likewise.
35995         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35996         The old name was backwards.
35997         (NOTSWAP): Remove; not used.
35998         (rol): New macro, moved here from md5.h.
35999         (sha1_process_block): Remove a FIXME that doesn't make sense.
36000
36001 2005-09-12  Derek Price  <derek@ximbiot.com>
36002
36003         Return usable errors from canon-host.
36004         * lib/canon-host.h: New file.
36005         * lib/canon-host.c (canon_host): Wrap...
36006         (canon_host_r): ...this new function, which now relies exclusively on
36007         getaddrinfo.
36008         (ch_strerror): New function.
36009         (last_cherror): New global.
36010         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
36011         interface.
36012         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
36013         void *.
36014         (freeaddrinfo): Free ai->ai_canonname when set.
36015
36016 2005-09-12  Derek Price  <derek@ximbiot.com>
36017
36018         Make canon-host require getaddrinfo.
36019         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
36020         AC_LIBSOURCE canon-host.h.  Call...
36021         (gl_PREREQ_CANON_HOST): ...this new function, which requires
36022         gl_GETADDRINFO.
36023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
36024
36025 2005-09-12  Derek Price  <derek@ximbiot.com>
36026
36027         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
36028         LGPL.
36029         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
36030
36031 2005-09-12  Derek Price  <derek@ximbiot.com>
36032
36033         * lib/gai_strerror.c: Include config.h when available.  Include
36034         getaddrinfo.h before other headers to test interface.
36035         Reported by Larry Jones <lawrence.jones@ugs.com>.
36036
36037 2005-09-12  Derek Price  <derek@ximbiot.com>
36038             Paul Eggert  <eggert@cs.ucla.edu>
36039
36040         * modules/glob (Files): Add glob-libc.h.
36041
36042 2005-09-12  Derek Price  <derek@ximbiot.com>
36043             Paul Eggert  <eggert@cs.ucla.edu>
36044
36045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
36046         glob_.h, glob-libc.h.
36047         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
36048
36049 2005-09-12  Derek Price  <derek@ximbiot.com>
36050             Paul Eggert  <eggert@cs.ucla.edu>
36051
36052         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
36053         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
36054         protecting things that should be done only in gnulib contexts.
36055         * lib/glob_.h: New file, containing only the glob things needed for
36056         gnulib.
36057         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
36058         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
36059         (glob, globfree, glob_pattern_p): Now defined simply in terms of
36060         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
36061         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
36062         and to respect the namespace rules better.
36063
36064 2005-09-08  Simon Josefsson  <jas@extundo.com>
36065
36066         * modules/socklen: New file.
36067
36068 2005-09-08  Simon Josefsson  <jas@extundo.com>
36069
36070         * m4/socklen.m4: New file.
36071
36072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36073
36074         * modules/utimens (Files): Add m4/utimbuf.m4, since
36075         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
36076         Reported by Sergey Poznyakoff.
36077
36078 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36079
36080         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
36081         definitions, since that's the preferred style in glibc.
36082         Fix a minor spacing issue, and update copyright notice to match
36083         glibc's.
36084
36085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36086
36087         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
36088
36089 2005-09-06  Simon Josefsson  <jas@extundo.com>
36090
36091         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
36092         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
36093
36094 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36095
36096         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
36097         warning.
36098
36099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * config/srclist.txt: Add glibc bug 1302.
36102
36103 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
36104
36105         Change bitset word type from unsigned int to unsigned long int,
36106         as this has better performance on typical 64-bit hosts.
36107         Port bitset code to hosts with unusual word sizes.
36108         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
36109         (build_collating_symbol):
36110         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
36111         argument is a bitset.  This is merely a style issue, but it makes
36112         it clearer that an entire array is expected.
36113         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
36114         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
36115         Port to the case where bitset_word is not the same as unsigned int.
36116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36117         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
36118         Likewise.
36119         * lib/regexec.c (check_dst_limits_calc_pos_1,
36120         check_subexp_matching_top):
36121         (build_trtable, group_nodes_into_DFAstates):
36122         Likewise.
36123         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
36124         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
36125         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
36126         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
36127         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
36128         * lib/regcomp.c (optimize_subexps, lower_subexp):
36129         Work even if bitset_word has holes in its bitwise representation.
36130         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
36131         * lib/regexec.c (check_dst_limits_calc_pos_1,
36132         check_subexp_matching_top):
36133         Likewise.
36134         * lib/regex_internal.c (re_string_reconstruct):
36135         Don't assume UCHAR_MAX == 255.
36136         * lib/regex_internal.h (bitset_set_all): Likewise.
36137         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
36138         All uses changed.
36139         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
36140         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
36141         All uses changed.
36142         (BITSET_WORD_MAX): New macro.
36143         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
36144         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
36145         (bitset_empty, bitset_copy):
36146         Prefer sizeof (bitset) to multiplying it out ourselves.
36147         (bitset_not_merge): Remove; unused.
36148         (bitset_contain): Return bool, not unsigned int with one bit on.
36149         All callers changed.
36150         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
36151         alignment than re_node_set; do this by defining a new internal
36152         type struct dests_alloc and using it to allocate memory.
36153
36154 2005-09-05  Bruno Haible  <bruno@clisp.org>
36155
36156         * gnulib-tool (func_import): Fix comparison in handling of symbolic
36157         links.
36158
36159 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
36160
36161         * modules/size_max (Makefile.am): Add size_max.h
36162
36163 2005-09-04  Derek Price  <derek@ximbiot.com>
36164
36165         * gnulib-tool (func_import): Fix reversed $symbolic logic.
36166
36167 2005-09-03  Simon Josefsson  <jas@extundo.com>
36168
36169         * gnulib-tool: Fix typo.
36170
36171 2005-09-03  Simon Josefsson  <jas@extundo.com>
36172
36173         * config/srclist.txt: Add glibc bug 1293.
36174
36175 2005-09-03  Derek Price  <derek@ximbiot.com>
36176
36177         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
36178         From Larry Jones <lawrence.jones@ugs.com>.
36179
36180 2005-09-02  Simon Josefsson  <jas@extundo.com>
36181
36182         * modules/socklen: New file.
36183
36184 2005-09-02  Simon Josefsson  <jas@extundo.com>
36185
36186         * modules/havelib: New module.
36187
36188         * modules/gettext, modules/iconv, modules/lock, modules/readline:
36189         Use havelib.
36190
36191 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36192
36193         Check for arithmetic overflow when calculating sizes, to prevent
36194         some buffer-overflow issues.  These patches are conservative, in the
36195         sense that when I couldn't determine whether an overflow was possible,
36196         I inserted a run-time check.
36197         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
36198         macros.
36199         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
36200         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
36201         (re_xnrealloc, re_x2nrealloc): New inline functions.
36202         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
36203         parse_bracket_exp):
36204         (build_equiv_class, build_charclass): Check for arithmetic overflow
36205         in size expression calculations.
36206         * lib/regex_internal.c (re_string_realloc_buffers):
36207         (build_wcs_upper_buffer, re_node_set_add_intersect):
36208         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
36209         (re_dfa_add_node, register_state): Likewise.
36210         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
36211         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
36212         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
36213         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
36214
36215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
36218         m4/ulonglong.m4.  Problem reported by Martin Lambers.
36219
36220 2005-09-02  Bruno Haible  <bruno@clisp.org>
36221
36222         Support for lib vs. lib64 distinction on biarch platforms.
36223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
36224         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
36225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
36226
36227 2005-09-02  Bruno Haible  <bruno@clisp.org>
36228
36229         * gnulib-tool (import): In the other first-use case, provide defaults
36230         as well.
36231
36232 2005-09-02  Bruno Haible  <bruno@clisp.org>
36233
36234         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
36235         patches not yet found in the latest gettext release.
36236
36237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36238
36239         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
36240         to avoid a collision with bits/local_lim.h in glibc.
36241         All uses changed.  Problem reported by Dmitry V. Levin in
36242         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
36243
36244         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
36245         bugs in int versus size_t comparisons.
36246         (re_string_context_at): Fix bug where the code assumed that
36247         Idx is signed.
36248
36249         Use bool where appropriate.
36250         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
36251         All callers changed.
36252         (calc_eclosure_iter): Likewise, for ROOT arg.
36253         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
36254         (build_charclass_op): Likewise, for NON_MATCH arg.
36255         * lib/regex_internal.c (re_string_allocate, re_string_construct):
36256         (re_string_construct_common): Likewise, for ICASE arg.
36257         * lib/regexec.c (re_search_2_stub, re_search_stub):
36258         Likewise, for RET_LEN arg.
36259         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
36260         (set_regs): Likewise, for FL_BACKTRACK arg.
36261         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
36262         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
36263         (calc_eclosure_iter, parse_bracket_exp):
36264         Use bool for internal variables that are booleans.
36265         * lib/regexec.c (re_search_internal, check_matching,
36266         proceed_next_node):
36267         (set_regs, build_sifted_states, sift_states_bkref):
36268         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
36269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36270         (find_collation_sequence_value):
36271         Likewise.
36272         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
36273         (re_node_set_compare):
36274         Return bool, not int. All callers changed.
36275         * lib/regexec.c (check_halt_node_context, check_dst_limits):
36276         (build_trtable, check_node_accept): Likewise.
36277         * lib/regex_internal.h: Include stdbool.h.
36278
36279         Fix bugs uncovered when converting to bool.
36280         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
36281         failure instead of charging ahead blindly.
36282         * lib/regex_internal.c (register_state): Likewise.
36283         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
36284         for freeing internal storage.
36285         (group_nodes_into_DFA_states): Use unsigned int, not int, for
36286         bitset pieces used as boolean, to avoid undefined behavior
36287         on hosts that do int overflow checking.
36288
36289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36290
36291         * config/srclist.txt: Add glibc bugs 1285-1287.
36292
36293 2005-09-01  Jim Meyering  <jim@meyering.net>
36294
36295         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
36296         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
36297         Require gl_STAT_MACROS, too.
36298
36299 2005-09-01  Bruno Haible  <bruno@clisp.org>
36300
36301         * gnulib-tool (import): In the first-use case, provide defaults.
36302
36303 2005-09-01  Bruno Haible  <bruno@clisp.org>
36304
36305         * gnulib-tool (func_import): Remove the .tmp files.
36306
36307 2005-09-01  Bruno Haible  <bruno@clisp.org>
36308
36309         * gnulib-tool (func_import): Fix handling of symbolic links.
36310
36311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36312
36313         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
36314         old glibc regex code mishandles strings longer than 2**31 bytes.
36315         This patch fixes this when the regex code is used in gnulib
36316         (i.e., outside glibc).
36317
36318         This patch should not affect the use of the regex code inside
36319         glibc.  No doubt this problem also needs to be handled for glibc
36320         as well, but the result will be an incompatible change to the
36321         glibc ABI, and the old ABI will have to be supported too.  That
36322         can be the the subject for another patch.
36323
36324         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
36325         governing whether the rest of this patch is active.  By default,
36326         the macro is disabled and the patch has no effect.
36327         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
36328         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
36329         (struct re_pattern_buffer, re_search, re_search_2, re_match):
36330         (re_match_2, re_set_registers): Use the new types.
36331         * lib/regex_internal.h (Idx, re_hashval_t): New types.
36332         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
36333         New macros.
36334         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
36335         (re_string_context_at, bin_tree_t, re_dfastate_t):
36336         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
36337         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
36338         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
36339         (re_string_char_size_at, re_string_wchar_at):
36340         (re_string_elem_size_at):
36341         Use the new types and macros to port to 64-bit hosts.
36342         Use unsigned types for internal values, so that the code
36343         mostly works even for arrays larger than SSIZE_MAX.
36344         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
36345         (search_duplicated_node, calc_eclosure_iter, fetch_number):
36346         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36347         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
36348         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
36349         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
36350         (calc_inveclosure, parse_dup_op, build_range_exp):
36351         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
36352         (fetch_number, create_token_tree, mark_opt_subexp):
36353         Likewise.
36354         * lib/regex_internal.c (re_string_construct_common,
36355         create_ci_newstate):
36356         (create_cd_newstate, re_string_allocate, re_string_construct):
36357         (re_string_realloc_buffers, build_wcs_upper_buffer):
36358         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36359         (re_string_reconstruct, re_string_peek_byte_case):
36360         (re_string_fetch_byte_case, re_string_context_at):
36361         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36362         (re_node_set_init_copy, re_node_set_add_intersect):
36363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36365         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36366         (re_acquire_state, re_acquire_state_context, register_state):
36367         Likewise.
36368         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
36369         search_cur_bkref_entry):
36370         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
36371         (re_search_internal, re_search_2_stub, re_search_stub)
36372         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
36373         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
36374         (update_cur_sifted_state, check_dst_limits):
36375         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36376         (check_subexp_limits, sift_states_bkref, merge_state_array):
36377         (check_subexp_matching_top, get_subexp, get_subexp_sub):
36378         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
36379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36380         (expand_bkref_cache, check_node_accept_bytes):
36381         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
36382         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
36383         (acquire_init_state_context, check_halt_node_context):
36384         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
36385         (sift_states_backward, clean_state_log_if_needed):
36386         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
36387         (find_recover_state, transit_state_sb, transit_state_mb):
36388         (transit_state_bkref, build_trtable, match_ctx_clean):
36389         Likewise.
36390         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
36391         to work around an assumption that REG_MISSING is negative.
36392
36393         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
36394         (seek_collating_symbol_entry) [defined _LIBC]:
36395         (lookup_collation_sequence_value) [defined _LIBC]:
36396         (build_range_exp, build_collating_symbol) [defined _LIBC]:
36397         Use prototypes rather than old-style function definitions.
36398         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
36399         (transit_state_sb) [0]:
36400         (find_collation_sequence_value) [defined _LIBC]: Likewise.
36401
36402         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
36403         rm_eo.
36404
36405         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
36406         (optimize_subexps, lower_subexp):
36407         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
36408         since the signed shift might overflow.  Use 1u<<31 instead.
36409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36410         Likewise.
36411         * lib/regexec.c (check_dst_limits_calc_pos_1,
36412         check_subexp_matching_top): Likewise.
36413
36414         * lib/regcomp.c (optimize_subexps, lower_subexp):
36415         Use CHAR_BIT rather than 8, for clarity.
36416         * lib/regexec.c (check_dst_limits_calc_pos_1):
36417         (check_subexp_matching_top): Likewise.
36418         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
36419         have to worry about portability issues when shifting it left.
36420         Remove no-longer-needed test for table_size > 0.
36421         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
36422         in a word, as the resulting behavior is undefined.
36423         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
36424         in one case, a <= should have been an <, and in another case the
36425         whole test was missing.
36426         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
36427         the standard name CHAR_BIT.
36428         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
36429         this is not true on one's complement and signed-magnitude hosts.
36430
36431         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
36432         next_last_offset.
36433         (struct re_dfa_t): Remove unused member states_alloc.
36434         * lib/regcomp.c (init_dfa): Don't initialize unused members.
36435
36436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36437
36438         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
36439         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
36440         and large-file glibc and in 32-bit large-file Solaris.
36441
36442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36443
36444         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
36445         lengths fit in regoff_t; this isn't true if regoff_t is the same
36446         width as size_t.
36447         * lib/regex.c (re_search_internal): 5th arg is LAST_START
36448         (= START + RANGE) instead of RANGE.  This avoids overflow
36449         problems when regoff_t is the same width as size_t.
36450         All callers changed.
36451         (re_search_2_stub): Check for overflow when adding the
36452         sizes of the two strings.
36453         (re_search_stub): Check for overflow when adding START
36454         to RANGE; if it occurs, substitute the extreme value.
36455
36456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36457
36458         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
36459
36460 2005-08-31  Jim Meyering  <jim@meyering.net>
36461
36462         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
36463         a pointer-to-const.
36464         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
36465         (register_state): Likewise.
36466         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
36467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36468         (group_nodes_into_DFAstates): Likewise.
36469
36470 2005-08-31  Jim Meyering  <jim@meyering.net>
36471
36472         * check-module: Add a FIXME comment.
36473
36474 2005-08-31  Eric Blake  <ebb9@byu.net>
36475
36476         * modules/unistd-safer (Files): Add unistd--.h.
36477         * modules/stdio-safer (Files): Add stdio--.h.
36478
36479 2005-08-31  Derek Price  <derek@ximbiot.com>
36480
36481         * lib/getdelim.c (getdelim): Return EOF on EOF.
36482         Reported by Larry Jones <lawrence.jones@ugs.com>.
36483
36484 2005-08-31  Bruno Haible  <bruno@clisp.org>
36485
36486         Avoid unnecessary diffs in the generated lib/Makefile.am.
36487         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
36488         the generated files.
36489         (func_import): Don't set cmd.
36490
36491 2005-08-31  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/strstr.c: Include <stddef.h>, for NULL.
36494         * lib/strcasestr.c: Likewise.
36495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36496
36497 2005-08-31  Bruno Haible  <bruno@clisp.org>
36498
36499         * gnulib-tool: New option --macro-prefix.
36500         (func_import): Use macro_prefix.
36501         (import): Handle option --macro-prefix.
36502
36503 2005-08-31  Bruno Haible  <bruno@clisp.org>
36504
36505         * gnulib-tool (import): Rename most ac_* variables to cached_*.
36506         Also use new variables cached_lgpl, cached_libtool.
36507
36508 2005-08-31  Bruno Haible  <bruno@clisp.org>
36509
36510         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
36511         always instantiating them.
36512
36513 2005-08-31  Bruno Haible  <bruno@clisp.org>
36514
36515         * gnulib-tool (func_import): Read the previous cached settings
36516         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
36517         earlier added by gnulib but are now dropped. Warn when a gnulib file
36518         overwrites a non-gnulib file.
36519
36520 2005-08-31  Bruno Haible  <bruno@clisp.org>
36521
36522         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
36523         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
36524         projects that don't keep autogenerated files in CVS. Put into
36525         actioncmd only the specified modules, not the transitive closure.
36526
36527 2005-08-31  Bruno Haible  <bruno@clisp.org>
36528
36529         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
36530         Create directories that shall be filled.
36531         (import): Don't look for gl_* macros in configure.ac. Recurse across
36532         all directories containing a gnulib-cache.m4 files, if meaningful.
36533
36534 2005-08-31  Bruno Haible  <bruno@clisp.org>
36535
36536         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
36537         (import): Set seen_libtool when we see gl_LIBTOOL.
36538
36539 2005-08-31  Bruno Haible  <bruno@clisp.org>
36540
36541         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
36542         declaration macro definitions from generated gnulib.m4.
36543
36544 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
36545
36546         * lib/iconvme.h: Add prototype for iconv_alloc.
36547
36548 2005-08-29  Simon Josefsson  <jas@extundo.com>
36549
36550         * lib/iconvme.c: Fix errno.
36551
36552 2005-08-29  Bruno Haible  <bruno@clisp.org>
36553
36554         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36555         that it works when the directory contains spaces.
36556
36557 2005-08-29  Bruno Haible  <bruno@clisp.org>
36558
36559         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36560
36561 2005-08-29  Bruno Haible  <bruno@clisp.org>
36562
36563         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36564         Emit more advice.
36565
36566 2005-08-29  Bruno Haible  <bruno@clisp.org>
36567         and Stepan Kasal  <kasal@ucw.cz>
36568
36569         * check-module: If more parameters are given, check each of them
36570         separately; add more exceptions, as noted by Jim Meyering.
36571         (check_module): New procedure.
36572         (%exempt_header): Now contains all exceptions.
36573
36574 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
36575
36576         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36577
36578 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
36579
36580         * lib/iconvme.c: Split iconv_string into iconv_alloc.
36581
36582 2005-08-28  Bruno Haible  <bruno@clisp.org>
36583
36584         * m4/gnulib-tool.m4: New file.
36585
36586 2005-08-27  Jim Meyering  <jim@meyering.net>
36587
36588         * modules/unistd-safer (Files): Add pipe-safer.c.
36589         * modules/fcntl-safer (Files): Add creat-safer.c.
36590
36591 2005-08-27  Jim Meyering  <jim@meyering.net>
36592
36593         * m4/stdlib-safer.m4: New file.  From coreutils.
36594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36596         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36598         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36599
36600 2005-08-27  Jim Meyering  <jim@meyering.net>
36601
36602         * lib/fopen-safer.c: Merge minor changes from coreutils.
36603         * lib/dup-safer.c: Likewise.
36604         * lib/fd-safer.c: Likewise.
36605
36606         Merge from coreutils.
36607         * lib/stdio--.h: New file.
36608         * lib/stdlib--.h: New file.
36609         * lib/mkstemp-safer.c: New file.
36610
36611         GNU tar needs these.
36612         * lib/pipe-safer.c: New file.
36613         * lib/creat-safer.c: New file.
36614         * lib/fcntl--.h (creat): Define to creat_safer.
36615         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36616         * lib/unistd--.h (pipe): Define to pipe_safer.
36617         * lib/unistd-safer.h: Declare pipe_safer.
36618
36619 2005-08-26  Simon Josefsson  <jas@extundo.com>
36620
36621         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36622         Haible <bruno@clisp.org>.
36623
36624 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36625
36626         * lib/regex_internal.h: Remove all references to
36627         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36628         or better.
36629         (bitset_not, bitset_merge, bitset_not_merge):
36630         (bitset_mask, re_string_allocate, re_string_construct):
36631         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36632         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36633         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36634         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36635         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36636         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36637         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36638         (re_acquire_state_context):
36639         Remove unnecessary forward decls.
36640         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36641         Put __attribute at function definition,
36642         now that the function decl has been removed.
36643         * lib/regex_internal.c (re_string_peek_byte_case):
36644         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36645         Likewise.
36646
36647 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
36648
36649         * m4/regex.m4: Add AC_PREREQ(2.50).
36650         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36651
36652 2005-08-25  Simon Josefsson  <jas@extundo.com>
36653
36654         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36655         __fsetlocking.
36656
36657 2005-08-25  Simon Josefsson  <jas@extundo.com>
36658
36659         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36660         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36661         GLIBC specific code.
36662
36663 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36664
36665         Make regex safe for g++.  This fixes one real bug (an "err"
36666         that should have been "*err").  g++ problem reported by
36667         Sam Steingold.
36668         * lib/regex_internal.h (re_calloc): New macro, consistent with
36669         re_malloc etc.  All callers of calloc changed to use re_calloc.
36670         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36671         not int.  All callers changed.
36672         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36673         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36674         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36675         (find_recover_state): Change "err" to "*err"; this fixes what
36676         appears to be a real bug.
36677         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36678         versus int.
36679
36680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36681
36682         * modules/regex (Depends-on): Add malloc, since the code
36683         assumes that !malloc(0) means failure.
36684
36685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36686
36687         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36688
36689         alloca modernization/simplification for regex.
36690         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36691         needs to be at the start of the file, and can be moved into
36692         regex_internal.h and simplified.
36693         * lib/regex_internal.h: Include <alloca.h>.
36694         (__libc_use_alloca) [!defined _LIBC]: New macro.
36695         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36696         now works outside glibc.
36697
36698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36699
36700         * config/srclist.txt: Add glibc bugs 1241, 1245.
36701
36702 2005-08-25  Jim Meyering  <jim@meyering.net>
36703
36704         * lib/open-safer.c: Include <config.h>.
36705         Otherwise, we'd lose LARGEFILE support in any file using
36706         e.g. "fcntl--.h"
36707
36708 2005-08-25  Bruno Haible  <bruno@clisp.org>
36709
36710         * m4/minmax.m4: Require autoconf 2.52.
36711         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36712         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36713         alternatives of translit over the alphabet.
36714         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36715
36716 2005-08-24  Simon Josefsson  <jas@extundo.com>
36717
36718         * tests/test-getpass.c: New file.
36719
36720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36721
36722         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36723         for GNU regex features.
36724
36725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36726
36727         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36728         * lib/regex.h (regerror): Likewise.
36729
36730         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36731         requires this.  (The code never needed it.)
36732
36733         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36734         All uses of recently-renamed identifiers changed to use the new,
36735         POSIX-compliant names.  The code will build and run just fine
36736         without these changes, but it's better to eat our own dog food
36737         and use the standard-conforming names.
36738
36739         * lib/regex.h: Fix a multitude of POSIX name space violations.
36740         These changes have an effect only for programs that define
36741         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36742         do not change anything for programs compiled in the normal way.
36743         Also, there is no effect on the ABI.
36744
36745         (_REGEX_SOURCE): New macro.
36746         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36747         defined and _GNU_SOURCE is not; this fixes a name space violation.
36748
36749         Rename the following macros to obey POSIX requirements.
36750         The old names are still visible as macros if _REGEX_SOURCE is defined.
36751         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36752         RE_BACKSLASH_ESCAPE_IN_LISTS.
36753         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36754         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36755         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36756         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36757         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36758         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36759         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36760         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36761         (REG_INTERVALS): renamed from RE_INTERVALS.
36762         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36763         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36764         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36765         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36766         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36767         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36768         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36769         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36770         RE_UNMATCHED_RIGHT_PAREN_ORD.
36771         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36772         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36773         (REG_DEBUG): renamed from RE_DEBUG.
36774         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36775         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36776         unusual, since we can't clash with the POSIX REG_ICASE.
36777         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36778         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36779         (REG_NO_SUB): renamed from RE_NO_SUB.
36780         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36781         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36782         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36783         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36784         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36785         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36786         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36787         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36788         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36789         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36790         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36791         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36792         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36793         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36794         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36795         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36796         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36797         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36798         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36799         (REG_FIXED): Renamed from REGS_FIXED.
36800         (REG_NREGS): Renamed from RE_NREGS.
36801
36802         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36803         of other REG_* macros, since POSIX says the user is allowed to
36804         #undef these macros selectively.
36805
36806         (reg_errcode_t): Update comment stating what other tables need
36807         to be consistent.
36808
36809         Rename the following enum values to obey POSIX requirements.
36810         The old names are still visible as macros.
36811         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36812         is not defined, since GNU is supposed to be a superset of POSIX as
36813         much as possible, and since we want reg_errcode_t to be a signed
36814         type for implementation consistency.
36815         (_REG_NOERROR): Renamed from REG_NOERROR.
36816         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36817         (_REG_BADPAT): Renamed from REG_BADPAT.
36818         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36819         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36820         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36821         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36822         (_REG_EBRACK): Renamed from REG_EBRACK.
36823         (_REG_EPAREN): Renamed from REG_EPAREN.
36824         (_REG_EBRACE): Renamed from REG_EBRACE.
36825         (_REG_BADBR): Renamed from REG_BADBR.
36826         (_REG_ERANGE): Renamed from REG_ERANGE.
36827         (_REG_ESPACE): Renamed from REG_ESPACE.
36828         (_REG_BADRPT): Renamed from REG_BADRPT.
36829         (_REG_EEND): Renamed from REG_EEND.
36830         (_REG_ESIZE): Renamed from REG_ESIZE.
36831         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36832         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36833         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36834         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36835         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36836
36837         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36838         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36839         changed.  But support the old name if the new one is not defined
36840         and if _REGEX_SOURCE.
36841
36842         Change the following member names in struct re_pattern_buffer.
36843         The old names are still supported if !_REGEX_SOURCE.
36844         The new names are always supported, regardless of _REGEX_SOURCE.
36845         (re_buffer): Renamed from buffer.
36846         (re_allocated): Renamed from allocated.
36847         (re_used): Renamed from used.
36848         (re_syntax): Renamed from syntax.
36849         (re_fastmap): Renamed from fastmap.
36850         (re_translate): Renamed from translate.
36851         (re_can_be_null): Renamed from can_be_null.
36852         (re_regs_allocated): Renamed from regs_allocated.
36853         (re_fastmap_accurate): Renamed from fastmap_accurate.
36854         (re_no_sub): Renamed from no_sub.
36855         (re_not_bol): Renamed from not_bol.
36856         (re_not_eol): Renamed from not_eol.
36857         (re_newline_anchor): Renamed from newline_anchor.
36858
36859         Change the following member names in struct re_registers.
36860         The old names are still supported if !_REGEX_SOURCE.
36861         The new names are always supported, regardless of _REGEX_SOURCE.
36862         (rm_num_regs): Renamed from num_regs.
36863         (rm_start): Renamed from start.
36864         (rm_end): Renamed from end.
36865
36866         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36867         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36868         Prepend __ to parameter names.
36869
36870         Undo yesterday's changes.
36871
36872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36873
36874         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36875         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36876         lib/regex.c.
36877
36878 2005-08-24  Jim Meyering  <jim@meyering.net>
36879
36880         Sync from coreutils.
36881         * m4/fcntl-safer.m4: New file.
36882
36883         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36884         and object files for this module.
36885
36886 2005-08-24  Jim Meyering  <jim@meyering.net>
36887
36888         Sync from coreutils.
36889         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36890
36891 2005-08-24  Jim Meyering  <jim@meyering.net>
36892
36893         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36894         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36895
36896 2005-08-24  Jim Meyering  <jim@meyering.net>
36897
36898         * modules/fcntl-safer: New module.
36899         * modules/fts (Depends-on): Add fcntl-safer.
36900         * MODULES.html.sh (File descriptor based Input/Output):
36901         Add fcntl-safer.
36902
36903 2005-08-24  Bruno Haible  <bruno@clisp.org>
36904
36905         Support for unit test modules.
36906         * modules/README: Mention tests modules.
36907         * modules/TEMPLATE-TESTS: New file.
36908         * gnulib-tool: New options --extract-tests-module, --with-tests and
36909         --tests-base (unused for the moment).
36910         (testsbase, inctests): New variables.
36911         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36912         (func_verify_module): Exclude TEMPLATE-TESTS.
36913         (func_verify_nontests_module, func_verify_tests_module): New functions.
36914         (func_get_dependencies): Add implicit dependency for tests modules.
36915         (func_get_tests_module): New function.
36916         (func_modules_transitive_closure): When --with-tests was specified,
36917         include the unit tests as well, unless explicitly avoided.
36918         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36919         (func_emit_tests_Makefile_am): New function.
36920         (func_create_testdir): When --with-tests was specified, emit a
36921         tests/ directory.
36922         * MODULES.html.sh (Future developments): Update.
36923
36924 2005-08-24  Bruno Haible  <bruno@clisp.org>
36925
36926         * modules/tls-tests: New file.
36927         * tests/test-tls.c: New file, from GNU gettext.
36928
36929 2005-08-24  Bruno Haible  <bruno@clisp.org>
36930
36931         * modules/lock-tests: New file.
36932         * tests/test-lock.c: New file, from GNU gettext.
36933
36934 2005-08-24  Bruno Haible  <bruno@clisp.org>
36935
36936         * lib/lock.h: Add multiple inclusion guard.
36937         * lib/tls.h: Add multiple inclusion guard.
36938
36939 2005-08-24  Bruno Haible  <bruno@clisp.org>
36940
36941         * gnulib-tool: Add support for the --aux-dir option to
36942         --create-testdir, --create-megatestdir, --test, --megatest.
36943         (func_create_testdir, func_create_megatestdir): Optionally emit a
36944         AC_CONFIG_AUX_DIR directive.
36945         (create-testdir, create-megatestdir, test, megatest): Provide a
36946         default value for $auxdir.
36947
36948 2005-08-24  Bruno Haible  <bruno@clisp.org>
36949
36950         * gnulib-tool (import): Use compound statement instead of subshell
36951         where possible.
36952
36953 2005-08-24  Bruno Haible  <bruno@clisp.org>
36954
36955         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36956
36957 2005-08-24  Bruno Haible  <bruno@clisp.org>
36958
36959         * gnulib-tool (func_version): Update.
36960
36961 2005-08-24  Bruno Haible  <bruno@clisp.org>
36962
36963         * gnulib-tool (func_import, func_create_testdir,
36964         func_create_megatestdir): Quote all autoconf macro arguments.
36965
36966 2005-08-24  Bruno Haible  <bruno@clisp.org>
36967
36968         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36969         option --force, because --force causes the aclocal.m4 of each
36970         subdirectory to be newer than the corresponding config.h.in.
36971
36972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36973
36974         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36975         All contents moved to gl_REGEX.
36976         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36977         assume that it does.
36978
36979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36980
36981         * lib/regex.h (REG_NOSYS)
36982         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36983         Define, since POSIX requires it as of 2001.
36984         (_REG_ENOSYS)
36985         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36986         New private symbol, used to keep the enum signed in all cases.
36987         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36988         Youngman in
36989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36990
36991         * lib/regex_internal.c (re_string_skip_chars, register_state):
36992         (calc_state_hash):
36993         Remove forward decls; no longer needed now that we use prototypes.
36994         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36995         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36996         (clean_state_log_if_needed): Likewise.
36997
36998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36999
37000         * config/srclist.txt: Add glibc bugs 1231-1233.
37001
37002 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37003
37004         Fix problems reported by Sam Steingold in
37005         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
37006         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
37007         assumed that reg_errcode_t is a signed type, which is not
37008         necessarily true if _XOPEN_SOURCE is not defined.
37009         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
37010         since some compilers warn about it otherwise.
37011
37012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37013
37014         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
37015         (init_word_char, create_initial_state, duplicate_node_closure):
37016         (fetch_token, peek_token_bracket, build_range_exp):
37017         (build_collating_symbol): Remove forward decls; no longer needed
37018         now that we use prototypes.
37019
37020         * lib/regcomp.c:
37021         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
37022         (re_compile_fastmap_iter, regcomp, regerror, regfree):
37023         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
37024         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
37025         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
37026         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
37027         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
37028         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
37029         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
37030         (build_range_exp, build_collating_symbol, parse_bracket_exp):
37031         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
37032         (build_charclass, build_charclass_op, fetch_number, create_tree):
37033         (create_token_tree, mark_opt_subexp, duplicate_tree):
37034         Use prototypes rather than old-style definitions.
37035
37036         * lib/regex_internal.c:
37037         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
37038         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
37039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
37040         (re_string_reconstruct, re_string_peek_byte_case):
37041         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
37042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
37043         (re_node_set_init_copy, re_node_set_add_intersect):
37044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
37045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
37046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
37047         (re_acquire_state, re_acquire_state_context, register_state):
37048         (create_ci_newstate, create_cd_newstate, free_state):
37049         Likewise.
37050         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
37051         re_search_2):
37052         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
37053         (re_search_internal, prune_impossible_nodes):
37054         (acquire_init_state_context, check_matching, static):
37055         (check_halt_node_context, check_halt_state_context, proceed_next_node):
37056         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
37057         (update_regs, sift_states_backward, build_sifted_states):
37058         (clean_state_log_if_needed, merge_state_array):
37059         (update_cur_sifted_state, add_epsilon_src_nodes):
37060         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
37061         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
37062         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
37063         (find_recover_state, check_subexp_matching_top, transit_state_mb):
37064         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
37065         (check_arrival, check_arrival_add_next_nodes):
37066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
37067         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
37068         (check_node_accept_bytes, check_node_accept, extend_buffers):
37069         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
37070         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
37071         (sift_ctx_init):
37072         Likewise.
37073
37074         * lib/regex_internal.h:
37075         (re_string_allocate, re_string_construct, re_string_reconstruct):
37076         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
37077         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
37078         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
37079         (re_string_context_at, re_string_peek_byte_case):
37080         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
37081         is defined, since we now use prototypes always.
37082
37083         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
37084         C89 or better.  All uses removed.
37085
37086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         * config/srclist.txt: Add glibc bugs 1220-1227.
37089
37090 2005-08-20  Jim Meyering  <jim@meyering.net>
37091
37092         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
37093         of unused local, dfa.
37094
37095 2005-08-20  Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
37098
37099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37100
37101         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
37102         (re_node_set_insert_last, re_dfa_add_node):
37103         Rename local variables to avoid GCC shadowing warnings.
37104
37105 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37106
37107         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
37108         [defined lint]: Suppress bogus uninitialized-variable warnings.
37109
37110         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
37111         and let the caller return REG_ESPACE if out of space.  This
37112         removes an uninitialied-variable warning with GCC 4.0.1, and also
37113         avoids taking the address of a local variable.  All callers
37114         changed.
37115
37116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37117
37118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
37119         $LIBCSRC/posix/regexec.c.
37120         Add glibc bug 1217 for regcomp.c.
37121
37122 2005-08-19  Jim Meyering  <jim@meyering.net>
37123
37124         * lib/regexec.c (proceed_next_node): Redo local variables to
37125         avoid GCC shadowing warnings.
37126
37127 2005-08-18  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/strstr.c (strstr): Fix return value in multibyte case.
37130         * lib/strcasestr.c (strcasestr): Likewise.
37131
37132 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37133
37134         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
37135
37136 2005-08-17  Jim Meyering  <jim@meyering.net>
37137
37138         Make the %s format (seconds since the epoch) work for a negative
37139         number and when used with a zero-padded field width, e.g. %015s.
37140
37141         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
37142         label so that it precedes the code to set `digits'.  Otherwise,
37143         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
37144         print `00-22'.  Now, it prints `-0022', as it should.
37145
37146 2005-08-17  Bruno Haible  <bruno@clisp.org>
37147
37148         * modules/strstr (Files): Add m4/mbrtowc.m4.
37149         (Depends-on): Add mbuiter.
37150
37151 2005-08-17  Bruno Haible  <bruno@clisp.org>
37152
37153         * modules/strcasestr: New file.
37154         * MODULES.html.sh (String handling, based on ANSI C 89): Add
37155         strcasestr.
37156
37157 2005-08-17  Bruno Haible  <bruno@clisp.org>
37158
37159         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
37160
37161 2005-08-17  Bruno Haible  <bruno@clisp.org>
37162
37163         * modules/mbuiter: New file.
37164         * MODULES.html.sh (Extended multibyte and wide character utilities):
37165         Add mbuiter.
37166
37167 2005-08-17  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
37170         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
37171
37172 2005-08-17  Bruno Haible  <bruno@clisp.org>
37173
37174         * m4/strcasestr.m4: New file.
37175
37176 2005-08-17  Bruno Haible  <bruno@clisp.org>
37177
37178         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
37179         * lib/strstr.c: Completely rewritten, with multibyte locale support.
37180
37181 2005-08-17  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/strcasestr.h: New file.
37184         * lib/strcasestr.c: New file.
37185
37186 2005-08-17  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/strcasecmp.c: Use mbuiter.h.
37189
37190 2005-08-17  Bruno Haible  <bruno@clisp.org>
37191
37192         * lib/mbuiter.h: New file.
37193
37194 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
37195
37196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
37197         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
37198         and gl_GETOPT are both invoked via different paths (as happens
37199         with GNU tar CVS because it uses both argp and getopt), the former
37200         wins.
37201
37202 2005-08-16  Bruno Haible  <bruno@clisp.org>
37203
37204         * modules/tls: New file.
37205         * MODULES.html.sh (Multithreading): Add tls.
37206
37207 2005-08-16  Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/strnlen1: New file.
37210         * MODULES.html.sh (String handling): Add strnlen1.
37211
37212 2005-08-16  Bruno Haible  <bruno@clisp.org>
37213
37214         * modules/strcase (Files): Add m4/mbrtowc.m4.
37215         (Depends-on): Add strnlen1, mbchar.
37216
37217 2005-08-16  Bruno Haible  <bruno@clisp.org>
37218
37219         * modules/mbiter: New file.
37220         * MODULES.html.sh (Extended multibyte and wide character utilities):
37221         Add mbiter.
37222
37223 2005-08-16  Bruno Haible  <bruno@clisp.org>
37224
37225         * modules/mbfile: New file.
37226         * MODULES.html.sh (Extended multibyte and wide character utilities):
37227         Add mbfile.
37228
37229 2005-08-16  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/mbchar: New file.
37232         * MODULES.html.sh (Extended multibyte and wide character utilities):
37233         New section.
37234
37235 2005-08-16  Bruno Haible  <bruno@clisp.org>
37236
37237         * m4/tls.m4: New file, from GNU gettext.
37238
37239 2005-08-16  Bruno Haible  <bruno@clisp.org>
37240
37241         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
37242         always.
37243         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
37244
37245 2005-08-16  Bruno Haible  <bruno@clisp.org>
37246
37247         * m4/mbiter.m4: New file.
37248
37249 2005-08-16  Bruno Haible  <bruno@clisp.org>
37250
37251         * m4/mbfile.m4: New file.
37252
37253 2005-08-16  Bruno Haible  <bruno@clisp.org>
37254
37255         * m4/mbchar.m4: New file.
37256
37257 2005-08-16  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/tls.h: New file, from GNU gettext.
37260         * lib/tls.c: New file, from GNU gettext.
37261
37262 2005-08-16  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/strnlen1.h: New file.
37265         * lib/strnlen1.c: New file.
37266
37267 2005-08-16  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
37270         (mbi_init): Update.
37271         (mbi_avail, mbi_advance): Let the iteration end before the terminating
37272         NUL byte, not after it.
37273
37274 2005-08-16  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/strcase.h (strcasecmp): Add note in comments.
37277         * lib/strncasecmp.c: Use code from strcasecmp.c.
37278         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
37279         (strcasecmp): Work correctly in multibyte locales.
37280
37281 2005-08-16  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/mbiter.h: New file.
37284
37285 2005-08-16  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/mbfile.h: New file.
37288
37289 2005-08-16  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/mbchar.h: New file.
37292         * lib/mbchar.c: New file.
37293
37294 2005-08-16  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
37297         the valid ones. Makes the comparison operations transitive:
37298         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
37299         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
37300
37301 2005-08-15  Simon Josefsson  <jas@extundo.com>
37302
37303         * modules/ssize_t (License): Change to 'unlimited'.
37304
37305         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
37306
37307 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37308
37309         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
37310         Add comments for each pending glibc patch.
37311
37312 2005-08-15  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/regex.h (__restrict_arr): Don't define to __restrict if
37315         __cplusplus is defined.
37316
37317 2005-08-14  Jim Meyering  <jim@meyering.net>
37318
37319         Sync from coreutils.
37320
37321         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
37322         Use the hash-table-based cycle-detection code not just when
37323         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
37324         Reported by James Youngman in
37325         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
37326         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
37327         FTS_TIGHT_CYCLE_CHECK.
37328         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
37329         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
37330         once again.
37331         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
37332         * lib/fts.c (fd_safer): Remove decl.
37333         Include fcntl--.h rather than unistd-safer.h
37334         (fts_safe_changedir): Don't call fd_safer; no longer needed
37335         now that we include fcntl--.h.
37336
37337 2005-08-12  Simon Josefsson  <jas@extundo.com>
37338
37339         * modules/getndelim2: Use ssize_t module.
37340         * modules/getnline: Likewise.
37341         * modules/safe-read: Likewise.
37342         * modules/xreadlink: Likewise.
37343
37344         * modules/ssize_t: New file.
37345
37346 2005-08-12  Simon Josefsson  <jas@extundo.com>
37347
37348         * m4/readline.m4: Look for termcap, curses or ncurses if required.
37349
37350 2005-08-12  Simon Josefsson  <jas@extundo.com>
37351
37352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37353         ssize_t.
37354
37355 2005-08-12  Simon Josefsson  <jas@extundo.com>
37356
37357         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
37358         readline, getdelim and check_version.
37359         (Support for systems lacking ISO C 99: Sizes of integer types):
37360         Add size_max.
37361
37362 2005-08-12  Bruno Haible  <bruno@clisp.org>
37363
37364         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
37365
37366 2005-08-11  Simon Josefsson  <jas@extundo.com>
37367
37368         * modules/readline: New file.
37369
37370         * modules/strnlen (Files): Add strnlen.h.
37371
37372 2005-08-11  Simon Josefsson  <jas@extundo.com>
37373
37374         * m4/readline.m4: New file.
37375
37376 2005-08-11  Simon Josefsson  <jas@extundo.com>
37377
37378         * lib/readline.h, readline.c: New file.
37379
37380 2005-08-11  Simon Josefsson  <jas@extundo.com>
37381
37382         * doc/gnulib.texi (Initial import, Finishing touches): Mention
37383         gl_AVOID.
37384
37385 2005-08-11  Bruno Haible  <bruno@clisp.org>
37386
37387         * lib/strnlen.h (strnlen): Change parameter name to match comment.
37388
37389 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
37390
37391         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
37392
37393 2005-08-10  Simon Josefsson  <jas@extundo.com>
37394
37395         * tests/test-iconvme.c: New file.
37396
37397 2005-08-10  Simon Josefsson  <jas@extundo.com>
37398
37399         * m4/strnlen.m4: New file.
37400
37401         * m4/strndup.m4: Don't check for strnlen declaration, done in
37402         strnlen.m4.
37403
37404 2005-08-10  Simon Josefsson  <jas@extundo.com>
37405
37406         * lib/strndup.c: Use strnlen.h.
37407
37408         * lib/strnlen.h: New file.
37409
37410 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37411
37412         * README: Typos.
37413
37414 2005-08-02  Simon Josefsson  <jas@extundo.com>
37415
37416         * modules/readline: New file.
37417
37418 2005-08-02  Simon Josefsson  <jas@extundo.com>
37419
37420         * modules/getdelim: New file.
37421
37422         * modules/getline: Rewrite, don't use getndelim2.
37423
37424 2005-08-02  Simon Josefsson  <jas@extundo.com>
37425
37426         * m4/getline.m4: Separate out getdelim stuff into separate module.
37427
37428         * m4/getdelim.m4: New file.
37429
37430 2005-08-02  Simon Josefsson  <jas@extundo.com>
37431
37432         * lib/getline.h, getline.c: Rewrite.
37433
37434         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
37435
37436 2005-07-31  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/lock.h (gl_lock_initializer): New macro.
37439         (gl_lock_define_initialized): Use it.
37440         (gl_rwlock_initializer): New macro.
37441         (gl_rwlock_define_initialized): Use it.
37442         (gl_recursive_lock_initializer): New macro.
37443         (gl_recursive_lock_define_initialized): Use it.
37444
37445 2005-07-30  Karl Berry  <karl@gnu.org>
37446
37447         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
37448         Report from Ben Pfaff, regarding getopt.
37449
37450 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
37451
37452         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
37453         normal way.
37454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
37455         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
37456         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
37457         (gl_GETOPT): Use the new macros.  Most of the implementation
37458         is moved to the new macros.  This is for programs like Emacs
37459         that don't want all the functionality of gl_GETOPT.
37460
37461 2005-07-26  Bruno Haible  <bruno@clisp.org>
37462
37463         * m4/lock.m4: Update from GNU gettext.
37464
37465 2005-07-26  Bruno Haible  <bruno@clisp.org>
37466
37467         * lib/lock.h: Update from GNU gettext.
37468         * lib/lock.c: Update from GNU gettext.
37469
37470 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
37471
37472         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
37473         obsolescent AC_TRY_RUN.  Include the default includes files, for
37474         'exit'.
37475
37476 2005-07-24  Bruno Haible  <bruno@clisp.org>
37477
37478         * modules/visibility: New file.
37479         * MODULES.html.sh (Misc): Add visibility.
37480
37481 2005-07-24  Bruno Haible  <bruno@clisp.org>
37482
37483         * m4/visibility.m4: New file.
37484
37485 2005-07-24  Bruno Haible  <bruno@clisp.org>
37486
37487         * doc/visibility.texi: New file.
37488
37489 2005-07-22  Bruno Haible  <bruno@clisp.org>
37490
37491         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
37492         $(ALLOCA_H), redundant through BUILT_SOURCES.
37493         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
37494         redundant through BUILT_SOURCES.
37495         * modules/byteswap (Makefile.am): Remove explicit dependency on
37496         $(BYTESWAP_H), redundant through BUILT_SOURCES.
37497         * modules/fnmatch (Makefile.am): Remove explicit dependency on
37498         $(FNMATCH_H), redundant through BUILT_SOURCES.
37499         * modules/getopt (Makefile.am): Remove explicit dependency on
37500         $(GETOPT_H), redundant through BUILT_SOURCES.
37501         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
37502         redundant through BUILT_SOURCES.
37503         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
37504         redundant through BUILT_SOURCES.
37505         * modules/stdbool (Makefile.am): Remove explicit dependency on
37506         $(STDBOOL_H), redundant through BUILT_SOURCES.
37507         * modules/stdint (Makefile.am): Remove explicit dependency on
37508         $(STDINT_H), redundant through BUILT_SOURCES.
37509         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
37510         Remove explicit dependency on $(SYSEXITS_H).
37511         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
37512
37513 2005-07-18  Simon Josefsson  <jas@extundo.com>
37514
37515         * lib/check-version.c (check_version): Accept identical versions too.
37516
37517 2005-07-18  Bruno Haible  <bruno@clisp.org>
37518
37519         * modules/lock: New file.
37520         * MODULES.html.sh (Multithreading): New section.
37521
37522 2005-07-18  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/lock.m4: New file, from GNU gettext.
37525
37526 2005-07-18  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/lock.h: New file, from GNU gettext.
37529         * lib/lock.c: New file, from GNU gettext.
37530
37531 2005-07-18  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/lock.h (gl_once_t): New type.
37534         (gl_once_define, gl_once): New macros.
37535         * lib/lock.c (fresh_once): New variable.
37536         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
37537         functions.
37538
37539 2005-07-16  Simon Josefsson  <jas@extundo.com>
37540
37541         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
37542         workaround, suggested by Bruno.
37543
37544 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37545
37546         * modules/xalloc (Depends-on): Add xalloc-die.
37547         * modules/xvasprintf (Depends-on): Add xalloc-die.
37548
37549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37550
37551         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37552         with a minor change.
37553
37554 2005-07-15  Bruno Haible  <bruno@clisp.org>
37555
37556         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37557         When using lib/poll.c, define poll as rpl_poll.
37558
37559 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
37560
37561         * modules/argp (Depends-on): Remove unlocked-io.
37562
37563 2005-07-14  Derek Price  <derek@ximbiot.com>
37564
37565         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
37566         for glob symlink bug.
37567
37568 2005-07-14  Bruno Haible  <bruno@clisp.org>
37569
37570         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37571         Instead, test for *_unlocked function declarations directly.
37572
37573 2005-07-11  Simon Josefsson  <jas@extundo.com>
37574
37575         * modules/size_max: New file.
37576
37577         * modules/xsize: Depend on size_max module for size_max.m4.
37578
37579 2005-07-11  Simon Josefsson  <jas@extundo.com>
37580
37581         * lib/size_max.h: New file.
37582
37583 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37584
37585         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37586         copyright symbol and the year.
37587         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37588         (version_etc_va): Use parameterized copyright notice.
37589         Reword to conform to the current GNU coding standards.
37590
37591 2005-07-11  Karl Berry  <karl@gnu.org>
37592
37593         * doc/gnulib.texi (Quoting): new node.
37594         (Initial import): more info, from Patrice.
37595
37596 2005-07-11  Bruno Haible  <bruno@clisp.org>
37597
37598         * gnulib-tool (func_usage): Document option --avoid.
37599         (Command line options): Handle --avoid.
37600         (func_acceptable): New function.
37601         (func_modules_transitive_closure): Use it.
37602
37603 2005-07-11  Bruno Haible  <bruno@clisp.org>
37604
37605         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37606         Reported by Jim Meyering.
37607
37608 2005-07-10  Bruno Haible  <bruno@clisp.org>
37609
37610         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37611         Needed when size_t is smaller than 'unsigned int'.
37612         Reported by Paul Eggert.
37613
37614 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37615
37616         * modules/argp (Depends-on): Add unlocked-io
37617
37618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37619
37620         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37621         block of defines.
37622
37623 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37624
37625         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37626         fix now.
37627
37628 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37629         and Paul Eggert  <eggert@cs.ucla.edu>
37630
37631         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37632         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37633
37634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37635
37636         * modules/regex (Files): Add lib/regex_internal.c,
37637         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37638         (Depends-on): Add extensions.
37639         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37640
37641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37642
37643         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37644         pathconf.
37645         * m4/same.m4 (gl_SAME): Likewise.
37646         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37647
37648         * m4/regex.m4: Adjust to new libc regex implementation.
37649         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37650         all the .c and .h parts of (the new) regex.
37651         Quote the m4 stuff better.
37652         Check for RE_ICASE bug of old gnulib.
37653         Check for REG_STARTEND of recent libc.
37654         Rename local variables from jm_* to gl_*.
37655         Quote operand of "test -f".
37656         Say "recent enough" version of libc, not "version 2".
37657         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37658         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37659         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37660         Remove check for btowc, isascii.
37661         Require AM_LANGINFO_CODESET.
37662
37663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37664
37665         * lib/regex.c, regex.h: Sync from libc.
37666         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37667         * lib/regexec.c:
37668         New files, synced from libc, except that regex_internal.h
37669         currently has a small porting fix.
37670
37671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37672
37673         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37674         regex_internal.c, regexec.c.
37675         Add regex_internal.h too, but as a comment, since the libc version
37676         is currently broken in gnulib mode.
37677
37678 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37679
37680         Support programs like Emacs that use gnulib but not gettext.
37681         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37682         * modules/gettext-h: New file.
37683         * modules/gettext (Files): Remove lib/gettext.h.
37684         (Depends-on): Add gettext-h.
37685         (Makefile.am): Remove lib_SOURCES.
37686         * modules/argmatch, modules/c-stack, modules/closeout:
37687         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37688         * modules/execute, modules/file-type, modules/getaddrinfo:
37689         * modules/getopt, modules/human, modules/javacomp:
37690         * modules/javaexec, modules/mkdir-p, modules/obstack:
37691         * modules/openat, modules/pagealign_alloc, modules/pipe:
37692         * modules/quotearg, modules/regex, modules/rpmatch:
37693         * modules/unicodeio, modules/userspec, modules/version-etc:
37694         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37695         * modules/xsetenv:
37696         Depend on gettext-h, not gettext.
37697
37698 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37699
37700         * gnulib-tool (func_import): Add support for 'public domain' license.
37701         * modules/alloca, modules/atexit, modules/memmove:
37702         Now public domain, not GPL.
37703         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37704         * modules/realloc, modules/strerror, modules/strtod:
37705         Now LGPL, not GPL.
37706
37707 2005-07-05  Bruno Haible  <bruno@clisp.org>
37708
37709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37710         autoconf CVS. Needed for mingw.
37711
37712 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37713
37714         Remove the dependency of the strftime module on the tzset module.
37715         * modules/strftime (Depends-on): Remove dependency on tzset.
37716
37717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37718
37719         Remove the dependency of the strftime module on the tzset module.
37720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37721         gl_FUNC_TZSET_CLOBBER.
37722
37723 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37724
37725         Remove the dependency of the strftime module on the tzset module.
37726         * lib/strftime.c (my_strftime)
37727         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37728         Copy the input structure, to work around some of the bug with
37729         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37730         Solaris releases, you should also use the tzset module, but we won't
37731         require it as a dependency any more since we don't want LGPLed code
37732         to depend on GPLed code.
37733
37734 2005-07-02  Jim Meyering  <jim@meyering.net>
37735
37736         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37737         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37738         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37739         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37740
37741 2005-07-02  Jim Meyering  <jim@meyering.net>
37742
37743         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37744
37745 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37746
37747         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37748         declares only 'struct timespec;' (!).
37749
37750 2005-07-01  Jim Meyering  <jim@meyering.net>
37751
37752         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37753         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37754         * lib/save-cwd.c, tempname.c:
37755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37756         and don't include <sys/file.h>).
37757
37758 2005-06-29  Jim Meyering  <jim@meyering.net>
37759
37760         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37761         type name.  Use the variable name instead.
37762         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37763         Likewise.
37764
37765 2005-06-28  Simon Josefsson  <jas@extundo.com>
37766
37767         * modules/check-version (Files): Add check-version.m4.
37768
37769 2005-06-28  Simon Josefsson  <jas@extundo.com>
37770
37771         * m4/check-version.m4: New file, suggested by Jim Meyering
37772         <jim@meyering.net>.
37773
37774 2005-06-28  Simon Josefsson  <jas@extundo.com>
37775
37776         * lib/check-version.h, lib/check-version.c: New files.
37777
37778 2005-06-28  Simon Josefsson  <jas@extundo.com>
37779
37780         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37781         collision with global variable.  Better indentation.  Don't
37782         increment buffer pointer beyond buffer end.  Based on comments
37783         from Paul Eggert <eggert@cs.ucla.edu>.
37784
37785         * lib/base64.h: Indent.
37786
37787 2005-06-28  Simon Josefsson  <jas@extundo.com>
37788
37789         * doc/gnulib.texi (Library version handling): New section.
37790
37791 2005-06-28  Jim Meyering  <jim@meyering.net>
37792
37793         * check-module (find_included_lib_files): Hard-code another
37794         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37795         but modules/fts-lgpl (correctly) does not list those files.
37796
37797         * modules/canonicalize (Files): Add lib/pathmax.h.
37798
37799 2005-06-25  Simon Josefsson  <jas@extundo.com>
37800
37801         * modules/check-version: New file.
37802
37803 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37804
37805         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37806         initializer of struct addrinfo, as an indication that we don't
37807         care how many members the structure has.
37808
37809 2005-06-24  Derek Price  <derek@ximbiot.com>
37810         and Bruno Haible  <bruno@clisp.org>
37811
37812         Remove stat module & update lstat.
37813         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37815         * m4/stat.m4: Remove this file.
37816
37817 2005-06-24  Derek Price  <derek@ximbiot.com>
37818         and Bruno Haible  <bruno@clisp.org>
37819
37820         Remove stat module & update lstat.
37821         * lib/stat.c: Remove this file...
37822         (slash_aware_lstat): ...moving this content and its support...
37823         * lib/lstat.c (rpl_lstat): ...into here.
37824         * lib/lstat.h: New file.
37825
37826 2005-06-24  Derek Price  <derek@ximbiot.com>
37827         and Bruno Haible  <bruno@clisp.org>
37828
37829         Remove stat module & update lstat.
37830         * config/srclist.txt (libc sources): Remove stat.
37831
37832 2005-06-24  Derek Price  <derek@ximbiot.com>
37833         and Bruno Haible  <bruno@clisp.org>
37834
37835         Remove stat module & update lstat.
37836         * MODULES.html.sh (stat): Remove.
37837         * MODULES.html: Regenerated.
37838         * modules/lstat (Description): Correct function name.
37839         (Files): Add "lstat.h".
37840         (Depends-on): Remove stat, add xalloc, stat-macros.
37841         * modules/stat: Remove this file.
37842         (Include): Add "lstat.h", remove <sys/stat.h>.
37843
37844 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37845
37846         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37847         (ranged_convert): Don't save conversion in a temporary struct.
37848         This causes a warning with GCC 4.0.0, and anyway in the typical
37849         case it's not worth the extra 100 bytes or so of code.
37850         (ranged_convert, __mktime_internal): When calling a function via a
37851         pointer P, use P () rather than (*P) (), as we now assume C89 or
37852         better.
37853
37854 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37855
37856         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37857         "who -r" failed to give output.  Problem reported by Tim Waugh.
37858
37859         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37860         (xcalloc): Use it to avoid needless tests.
37861         Problem reported by Jim Meyering.
37862
37863 2005-06-20  Derek Price  <derek@ximbiot.com>
37864
37865         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37866         unnecessary for Autoconfs > 2.59c.
37867
37868 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37869
37870         * lib/argp.h (__option_is_short): Check upper limit of
37871         __key. Isprint() requires its argument to have the value
37872         of an unsigned char or EOF.
37873
37874 2005-06-16  Jim Meyering  <jim@meyering.net>
37875
37876         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37877         when either N or S is zero.
37878
37879 2005-06-16  Derek Price  <derek@ximbiot.com>
37880
37881         * m4/bison.m4: Declare YACC & YFLAGS precious.
37882
37883 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37884
37885         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37886         multibyte string or pattern, fall back on unibyte matching.
37887         Problem reported by James Youngman.
37888
37889 2005-06-08  Bruno Haible  <bruno@clisp.org>
37890
37891         * modules/csharpcomp: New file.
37892         * MODULES.html.sh (C#): Add csharpcomp.
37893
37894 2005-06-08  Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/csharpcomp.m4: New file, from GNU gettext.
37897
37898 2005-06-08  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/csharpcomp.h: New file, from GNU gettext.
37901         * lib/csharpcomp.c: New file, from GNU gettext.
37902         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37903
37904 2005-06-08  Bruno Haible  <bruno@clisp.org>
37905
37906         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37907         warning on mingw.
37908
37909 2005-06-07  Derek Price  <derek@ximbiot.com>
37910
37911         Sync from CVS.
37912         * lib/glob_.h: Indent nested #ifdef.
37913
37914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37915
37916         Sync from coreutils.
37917         Use "file name" when talking about file names, instead of "filename"
37918         or "path", as per the GNU coding standards.
37919         * lib/mkdir-p.c: Renamed from makepath.c.
37920         (make_dir_parents): Renamed from make_path.  All callers changed.
37921         * lib/mkdir-p.h: Likewise.  All includers changed.
37922         * lib/filenamecat.c: Renamed from path-concat.c.
37923         (file_name_concat): Renamed from path_concat.  All callers changed.
37924         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37925         * lib/filenamecat.h: Likewise.  All includers changed.
37926         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37927         in comments or local variable names.
37928         * lib/basename.c: Likewise.
37929         * lib/canonicalize.c, canonicalize.h: Likewise.
37930         * lib/dirname.c, dirname.h: Likewise.
37931         * lib/euidaccess.c: Likewise.
37932         * lib/exclude.c: Likewise
37933         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37934         * lib/fsusage.c, fsuage.h: Likewise.
37935         * lib/fts.c, fts_.h: Likewise.
37936         * lib/getcwd.c: Likewise.
37937         * lib/getloadavg.c: Likewise.
37938         * lib/mkstemp.c: Likewise.
37939         * lib/mountlist.c, mountlist.h: Likewise.
37940         * lib/openat.c, openat.h: Likewise.
37941         * lib/readlink-stub.c: Likewise.
37942         * lib/readutmp.c, readutmp.h: Likewise.
37943         * lib/rename.c: Likewise.
37944         * lib/rmdir.c: Likewise.
37945         * lib/same.c: Likewise.
37946         * lib/savedir.c: Likewise.
37947         * lib/stripslash.c: Likewise.
37948         * lib/tempname.c: Likewise.
37949         * lib/xreadlink.c: Likewise.
37950         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37951         All uses changed.
37952         * lib/exclude.h: Likewise.
37953
37954         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37956         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37958         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37959         files have been getting away with it for years (MORE/BSD 4.3
37960         is extinct now).
37961         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37963
37964         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37965         Define to 256, not 255, as per modern POSIX.
37966
37967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37968
37969         Sync from coreutils.
37970         Use "file name" when talking about file names, instead of "filename"
37971         or "path", as per the GNU coding standards.
37972         * MODULES.html.sh: mkdir-p renamed from makepath.
37973         filenamecat renamed from path-concat.
37974         * modules/filenamecat: Renamed from modules/path-concat.
37975         (Files): filenamecat.h and filenamecat.c renamed from
37976         path-concat.h and path-concat.c.
37977         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37978         (Include): filenamecat.h, not path-concat.h.
37979         * modules/mkdir-p: Renamed from modules/makepath.
37980         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37981         makepath.c.
37982         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37983         (Include): mkdir-p.h, not makepath.h.
37984
37985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37986
37987         Sync from coreutils.
37988         * m4/mkdir-p.m4: Renamed from makepath.m4.
37989         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37990         Rename files from makepath.c to mkdir-p.c, and from
37991         makepath.h to mkdir-p.h.
37992         * m4/filenamecat.m4: Renamed from path-concat.m4.
37993         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37994         Rename files from path-concat.c to filenamecat.c,
37995         and from path-concat.h to filenamecat.h.
37996         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37997         "file name" in local variables or comments.
37998         * m4/rename.m4: Likewise.
37999
38000 2005-06-01  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/csharpexec: New file.
38003         * MODULES.html.sh (C#): New section.
38004
38005 2005-06-01  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/csharp.m4: New file, from GNU gettext.
38008         * m4/csharpexec.m4: New file, from GNU gettext.
38009
38010 2005-06-01  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/csharpexec.h: New file, from GNU gettext.
38013         * lib/csharpexec.c: New file, from GNU gettext.
38014         * lib/csharpexec.sh.in: New file, from GNU gettext.
38015
38016 2005-05-31  Derek Price  <derek@ximbiot.com>
38017             Paul Eggert  <eggert@cs.ucla.edu>
38018
38019         Sync from cvs.
38020         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38021
38022 2005-05-31  Derek Price  <derek@ximbiot.com>
38023             Paul Eggert  <eggert@cs.ucla.edu>
38024
38025         Sync from cvs.
38026         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38027
38028 2005-05-29  Derek Price  <derek@ximbiot.com>
38029
38030         * config/srclist.txt (glob_.h, glob.c): Add these files.
38031
38032 2005-05-29  Derek Price  <derek@ximbiot.com>
38033
38034         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
38035         * modules/glob: New file.
38036         * modules/getlogin_r: Add link to POSIX spec in description.
38037
38038 2005-05-29  Derek Price  <derek@ximbiot.com>
38039             Paul Eggert  <eggert@cs.ucla.edu>
38040
38041         * m4/glob.m4: New file.
38042
38043 2005-05-29  Derek Price  <derek@ximbiot.com>
38044             Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         * lib/glob_.h, lib/glob.c: New files.
38047
38048 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38049
38050         * modules/fts (Files): Remove m4/inttypes-pri.m4.
38051         * modules/fts-lgpl (Depends-on): Remove gettext.
38052
38053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38054
38055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
38056         and don't require gt_INTTYPES_PRI.
38057
38058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38059
38060         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
38061
38062         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
38063         the configuration hassle isn't worth it.
38064         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
38065         (LONGEST_MODIFIER, PRIuMAX): Remove.
38066
38067 2005-05-27  Bruno Haible  <bruno@clisp.org>
38068
38069         * lib/getlogin_r.h: Remove second include of <stddef.h>.
38070
38071 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38072
38073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
38074         _POSIX_PTHREAD_SEMANTICS for Solaris.
38075
38076 2005-05-25  Derek Price  <derek@ximbiot.com>
38077
38078         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
38079
38080 2005-05-25  Derek Price  <derek@ximbiot.com>
38081             Paul Eggert  <eggert@cs.ucla.edu>
38082
38083         * modules/getlogin_r, m4/getlogin_r.m4: New files.
38084         * lib/getlogin_r.c, getlogin_r.h: New files.
38085
38086 2005-05-25  Bruno Haible  <bruno@clisp.org>
38087             Derek Price  <derek@ximbiot.com>
38088
38089         * lib/getlogin_r.h: Simplify API documentation.
38090
38091 2005-05-23  Derek Price  <derek@ximbiot.com>
38092
38093         * modules/minmax (Files): Add m4/minmax.m4.
38094         (configure.ac): Add gl_MINMAX.
38095
38096 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38097
38098         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
38099         so that unistd-safer.h (GPL'ed code) need not be included.
38100
38101 2005-05-22  Bruno Haible  <bruno@clisp.org>
38102
38103         * m4/minmax.m4: New file.
38104         Based on a patch by Derek Price <derek@ximbiot.com>.
38105
38106 2005-05-22  Bruno Haible  <bruno@clisp.org>
38107
38108         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
38109         (INT64_MIN): Fix definition.
38110         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
38111
38112         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
38113         NEED_SIGNED_INT_TYPES.
38114
38115         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
38116         HAVE_SYSTEM_INTTYPES.
38117
38118 2005-05-22  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
38121         Also include <sys/param.h> if it defines MIN, MAX.
38122         Based on a patch by Derek Price <derek@ximbiot.com>.
38123
38124 2005-05-21  Jim Meyering  <jim@meyering.net>
38125
38126         * modules/fts (Files): Add m4/inttypes-pri.m4.
38127         (Depends-on): Add lstat and remove gettext.  Alphabetize.
38128
38129 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38130
38131         New fts module.
38132         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
38133         (setup_dir, free_dir): New functions.
38134         (enter_dir, leave_dir): Define trivial
38135         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
38136         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
38137         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
38138         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
38139         Move to fts-cycle.c.
38140         (fts_open): Use setup_dir.
38141         (fts_close): Use free_dir.
38142         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
38143         This adds a label and some gotos, but the alternatives were messier.
38144         Check for memory allocation failure when entering a dir.
38145         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
38146         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
38147         (FTS): New member fts_cycle, that is a union that contains the
38148         old active_dir_ht and cycle_state.  All uses changed to mention
38149         fts_cycle.ht and fts_cycle.state.
38150         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
38151         fts.c, with the following changes:
38152         (setup_dir, free_dir): New functions.
38153         (enter_dir): Now returns bool.  Return true if successful, false
38154         if memory exhausted.  All callers changed.
38155         Do not bother partly cleaning up on
38156         memory allocation failure; that is free_dir's job.
38157         However, free ad if hash_insert fails, to avoid memory leak.
38158         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
38159         fts->fts_options to see which union member to use.
38160
38161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38162
38163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
38164         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
38165
38166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38167
38168         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
38169
38170 2005-05-20  Jim Meyering  <jim@meyering.net>
38171
38172         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
38173         Now a macro, to pacify GCC.
38174
38175 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38176
38177         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
38178         of -1.
38179
38180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38181
38182         * lib/chown.c (rpl_chown): Return -1 on failure.
38183
38184 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38185
38186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
38187         Don't check for stddef.h.
38188         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
38189         don't use its results.
38190         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
38191         since we include them unconditionally.  Don't require
38192         AM_STDBOOL_H, since stdbool is a prerequisite.
38193         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
38194         since we assume C89 or better.
38195         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
38196         as we don't use their results.
38197         Don't check for fchdir, memmove, memset, strrchr, as we use
38198         them unconditionally.
38199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
38200         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
38201
38202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
38205         Include <stddef.h> unconditionally, since we assume C89 now.
38206         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
38207         * lib/fts.c: Include fts_.h first, to check interface.
38208         Do not include intprops.h; no longer needed.
38209         Include cycle-check.h and hash.h, since fts_.h no longer does.
38210         Remove unnecessary casts of closedir to void.
38211         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
38212         decide whether to decrement nlinks.
38213         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
38214         (FTS): Use struct hash_table * instead of Hash_table, so that
38215         we no longer need to include hash.h here.
38216
38217 2005-05-18  Jim Meyering  <jim@meyering.net>
38218
38219         * modules/dirfd (License): Change to LGPL.  Most of the code
38220         is already in the public domain.
38221
38222 2005-05-18  Jim Meyering  <jim@meyering.net>
38223
38224         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
38225         Reported by Yoann Vandoorselaere.
38226
38227 2005-05-17  Jim Meyering  <jim@meyering.net>
38228
38229         * m4/fts.m4: New file, from coreutils.
38230
38231 2005-05-17  Jim Meyering  <jim@meyering.net>
38232
38233         * lib/fts.c, lib/fts_.h: New files, from coreutils.
38234
38235 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38236
38237         Sync from coreutils.
38238         * m4/unlinkdir.m4: New file.
38239
38240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38241
38242         Sync from coreutils.
38243         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
38244         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
38245         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
38246         White space changes only.
38247         * lib/makepath.c (make_path): Port to hosts where leading "//" is
38248         special.
38249         * lib/yesno.c: Include getline.h, not ctype.h.
38250         (yesno): Don't remove leading white space; POSIX doesn't allow it.
38251         Use getline to remove arbitrary restriction on response length.
38252
38253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         * config/srclist-update: Spell out "Street" in FSF postal
38256         mail address; this is the style the FSF seems to prefer.
38257
38258         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
38259         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
38260         this updates FSF postal mail address.
38261
38262         Sync from coreutils.
38263         * modules/unlinkdir: New file.
38264         * modules/yesno (Depends-on): Add getline.
38265         * MODULES.html.sh (File system functions): Add unlinkdir.
38266
38267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38268
38269         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
38270         lib/strsep.h:
38271         Change the initial comment to refer to GPL, not LGPL.
38272         gnulib-tool will change it to LGPL as needed.
38273
38274         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
38275         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
38276         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
38277         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
38278         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
38279         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
38280         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
38281         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
38282         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
38283         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
38284         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
38285         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
38286         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
38287         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
38288         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
38289         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
38290         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
38291         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
38292         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
38293         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
38294         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
38295         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
38296         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
38297         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
38298         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
38299         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
38300         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
38301         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
38302         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
38303         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
38304         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
38305         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
38306         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
38307         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
38308         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
38309         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
38310         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
38311         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
38312         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
38313         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
38314         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
38315         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
38316         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
38317         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
38318         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
38319         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
38320         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
38321         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
38322         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
38323         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
38324         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
38325         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
38326         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
38327         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
38328         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
38329         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
38330         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
38331         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
38332         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
38333         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
38334         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
38335         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
38336         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
38337         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
38338         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
38339         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
38340         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
38341         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
38342         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
38343         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
38344         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
38345         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
38346         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
38347         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
38348         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
38349         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
38350         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
38351         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
38352         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
38353         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
38354         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
38355         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
38356         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
38357         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
38358         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
38359         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
38360         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
38361         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
38362         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
38363         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
38364         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
38365         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
38366         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
38367         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
38368         lib/yesno.c, lib/yesno.h:
38369         Update FSF postal mail address.
38370
38371 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38372
38373         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
38374         tests/test-memmem.c, tests/test-stpncpy.c:
38375         Update FSF postal mail address.
38376
38377 2005-05-13  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
38380         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
38381         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
38382         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
38383         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
38384         Add support for 64-bit integers in the MSVC compiler.
38385
38386 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38387
38388         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
38389
38390 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
38391
38392         * gnulib-tool (func_import): Sort and uniquify recommended includes.
38393
38394 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38395
38396         * doc/getdate.texi (General date syntax): Don't say that date
38397         date --iso-8601=ns generates acceptable dates; it doesn't yet.
38398         Problem reported by Nic Ferrier.
38399
38400 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38401
38402         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
38403         specified in ai_socktype. Fix invalid ai_protocol
38404         check. ai_protocol is usually set to 0 or depending on
38405         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
38406         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
38407         ai_socktype / ai_protocol in the returned addrinfo structure.
38408
38409 2005-05-10  Simon Josefsson  <jas@extundo.com>
38410
38411         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
38412         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38413
38414 2005-05-10  Karl Berry  <karl@gnu.org>
38415
38416         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
38417         (from http://www.gnu.org/licenses).
38418         * doc/COPYING.LIB: also rename to COPYING.LESSER.
38419         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
38420         fdl.texi suffices.
38421
38422 2005-05-10  Karl Berry  <karl@gnu.org>
38423
38424         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
38425         (COPYING.DOC): remove.
38426
38427         * config/srclist-update: new FSF address.
38428
38429 2005-05-10  Derek Price  <derek@ximbiot.com>
38430
38431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
38432         possible.
38433
38434 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38435             Bruno Haible  <bruno@clisp.org>
38436
38437         * modules/inet_ntop: New file.
38438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38439         inet_ntop.
38440
38441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38442             Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/inet_ntop.m4: New file.
38445
38446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38447             Bruno Haible  <bruno@clisp.org>
38448
38449         * lib/inet_ntop.h: New file.
38450         * lib/inet_ntop.c: New file, from glibc with modifications.
38451
38452 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
38453
38454         * modules/time_r (License): Change to LGPL.
38455         * modules/extensions (License): Change to LGPL.  Actually,
38456         the license is more permissive than that, but currently gnulib-tool
38457         doesn't know how to handle more-permissive licenses.
38458
38459         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
38460         Problem reported by Dave Love.
38461
38462 2005-05-08  Jim Meyering  <jim@meyering.net>
38463
38464         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
38465         blank.
38466
38467 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38468
38469         * modules/argmatch (Depends-on): Add stdbool.
38470         * modules/backupfile (Depends-on): Likewise.
38471         * modules/chdir-long (Depends-on): Likewise.
38472         * modules/closeout (Depends-on): Likewise.
38473         * modules/cycle-check (Depends-on): Likewise.
38474         * modules/dirname (Depends-on): Likewise.
38475         * modules/fnmatch (Depends-on): Likewise.
38476         * modules/fsusage (Depends-on): Likewise.
38477         * modules/fwriteerror (Depends-on): Likewise.
38478         * modules/getcwd (Depends-on): Likewise.
38479         * modules/getloadavg (Depends-on): Likewise.
38480         * modules/hard-locale (Depends-on): Likewise.
38481         * modules/makepath (Depends-on): Likewise.
38482         * modules/mountlist (Depends-on): Likewise.
38483         * modules/nanosleep (Depends-on): Likewise.
38484         * modules/posixtm (Depends-on): Likewise.
38485         * modules/quotearg (Depends-on): Likewise.
38486         * modules/readtokens (Depends-on): Likewise.
38487         * modules/readtokens0 (Depends-on): Likewise.
38488         * modules/readutmp (Depends-on): Likewise.
38489         * modules/save-cwd (Depends-on): Likewise.
38490         * modules/strftime (Depends-on): Likewise.
38491         * modules/userspec (Depends-on): Likewise.
38492         * modules/utimecmp (Depends-on): Likewise.
38493         * modules/xgetcwd (Depends-on): Likewise.
38494         * modules/xnanosleep (Depends-on): Likewise.
38495         * modules/xstrtod (Depends-on): Likewise.
38496         * modules/yesno (Depends-on): Likewise.
38497
38498 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38499
38500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
38501         needless checks.
38502
38503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38504
38505         Merge from coreutils.  Among other things,
38506         add bulletproofing for cases where stdin, stdout, or stderr are closed.
38507         * lib/fd-safer.c: New file.
38508         * lib/fcntl-safer.h, open-safer.c: Remove.
38509         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
38510         * lib/dup-safer.c: Include unistd-safer.h first.
38511         Don't include errno.h.
38512         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
38513         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
38514         * lib/file-type.c: Rely on file-type.h change.
38515         * lib/getloadavg.c: Include unistd-safer.h.
38516         (getloadavg): Use safer open.
38517         * lib/getusershell.c: Include "stdio-safer.h".
38518         (getusershell): Use safer fopen.
38519         * lib/long-options.c (long_options): Use NULL rather than 0.
38520         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
38521         'free'.
38522         * lib/modechange.c: Likewise.
38523         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
38524         (MODE_DONE): New constant.
38525         (struct mode_change): Remove 'next' member.
38526         (make_node_op_equals): New function; like the old one of the
38527         same name, except it allocates an array.
38528         (mode_compile, mode_create_from_ref): Use it.
38529         (mode_compile): Allocate result as an array, not a linked list.
38530         Parse octal string ourself, so that we catch mistakes like "+0".
38531         (mode_adjust): Arg is an array, not a linked list.
38532         * lib/modechange.c: Include stat-macros.h, xalloc.h.
38533         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
38534         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
38535         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
38536         Remove.  This is now stat-macros.h's job.
38537         (talloc): Remove.  All callers replaced by xalloc, so that
38538         our invokers don't have to worry about reporting memory failures.
38539         (make_node_op_equals): Remove.
38540         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38541         New constants.
38542         (struct mode_change): Moved here from modechange.h.
38543         (mode_append_entry): Remove.
38544         (mode_compile): Remove MASKED_OPS arg, since it encouraged
38545         apps to have incorrect behavior.  Use simpler algorithm for head
38546         and tail.  Don't futz with umask; that's now the job of mode_adjust.
38547         Detect more invalid usages rather than having somewhat-random behavior.
38548         Don't insert an "a=" action, as that leads to incorrect behavior.
38549         (mode_compile, mode_create_from_ref): Return NULL on error instead
38550         of an enum, since now there's only one way to have an error.  All
38551         callers changed.
38552         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38553         at the correct time.  Simplify calculation of "+u" and its ilk.
38554         Don't mishandle "+X".
38555         (mode_free): Remove "register" and localize decls.
38556         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38557         (struct mode_change): Move to modechange.c; callers don't
38558         need to see this stuff.
38559         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38560         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38561         (mode_change, mode_adjust): Reflect the new signatures noted above.
38562         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38563         that might redefine system include files.
38564         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38565         (my_usleep): Use NULL rather than (void *) 0.
38566         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38567         Use siginterrupt to specify that system calls should be interrupted.
38568         (rpl_nanosleep): Move initialization of suspended closer to call of
38569         my_usleep.
38570         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
38571         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
38572         (desirable_utmp_entry): New function.
38573         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38574         using x2nrealloc, to simplify logic.
38575         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38576         size calculation.  Do not assume utmp file is a regular file.
38577         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38578         (READ_UTMP_CHECK_PIDS): New constant.
38579         * lib/save-cwd.c: Include unistd-safer.h.
38580         (save_cwd): Use fd_safer.
38581         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38582         [!_LIBC] Include "stat-macros.h" instead.
38583         * lib/unistd-safer.h (fd_safer): New decl.
38584
38585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38586
38587         * modules/getloadavg (Depends-on): Add unistd-safer.
38588         * modules/getusershell (Depends-on): Add stdio-safer.
38589         * modules/lstat (Depends-on): Remove xalloc.
38590         * modules/mkstemp (Depends-on): Add stat-macros.
38591         * modules/modechange (Depends-on): Remove xstrtol.
38592         Add stat-macros, xalloc.
38593         * modules/save-cwd (Depends-on): Add unistd-safer.
38594         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38595         * modules/unistd-safer (Files): Add lib/fd-safer.c
38596         (Makefile.am): Remove lib_SOURCES.
38597
38598         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38599         Remove fcntl-safer; unistd-safer supersedes it.
38600
38601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38602
38603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38604         AC_HEADER_STAT.
38605         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38606         (gl_PREREQ_CHOWN): Remove.
38607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38608         it.  Don't require AC_HEADER_STAT.
38609         (gl_PREREQ_LSTAT): Remove.
38610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38611         Don't require AC_HEADER_STAT.
38612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38613         (gl_PREREQ_RMDIR): Remove.
38614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38615         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38616         the stat-macros module a prerequisite.
38617         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38618         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38619         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38620         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38621         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38622         variable names.
38623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38624         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38625         variable prefixes.
38626         * m4/fcntl-safer.m4: Remove.
38627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38629         Invoke gl_PREREQ_FD_SAFER.
38630         (gl_PREREQ_FD_SAFER): New macro.
38631         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38632         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38633         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38634         Remove duplicate call to AC_LIBOBJ(readutmp).
38635         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
38636
38637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38638         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
38639
38640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38641
38642         * MODULES.html.sh (Misc): Add byteswap.
38643
38644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38645
38646         * modules/getcwd (Depends-on): Add extensions.
38647         * modules/openat (Depends-on): Likewise.
38648
38649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38650
38651         * modules/byteswap: New file.
38652
38653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38654
38655         * m4/byteswap.m4: New file.
38656
38657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38658
38659         * lib/byteswap_.h: New file.
38660
38661 2005-04-25  Karl Berry  <karl@gnu.org>
38662
38663         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38664
38665 2005-04-25  Albert Chin  <china@thewrittenword.com>
38666
38667         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38668         Toolkit C bug.
38669
38670 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38671
38672         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38673         (func_ln_if_changed) Remove forcibly for no error message
38674         in case file does not exist.
38675
38676 2005-04-19  Simon Josefsson  <jas@extundo.com>
38677
38678         * gnulib-tool (Options): Make --symlink mean --symbolic.
38679
38680 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38681
38682         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38683
38684 2005-04-16  Simon Josefsson  <jas@extundo.com>
38685
38686         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38687
38688 2005-04-15  Simon Josefsson  <jas@extundo.com>
38689
38690         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38691
38692 2005-04-15  Simon Josefsson  <jas@extundo.com>
38693
38694         * gnulib-tool: Rename --symlink to --symbolic.
38695
38696 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38697
38698         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38699         symbolic links to files instead of copying/moving.  Add --aux-dir,
38700         specifying directory relative --dir where auxiliary build tools
38701         are placed.
38702
38703 2005-04-14  Bruno Haible  <bruno@clisp.org>
38704
38705         * modules/allocsa (License): Change to LGPL.
38706         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38707
38708 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38709
38710         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38711         that "UTC +1 second" continues to work.  Problem reported
38712         by Dmitry V. Levin.
38713         (relunit_snumber): New rule.
38714         (relunit): Use it.
38715
38716 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38717
38718         * lib/getdate.y (universal_time_zone_table): New constant.
38719         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38720         universal_time_zone_table.
38721         (lookup_zone): Prefer universal_time_zone_table to
38722         local_time_zone_table, so that "GMT" time stamps are allowed in
38723         London during the summer.  Problem reported by Ian Abbott.
38724
38725 2005-04-12  Jim Meyering  <jim@meyering.net>
38726
38727         * lib/human.c (humblock): Set *options even when returning due to
38728         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38729         warning from gcc-4.
38730
38731 2005-04-09  Jim Meyering  <jim@meyering.net>
38732
38733         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38734         -Wuninitialized: initialize tm0.tm_year.
38735
38736 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38737
38738         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38739         count, since there's no maximum.  All uses changed.
38740         Add member dsts_seen.
38741         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38742         not being INT_MAX.
38743         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38744         Use pc_rels_seen to decide whther a date is absolute.
38745
38746         * lib/getdate.y (number): Don't overwrite year.
38747         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38748         check.
38749
38750 2005-04-02  Simon Josefsson  <jas@extundo.com>
38751
38752         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38753         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38754
38755 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38756
38757         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38758         where no absolute path name can be longer than PATH_MAX.
38759
38760 2005-03-27  Jim Meyering  <jim@meyering.net>
38761
38762         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38763
38764 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38765
38766         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38767         "one's complement" -> "ones' complement" in comment, as per Knuth.
38768         "value of type" -> "type or expression" in comment.
38769         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38770
38771 2005-03-26  Jim Meyering  <jim@meyering.net>
38772
38773         Comment nits.
38774         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38775         Correct typos: s/or/of/.
38776
38777 2005-03-26  Jim Meyering  <jim@meyering.net>
38778
38779         * modules/check-include-files: Move to ../ and rename to...
38780         * check-module: ...this.
38781
38782 2005-03-25  Jim Meyering  <jim@meyering.net>
38783
38784         * modules/xvasprintf (Files): Add xalloc.h.
38785
38786 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38787
38788         * modules/gettext (Files): config/config.rpath ->
38789         build-aux/config.rpath
38790         * modules/iconv (Files): Likewise.
38791         Problem reported by Oskar Liljeblad.
38792
38793 2005-03-23  Jim Meyering  <jim@meyering.net>
38794
38795         * modules/check-include-files: New script to check for
38796         missing dependencies, multiple includes, etc.
38797
38798         * modules/c-strtold (Depends-on): Add xalloc.
38799         * modules/c-strtod (Depends-on): Add xalloc.
38800         * modules/hash (Depends-on): Add xalloc.
38801         (Files): Remove lib/xalloc.h.
38802
38803         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38804         * modules/userspec (Files): Add lib/inttostr.h.
38805
38806 2005-03-23  Jim Meyering  <jim@meyering.net>
38807
38808         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38809
38810 2005-03-22  Jim Meyering  <jim@meyering.net>
38811
38812         * modules/stat-macros: New module.
38813         * modules/canonicalize, modules/euidaccess, modules/file-type,
38814         * modules/filemode, modules/lchown, modules/makepath,
38815         * modules/rmdir, modules/stat: Depend on new stat-macros module
38816         rather than listing lib/stat-macros.h manually.
38817         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38818
38819 2005-03-22  Jim Meyering  <jim@meyering.net>
38820
38821         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38822
38823 2005-03-22  Bruno Haible  <bruno@clisp.org>
38824
38825         * config/srclist.txt: Replace target directory 'config' with
38826         'build-aux'.
38827         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38828         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38829         ../build-aux/.
38830
38831 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38832
38833         * modules/chdir-long (Depends-on): Add mempcpy.
38834
38835         * modules/acl, modules/backupfile, modules/c-strtod,
38836         modules/c-strtold, modules/canon-host, modules/canonicalize,
38837         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38838         modules/exclude, modules/exitfail, modules/file-type,
38839         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38840         modules/getdate, modules/getline, modules/getpagesize,
38841         modules/getpass, modules/getugroups, modules/group-member,
38842         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38843         modules/inttostr, modules/long-options, modules/makepath,
38844         modules/md5, modules/memcasecmp, modules/memcoll,
38845         modules/modechange, modules/mountlist, modules/path-concat,
38846         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38847         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38848         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38849         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38850         modules/strftime, modules/strndup, modules/strverscmp,
38851         modules/timespec, modules/unlocked-io, modules/userspec,
38852         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38853         modules/yesno:
38854         Remove lib_SOURCES line from Makefile.am section, as this is now
38855         done automatically by the corresponding Autoconf macro.
38856
38857 2005-03-21  Jim Meyering  <jim@meyering.net>
38858
38859         Changes imported from coreutils.
38860
38861         * lib/cycle-check.c: Don't include xalloc.h.
38862
38863         * lib/path-concat.c: Don't include assert.h.
38864         (path_concat): Remove assertion that would have triggered
38865         for ABASE starting with more than one slash.
38866         Reported by Andreas Schwab.
38867
38868         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38869         properly when ABASE is an absolute file name.
38870         Correct the description of this function.
38871         Include <assert.h>.
38872         Add an assertion and a test driver.
38873         This fixes a bug introduced on 2004-07-02.
38874         Andreas Schwab reported the resulting failure of cp --parents:
38875         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38876
38877 2005-03-21  Jim Meyering  <jim@meyering.net>
38878
38879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38881
38882 2005-03-21  Jim Meyering  <jim@meyering.net>
38883         and  Paul Eggert  <eggert@cs.ucla.edu>
38884
38885         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38886         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38887         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38888         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38889         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38890         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38891         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38892         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38893         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38894         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38895         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38896         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38897         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38898         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38899         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38900         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38901         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38902         for these modules.
38903
38904 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38905
38906         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38907         (which shouldn't happen), generate nothing instead of returning 0
38908         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38909
38910 2005-03-16  Bruno Haible  <bruno@clisp.org>
38911
38912         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38913         HAVE_LONGLONG_64BIT.
38914
38915 2005-03-16  Bruno Haible  <bruno@clisp.org>
38916
38917         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38918         HAVE_LONGLONG_64BIT.
38919
38920 2005-03-16  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38923         HAVE_LONGLONG_64BIT.
38924
38925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38926
38927         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38928         reliably distinguish strftime failure from empty output on POSIX
38929         hosts.
38930
38931 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38932
38933         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38934         (iconv_string): Don't guess a size-zero buffer, as that might cause
38935         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38936         result would be 'too large', where 'too large' is (heuristically)
38937         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38938         overflow concerns.  This will prevent some unwanted malloc failures
38939         when the inputs are very large.
38940
38941 2005-03-15  Karl Berry  <karl@gnu.org>
38942
38943         * config/srclist.txt (config.rpath): from gettext.
38944         * config/config.rpath: update.
38945
38946 2005-03-15  Bruno Haible  <bruno@clisp.org>
38947
38948         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38949         to 'negate'.
38950
38951         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38952         variable.
38953
38954         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38955         results.
38956
38957 2005-03-14  Simon Josefsson  <jas@extundo.com>
38958
38959         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38960         <fx@gnu.org>.
38961
38962 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38963
38964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38965         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38966         intprops.h.
38967         * lib/strtol.c: Likewise.
38968
38969 2005-03-14  Jim Meyering  <jim@meyering.net>
38970
38971         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38972         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38973         to be nonzero so that we (and caller) can detect the difference
38974         between a valid zero-length expansion and an error return, even
38975         when the underlying strftime fails before writing anything into
38976         that location.
38977
38978 2005-03-14  Bruno Haible  <bruno@clisp.org>
38979
38980         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38981         Update from GNU gettext 0.14.3.
38982
38983 2005-03-10  Jim Meyering  <jim@meyering.net>
38984
38985         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38986
38987 2005-03-10  Jim Meyering  <jim@meyering.net>
38988
38989         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38990         so that this module works on systems without fchdir.
38991
38992 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38993
38994         Factor int-properties macros into a single file, except for
38995         glibc-related files.
38996         * lib/intprops.h: New file.
38997         * lib/getloadavg.c: Include it instead of limits.h.
38998         (INT_STRLEN_BOUND): Remove.
38999         * lib/human.c: Include intprops.h.
39000         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
39001         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
39002         302/1000.
39003         * lib/inttostr.h: Include intprops.h instead of limits.h.
39004         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
39005         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
39006         for consistency with intprops.h.
39007         (time_t_is_integer, twos_complement_arithmetic): Use them.
39008         * lib/sig2str.h: Include <signal.h>, intprops.h.
39009         (INT_STRLEN_BOUND): Remove.
39010         * lib/strftime.c (TYPE_SIGNED): Remove.
39011         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
39012         * lib/strtol.c: Adjust comments to match intprops.h.
39013         * lib/userspec.c: Include intprops.h.
39014         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
39015         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
39016         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
39017         instead of rolling our own expressions.
39018         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
39019
39020         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
39021         instead of int.
39022         (my_strftime): Do not mishandle years close to INT_MAX, by doing
39023         the right thing even if adding 1900 would overflow.  Similarly
39024         for tm_mon + 1 and tm_yday + 1.
39025         Make %Y always equivalent to %C%y, and similarly for %G and %g.
39026         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
39027         (DO_SIGNED_NUMBER): New macro.
39028         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
39029
39030 2005-03-07  Bruno Haible  <bruno@clisp.org>
39031
39032         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
39033
39034 2005-03-07  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
39037
39038 2005-03-04  Derek R. Price  <derek@ximbiot.com>
39039
39040         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
39041         (func_import): Only replace files via --import when they have actually
39042         changed.
39043
39044 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39045
39046         * m4/mmap-anon.m4: New file.
39047         * m4/pagealign_alloc.m4: New file.
39048
39049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39050             Bruno Haible  <bruno@clisp.org>
39051
39052         * modules/pagealign_alloc: New file.
39053         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
39054
39055 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39056             Bruno Haible  <bruno@clisp.org>
39057
39058         * lib/pagealign_alloc.h: New file.
39059         * lib/pagealign_alloc.c: New file.
39060
39061 2005-03-03  Bruno Haible  <bruno@clisp.org>
39062
39063         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
39064         Use an all-permissive copyright notice, recommended by RMS.
39065
39066 2005-03-02  Bruno Haible  <bruno@clisp.org>
39067
39068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
39069         of AIX, the replacement has to be done only after <string.h> is
39070         included, therefore not in config.h. stpncpy.h does the replacement,
39071         and stpncpy.c uses it.
39072
39073 2005-03-02  Bruno Haible  <bruno@clisp.org>
39074
39075         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
39076         stpncpy.c uses it.
39077
39078 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39079
39080         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
39081         The workaround isn't strictly needed for POSIX conformance, and
39082         it's too much of a pain to configure and maintain.  We'll ask
39083         people to fix their kernels instead.
39084         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
39085         (NANOSLEEP_BUG_WORKAROUND): Remove.
39086         (xnanosleep): Remove the workaround.
39087
39088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39089
39090         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
39091         Reported by Derek Price.
39092         (Include): Add "timespec.h".
39093
39094         * modules/xnanosleep (Depends-on): Remove gethrxtime.
39095
39096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39097
39098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
39099         to detect nanosleep bug.
39100
39101 2005-03-01  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
39104
39105 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39106
39107         * modules/gethrxtime: New file.
39108         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
39109         (Depends-on): Add gethrxtime.
39110         (configure.ac): Add gl_XNANOSLEEP.
39111         (Makefile.am): Remove lib_SOURCES line.
39112
39113 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39114
39115         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
39116         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
39117
39118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39119
39120         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
39121         * lib/timespec.h (gettime): Return void, since it always
39122         succeeds now.  All uses changed.
39123         * lib/gettime.c (gettime) Likewise.
39124         [HAVE_NANOTIME]: Prefer nanotime.
39125         Assume gettimeofday succeeds, as POSIX requires.
39126         Assime time () succeeds, since other code already does.
39127         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
39128         (timespec_subtract): Remove.
39129         (NANOSLEEP_BUG_WORKAROUND): New constant.
39130         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
39131         things considerably.  Use it only on GNU/Linux hosts, since the
39132         workaround shouldn't be needed elsewhere.
39133
39134 2005-02-24  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/gettext (Files): Add m4/glibc2.m4.
39137
39138 2005-02-24  Bruno Haible  <bruno@clisp.org>
39139
39140         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
39141         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
39142         * m4/progtest.m4:
39143         Update from GNU gettext 0.14.2.
39144         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
39145
39146 2005-02-24  Bruno Haible  <bruno@clisp.org>
39147
39148         * lib/localcharset.c: Update from GNU gettext 0.14.2.
39149         * lib/config.charset: Update from GNU gettext 0.14.2.
39150
39151 2005-02-24  Bruno Haible  <bruno@clisp.org>
39152
39153         * lib/gettext.h: Update from GNU gettext 0.14.2.
39154
39155 2005-02-23  Simon Josefsson  <jas@extundo.com>
39156
39157         * m4/iconvme.m4: New file.
39158
39159 2005-02-23  Jim Meyering  <jim@meyering.net>
39160
39161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
39162         change.
39163         Thanks to Bruno Haible for catching it.
39164
39165 2005-02-22  Simon Josefsson  <jas@extundo.com>
39166
39167         * modules/iconvme: New file.
39168
39169         * MODULES.html.sh: Add iconvme.
39170
39171 2005-02-22  Simon Josefsson  <jas@extundo.com>
39172
39173         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
39174
39175 2005-02-22  Simon Josefsson  <jas@extundo.com>
39176
39177         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
39178
39179 2005-02-22  Jim Meyering  <jim@meyering.net>
39180
39181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
39182         s/ifndef/ifdef/.
39183
39184 2005-02-20  Neil Conway  <neilc@samurai.com>
39185
39186         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
39187         returned by OSX/Darwin if the specified buffer is not large
39188         enough for the hostname.
39189
39190 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39191
39192         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
39193         pass it to _help, otherwise the latter coredumps trying to
39194         dereference state.root_argp.
39195
39196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39197
39198         * modules/chdir-long (Depends-on): Add memrchr.
39199         * modules/memrchr (Files): Add lib/memrchr.h.
39200         (Include): "memrchr.h".
39201
39202 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39203
39204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
39205
39206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39207
39208         * lib/memrchr.h: New file.
39209         * lib/chdir-long.c: Include it.
39210         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
39211         Don't bother including stddef.h.
39212
39213 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39214
39215         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
39216         inclusion.
39217         Include <sys/types.h>, for dev_t.
39218         (ME_DUMMY, ME_REMOTE): Move from here....
39219         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
39220         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
39221         Dmitry V. Levin.
39222         Include mountlist.h first, to test the interface.
39223
39224 2005-01-29  Bruno Haible  <bruno@clisp.org>
39225
39226         * lib/progname.c (program_name): Initialize.
39227         Needed when linking statically on MacOS X.
39228
39229 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39230
39231         Sync from coreutils.
39232         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
39233         (Depends-on): Add c-strtod.
39234         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
39235
39236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39237
39238         Sync from coreutils.
39239         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
39240
39241         Remove files that are specific to coreutils.
39242         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
39243
39244 2005-01-28  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/javacomp: New file.
39247         * MODULES.html.sh (Java): Add javacomp.
39248
39249 2005-01-28  Bruno Haible  <bruno@clisp.org>
39250
39251         * m4/javacomp.m4: New file, from GNU gettext.
39252
39253 2005-01-28  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/javacomp.sh.in: New file, from GNU gettext.
39256         * lib/javacomp.h: New file, from GNU gettext.
39257         * lib/javacomp.c: New file, from GNU gettext.
39258
39259 2005-01-26  Simon Josefsson  <jas@extundo.com>
39260
39261         * lib/gai_strerror.c: Use GPL in header.
39262
39263 2005-01-26  Bruno Haible  <bruno@clisp.org>
39264
39265         * modules/javaexec: New file.
39266         * MODULES.html.sh (Java): Add javaexec.
39267
39268 2005-01-26  Bruno Haible  <bruno@clisp.org>
39269
39270         * m4/javaexec.m4: New file, from GNU gettext.
39271
39272 2005-01-26  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/javaexec.sh.in: New file, from GNU gettext.
39275         * lib/javaexec.h: New file, from GNU gettext.
39276         * lib/javaexec.c: New file, from GNU gettext.
39277
39278 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39279
39280         * modules/lchown (Depends-on): Remove lchown.h
39281
39282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39283
39284         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
39285         must be defined if the header file was not found, in order
39286         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
39287
39288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39289
39290         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
39291         initializers for struct pentry_state.
39292         (__argp_error): Check return value of __asprintf
39293         (__argp_failure): Translate error message
39294
39295         * lib/argp-parse.c: Removed braces around the expansion of N_()
39296
39297 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
39300         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
39301         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
39302         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
39303         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
39304         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
39305         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
39306         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
39307         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
39308         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
39309         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
39310         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
39311         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
39312         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
39313         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
39314         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
39315         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
39316         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
39317         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
39318         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
39319         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
39320         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
39321         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
39322         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
39323         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
39324         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
39325         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
39326         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
39327         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
39328         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
39329         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
39330         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
39331         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
39332         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
39333         xstrtol.m4, xstrtoumax.m4, yesno.m4:
39334         Use an all-permissive copyright notice, recommended by RMS.
39335
39336 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39337
39338         * modules/chdir-long (Depends-on): Remove mempcpy.
39339
39340 2005-01-21  Jim Meyering  <jim@meyering.net>
39341
39342         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
39343         same value as for Solaris 9.
39344
39345         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
39346         component length.  This included changing the parameter to be
39347         of type `char *' rather than `char const *'.
39348         * lib/chdir-long.h (chdir_long): Update prototype.
39349
39350         * lib/openat.c (fdopendir, fstatat): New functions.
39351         * lib/openat.h: Include headers required for use of DIR and struct
39352         stat.
39353         [AT_SYMLINK_NOFOLLOW]: Define.
39354         (fdopendir, fstatat): Add prototypes.
39355
39356 2005-01-21  Bruno Haible  <bruno@clisp.org>
39357
39358         * modules/classpath: New file.
39359         * MODULES.html.sh (Java): Add classpath.
39360
39361 2005-01-21  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/classpath.h: New file, from GNU gettext.
39364         * lib/classpath.c: New file, from GNU gettext.
39365
39366 2005-01-20  Simon Josefsson  <jas@extundo.com>
39367
39368         * modules/version-etc-fsf: New file.
39369
39370 2005-01-20  Simon Josefsson  <jas@extundo.com>
39371
39372         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
39373         * lib/version-etc.c: Remove version_etc_copyright.
39374         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
39375         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
39376
39377 2005-01-20  Simon Josefsson  <jas@extundo.com>
39378
39379         * lib/base64.h (isbase64): Add.
39380
39381         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
39382         using a unsigned prototype, don't inline.
39383         (base64_decode): Use it.
39384
39385 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39386
39387         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
39388         it.
39389
39390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39391
39392         * lib/save-cwd.c (save_cwd): Remove code to support the case
39393         where fchdir is missing or flaky.
39394
39395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39396
39397         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
39398
39399 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39400
39401         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
39402         AC_LIBSOURCES now does this.
39403         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
39404         with new ullong_max module.
39405
39406 2005-01-19  Bruno Haible  <bruno@clisp.org>
39407
39408         * modules/sh-quote: New file.
39409         * MODULES.html.sh (Executing programs): Add sh-quote.
39410
39411 2005-01-19  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/sh-quote.h: New file, from GNU gettext.
39414         * lib/sh-quote.c: New file, from GNU gettext.
39415
39416 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39417
39418         Merge from coreutils.
39419         * m4/ullong_max.m4: New file.
39420         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
39421         (gl_MACROS): Assume localeconv exists.
39422
39423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39424
39425         Merge changes from coreutils, as described below in several
39426         changelogs dated today.
39427
39428         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
39429         (O_DIRECTORY): Remove; not needed here, since "." must be
39430         a directory.  All uses removed.
39431         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
39432         universal on Suns, and we also need to test for IRIX.
39433         Revamp code to use 'if' rather than '#if'.
39434         Avoid unnecessary comparison of cwd->desc to 0.
39435
39436         * lib/utimens.c (futimens): Robustify the previous patch, by checking
39437         for known valid error numbers rather than observed invalid ones.
39438
39439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39440
39441         * modules/ullong_max: New file.
39442
39443         * modules/chdir-long, modules/openat: New files.
39444         * modules/save-cwd (Depends-on): Depend on chdir-long.
39445         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
39446
39447 2005-01-18  Jim Meyering  <jim@meyering.net>
39448
39449         Merge from coreutils.
39450         * m4/chdir-long.m4, m4/openat.m4: New files.
39451         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
39452         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
39453         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
39454         is sane and DOES follow symlinks.  Besides, testing 20 different
39455         systems found no broken chown implementations.
39456         Prompted by a change in rsync's copy of this macro.
39457         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
39458
39459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
39460
39461         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
39462         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
39463         NULL-means-set-to-current-time semantics.
39464         Remove temporary file immediately, rather than waiting
39465         for configure's at-exit trap code to do it.
39466
39467 2005-01-18  Jim Meyering  <jim@meyering.net>
39468
39469         * lib/version-etc.c (version_etc_copyright): Update copyright date.
39470
39471         * lib/utimens.c (futimens): Account for the fact that futimes
39472         can also fail with errno == ENOSYS or errno == ENOENT.
39473         Patch from Dmitry V. Levin.
39474
39475         Change the name of the robust chdir function from chdir to chdir_long.
39476         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
39477         (restore_cwd): Use chdir_long, not chdir.
39478         * lib/chdir-long.c: Renamed from chdir.c.
39479         * lib/chdir-long.h: Renamed from chdir.h.
39480         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
39481         Hurd.
39482
39483 2005-01-18  Bruno Haible  <bruno@clisp.org>
39484
39485         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
39486         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
39487         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
39488         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
39489         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
39490         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
39491         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
39492         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
39493         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
39494         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
39495         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
39496         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
39497         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
39498         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
39499         Use an all-permissive copyright notice, recommended by RMS.
39500
39501 2005-01-18  Bob Proulx  <bob@proulx.com>
39502
39503         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
39504         simplify offsetof() macro construct to avoid compile failure with
39505         native HP-UX 11.0 ANSI C compiler.
39506
39507 2005-01-17  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
39510         redundant because stpncpy.m4 takes care of it.
39511
39512 2005-01-17  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
39515
39516 2005-01-17  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
39519         used.
39520
39521 2005-01-17  Bruno Haible  <bruno@clisp.org>
39522
39523         * lib/fwriteerror.h (fwriteerror): Change specification to include
39524         fclose.
39525         * lib/fwriteerror.c: Include <stdbool.h>.
39526         (fwriteerror): At the end, close the file stream. Record whether
39527         stdout was already closed.
39528
39529 2005-01-17  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/execute.c (environ): Declare if needed.
39532         * lib/pipe.c (environ): Likewise.
39533         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
39534
39535 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39536
39537         * modules/argp: Depend on vsnprintf
39538
39539 2005-01-10  Jim Meyering  <jim@meyering.net>
39540
39541         * modules/closeout (Depends-on): Add atexit.
39542
39543 2005-01-06  Bruno Haible  <bruno@clisp.org>
39544
39545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
39546
39547 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39548
39549         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
39550         definitions to be after all include files, to avoid collisions.
39551         Problem reported by Bob Proulx.
39552
39553 2005-01-04  Jim Meyering  <jim@meyering.net>
39554
39555         Changes imported from coreutils.
39556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39557         as the mkstemp template, use a temporary directory and an
39558         8.3-friendly template to avoid trouble on systems like DJGPP.
39559         Reported by Juan M. Guerrero via Stepan Kasal.
39560         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39561         close. Remove the temporary directory right away, rather than waiting
39562         for configure's at-exit trap code to do it.
39563         Suggestion from Stepan Kasal.
39564
39565 2005-01-01  Simon Josefsson  <jas@extundo.com>
39566
39567         * gnulib-tool: Print #include directives when --import'ing.
39568
39569 2004-12-28  Simon Josefsson  <jas@extundo.com>
39570
39571         * tests/test-base64.c: Include required header files.  Remove
39572         unused variables.
39573
39574 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39575
39576         * modules/error (Depends-on): Remove gettext.
39577
39578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39579
39580         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39581         not needed.  This removes a dependency on the gettext module.
39582         [defined _LIBC]: Do not include <libintl.h>; not needed.
39583
39584 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39585
39586         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39587         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39588
39589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39590
39591         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39592         HAVE_DECL_STRTOLD.
39593
39594 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39595
39596         * modules/getdate (Depends-on): Remove alloca-opt.
39597
39598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39601
39602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39603
39604         * lib/argp-parse.c: Include <stddef.h>.
39605         (alignof, alignto): New macros.
39606         (parser_init): Don't assume that void * is aligned sufficiently
39607         for struct option.
39608
39609         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39610         need to extend the stack.
39611         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39612         large.
39613
39614 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39615
39616         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39617
39618 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39619
39620         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39621         (2004-10-24) change.  Apparently this was a false alarm.
39622
39623         * modules/getdate: Depend on alloca-opt, not alloca.
39624
39625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39626
39627         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39628         Remove now-obsolete comment about AIX.
39629         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39630         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39631         (YYMAXDEPTH): New macro.
39632
39633 2004-12-18  Simon Josefsson  <jas@extundo.com>
39634
39635         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39636
39637 2004-12-18  Bruno Haible  <bruno@clisp.org>
39638
39639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39640
39641 2004-12-18  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/fatal-signal.c (fatal_signals): Make non-const.
39644         (init_fatal_signals): New function.
39645         (uninstall_handlers, install_handlers): Ignore signals that were set to
39646         SIG_IGN.
39647         (at_fatal_signal): Call init_fatal_signals.
39648         (init_fatal_signal_set): Likewise. Ignore signals that were set to
39649         SIG_IGN.
39650         Reported by Paul Eggert.
39651
39652 2004-12-18  Bruno Haible  <bruno@clisp.org>
39653
39654         * doc/alloca.texi: New file.
39655         * doc/alloca-opt.texi: New file.
39656
39657 2004-12-17  Jim Meyering  <jim@meyering.net>
39658
39659         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39660         Otherwise, install-sh could exit with improper exit status when
39661         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39662
39663 2004-12-16  Simon Josefsson  <jas@extundo.com>
39664
39665         * tests/test-base64.c: Add license.
39666
39667 2004-12-15  Stepan Kasal  <address@hidden>
39668
39669         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39670
39671 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         * modules/getcwd (Files): Add m4/d-ino.m4.
39674         Suggested by Mark D. Baushke.
39675
39676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39677
39678         * lib/getdate.y (textint): New member "negative".
39679         (time_zone_hhmm): New function.
39680         Expect 14 shift-reduce conflicts, not 13.
39681         (o_colon_minutes): New rule.
39682         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39683         (yylex): Set the "negative" member of signed numbers.
39684
39685 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39686
39687         * doc/getdate.texi (Time of day items, Time zone items):
39688         Describe new formats +00:00, UTC+00:00.
39689
39690 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39691
39692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39693         spurious "-l"s.  Problem reported by Stepan Kasal.
39694
39695 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39696
39697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39698         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39699
39700 2004-12-04  Simon Josefsson  <jas@extundo.com>
39701
39702         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39703         Vandoorselaere <yoann@prelude-ids.org>.
39704
39705 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39706
39707         Changes imported from coreutils.
39708         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39709         exist.
39710         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39711
39712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39713
39714         Changes imported from coreutils.
39715         * lib/hard-locale.c: Assume <locale.h> exists.
39716         Include "strdup.h".
39717         (GLIBC_VERSION): New macro.
39718         (hard_locale): Assume setlocale exists.
39719         Rewrite to avoid #ifdef.
39720         Use strdup rather than malloc + strcpy.
39721         * lib/human.c: Assume <locale.h> exists.
39722         (human_readable): Assume localeconv exists.
39723
39724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39725
39726         * modules/hard-locale (Depends-on): Add strdup.
39727
39728 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39729
39730         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39731         convert T2, not T.  (Imported from libc.)
39732
39733 2004-11-30  Simon Josefsson  <jas@extundo.com>
39734
39735         * modules/restrict (License): Change to LGPL.
39736
39737 2004-11-30  Simon Josefsson  <jas@extundo.com>
39738
39739         * m4/restrict.m4: Add copyright and copying conditions.
39740
39741 2004-11-30  Simon Josefsson  <jas@extundo.com>
39742
39743         * m4/base64.m4: New file.
39744
39745 2004-11-30  Simon Josefsson  <jas@extundo.com>
39746
39747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39748         base64.
39749
39750         * tests/test-base64.c: New file.
39751
39752         * modules/base64: New file.
39753
39754 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39755
39756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39757         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39758
39759         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39760
39761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39764         (__getcwd.c): Don't restore errno; glibc doesn't.
39765         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39766         first, falling back to our code only if its results look suspicious.
39767         Ensure that the resulting buffer is only as large as necessary.
39768
39769         * lib/readutmp.c: Include readutmp.h first.
39770         Include <errno.h>, since readutmp.h no longer does that.
39771         * lib/readutmp.h: Don't include <errno.h>,
39772         <sys/param.h>, <time.h>; not needed to establish interface.
39773         (errno): Remove decl.
39774         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39775         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39776         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39777
39778 2004-11-28  Simon Josefsson  <jas@extundo.com>
39779
39780         * lib/base64.h, base64.c: New file.
39781
39782 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39785
39786 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39787
39788         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39789         (Depends-on): Remove pathmax, same.  Add mempcpy.
39790         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39791         (Makefile.am): Append getcwd.h to lib_SOURCES.
39792         (Include): Add getcwd.h.
39793         (Maintainer): Change from Jim Meyering to "all, glibc",
39794         since getdate now uses intended-for-glibc code.
39795         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39796         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39797
39798 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39799
39800         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39801         HP's ANSI C compiler.
39802         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39803         Declaring int functions causes warnings on some modern systems and
39804         shouldn't be needed to compile on ancient ones.
39805         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39806         defined.
39807
39808         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39809         with the following changes.
39810         (__set_errno): Parenthesize properly.
39811         Include <stdbool.h>.
39812         (MIN, MAX, MATCHING_INO): New macros.
39813         (__getcwd): Define with prototype, not K&R form.
39814         Use heuristics to allocate default buffer on stack if possible.
39815         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39816         behavior, and to avoid the PATH_MAX limit when computing
39817         ../../../../...
39818         Use MATCHING_INO to compare inode number to file.
39819         Check for arithmetic overflow in size calculations.
39820         Fix bug in reallocation of dot array that caused getcwd to fail
39821         on directories nested deeper than 75.
39822         Be more careful about saving errno on error.
39823         Do not use realloc; use only free+malloc, as this is a bit
39824         more flexible and avoids a needless copy operation.
39825         Do not inspect st_dev and st_ino for symbolic links; POSIX
39826         doesn't specify the latter.
39827         Check for closedir errors.
39828         Avoid needless casts.
39829         Use "#ifdef weak_alias" around weak_alias, to be like other
39830         glibc code.
39831         The following changes to getcwd.c have effect only when used in
39832         gnulib; they have no effect inside glibc proper.
39833         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39834         as alloca isn't used.
39835         (alloca, __alloca): Likewise.
39836         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39838         unconditionally, as gnulib assumes C89 or better.
39839         Do not include <sys/param.h>.
39840         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39841         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39842         better.
39843         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39844         Include <dirent.h> in a way that is compatible with modern Autoconf.
39845         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39846         New macros, if not already defined.
39847         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39848         Use "_LIBC", not "defined _LIBC", for consistency.
39849         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39850         a mempcpy module.
39851         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39852         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39853         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39854         credit only to Jim Meyering and adjust the copyright dates.
39855         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39856         <stdlib.h>, <unistd.h>, "pathmax.h".
39857         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39858         (INITIAL_BUFFER_SIZE): Remove.
39859         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39860
39861 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39862
39863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39864         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39865         Use the _ONCE methods, for efficiency.
39866         Check for fcntl.h.  In test program, include <errno.h>
39867         and <fcntl.h> if available.  Remove old K&R cruft from
39868         test program.  Check for common errors in GNU/Linux,
39869         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39870         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39872         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39873         name accordingly.
39874         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39875         accommodate new getcwd.c.
39876         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39878         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39879         that's all we need now.
39880
39881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39882
39883         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39884         argp-parse.c depends on getopt internals, that means we should
39885         always use our getopt, to be on the safe side.
39886         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39887         order not to spoil the result of an eventual previous invocation
39888         of gl_GETOPT_SUBSTITUTE.
39889
39890 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39891
39892         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39893         redefinition warnings. To avoid them, include the defines
39894         in `#if !defined __need_getopt ... #endif'. The only place
39895         where __getopt_argv_const is used is in definitions
39896         of getopt_long and getopt_long_only below, which are as well
39897         protected by `#ifndef __need_getopt'.
39898         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39899         __need_getopt after including <stdio.h> and <unistd.h> These
39900         headers might have defined it.
39901
39902 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39903
39904         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39905
39906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39907
39908         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39909         (futimens): New function, which uses futimes if available.
39910         (futimens, utimens): Support timespec==NULL, with same semantics
39911         as utime and utimens.
39912         * lib/utimens.h (futimens): New decl.
39913
39914 2004-11-23  Jim Meyering  <jim@meyering.net>
39915
39916         * lib/getopt_.h: Remove trailing blanks.
39917
39918 2004-11-23  Jim Meyering  <jim@meyering.net>
39919
39920         * lib/__fpending.c: Add comment.
39921
39922 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39923
39924         * modules/canonicalize (Depends-on): Add xreadlink.
39925         Problem reported by James Youngman.
39926
39927 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39928
39929         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39930         New macros.
39931         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39932         optopt): Use them instead of invoking ## directly; otherwise, the
39933         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39934
39935 2004-11-19  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/strtok_r.c: Move comments from here...
39938         * lib/strtok_r.h: ... to here.
39939
39940 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39941
39942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39943         implementations that mishandle size_t overflow.
39944
39945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39946
39947         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39948         might fail.  Problem reported by Yoann Vandoorselaere.
39949         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39950         implementations that mishandle size_t overflow.
39951
39952 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39953
39954         * modules/canon-host (Depends-on): Add strdup.
39955
39956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39957
39958         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39959
39960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39961
39962         * lib/canon-host.c: Include "strdup.h".
39963         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39964         Use strdup instead of malloc/strcpy to duplicate strings.
39965
39966         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39967         (human_space_before_unit): New constant.
39968         * lib/human.c (human_readable): Support it.
39969
39970         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39971         (xgetcwd): Set errno correctly when failing.
39972         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39973         the failure is actually due to a PATH_MAX problem.
39974
39975         Further getopt changes to make it more likely that glibc will
39976         buy the changes back.
39977         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39978         (getopt): Use it, so to preserve glibc semantic
39979         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39980         when compiling for libc.
39981         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39982         (getopt_long, getopt_long_only): Use it.
39983
39984         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39985         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39986         (getopt): Argv is now char * const *, as per standard.
39987         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39988         not char *__getopt_argv_const *.
39989         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39990         _getopt_long_only_r): Likewise.
39991         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39993         _getopt_long_r, _getopt_long_only_r): Likewise.
39994         * lib/getopt_.h (__getopt_argv_const): Remove.
39995         (getopt): Argv is now char * const *, as per standard.
39996
39997         * lib/getdate.y (tORDINAL): New token.
39998         (day, relunit): Allow it for relative times.
39999         (relative_time_table): Use tORDINAL for ordinals.
40000
40001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40002
40003         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
40004         Document that "second" isn't allowed as an ordinal number.
40005
40006 2004-11-16  Jim Meyering  <jim@meyering.net>
40007
40008         * modules/closeout (Depends-on): Add fpending.
40009
40010 2004-11-15  Jim Meyering  <jim@meyering.net>
40011
40012         * lib/closeout.c: Include "__fpending.h" once again.
40013         Include <stdbool.h>.
40014         (close_stdout): Don't fail just because stdout was closed initially,
40015         since some programs don't write to stdout in the normal course of
40016         operation (other than --version and --help), and we don't want this
40017         function to make e.g. `touch file >&-' fail.
40018         But do fail if it was closed and someone has tried to write to it.
40019         E.g., `printf foo >&-' must fail.
40020
40021 2004-11-13  Jim Meyering  <jim@meyering.net>
40022
40023         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
40024
40025 2004-11-12  Simon Josefsson  <jas@extundo.com>
40026
40027         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
40028         small doc fix is still pending.
40029
40030 2004-11-11  Simon Josefsson  <jas@extundo.com>
40031
40032         * modules/strtok_r: New file.
40033
40034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40035         strtok_r.
40036
40037 2004-11-11  Simon Josefsson  <jas@extundo.com>
40038
40039         * m4/strtok_r.m4: New file.
40040
40041         * m4/getopt.m4: Replace opterr.
40042
40043 2004-11-11  Simon Josefsson  <jas@extundo.com>
40044
40045         * lib/strtok_r.h, strtok_r.c: New file.
40046
40047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40048
40049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
40050         of replacing opterr, getopt, etc.  This should handle the
40051         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
40052
40053 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40054
40055         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
40056         we can stop lying to compilers about the constness of argv when we
40057         are compiled outside glibc.
40058         (getopt, getopt_long, getopt_long_only): Use it.
40059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
40060         _getopt_internal, getopt): Likewise.
40061         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
40062         _getopt_long_only_r): Likewise.
40063         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
40064         _getopt_long_r, _getopt_long_only_r): Likewise.
40065
40066         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
40067         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
40068         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
40069         the other external symbols.
40070         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
40071         declaration, since the above renaming now works around collisions.
40072
40073 2004-11-11  Jim Meyering  <jim@meyering.net>
40074
40075         * lib/linebreak.c: Remove trailing blanks.
40076         * lib/alloca_.h: Likewise.
40077         * lib/acosl.c: Likewise.
40078         * lib/euidaccess.c: Likewise.
40079         * lib/allocsa.h: Likewise.
40080
40081 2004-11-10  Simon Josefsson  <jas@extundo.com>
40082
40083         * m4/getaddrinfo.m4: New file.
40084
40085 2004-11-10  Simon Josefsson  <jas@extundo.com>
40086
40087         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
40088
40089 2004-11-10  Simon Josefsson  <jas@extundo.com>
40090
40091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40092         getaddrinfo.
40093
40094         * modules/getaddrinfo: New file.
40095
40096 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40097
40098         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
40099
40100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40101
40102         * lib/mktime.c (SHR): New macro, which is a portable
40103         substitute for >> that should work even on Crays.
40104         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
40105         Problem reported by Mark D. Baushke in
40106         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
40107         * lib/getdate.y (SHR): Likewise.
40108         (tm_diff): Use it.
40109         * lib/strftime.c (SHR): Likewise.
40110         (tm_diff): Use it.
40111         * lib/quotearg.c (struct quoting_options): Use unsigned int for
40112         quote_these_too, so that right shifts are well defined.  All uses
40113         changed.
40114
40115 2004-11-10  Jim Meyering  <jim@meyering.net>
40116
40117         Ensure that no close failure goes unreported.
40118         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
40119         return early when it seems there's nothing to flush.
40120         Don't include __fpending.h.
40121
40122 2004-11-10  Jim Meyering  <jim@meyering.net>
40123
40124         * modules/closeout (Depends-on): Remove fpending.
40125
40126 2004-11-10  Jim Meyering  <jim@meyering.net>
40127
40128         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
40129
40130 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40131
40132         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
40133         gl_FUNC_STRFTIME.
40134         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
40135         and AC_REQUIRE when possible, to avoid duplicate checks.
40136         Check for <wchar.h>.
40137
40138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
40141
40142 2004-11-09  Bruno Haible  <bruno@clisp.org>
40143
40144         * m4/sockpfaf.m4: New file.
40145
40146 2004-11-05  Bruno Haible  <bruno@clisp.org>
40147
40148         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
40149         Reported by Mark D. Baushke <mdb@cvshome.org>.
40150
40151 2004-11-04  Bruno Haible  <bruno@clisp.org>
40152
40153         2004-09-11  Bruno Haible  <bruno@clisp.org>
40154                 * allocsa.valgrind: New file.
40155         2004-02-06  Bruno Haible  <bruno@clisp.org>
40156                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
40157                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
40158                 Reported by Christopher Seip <chris.seip@hp.com>.
40159
40160 2004-11-04  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/allocsa (Files): Add lib/allocsa.valgrind.
40163         (Makefile.am): Distribute it.
40164
40165 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40166
40167         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
40168         with errno == ERANGE if the buffer is too small.
40169         Problem reported by Mark D. Baushke.
40170
40171 2004-11-03  Albert Chin  <china@thewrittenword.com>
40172             Paul Eggert  <eggert@cs.ucla.edu>
40173
40174         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
40175         equivalent, substitute $ac_type for equivalent type rather than
40176         blindly using uint32_t *always* which won't work if uint32_t is not
40177         available.  Define _UINT32_T to work around typedef of uint32_t if
40178         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
40179         2.5.1.
40180
40181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40182
40183         * m4/jm-macros.m4: Sync from coreutils.
40184         (gl_MACROS): Check for mbrlen, for pathchk.
40185         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
40186
40187 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40188
40189         * lib/xreadlink.c (MAXSIZE): New macro.
40190         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
40191         size does not exceed MAXSIZE.  Avoid cast.
40192         As suggested by Mark D. Baushke in
40193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
40194         if readlink fails with buffer size just under MAXSIZE, try again
40195         with MAXSIZE.
40196
40197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40198
40199         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
40200
40201 2004-11-02  Derek R. Price  <derek@ximbiot.com>
40202         and  Paul Eggert  <eggert@cs.ucla.edu>
40203
40204         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
40205         (get_date): Overparenthesize to avoid GCC warning.
40206
40207 2004-11-02  Bruno Haible  <bruno@clisp.org>
40208
40209         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
40210         returns void.
40211
40212 2004-11-02  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
40215         function returns void.
40216
40217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40218
40219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
40220         fflush_unlocked, flockfile, funlockfile, funlockfile,
40221         fputs_unlocked, putc_unlocked.
40222
40223 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40224
40225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40226         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
40227         already declared.
40228
40229 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40230
40231         * modules/getdate (Files): Add doc/getdate.texi.
40232         (Depends-on): Add setenv, xalloc.
40233
40234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40235
40236         * lib/getdate.y: Add support for TZ="foo" within a date string.
40237         Fix some bugs near time_t boundaries.  Reject dates with
40238         out-of-range components, e.g., "Sept 31".
40239         Include <stdlib.h>, "setenv.h", "xalloc.h".
40240         (ISDIGIT_LOCALE): Remove; unused.
40241         Note that the TZ and time functions used here are not reentrant.
40242         (mktime_ok, get_tz): New functions.
40243         (TZBUFSIZE): New constant.
40244         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
40245         This requires that we sometimes generate our own TZ="XXX..." setting.
40246
40247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40248
40249         * doc/getdate.texi: New file, from coreutils with modifications for
40250         the new TZ parsing.
40251
40252 2004-10-27  Derek R. Price  <derek@ximbiot.com>
40253
40254         * lib/mktime.c (not_equal_tm): Remove redundant check.
40255
40256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40257
40258         * modules/regex (lib_SOURCES): Add regex.c.
40259         Reported by James Youngman in
40260         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
40261
40262 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40263
40264         * lib/getdate.y: Use Bison 1.875 features, and some minor
40265         code cleanups.  This change does not affect semantics.
40266         Don't include <stdlib.h>; no longer needed.
40267         Don't include unlocked-io.h; only the "#if TEST" code uses
40268         stdio, and performance isn't crucial there.
40269         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
40270         Bison 1.875 features as described below.
40271         All uses of "PC." replaced by "pc->".
40272         (YYSTYPE): Add a forward declaration.
40273         (yylex, yyerror): Use full prototypes in forward decls.
40274         Use "%pure-parser" rather than obsolescent "%pure_parser".
40275         Use %parse-param and %lex-param instead of obsolescent
40276         YYPARSE_PARAM and YYLEX_PARAM.
40277         (meridian_table, month_and_day_table, time_units_table,
40278         relative_time_table, time_zone_table, military_table,
40279         lookup_zone, lookup_word, get_date):
40280         Use NULL instead of 0 where appropriate.
40281         (to_hour): Avoid abort (), to avoid a dependency on
40282         stdlib.h.
40283         (yyerror, yylex): Now accepts parser_control * arg.
40284         (main) [TEST]: Use '\0' rather than 0 for char.
40285
40286 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40287
40288         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
40289
40290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40291
40292         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
40293         It's now the caller's responsibility to handle the case where
40294         !HAVE_GETPAGESIZE && !defined getpagesize.
40295
40296         * lib/mktime.c (leapyear): Arg is long int, not int.
40297
40298 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
40299
40300         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
40301
40302 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
40305         missing.  Problem reported by James Youngman.
40306
40307 2004-10-16  Simon Josefsson  <jas@extundo.com>
40308
40309         * gnulib-tool: Fix comments.  Fix parse problem.
40310         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
40311
40312 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
40313
40314         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
40315         implementation of getopt_long.  Problem reported by Alexander Taler in:
40316         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
40317
40318 2004-10-15  Bruno Haible  <bruno@clisp.org>
40319
40320         * gnulib-tool: Untabify. Initialize supplied_libname.
40321         (func_usage): More homogenous output.
40322         (func_modules_transitive_closure, func_modules_to_filelist,
40323         func_emit_lib_Makefile_am): New functions.
40324         (func_import): New function, extracted from big case statement. Use
40325         func_get_license, func_modules_transitive_closure,
40326         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
40327         opt_lgpl. Don't use test -a, as it's not portable.
40328         (func_create_testdir): Use func_modules_transitive_closure,
40329         func_modules_to_filelist, func_emit_lib_Makefile_am.
40330
40331 2004-10-15  Bruno Haible  <bruno@clisp.org>
40332
40333         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
40334
40335 2004-10-15  Bruno Haible  <bruno@clisp.org>
40336
40337         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
40338         the portions belonging to each module.
40339         Suggested by Derek Robert Price <derek@ximbiot.com>.
40340
40341 2004-10-12  Simon Josefsson  <jas@extundo.com>
40342
40343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40344         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
40345         to real functions.
40346
40347 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40348
40349         * modules/vsnprintf: New file.
40350
40351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40352
40353         * m4/vsnprintf.m4: New file.
40354
40355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40356
40357         * lib/vsnprintf.h: New file.
40358         * lib/vsnprintf.c: New file.
40359
40360 2004-10-11  Bruno Haible  <bruno@clisp.org>
40361
40362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
40363         vsnprintf.
40364
40365 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40366
40367         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
40368
40369 2004-10-07  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
40372         fits into the provided buffer.
40373
40374 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * lib/diacrit.c, diacrit.h: Add GPL notice.
40377
40378         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
40379         notice.
40380         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
40381         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
40382         This avoids a potential constant-folding bug.
40383
40384 2004-10-05  Bruno Haible  <bruno@clisp.org>
40385
40386         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
40387         for the declaration of strsep.
40388
40389 2004-10-05  Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
40392
40393 2004-10-04  Simon Josefsson  <jas@extundo.com>
40394
40395         * modules/memmem: New file.
40396         * tests/test-memmem.c: New file.
40397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
40398
40399 2004-10-04  Simon Josefsson  <jas@extundo.com>
40400
40401         * m4/memmem.m4: New file.
40402
40403 2004-10-04  Simon Josefsson  <jas@extundo.com>
40404
40405         * lib/memmem.h: New file.
40406         * lib/memmem.c: New file, taken from glibc.
40407
40408 2004-10-04  Simon Josefsson  <jas@extundo.com>
40409
40410         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
40411         '#ifdef USE_UNLOCKED_IO'.
40412
40413 2004-10-04  Simon Josefsson  <jas@extundo.com>
40414
40415         * config/srclist.txt: Add memmem from glibc.
40416
40417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40418
40419         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
40420
40421         * modules/argmatch, modules/argp, modules/closeout, modules/error,
40422         modules/exclude, modules/getdate, modules/getline,
40423         modules/getndelim2, modules/getpass, modules/getpass-gnu,
40424         modules/getusershell, modules/linebuffer, modules/md5,
40425         modules/mountlist, modules/posixtm, modules/readtokens,
40426         modules/readutmp, modules/regex, modules/sha1,
40427         modules/version-etc, modules/yesno:
40428         Remove dependency on unlocked-io.
40429
40430 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40431
40432         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
40433
40434         * m4/unlocked-io.m4: Add copyright notice.
40435         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
40436
40437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
40440         * lib/xmalloc.c (xmemdup): Likewise.
40441         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
40442         XFREE): Remove these long-obsolescent macros.
40443         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
40444         * lib/xstrdup.c: Remove.
40445
40446         * lib/regex.c (re_comp): Cast gettext return value to char *,
40447         Problem reported by Martin Neitzel via Mark D. Baushke.
40448
40449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40450
40451         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
40452         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
40453         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
40454         regex.c, sha1.c, version-etc.c, yesno.c:
40455         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
40456         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
40457         the includer's responsibility.
40458
40459         Sync from coreutils.
40460
40461         * lib/modechange.c (mode_compile): Don't decrement a pointer that
40462         points to the start of a string, as the C Standard says the
40463         resulting behavior is undefined.
40464
40465         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
40466         simple -> simple_backups, numbered_existing ->
40467         numbered_existing_backups, numbered -> numbered_backups
40468         to avoid shadowing problems.  All uses changed.
40469         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
40470         * lib/backupfile.c (check_extension, numbered_backup):
40471         Rename locals to avoid shadowing 'basename'.
40472         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
40473         once.
40474
40475         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
40476         * lib/.cvsignore: Add getopt.h.
40477
40478 2004-10-04  Bruno Haible  <bruno@clisp.org>
40479
40480         * modules/README: New file.
40481         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
40482         not a module.
40483
40484 2004-10-02  Jim Meyering  <jim@meyering.net>
40485
40486         * lib/dirfd.h, getpagesize.h: Add copyright notice.
40487
40488 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40489
40490         * modules/strsep: New file.
40491
40492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40493
40494         * m4/strsep.m4: New file.
40495
40496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40497
40498         * lib/strsep.h: New file.
40499         * lib/strsep.c: New file.
40500
40501 2004-10-01  Simon Josefsson  <jas@extundo.com>
40502
40503         * lib/snprintf.c (snprintf): Handle size==0.
40504
40505 2004-10-01  Simon Josefsson  <jas@extundo.com>
40506             Bruno Haible  <bruno@clisp.org>
40507
40508         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
40509         (snprintf): Declare 'args'.
40510
40511 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
40512
40513         * lib/snprintf.c: Remove comments as to why each header is needed.
40514
40515 2004-10-01  Bruno Haible  <bruno@clisp.org>
40516
40517         * MODULES.html.sh: Add strsep.
40518
40519 2004-09-30  Simon Josefsson  <jas@extundo.com>
40520
40521         * modules/snprintf: New file.
40522
40523 2004-09-30  Simon Josefsson  <jas@extundo.com>
40524
40525         * m4/snprintf.m4: New file.
40526
40527 2004-09-30  Simon Josefsson  <jas@extundo.com>
40528
40529         * lib/snprintf.h, lib/snprintf.c: New files.
40530
40531 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40532
40533         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
40534         (hol_entry_help): Never translate an empty string.
40535         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
40536         * lib/argp.h (OPTION_NO_TRANS): New option.
40537
40538 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40539
40540         * modules/argp (Maintainer): Replace Simon Josefsson
40541         by Sergey Poznyakoff.
40542
40543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40544
40545         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
40546         changes merged back into glibc.
40547
40548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40549
40550         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40551
40552 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40553
40554         * lib/xvasprintf.c: Include xalloc.h.
40555         (xvasprintf): Use xalloc_die, not xmalloc_die.
40556
40557 2004-09-29  Bruno Haible  <bruno@clisp.org>
40558
40559         * modules/alloca-opt: New file, derived from modules/alloca.
40560         * modules/allocsa: Depend on alloca-opt instead of alloca.
40561         * modules/setenv: Likewise.
40562         * modules/vasnprintf: Likewise.
40563         * MODULES.html.sh: Add alloca-opt.
40564
40565 2004-09-28  Simon Josefsson  <jas@extundo.com>
40566
40567         * gnulib-tool: New parameter --lgpl, to asseert that modules are
40568         LGPL, and to replace license template from GPL to LGPL.
40569
40570 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40571
40572         * modules/dummy: Change license to LGPL.
40573
40574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40575
40576         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40577
40578 2004-09-24  Simon Josefsson  <jas@extundo.com>
40579
40580         * modules/minmax (License): Change from GPL to LGPL.
40581
40582 2004-09-23  Simon Josefsson  <jas@extundo.com>
40583
40584         * gnulib-tool (--import): Typo.
40585
40586 2004-09-23  Simon Josefsson  <jas@extundo.com>
40587
40588         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40589
40590 2004-09-22  Bruno Haible  <bruno@clisp.org>
40591
40592         * modules/*: Add 'License' field.
40593         * gnulib-tool: Accept --extract-license option.
40594         (func_get_license): New function.
40595
40596 2004-09-21  Bruno Haible  <bruno@clisp.org>
40597
40598         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40599         Reported by Simon Josefsson.
40600
40601 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40602
40603         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40604         gl_AC_TYPE_LONG_LONG.
40605
40606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40607
40608         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40609
40610 2004-09-18  Simon Josefsson  <jas@extundo.com>
40611         and  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40614         calls with autoreconf.  Define GL_LIB.
40615
40616 2004-09-14  Karl Berry  <karl@gnu.org>
40617
40618         * config/srclist.txt: unsync setenv.c, sigh.
40619
40620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40621
40622         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40623         Problem reported by Bruno Haible in:
40624         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40625
40626 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40627
40628         * config/srclist.txt: Comment out argp-pvh.c.
40629
40630 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40631
40632         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40633         in case some system header has #define'd it.  Problem reported by
40634         Soeren D. Schulze in
40635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40636
40637 2004-09-09  Karl Berry  <karl@gnu.org>
40638
40639         * regex.[ch]: delete from the root.  These were supposed to be
40640                 synced with emacs cvs, but this has not happened for about
40641                 a year, and anyway nothing else uses emacs regex.[ch].
40642                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40643                 lib/regex[.ch] is untouched.
40644
40645 2004-09-09  Bruno Haible  <bruno@clisp.org>
40646
40647         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40648
40649 2004-09-09  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40652         modifications.
40653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40654
40655 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40656
40657         * modules/xvasprintf: New file.
40658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40659
40660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40661
40662         * lib/xvasprintf.h: New file.
40663         * lib/xvasprintf.c: New file.
40664         * lib/xasprintf.c: New file.
40665
40666 2004-09-08  Bruno Haible  <bruno@clisp.org>
40667
40668         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40669
40670 2004-09-08  Bruno Haible  <bruno@clisp.org>
40671
40672         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40673         length is > INT_MAX.
40674         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40675         more.
40676
40677 2004-09-08  Bruno Haible  <bruno@clisp.org>
40678
40679         * lib/stdint_.h: New file, taken from GNU clisp.
40680
40681 2004-09-08  Bruno Haible  <bruno@clisp.org>
40682             Oskar Liljeblad  <oskar@osk.mine.nu>
40683
40684         * modules/stdint: New file.
40685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40686
40687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40688
40689         Import from coreutils.
40690         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40691         strings on unbounded length.  alloca's performance benefits aren't
40692         that important here.
40693         (V_STRDUP): Remove.
40694         (parse_with_separator): New function, with most of the internals
40695         of the old parse_user_spec.  Allow user to omit both user and group,
40696         for compatibility with FreeBSD.
40697         Clone only the user name, not the entire spec.
40698         Do not set *uid, *gid unless entirely successful.
40699         Avoid memory leak in some failing cases.
40700         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40701         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40702         (parse_user_spec): Rewrite to use parse_with_separator.
40703
40704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40705
40706         * modules/userspec: Don't depend on alloca.
40707
40708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40709
40710         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40711
40712 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40713
40714         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40715         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40716         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40717
40718 2004-08-16  Simon Josefsson  <jas@extundo.com>
40719
40720         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40721         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40722         Add --dry-run for --import.
40723         Let user provided command line parameters override configure.ac
40724         settings.
40725
40726 2004-08-12  Simon Josefsson  <jas@extundo.com>
40727
40728         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40729         as discussed with Paul Eggert in threads rooted at
40730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40731         and
40732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40733         Before, the test was empty, and relied on ELIDE_CODE in source
40734         code.)
40735         (gl_PREREQ_GETOPT): New macro.
40736         (gl_GETOPT): Use them.
40737
40738 2004-08-12  Simon Josefsson  <jas@extundo.com>
40739
40740         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40741         * lib/getopt_.h: Renamed from getopt.h.
40742
40743 2004-08-12  Simon Josefsson  <jas@extundo.com>
40744
40745         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40746         Change default library name from libfoo to libgnu.
40747         Now, if you have a configure.ac that says:
40748                 gl_SOURCE_BASE(gl)
40749                 gl_M4_BASE(gl/m4)
40750                 gl_MODULES(error getopt etcetera)
40751                 gl_INIT
40752         you can import all you need by running:
40753                 ../gnulib/gnulib-tool --import
40754
40755         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40756         (Makefile.am): Rewrite, use logic from argz.
40757         (Include): Use <getopt.h> instead of "getopt.h".
40758
40759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40760
40761         * modules/argp (Files): Add m4/unlocked-io.m4.
40762         (Depends-on): Add extensions.
40763
40764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40765
40766         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40767         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40768         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40769         Check for program_invocation_name, program_invocation_short_name,
40770         flockfile, funlockfile, features.h, _getopt_long_only_r.
40771
40772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40773
40774         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40775         its complicated substitute.
40776         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40777         and program_invocation_name.
40778         (__argp_basename) [!_LIBC]: Remove; the only use was
40779         replaced by its body.
40780         (__argp_short_program_name): Change condition from
40781         !defined __argp_short_program_name to
40782         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40783         to match argp-namefrob.h.
40784         (__argp_failure): Don't assume strerror_r returns char *.
40785         * lib/argp-parse.c (N_): Define unconditionally.
40786         (argp_default_options): Fill out initializers with 0 to avoid
40787         gcc warnings.
40788
40789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40790
40791         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40792         getopt1.c.
40793
40794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40795
40796         Merge from coreutils.
40797
40798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40799
40800         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40801         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40802
40803 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40804
40805         Merge from coreutils.
40806
40807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40808         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40809         for Reliant Unix 5.43.
40810
40811         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40812         (union fooround): Use uintmax_t, not long int.
40813         The rest is a merge from libc:
40814         [defined _LIBC]: Include <shlib-compat.h>.
40815         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40816
40817         * lib/settime.c (settime): Recode to avoid warning with
40818         Sun Forte C 6U2.
40819
40820         * lib/strverscmp.c: Convert to UTF-8.
40821
40822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40823
40824         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40825         m4/uintmax_t.m4.
40826
40827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40828
40829         * modules/xalloc-die: New file.
40830         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40831
40832         * modules/md5 (Files): Add m4/uint32_t.m4.
40833         * modules/sha1: Renamed from modules/sha.
40834         (Files):
40835         Rename lib/sha.h to lib/sha1.h.
40836         Rename lib/sha.c to lib/sha1.c.
40837         Rename m4/sha.m4 to m4/sha1.m4.
40838         (lib_SOURCES): Likewise.
40839         (configure.ac): Rename gl_SHA to gl_SHA1.
40840         (Include): sha.h -> sha1.h.
40841
40842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40843
40844         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40845         * m4/sha1.m4: Renamed from sha.m4.
40846         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40847
40848 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40849
40850         * lib/obstack.h (obstack_empty_p):
40851         Don't assume that chunk->contents is suitably aligned.
40852         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40853         Likewise. Problem reported by Benno in
40854         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40855
40856         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40857         readable.  This could be improved further but it'd take some work.
40858
40859 2004-08-08  Simon Josefsson  <jas@extundo.com>
40860
40861         * modules/xgethostname (Depends-on): Remove exit and error (not
40862         used).
40863
40864         * modules/getpass-gnu: Add getpass.h.
40865         (Depends-on): Add stdbool.
40866         * modules/getpass: Add getpass.h.
40867
40868 2004-08-08  Simon Josefsson  <jas@extundo.com>
40869
40870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40871         Check getpass declaration.
40872
40873 2004-08-08  Simon Josefsson  <jas@extundo.com>
40874
40875         * lib/xgethostname.c: Don't include error.h (not used).
40876
40877         * lib/getpass.h: Add.
40878         * lib/getpass.c: Include getpass.h first.
40879
40880 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40881
40882         * lib/xalloc-die.c: New file.
40883         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40884         All uses removed.
40885         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40886         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40887         xalloc-die.c.
40888         (_, N_, xalloc_die): Move to xalloc-die.c.
40889         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40890         so that we needn't mess with xalloc_msg_memory_exhausted.
40891
40892         * lib/sha1.h: Renamed from sha.h.
40893         (SHA1_H): Renamed from _SHA_H.
40894         (sha1_ctx): Renamed from sha_ctx.
40895         (sha1_init_ctx): Renamed from sha_init_ctx.
40896         (sha1_process_block): Renamed from sha_process_block.
40897         (sha1_process_bytes): Renamed from sha_process_bytes.
40898         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40899         (sha1_read_ctx): Renamed from sha_read_ctx.
40900         (sha1_stream): Renamed from sha_stream.
40901         (sha1_buffer): Renamed from sha_buffer.
40902         * lib/sha1.c: Likewise; renamed from sha.c.
40903         Do not include <sys/types.h>.
40904         Include <stddef.h> rather than <stdlib.h>.
40905
40906 2004-08-08  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40909         FILESYSTEM_PREFIX_LEN.
40910         * lib/progreloc.c: Likewise.
40911         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40912
40913 2004-08-06  Simon Josefsson  <jas@extundo.com>
40914
40915         * modules/progname (Depends-on): Don't depend on stdbool.
40916
40917 2004-08-06  Simon Josefsson  <jas@extundo.com>
40918
40919         * modules/getsubopt: New file.
40920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40921         getsubopt.
40922
40923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40924
40925         More merge from coreutils.
40926
40927         * m4/utimens.m4, m4/utimecmp.m4: New files.
40928         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40929         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40930         prereq.m4, sha.m4: Import changes from coreutils.
40931
40932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40933
40934         More merge from coreutils.
40935         * modules/raise, modules/readtokens0, modules/utimens:
40936         * modules/utimecmp, module/xnanosleep: New files.
40937         * modules/strftime: Add lib/strftime.h.
40938         Change include from <time.h> to "strftime.h".
40939         * modules/yesno: Add lib/yesno.h.
40940         * modules/backupfile: Remove lib/addext.c.
40941         * modules/euidaccess: Add stat-macros.h.
40942         * modules/canonicalize, modules/euidaccess,
40943         modules/filemode, modules/lchown, modules/makepath,
40944         modules/rmdir, modules/stat: Likewise.
40945
40946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40947
40948         Merge from tar.
40949         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40950         SIZE_MAX is a valid preprocessor constant.
40951         (__argp_basename): Change from "#ifndef _LIBC"
40952         to "#ifndef __argp_short_program_name", so that
40953         we don't compile these functions for tar.
40954
40955         More merges from coreutils.
40956         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40957         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40958         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40959         * lib/addext.c: Remove; no longer needed.
40960         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40961         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40962         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40963         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40964         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40965         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40966         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40967         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40968         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40969         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40970         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40971         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40972         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40973         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40974         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40975         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40976         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40977         Import changes from coreutils.
40978
40979 2004-08-05  Simon Josefsson  <jas@extundo.com>
40980
40981         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40982
40983 2004-08-05  Simon Josefsson  <jas@extundo.com>
40984
40985         * m4/getsubopt.m4: New file.
40986
40987 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40988
40989         Merge from coreutils.
40990
40991         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40992         * m4/getcwd-path-max.m4: New files.
40993
40994         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40995         FILESYSTEM_PREFIX_LEN ->
40996         FILE_SYSTEM_PREFIX_LEN.
40997         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40998         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40999         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
41000         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
41001
41002         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
41003         prerequisite modules now handle the DOS stuff.
41004         Don't check for unistd.h.
41005
41006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         Merge from coreutils.
41009
41010         * lib/.gdb-history: Remove; this doesn't belong here.
41011
41012         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
41013         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
41014         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
41015         * lib/getcwd.c: New files.
41016
41017         * lib/dirname.h: Include <stdbool.h>.
41018         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
41019         for consistency with POSIX terminology.  All uses changed.
41020         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
41021         (strip_trailing_slashes): Use bool for booleans.
41022         * lib/stripslash.c (strip_trailing_slashes): Likewise.
41023
41024         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
41025         sometimes returns a positive errno value even when it succeeds.
41026         (print_errno_message) [!LIBC]: Fall back on strerror if
41027         __strerror_r fails.
41028
41029         * lib/path-concat.c (mempcpy): Don't define if a system header defines
41030         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
41031         (longest_relative_suffix): New function.
41032         (path_concat): Use it.  Assume first argument is not NULL.
41033         Port to DOS.  Omit redundant separators.
41034         Report an error instead of returning NULL.
41035         Use mempcpy instead of memcpy.
41036         (xpath_concat): Remove: not declared or used.
41037
41038         * lib/same.h: Include <stdbool.h>
41039         (same_name): Return bool, not int.
41040         * lib/same.c (same_name): Likewise.
41041         (errno): Don't declare; we assume C89 or better now.
41042
41043         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
41044         if not already defined.
41045
41046         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
41047         * lib/dup-safer.c (errno): Likewise.
41048
41049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41050
41051         Merge from coreutils.
41052         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
41053         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
41054         * modules/path-concat: Don't depend on strdup.
41055
41056 2004-08-03  Simon Josefsson  <jas@extundo.com>
41057
41058         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
41059         * lib/progname.h: Don't include stdbool.h.
41060
41061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41062
41063         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
41064         * MODULES.html.sh (func_all_modules): Remove fatal.
41065
41066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41067
41068         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
41069
41070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41071
41072         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
41073         working.
41074
41075 2004-08-02  Simon Josefsson  <jas@extundo.com>
41076
41077         * lib/getsubopt.h: New file, with comments from Bruno Haible.
41078         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
41079         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
41080
41081 2004-08-01  Simon Josefsson  <jas@extundo.com>
41082
41083         * lib/xgetdomainname.c: Include stdlib.h, for free().
41084
41085 2004-07-19  Bruno Haible  <bruno@clisp.org>
41086
41087         * MODULES.html.sh (func_all_modules): Add dummy.
41088
41089 2004-07-16  Simon Josefsson  <jas@extundo.com>
41090
41091         * modules/dummy: New file.
41092
41093 2004-07-16  Simon Josefsson  <jas@extundo.com>
41094
41095         * lib/dummy.c: New file.
41096
41097 2004-07-16  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/backupfile.h: Add extern "C" for C++.
41100         * lib/closeout.h: Likewise.
41101         * lib/copy-file.h: Likewise.
41102         * lib/findprog.h: Likewise.
41103         * lib/full-write.h: Likewise.
41104         * lib/pathname.h: Likewise.
41105         * lib/progname.h: Likewise.
41106         * lib/stpcpy.h: Likewise.
41107         * lib/stpncpy.h: Likewise.
41108         * lib/strcase.h: Likewise.
41109         * lib/strstr.h: Likewise.
41110         * lib/xalloc.h: Likewise.
41111
41112         * lib/mbswidth.h: Add extern "C" for C++.
41113         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
41114
41115 2004-07-13  Robert Millan  <robertmh@gnu.org>
41116
41117         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
41118
41119 2004-07-09  Simon Josefsson  <jas@extundo.com>
41120
41121         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
41122         failed without this.)
41123
41124 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41125
41126         * modules/chown (Files): Add lib/fchown-stub.c, since
41127         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
41128
41129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41130
41131         * lib/fchown-stub.c: New file.
41132
41133 2004-06-24  Jim Meyering  <jim@meyering.net>
41134
41135         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
41136
41137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41138
41139         * modules/argz: Omit "#include".
41140
41141         * MODULES.html.sh (func_all_modules): Add calloc, to match
41142         2004-06-01 addition of calloc module.
41143
41144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41145
41146         * m4/argz.m4: New file, which is autoupdated from libtool.
41147
41148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41149
41150         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
41151         libtool.
41152
41153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41154
41155         * config/srclist-update: Don't insist on "USA." before the
41156         close-comment, as libtool omits the period and puts the */ on a
41157         separate line.
41158         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
41159         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
41160
41161 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
41162
41163         * modules/argz: New file.
41164         * MODULES.html.sh (func_all_modules): Add argz.
41165
41166 2004-06-12  Jim Meyering  <jim@meyering.net>
41167         and  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * modules/hash (Files): Add lib/xalloc.h.
41170         * modules/pipe (Depends-on): Add wait-process.
41171         * modules/stat (Depends-on): Add xalloc.
41172         * modules/userspec (Files): Add lib/userspec.h.
41173         * modules/xstrto
41174
41175         Upgrade from gettext-0.13.
41176         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
41177         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
41178         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
41179
41180 2004-06-10  Jim Meyering  <jim@meyering.net>
41181
41182         * lib/calloc.c: New file.
41183
41184 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41185
41186         * lib/getdate.y (yylex): Allow space between sign and number.
41187         Problem reported by Dan Jacobson.
41188
41189 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41190
41191         Merge from coreutils CVS.
41192
41193         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
41194         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
41195         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
41196         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
41197         xstrtol.m4: Fix copyright date and/or serial number.
41198
41199         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
41200         See if we need an fchown replacement.
41201         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
41202         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
41203         and use the replacement function if we detect either defect.
41204
41205         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
41206         gl_UTIMECMP.
41207
41208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41209         and  Jim Meyering  <jim@meyering.net>
41210
41211         Merge from coreutils CVS.
41212
41213         * lib/stat-macros.h: New file, with contents from file-type.h
41214         and coreutils' system.h.
41215         * lib/file-type.c: Include "stat-macros.h".
41216         * lib/file-type.h (file_type): Move all macro definitions to new file,
41217         stat-macros.h.
41218
41219         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
41220         Wrap old code with this conditional.
41221         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
41222         function that does not dereference symlinks.
41223         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
41224
41225         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
41226         dependency problems.
41227         (xreadlink): Accept new arg SIZE, for efficiency.
41228         All decls and uses changed.
41229         * lib/xreadlink.h: Include <stddef.h>, for size_t.
41230
41231         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
41232         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
41233
41234         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
41235         sysexits.h.
41236
41237 2004-06-01  Jim Meyering  <jim@meyering.net>
41238
41239         * m4/calloc.m4: New file.
41240
41241 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
41242
41243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
41244         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
41245         Also, fix a typo in a diagnostic.
41246
41247 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41248
41249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
41250         or AC_FUNC_REALLOC.
41251
41252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41253
41254         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
41255         macros to be defined.
41256         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
41257         the allocator returns NULL because the requested size is zero.
41258
41259 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41260
41261         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
41262         var.  Add comment explaining why libc still defines it.  This
41263         merges the following patch from glibc:
41264         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
41265
41266 2004-05-20  Andreas Schwab  <schwab@suse.de>
41267
41268         * m4/free.m4: Replace free if it not known to work, not the other
41269         way round.
41270
41271 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
41272
41273         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
41274         present in glibc since revision 1.1 of this file.
41275         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
41276         obstack_alignment_mask, obstack_alloc, obstack_base,
41277         obstack_blank, obstack_blank_fast, obstack_chunk_size,
41278         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
41279         obstack_grow0, obstack_init, obstack_int_grow,
41280         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
41281         obstack_next_free, obstack_object_size, obstack_ptr_grow,
41282         obstack_ptr_grow_fast, obstack_room): Remove declarations of
41283         nonexistent functions.
41284
41285 2004-05-18  Karl Berry  <karl@gnu.org>
41286
41287         * config/srclist.txt: break link for vasnprintf.c.
41288
41289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41290
41291         Port obstack to the AS/400, where pointers are 16 bytes wide and
41292         you cannot cast an integer to a valid pointer.  This patch is
41293         currently waiting to be integrated into glibc; see
41294         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
41295
41296         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
41297         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
41298         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
41299         (struct obstack): temp member is now a union of a pointer and
41300         an integer, instead of an integer.  All integer uses changed.
41301         This does not affect the physical layout of struct obstack,
41302         except on hosts (like the AS/400) where the size or alignment of
41303         void * is greater than that of ptrdiff_t.
41304         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
41305         __STDC__)]: Store temporary in pointer member of union, not
41306         integer member.
41307         * lib/obstack.c: Include <stddef.h>, for offsetof.
41308         (struct fooalign): Remove; it doesn't need a name.
41309         (union fooround): Change double to long double, and add void *.
41310         (DEFAULT_ALIGNMENT): Use offsetof to compute.
41311         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
41312         not a macro.  Hence the values are always int; so remove all
41313         casts-to-int in uses.
41314
41315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
41318         we can get this patch merged into glibc.
41319
41320 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41321             Paul Eggert  <eggert@cs.ucla.edu>
41322
41323         * m4/argp: Depend on alloca.
41324
41325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41326             Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
41329         freecoding.
41330
41331 2004-05-17  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
41334         precision that consists of a '.' followed by an empty digit string.
41335         Patch by Tor Lillqvist <tml@iki.fi>.
41336
41337 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41338
41339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
41340         for backward compatibility with older code.  We need our own
41341         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
41342         it under some other name, and our alloca.h will define it.
41343
41344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41345             Derek Price  <derek@ximbiot.com>
41346
41347         * lib/alloca.c: Include <alloca.h>, to get our interface.
41348         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
41349         include <alloca.h> first.  Use C89 prototype for alloca; this
41350         requires including <stddef.h> for size_t.  Use extern "C" if C++.
41351         Use #elif for simplicity, since we can assume C89 now.
41352         Don't try to source the system alloca.h since it will not be found
41353         and to prevent recursively including its replacement.
41354         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
41355         * lib/regex.c: Likewise.
41356
41357 2004-05-16  Derek Price  <derek@ximbiot.com>
41358             Paul Eggert  <eggert@cs.ucla.edu>
41359
41360         getline cleanup.  This changes the getndelim2 API: both order of
41361         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
41362         no delimiter).
41363
41364         * lib/getline.c: Don't include stddef.h or stdio.h, since our
41365         interface does that.
41366         (getline): Always use getdelim, so that we don't have two
41367         copies of this code.
41368         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
41369         if available.
41370         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
41371         (GETNDELIM2_MAXIMUM): New macro.
41372         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
41373         instead of the old practice of delim2==0.  All callers changed.
41374         Return -1 on overflow, instead of returning junk.
41375         Do not set *linesize unless allocation succeeds.
41376         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
41377         that we include sys/types.h.
41378         * lib/getnline.h: Likewise.
41379         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
41380         (getndelim2): Reorder arguments.
41381         * lib/getnline.c (getnline, getndelim):
41382         Don't discard the NMAX argument.
41383         (getnline): Invoke getndelim, to avoid code duplication.
41384         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
41385         of (size_t) -1 by callers of the getnline family.
41386
41387 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41388
41389         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
41390         Check for gettimeofday.
41391         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
41392         Check for settimeofday, stime.
41393
41394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41395
41396         * lib/nanosleep.c (suspended): Change its type from int to
41397         sig_atomic_t volatile.
41398         (first_call): Make it private to rpl_nanosleep, and have it
41399         be zero initially as that's a bit faster.
41400         (my_usleep): Round up fractional times instead of truncating them,
41401         as this is the usual meaning for 'sleep'.
41402
41403         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
41404         doesn't work.
41405         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
41406         (ENOSYS): Define if not defined.
41407         (settime): Fall back on stime if it exists and settimeofday fails.
41408         But don't bother with fallbacks if a method fails with errno == EPERM.
41409
41410 2004-05-11  Jim Meyering  <jim@meyering.net>
41411
41412         Prior to this change, the save_cwd caller required read access to the
41413         current directory on most systems (ones with the fchdir function).
41414
41415         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
41416         fails, try write-only, and finally, resort to using xgetcwd.
41417
41418 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41419
41420         * lib/obstack.c, obstack.h: Import changes from libc.
41421
41422 2004-04-28  Bruno Haible  <bruno@clisp.org>
41423
41424         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
41425         also implicitly appends .exe to executables.
41426         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
41427         accepts Windows pathnames.
41428         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41430         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41432         Reported by Derek Robert Price <derek@ximbiot.com>.
41433
41434 2004-04-21  Karl Berry  <karl@gnu.org>
41435
41436         * config/srclist.txt (localcharset.c): break sync.
41437
41438 2004-04-20  Paul Eggert  <eggert@twinsun.com>
41439
41440         * m4/host-os.m4: Add a copyright notice.
41441
41442 2004-04-20  Jim Meyering  <jim@meyering.net>
41443
41444         Change UTILS_ to gl_ in AC_DEFINE'd names.
41445         Change utils_- and jm_-prefixed variables, too.
41446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
41447         UTILS_FUNC_MKDIR_TRAILING_SLASH.
41448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
41449
41450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
41451         Don't emit trailing blanks.
41452         Also rename jm_-prefixed variables to have gl_ prefix.
41453
41454         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
41455         Also rename jm_-prefixed variables to have gl_ prefix.
41456
41457         * m4/jm-macros.m4: Reflect the renamings.
41458         * m4/prereq.m4: Likewise.
41459
41460 2004-04-20  Jim Meyering  <jim@meyering.net>
41461
41462         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
41463         memory.
41464
41465 2004-04-20  Jim Meyering  <jim@meyering.net>
41466             Bruno Haible  <bruno@clisp.org>
41467
41468         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
41469         memory when realloc fails.
41470
41471 2004-04-19  Jim Meyering  <jim@meyering.net>
41472
41473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
41474         now that readutmp.c may call `free (0)'.
41475
41476 2004-04-19  Bruno Haible  <bruno@clisp.org>
41477
41478         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
41479         * m4/inttypes_h.m4: Likewise.
41480         * m4/stdint_h.m4: Likewise.
41481         * m4/intmax_t.m4: Likewise.
41482         * m4/uintmax_t.m4: Likewise.
41483
41484 2004-04-18  Jim Meyering  <jim@meyering.net>
41485
41486         * m4/prereq.m4: Don't forbid jm_ prefix.
41487
41488         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
41489         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
41490         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
41491         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
41492         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
41493         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
41494         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
41495         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
41496         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
41497         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
41498         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
41499         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
41500         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
41501         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
41502         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
41503         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
41504         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
41505         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
41506         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
41507
41508 2004-04-18  Jim Meyering  <jim@meyering.net>
41509
41510         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
41511         failure, don't leak memory and do call END_UTMP_ENT.
41512
41513 2004-04-16  Jim Meyering  <jim@meyering.net>
41514
41515         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
41516         coreutils' stat program.
41517         (gl_PREREQ): Don't require jm_PREREQ_STAT.
41518
41519 2004-04-11  Paul Eggert  <eggert@twinsun.com>
41520
41521         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
41522         C89.
41523         (CHAR_BIT): Remove, since we assume C89.
41524         Include <stdint.h> if available, as per current Autoconf CVS advice.
41525
41526 2004-03-31  Jim Meyering  <jim@meyering.net>
41527
41528         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
41529         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
41530         * m4/xalloc.m4: Likewise.
41531
41532 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41533
41534         Merge from coreutils.
41535
41536         * m4/inttostr.m4: New file.
41537         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
41538         Require AM_STDBOOL_H and gl_TIMESPEC instead.
41539         Require gl_CLOCK_TIME.
41540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
41541
41542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41543
41544         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
41545         not bool, to be more consistent with Unix conventions.
41546         Suggested by Bruno Haible.
41547
41548         Merge from coreutils.
41549
41550         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
41551         * lib/umaxtostr.c: New files.
41552
41553         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41554         the usual <time.h> dance.
41555         (get_date): Change signature to support fractional time stamps.
41556         All callers changed.
41557         * lib/getdate.y: Include "getdate.h" first, as we can now
41558         assume C89 and don't need to worry about 'const'.
41559         Similarly, include "unlocked-io.h" near start, not in middle.
41560         Include <limits.h>.
41561         (textint.value): Use long int rather than int.
41562         (textint.digits): Use size_t rather than int.
41563         (BILLION, LOG10_BILLION): New constants.
41564         (parser_control): New member rel_ns.  Members day_ordinal,
41565         time_zone, month, day, hour, minutes, rel_year, rel_month,
41566         rel_day, rel_hour, rel_minutes, rel_seconds
41567         are now long int, not int.  Member seconds is now struct timespec,
41568         not int.  New member timespec_seen.  Members dates_seen, days_seen,
41569         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41570         not int.
41571         (%union.intval): Now long int, not int.
41572         New member timespec.
41573         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41574         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41575         (spec): Now is a timespec or an item list.
41576         (timespec, items): New nonterminals.
41577         (time, rel, relunit, number, get_date):
41578         Add support for fractional seconds.
41579         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41580         (gmtime, localtime, mktime): Remove decls; not needed with C89.
41581         (to_hour): First arg is now long int, not int.
41582         (to_year): Returns long int, not int.
41583         Don't treat year -70 like 70.
41584         (tm_diff): Returns long int, not int.
41585         (lookup_word): Use bool instead of int when appropriate.
41586         (yylex): Use size_t for count, not int.
41587         Detect overflow when parsing large integer constants.
41588         Add support for fractions.
41589         (get_date): Make pointers 'const' if possible.
41590         Use more-portable code to detect integer overflow.
41591         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
41592         Don't use ctime; it's not reliable if the year has >4 digits.
41593
41594         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41595         This is for compatibility with BSD.
41596
41597         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41598         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41599         From coreutils' system.h.
41600
41601         * lib/userspec.c: Don't include "posixver.h".
41602         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41603         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41604         compatible extension.  Simplify code by removing a boolean int
41605         that was always nonzero if a string was nonnull.
41606
41607 2004-03-30  Jim Meyering  <jim@meyering.net>
41608
41609         Merge from coreutils.
41610
41611         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41612         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41613         on some systems one must include <grp.h> before it.
41614         Reported by Christian Krackowizer.
41615
41616 2004-03-30  Jim Meyering  <jim@meyering.net>
41617
41618         Merge from coreutils.
41619
41620         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41621
41622         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41623         an empty input stream.
41624
41625         * lib/readtokens.c: Include <stdbool.h>.
41626         (readtoken): Use `size_t' rather than int/long.
41627         All callers adjusted.
41628         Use `bool' rather than `int' where appropriate.
41629         Use memset rather than an explicit loop.
41630         Use x2nrealloc rather than xrealloc.
41631         Allow the use of `\0' as a delimiter.
41632         (readtokens): Likewise.
41633         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41634
41635 2004-03-30  Jim Meyering  <jim@meyering.net>
41636
41637         * m4/realloc.m4: Remove file, since now it does no more than
41638         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41639         the `configure.ac' section of module/realloc.
41640         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41641
41642 2004-03-30  Bruno Haible  <bruno@clisp.org>
41643
41644         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41645         nonnull.
41646
41647 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41648
41649         Merge changes to getloadavg.c from coreutils and Emacs.
41650
41651         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41652         Define to an expression, not to the empty string.
41653         Include cloexec.h and xalloc.h.
41654         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41655         Use set_cloexec_flag rather than rolling our own.
41656         * lib/cloexec.c, lib/cloexec.h: New files.
41657
41658 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41659
41660         * m4/cloexec.m4: New file.
41661
41662 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41663
41664         * lib/getopt.h: Sync with libc CVS.
41665
41666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41667             Bruno Haible  <bruno@clisp.org>
41668
41669         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41670         mbswidth.
41671
41672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41673             Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/mbswidth.h: Include <wchar.h> only if
41676         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41677         <wchar.h>.
41678         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41679
41680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41681
41682         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41683         Sync with libc CVS.
41684         * lib/getopt_int.h: New file, also synced from libc.
41685
41686 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41687
41688         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41689         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41690         Bring back getopt.c, getopt.h, getopt1.c.
41691
41692 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41693
41694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41695         All uses changed.  Check for sa_sigaction member; this fixes
41696         a bug first reported by Jason Andrade in
41697         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41698
41699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41700
41701         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41702         '#if' expressions.  Unlike the code it replaces, it does not
41703         depend on (defined _SC_PAGESIZE).  However, it does depend on
41704         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41705         first reported by Jason Andrade in
41706         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41707
41708 2004-02-25  Simon Josefsson  <jas@extundo.com>
41709
41710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41711
41712 2004-02-25  Simon Josefsson  <jas@extundo.com>
41713
41714         * lib/strdup.h: New file.
41715         * lib/strdup.c: Include it.
41716         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41717         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41718
41719 2004-02-23  Karl Berry  <karl@gnu.org>
41720
41721         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41722         (from fencepost.gnu.org:/gd/gnuorg).
41723
41724 2004-02-23  Karl Berry  <karl@gnu.org>
41725
41726         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41727         * config/srclist.txt: add maintain/standards documents.
41728
41729 2004-02-18  Bruno Haible  <bruno@clisp.org>
41730
41731         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41732         Reported by Derek Robert Price <derek@ximbiot.com>.
41733
41734 2004-02-16  Karl Berry  <karl@gnu.org>
41735
41736         * config/mkinstalldirs, install-sh: update from automake.
41737
41738 2004-02-06  Karl Berry  <karl@gnu.org>
41739
41740         * m4/po.m4: update from gettext 0.14.1.
41741
41742 2004-02-06  Karl Berry  <karl@gnu.org>
41743
41744         * lib/config.charset: update from gettext 0.14.1.
41745
41746 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41747
41748         Add comments and code, prompted by suggestions from Bruno Haible
41749         for sh-quote.
41750         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41751         describing the enum quoting_style values.
41752         * lib/quotearg.c (quotearg_alloc): New function.
41753         (quotearg_buffer_restyled): Treat lone { and } as special.
41754         Treat = as special.  Work around bug with older shells
41755         that "see" a '\' that is really the 2nd byte of a multibyte char.
41756         Quote empty string with shell_quoting_style.
41757
41758 2004-02-03  Bruno Haible  <bruno@clisp.org>
41759
41760         * m4/pipe.m4: New file, from GNU gettext.
41761
41762 2004-02-03  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/pipe.h: New file, from GNU gettext.
41765         * lib/pipe.c: New file, from GNU gettext.
41766
41767 2004-01-27  Bruno Haible  <bruno@clisp.org>
41768
41769         * m4/execute.m4: New file, from GNU gettext.
41770
41771 2004-01-27  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/execute.h: New file, from GNU gettext.
41774         * lib/execute.c: New file, from GNU gettext.
41775         * lib/w32spawn.h: New file, from GNU gettext.
41776
41777 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41778
41779         Merge from diffutils.
41780
41781         * lib/file-type.c (file_type): Add typed memory objects.
41782         * lib/file-type.h (S_TYPEISTMO): New macro.
41783
41784         * lib/c-stack.h (c_stack_action): Remove argv argument.
41785         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41786         (die): Don't calculate message unless segv_action returns.
41787         (get_stack_location, min_address_from_argv, max_address_from_argv,
41788         volatile stack_base, volatile_stack_size): Remove.
41789         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41790         that every segmentation violation is a stack overflow.  (Ouch!)
41791         See Debian bug 136249 (still outstanding) for more info about why
41792         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41793
41794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41795
41796         Exit-status fix from coreutils.
41797
41798         Use exit_failure consistently in place of EXIT_FAILURE,
41799         so that program exit statuses are consistent on failure.
41800
41801         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41802         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41803         * lib/argmatch.h: Comment fix to match the above.
41804         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41805         Now a macro referring to exit_failure, instead of a separate
41806         variable.  Include "exitfail.h" to get it.
41807         * lib/xstrtol.h: Include "exitfail.h".
41808         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41809
41810         * lib/long-options.c (parse_long_options): Use prototype
41811         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41812         for clarity.
41813
41814 2004-01-21  Jim Meyering  <jim@meyering.net>
41815
41816         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41817         so as not to conflict with a different-sized __mktime_internal
41818         function in GNU libc.
41819         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41820         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41821
41822 2004-01-20  Karl Berry  <karl@gnu.org>
41823
41824         * config/config.guess: update from config.
41825
41826         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41827
41828 2004-01-20  Bruno Haible  <bruno@clisp.org>
41829
41830         Safer stack allocation.
41831         * lib/setenv.c: Include allocsa.h.
41832         (alloca): Remove fallback definition.
41833         (freea): Remove macro.
41834         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41835         instead of freea.
41836
41837 2004-01-20  Bruno Haible  <bruno@clisp.org>
41838
41839         * m4/eealloc.m4: New file, from GNU gettext.
41840
41841 2004-01-20  Bruno Haible  <bruno@clisp.org>
41842
41843         * m4/allocsa.m4: New file, from GNU gettext.
41844
41845 2004-01-20  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/xallocsa.h: New file, from GNU gettext.
41848         * lib/xallocsa.c: New file, from GNU gettext.
41849
41850 2004-01-20  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41853
41854 2004-01-20  Bruno Haible  <bruno@clisp.org>
41855
41856         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41857         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41858         specially.
41859
41860 2004-01-20  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41863         patch.
41864
41865 2004-01-20  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41868
41869 2004-01-20  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/eealloc.h: New file.
41872
41873 2004-01-20  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/binary-io.h: Avoid warnings on Cygwin.
41876
41877 2004-01-20  Bruno Haible  <bruno@clisp.org>
41878
41879         * lib/allocsa.h: New file, from GNU gettext.
41880         * lib/allocsa.c: New file, from GNU gettext.
41881
41882 2004-01-18  Karl Berry  <karl@gnu.org>
41883
41884         * doc/gpl.texi, doc/lgpl.texi: new files.
41885
41886 2004-01-18  Karl Berry  <karl@gnu.org>
41887
41888         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41889         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41890
41891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41892
41893         Merge from coreutils.
41894
41895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41896         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41897         (gl_DEFAULT_POSIX2_VERSION): Move
41898         the documentation from 'configure' into 'config.hin',
41899         so that 'configure --help' isn't burdened by it and
41900         we don't have to worry about its formatting there.
41901         Reword the documentation so that it's more succinct
41902         and can be run together into a single paragraph.
41903         * m4/same.m4 (gl_SAME): Check for pathconf.
41904
41905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41906
41907         Merge from coreutils.
41908
41909         * lib/posixver.c: Include posixver.h.
41910
41911         * lib/same.c: Include <stdbool.h>, <limits.h>.
41912         (_POSIX_NAME_MAX): Define if not defined.
41913         (MIN): New macro.
41914         (same_name): If file names are silently truncated, report
41915         that the file names are the same if they are the same after
41916         the silent truncation.
41917
41918         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41919         conversion function.
41920         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41921         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41922         longer needed.
41923
41924 2004-01-15  Jim Meyering  <jim@meyering.net>
41925
41926         Merge from coreutils.
41927
41928         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41929         if no library is required.
41930         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41931         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41932         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41933         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41934         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41935         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41936         value, $ac_cv_search_crypt, if it's "none required".
41937         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41938         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41939         not gl_FUNC_GETLOADAVG.
41940         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41941         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41942
41943 2004-01-15  Jim Meyering  <jim@meyering.net>
41944
41945         Merge from coreutils.
41946
41947         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41948         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41949         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41950
41951         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41952         optional configure-time default.
41953
41954         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41955
41956         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41957
41958 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41959
41960         Merge from coreutils.
41961
41962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41963         value, $ac_cv_search_nanosleep, if it's "none required".
41964
41965 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41966
41967         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41968         with like-named macro in fnmatch.c.
41969         (EXT): Use an internal constant instead.
41970
41971         Merge fnmatch patches from glibc.
41972         * lib/fnmatch.c (mbsinit): Remove define.
41973         Add libc_hidden_ver (__fnmatch, fnmatch).
41974         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41975         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41976
41977 2004-01-14  Karl Berry  <karl@gnu.org>
41978
41979         * config/install-sh: update from automake.
41980
41981 2004-01-13  Karl Berry  <karl@gnu.org>
41982
41983         * config/install-sh: update from automake.
41984
41985 2004-01-09  Karl Berry  <karl@gnu.org>
41986
41987         * config/install-sh: update from automake.
41988
41989 2004-01-05  Karl Berry  <karl@gnu.org>
41990
41991         * config/config.{sub,guess}: update from config.
41992
41993 2003-12-31  Karl Berry  <karl@gnu.org>
41994
41995         * config/depcomp: update from automake.
41996
41997 2003-12-14  Karl Berry  <karl@gnu.org>
41998
41999         * lib/config.charset: update from gettext-runtime.
42000
42001 2003-12-03  Paul Eggert  <eggert@twinsun.com>
42002
42003         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
42004         Bug reported by Alfred M. Szmidt.
42005
42006 2003-12-03  Bruno Haible  <bruno@clisp.org>
42007
42008         * m4/gettext.m4: Upgrade from gettext-0.13.
42009         * m4/po.m4: Upgrade from gettext-0.13.
42010         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
42011         * m4/intmax.m4: New file, from gettext-0.13.
42012         * m4/printf-posix.m4: New file, from gettext-0.13.
42013
42014 2003-11-29  Karl Berry  <karl@gnu.org>
42015
42016         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
42017
42018 2003-11-25  Paul Eggert  <eggert@twinsun.com>
42019             Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/printf-parse.h: Don't include sys/types.h.
42022         (ARG_NONE): New macro.
42023         (char_directive): Change type of *arg_index fields to size_t.
42024         * lib/printf-parse.c: Don't include sys/types.h.
42025         (SSIZE_MAX): Remove macro.
42026         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
42027         Remove unnecessary overflow check.
42028         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
42029         fields.
42030
42031 2003-11-25  Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
42034
42035 2003-11-25  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
42038         gt_TYPE_SSIZE_T.
42039
42040 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42041
42042         * modules/alloca: Remove dependency on xalloc.
42043
42044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42045
42046         * lib/alloca.c: Remove dependency on xalloc module.
42047         (xalloc_die): Remove.
42048         (memory_full) [!defined emacs]: New macro.
42049         [!defined emacs]: Don't include xalloc.h.
42050         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
42051         address arithmetic overflows.  Change datatypes a bit to avoid
42052         unnecessary casts.
42053
42054 2003-11-22  Jim Meyering  <jim@meyering.net>
42055
42056         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
42057         s/size/size_t/.
42058
42059 2003-11-21  Karl Berry  <karl@gnu.org>
42060
42061         * config/config.{sub,guess}: update from config.
42062
42063 2003-11-18  Karl Berry  <karl@gnu.org>
42064
42065         * config/config.{sub,guess}: update from config.
42066
42067         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
42068
42069 2003-11-17  Paul Eggert  <eggert@twinsun.com>
42070
42071         * README: Mention that S+T cannot overflow if S is the size of
42072         an existing object and T is sufficiently small.
42073
42074 2003-11-17  Jim Meyering  <jim@meyering.net>
42075
42076         On systems without utime and without a utimes function capable of
42077         dealing with a NULL struct utimbuf* argument, this utime replacement
42078         could -- in unusual circumstances -- leak a file descriptor.
42079         * lib/utime.c: Include <unistd.h> and <errno.h>.
42080         (utime_null): Be sure to close `fd' and to preserve errno.
42081         Reported by Geoff Collyer via Arnold Robbins.
42082
42083 2003-11-17  Bruno Haible  <bruno@clisp.org>
42084
42085         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
42086         (Depends-on): Add xsize.
42087
42088 2003-11-17  Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
42091
42092 2003-11-17  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/vasnprintf.c (alloca): Remove fallback definition.
42095         (freea): Remove definition.
42096         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
42097         Reported by Paul Eggert.
42098
42099 2003-11-16  Paul Eggert  <eggert@twinsun.com>
42100             Bruno Haible  <bruno@clisp.org>
42101
42102         Protect against address arithmetic overflow.
42103         * lib/printf-args.h: Include stddef.h.
42104         (arguments): Change type of field 'count' to size_t.
42105         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
42106         'unsigned int' where appropriate.
42107         * lib/printf-parse.h: Include sys/types.h.
42108         (char_directive): Change type of *arg_index fields to ssize_t.
42109         (char_directives): Change type of fields 'count', max_*_length to
42110         size_t.
42111         * lib/printf-parse.c: Include sys/types.h and xsize.h.
42112         (SSIZE_MAX): Define fallback value.
42113         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
42114         instead of 'int' where appropriate. Check a_allocated, d_allocated
42115         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
42116         * lib/vasnprintf.c: Include xsize.h.
42117         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
42118         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
42119         overflow. Avoid wraparound when converting a width or precision from
42120         decimal to binary.
42121
42122 2003-11-16  Bruno Haible  <bruno@clisp.org>
42123
42124         Update from GNU gettext.
42125         * lib/printf-parse.c: Generalize to it can be compiled for wide
42126         strings.
42127         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
42128         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
42129         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
42130         SNPRINTF): New macros.
42131         Don't include <alloca.h> if the file is used inside libintl.
42132         (local_wcslen): New function, for Solaris 2.5.1.
42133         (VASNPRINTF): Use it instead of wcslen.
42134
42135 2003-11-16  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/xsize.h (xmax): New function.
42138         (xsum, xsum3, xsum4): Declare as "pure" functions.
42139
42140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42141
42142         * modules/xalloc (Files): Undo latest change, since xalloc.h
42143         no longer needs SIZE_MAX or PTRDIFF_MAX.
42144
42145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42146
42147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
42148         gl_PTRDIFF_MAX.
42149
42150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42151
42152         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
42153         "return", to pacify some unknown compiler.  Problem reported
42154         by Joerg Schilling.
42155
42156 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42157
42158         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
42159         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
42160         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
42161         heuristic is just as accurate as far as we know, and it removes a
42162         dependency on size_max.m4 and ptrdiff_max.m4.
42163
42164 2003-11-11  Bruno Haible  <bruno@clisp.org>
42165
42166         * modules/xsize (Files): Add m4/size_max.m4.
42167         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
42168
42169 2003-11-11  Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/size_max.m4: New file.
42172         * m4/ptrdiff_max.m4: New file.
42173         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
42174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
42175         (gl_XALLOC): Invoke it.
42176
42177 2003-11-11  Bruno Haible  <bruno@clisp.org>
42178
42179         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
42180         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
42181         defined.
42182
42183 2003-11-10  Paul Eggert  <eggert@twinsun.com>
42184
42185         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
42186         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
42187         rejected some allocations of exactly SIZE_MAX - 2 bytes.
42188         From Bruno Haible.
42189         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
42190         not (size_t) -1, since it's defined here.
42191
42192 2003-11-09  Karl Berry  <karl@gnu.org>
42193
42194         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
42195
42196 2003-11-06  Paul Eggert  <eggert@twinsun.com>
42197
42198         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
42199         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
42200         Reject sizes of exactly SIZE_MAX bytes.
42201         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
42202         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
42203
42204 2003-11-05  Bruno Haible  <bruno@clisp.org>
42205
42206         * lib/xsize.h: Include limits.h, to avoid a possible collision with
42207         SIZE_MAX defined in <limits.h> on Solaris.
42208
42209 2003-11-04  Jim Meyering  <jim@meyering.net>
42210
42211         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
42212         variable names, rather than @VAR@.
42213         * modules/poll: Likewise.
42214
42215 2003-11-04  Bruno Haible  <bruno@clisp.org>
42216
42217         * modules/xsize: New file.
42218         * modules/linebreak: Depend on xsize.
42219         * MODULES.html.sh (func_all_modules): Add xsize.
42220
42221 2003-11-04  Bruno Haible  <bruno@clisp.org>
42222
42223         * m4/xsize.m4: New file.
42224
42225 2003-11-04  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/xsize.h: New file.
42228         * lib/linebreak.c: Include xsize.h.
42229         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
42230         argument for overflow.
42231         Suggested by Paul Eggert.
42232
42233 2003-11-03  Karl Berry  <karl@gnu.org>
42234
42235         * config/config.{guess,sub}: update from config.
42236
42237 2003-11-03  Jim Meyering  <jim@meyering.net>
42238
42239         * modules/userspec (lib_SOURCES): Add userspec.h.
42240         (Include): Add "userspec.h".
42241         Improve description.
42242
42243 2003-11-03  Jim Meyering  <jim@meyering.net>
42244
42245         * lib/userspec.c: Include "userspec.h".
42246         * lib/userspec.h: New file.
42247
42248 2003-11-03  Bruno Haible  <bruno@clisp.org>
42249
42250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
42251
42252 2003-11-03  Bruno Haible  <bruno@clisp.org>
42253
42254         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
42255         available, to avoid (extremely rare) race condition.
42256         Suggested by Paul Eggert.
42257
42258 2003-11-02  Karl Berry  <karl@gnu.org>
42259
42260         * config/srclist.txt (vasprintf.c): sync broken, sigh.
42261
42262 2003-10-31  Paul Eggert  <eggert@twinsun.com>
42263
42264         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
42265         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
42266         (read_filesystem_list): Set and use me_type_malloced.
42267         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
42268         whatever the type happens to be), for brevity and consistency.
42269         Check for size calculation overflow on Alphas running OSF/1.
42270
42271 2003-10-31  Jim Meyering  <jim@meyering.net>
42272
42273         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
42274
42275         * lib/linebuffer.c: Include <string.h> for declaration of memset.
42276
42277 2003-10-30  Paul Eggert  <eggert@twinsun.com>
42278             Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
42281         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
42282
42283 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42284
42285         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
42286         netbsd*-gnu*.  Suggested by Robert Millan.
42287
42288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42289
42290         * modules/group-member: Depend on stdbool.
42291
42292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42293
42294         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
42295
42296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42297
42298         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
42299         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
42300         after the 'gnu' in these cases.  This fixes some bugs in the
42301         previous change, and is based on suggestions by Robert Millan.
42302
42303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42304
42305         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
42306         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
42307         no longer needed.
42308         * lib/quotearg.c (quotearg_n_options): Use it.
42309         * lib/group-member.c: Include <stdbool.h>.
42310         (free_group_info): Arg is now const *; don't free arg.
42311         (get_group_info): Now returns bool and accepts struct group_info *,
42312         rather than returning a malloc'ed struct group_info *.
42313         All uses changed.  Check for overflow in internal size calculation.
42314
42315         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
42316         rather than xmalloc/xrealloc.
42317         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
42318         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
42319         conformance bug: the old code used a pointer after freeing the
42320         storage that it addressed.
42321         * lib/hash.c (hash_initialize): Simplify the code by using
42322         xalloc_oversized rather than doing it by hand.
42323         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
42324         the buffer preserved.  Use free and xmalloc instead.
42325         * lib/quotearg.c (quotearg_n_options): Likewise.
42326         Use a simpler test for size overflow.  Don't use xalloc_oversized
42327         because unsigned int might be wider than size_t (!); this suggests
42328         that we should switch from unsigned int to size_t for slot numbers.
42329
42330 2003-10-28  Paul Eggert  <eggert@twinsun.com>
42331
42332         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
42333         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
42334         NetBSD kernels.  Requested by Richard Stallman.
42335
42336 2003-10-27  Paul Eggert  <eggert@twinsun.com>
42337
42338         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
42339         to allocate the returned structure.  Do not allocate a subarray,
42340         as x2nrealloc will do that.
42341         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
42342         instead of xnrealloc.
42343         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
42344
42345 2003-10-27  Bruno Haible  <bruno@clisp.org>
42346
42347         * lib/stdbool_.h: Better support for BeOS.
42348
42349 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42350
42351         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
42352         now uses inline.
42353
42354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42355
42356         * lib/xalloc.h (xalloc_oversized): New static inline function, for
42357         callers that want to do their own size-overflow checking.  Include
42358         <stdbool.h>, since xalloc_oversized returns bool.
42359         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
42360         to use xalloc_oversized.
42361
42362         Add two functions x2realloc, x2nrealloc, for programs that grow
42363         arrays dynamically by doubling their sizes.
42364         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
42365         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
42366         New functions.
42367
42368         Port to C99 semantics for 'inline' of external functions.
42369         Bug reported by Bruno Haible.
42370         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
42371         with the old contents of xnmalloc.
42372         (xnmalloc, xmalloc): Use it.
42373         (xnrealloc_inline): New static inline function,
42374         with the old contents of xnrealloc.
42375         (xnrealloc, xrealloc): Use it.
42376
42377         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
42378         that.
42379
42380 2003-10-26  Karl Berry  <karl@gnu.org>
42381
42382         * config/srclist.txt (COPYING.DOC): no longer available from
42383         /gd/gnuorg; don't know where the ultimate source is.
42384
42385 2003-10-25  Paul Eggert  <eggert@twinsun.com>
42386
42387         Fix several address-calculation bugs in the hash modules,
42388         plus some minor code cleanup.
42389
42390         * lib/hash.h: Include <stdbool.h>, for bool.
42391         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
42392         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
42393         hash_get_n_entries, hash_get_max_bucket_length,
42394         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
42395         hash_rehash): Use size_t rather than unsigned.
42396         * lib/hash.c (struct hash_table, hash_get_n_buckets,
42397         hash_get_n_buckets_used, hash_get_n_entries,
42398         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
42399         hash_get_entries, hash_do_for_each, hash_string, is_prime,
42400         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
42401         Likewise.
42402         (SIZE_MAX): Define if not defined.
42403         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
42404         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
42405         hash_print):
42406         Use const * when possible.
42407         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
42408         (check_tuning): Fix bug: if tuning parameters were very close to
42409         0 or 1, rounding errors could have caused subscript violations.
42410         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
42411         (hash_initialize): Add 'fail:' label
42412         to free table and return NULL, and use it to simplify code.
42413         Use calloc rather than clearing the storage ourself.
42414         (hash_initialize, hash_rehash): Check for arithmetic overflow in
42415         buffer size calculations.
42416         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
42417         Include <stddef.h>, for size_t.
42418         * lib/hash-pjw.c (hash_pjw): Likewise.
42419         Switch to method described by Bruno Haible.
42420         Include <limits.h>, for CHAR_BIT.
42421         (SIZE_BITS): New macro.
42422
42423 2003-10-23  Paul Eggert  <eggert@twinsun.com>
42424
42425         * m4/getline.m4 (AM_FUNC_GETLINE):
42426         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
42427         hosts.  Problem reported by Derek Robert Price in
42428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
42429         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
42430         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
42431
42432 2003-10-21  Paul Eggert  <eggert@twinsun.com>
42433
42434         * lib/getndelim2.c (getndelim2): When size calculation overflows,
42435         ceiling the allocation at NMAX bytes rather than silently
42436         discarding input bytes before NMAX is reached.  This makes
42437         a difference only if NMAX exceeds SIZE_MAX / 2.
42438
42439         * lib/obstack.c: Merge from glibc.
42440         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
42441         Add libc_hidden_def (_obstack_newchunk).
42442         (_obstack_free) [! defined _LIBC]: Remove.
42443         [defined _LIBC]: Make a strong alias from obstack_free, rather than
42444         a clone of the function body.
42445         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
42446         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
42447
42448         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
42449         glibc.
42450         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
42451         arg to memcpy.
42452
42453         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
42454         (obstack_ptr_grow_fast, obstack_int_grow_fast):
42455         Don't use lvalue casts, as GCC plans to remove support for them
42456         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
42457         was also present in the non-GCC version, indicating that this
42458         code had always been buggy and had never been widely used.
42459         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
42460         Use the fast variant of each macro, rather than copying the
42461         definiens of the fast variant; that way, we'll be more likely to
42462         catch future bugs in the fast variants.
42463
42464 2003-10-20  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/wait-process: New file.
42467         * MODULES.html.sh (func_all_modules): Add wait-process.
42468
42469 2003-10-20  Bruno Haible  <bruno@clisp.org>
42470
42471         * m4/wait-process.m4: New file.
42472
42473 2003-10-20  Bruno Haible  <bruno@clisp.org>
42474
42475         * lib/wait-process.h: New file, from GNU gettext.
42476         * lib/wait-process.c: New file, from GNU gettext.
42477
42478 2003-10-19  Jim Meyering  <jim@meyering.net>
42479
42480         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
42481         HPUX 10.20.
42482
42483 2003-10-18  Karl Berry  <karl@gnu.org>
42484
42485         * config/config.guess: update from config.
42486
42487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42488
42489         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
42490         (getgroups): First arg is int, not size_t.
42491         Don't let 'free' mangle errno.
42492
42493 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42494
42495         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
42496
42497 2003-10-16  Karl Berry  <karl@gnu.org>
42498
42499         * config/config.{guess,sub}: update from config.
42500
42501 2003-10-16  Jim Meyering  <jim@meyering.net>
42502
42503         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
42504         memcpy.
42505
42506 2003-10-15  Paul Eggert  <eggert@twinsun.com>
42507
42508         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
42509         (SIZE_MAX): Remove.
42510         (new_exclude, add_exclude_file): Initial size no longer needs to
42511         be a power of 2.
42512         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
42513         our own address arithmetic overflow checking.
42514
42515         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
42516         (fnmatch): Do not alloca more than 2000 wide characters;
42517         instead, use malloc for large buffers.
42518         Check for address arithmetic overflow, and return -1
42519         with errno set to ENOMEM in that case.
42520         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
42521         (NEW_PATTERN): Do not alloca more than 8000 bytes;
42522         instead, return -1.  Check for address arithmetic overflow.
42523
42524 2003-10-14  Paul Eggert  <eggert@twinsun.com>
42525
42526         Handle invalid suffixes and overflow independently, so that
42527         callers can treat them independently as needed.  Fix some bugs in
42528         suffix handling, e.g., "100k@" was not diagnosed as an invalid
42529         suffix for a human-readable blocksize.  The major caller-visible
42530         change is the addition of a new
42531         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
42532         that both overflow and suffix chars were found.
42533
42534         * lib/human.c (humblock): Don't check separately for invalid suffix
42535         char; that is xstrtoumax's job (now that its bug is fixed).
42536         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
42537         INTMAX_MAX]: New macros.
42538         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
42539         TYPE_MAXIMUM): New macros.
42540         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
42541         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
42542         if overflow occurs, as it's what __strtol does and it's more useful
42543         in practice.
42544         (__xstrtol): If __strtol reports some error other than ERANGE,
42545         reflect it to the caller as LONGINT_INVALID.  If it reports
42546         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
42547         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
42548         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
42549         value.
42550         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
42551         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42552         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42553         [defined UINTMAX_MAX]: New macros.
42554
42555 2003-10-14  Bruno Haible  <bruno@clisp.org>
42556
42557         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42558
42559 2003-10-14  Bruno Haible  <bruno@clisp.org>
42560
42561         * m4/sig_atomic_t: New file, from GNU gettext.
42562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42563
42564 2003-10-14  Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42567         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42568         Also use volatile where needed.
42569
42570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42571
42572         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
42573         Change maintainer from Bruno Haible to 'all'.
42574
42575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42576
42577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42578
42579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42580
42581         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42582         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42583         and define in terms of the other primitives.
42584         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42585         (SIZE_MAX): Define if not already defined.
42586         (array_size_overflow): New function.
42587         (xalloc_die): Abort instead of exiting if 'error' returns.
42588         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42589         (xmalloc, xrealloc): Use them.
42590         (xcalloc): Check for address arithmetic overflow.
42591         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42592         a bit faster than strcpy.
42593
42594 2003-10-10  Simon Josefsson  <jas@extundo.com>
42595
42596         * modules/argp (Depends-on): Add restrict and strcase.
42597
42598 2003-10-10  Simon Josefsson  <jas@extundo.com>
42599
42600         * m4/argp.m4: Add AC_C_INLINE.
42601
42602 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42603
42604         Merge getpass from libc, plus a few fixes.
42605
42606         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42607         Include <stdbool.h>.
42608         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42609         __fsetlocking to empty.
42610         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42611         do include <bits/libc-lock.h>.
42612         Do not include <fcntl.h>; not needed.
42613         [_LIBC]: Include <wchar.h>.
42614         (NOTCANCEL_MODE): New macro.
42615         (flockfile, funlockfile) [_LIBC]: New macros.
42616         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42617         [!_LIBC]: New macros.
42618         (call_fclose): New function.
42619         (getpass): Use it.  Save tty stream separately; this simplifies the
42620         code and makes it more reliable if stdin happens to equal stdout.
42621         Invoke __fsetlocking on tty.
42622         Handle thread cancellation if needed.
42623         Namespace cleanup (use __tcgetattr, __getline).
42624         Use bool for Booleans.
42625         [USE_IN_LIBIO]: Handle wide streams.
42626         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42627         stream might go where.
42628
42629         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42630         doesn't have to include <stdio.h> before us.
42631         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42632         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42633         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42634         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42635         if not declared, so that we can use getpass.c code from libc without
42636         rewriting it.
42637         (flockfile, ftrylockfile, funlockfile): New macros.
42638
42639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42640
42641         * modules/getpass: Depend on stdbool.
42642
42643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42644
42645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42646
42647 2003-10-07  Karl Berry  <karl@gnu.org>
42648
42649         * config/config.{guess,sub}: update from config.
42650
42651 2003-10-06  Jim Meyering  <jim@meyering.net>
42652             Bruno Haible  <bruno@clisp.org>
42653
42654         This lets translators provide better translations for the
42655         "Written by ..." part of --version output.
42656         * lib/version-etc.h: Include stdarg.h.
42657         (version_etc_copyright): Declare as readonly.
42658         (version_etc): Make this function variadic with a NULL-terminated list
42659         of author name strings.
42660         (version_etc_va): New declaration.
42661         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42662         (version_etc_copyright): Declare as readonly.
42663         (version_etc_va): New function. Provide a different translatable string
42664         for each possible number of authors < 10. Abbreviate when there are 10
42665         authors or more.
42666         (version_etc): Make this function variadic. Call version_etc_va.
42667         Suggestion from Gary V. Vaughan.
42668
42669         * lib/long-options.h (parse_long_options): Change prototype: the
42670         authors string is moved to the end and becomes variadic.
42671         * lib/long-options.c: Include stdarg.h.
42672         (parse_long_options): Make this function variadic, too.
42673         Call version_etc_va, not version_etc.
42674
42675 2003-10-06  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/version-etc-2: Remove file.
42678         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42679
42680 2003-10-06  Bruno Haible  <bruno@clisp.org>
42681
42682         * modules/fatal-signal: New file.
42683         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42684
42685 2003-10-06  Bruno Haible  <bruno@clisp.org>
42686
42687         * m4/fatal-signal.m4: New file.
42688         * m4/signalblocking.m4: New file, from GNU gettext.
42689
42690 2003-10-06  Bruno Haible  <bruno@clisp.org>
42691
42692         * lib/version-etc-2.h: Remove file.
42693         * lib/version-etc-2.c: Remove file.
42694
42695 2003-10-06  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/fatal-signal.h: New file, from GNU gettext.
42698         * lib/fatal-signal.c: New file, from GNU gettext.
42699
42700 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42701
42702         * README: Rework advice for preventing empty .o files.
42703         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42704         not <sys/types.h>.
42705
42706 2003-10-04  Karl Berry  <karl@gnu.org>
42707
42708         * lib/argp*: update from libc.
42709
42710 2003-10-04  Karl Berry  <karl@gnu.org>
42711
42712         * config/config.{guess,sub}: update from config.
42713
42714 2003-10-02  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/lchown (Include): Add lchown.h.
42717         * modules/time_r (Include): Use "..." syntax.
42718         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42719
42720 2003-10-01  Simon Josefsson  <jas@extundo.com>
42721
42722         * MODULES.html.sh (func_all_modules): Move gethostname from section
42723         'based on' to section 'lacking' POSIX:2001.
42724
42725 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42726
42727         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42728         to output mode on the same stream.
42729
42730 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42731
42732         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42733         Fix arg typo in previous patch.
42734
42735 2003-09-28  Jim Meyering  <jim@meyering.net>
42736
42737         * lib/error.c: Correct cpp indentation.
42738
42739 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42740
42741         * modules/free: New file.
42742
42743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42744
42745         * m4/free.m4: New file.
42746
42747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42748
42749         * lib/minmax.h (MIN, MAX)
42750         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42751         Omit the special code that used __typeof__, since we worry that
42752         it could be more trouble than it's worth.  See:
42753         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42754         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42755
42756         * lib/free.c: New file.
42757
42758 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42759
42760         Trivial fixes to Makefile.am parts of module listings.
42761         * modules/strstr: Append strstr.h to lib_SOURCES.
42762         * modules/strcase: Likewise, for strcase.h.
42763
42764 2003-09-27  Karl Berry  <karl@gnu.org>
42765
42766         * config/mkinstalldirs: update from automake.
42767
42768 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42769
42770         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42771         (error_tail): Do not loop, reallocating temporary buffer, since
42772         the output cannot contain more wide characters than the input
42773         contains bytes, the size must be big enough already.  This avoids
42774         one potential size overflow calculation.  Check for size overflow
42775         when calculating temporary buffer size.  Free temporary buffer
42776         when done, if it was allocated with malloc; this plugs a memory
42777         leak.  Remove casts from void * to pointers, that are no longer
42778         needed now that we're assuming C89 or better.
42779
42780         Merge error changes from glibc.
42781
42782         * lib/error.c, error.h: Update copyright notice header to match glibc.
42783         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42784         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42785         Disable cancellation while printing error.
42786         * lib/error.h: Prepend __ to parameter names.
42787
42788 2003-09-26  Jim Meyering  <jim@meyering.net>
42789
42790         * lib/error.c (error_tail): Move some declarations
42791         into inner scope where the local variables are used.
42792
42793 2003-09-26  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42796         stpncpy().
42797         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42798
42799 2003-09-26  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42802         (stpncpy): Define as alias for gnu_stpncpy.
42803         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42804
42805 2003-09-25  Simon Josefsson  <jas@extundo.com>
42806
42807         * lib/xgetdomainname.h: New file.
42808         * lib/xgetdomainname.c: New file.
42809
42810 2003-09-25  Simon Josefsson  <jas@extundo.com>
42811             Bruno Haible  <bruno@clisp.org>
42812
42813         * modules/getdomainname: New file.
42814         * modules/xgetdomainname: New file.
42815         * MODULES.html.sh (func_all_modules): Add getdomainname,
42816         xgetdomainname.
42817
42818 2003-09-25  Simon Josefsson  <jas@extundo.com>
42819             Bruno Haible  <bruno@clisp.org>
42820
42821         * m4/getdomainname.m4: New file.
42822
42823 2003-09-25  Simon Josefsson  <jas@extundo.com>
42824             Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/getdomainname.h: New file.
42827         * lib/getdomainname.c: New file.
42828
42829 2003-09-25  Karl Berry  <karl@gnu.org>
42830
42831         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42832
42833 2003-09-25  Karl Berry  <karl@gnu.org>
42834
42835         * config/install-sh: update from automake.
42836
42837 2003-09-25  Bruno Haible  <bruno@clisp.org>
42838
42839         * modules/version-etc-2: New file, from modules/version-etc with
42840         modifications.
42841         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42842
42843 2003-09-25  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42846         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42847
42848 2003-09-24  Simon Josefsson  <jas@extundo.com>
42849
42850         * modules/xgethostname: Add xgethostname.h.
42851
42852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42853
42854         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42855         the buffer associated with the argument.  Bug reported by
42856         Simon Josefsson.
42857
42858 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42859
42860         * README: Document assumptions that 'int' is at least 32 bits
42861         wide, that integer arithmetic is 2's complement without overflow,
42862         that there are no holes in integer values, that adding sizes of
42863         two nonoverlapping objects can't overflow, and that all-bits-zero
42864         yields scalar zero.  Fix spelling and capitalization typos.
42865
42866 2003-09-19  Karl Berry  <karl@gnu.org>
42867
42868         * lib/argp.h: update from libc.
42869
42870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42871
42872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42873         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42874         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42875
42876 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42877
42878         * gnulib-tool: Use "test -h", not "test -L", for portability
42879         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42880         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42881         (sed_extract_prog): Issue s commands one-by-one, rather than
42882         using \| in one s command.
42883
42884 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42885
42886         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42887         input error, instead of returning NULL the next time we are called
42888         (and therefore losing track of errno).
42889
42890 2003-09-16  Bruno Haible  <bruno@clisp.org>
42891
42892         * gnulib-tool (func_create_testdir): Warn about duplicated
42893         dependencies.
42894
42895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42896
42897         * modules/argmatch, modules/fatal, modules/obstack,
42898         modules/xalloc, modules/xgethostname: Sort dependencies by
42899         importance, not alphabetically.
42900
42901 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42902
42903         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42904         fails, so that the caller gets the proper errno.
42905
42906         * lib/readutmp.c (read_utmp): Likewise.
42907         Check for fstat error.  Close stream and free storage
42908         when failing.
42909
42910 2003-09-14  Karl Berry  <karl@gnu.org>
42911
42912         * config/srclist.txt (strdup.c): disable for c89 changes.
42913
42914 2003-09-14  Jim Meyering  <jim@meyering.net>
42915
42916         * lib/getloadavg.c: Correct cpp indentation.
42917         * lib/strdup.c: Likewise.
42918         * lib/vasnprintf.c: Likewise.
42919
42920 2003-09-14  Bruno Haible  <bruno@clisp.org>
42921
42922         * modules/fwriteerror: New file.
42923         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42924
42925 2003-09-14  Bruno Haible  <bruno@clisp.org>
42926
42927         * lib/fwriteerror.h: New file.
42928         * lib/fwriteerror.c: New file.
42929
42930 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42931
42932         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42933         modules/xgethostname, modules/xalloc: Depend on exit.
42934
42935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42936
42937         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42938
42939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42940         and AC_MINIX, too, so that their extensions are available.
42941
42942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42943         This macro has been superseded by gl_BACKUPFILE.
42944
42945         More patches to assume C89 or better.
42946
42947         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42948
42949         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42950         unconditionally.
42951         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42953         Include <string.h>, <stdlib.h> unconditionally.
42954         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42955         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42956         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42957         headers or for string.h.
42958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42959         or strtoul.
42960
42961         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42962         headers.
42963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42965         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42966         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42969         memcpy, memset.
42970         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42971         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42973         strtol.
42974         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42975         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42977         strtoul.
42978
42979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42980
42981         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42982         * lib/obstack.c [!defined _LIBC]: Likewise.
42983         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42984         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42985         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42986
42987         More changes to assume C89 or better.
42988
42989         * lib/error.c (error_tail): Assume vprintf.
42990
42991         * lib/argmatch.c (getenv): Remove decl.
42992         * lib/progreloc.c (get_full_program_name): Define via prototype.
42993         * lib/setenv.c (clearenv): Likewise.
42994         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42995         needed.
42996         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42997         (malloc, memcpy): Remove decls.
42998         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42999         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
43000         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43001         (memcpy): Remove macro.
43002         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
43003         (__P): Remove.  All uses removed.
43004         (PTR): Remove.  All uses changed to void *.
43005         (CHAR_BIT, NULL): Remove.
43006         (spaces, zeros, memset_space, memset_zero)
43007         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
43008         Remove.
43009         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
43010         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
43011         Define with prototype.
43012         Remove now-unnecessary prototype decl.
43013         (extra_args_spec): Assume ANSI C.  All uses changed.
43014         (extra_args_spec_iso): Remove.
43015         (my_strftime, emacs_strftimeu): Define via prototype.
43016         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
43017         unconditionally.
43018         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
43019         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
43020         (strtoul, strtol): Remove decls.
43021         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
43022         LONG_MAX): Remove.
43023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43024         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
43025         (LOCALE_PARAM_PROTO): New macro.
43026         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
43027         (INTERNAL (strtol), strtol): Define with a prototype.
43028         (PARAMS): Remove.  All uses removed.
43029         * lib/tempname.c: Include <string.h> unconditionally.
43030         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
43031         * lib/xgethostname.c (main): Define with a prototype.
43032         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
43033         Include <stdlib.h> unconditionally.
43034         (calloc, malloc, realloc, free): Remove decls.
43035         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
43036         Include <stdlib.h> unconditionally.  Sort include file names.
43037         (strtod): Remove.
43038         (xstrtod): Define with a prototype.
43039         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
43040         (strtol, strtoul): Remove decls.
43041
43042 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43043
43044         More patches to assume C89 or better.
43045         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
43046         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
43047         string.h, memchr, STDC_HEADERS.
43048
43049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43050
43051         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
43052         Include <stdlib.h>, <string.h> unconditionally.
43053         Remove now-unnecessary cast to char *.
43054         * lib/strnlen.c: Include <string.h> unconditionally.
43055         * lib/yesno.c (yesno): Define with a prototype.
43056
43057 2003-09-11  Bruno Haible  <bruno@clisp.org>
43058
43059         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
43060
43061 2003-09-10  Jim Meyering  <jim@meyering.net>
43062
43063         * lib/error.c: Correct indentation of cpp directives.
43064
43065 2003-09-10  Bruno Haible  <bruno@clisp.org>
43066
43067         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
43068         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
43069         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
43070         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
43071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
43072         <stdlib.h> and <string.h> checks.
43073         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
43074         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
43075
43076 2003-09-10  Bruno Haible  <bruno@clisp.org>
43077
43078         * lib/strcspn.c: Include <string.h> unconditionally.
43079         * lib/strpbrk.c: Include <string.h> unconditionally.
43080         * lib/strstr.c: Include <string.h> unconditionally.
43081         * lib/unicodeio.c: Include <string.h> unconditionally.
43082         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
43083         * lib/unsetenv.c: Likewise.
43084         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
43085         * lib/yesno.c: Include <stdlib.h> unconditionally.
43086         (rpmatch): Add prototype.
43087
43088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43089
43090         More patches to assume C89 or better.
43091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
43092         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
43093         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
43094         or for string.h.
43095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
43096         stdlib.h.
43097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
43098         C headers.
43099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
43100         string.h.
43101         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
43102         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
43103         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
43104         or for string.h.
43105         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
43106         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
43107         C headers.
43108         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
43109         memcpy.
43110         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
43111         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
43112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
43113         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
43114         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
43115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
43116         string.h, free.
43117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
43118         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
43119         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
43120         C headers, or for string.h.
43121         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
43122         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
43123         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
43124         headers, memory.h, stdlib.h, string.h, strings.h.
43125         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
43126         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
43127         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
43128         strchr.
43129         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
43130         headers, memory.h, string.h.
43131         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
43132         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
43133         free.
43134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
43135         headers.
43136         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
43137         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
43138         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
43139         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
43140         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
43141
43142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43143
43144         More K&R removal.
43145
43146         * lib/acosl.c (main): Use a prototype.
43147         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
43148         tanl.c: Likewise.
43149
43150         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
43151
43152         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
43153         (getopt, etopt_long, getopt_long_only, _getopt_internal)
43154         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
43155         with a prototype.
43156         * lib/getopt.c (const): Remove macro.
43157         Include <string.h> unconditionally.
43158         (my_index): Remove; all uses changed to strchr.
43159         (strlen): Remove decl.
43160         (exchange): Remove forward decl; no longer needed.
43161         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
43162         Define with prototype.
43163         * lib/getopt1.c (const): Remove macro.
43164         (getopt_long, getopt_long_only, main): Define with prototype.
43165
43166         * lib/getugroups.c: Include <string.h> unconditionally.
43167
43168         * lib/getusershell.c: Include <stdlib.h> unconditionally.
43169         (getusershell, setusershell, endusershell, readname, main):
43170         Define with prototypes.
43171
43172         * lib/group-member.c: Include group-member.h first.
43173         Include <stdlib.h> unconditionally.
43174
43175         * lib/hard-locale.c: Include hard-locale.h first.
43176         Include <stdlib.h>, <string.h> unconditionally.
43177
43178         * lib/hash.c (free, malloc): Remove decls.
43179         Include <stdlib.h> unconditionally.
43180
43181         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
43182         (getenv): Do not declare.
43183
43184         * lib/idcache.c: Include <string.h> unconditionally.
43185
43186         * lib/long-options.c: Include long-options.h first, to test interface.
43187         Include <stdlib.h> unconditionally.
43188
43189         * lib/makepath.c: Include makepath.h first, to test interface.
43190         Include <stdlib.h> and <string.h> unconditionally.
43191
43192         * lib/linebuffer.c: Include <stdlib.h>.
43193         (free): Remove decl.
43194
43195         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
43196         stddef.h. rpl_malloc returns void *, not char *.
43197         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
43198         prototype.
43199
43200         * lib/md5.h: Include <limits.h> unconditionally.
43201         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
43202         (__P): Remove; all uses removed.
43203         * lib/md5.c: Include "md5.h" first.
43204         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
43205         md5_buffer, md5_process_bytes, md5_process_block):
43206         Define with prototypes.
43207         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
43208         * lib/sha.c: Include "sha.h" first.
43209         Include <stdlib.h>, <string.h> unconditionally.
43210
43211         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
43212         * lib/memcmp.c (__ptr_t): Likewise.
43213         * lib/memrchr.c (__ptr_t): Likewise.
43214         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
43215         Include <string.h> unconditionally.
43216         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
43217         * lib/memchr.c: Include <stdlib.h> unconditionally.
43218         * lib/memchr.c (LONG_MAX): Remove.
43219         * lib/memrchr.c (LONG_MAX): Likewise.
43220         * lib/memchr.c (__memchr): Define via a prototype.
43221         * lib/memrchr.c (__memrchr): Likewise.
43222         * lib/memcmp.c (__P): Remove, and remove all uses.
43223         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
43224         Remove forward decls; no longer needed.
43225         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
43226         Use types required by C89 in prototype.
43227
43228         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
43229         * lib/savedir.c: Likewise.
43230         * lib/mkdir.c (free): Remove decl.
43231         * lib/rmdir.c (rmdir): Define with a prototype.
43232         * lib/savedir.c: Include savedir.h first, to test interface.
43233
43234         * lib/mktime.c (STDC_HEADERS): Remove.
43235         Include <stdlib.h>, <string.h> unconditionally.
43236
43237         * lib/modechange.c: Include <stdlib.h> unconditionally.
43238         (malloc): Remove decl.
43239
43240         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
43241         (free): Remove decl.
43242
43243         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
43244         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
43245         (This type really should be intptr_t, but that's a C99ism.)
43246         (_obstack_memcpy): Remove: all uses changed to memcpy.
43247         Include <string.h> unconditionally.
43248         (struct obstack): Assume __STDC__ for types of members
43249         chunkfun, freefun, extra_arg.
43250         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
43251         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
43252         obstack_begin, obstack_specify_allocation,
43253         obstack_specify_allocation_with_arg, obstack_chunkfun,
43254         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
43255         Remove unprototyped decls and the macros that use them.
43256         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
43257         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
43258         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
43259         (defined __STDC__ && __STDC__)]:
43260         Remove nonprototyped code.
43261         Include <stdlib.h> unconditionally.
43262         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
43263         _obstack_allocated_p, _obstack_free, obstack_free,
43264         _obstack_memory_used, print_and_abort):
43265         Define using prototypes.
43266         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
43267         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
43268         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
43269         obstack_next_free, obstack_object_size, obstack_room) [0]:
43270         Remove unused, unprototyped code.
43271
43272         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
43273
43274         * lib/physmem.c (physmem_total, physmem_available, main): Define
43275         with prototypes.
43276
43277         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
43278         (main): Define with a prototype.
43279
43280         * lib/posixver.c (getenv): Remove decl.
43281
43282         * lib/putenv.c (malloc): Returns void *, not char *.
43283         Include <string.h> unconditionally.
43284         (strchr, memcpy, NULL): Do not define.
43285
43286         * lib/readtokens.c: Include readtokens.h first, to test interface.
43287         Include <stdlib.h>, <string.h> unconditionally.
43288         (init_tokenbuffer): Define with a prototype.
43289
43290         * lib/regex.c (PARAMS): Remove.  All uses removed.
43291         All uses of _RE_ARGS removed, too.
43292         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43293         unconditionally.
43294         (bzero): Assume memset exists.
43295         (memcmp, memcpy, NULL): Remove.
43296         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
43297         char, or assignments to local vars of type signed char.
43298         (init_syntax_once, PREFIX(extract_number_and_incr),
43299         PREFIX(print_partial_compiled_pattern),
43300         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
43301         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
43302         PREFIX(regex_grow_registers), PREFIX(regex_compile),
43303         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
43304         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
43305         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
43306         wcs_compile_range, byte_compile_range, truncate_wchar,
43307         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
43308         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
43309         count_mbs_length, wcs_re_match_2_internal,
43310         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
43311         PREFIX(alt_match_null_string_p),
43312         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
43313         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
43314         regfree, PREFIX(extract_number)): Define with prototype.  Remove
43315         now-unnecessary declaration, if any.
43316         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
43317         regcomp, regexec):
43318         Remove now-unnecessary casts among pointer types.
43319         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
43320
43321         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
43322         (free): Remove decl.
43323
43324         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
43325
43326         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
43327         (free): Remove decl.
43328
43329         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
43330         * lib/xgetcwd.c: Likewise.
43331
43332         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
43333         (free): Remove decl.
43334
43335         * lib/strchrnul.c (strchrnul): Define with a prototype.
43336         Fix bug: c_in was not converted to char before searching.
43337
43338         The following changes are not K&R related:
43339
43340         * lib/group-member.h: Include <sys/types.h>, so that this file is
43341         self-contained.
43342         * lib/makepath.h: Likewise.
43343
43344         * lib/getusershell.c (readname, default_index, line_size, readname):
43345         Use size_t, not int, for sizes.
43346         (readname): If the size overflows, report an error instead of
43347         looping forever.
43348
43349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43350
43351         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
43352         libc.
43353
43354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43355
43356         * README: New section: portability guidelines.
43357
43358 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43359
43360         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
43361         C89 spec.
43362
43363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43364
43365         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
43366
43367 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43368
43369         Assume C89 or better; remove K&R cruft.
43370         A few of these changes were first proposed by Derek Robert Price
43371         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
43372
43373         * lib/addext.c: Include <string.h> unconditionally.
43374         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
43375         Don't declare getenv or malloc.
43376
43377         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
43378         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
43379         (NULL): Remove.
43380         (find_stack_direction, alloca): Use prototypes.
43381
43382         * lib/atexit.c (atexit): Define using a prototype.
43383
43384         * lib/basename.c, dirname.c, stripslash.c:
43385         Include <string.h> unconditionally.
43386
43387         * lib/bcopy.c: Include <stddef.h>.
43388         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
43389
43390         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
43391
43392         * lib/error.h (error, error_at_line, error_print_progname)
43393         [! (defined (__STDC__) && __STDC__)]: Remove decls.
43394         * lib/error.c: Include error.h first, to check interface.
43395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43396         (VA_START): Remove; all uses changeed to va_start.
43397         (exit, strerror): Remove decls.
43398         (error_print_progname): Prototype uncondionally.
43399         Don't include <errno.h>; no longer needed.
43400         (private_strerror): Remove.
43401         (error_tail): Always define.
43402         (error, error_at_line): Assume C89 or better; always use prototypes.
43403         * lib/fatal.c: Include "fatal.h" first, to test interface.
43404         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43405         (VA_START): Remove; all uses changed to va_start.
43406         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
43407         this case.
43408         (exit): Remove decl.
43409         (fatal): Prototype unconditionally.  Assume va_start works.
43410         Abort at end, to pacify gcc.
43411
43412         * lib/euidaccess.c (main): Define with a prototype.
43413
43414         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
43415
43416         * lib/exitfail.c: Include <stdlib.h> unconditionally.
43417
43418         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
43419         prototypes.
43420         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
43421         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
43422         (getenv): Remove decl.
43423         (fnmatch): Define using a prototype.
43424         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
43425         (FCT): Define using a prototype.
43426
43427         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
43428
43429         * lib/gethostname.c: Include <stddef.h>.
43430         (gethostname): Define with prototype.  Length is size_t, not int.
43431
43432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43433
43434         Assume C89 or better; remove K&R cruft.
43435         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
43436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
43437         string.h, getenv, malloc.
43438         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
43439         headers.
43440         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
43441         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
43442         do not check for strerror.
43443         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
43444         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
43445         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
43446         do not check for doprnt or vprintf.
43447         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
43448         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
43449
43450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43451
43452         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
43453         getversion.c should have been removed then, but was accidentally
43454         preserved.
43455
43456         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
43457         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
43458
43459 2003-09-08  Karl Berry  <karl@gnu.org>
43460
43461         * config/config.sub, config.guess, srclistvars.sh: update from savannah
43462                 config, forget about prep.
43463
43464         * config/depcomp, missing: update from automake.
43465
43466 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43467
43468         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
43469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43470
43471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43472
43473         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
43474         copy_tm_result.  Bug reported by Simon Josefsson in
43475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43476
43477 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43478
43479         * m4/time_r.m4: New file.
43480         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
43481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
43482         is. Check for timegm declaration.
43483         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
43484         Do not check for gmtime_r.
43485         Replace mktime if __mktime_internal does not exist and if mktime
43486         hasn't been replaced already.
43487
43488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43489
43490         * lib/time_r.c, lib/time_r.h: New files.
43491
43492         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
43493         __localtime_r.
43494         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
43495         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
43496
43497         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
43498         __gmtime_r.
43499         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
43500         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
43501         Include <time_r.h>.
43502
43503         * lib/timegm.c: Switch to glibc implementation, with the following
43504         changes:
43505         [defined HAVE_CONFIG_H]: Include <config.h>.
43506         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
43507         (__mktime_internal) [!defined _LIBC]: New decl.
43508         (__gmtime_r) [!defined _LIBC]: New macro and function.
43509         (timegm): Use a prototype, since gnulib assumes C89.
43510         Do not bother declaring tmp to be const, as it's not really usefu.
43511         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
43512         (timegm): Declare only if HAVE_DECL_TIMEGM.
43513
43514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43515
43516         * MODULES.html.sh (func_all_modules): Add time_r.
43517         * modules/time_r: New file.
43518         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
43519         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
43520
43521 2003-09-03  Paul Eggert  <eggert@twinsun.com>
43522
43523         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
43524         Bug reported by Lute Kamstra in
43525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
43526
43527         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
43528         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
43529         course with correspondingly smaller numbers for tomorrow and
43530         yesterday.  From Tadayoshi Funaba.  Originally installed into
43531         sh-utils on 1999-08-07, but the patch got lost (I guess during the
43532         coreutils merge?).
43533
43534 2003-08-31  Simon Josefsson  <jas@extundo.com>
43535
43536         * modules/timegm: New file.
43537         * MODULES.html.sh (func_all_modules): Add timegm.
43538
43539 2003-08-31  Simon Josefsson  <jas@extundo.com>
43540
43541         * m4/timegm.m4: New file.
43542
43543 2003-08-31  Simon Josefsson  <jas@extundo.com>
43544
43545         * lib/timegm.h: New file.
43546         * lib/timegm.c: New file.  Based on
43547         wget-1.8.2/src/http.c:mktime_from_utc.
43548
43549 2003-08-31  Karl Berry  <karl@gnu.org>
43550
43551         * lib/argp.h: update from libc.
43552
43553 2003-08-28  Bruno Haible  <bruno@clisp.org>
43554
43555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43556         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43557         followed by '#define fnmatch fnmatch_posix' gives an error.
43558
43559 2003-08-28  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43562         warning on QNX, which defines O_BINARY to 000000.
43563
43564 2003-08-27  Jim Meyering  <jim@meyering.net>
43565
43566         * m4/mkstemp.m4: Require that the system mkstemp be able to create
43567         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
43568         would fail after 32.  Reported by Danny Levinson.  Details here:
43569         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43570
43571 2003-08-24  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43574         MSVC7 <stdio.h> is included later.
43575
43576 2003-08-22  Simon Josefsson  <jas@extundo.com>
43577
43578         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43579
43580 2003-08-20  Karl Berry  <karl@gnu.org>
43581
43582         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43583
43584 2003-08-20  Bruno Haible  <bruno@clisp.org>
43585
43586         * modules/progname: New file.
43587         * MODULES.html.sh (func_all_modules): Add progname.
43588
43589 2003-08-20  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/progname.h: New file, from GNU gettext.
43592         * lib/progname.c: New file, from GNU gettext.
43593         * lib/progreloc.c: New file, from GNU gettext.
43594
43595 2003-08-19  Jim Meyering  <jim@meyering.net>
43596
43597         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43598         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43599
43600 2003-08-19  Bruno Haible  <bruno@clisp.org>
43601
43602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43603         more.
43604
43605 2003-08-19  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/xstrdup.c: Assume <string.h> exists.
43608
43609 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43610
43611         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43612         in makefile rules.
43613
43614 2003-08-18  Jim Meyering  <jim@meyering.net>
43615
43616         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43617         * m4/lib-ld.m4: Likewise.
43618
43619 2003-08-18  Jim Meyering  <jim@meyering.net>
43620
43621         * lib/setenv.h: Indent nested cpp directive.
43622         * lib/vasnprintf.c: Remove trailing blanks.
43623
43624 2003-08-17  Simon Josefsson  <jas@extundo.com>
43625
43626         * modules/xstrndup: New file.
43627         * MODULES.html.sh (func_all_modules): Add xstrndup.
43628
43629 2003-08-17  Simon Josefsson  <jas@extundo.com>
43630
43631         * modules/argp: Fix autoconf macro name. Add more dependencies.
43632
43633 2003-08-17  Simon Josefsson  <jas@extundo.com>
43634
43635         * m4/xstrndup.m4: New file.
43636
43637 2003-08-17  Simon Josefsson  <jas@extundo.com>
43638
43639         * m4/argp.m4: New file.
43640
43641 2003-08-17  Simon Josefsson  <jas@extundo.com>
43642             Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/xstrndup.h: New file.
43645         * lib/xstrndup.c: New file.
43646
43647 2003-08-17  Bruno Haible  <bruno@clisp.org>
43648
43649         * modules/strndup (Files, Include): Add lib/strndup.h.
43650
43651 2003-08-17  Bruno Haible  <bruno@clisp.org>
43652
43653         * modules/euidaccess (Files): Add lib/euidaccess.h.
43654
43655 2003-08-17  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/strndup.h: New file.
43658
43659 2003-08-17  Bruno Haible  <bruno@clisp.org>
43660
43661         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43662         like AC_GNU_SOURCE.
43663         * modules/extensions (configure.ac): Comment out the invocation of
43664         gl_USE_SYSTEM_EXTENSIONS.
43665
43666 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43667
43668         Merges from coreutils, etc.
43669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43670         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43671         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43672         fixing a typo.
43673         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43674         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43675
43676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43677
43678         Document merge from coreutils.
43679         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43680         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43681         * modules/utime: Add m4/utimes-null.m4.
43682
43683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43684
43685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43686         space, undoing this 2003-08-12 change:
43687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43688
43689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43690
43691         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43692         strtoul.c from libc, undoing this 2003-08-12 change:
43693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43694
43695 2003-08-16  Jim Meyering  <jim@meyering.net>
43696
43697         Merges from coreutils.
43698         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43699         prefix.  Adjust cache variables similarly.  Create 500 rather than
43700         just 300 files, to exercise bug on Darwin6.5, too.
43701         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43702         $missing_dir.
43703         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43704         AM_SYS_POSIX_TERMIOS.
43705         Reported by mkc@mathdogs.com.
43706         Also change use of $am_cv_sys_posix_termios
43707         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43708         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43709         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43710         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43711         in /proc/mounts until it finds one with matching device number.  This
43712         is unnecessary when the FILE argument *is* a mount point.  No stat call
43713         is necessary in that case.  So, disable the statvfs-testing code on
43714         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43715         as RedHat bug# 84846.
43716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43717         to 1MB, so as not to render systems with no stack size limit (e.g.,
43718         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43719         Include <unistd.h>.  On some systems,
43720         it is required for the definition of _SC_PAGESIZE.
43721
43722 2003-08-16  Jim Meyering  <jim@meyering.net>
43723
43724         Merge from coreutils.
43725         * lib/xstrtoimax.c: #else #if -> #elif.
43726         * lib/xstrtoumax.c: Likewise.
43727
43728 2003-08-16  Jim Meyering  <jim@meyering.net>
43729
43730         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43731         * m4/utimes.m4: Removed.
43732         * m4/utimes-null.m4: Renamed from utimes.m4.
43733
43734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43735         to 1MB, so as not to render systems with no stack size limit (e.g.,
43736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43737         Include <unistd.h>.  On some systems,
43738         it is required for the definition of _SC_PAGESIZE.
43739
43740 2003-08-16  Jim Meyering  <jim@meyering.net>
43741         and Paul Eggert  <eggert@cs.ucla.edu>
43742
43743         Merges from coreutils, etc.
43744
43745         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43746         using the latest version from cvs.  This avoids problems with #line
43747         directives using a vendor (Sun) compiler.
43748         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43749         Don't set GETGROUPS_LIB here; now it's
43750         done via getgroups.m4's wrapper function.
43751         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43752         rather than just in sh-util/configure.in, so that the
43753         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43754         same.
43755         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43756         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43757         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43758         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43759         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43760         Remove code that is now done by the newly-required macros.
43761         Append $(EXEEXT) to DF_PROG.
43762         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43763         Do not invoke or require the following here,
43764         since prereq.m4 or some gnulib .m4 now does this for us:
43765         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43766         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43767         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43768         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43769         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43770         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43771         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43772         AC_FUNC_OBSTACK.
43773         Do not replace the following functions, as this is now the job
43774         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43775         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43776         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43777         atexit getpass, strdup, getpagesize.
43778         Replace 'raise'.
43779         Do not check for the following functions, as this is now the job
43780         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43781         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43782         setregid.
43783         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43784         Check for sys/sysctl.h.
43785         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43786         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43787         of checking for ssize_t ourselves.
43788
43789         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43790         Require every macro that gnulib/modules/* suggests for us.
43791         (jm_PREREQ_ADDEXT): New macro.
43792         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43793         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43794
43795         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43796         (gl_PHYSMEM): Use it.
43797         Also check for `table' function.
43798         Check for new headers and functions.
43799         Add check for sys/sysmp.h.
43800         With suggestions from Kaveh Ghazi.
43801         Ignore headers that are present but cannot be compiled.  This
43802         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43803         C 5.4.
43804
43805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43806
43807         Document merge from coreutils.
43808         * modules/userspec: Depend on posixver.
43809         * modules/strftime: Depend on tzset.
43810
43811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43812
43813         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43814         rather than tab, after '#' in shell-script copyright notices.
43815         Suggested by Bruno Haible.
43816
43817 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43818
43819         * config/srclist-update: Use three spaces, rather than tab, after '#'
43820         in shell-script copyright notices.  Suggested by Bruno Haible.
43821         Remove unnecessary parenthesization in regular expression.
43822
43823 2003-08-15  Jim Meyering  <jim@meyering.net>
43824
43825         Merge from coreutils.
43826         * lib/xgethostname.c: Include <stdlib.h>.
43827         (xghostname): Don't exit for anything other than memory-related
43828         failure; just return NULL.
43829         * lib/userspec.c: Include "posixver.h".
43830         (parse_user_spec): Accept `.' as a separator only
43831         in pre-POSIX-200112 mode.
43832         * lib/strtoimax.c: Use #elif rather than #else #if.
43833         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43834         Remove function, now that we can rely on a working tzset function.
43835         [!_LIBC]: Ensure that the required autoconf test has been run.
43836         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43837         Use underlying_strftime for %r.
43838         * lib/sha.c: Merge in some clean-up and optimization changes from
43839         glibc.
43840         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43841         Ensure that it is a multiple of 64.
43842         Rearrange loop exit tests so as to avoid performing an
43843         additional fread after encountering an error or EOF.
43844         * lib/realloc.c: Update copyright date.
43845
43846 2003-08-15  Jim Meyering  <jim@meyering.net>
43847         and Paul Eggert  <eggert@twinsun.com>
43848
43849         Merge from coreutils.
43850         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43851         member but strut utmpx does not.  Needed for AIX 4.3.3.
43852         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43853
43854 2003-08-15  Jim Meyering  <jim@meyering.net>
43855         and Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         Merges from coreutils, etc.
43858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43859         Require gl_FUNC_TZSET_CLOBBER.
43860         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43861         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43862         members.
43863
43864 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43865
43866         Help the merge from coreutils.
43867         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43868         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43869         * m4/tzset.m4: Use it too.
43870
43871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43872
43873         * modules/tzset: New file.
43874
43875 2003-08-14  Jim Meyering  <jim@meyering.net>
43876
43877         Merges from coreutils.
43878         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43879         variable names, rather than @FNMATCH_H@.
43880         * modules/alloca: Likewise for $(ALLOCA_H).
43881
43882         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43883         the three copies of the literal target, `fnmatch.h'.
43884         * modules/alloca (alloca.h): Likewise.
43885
43886 2003-08-14  Jim Meyering  <jim@meyering.net>
43887
43888         Merge from coreutils.
43889         * m4/tzset.m4: New file.
43890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43891         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43892         otherwise, AIX 5.1 systems would end up using the latter.
43893         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43894         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43895         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43896         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43897
43898 2003-08-14  Jim Meyering  <jim@meyering.net>
43899
43900         Merge from coreutils.
43901         * lib/obstack.h: Whitespace changes.
43902         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43903         and xcalloc return values.
43904         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43905         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43906         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43907         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43908         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43909         error from mntctl.
43910         Use mntctl's return value to drive the entry-processing loop, since
43911         we can't rely on the value of the vmt_length member in the last
43912         entry.  On some systems doing so could result in exhausting
43913         virtual memory.  Based in part on a patch from Mike Jetzer.
43914
43915 2003-08-14  Jim Meyering  <jim@meyering.net>
43916         and Paul Eggert  <eggert@twinsun.com>
43917
43918         Merges from coreutils, plus other fixes.
43919         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43920         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43921         for credits and details.  Thanks to Kaveh Ghazi for helping
43922         to keep these files in sync.
43923         (ARRAY_SIZE): Define it.
43924         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43925         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43926         (memcasecmp): Don't assume size_t fits in unsigned int.
43927         Remove casts and duplicate code.
43928         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43929         (memcpy): Remove definition.
43930         Merge in some clean-up and optimization changes from glibc.
43931         [BLOCKSIZE]: Move definition to top of file.
43932         Ensure that it is a multiple of 64.
43933         Rearrange loop exit tests so as to avoid performing an
43934         additional fread after encountering an error or EOF.
43935         * lib/md5.h (md5_uintptr): Define.
43936         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43937         return to the initial working directory.  Preserve errno
43938         for caller.
43939         * lib/idcache.c: Include "xalloc.h".
43940         (xmalloc, xrealloc): Remove decls.
43941         (getuser): Remove casts no longer required in C89.
43942         * lib/human.c: Include stdio.h, for sprintf.
43943         * lib/group-member.c: Include "xalloc.h".
43944         (xmalloc, xrealloc): Remove decls.
43945         (get_group_info): Remove casts no longer required in C89.
43946         * lib/getusershell.c (readname): Remove casts no longer required in
43947         C89.
43948         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43949         * lib/getline.c: Whitespace fix, from coreutils.
43950
43951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43952
43953         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43954         Check for isascii.
43955
43956         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43957         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43958         Undo previous (whitespace-only) change.
43959
43960 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43961
43962         * lib/exclude.c: Include <ctype.h>
43963         (IN_CTYPE_DOMAIN): New macro.
43964         (is_space): New fn.
43965         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43966         and empty lines.
43967
43968         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43969         Undo previous (whitespace-only) change.
43970
43971 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43972
43973         * config/srclist-update: Change update back to the old behavior,
43974         leaving whitespace alone.  Use one 'sed' command rather than a
43975         pipeline.
43976         (fixlicense): Now a variable, not a function.
43977         (remove_trailing_blanks): Remove.
43978         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43979         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43980         Undo previous (whitespace-only) change.
43981
43982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43983
43984         Merge from coreutils.
43985         * modules/euidaccess: Add lib_SOURCES, include for new
43986         file euidaccess.h
43987
43988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43989
43990         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43991         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43992         Normalize leading white space and remove trailing white space.
43993
43994         Merge from coreutils
43995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43996
43997         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43998         0.12.1.  These files are now being upgraded automatically by
43999         ../config/srclist-update.
44000
44001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44002
44003         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
44004         Normalize leading white space and remove trailing white space.
44005         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
44006         notice, as per ../config/srclist-update.
44007
44008         Merge from coreutils.
44009         * lib/euidaccess.h: New file.
44010         * lib/euidaccess.c: Include it.
44011         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
44012         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
44013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
44014
44015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44016
44017         * config/srclist-update: Add copyright notice.
44018         (remove_id_lines, remove_trailing_blanks): New constants.
44019         (fixfile): Use them to normalize spacing a bit in copied files.
44020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
44021         Normalize leading white space and remove trailing white space.
44022
44023         * config/texinfo.tex: Sync with texinfo.
44024
44025         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
44026         strtoul.c from libc, to merge coreutils whitespace changes.
44027
44028         * config/srclist.txt: Get the following m4 files from gettext:
44029         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
44030         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
44031         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
44032         wint_t.m4.
44033
44034 2003-08-12  Karl Berry  <karl@gnu.org>
44035
44036         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
44037         been made.
44038
44039 2003-08-11  Paul Eggert  <eggert@twinsun.com>
44040
44041         * modules/gnu-source, m4/gnu-source.m4:
44042         Remove; we're assuming Autoconf 2.54 or later now.
44043         Suggested by Bruno Haible.
44044         * MODULES.html.sh (func_all_modules): Remove gnu-source.
44045
44046 2003-08-11  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
44049
44050 2003-08-11  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
44053         (vasnprintf): Use it instead of wcslen.
44054
44055 2003-08-11  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
44058         value to ensure that _Bool promotes to int. Use #define for _Bool when
44059         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
44060
44061 2003-08-10  Karl Berry  <karl@gnu.org>
44062
44063         * lib/regex.h: update from libc (whitespace fix).
44064
44065 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44066
44067         Merge some files from coreutils.  These changes were
44068         originally made by Jim Meyering.
44069         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
44070         many older Unixes require this.
44071         * lib/alloca.c (alloca): Remove cast to argument of free;
44072         no longer needed in C89.
44073         * lib/alloca_.h, regex.h: Fix white space to match
44074         what GNU indent does.
44075
44076 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44077
44078         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
44079         apparently Emacs's Unicode mode got confused before my 2003-08-05
44080         checkin.
44081
44082 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44083
44084         * m4/extensions.m4: New file.
44085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
44086         Require gl_USE_SYSTEM_EXTENSIONS.
44087         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
44088         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
44089
44090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44091
44092         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
44093         * modules/extensions, modules/gnu-source: New files.
44094         * modules/timespec, modules/unlocked-io: Depend on extensions.
44095
44096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44097
44098         * modules/restrict: New file.
44099         * MODULES.html.sh (func_all_modules): Add restrict.
44100         * modules/regex: Depend on restrict.
44101
44102 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44103
44104         * m4/restrict.m4: New file.
44105         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
44106
44107 2003-08-07  Bruno Haible  <bruno@clisp.org>
44108
44109         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
44110         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
44111
44112 2003-08-07  Bruno Haible  <bruno@clisp.org>
44113
44114         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
44115         makes the module 'getndelim2' compatible with the module 'getline'.
44116
44117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44118
44119         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
44120         byte with "\201" to avoid glitches when editing that source file
44121         with multi-gnome-terminal.
44122
44123 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44124
44125         * lib/bumpalloc.h: Remove.
44126
44127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44128
44129         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
44130         * modules/bumpalloc: Remove.
44131
44132 2003-08-04  Paul Eggert  <eggert@twinsun.com>
44133
44134         * lib/getloadavg.c: Change copyright notice and spacing to conform to
44135         GNU coding style.
44136
44137         Merge from coreutils.
44138         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
44139         1. From glibc.
44140         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
44141         from Karl Berry, implemented by Jim Meyering.
44142         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
44143         from Dmitry V. Levin.
44144         Remove anachronistic cast of xrealloc.
44145         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
44146         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
44147         type. Otherwise, it wouldn't compile with at least /bin/cc on
44148         ymp-cray-unicos9.0.2.X.
44149         Combine two mostly-identical uses of alloca into one.
44150         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
44151
44152 2003-08-04  Dave Love  <d.love@dl.ac.uk>
44153
44154         [From Emacs.]
44155
44156         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
44157         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
44158         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
44159         obsolete NLIST_NAME_UNION.
44160         [__GNU__]: Undef BSD and FSCALE.
44161         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
44162
44163 2003-08-03  Paul Eggert  <eggert@twinsun.com>
44164
44165         * lib/stdbool_.h (_Bool): Make it signed char, instead of
44166         an enum type, so that it's guaranteed to promote to int.  See:
44167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
44168
44169 2003-08-03  Karl Berry  <karl@gnu.org>
44170
44171         * config/depcomp: update from automake.
44172
44173 2003-07-31  Paul Eggert  <eggert@twinsun.com>
44174
44175         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
44176         (strerror): Don't assume that a printable int fits in 14 bytes.
44177
44178 2003-07-31  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/getpass-gnu: New file.
44181         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
44182
44183 2003-07-31  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
44186
44187 2003-07-24  Karl Berry  <karl@gnu.org>
44188
44189         * config/missing: update from automake.
44190
44191 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
44192             Bruno Haible  <bruno@clisp.org>
44193
44194         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
44195         * lib/getline.c (getline, getdelim): Likewise.
44196         Remove _GNU_SOURCE define; now it's defined in config.h through
44197         m4/getline.m4.
44198
44199 2003-07-23  Karl Berry  <karl@gnu.org>
44200
44201         * config/config.sub: update from prep.
44202
44203 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44204
44205         * modules/xalloc (Depends-on): Add exitfail.
44206         * modules/xmemcoll: Likewise.
44207
44208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44209
44210         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
44211         over-parenthesization in macros.
44212
44213         Sync with coreutils.
44214
44215         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
44216         required by C99.
44217
44218         Use `exit_failure' for xalloc and xmemcoll instead of their own
44219         private exit-failure variables.
44220         * lib/xalloc.h (xalloc_exit_failure): Remove.
44221         * lib/xmalloc.c: Likewise.  Include exitfail.h.
44222         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
44223         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
44224         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
44225         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
44226
44227 2003-07-20  Jim Meyering  <jim@meyering.net>
44228
44229         * modules/closeout (Depends-on): Add exitfail.
44230         Suggestion from Bruno Haible.
44231
44232 2003-07-19  Karl Berry  <karl@gnu.org>
44233
44234         * config/config.sub: update from prep.
44235
44236 2003-07-18  Paul Eggert  <eggert@twinsun.com>
44237
44238         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
44239         Remove.
44240         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
44241         to test that it can stand by itself.  Include "exitfail.h".
44242         Clients should set exit_failure instead.
44243         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
44244
44245 2003-07-18  Bruno Haible  <bruno@clisp.org>
44246
44247         * modules/getndelim2: New file.
44248         * modules/getline: Share files with module getndelim2.
44249         * modules/getnline: Depend on getndelim2 instead of sharing files with
44250         it. Add getnline.c to lib_SOURCES.
44251         * MODULES.html.sh (func_all_modules): Add getndelim2.
44252
44253 2003-07-18  Bruno Haible  <bruno@clisp.org>
44254
44255         * m4/getndelim2.m4: New file.
44256         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
44257         invoke gl_PREREQ_GETNDELIM2.
44258         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
44259         gl_PREREQ_GETNDELIM2.
44260         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
44261         gl_GETNDELIM2.
44262
44263 2003-07-18  Bruno Haible  <bruno@clisp.org>
44264
44265         * lib/getndelim2.h: New file.
44266         * lib/getndelim2.c: Make into a module of its own. Include config.h,
44267         getndelim2.h.
44268         (getndelim2): Make non-static. Change return type to ssize_t.
44269         * lib/getline.h: Change argument names.
44270         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
44271         * lib/getnline.c: Include getndelim2.h.
44272
44273 2003-07-18  Andreas Schwab  <schwab@suse.de>
44274
44275         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
44276
44277 2003-07-17  Karl Berry  <karl@gnu.org>
44278
44279         * config/config.sub: update from prep.
44280
44281 2003-07-17  Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/getnline: New file.
44284         * modules/getline: Add lib/getndelim2.c to source file list.
44285         * MODULES.html.sh (func_all_modules): Add getnline.
44286
44287 2003-07-17  Bruno Haible  <bruno@clisp.org>
44288
44289         * m4/getnline.m4: New file.
44290
44291 2003-07-17  Bruno Haible  <bruno@clisp.org>
44292
44293         * m4/Makefile.am.in: Remove file.
44294         * m4/Makefile.am: Remove file.
44295         * m4/Makefile.in: Remove file.
44296
44297 2003-07-17  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/getnline.h: New file.
44300         * lib/getnline.c: New file.
44301         * lib/getndelim2.c: New file, extracted from getline.c.
44302         (getndelim2): Renamed from getdelim2, with added nmax argument.
44303         * lib/getline.c: Include getndelim2.c.
44304         (getdelim2): Moved out to getndelim2.c.
44305         (getline, getdelim): Update.
44306
44307 2003-07-17  Bruno Haible  <bruno@clisp.org>
44308
44309         * lib/Makefile.am: Remove file.
44310         * lib/Makefile.in: Remove file.
44311
44312 2003-07-17  Bruno Haible  <bruno@clisp.org>
44313
44314         * configure.in: Remove file.
44315         * Makefile.in: Remove file.
44316
44317 2003-07-17  Bruno Haible  <bruno@clisp.org>
44318
44319         * MODULES.html.sh: Put the </BODY> right before </HTML>.
44320
44321 2003-07-16  Karl Berry  <karl@gnu.org>
44322
44323         * config/srclist-update: was running fixlicense twice, which caused
44324                 texinfo.tex to be nullified for some reason.  Simplify,
44325                 $gplsrc is no longer needed as far as I can see?
44326
44327 2003-07-16  Jim Meyering  <jim@meyering.net>
44328
44329         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
44330
44331 2003-07-15  Paul Eggert  <eggert@twinsun.com>
44332
44333         * config/srclist.txt: Get the following files from gettext-runtime/intl
44334         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
44335         ref-del.sin.  From Bruno Haible.
44336         * config/srclist-update (fixfile): Change grep pattern again, since the
44337         previous fix didn't work (there was another trailing $).  Use
44338         '[$]' to escape the $s.
44339
44340 2003-07-15  Karl Berry  <karl@gnu.org>
44341
44342         * lib/vasnprintf.c: update from gettext.
44343
44344 2003-07-15  Karl Berry  <karl@gnu.org>
44345
44346         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
44347         gets expanded when surrounded by '$'.
44348
44349 2003-07-15  Jim Meyering  <jim@meyering.net>
44350
44351         * modules/save-cwd: Don't depend on error.  From Derek Price.
44352
44353 2003-07-15  Jim Meyering  <jim@meyering.net>
44354
44355         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
44356
44357 2003-07-14  Simon Josefsson  <jas@extundo.com>
44358
44359         * modules/mempcpy: New file.
44360         * MODULES.html.sh (func_all_modules): Add mempcpy.
44361
44362 2003-07-14  Simon Josefsson  <jas@extundo.com>
44363
44364         * m4/mempcpy.m4: New file.
44365
44366 2003-07-14  Simon Josefsson  <jas@extundo.com>
44367
44368         * lib/mempcpy.h: New file.
44369         * lib/mempcpy.c: New file.
44370
44371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44372
44373         * modules/getdate, modules/posixtm: Depend on mktime.
44374
44375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44376
44377         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
44378         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
44379         unicodeio.c, unicodeio.h, unlocked-io.h:
44380         Switch from LGPL to GPL.
44381
44382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44383
44384         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
44385         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
44386         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
44387         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
44388         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
44389         updated automatically by ../config/srclist-update.  This changes
44390         their license from LPGL to GPL.
44391
44392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44393
44394         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
44395         assumed to refer to the root of the most recent stable gettext version.
44396         * config/srclistvars.sh: Add defaults for eggert.
44397         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
44398         Match "This program" as well as "The program".  This is needed
44399         for gettext.
44400
44401 2003-07-14  Jim Meyering  <jim@meyering.net>
44402
44403         Don't emit diagnostics.  Let callers do that.
44404         * lib/save-cwd.c: Don't include "error.h".
44405         (save_cwd): Don't call error.  Ensure that errno is valid
44406         when returning nonzero.
44407
44408         * lib/save-cwd.h (restore_cwd): Update prototype.
44409         * lib/save-cwd.c (restore_cwd): Remove two parameters.
44410         Simplify.  Don't call error upon failure.  Let callers do that.
44411         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
44412         when auditing is enabled.  But don't bother updating the #if.
44413
44414 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
44415
44416         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
44417         it breaks C++ compilation.
44418         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
44419
44420 2003-07-10  Simon Josefsson  <jas@extundo.com>
44421
44422         * modules/strchrnul (Makefile.am): Add strchrnul.h.
44423
44424 2003-07-10  Jim Meyering  <jim@meyering.net>
44425
44426         * m4/clock_time.m4: Remove trailing blank.
44427         * m4/intmax_t.m4: Likewise.
44428
44429 2003-07-10  Jim Meyering  <jim@meyering.net>
44430
44431         * lib/vasnprintf.c: Remove trailing blanks.
44432         Make cpp indentation consistent.
44433
44434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44435
44436         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
44437         posixver.c, strftime.c, strnlen.c, strverscmp.c:
44438         Switch from LGPL to GPL.
44439
44440 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44441
44442         * config/srclist.txt: Sort sublists.  Add
44443         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
44444         that differ from gnulib for one reason or another; we'd like this list
44445         to be smaller but for now let's document what we have.
44446
44447 2003-07-08  Paul Eggert  <eggert@twinsun.com>
44448
44449         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
44450         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
44451         and sweeter "eval x=$x".
44452         * config/srclist.txt: Get lib/argp* from glibc.
44453
44454 2003-07-07  Paul Eggert  <eggert@twinsun.com>
44455
44456         * lib/mktime.c: Fix some boundary cases and remove need for floating
44457         point.
44458
44459         Issue a compile-time diagnostic if time_t is floating point, or if
44460         two's complement arithmetic is not in effect, or if arithmetic
44461         right shift does not propagate the sign.  These assumptions were
44462         all in the original code but they weren't checked.
44463
44464         (TIME_T_MIDPOINT, verify): New macros.
44465         (__isleap): Remove; it has integer overflow problems.
44466         (leapyear): New function, without those problems.
44467         (ydhms_tm_diff): Remove; splitting into two parts.
44468         (ydhms_diff): New function, containing the arithmetic part of
44469         the old ydhms_tm_diff function.  Issue a compile-time
44470         diagnostic if we are not using C99 integer division.
44471         Avoid casts when possible.
44472         (guess_time_tm): New function, containing the checking part of
44473         the old ydhms_tm_diff function.  Return the new value, rather than
44474         the difference between it and the old.  Accept a new argument T
44475         so that *T specifies the old value.  Check for overflow in the result.
44476
44477         (__mktime_internal): Use a time_t offset, not a long int offset.
44478         This undoes the 2003-06-04 change, which is no longer needed now
44479         that we have better overflow checking.
44480         (localtime_offset): Likewise.
44481
44482         (__mktime_internal): Avoid harmful overflow on hosts where time_t
44483         and long are 64-bit but int is only 32-bit.
44484         (ydhms_diff): Use long int to store year1 and yday1.
44485         Issue a compile-time diagnostic if long int is not wide enough.
44486
44487         (__mktime_internal): Use long int to store adjusted year and yday.
44488         Use plain C rather than preprocessor commands, if that doesn't
44489         affect efficiency.
44490         Check for overflow (and try to repair) after each probe
44491         rather than checking only at the very end.  This avoids some bugs
44492         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
44493         does not equal GMT offset at maximum time).
44494         Use integer to check for overflow rather than floating point; this
44495         is more portable to non-IEEE hosts, and is a tad faster.
44496         When we detect that we are oscillating between two values,
44497         don't check whether tm_isdst has the requested value, since
44498         we already know the answer.  When tm_isdst has the wrong value,
44499         use a different heuristic to find the right one, based on the
44500         extreme values actually observed in practice in tz2003a,
44501         rather than the (overly optimistic) "previous 3 calendar quarters".
44502
44503         (not_equal_tm, print_tm, check_result): Use "const T" rather than
44504         "T const" to accommodate glibc style.
44505         (check_result): Use less-confusing report format.  "long" -> "long int.
44506         (main): Likewise.
44507         Don't loop if the iteration overflows time_t.
44508         Allow a negative step in the iteration.
44509
44510 2003-07-06  Karl Berry  <karl@gnu.org>
44511
44512         * config/depcomp: update from automake.
44513         * config/config.sub: update from prep.
44514
44515 2003-07-03  Karl Berry  <karl@gnu.org>
44516
44517         * config/config.guess: update from prep.
44518
44519 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44520
44521         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
44522         xreadlink.c now includes it unconditionally.
44523
44524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44525
44526         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
44527         having it depend on HAVE_SYS_TYPES_H.
44528
44529 2003-07-01  Bruno Haible  <bruno@clisp.org>
44530
44531         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
44532         <sys/types.h> should be sufficient.
44533         Reported by Paul Eggert.
44534
44535 2003-06-26  Karl Berry  <karl@gnu.org>
44536
44537         * config/depcomp: update from automake.
44538
44539 2003-06-26  Bruno Haible  <bruno@clisp.org>
44540
44541         * modules/human: Depend on module stdbool.
44542
44543 2003-06-25  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/readlink: New file.
44546         * modules/xreadlink: Depend on it.
44547         * MODULES.html.sh (func_all_modules): Add readlink.
44548
44549 2003-06-25  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/readlink.m4: New file.
44552
44553 2003-06-25  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/readlink.c: New file.
44556
44557 2003-06-22  Karl Berry  <karl@gnu.org>
44558
44559         * config/srclist.txt: update mkinstalldirs from automake.
44560         * config/mkinstalldirs: update.
44561
44562 2003-06-22  Bruno Haible  <bruno@clisp.org>
44563
44564         Portability to mingw32.
44565         * m4/ssize_t.m4: New file, from GNU gettext.
44566         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44567         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44568
44569 2003-06-22  Bruno Haible  <bruno@clisp.org>
44570
44571         * modules/safe-read: Add m4/ssize_t.m4.
44572         * modules/xreadlink: Add m4/ssize_t.m4.
44573
44574 2003-06-20  Bruno Haible  <bruno@clisp.org>
44575
44576         Assume C89, so PARAMS isn't needed.
44577         * lib/unicodeio.h (PARAMS): Remove.
44578         * lib/unicodeio.c: Don't use PARAMS.
44579
44580 2003-06-18  Karl Berry  <karl@gnu.org>
44581
44582         * config/config.{guess,sub}: update from prep.
44583
44584 2003-06-18  Jim Meyering  <jim@meyering.net>
44585
44586         Merge changes from coreutils.
44587         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44588         Remove explicit declarations of xmalloc and realloc.
44589         Include xalloc.h.
44590         (read_utmp): Remove anachronistic cast of xmalloc.
44591
44592 2003-06-17  Paul Eggert  <eggert@twinsun.com>
44593
44594         Assume C89, so PARAMS isn't needed.
44595         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
44596         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44597         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44598         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44599         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44600         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44601         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44602         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44603         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44604         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44605         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44606         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44607         no longer needed. Anyway, config.h should always be included before any
44608         other file.
44609
44610 2003-06-11  Simon Josefsson  <jas@extundo.com>
44611
44612         * modules/sysexits: New file.
44613         * MODULES.html.sh (func_all_modules): Add sysexits.
44614
44615 2003-06-11  Simon Josefsson  <jas@extundo.com>
44616
44617         * lib/sysexit_.h: New file.
44618
44619 2003-06-11  Derek Price  <derek@ximbiot.com>
44620
44621         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44622         necessary.
44623
44624 2003-06-11  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/sysexits.m4: New file.
44627
44628 2003-06-10  Simon Josefsson  <jas@extundo.com>
44629
44630         * lib/argp.h: New file, from glibc.
44631         * lib/argp-ba.c: New file, from glibc.
44632         * lib/argp-eexst.c: New file, from glibc.
44633         * lib/argp-fmtstream.c: New file, from glibc.
44634         * lib/argp-fmtstream.h: New file, from glibc.
44635         * lib/argp-fs-xinl.c: New file, from glibc.
44636         * lib/argp-help.c: New file, from glibc.
44637         * lib/argp-namefrob.h: New file, from glibc.
44638         * lib/argp-parse.c: New file, from glibc.
44639         * lib/argp-pv.c: New file, from glibc.
44640         * lib/argp-pvh.c: New file, from glibc.
44641         * lib/argp-xinl.c: New file, from glibc.
44642
44643 2003-06-10  Simon Josefsson  <jas@extundo.com>
44644
44645         * modules/strchrnul: New file.
44646
44647 2003-06-10  Simon Josefsson  <jas@extundo.com>
44648
44649         * modules/argp: New file.
44650
44651 2003-06-10  Simon Josefsson  <jas@extundo.com>
44652
44653         * m4/strchrnul.m4: New file.
44654
44655 2003-06-10  Simon Josefsson  <jas@extundo.com>
44656
44657         * lib/strchrnul.h: New file.
44658         * lib/strchrnul.c: New file.
44659
44660 2003-06-10  Bruno Haible  <bruno@clisp.org>
44661
44662         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44663
44664 2003-06-07  Karl Berry  <karl@gnu.org>
44665
44666         * config/config.{guess,sub}: update from prep.
44667
44668 2003-06-07  Jim Meyering  <jim@meyering.net>
44669
44670         * modules/strtod: Use $(...) notation, not @...@ for
44671         AC_REPLACE'd variables.
44672         * modules/localcharset: Likewise.
44673
44674 2003-06-07  Jim Meyering  <jim@meyering.net>
44675
44676         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44677         in place of my name in the copyright comment.
44678         Remove definition and uses of __P.
44679
44680         From coreutils.
44681         * lib/stat.c: Don't declare xmalloc explicitly.
44682         Instead, include "xalloc.h".
44683         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44684         xrealloc, and xcalloc return values.
44685         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44686         Improve comment.
44687         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44688
44689 2003-06-07  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44692         avoid AC_CONFIG_LINKS.
44693         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44694         fnmatch.h, to avoid AC_CONFIG_LINKS.
44695         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44696
44697 2003-06-07  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44700         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44702         directory.
44703         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44704         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44705         directory.
44706
44707 2003-06-06  Jim Meyering  <jim@meyering.net>
44708
44709         Merge from coreutils.
44710         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44711         Consolidate declarations and initializations of *_base* locals.
44712
44713         Merge from coreutils.
44714         This avoids a core dump on systems without GNU putenv,
44715         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44716         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44717         (unsetenv): New static function, from GNU libc.
44718         (rpl_putenv): Use it.
44719
44720         * lib/modechange.c: Remove trailing blanks.
44721
44722         Merge from coreutils.
44723         * lib/fsusage.c: Remove declaration of statfs.
44724         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44725
44726         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44727
44728 2003-06-06  Jim Meyering  <jim@meyering.net>
44729
44730         * lib/stdbool_.h: Renamed from stdbool.h.in.
44731
44732 2003-06-06  Jim Meyering  <jim@meyering.net>
44733             Bruno Haible  <bruno@clisp.org>
44734
44735         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44736         Adjust Makefile.am snippet not to redirect directly to target.
44737         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44738
44739 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44740
44741         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44742         mismatch, look in future quarters as well as past.  This fixes a
44743         bug when processing fall-backwards gaps immediately after a long
44744         period of daylight-saving time.
44745
44746         * lib/mktime.c: Assume freestanding C89 or better.
44747         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44748         (__P): Remove; not used.
44749         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44750         (mktime, not_equal_tm, print_tm, check_result,
44751         main): Use prototypes.  Use const * where appropriate.
44752         (main): Fix typo in testing code that uncovered by above changes.
44753         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44754
44755 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44756
44757         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44758         locale.h, localeconv.  This merges changes from coreutils.
44759
44760         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44761         It can be removed after the next Autoconf is released.
44762         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44763         needed.
44764
44765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44766
44767         * lib/mktime.c: Fix Debian bug 177940
44768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44769         (localtime_offset): Now long int, not time_t, because we want it
44770         to be guaranteed to be signed.  All uses changed.
44771         (__mktime_internal): If overflow would occur when adding offset,
44772         don't add it.
44773
44774         Merge 'human' changes from coreutils.  Rewrite to support
44775         locale-specific notations like thousands separators.
44776         * lib/human.c: Simplify authorship notice.
44777         Include human.h immediately after config.h.
44778         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44779         <limits.h>: Do not include, since human.h does.
44780         (SIZE_MAX, UINTMAX_MAX): New macros.
44781         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44782         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44783         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44784         (power_letter): Renamed from suffixes.
44785         (generate_suffix_backwards): Remove.
44786         (adjust_value): Now takes int style (because of human.h changes)
44787         and long double value (for greater precision on some platforms).
44788         (group_number): New function.
44789         (human_readable): Use it.  Use integer options, not enum.
44790         Put the options before the sizes in the arg list.
44791         Support all the new options.
44792         The old human_readable function has been removed;
44793         use inttostr.h instead.
44794         (human_readable, default_block_size, humblock):
44795         Use uintmax_t, not int, for block sizes.
44796         (human_readable_inexact, block_size_types): Remove.
44797         (block_size_opts): New constant.
44798         (human_options): Renamed from human_block_size, with new signature
44799         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44800         * lib/human.h: Add copyright and authorship notice.
44801         Include <limits.h> and <stdbool.h> unconditionally.
44802         (PARAMS): Remove.  All uses removed.
44803         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44804         (enum human_inexact_style): Remove tag; now a nameless enum.
44805         (human_floor, human_ceiling, human_round_to_even): Now have
44806         values 2, 0, 1 rather than -1, 1, 0.
44807         (human_group_digits, human_suppress_point_zero, human_autoscale,
44808         human_base_1024, human_SI, human_B): New constants.
44809         (human_readable_inexact, human_block_size): Remove.
44810         (human_readable): Size args are now uintmax_t, not int.
44811         (human_options): New decl.
44812
44813         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44814         unnecessary now that we assume C89 or better.  This change
44815         imported from coreutils.
44816
44817         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44818         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44819         in the 2003-05-30 sync from glibc.
44820
44821         .h files should stand alone, but we shouldn't include <sys/types.h>
44822         if we can get away with just <stddef.h>.
44823
44824         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44825         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44826         rather than <sys/types.h>, as we merely need size_t.
44827         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44828         to get size_t.
44829         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44830         Include <stdio.h>, to get FILE.
44831         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44832         memcasecmp.h has included <stddef.h> and all we need is size_t.
44833         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44834         our interface, instead of including <sys/types.h>
44835
44836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44837
44838         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44839         now, as glibc mktime is buggy on non-glibc systems.
44840
44841 2003-06-03  Karl Berry  <karl@gnu.org>
44842
44843         * config/config.sub: update from prep.
44844
44845 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44846
44847         [from coreutils]
44848         Fix some minor time-related bugs with POSIX time arguments.
44849         Some valid time stamps were being rejected (notably -1, and
44850         time stamps before 1900 on 64-bit hosts).  And some invalid
44851         time stamps were being accepted, e.g. September 31.
44852
44853         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44854         that we can return (time_t) -1 successfully.
44855         * lib/posixtm.c: Likewise.
44856         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44857         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44858         (t): Remove static var.
44859         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44860         of static var.  All uses changed.
44861         (year): Do not reject years before 1900; they can occur with
44862         64-bit time_t.
44863         (posix_time_parse): Do not check for out-of-range components;
44864         that is now the caller's responsibility, since our checks were
44865         only approximations.
44866         (posixtime): Use mktime to check for out-of-range components,
44867         since it knows them exactly.
44868         If mktime returns (time_t) -1, check whether an error actually occurred
44869         by invoking localtime on -1.
44870         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44871         posixtime failures better.
44872         Improve the test data (in comments only).
44873
44874 2003-06-02  Karl Berry  <karl@gnu.org>
44875
44876         * config/mkinstalldirs (version): new variable.
44877         (--version): new option.
44878         (usage): improve message.
44879
44880 2003-05-30  Karl Berry  <karl@gnu.org>
44881
44882         * lib/mktime.c: update from libc.
44883
44884 2003-05-30  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44887         * config/config.rpath: Upgrade to gettext-0.12.1.
44888
44889 2003-05-30  Bruno Haible  <bruno@clisp.org>
44890
44891         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44892         * m4/nls.m4: New file, from gettext-0.12.1.
44893         * m4/po.m4: New file, from gettext-0.12.1.
44894         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44895
44896 2003-05-30  Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44899         * lib/localcharset.h: Likewise.
44900         * lib/localcharset.c: Likewise.
44901
44902 2003-05-29  Karl Berry  <karl@gnu.org>
44903
44904         * config/config.rpath: update from gettext.
44905
44906 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44907
44908         Assume the headers required for C89 freestanding compilers.
44909         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44910         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44911         * m4/human.m4 (gl_HUMAN): Likewise.
44912         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44914         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44915         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44917         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44918
44919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44920
44921         Assume the headers required for C89 freestanding compilers.
44922         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44923         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44924         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44925         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44926         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44927         define, since <limits.h> is guaranteed to do that.
44928         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44929         * lib/exclude.c: Include <stdbool.h> unconditionally.
44930         * lib/tempname.c: Include <stddef.h> unconditionally.
44931         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44932         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44933         <stddef.h> does that.
44934         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44935         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44936         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44937         needed.
44938         * lib/xstrtol.c: Likewise.
44939         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44940         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44941
44942         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44943         warnings on some platforms.
44944
44945         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44946         arbitrarily.
44947
44948 2003-05-26  Jim Meyering  <jim@meyering.net>
44949
44950         Merge in a change from coreutils:
44951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44952         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44953         that condition, rather than `-1' which is slightly misleading.
44954         Change the name of the cache variable to have the gl_ prefix.
44955         Prompted by a patch from Richard Dawe for DJGPP.
44956
44957 2003-05-24  Karl Berry  <karl@gnu.org>
44958
44959         * config/config.guess: update from prep.
44960
44961 2003-05-22  Karl Berry  <karl@gnu.org>
44962
44963         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44964
44965 2003-05-20  Karl Berry  <karl@gnu.org>
44966
44967         * config/config.guess: update from prep.
44968
44969 2003-05-18  Karl Berry  <karl@gnu.org>
44970
44971         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44972         might actually be set by the user.
44973
44974         * config/depcomp, install-sh, mdate-sh: update from automake.
44975
44976 2003-05-17  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44979         invalid expansion for AC_EGREP_CPP.
44980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44982         Suggested by Akim Demaille <akim@epita.fr> in
44983         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44984
44985 2003-05-12  Jim Meyering  <jim@meyering.net>
44986
44987         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44988         the space-padded-by-default conversion specifiers, %e, %k, %l.
44989
44990 2003-05-12  Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44993         the string is longer than 4 KB.
44994
44995 2003-05-11  Karl Berry  <karl@gnu.org>
44996
44997         * config/config.{guess,sub}: update from prep.
44998
44999 2003-05-09  Bruno Haible  <bruno@clisp.org>
45000
45001         * modules/error: Add m4/strerror_r.m4 to file list.
45002
45003 2003-05-03  Bruno Haible  <bruno@clisp.org>
45004
45005         Upgrade to Unicode-4.0.
45006         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
45007         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
45008         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
45009         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
45010         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
45011         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
45012         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
45013         Change width of U+E0100..U+E01EF from 1 to 0.
45014
45015 2003-04-25  Jim Meyering  <jim@meyering.net>
45016
45017         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
45018         of type size_t, not int.
45019
45020 2003-04-25  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/copy-file.c: Include <stddef.h>, for size_t.
45023
45024 2003-04-21  Paul Eggert  <eggert@twinsun.com>
45025
45026         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
45027         code which expansion is under static control.  Patch imported from
45028         Akim Demaille's patch to Bison; see
45029         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
45030
45031 2003-04-14  Bruno Haible  <bruno@clisp.org>
45032
45033         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
45034
45035 2003-04-11  Jim Meyering  <jim@meyering.net>
45036
45037         Merge changes from Coreutils.
45038
45039         2003-03-22  Jim Meyering  <jim@meyering.net>
45040
45041         * lib/strftime.c (widen): Cast alloca return value to proper type.
45042
45043         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
45044
45045         From GNU libc.
45046         * lib/strftime.c (my_strftime): Handle very large width
45047         specifications for numeric values correctly.  Improve checks for
45048         overflow.
45049
45050         2003-01-19  Jim Meyering  <jim@meyering.net>
45051
45052         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
45053         definitions.
45054         (nl_get_alt_digit) [! defined my_strftime]: Define.
45055         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
45056         _nl_get_alt_digit and _nl_get_walt_digit.
45057
45058         * lib/strftime.c (my_strftime): Merge in locale-related changes from
45059         libc. These changes have no effect outside of _LIBC.
45060
45061 2003-04-10  Bruno Haible  <bruno@clisp.org>
45062
45063         * modules/findprog: New file.
45064         * MODULES.html.sh (func_all_modules): Add it.
45065
45066 2003-04-10  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/findprog.m4: New file.
45069         * m4/eaccess.m4: New file.
45070
45071 2003-04-10  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/findprog.h: New file, from GNU gettext.
45074         * lib/findprog.c: New file, from GNU gettext.
45075
45076 2003-04-05  Jim Meyering  <jim@meyering.net>
45077
45078         Merge changes from Coreutils.
45079
45080         * lib/exclude.h (PARAMS): Remove definition and uses.
45081         * lib/exclude.c: Remove uses of `PARAMS'.
45082
45083         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
45084         Add test-cases for DOS filenames. Declare program_name.
45085         (main): Set up program_name.  Patch by Rich Dawe.
45086
45087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45088         error from mntctl.
45089         Use mntctl's return value to drive the entry-processing loop, since
45090         we can't rely on the value of the vmt_length member in the last
45091         entry.  On some systems doing so could result in exhausting
45092         virtual memory.  Based in part on a patch from Mike Jetzer.
45093
45094 2003-04-04  Bruno Haible  <bruno@clisp.org>
45095
45096         * modules/linebreak: New file.
45097         * MODULES.html.sh (func_all_modules): Add it.
45098
45099 2003-04-04  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/linebreak.m4: New file.
45102
45103 2003-04-04  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/linebreak.h: New file, from GNU gettext.
45106         * lib/linebreak.c: New file, from GNU gettext with slight
45107         modifications.
45108         * lib/lbrkprop.h: New file, from GNU gettext.
45109
45110 2003-04-03  Bruno Haible  <bruno@clisp.org>
45111
45112         * modules/utf8-ucs4: New file.
45113         * modules/utf16-ucs4: New file.
45114         * modules/ucs4-utf8: New file.
45115         * modules/ucs4-utf16: New file.
45116         * MODULES.html.sh (func_all_modules): Add them.
45117
45118 2003-04-03  Bruno Haible  <bruno@clisp.org>
45119
45120         * m4/utf-ucs4.m4: New file.
45121         * m4/ucs4-utf.m4: New file.
45122
45123 2003-04-03  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/utf8-ucs4.h: New file, from GNU gettext.
45126         * lib/utf16-ucs4.h: New file, from GNU gettext.
45127         * lib/ucs4-utf8.h: New file, from GNU gettext.
45128         * lib/ucs4-utf16.h: New file, from GNU gettext.
45129
45130 2003-04-02  Bruno Haible  <bruno@clisp.org>
45131
45132         * modules/binary-io: New file.
45133         * MODULES.html.sh (func_all_modules): Add it.
45134
45135 2003-04-02  Bruno Haible  <bruno@clisp.org>
45136
45137         * lib/binary-io.h: New file, from GNU gettext.
45138
45139 2003-04-01  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/pathname: New file.
45142         * MODULES.html.sh (func_all_modules): Add it.
45143
45144 2003-04-01  Bruno Haible  <bruno@clisp.org>
45145
45146         * lib/pathname.h: New file, from GNU gettext.
45147         * lib/concatpath.c: New file, from GNU gettext.
45148
45149 2003-03-30  Bruno Haible  <bruno@clisp.org>
45150
45151         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
45152
45153 2003-03-30  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
45156         function chown() doesn't exist.
45157
45158 2003-03-28  Bruno Haible  <bruno@clisp.org>
45159
45160         * modules/copy-file: New file.
45161         * MODULES.html.sh (func_all_modules): Add it.
45162
45163 2003-03-28  Bruno Haible  <bruno@clisp.org>
45164
45165         * m4/copy-file.m4: New file.
45166
45167 2003-03-28  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/copy-file.h: New file, from GNU gettext.
45170         * lib/copy-file.c: New file, from GNU gettext.
45171
45172 2003-03-18  Jim Meyering  <jim@meyering.net>
45173
45174         * lib/quote.c (quote_n): Fix typo in comment.
45175
45176 2003-03-18  Bruno Haible  <bruno@clisp.org>
45177
45178         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
45179         checking.
45180         * m4/onceonly_2_57.m4: Likewise.
45181
45182 2003-03-17  Bruno Haible  <bruno@clisp.org>
45183
45184         * m4/onceonly.m4: Require autoconf 2.54 or newer.
45185         (m4_quote): Remove macro.
45186         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
45187
45188 2003-03-14  Jim Meyering  <jim@meyering.net>
45189
45190         Merge changes from Coreutils.
45191         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
45192         to be const, in order to avoid warnings.
45193         (obstack_room): Likewise.
45194         (obstack_empty_p): Likewise.
45195
45196 2003-03-14  Bruno Haible  <bruno@clisp.org>
45197
45198         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
45199         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
45200
45201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45202
45203         Merge changes from Bison.
45204         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
45205         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
45206         when compiling Bison 1.875's `bitset bset = obstack_alloc
45207         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
45208         * lib/hash.c: Include <stdbool.h> unconditionally.
45209
45210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45211
45212         * m4/onceonly.m4 (m4_quote): New macro.
45213         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
45214         Quote AC_FOREACH variable-expansions properly.
45215
45216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45217
45218         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
45219
45220 2003-03-09  Paul Eggert  <eggert@twinsun.com>
45221
45222         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
45223         Reported by Bruce Becker; see:
45224         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
45225
45226 2003-03-03  Paul Eggert  <eggert@twinsun.com>
45227             Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
45230         Reported by John Hughes, see
45231         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
45232
45233 2003-02-20  Bruno Haible  <bruno@clisp.org>
45234
45235         * MODULES.html.sh (func_all_modules): Add poll.
45236
45237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45238
45239         * modules/poll: New file.
45240
45241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45242
45243         * lib/poll_.h: New file.
45244         * lib/poll.c: New file.
45245
45246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45247
45248         * m4/poll.m4: New file.
45249
45250 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45251
45252         * modules/mathl: New file.
45253
45254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45255
45256         * lib/mathl.h: New file.
45257         * lib/acosl.c: New file.
45258         * lib/asinl.c: New file.
45259         * lib/atanl.c: New file.
45260         * lib/ceill.c: New file.
45261         * lib/cosl.c: New file.
45262         * lib/expl.c: New file.
45263         * lib/floorl.c: New file.
45264         * lib/frexpl.c: New file.
45265         * lib/ldexpl.c: New file.
45266         * lib/logl.c: New file.
45267         * lib/sincosl.c: New file.
45268         * lib/sinl.c: New file.
45269         * lib/sqrtl.c: New file.
45270         * lib/tanl.c: New file.
45271         * lib/trigl.c: New file.
45272         * lib/trigl.h: New file.
45273
45274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45275
45276         * m4/mathl.m4: New file.
45277
45278 2003-02-18  Bruno Haible  <bruno@clisp.org>
45279
45280         * MODULES.html.sh (func_all_modules): Add mathl.
45281
45282 2003-02-17  Bruno Haible  <bruno@clisp.org>
45283
45284         * modules/mkdtemp: New module.
45285         * MODULES.html.sh (func_all_modules): Add it.
45286
45287 2003-02-17  Bruno Haible  <bruno@clisp.org>
45288
45289         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
45290
45291 2003-02-17  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/mkdtemp.h: New file, from GNU gettext.
45294         * lib/mkdtemp.c: New file, from GNU gettext.
45295
45296 2003-02-02  Jim Meyering  <jim@meyering.net>
45297
45298         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
45299         e.g. glibc-2.2.93.
45300
45301 2003-01-31  Bruno Haible  <bruno@clisp.org>
45302
45303         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
45304         'rpl_rename'.
45305         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
45306         'rpl_strnlen'.
45307         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
45308         'rpl_strtod'.
45309         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
45310         'rpl_utime'.
45311
45312 2003-01-31  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/rename.c: #undef rename before defining rpl_rename.
45315         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
45316
45317 2003-01-30  Bruno Haible  <bruno@clisp.org>
45318
45319         * modules/vasnprintf, modules/vasprintf: New modules.
45320         * MODULES.html.sh (func_all_modules): Add them.
45321
45322 2003-01-30  Bruno Haible  <bruno@clisp.org>
45323
45324         * m4/signed.m4: New file, from GNU gettext.
45325         * m4/longdouble.m4: New file, from GNU gettext.
45326         * m4/wchar_t.m4: New file, from GNU gettext.
45327         * m4/wint_t.m4: New file, from GNU gettext.
45328         * m4/vasnprintf.m4: New file.
45329         * m4/vasprintf.m4: New file.
45330
45331 2003-01-30  Bruno Haible  <bruno@clisp.org>
45332
45333         * lib/printf-args.h: New file, from GNU gettext.
45334         * lib/printf-args.c: New file, from GNU gettext.
45335         * lib/printf-parse.h: New file, from GNU gettext.
45336         * lib/printf-parse.c: New file, from GNU gettext.
45337         * lib/vasnprintf.h: New file, from GNU gettext.
45338         * lib/vasnprintf.c: New file, from GNU gettext.
45339         * lib/asnprintf.c: New file, from GNU gettext.
45340         * lib/vasprintf.h: New file, from GNU gettext with modifications.
45341         * lib/vasprintf.c: New file, from GNU gettext.
45342         * lib/asprintf.c: New file, from GNU gettext.
45343
45344 2003-01-29  Bruno Haible  <bruno@clisp.org>
45345
45346         * modules/stpncpy: New module.
45347         * MODULES.html.sh (func_all_modules): Add it.
45348
45349 2003-01-29  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/stpncpy.m4: New file.
45352
45353 2003-01-29  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/stpncpy.h: New file, from GNU gettext with modifications.
45356         * lib/stpncpy.c: New file, from GNU gettext with modifications.
45357
45358 2003-01-28  Bruno Haible  <bruno@clisp.org>
45359
45360         * modules/c-ctype: New module.
45361         * MODULES.html.sh (func_all_modules): Add it.
45362
45363 2003-01-28  Bruno Haible  <bruno@clisp.org>
45364
45365         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
45366         Paul Eggert.
45367         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
45368         Paul Eggert.
45369
45370 2003-01-27  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/xsetenv: New module.
45373         * MODULES.html.sh (func_all_modules): Add it.
45374
45375 2003-01-27  Bruno Haible  <bruno@clisp.org>
45376
45377         * lib/xsetenv.h: New file, from GNU gettext.
45378         * lib/xsetenv.c: New file, from GNU gettext.
45379
45380 2003-01-23  Jim Meyering  <jim@meyering.net>
45381
45382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
45383         from working on systems without dirfd (at least Irix and OSF1/Tru64).
45384
45385 2003-01-23  Bruno Haible  <bruno@clisp.org>
45386
45387         * modules/minmax: New module.
45388         * MODULES.html.sh (func_all_modules): Add it.
45389
45390 2003-01-23  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
45393         Eggert.
45394
45395 2003-01-22  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/exit: New module.
45398         * MODULES.html.sh (func_all_modules): Add it.
45399
45400 2003-01-22  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/exit.h: New file, from GNU gettext.
45403
45404 2003-01-19  Bruno Haible  <bruno@clisp.org>
45405
45406         * gnulib-tool: Recognize option --extract-maintainer.
45407         (func_get_maintainer): New function.
45408         * modules/*: Add Maintainer entry.
45409
45410 2003-01-16  Jim Meyering  <jim@meyering.net>
45411
45412         * m4/regex.m4: The `regex' struct is both input and output.
45413         Initialize it before each use.  Patch by Tim Waugh.
45414
45415 2003-01-16  Bruno Haible  <bruno@clisp.org>
45416
45417         * MODULES.html.sh: Add a table of contents. Add the module name as
45418         leftmost column. Add hyperlinks.
45419
45420 2003-01-15  Bruno Haible  <bruno@clisp.org>
45421
45422         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
45423
45424 2003-01-15  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
45427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
45428         suffix.
45429
45430 2003-01-15  Bruno Haible  <bruno@clisp.org>
45431
45432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
45433
45434 2003-01-15  Bruno Haible  <bruno@clisp.org>
45435
45436         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
45437         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
45438
45439 2003-01-14  Jim Meyering  <jim@meyering.net>
45440
45441         * lib/same.c (same_name): Tweak a comment.
45442
45443 2003-01-14  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
45446         when a string comparison is sufficient.
45447
45448 2003-01-14  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
45451         'unsigned int'.
45452
45453 2003-01-14  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/hash-pjw.c: Add comment about low quality of this function.
45456
45457 2003-01-13  Bruno Haible  <bruno@clisp.org>
45458
45459         * modules/stpcpy: Distribute lib/stpcpy.h.
45460         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
45461
45462 2003-01-13  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/*: Add a description.
45465         * modules/strpbrk: Fix Makefile.am snippet.
45466         * modules/strtoimax: Fix dependencies.
45467         * modules/strtoumax: Likewise.
45468
45469 2003-01-13  Bruno Haible  <bruno@clisp.org>
45470
45471         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
45472         * modules/alloca (Makefile.am): All object files depend on alloca.h.
45473         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
45474
45475 2003-01-13  Bruno Haible  <bruno@clisp.org>
45476
45477         * gnulib-tool (func_create_testdir): Store config/* files in the main
45478         directory.
45479         * config.rpath: Move to ...
45480         * config/config.rpath: ... here.
45481         * modules/gettext: Contains config/config.rpath, not config.rpath.
45482         * modules/iconv: Likewise.
45483
45484 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45485
45486         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45487         to avoid collisions with libcurses and libreadline.
45488
45489         * m4/getstr.m4: Remove.
45490         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
45491
45492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45493
45494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45495         to avoid collisions with libcurses and libreadline.
45496
45497         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
45498         * lib/getstr.h, getstr.c: Remove.
45499         * lib/getline.c: Include "getline.h", to check interface.
45500         Move body of old getstr.c here: this defines MIN_CHUNK and
45501         declares getdelim2, which is renamed from getstr.
45502         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
45503
45504         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
45505         All uses changed.
45506         * lib/linebuffer.h: Likewise.
45507         (readline): Remove backward-compatibility macro.
45508
45509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45510
45511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45512         to avoid collisions with libcurses and libreadline.
45513         * getstr: Remove.
45514         * MODULES.html.sh: Remove getstr.
45515         * modules/getline: Depend on unlocked-io, not getstr.
45516
45517 2003-01-12  Jim Meyering  <jim@meyering.net>
45518
45519         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
45520
45521 2003-01-10  Bruno Haible  <bruno@clisp.org>
45522
45523         * modules/alloca: Change Makefile.am requirements. Simplify Include
45524         requirements. Add lib/alloca_.h to file list.
45525
45526 2003-01-10  Bruno Haible  <bruno@clisp.org>
45527
45528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
45529
45530 2003-01-10  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/alloca_.h: New file.
45533         * lib/getdate.y: Unconditionally include alloca.h.
45534         * lib/makepath.c: Likewise.
45535         * lib/setenv.c: Likewise.
45536         * lib/userspec.c: Likewise.
45537
45538 2003-01-09  Karl Berry  <karl@gnu.org>
45539
45540         * MODULES.html.sh: include `dirname $0` in PATH, to find
45541         gnulib-tool.
45542
45543 2003-01-09  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/stdbool: Change configure.ac, Makefile.am requirements.
45546         Simplify Include requirements. Add lib/stdbool.h.in to file list.
45547
45548 2003-01-09  Bruno Haible  <bruno@clisp.org>
45549
45550         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45551
45552 2003-01-09  Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/stdbool.h.in: New file.
45555
45556 2003-01-09  Bruno Haible  <bruno@clisp.org>
45557
45558         * gnulib-tool (func_all_modules): Ignore files ending in ~.
45559         * MODULES.html.sh: Likewise.
45560
45561 2003-01-08  Jim Meyering  <jim@meyering.net>
45562
45563         * lib/full-write.c: Undefine and define-away `const' after inclusion
45564         of errno.h, not before.  Suggestion from Bruno Haible.
45565
45566 2003-01-08  Bruno Haible  <bruno@clisp.org>
45567
45568         * modules/full-read: Depend on full-write.
45569
45570 2003-01-08  Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/safe-read.c: Include specification header first, to ensure its
45573         selfcontainedness.
45574         * lib/full-write.c: Likewise.
45575
45576 2003-01-07  Jim Meyering  <jim@meyering.net>
45577
45578         * lib/full-write.c: Rework so that it may serve to define full_read,
45579         too.
45580         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45581
45582 2003-01-07  Bruno Haible  <bruno@clisp.org>
45583
45584         * lib/strtoimax.c: Include <stdint.h> as an alternative to
45585         <inttypes.h>.
45586         * lib/xstrtol.h: Likewise.
45587         * lib/xstrtoimax.c: Likewise.
45588         * lib/xstrtoumax.c: Likewise.
45589         * lib/human.h: Likewise.
45590
45591         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45592         on systems that have <inttypes.h> but not <stdint.h>.
45593
45594 2003-01-07  Bruno Haible  <bruno@clisp.org>
45595
45596         * MODULES.html.sh: Add copyright notice.
45597         (missed_files): Omit CVS directory entries.
45598         (func_module): Make it work with sed-3.02.
45599         * MODULES.txt: Remove file.
45600
45601 2003-01-06  Jim Meyering  <jim@meyering.net>
45602
45603         * lib/version-etc.c: Update year in translatable copyright string.
45604
45605 2003-01-03  Karl Berry  <karl@gnu.org>
45606
45607         * config/config.{guess,sub}: update from prep.
45608
45609 2003-01-02  Karl Berry  <karl@gnu.org>
45610
45611         * doc/COPYING.DOC: belatedly updated to 1.2.
45612
45613 2003-01-01  Karl Berry  <karl@gnu.org>
45614
45615         * gnulib-tool (func_verify_module): report module name $module in
45616         error message, not $1.
45617         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45618         be created, only if it doesn't exist.
45619         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45620
45621 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45622
45623         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45624
45625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45626
45627         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45628         memcmp if strcoll doesn't work.
45629
45630 2002-12-31  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45633         nonempty.
45634
45635 2002-12-31  Bruno Haible  <bruno@clisp.org>
45636
45637         * lib/memcoll.c (STRCOLL): New macro.
45638         (memcoll): Use it.
45639
45640 2002-12-31  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/localcharset.h: New file.
45643         * lib/localcharset.c: Include it.
45644         * lib/unicodeio.c: Likewise.
45645
45646 2002-12-31  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45649         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45650
45651 2002-12-31  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/getline.h: Include <stddef.h>, for size_t.
45654
45655         * lib/unicodeio.h: Include <stddef.h>, for size_t.
45656         * lib/unicodeio.c: Don't include <stddef.h>.
45657
45658 2002-12-31  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45661         HAVE_TM_ZONE.
45662
45663 2002-12-24  Karl Berry  <karl@gnu.org>
45664
45665         * config/config.guess: update from prep.
45666
45667 2002-12-24  Bruno Haible  <bruno@clisp.org>
45668
45669         General infrasructure.
45670         * m4/README: Rewritten.
45671         * m4/onceonly.m4: New file.
45672         * m4/onceonly_2_57.m4: New file.
45673
45674         Module atexit.
45675         * m4/atexit.m4: New file.
45676
45677         Module strtod.
45678         * m4/strtod.m4: New file.
45679
45680         Module strtol.
45681         * m4/strtol.m4: New file.
45682
45683         Module strtoul.
45684         * m4/strtoul.m4: New file.
45685
45686         Module memchr.
45687         * m4/memchr.m4: New file.
45688
45689         Module memcmp.
45690         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45691         (jm_FUNC_MEMCMP): Invoke it.
45692
45693         Module memcpy.
45694         * m4/memcpy.m4: New file.
45695
45696         Module memmove.
45697         * m4/memmove.m4: New file.
45698
45699         Module memset.
45700         * m4/memset.m4: New file.
45701
45702         Module strcspn.
45703         * m4/strcspn.m4: New file.
45704
45705         Module strpbrk.
45706         * m4/strpbrk.m4: New file.
45707
45708         Module strstr.
45709         * m4/strstr.m4: New file.
45710
45711         Module strerror.
45712         * m4/strerror.m4: New file.
45713
45714         Module mktime.
45715         * m4/mktime.m4: Renamed from jm-mktime.m4.
45716         (gl_PREREQ_MKTIME): New macro.
45717         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45718
45719         Module malloc.
45720         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45721         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45722         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45723
45724         Module realloc.
45725         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45726         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45727         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45728
45729         Module strftime.
45730         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45732         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45733         gl_TM_GMTOFF.
45734         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45735
45736         Module xalloc.
45737         * m4/xalloc.m4: New file.
45738
45739         Module alloca.
45740         * m4/alloca.m4: New file.
45741
45742         Module putenv.
45743         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45744         (jm_FUNC_PUTENV): Invoke it.
45745
45746         Module setenv.
45747         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45748         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45749         when invoked twice.
45750         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45751         gt_FUNC_SETENV.
45752
45753         Module memrchr.
45754         * m4/memrchr.m4: New file.
45755
45756         Module stpcpy.
45757         * m4/stpcpy.m4: New file.
45758
45759         Module strcase.
45760         * m4/strcase.m4: New file.
45761
45762         Module strdup.
45763         * m4/strdup.m4: New file.
45764
45765         Module strnlen.
45766         * m4/strnlen.m4: New file.
45767
45768         Module strndup.
45769         * m4/strndup.m4: New file.
45770
45771         Module xstrtod.
45772         * m4/xstrtod.m4: New file.
45773
45774         Module xstrtol.
45775         * m4/xstrtol.m4: New file.
45776
45777         Module getdate.
45778         * m4/getdate.m4: New file.
45779
45780         Module unlocked-io.
45781         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45782         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45783         * m4/jm-glibc-io.m4n: Remove file.
45784
45785         Module long-options.
45786         * m4/long-options.m4: New file.
45787
45788         Module md5.
45789         * m4/md5.m4: New file.
45790
45791         Module sha.
45792         * m4/sha.m4: New file.
45793
45794         Module getstr.
45795         * m4/getstr.m4: New file.
45796
45797         Module getline.
45798         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45799         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45800         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45801         simply getline. Infoke gl_PREREQ_GETLINE.
45802
45803         Module obstack.
45804         * m4/obstack.m4: New file.
45805
45806         Module hash.
45807         * m4/hash.m4: New file.
45808
45809         Module readtokens.
45810         * m4/readtokens.m4: New file.
45811
45812         Module strverscmp.
45813         * m4/strverscmp.m4: New file.
45814
45815         Module stdbool.
45816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45817         OSF/1.
45818
45819         Module strtoll.
45820         * m4/strtoll.m4: New file.
45821
45822         Module strtoull.
45823         * m4/strtoull.m4: New file.
45824
45825         Module strtoimax.
45826         * m4/strtoimax.m4: New file.
45827
45828         Module strtoumax.
45829         * m4/strtoumax.m4: New file.
45830
45831         Module xstrtoimax.
45832         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45833         jm_AC_PREREQ_XSTRTOIMAX.
45834         Moved the strtol prerequisites to strtol.m4.
45835         Moved the strtoll prerequisites to strtoll.m4.
45836         Moved the strtoimax prerequisites to strtoimax.m4.
45837
45838         Module xstrtoumax.
45839         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45840         jm_AC_PREREQ_XSTRTOUMAX.
45841         Moved the strtoul prerequisites to strtoul.m4.
45842         Moved the strtoull prerequisites to strtoull.m4.
45843         Moved the strtoumax prerequisites to strtoumax.m4.
45844
45845         Module chown.
45846         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45847         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45848
45849         Module dup2.
45850         * m4/dup2.m4: New file.
45851
45852         Module ftruncate.
45853         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45854         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45855
45856         Module getgroups.
45857         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45858         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45859
45860         Module gettimeofday.
45861         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45863         gl_PREREQ_GETTIMEOFDAY.
45864
45865         Module mkdir.
45866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45867         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45868
45869         Module mkstemp.
45870         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45871         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45872         jm_AC_TYPE_UINTMAX_T.
45873         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45874
45875         Module stat.
45876         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45877         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45878
45879         Module lstat.
45880         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45881         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45882
45883         Module timespec.
45884         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45885         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45886         * m4/st_mtim.m4: Indentation.
45887
45888         Module nanosleep.
45889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45890         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45891         gl_PREREQ_NANOSLEEP.
45892
45893         Module regex.
45894         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45895         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45896         (gl_REGEX): New macro.
45897
45898         Module rename.
45899         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45900         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45901
45902         Module rmdir.
45903         * m4/rmdir.m4: New file.
45904
45905         Module utime.
45906         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45907         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45908         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45909
45910         Module dirname.
45911         * m4/dirname.m4: New file.
45912
45913         Module getopt.
45914         * m4/getopt.m4: New file.
45915
45916         Module unistd-safer.
45917         * m4/unistd-safer.m4: New file.
45918
45919         Module fnmatch.
45920         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45921         declaration.
45922         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45923         (gl_FUNC_FNMATCH_POSIX): New macro.
45924         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45925         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45926         simply fnmatch.
45927
45928         Module exclude.
45929         * m4/exclude.m4: New file.
45930
45931         Module human.
45932         * m4/human.m4: New file.
45933
45934         Module acl.
45935         * m4/acl.m4: Nop.
45936
45937         Module backupfile.
45938         * m4/backupfile.m4: New file.
45939         * m4/d-ino.m4: Indentation.
45940
45941         Module fsusage.
45942         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45943         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45944         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45945
45946         Module dirfd.
45947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45948         requirements.
45949
45950         Module euidaccess.
45951         * m4/euidaccess.m4: New file.
45952
45953         Module file-type.
45954         * m4/file-type.m4: New file.
45955
45956         Module fileblocks.
45957         * m4/fileblocks.m4: New file.
45958
45959         Module filemode.
45960         * m4/filemode.m4: New file.
45961
45962         Module isdir.
45963         * m4/isdir.m4: New file.
45964
45965         Module lchown.
45966         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45967         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45968
45969         Module makepath.
45970         * m4/makepath.m4: New file.
45971
45972         Module modechange.
45973         * m4/modechange.m4: New file.
45974
45975         Module mountlist.
45976         * m4/mountlist.m4: New file.
45977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45978         Indentation.
45979
45980         Module path-concat.
45981         * m4/path-concat.m4: New file.
45982
45983         Module pathmax.
45984         * m4/pathmax.m4: New file.
45985
45986         Module same.
45987         * m4/same.m4: New file.
45988
45989         Module save-cwd.
45990         * m4/save-cwd.m4: New file.
45991
45992         Module savedir.
45993         * m4/savedir.m4: New file.
45994
45995         Module xgetcwd.
45996         * m4/xgetcwd.m4: New file.
45997         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45998
45999         Module xreadlink.
46000         * m4/xreadlink.m4: New file.
46001
46002         Module safe-read.
46003         * m4/safe-read.m4: New file.
46004
46005         Module safe-write.
46006         * m4/safe-write.m4: New file.
46007
46008         Module closeout.
46009         * m4/closeout.m4: New file.
46010
46011         Module stdio-safer.
46012         * m4/stdio-safer.m4: New file.
46013
46014         Module getpass.
46015         * m4/getpass.m4: New file.
46016
46017         Module getugroups.
46018         * m4/getugroups.m4: New file.
46019
46020         Module group-member.
46021         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
46022         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
46023
46024         Module idcache.
46025         * m4/idcache.m4: New file.
46026
46027         Module userspec.
46028         * m4/userspec.m4: New file.
46029
46030         Module gettime.
46031         * m4/clock_time.m4: New file.
46032         * m4/gettime.m4: New file.
46033
46034         Module settime.
46035         * m4/settime.m4: New file.
46036
46037         Module posixtm.
46038         * m4/posixtm.m4: New file.
46039
46040         Module gethostname.
46041         * m4/gethostname.m4: New file.
46042
46043         Module canon-host.
46044         * m4/canon-host.m4: New file.
46045
46046         Module gettext.
46047         * m4/codeset.m4: New file, from gettext-0.11.5.
46048         * m4/gettext.m4: New file, from gettext-0.11.5.
46049         * m4/glibc21.m4: New file, from gettext-0.11.5.
46050         * m4/iconv.m4: New file, from gettext-0.11.5.
46051         * m4/intdiv0.m4: New file, from gettext-0.11.5.
46052         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
46053         * m4/inttypes.m4: New file, from gettext-0.11.5.
46054         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
46055         * m4/isc-posix.m4: New file, from gettext-0.11.5.
46056         * m4/lcmessage.m4: New file, from gettext-0.11.5.
46057         * m4/lib-ld.m4: New file, from gettext-0.11.5.
46058         * m4/lib-link.m4: New file, from gettext-0.11.5.
46059         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
46060         * m4/progtest.m4: New file, from gettext-0.11.5.
46061         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
46062         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
46063         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
46064
46065         Module localcharset.
46066         * m4/localcharset.m4: New file.
46067
46068         Module hard-locale.
46069         * m4/hard-locale.m4: New file.
46070
46071         Module mbswidth.
46072         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
46073         onceonly macros.
46074         * m4/mbrtowc.m4: Add comment.
46075
46076         Module memcasecmp.
46077         * m4/memcasecmp.m4: New file.
46078
46079         Module memcoll.
46080         * m4/memcoll.m4: New file.
46081
46082         Module unicodeio.
46083         * m4/unicodeio.m4: New file.
46084
46085         Module rpmatch.
46086         * m4/rpmatch.m4: New file.
46087
46088         Module yesno.
46089         * m4/yesno.m4: New file.
46090
46091         Module exitfail.
46092         * m4/exitfail.m4: New file.
46093
46094         Module c-stack.
46095         * m4/c-stack.m4 (gl_C_STACK): New macro.
46096         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
46097
46098         Module error.
46099         * m4/error.m4 (gl_ERROR): New macro.
46100         (jm_PREREQ_ERROR): Use onceonly macros.
46101
46102         Module fatal.
46103         * m4/fatal.m4: New file.
46104
46105         Module getloadavg.
46106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
46107         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
46108
46109         Module getpagesize.
46110         * m4/getpagesize.m4: New file.
46111
46112         Module getusershell.
46113         * m4/getusershell.m4: New file.
46114
46115         Module physmem.
46116         * m4/physmem.m4: New file.
46117
46118         Module posixver.
46119         * m4/posixver.m4: New file.
46120
46121         Module quotearg.
46122         * m4/quotearg.m4: New file.
46123
46124         Module quote.
46125         * m4/quote.m4: New file.
46126
46127         Module readutmp.
46128         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
46129
46130         Module sig2str.
46131         * m4/sig2str.m4: New file.
46132
46133         Other.
46134         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
46135         ulonglong.m4.
46136         * m4/intmax_t.m4: New file.
46137         * m4/d-type.m4: Indentation.
46138         * m4/jm-macros.m4: Update.
46139         * m4/prereq.m4 (jm_PREREQ): Update.
46140         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
46141         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
46142         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
46143         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
46144         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
46145         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
46146         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
46147         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
46148         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
46149         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
46150         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
46151         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
46152         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
46153         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
46154         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
46155         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
46156         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
46157         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
46158         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
46159
46160 2002-12-24  Bruno Haible  <bruno@clisp.org>
46161
46162         * MODULES.txt: Update according to m4/ changes.
46163
46164         Module gettext.
46165         * config.rpath: New file, from gettext-0.11.5.
46166
46167         * modules/*: New module descriptions.
46168         * gnulib-tool: New file.
46169         * MODULES.html.sh: New file.
46170
46171 2002-12-21  Karl Berry  <karl@gnu.org>
46172
46173         * doc/fdl.texi: update to version 1.2.
46174
46175 2002-12-19  Karl Berry  <karl@gnu.org>
46176
46177         * config/config.guess: update from prep.
46178
46179 2002-12-18  Bruno Haible  <bruno@clisp.org>
46180
46181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
46182         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
46183
46184 2002-12-17  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
46187         stdlib.h, string.h.
46188
46189 2002-12-17  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/canon-host.c (strdup): Remove unused declaration.
46192
46193         * lib/fsusage.c: Include full_read.h.
46194         (get_fs_usage): Use full_read instead of safe_read.
46195
46196         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
46197
46198 2002-12-12  Karl Berry  <karl@gnu.org>
46199
46200         * config/config.guess: update from prep.
46201
46202 2002-12-11  Bruno Haible  <bruno@clisp.org>
46203
46204         * m4/setenv.m4: New file, from gettext-0.11.5.
46205
46206 2002-12-11  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
46209         not unsetenv().
46210         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
46211         modifications:
46212
46213         2002-12-11  Bruno Haible  <bruno@clisp.org>
46214
46215                 * setenv.c (alloca): Fall back to malloc.
46216                 (freea): New macro.
46217                 (setenv): Use freea() to free memory allocated with alloca().
46218
46219         2002-11-13  Bruno Haible  <bruno@clisp.org>
46220
46221                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
46222                 function declarations.
46223                 * unsetenv.c (unsetenv): Likewise.
46224
46225         2002-03-04  Bruno Haible  <bruno@clisp.org>
46226
46227                 Portability to AIX 4.3.3.
46228                 * unsetenv.c: New file, extracted from setenv.c.
46229                 * setenv.c: Move the unsetenv() function to unsetenv.c.
46230
46231         2001-12-20  Bruno Haible  <bruno@clisp.org>
46232
46233                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
46234                 use malloc instead. For SunOS 4.
46235
46236         2001-12-11  Bruno Haible  <bruno@clisp.org>
46237
46238                 * setenv.c: Declare alloca.
46239                 (compar_fn_t): New typedef.
46240                 (KNOWN_VALUE, STORE_VALUE): Use it.
46241
46242         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
46243         setenv.h.
46244
46245 2002-12-10  Paul Eggert  <eggert@twinsun.com>
46246
46247         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
46248         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
46249         Choose values that are less likely to collide with system fnmatch
46250         options.
46251         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
46252         defined (e.g., a pure POSIX system).
46253         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
46254         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
46255
46256 2002-12-06  Paul Eggert  <eggert@twinsun.com>
46257
46258         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
46259         a pain in practice to deal with generated m4 files.  This change
46260         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
46261
46262         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
46263         and jm-glibc-io.m4, as they are no longer a special case.
46264         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
46265         kludge and the auto-generation stuff.  Check only whether the
46266         functions are declared, not whether they exist, since older hosts
46267         that don't declare the functions can't use the optimization anyway.
46268
46269 2002-12-06  Jim Meyering  <jim@meyering.net>
46270
46271         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
46272
46273         Merge in changes from libc's misc/error.c, in preparation
46274         for the merge of gnulib's changes back into libc.
46275
46276         * lib/error.c (_): Define only if not already defined.
46277         Move definition to follow all #include directives.
46278         Include unlocked-io.h only if !_LIBC.
46279         [_LIBC]: Include <libio/libioP.h>.
46280         [USE_IN_LIBIO]: Include <libio/iolibio.h>
46281         (fflush): Tweak definition to use INTUSE.
46282         (putc): Define.
46283
46284 2002-12-05  Paul Eggert  <eggert@twinsun.com>
46285
46286         * lib/alloca.c [defined emacs]: Include "lisp.h".
46287         (xalloc_die) [defined emacs]: New macro.
46288         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
46289         [! defined emacs]: Include <xalloc.h>.
46290         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
46291         (pointer): Typedef to POINTER_TYPE *.
46292         (malloc): Remove decl; we now always use xmalloc.
46293         (alloca): Use old-style definition, since Emacs needs this.
46294         Check for arithmetic overflow when computing combined size.
46295
46296 2002-12-04  Paul Eggert  <eggert@twinsun.com>
46297
46298         Do not generate unlocked-io.h automatically, since it's easier to
46299         maintain it by hand.
46300
46301         * lib/unlocked-io.h: New file, from GNU diffutils,
46302         but with proper copyright notice and attribution.
46303         * lib/gen-uio: Remove.
46304         * lib/Makefile.am: Add copyright notice.
46305         (libfetish_a_SOURCES): Add unlocked-io.h.
46306         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
46307         (DISTCLEANFILES, io_functions): Remove macros.
46308         (EXTRA_DIST): Remove gen_uio.
46309         (unlocked-io.h): Remove rule.
46310
46311 2002-12-04  Jim Meyering  <jim@meyering.net>
46312
46313         Reflect the fact that stat.c and lstat.c are no longer generated.
46314         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
46315         (DISTCLEANFILES): Likewise.
46316         (EXTRA_DIST): Likewise.
46317         (all_local): Don't depend on stat.c or lstat.c.
46318         (stat.c, lstat.c): Remove rules.
46319         (EXTRA_DIST): Remove xstat.in.
46320
46321         * lib/xstat.in: Remove file.  Contents moved into stat.c.
46322         * lib/stat.c: New file.  Contents mostly from xstat.in.
46323         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
46324         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
46325
46326         * lib/safe-read.c: Rework so that it may serve to define safe_write,
46327         too.
46328         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
46329
46330 2002-12-03  Jim Meyering  <jim@meyering.net>
46331
46332         * lib/safe-read.c, safe-write.c: Change variable names and comments,
46333         but not semantics, to minimize the differences between these two files.
46334         (safe_read): Change comment to mention SAFE_READ_ERROR.
46335
46336         * lib/safe-read.c (IS_EINTR): Define.
46337         (safe_read): Use IS_EINTR in place of in-function cpp directives.
46338
46339 2002-12-02  Jim Meyering  <jim@meyering.net>
46340
46341         * lib/safe-read.c (EINTR): Define.
46342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
46343         (INT_MAX): Provide fallback.
46344         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
46345
46346         * lib/safe-read.h (SAFE_READ_ERROR): Define.
46347
46348 2002-12-02  Bruno Haible  <bruno@clisp.org>
46349
46350         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
46351         Define, taken from safe-read.c.
46352         (INT_MAX): Provide fallback.
46353         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
46354         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
46355
46356         * lib/safe-read.c (EINTR): Remove definition.
46357         (safe_read): Don't use EINTR if it is absent.
46358
46359 2002-12-01  Jim Meyering  <jim@meyering.net>
46360
46361         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
46362         zero.
46363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
46364
46365 2002-11-27  Paul Eggert  <eggert@twinsun.com>
46366
46367         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
46368         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
46369         with `if (! (value < limit)) abort ();', for readability.
46370
46371 2002-11-26  Karl Berry  <karl@gnu.org>
46372
46373         * lib/strdup.c: copy from libc again, with jim's ok.
46374         * lib/.cppi-disable: re-add strdup.c
46375
46376 2002-11-25  Karl Berry  <karl@gnu.org>
46377
46378         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
46379         instead of "strtol.c".
46380
46381 2002-11-25  Karl Berry  <karl@gnu.org>
46382
46383         * config/install-sh: update from automake for variable quoting, $0 in
46384         error msgs, etc.
46385
46386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
46387         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
46388         entry.
46389
46390 2002-11-25  Jim Meyering  <jim@meyering.net>
46391
46392         * lib/mktime.c: Sync from libc, now that it has the latest fix.
46393
46394 2002-11-24  Karl Berry  <karl@gnu.org>
46395
46396         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
46397         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
46398
46399 2002-11-24  Jim Meyering  <jim@meyering.net>
46400
46401         Update from coreutils:
46402
46403         * lib/mktime.c: Merge in changes from libc.
46404
46405         Avoid a link-time failure on some Linux systems.
46406         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
46407         (otherwise).
46408         (__mon_yday): Declare with the STATIC attribute.
46409         (__mktime_internal): Likewise.
46410         Based on a report from Greg Schafer.
46411
46412 2002-11-23  Jim Meyering  <jim@meyering.net>
46413
46414         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
46415         Use `unsigned', not `int', as type of index.
46416
46417         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
46418
46419         * lib/fsusage.c: Remove unneeded parentheses around operands of
46420         `defined'.
46421
46422 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46423
46424         * lib/quotearg.h: Allow multiple inclusion by surrounding with
46425         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
46426         so that we can be included first.
46427         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
46428         * lib/quotearg.c: Include quotearg.h immediately after config.h.
46429         No need to include stddef.h or sys/types.h any more.
46430         Surround local include files with "", not "<>".
46431         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
46432         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
46433         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
46434         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
46435         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
46436         (ISPRINT): Remove; no longer needed now that we assume C89.
46437
46438         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
46439         Preserve errno.
46440
46441         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
46442         quotearg_char): Use SIZE_MAX rather than
46443         (size_t) -1 when we are talking about "infinity".
46444
46445         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
46446
46447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46448
46449         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
46450         hint that one should use `if (! x) abort ();' rather than `assert
46451         (x);', and anyway it's one less thing to worry about configuring.
46452         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
46453         hash_rehash, hash_insert): Use abort rather than assert.
46454
46455 2002-11-22  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/safe-read.h: Assume C89. Add comments.
46458         (safe_read): Change return type to size_t.
46459         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
46460         byte counts > SSIZE_MAX correctly.
46461         * lib/safe-write.h: New file.
46462         * lib/safe-write.c: New file.
46463         * lib/full-read.h: New file.
46464         * lib/full-read.c: New file.
46465         * lib/full-write.h: Assume C89. Add comments.
46466         * lib/full-write.c: Include safe-write.h.
46467         (full_write): Rewritten to use safe_write.
46468         Suggested by Jim Meyering and Paul Eggert.
46469
46470 2002-11-21  Jim Meyering  <jim@meyering.net>
46471
46472         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
46473
46474         Merge in changes from the coreutils.
46475
46476         2002-09-25  Paul Eggert  <eggert@twinsun.com>
46477         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
46478         <stdint.h>.
46479         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
46480         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
46481         int.  Work more efficiently if X is the same width as uintmax_t.
46482         Do not compare X to -1, to avoid bogus compiler warning.
46483         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
46484         Don't assume that f_frsize and f_bsize are the same type.
46485
46486         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
46487         warning on FreeBSD.
46488
46489         * lib/makepath.c (make_path): Restore umask *before* creating the final
46490         component.
46491         (make_path): Minor reformatting.
46492
46493         * lib/xmalloc.c: Adjust to work with new autoconf macros,
46494         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
46495         HAVE_MALLOC/HAVE_REALLOC.
46496
46497         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
46498         dummy ones.  At least on GNU/Linux systems, `auto' means something
46499         else.
46500         From Michael Stone.
46501
46502 2002-11-21  Bruno Haible  <bruno@clisp.org>
46503
46504         Remove case insensitive option matching.
46505         * lib/argmatch.h (argcasematch): Remove declaration.
46506         (ARGCASEMATCH): Remove macro.
46507         (__xargmatch_internal): Remove case_sensitive argument.
46508         (XARGMATCH): Update.
46509         (XARGCASEMATCH): Remove macro.
46510         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
46511         case_sensitive argument.
46512         (argcasematch): Remove function.
46513         (__xargmatch_internal): Remove case_sensitive argument.
46514         (main): Use XARGMATCH instead of XARGCASEMATCH.
46515
46516         * lib/xmalloc.c: Change compile-time error message. Add comment about
46517         required autoconf version.
46518
46519 2002-11-20  Paul Eggert  <eggert@twinsun.com>
46520
46521         Merge argmatch cleanups from Bison.  Assume C89.
46522
46523         * lib/argmatch.c: Include config.h here, not in argmatch.h.
46524         Include stdlib.h, for EXIT_FAILURE.
46525         Always include <string.h>, since we assume C89.
46526         (EXIT_FAILURE): Remove pre-C89 bug workaround.
46527         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
46528         Include <stddef.h> instead, since it's all we need for size_t.
46529         (PARAMS): Remove.  All uses removed.
46530         (ARRAY_CARDINALITY): Do not bother to #undef.
46531         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
46532         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46533         Remove unnecessary parentheses.
46534         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46535         Insert necessary parentheses.
46536         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
46537         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
46538
46539 2002-11-19  Bruno Haible  <bruno@clisp.org>
46540
46541         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
46542         * lib/mbswidth.h: Include <stddef.h>, for size_t.
46543
46544         * lib/mbswidth.h (PARAMS): Remove macro.
46545         (mbswidth, mbsnwidth): Use ANSI C function declarations.
46546         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
46547
46548         * lib/gcd.h (PARAMS): Remove macro.
46549         (gcd): Use ANSI C function declarations.
46550         * lib/gcd.c (gcd): Likewise.
46551
46552 2002-11-15  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/strcspn.c: Include <stddef.h>.
46555         (strcspn): Use ANSI C function declaration. Change return type to
46556         size_t. Use NULL.
46557         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46558         (strpbrk): Use NULL.
46559         * lib/strpbrk.h (PARAMS): Remove macro.
46560         (strpbrk): Use ANSI C function declaration.
46561         * lib/strstr.c: Don't include <sys/types.h>.
46562         * lib/strstr.h (PARAMS): Remove macro.
46563         (strstr): Use ANSI C function declarations.
46564
46565 2002-11-14  Karl Berry  <karl@gnu.org>
46566
46567         * config/mkinstalldirs: `do' on separate line, instead of
46568         `for var; do'.
46569
46570 2002-11-06  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46573         * lib/gcd.c (gcd): Likewise.
46574
46575 2002-11-05  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/gcd.h: New file, from gettext-0.11.5.
46578         * lib/gcd.c: New file, from gettext-0.11.5.
46579
46580 2002-11-05  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46583         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46584         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46585         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46586
46587         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46588         <libintl.h>.
46589         * lib/makepath.c: Include gettext.h instead of <locale.h> and
46590         <libintl.h>.
46591
46592         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46593         * lib/human.c: Include gettext.h instead of <libintl.h>.
46594         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46595         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46596         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46597         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46598         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46599         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46600         (textdomain): Remove definition.
46601         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46602
46603         * lib/long-options.c: Remove include of <libintl.h> and definition of
46604         _.
46605         * lib/same.c: Remove include of <libintl.h> and definition of _.
46606
46607 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46608
46609         * lib/config.charset: A few additions for Solaris.
46610
46611 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46612
46613         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46614         * lib/localcharset.c (locale_charset): Declare as extern "C".
46615
46616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46617
46618         * lib/config.charset: msdos in uk_UA uses CP1125.
46619
46620 2002-11-04  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46623         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46624         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46625         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46626         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46627
46628 2002-11-04  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/localcharset.c (locale_charset): Don't return an empty string.
46631
46632 2002-11-04  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46635         aliases.
46636
46637 2002-11-04  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/config.charset: Update for newest glibc. Add canonical names
46640         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46641
46642 2002-11-04  Bruno Haible  <bruno@clisp.org>
46643
46644         * lib/config.charset: Add support for NetBSD.
46645
46646 2002-11-04  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46649
46650 2002-11-01  Bruno Haible  <bruno@clisp.org>
46651
46652         * configure.in: Add AC_CONFIG_AUX_DIR call.
46653         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46654         test/Makefile.
46655         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46656
46657 2002-09-28  Karl Berry  <karl@gnu.org>
46658
46659         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46660         installed automake until the next release, since changes have been
46661         made.
46662
46663 2002-09-25  Karl Berry  <karl@gnu.org>
46664
46665         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46666         * lib/getopt*: copy from libc/posix.
46667         * lib/gettext.h: copy from gettext.
46668         * lib/.cppi-disable: add strdup.c, gettext.h.
46669
46670 2002-09-25  Karl Berry  <karl@gnu.org>
46671
46672         * config/srclist.txt: enable gettext.h check.
46673         * config/config.{guess,sub}: update from prep.
46674         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46675                 from automake 1.6.3.
46676         See srclist*.
46677
46678 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46679
46680         * regex.c (PATFETCH): Remove the translating fetch.
46681         (PATFETCH_RAW): Rename to PATFETCH.
46682         (set_image_of_range): New fun.
46683         (SET_RANGE_TABLE_WORK_AREA): Use it.
46684         (regex_compile): Don't translate the pattern chars so eagerly.
46685         Only do it when inserting an `exactn' bytecode or when handling
46686         a char-range.
46687         (mutually_exclusive_p): Avoid empty statement.
46688
46689 2002-07-06  Jim Meyering  <meyering@lucent.com>
46690
46691         * m4/README: Don't mention Makefile.am.in.
46692         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46693
46694 2002-07-01  Jim Meyering  <meyering@lucent.com>
46695
46696         * lib/c-stack.c: Include sys/time.h.
46697         From Volker Borchert.
46698
46699 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46700
46701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46702
46703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46704
46705         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46706         New macro.  Use it uniformly instead of
46707         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46708         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46709         reported by Vin Shelton.
46710
46711 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46712
46713         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46714         Do not assume SA_SIGINFO behavior.
46715         Bug reported by Jim Meyering on NetBSD 1.5.2.
46716
46717 2002-06-22  Jim Meyering  <meyering@lucent.com>
46718
46719         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46721
46722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46723         now that configure.ac uses AC_GNU_SOURCE.
46724         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46725         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46726
46727         Update to latest tools.  Suggestions from Paul Eggert.
46728         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46729         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46730         * m4/fnmatch.m4: Likewise.
46731         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46732         to AC_HEADER_STDBOOL
46733
46734 2002-06-22  Jim Meyering  <meyering@lucent.com>
46735
46736         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46737         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46738
46739 2002-06-22  Jim Meyering  <meyering@lucent.com>
46740
46741         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46742
46743         * lib/exitfail.c, exitfail.h: Likewise.
46744         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46745
46746         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46747         of fnmatch.h.
46748         (EXTRA_DIST): Add fnmatch_loop.c.
46749         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46750
46751         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46752         * lib/fnmatch.c: Update from diffutils-2.8.2.
46753         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46754         * lib/fnmatch.h: Remove file.
46755
46756 2002-06-21  Jim Meyering  <meyering@lucent.com>
46757
46758         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46759         * m4/mbrtowc.m4: Likewise.
46760
46761         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46762         * m4/mbswidth.m4: Reflect name change:
46763         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46765
46766         * m4/lib-link.m4: Update from gettext-0.11.2.
46767         * m4/gettext.m4: Likewise.
46768
46769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46770         From Alfred M. Szmidt.
46771
46772 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46773
46774         * lib/file-type.h: Report an error if neither S_ISREG nor
46775         S_IFREG is defined, instead of using a test specific to glibc
46776         2.2.  This should be safe, since POSIX requires S_ISREG and
46777         Unix Version 7 had S_IFREG.  We don't need to check for
46778         <sys/types.h> since we don't use any symbols that it defines.
46779
46780 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46781
46782         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46783         $@-t, so that each temporary file name is unique and valid in the first
46784         8 characters, for operation under DOS.
46785
46786 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46787
46788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46789
46790 2002-06-15  Jim Meyering  <meyering@lucent.com>
46791
46792         Work even with DJGPP 2.03, which lacks support for symlinks.
46793         From Richard Dawe.
46794         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46795         is defined.
46796         * lib/lchown.c (S_ISLNK): Likewise.
46797
46798 2002-06-15  Jim Meyering  <meyering@lucent.com>
46799
46800         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46801         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46802         have been included before this file.
46803
46804 2002-06-14  Jim Meyering  <meyering@lucent.com>
46805
46806         * lib/file-type.h: Use the version from diffutils-2.8.2.
46807         * lib/file-type.c: Likewise.
46808
46809 2002-06-07  Jim Meyering  <meyering@lucent.com>
46810
46811         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46812         They're needed at least for NetBSD 1.5.2.
46813         ($statxfs_includes): Include those same headers.
46814         ($statxfs_includes): Include sys/vfs.h if available.
46815         ($statxfs_includes): Likewise for sys/statvfs.h.
46816         Check for the following members in both structs statfs and statvfs:
46817         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46818
46819 2002-06-01  Jim Meyering  <meyering@lucent.com>
46820
46821         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46822         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46823
46824 2002-05-28  Jim Meyering  <meyering@lucent.com>
46825
46826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46827         Reported by Volker Borchert.
46828
46829 2002-05-27  Jim Meyering  <meyering@lucent.com>
46830
46831         Fix a problem seen only on nonconforming systems whereby ls.c's
46832         use of localtime, and then of gettimeofday would cause trouble:
46833         the localtime call used to initialize rpl_gettimeofday's save
46834         mechanism would clobber ls's current local time information so
46835         that in any long listing the first file would always be listed
46836         with date 1970-01-01.  Analysis by Volker Borchert.
46837
46838         * lib/gettimeofday.c (localtime): Undefine.
46839         (rpl_localtime): New function.
46840
46841 2002-05-27  Jim Meyering  <meyering@lucent.com>
46842
46843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46844         localtime.
46845
46846         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46847         use the replacement function; it wouldn't resolve at link time.
46848         Reported by Volker Borchert.
46849
46850 2002-05-22  Jim Meyering  <meyering@lucent.com>
46851
46852         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46853         file-type.h.
46854         * lib/file-type.h: New file.
46855         * lib/file-type.c (file_type): New file/function.  Extracted from
46856         diffutils.
46857
46858 2002-04-30  Jim Meyering  <meyering@lucent.com>
46859
46860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46861
46862 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46863
46864         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46865
46866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46867
46868         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46869         Do not check for alloca.h (no longer used) or stdbool.h (was never
46870         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46871
46872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46873
46874         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46875
46876 2002-04-29  Jim Meyering  <meyering@lucent.com>
46877
46878         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46879         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46880         Use AC_FUNC_STRNLEN here instead.
46881
46882         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46883         With autoconf-2.53a, it's part of AC_PROG_CC.
46884
46885 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46886
46887         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46889
46890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46891
46892         * lib/sig2str.h, lib/sig2str.c: New files.
46893         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46894
46895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46896
46897         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46898         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46899         of 127, since 64 is the largest conceivable number for ancient
46900         nonstandard hosts.
46901         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46902
46903 2002-04-28  Jim Meyering  <meyering@lucent.com>
46904
46905         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46906
46907 2002-04-24  Jim Meyering  <meyering@lucent.com>
46908
46909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46910         (jm_PREREQ): Use it.
46911
46912         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46913         mach/mach.h fcntl.h.
46914         Check for this function: setlocale.
46915
46916 2002-04-24  Jim Meyering  <meyering@lucent.com>
46917
46918         * lib/gettext.h: New file, from Gettext.
46919         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46920         (libfetish_a_SOURCES): Add gettext.h.
46921
46922 2002-04-16  Jim Meyering  <meyering@lucent.com>
46923
46924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46925         ut_pid, ut_id, ut_exit.
46926
46927 2002-04-16  Jim Meyering  <meyering@lucent.com>
46928
46929         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46930         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46931         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46932
46933 2002-04-12  Jim Meyering  <meyering@lucent.com>
46934
46935         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46936         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46937         existence of the getmntinfo function.  Needed for Darwin 5.3.
46938
46939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46940         This is necessary at least on Darwin 5.3.
46941
46942         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46943         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46944         strnlen.o in the library, and that makes some versions of ranlib
46945         object.
46946
46947 2002-04-12  Jim Meyering  <meyering@lucent.com>
46948
46949         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46950
46951 2002-04-09  Jim Meyering  <meyering@lucent.com>
46952
46953         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46954         to be more precise.  Rather than saying we're checking whether the
46955         function `works', say what we're testing.
46956         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46957         Reported by Bruno Haible.
46958
46959 2002-03-10  Jim Meyering  <meyering@lucent.com>
46960
46961         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46962         Suggestion from Santiago Vila.
46963
46964 2002-03-08  Jim Meyering  <meyering@lucent.com>
46965
46966         * lib/rename.c: Mention that this wrapper is needed also on
46967         mips-dec-ultrix4.4 systems.
46968
46969 2002-03-02  Jim Meyering  <meyering@lucent.com>
46970
46971         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46972         not HAVE_CLOCK_SETTIME.
46973
46974 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46975
46976         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46977         Check for clock_settime.
46978
46979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46980
46981         * lib/nanosleep.h: Rename to....
46982         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46983
46984         * lib/gettime.c: New file.
46985         * lib/settime.c: New file.
46986         * lib/stime.c: Remove.
46987
46988         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46989         timespec.h.  Remove nanosleep.h.
46990
46991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46992
46993         * m4/acl.m4: New file.
46994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46995         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46996
46997 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46998
46999         * lib/acl.c, lib/acl.h: New files.
47000         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
47001
47002 2002-02-24  Jim Meyering  <meyering@lucent.com>
47003
47004         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
47005         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
47006         cause trouble.  Reported by Nelson Beebe.
47007
47008 2002-02-23  Paul Eggert  <eggert@twinsun.com>
47009
47010         * lib/path-concat.c (xpath_concat): Reorder code to pacify
47011         compilers that don't know that xalloc_die never returns.
47012
47013 2002-02-20  Jim Meyering  <meyering@lucent.com>
47014
47015         * lib/getdate.c: Regenerate using bison-1.33.
47016
47017 2002-02-17  Jim Meyering  <meyering@lucent.com>
47018
47019         * config/config.guess (main): Don't use `head -1'; it's no longer
47020         portable. Use `sed 1q' instead.
47021
47022 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
47023
47024         * m4/codeset.m4: Upgrade to gettext-0.11.
47025         * m4/gettext.m4: Upgrade to gettext-0.11.
47026         * m4/glibc21.m4: Upgrade to gettext-0.11.
47027         * m4/iconv.m4: Upgrade to gettext-0.11.
47028         * m4/isc-posix.m4: Upgrade to gettext-0.11.
47029         * m4/lcmessage.m4: Upgrade to gettext-0.11.
47030         * m4/lib-ld.m4: New file, from gettext-0.11.
47031         * m4/lib-link.m4: New file, from gettext-0.11.
47032         * m4/lib-prefix.m4: New file, from gettext-0.11.
47033         * m4/progtest.m4: Upgrade to gettext-0.11.
47034
47035 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47036
47037         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
47038         (jm_PREREQ): Use it.
47039
47040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47041
47042         * lib/posixver.c, lib/posixver.h: New files.
47043         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47044
47045 2002-02-02  Paul Eggert  <eggert@twinsun.com>
47046             Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
47049         (fwrite_success_callback): New declaration.
47050         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
47051         print_unicode_char. Call failure callback instead of error.
47052         (fwrite_success_callback): New function.
47053         (exit_failure_callback): New function.
47054         (fallback_failure_callback): New function.
47055         (print_unicode_char): Call unicode_to_mb.
47056
47057 2002-01-26  Jim Meyering  <meyering@lucent.com>
47058
47059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
47060         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
47061
47062 2002-01-26  Jim Meyering  <meyering@lucent.com>
47063
47064         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
47065
47066 2002-01-22  Paul Eggert  <eggert@twinsun.com>
47067
47068         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
47069
47070 2002-01-22  Jim Meyering  <meyering@lucent.com>
47071
47072         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
47073         Otherwise, some versions of automake would omit the rule that makes
47074         Makefile from Makefile.in.
47075
47076 2002-01-21  Paul Eggert  <eggert@twinsun.com>
47077
47078         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
47079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47080         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
47081         (memcoll): Set errno to zero if there is no error.
47082
47083         * lib/quotearg.c (quotearg_buffer_restyled):
47084         Fix bug with quoting buffers containing NUL when backslashing escapes.
47085         This bug was exposed by the other changes in this patch.
47086         (quotearg_n_options): New arg ARGSIZE.
47087         All callers changed.
47088         (quoting_options_from_style): New function.
47089         (quotearg_n_style): Use it.
47090         (quotearg_n_style_mem): New function.
47091
47092         * lib/quotearg.h (quotearg_n_style_mem): New function.
47093
47094 2002-01-19  Jim Meyering  <meyering@lucent.com>
47095
47096         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
47097         Remove useless quotes: DF_PROG="df".
47098         * m4/strnlen.m4: New file.
47099
47100 2002-01-16  Paul Eggert  <eggert@twinsun.com>
47101
47102         * lib/backupfile.c (ISDIGIT): Comment fix.
47103         * lib/getdate.y (ISDIGIT): Likewise.
47104         * lib/posixtm.c (ISDIGIT, year): Likewise.
47105         * lib/strverscmp.c (ISDIGIT): Likewise.
47106         * lib/userspec.c (ISDIGIT): Likewise.
47107
47108 2002-01-16  Jim Meyering  <meyering@lucent.com>
47109
47110         * lib/getdate.y: Add three semicolons, each just before a closing
47111         brace. Bison (as of version 1.31) no longer papers over that mistake.
47112
47113 2002-01-05  Jim Meyering  <meyering@lucent.com>
47114
47115         * lib/version-etc.c (version_etc_copyright): Update copyright year.
47116
47117 2001-12-19  Paul Eggert  <eggert@twinsun.com>
47118
47119         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
47120         not silently exit merely because the output buffer happens to
47121         have nothing pending.
47122
47123 2001-12-18  Paul Eggert  <eggert@twinsun.com>
47124
47125         See the big note in ../ChangeLog.
47126         * lib/human.c (suffixes): Prefer K to k for 1024.
47127         (generate_suffix_backwards): New function.
47128         (human_readable_inexact): Use it.
47129         * lib/xstrtol.c (__xstrtol): If there is no number but there
47130         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
47131         Accept 'K' as well as 'k'.
47132
47133 2001-12-15  Jim Meyering  <meyering@lucent.com>
47134
47135         * lib/regex.h (__restrict_arr): Update from libc.
47136
47137         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
47138         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
47139         (STREQ): Define.
47140
47141 2001-12-14  Jim Meyering  <meyering@lucent.com>
47142
47143         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
47144         Suggestion from Bruno Haible.
47145
47146 2001-12-10  Jim Meyering  <meyering@lucent.com>
47147
47148         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
47149         xrealloc, Instead, include "xalloc.h".
47150         (initbuffer): Don't cast xmalloc return value to char*.
47151         (readline): Reword comment.
47152         Don't cast xrealloc return value to char*
47153         Return NULL, not 0.
47154
47155 2001-12-09  Jim Meyering  <meyering@lucent.com>
47156
47157         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
47158         about `signed and unsigned type in conditional expression'.
47159         * lib/posixtm.c (posix_time_parse): Likewise.
47160
47161         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
47162
47163         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
47164         to avoid a pedantic warning.
47165
47166         * lib/getstr.c: Don't include assert.h.
47167         (getstr): Remove warning-evoking assertions.
47168         Return -1 if offset parameter is out of bounds.
47169         Change the type of a local from int to size_t.
47170
47171         * lib/strftime.c (my_strftime_localtime_r): Include this function
47172         definition in the `#if ! HAVE_TM_GMTOFF' block.
47173
47174         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
47175         Include xalloc.h instead.
47176
47177 2001-12-02  Jim Meyering  <meyering@lucent.com>
47178
47179         * lib/tempname.c: Don't declare getenv, thus reverting the change of
47180         2001-11-18.  It's no longer necessary, now that stdlib.h is always
47181         included.
47182
47183         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
47184         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
47185
47186 2001-11-30  Akim Demaille  <akim@epita.fr>
47187
47188         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
47189         before being defined.
47190
47191 2001-11-27  Paul Eggert  <eggert@twinsun.com>
47192
47193         * lib/quotearg.h (quotearg_n, quotearg_n_style):
47194         First arg is int, not unsigned.
47195         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
47196         (SIZE_MAX, UINT_MAX): New macros.
47197         (quotearg_n_options): Abort if N is negative.
47198         Avoid overflow check on hosts where size_t is 64 bits and int
47199         is 32 bits, as overflow is impossible there.
47200         Fix off-by-one typo that caused unnecessary reallocation.
47201
47202 2001-11-27  Jim Meyering  <meyering@lucent.com>
47203
47204         * lib/tempname.c: Merge with version from libc.
47205         * lib/regex.c: Likewise.
47206
47207         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
47208         systems for which STDC_HEADERS is 0, it was not included, resulting in
47209         a warning about an integer-to-pointer conversion problem with getenv.
47210         Reported by Volker Borchert.
47211
47212 2001-11-26  Jim Meyering  <meyering@lucent.com>
47213
47214         * lib/gtod.h: Remove file.
47215         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
47216         * lib/gettimeofday.c: Don't include gtod.h.
47217         (GTOD_init): Remove function.
47218         (rpl_gettimeofday): Do its job here instead, rather than aborting.
47219         Suggestion from Volker Borchert.
47220
47221 2001-11-23  Jim Meyering  <meyering@lucent.com>
47222
47223         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
47224         it.
47225         * lib/hash.c (struct hash_table): Define it here instead.
47226
47227 2001-11-22  Jim Meyering  <meyering@lucent.com>
47228
47229         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
47230
47231 2001-11-20  Jim Meyering  <meyering@lucent.com>
47232
47233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
47234         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
47235
47236 2001-11-19  Jim Meyering  <meyering@lucent.com>
47237
47238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
47239         directory.  Use "conftestXXXXXX" as the template.
47240         Suggestion from Paul Eggert.
47241
47242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
47243         immediately, so the test doesn't mistakenly hit the max-open-files
47244         limit.
47245
47246 2001-11-18  Paul Eggert  <eggert@twinsun.com>
47247
47248         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
47249         (TEMPORARIES): New macro.
47250         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
47251         removes an artificial limitation (e.g. HP-UX 10.20, where
47252         TMP_MAX is 17576).
47253
47254 2001-11-18  Jim Meyering  <meyering@lucent.com>
47255
47256         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
47257
47258 2001-11-18  Jim Meyering  <meyering@lucent.com>
47259
47260         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
47261         on SunOS 4.
47262
47263         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
47264         files will be created before anything else.
47265
47266 2001-11-17  Paul Eggert  <eggert@twinsun.com>
47267
47268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
47269         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
47270
47271 2001-11-17  Jim Meyering  <meyering@lucent.com>
47272
47273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
47274         Prompted by a report from Bob Proulx.
47275
47276         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
47277         Instead, require UTILS_FUNC_MKSTEMP.
47278
47279 2001-11-17  Jim Meyering  <meyering@lucent.com>
47280
47281         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
47282         Now, that's done as part of AC_FUNC_STRTOD.
47283
47284 2001-11-17  Jim Meyering  <meyering@lucent.com>
47285
47286         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
47287         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
47288         rather than group writable.  Patch by Juan F. Codagnone.
47289
47290         * lib/readtokens.c: Remove explicit declarations of xmalloc and
47291         xrealloc, Instead, include "xalloc.h".
47292
47293         * lib/mountlist.c: Include unlocked-io.h after all system headers.
47294         Remove explicit declarations of xmalloc, xrealloc,
47295         and xstrdup.  Instead, include "xalloc.h".
47296
47297         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
47298         unlocked-io.h.
47299         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
47300         Likewise.
47301         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
47302
47303         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
47304         Reported by Padraig Brady.
47305
47306         * lib/mkstemp.c: #undef mkstemp.
47307         Include config.h.
47308         (rpl_mkstemp): Rename from mkstemp.
47309         Protoize.
47310
47311 2001-11-16  Jim Meyering  <meyering@lucent.com>
47312
47313         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
47314         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
47315         determine the amount of total physical memory, use pstat_getstatic.
47316         HPUX-11 doesn't define _SC_PHYS_PAGES.
47317         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
47318         If sysconf couldn't be used to determine the amount of available
47319         physical memory, use both pstat_getstatic and pstat_getdynamic.
47320         Based on a patch from Bob Proulx.
47321
47322 2001-11-10  Jim Meyering  <meyering@lucent.com>
47323
47324         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
47325         (jm_PREREQ): Use it.
47326
47327 2001-11-09  Jim Meyering  <meyering@lucent.com>
47328
47329         * m4/jm-macros.m4: Require autoconf-2.52f.
47330         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
47331         Use these AC_-prefixed names, not the AM_-prefixed ones.
47332
47333         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
47334
47335 2001-11-05  Jim Meyering  <meyering@lucent.com>
47336
47337         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
47338
47339 2001-11-04  Jim Meyering  <meyering@lucent.com>
47340
47341         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
47342         $DEFS.
47343
47344 2001-11-03  Jim Meyering  <meyering@lucent.com>
47345
47346         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
47347         of AC_DEFUN.
47348
47349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
47350         know the name of the variable in the macro definition.
47351
47352 2001-11-03  Jim Meyering  <meyering@lucent.com>
47353
47354         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
47355         in argmatch_to_argument call.
47356
47357         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
47358         argument.
47359
47360         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
47361         e.g., a fault due to an attempt to free a NULL pointer.
47362
47363 2001-11-01  Jim Meyering  <meyering@lucent.com>
47364
47365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
47366         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
47367
47368 2001-11-01  Jim Meyering  <meyering@lucent.com>
47369
47370         * lib/dirfd.c, lib/dirfd.h: New files.
47371         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
47372
47373         * lib/hash.c (hash_print) [TESTING]: Clean up.
47374
47375 2001-10-22  Paul Eggert  <eggert@twinsun.com>
47376
47377         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
47378         to avoid a warning if -Wall.
47379
47380 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
47381
47382         * README: New file
47383         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
47384         (per RMS's instructions, this is now the canonical source)
47385         * lgpl/, gpl/: New directories.
47386
47387 2001-10-21  Paul Eggert  <eggert@twinsun.com>
47388
47389         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
47390
47391 2001-10-21  Jim Meyering  <meyering@lucent.com>
47392
47393         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
47394         this code would end up calling gettext even in packages built
47395         with --disable-nls.
47396         * lib/getopt.c (_): Likewise.
47397         * lib/regex.c (_): Likewise.
47398
47399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47400
47401         * m4/error.m4 (jm_PREREQ_ERROR):
47402         Do not invoke AC_CHECK_FUNCS with strerror_r, as
47403         AC_FUNC_STRERROR_R does that.
47404         Check for strerror declaration.
47405
47406         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
47407         are supposed to have them these days.
47408         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
47409         Merge changes from latest Autoconf CVS.
47410         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
47411         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
47412         POSIX decided to standardize on the int flavor of strerror_r.
47413
47414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47415
47416         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
47417         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
47418         Use strerror_r that is only a macro, even if it is not a function.
47419         (strerror): Check for HAVE_DECL_STRERROR before declaring.
47420         (private_strerror): Use prototypes, not old-style function definition.
47421         (print_errno_message): New function.
47422         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
47423         char*-flavored one.
47424         (error_tail, error, error_at_line): Use it.
47425
47426 2001-10-11  Jim Meyering  <meyering@lucent.com>
47427
47428         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
47429         and quote_n (1, ... to avoid clobbering a buffer.
47430
47431 2001-10-05  Jim Meyering  <meyering@lucent.com>
47432
47433         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
47434         hash-pjw.h.
47435         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
47436         * lib/hash-pjw.h: New file.
47437
47438 2001-09-30  Jim Meyering  <meyering@lucent.com>
47439
47440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
47441         `struct fsstat' has the `f_fstypename' member.
47442         Use that to define FS_TYPE, which is now used to make
47443         the getfsstat link test tighter.
47444
47445 2001-09-30  Jim Meyering  <meyering@lucent.com>
47446
47447         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
47448         Include <sys/ucred.h>, for Apple Darwin.
47449         Include sys/mount.h and sys/fs_types.h only if available.
47450         (FS_TYPE): Define.
47451         (read_filesystem_list): Use FS_TYPE.
47452
47453 2001-09-29  Paul Eggert  <eggert@twinsun.com>
47454
47455         * lib/exclude.c (excluded_filename): 0 -> false, since it's
47456         a boolean context.
47457
47458 2001-09-29  Jim Meyering  <meyering@lucent.com>
47459
47460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47461         [one-argument getmntent function]): Include stdio.h before mntent.h.
47462         SunOS 4.1.x needs it for the declaration of `FILE'.
47463         Patch by Volker Borchert.
47464
47465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47466         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
47467         sys/fs_types.h, and make the link-test for getfsstat guard #include
47468         directives with appropriate #if HAVE_*_H tests so that we can
47469         detect getfsstat on Apple Darwin1.3.7 systems.
47470         Reported by Nelson Beebe.
47471         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
47472
47473 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47474
47475         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47476         #defines strtoimax.  Also treat the other strto* functions
47477         like strtoimax.
47478
47479         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47480         Check for strtoul and strtoumax,
47481         as those declarations are made even in the signed case.
47482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
47483         Likewise, for strtol and strtoimax.
47484
47485 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47486
47487         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47488         #defines strtoimax.  Also treat the other strto* functions
47489         like strtoimax.
47490
47491         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
47492         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
47493         (strtoimax, strtoumax): Do not declare if already defined as a macro.
47494
47495 2001-09-26  Jim Meyering  <meyering@lucent.com>
47496
47497         Most macros in unlocked-io.h had the wrong number of arguments.
47498         * lib/gen-uio: New script.
47499         (USE_UNLOCKED_IO): Define to 1 if not already defined.
47500         * lib/unlocked-io.hin: Remove file.
47501         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
47502         rather than trying to embed it here.
47503         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
47504         Reported by Padraig Brady.
47505
47506 2001-09-25  Volker Borchert  <bt@teknon.de>
47507
47508         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
47509         `result'.
47510
47511 2001-09-24  Jim Meyering  <meyering@lucent.com>
47512
47513         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
47514
47515 2001-09-23  Jim Meyering  <meyering@lucent.com>
47516
47517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
47518         instead of the mere test for existence of mntent.h.  The latter
47519         would get a false-positive on AIX 3.4 systems.
47520         In the outer getmntent if-block, don't die if neither of the getmntent
47521         tests succeeds.  Instead, just fall through and continue with the
47522         remaining tests.
47523
47524 2001-09-23  Jim Meyering  <meyering@lucent.com>
47525
47526         * lib/mountlist.c: Remove useless parentheses in #if directives.
47527         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
47528         the deprecated MOUNTED symbol is no longer defined in mntent.h.
47529
47530 2001-09-22  Jim Meyering  <meyering@lucent.com>
47531
47532         * m4/gettext.m4: New file.  From gettext.
47533         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
47534         * m4/progtest.m4: Likewise
47535         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
47536         * m4/glibc21.m4: Likewise.
47537
47538         * m4/libintl.m4: Remove.  No longer used.
47539
47540 2001-09-22  Jim Meyering  <meyering@lucent.com>
47541
47542         * lib/localcharset.c: Update from latest gettext.
47543         * lib/config.charset: Likewise.
47544
47545 2001-09-20  Jim Meyering  <meyering@lucent.com>
47546
47547         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
47548         strtoimax.
47549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47550         strtoumax.
47551
47552 2001-09-20  Jim Meyering  <meyering@lucent.com>
47553
47554         * lib/xstrtol.c (strtoimax): Guard declaration with
47555         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47556         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47557         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47558         (strtoumax): Likewise, for completeness (it wasn't necessary).
47559
47560 2001-09-17  Paul Eggert  <eggert@twinsun.com>
47561
47562         * lib/strtoimax.c (HAVE_LONG_LONG):
47563         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47564         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47565         to work around bug in IBM C compiler.
47566
47567 2001-09-17  Jim Meyering  <meyering@lucent.com>
47568
47569         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47570         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47571         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47572         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47573         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47574         whenever the right hand side need not be expanded by the shell.
47575
47576 2001-09-16  Paul Eggert  <eggert@twinsun.com>
47577
47578         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47579         library.  It's not correct, as some older glibcs are buggy.
47580         fnmatch wasn't fixed until glibc 2.2.
47581
47582         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47583         special shell magic here.
47584
47585 2001-09-16  Jim Meyering  <meyering@lucent.com>
47586
47587         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47588         * m4/jm-macros.m4: Require it.
47589
47590 2001-09-16  Jim Meyering  <meyering@lucent.com>
47591
47592         * lib/mkdir.c: New file.
47593
47594 2001-09-15  Jim Meyering  <meyering@lucent.com>
47595
47596         * m4/jm-macros.m4: Check for help2man.
47597
47598 2001-09-11  Jim Meyering  <meyering@lucent.com>
47599
47600         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47601         The body, by Paul Eggert, was moved here from configure.in.
47602         * m4/jm-macros.m4: Require UTILS_HOST_OS.
47603
47604 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47605
47606         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47607         (jm_PREREQ): Use it.
47608
47609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47610
47611         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47612         Use ssize_t, not int, to store result of readlink.
47613         Check for ssize_t overflow as well as size_t overflow,
47614         as POSIX says the result of readlink is implementation-defined
47615         when ssize_t overflows.
47616         Remove unnecessary cast to char*.
47617         Use free+malloc instead of realloc, as the storage doesn't need
47618         to be preserved and it's clearer and can be more efficient that way.
47619         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47620         * lib/xreadlink.h (xreadlink): Update prototype.
47621
47622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47623
47624         * lib/xgetcwd.c: Revert some of the previous change; intead,
47625         fix the HAVE_GETCWD_NULL code to behave more like the
47626         !HAVE_GETCWD_NULL code used to.
47627
47628         Include "xalloc.h".
47629         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47630         invoke xalloc_die.
47631
47632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47633
47634         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47635         sys/param.h, as pathmax.h includes them.
47636
47637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47638
47639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47640         (jm_PREREQ_XGETCWD): New macro.
47641
47642         * m4/getcwd.m4: New file.
47643
47644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47645
47646         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47647         like the HAVE_GETCWD_NULL code.
47648         Include pathmax.h if not HAVE_GETCWD.
47649         Do not include xalloc.h.
47650         (INITIAL_BUFFER_SIZE): New symbol.
47651         Do not use xmalloc / xrealloc, since the caller is responsible for
47652         handling errors.  Preserve errno around `free' during failure.
47653         Do not overrun buffer when using getwd.
47654
47655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47656
47657         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47658         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47659         getcwd (NULL, 0).
47660
47661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47662
47663         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47664         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47665         spotted by Jim Meyering.
47666
47667 2001-09-03  Jim Meyering  <meyering@lucent.com>
47668
47669         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47670         failure.
47671
47672 2001-09-02  Jim Meyering  <meyering@lucent.com>
47673
47674         * lib/error.c: Update from GNU libc.
47675
47676 2001-09-01  Jim Meyering  <meyering@lucent.com>
47677
47678         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47679         Used by df.
47680
47681 2001-09-01  Jim Meyering  <meyering@lucent.com>
47682
47683         * lib/xreadlink.c: New file.
47684         * lib/xreadlink.h: New file.
47685         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47686         xreadlink.h.
47687
47688         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47689         doesn't conflict with sparc Solaris 7's definition in
47690         /usr/include/sys/int_types.h.
47691
47692         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47693         files.
47694         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47695         and strncasecmp as r-values.  Unixware didn't have declarations.
47696
47697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47698
47699         * lib/xstrtol.h: Add copyright notice.
47700         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47701         LONGINT_INVALID_SUFFIX_CHAR.
47702
47703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47704
47705         * lib/xstrtol.c (strtoimax): New decl.
47706
47707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47708
47709         * lib/xgetcwd.c: Don't include pathmax.h.
47710         Include stdlib.h and unistd.h if available.
47711         Include xalloc.h.
47712         (xmalloc, xstrdup, free): Remove decls.
47713         (xgetcwd): Don't assume sizes fit in unsigned.
47714         Check for overflow when computing sizes.
47715         Simplify reallocation code.
47716
47717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47718
47719         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47720         a directory's st_size can have an arbitrary value, so the old
47721         usage could waste an arbitrary amount of memory.  All uses
47722         changed.
47723         * lib/savedir.h: Update prototype.
47724
47725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47726
47727         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47728
47729         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47730         old strtoimax.c.
47731
47732         Also, make the following further changes to make this file's
47733         configuration more similar to that of strtol.c:
47734         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47735         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47736         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47737         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47738         changed to signed values.
47739
47740         And make the following changes as well:
47741         Fix copyright notice, as 1999 was missing.
47742         (verify): New macro.
47743         (strtoimax): Check sizes at compile-time, not run-time.
47744         Prefer strtol to strtoll if both work.
47745         (main): Remove; it was not that useful and was a pain to maintain.
47746
47747         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47748
47749 2001-08-31  Jim Meyering  <meyering@lucent.com>
47750
47751         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47752         Use an initial, malloc'd, buffer of length 128 rather than
47753         a statically allocated one of length 1024.
47754
47755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47756
47757         Simplify code, partly by assuming autoconf 2.52 semantics.
47758
47759         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47760
47761         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47762         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47763         All uses removed.
47764         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47765         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47766         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47767         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47768         jm_AC_HEADER_INTTYPES_H.
47769         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47770
47771         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47772
47773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47774         Quote first arg of AC_DEFUN.
47775         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47776         since they are needed to parse the include file even if we need
47777         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47779         but with opposite signedness.
47780
47781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47782
47783         Merge 'exclude' changes from tar 1.13.22.
47784         This fixes one or two unlikely storage allocation overflow bugs,
47785         but doesn't change user-visible behavior otherwise.
47786
47787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47788
47789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47790         (jm_PREREQ_EXCLUDE): New macro.
47791
47792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47793
47794         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47795         tm to be declared.
47796
47797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47798
47799         * lib/hash.c: Remove '2001' from copyright notice.
47800
47801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47802
47803         * lib/full-write.h: New file.
47804         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47805         * lib/full-write.c: Correct credits, as cccp.c no longer
47806         exists and anyway it was so heavily changed from the old cccp
47807         code as to be unrecognizable.  Include full-write.h.
47808         (full_write) Return size_t, with short writes meaning failure.
47809         All callers changed.  This fixes a bug with large buffers
47810         on 64-bit hosts.
47811         * lib/utime.c: Include full-write.h.
47812
47813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47814
47815         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47816         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47817         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47818         Include if available.
47819         (<xalloc.h>): Include
47820         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47821         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47822         collide with FNM macros.
47823         (struct patopts): New struct.
47824         (struct exclude): Use it, as exclude patterns now come with options.
47825         (new_exclude): Support above changes.
47826         (new_exclude, add_exclude_file):
47827         Initial size must now be a power of two to simplify overflow checking.
47828         (free_exclude, fnmatch_no_wildcards): New function.
47829         (excluded_filename): No longer requires options arg, as the options
47830         are determined by add_exclude.  Now returns bool, not int.
47831         (excluded_filename, add_exclude):
47832         Add support for the fancy new exclusion options.
47833         (add_exclude, add_exclude_file): Now takes int options arg.
47834         Check for arithmetic overflow when computing sizes.
47835         (add_exclude_file): xrealloc might modify errno, so don't
47836         realloc until after errno might be used.
47837
47838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47839         New macros.
47840         (free_exclude): New decl.
47841         (add_exclude, add_exclude_file): Now takes int options arg.
47842         (excluded_filename): No longer requires options arg, as the options
47843         are determined by add_exclude.  Now returns bool, not int.
47844
47845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47846
47847         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47848
47849 2001-08-27  Jim Meyering  <meyering@lucent.com>
47850
47851         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47852
47853         * lib/version-etc.c (N_): Remove definition.
47854         Revert most of last change.
47855         Instead, simply don't mark the `Copyright...' string for translation.
47856         Based on advice from Paul Eggert.
47857
47858         * lib/strtoxmax.c: Tweak comment.
47859
47860 2001-08-26  Jim Meyering  <meyering@lucent.com>
47861
47862         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47863
47864         * m4/xstrtoimax.m4: New file.
47865         * m4/xstrtoumax.m4: Add comments explaining why we
47866         AC_REPLACE_FUNCS(strtol).
47867
47868 2001-08-26  Jim Meyering  <meyering@lucent.com>
47869
47870         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47871         of copyright with `%s' so translators don't get an untranslated
47872         message in 2002.
47873         (COPYRIGHT_YEAR): Define.
47874         (version_etc): Use fprintf rather than fputs.
47875         Suggestion from Ulrich Drepper.
47876
47877         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47878
47879         * lib/strtoll.c: New file, from GNU libc.
47880         * lib/xstrtoimax.c: New file.
47881
47882         * lib/xstrtol.h: Add xstrtoimax.
47883         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47884         * lib/strtoimax.c: New file.  Likewise, but first define
47885         STRTOUXMAX_SIGNED.
47886
47887         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47888         ...
47889         * lib/strtoxmax.c: ... then renamed to this.
47890
47891 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47892
47893         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47894         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47895         (jm_AC_TYPE_INTMAX_T): New macro.
47896         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47897
47898         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47899
47900         * m4/longlong.m4: Renamed from ulonglong.m4.
47901         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47902         * m4/uintmax_t.m4: Removed.
47903
47904 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47905
47906         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47907         Port to Solaris 8, where 'sed' requires a space after the 'r'
47908         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47909         Redirect output to $tmp just once.
47910
47911 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47912
47913         * lib/addext.c (<errno.h>): Include.
47914         (errno): Declare if not defined.
47915         (addext): Work correctly when pathconf returns -1 and leaves
47916         errno alone because there is no limit.  Also, work even if
47917         pathconf returns a value greater than SIZE_MAX.
47918
47919 2001-08-12  Jim Meyering  <meyering@lucent.com>
47920
47921         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47922         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47923         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47924         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47925         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47926         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47927         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47928         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47929         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47930         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47931         utime.m4, utimes.m4, xstrtoumax.m4:
47932         Quote the first argument in each use of AC_DEFUN.
47933
47934 2001-08-12  Jim Meyering  <meyering@lucent.com>
47935
47936         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47937         Simply `return getcwd (NULL, 0);'.
47938         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47939         Use 1300 as initial value for length, not PATH_MAX.
47940
47941         * lib/pathmax.h: Clean up cpp syntax.
47942
47943 2001-08-12  Jim Meyering  <meyering@lucent.com>
47944
47945         * lib/gettimeofday.c: New file.
47946         * lib/gtod.h: New file.
47947         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47948
47949 2001-08-05  Jim Meyering  <meyering@lucent.com>
47950
47951         * m4/jm-macros.m4: Require autoconf-2.52.
47952
47953 2001-08-04  Jim Meyering  <meyering@lucent.com>
47954
47955         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47956         stmt, to get in sync with glibc.
47957
47958 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47959
47960         The following changes are from gettext 0.10.39 as maintained by
47961         Bruno Haible.
47962
47963         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47964         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47965         with inverted sense.  All uses changed.
47966
47967         * lib/mbswidth.c: Don't include <limits.h>.
47968         Include <stdlib.h> and <string.h> unconditionally.
47969         (iswcntrl, mbsinit, ISCNTRL): New macros.
47970         (mbsnwidth): Use K&R style function declarations.
47971         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47972         can optimize it when MB_CUR_MAX == 1.
47973         The width of control characters is zero, not 1.
47974
47975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47976
47977         The following changes are from gettext 0.10.39 as maintained by
47978         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47979
47980         * m4/codeset.m4: Upgrade to serial AM1.
47981         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47982         all uses changed.  Quote first arg of AC_DEFUN.
47983         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47984
47985         * m4/iconv.m4: Upgrade to serial AM2.
47986         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47987         Add --with-libconv-prefix.
47988         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47989         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47990         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47991         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47992         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47993
47994         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47995         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47996         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47997         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47998         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47999         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
48000         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
48002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
48003
48004         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
48005         string.h any more.
48006
48007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
48008         not the default value.
48009
48010         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
48011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
48012         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
48013         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
48014         Also check for iswcntrl, used for wcwidth fallback.
48015         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
48016         to Autoconf 2.13.
48017
48018 2001-08-03  Jim Meyering  <meyering@lucent.com>
48019
48020         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
48021         as it was in the original.  Reported by Paul Eggert.
48022
48023 2001-07-16  Jim Meyering  <meyering@lucent.com>
48024
48025         * m4/gettimeofday.m4: New file.
48026         Prompted by a report from Bernhard Baehr.
48027
48028 2001-07-15  Jim Meyering  <meyering@lucent.com>
48029
48030         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
48031         stuff. Now it's in ../Makefile.cfg.
48032
48033 2001-07-15  Jim Meyering  <meyering@lucent.com>
48034
48035         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
48036         (BUILT_SOURCES): Add unlocked-io.h.
48037         (io_functions): Define.
48038         (unlocked-io.h): New rule.
48039         (DISTCLEANFILES): Add unlocked-io.h.
48040         (all-local): Depend on unlocked-io.h, to ensure it is created.
48041
48042         * lib/unlocked-io.hin: New file
48043
48044         * lib/regex.c: Update from glibc.
48045
48046 2001-07-05  Jim Meyering  <meyering@lucent.com>
48047
48048         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
48049         recommendation.
48050         (libfetish_a_SOURCES): Put all .h files here instead.
48051         Remove a thus-exposed (better checks in automake) duplicate and
48052         two unnecessary .h files.
48053
48054 2001-07-04  Jim Meyering  <meyering@lucent.com>
48055
48056         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
48057         that generates jm-glibc-io.m4 so that it doesn't trigger any make
48058         distcheck failure.
48059
48060 2001-07-02  Jim Meyering  <meyering@lucent.com>
48061
48062         The following changes were prompted by suggestions from Bruno Haible.
48063
48064         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
48065         is now generated.
48066         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
48067         definition of EXTRA_DIST.
48068         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
48069         ensure that the generated file is created/updated whenever the list
48070         of $(unlocked_functions) is changed.
48071         (jm-glibc-io.m4): New rule.
48072         (unlocked-io.h): New rule -- currently unused.
48073
48074 2001-06-24  Jim Meyering  <meyering@lucent.com>
48075
48076         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
48077         unmatched right bracket, rather than kludging it with an extra,
48078         falsely-matching quote in a comment.  Patch by Akim Demaille.
48079
48080 2001-06-11  Jim Meyering  <meyering@lucent.com>
48081
48082         * lib/regex.c: Update from GNU libc.
48083
48084 2001-05-27  Jim Meyering  <meyering@lucent.com>
48085
48086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
48087         Check for ut_type in struct utmp.
48088
48089 2001-05-27  Jim Meyering  <meyering@lucent.com>
48090
48091         * lib/readutmp.h (UT_TYPE): Define.
48092
48093 2001-05-24  Jim Meyering  <meyering@lucent.com>
48094
48095         * lib/argmatch.c: Include "quote.h".
48096         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
48097         quote function.  Reported by Göran Uddeborg.
48098
48099 2001-05-22  Jim Meyering  <meyering@lucent.com>
48100
48101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
48102         now that we use the package-supplied version unconditionally.
48103         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
48104
48105 2001-05-21  Jim Meyering  <meyering@lucent.com>
48106
48107         * m4/regex.m4: Change a couple backticks to single quotes to avoid
48108         shell syntax errors.
48109
48110 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48111
48112         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
48113
48114 2001-05-20  Paul Eggert  <eggert@twinsun.com>
48115
48116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
48117         Don't bother to check library strftime, since
48118         we'll be using our own my_strftime function anyway.
48119         Define my_strftime instead of strftime.
48120
48121 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
48122
48123         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
48124         which is not yet declared.
48125
48126 2001-05-15  Jim Meyering  <meyering@lucent.com>
48127
48128         * m4/regex.m4: Use proper quoting so brackets appear in the test
48129         program.
48130         Reported by, and with help from, Bruno Haible.
48131
48132 2001-05-13  Jim Meyering  <meyering@lucent.com>
48133
48134         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
48135         undefined.
48136
48137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48138
48139         dirname code cleanup.  base_name now behaves more compatibly
48140         with POSIX basename when given file names that have trailing
48141         slashes, and similarly for dir_name.  Add new primitives
48142         base_len and dir_len.  Put the directory-name-related decls
48143         into dirname.h.
48144
48145         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
48146         * lib/backupfile.c (base_name): Likewise.
48147         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
48148         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
48149         * lib/makepath.c (strip_trailing_slashes): Likewise.
48150         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
48151         ISSLASH): Likewise.
48152         * lib/rename.c (strip_trailing_slashes): Likewise.
48153         * lib/same.c (base_name): Likewise.
48154         * lib/stripslash.c (ISSLASH): Likewise.
48155
48156         * lib/addext.c: Include <dirname.h> after size_t is defined.
48157         * lib/backupfile.c: Likewise.
48158
48159         * lib/addext.c (addext): Use base_len to trim redundant
48160         trailing slashes instead of doing it ourselves.
48161         But do not trim the last slash if it is not redundant.
48162
48163         * lib/backupfile.c (find_backup_file_name,
48164         max_backup_version): Use base_len instead of rolling it ourselves.
48165         Handle the case of "" and (on DOS) "C:" correctly.
48166
48167         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
48168         needed. Include <string.h>, <dirname.h>.
48169         (base_name): Allow file names ending in slashes, other than names
48170         that are all slashes.  In this case, return the basename followed
48171         by the slashes.  This is more general, and can be used in places
48172         where the original base_name purposely had an assertion failure.
48173         (base_len): New function.
48174
48175         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
48176         Do not include <assert.h>; no longer needed.
48177         Include xalloc.h.
48178         (memrchr): Remove decl.
48179         (dir_name_r): Remove.
48180         (dir_len): Renamed from dirlen.  All callers changed.
48181         Rewrite in terms of base_name, for simplicity and consistency.
48182         (dir_name): Never return NULL.  All callers changed.
48183         Do not include <stdlib.h> in test program; no longer needed.
48184         return 0; is fine for test program.
48185
48186         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
48187         New macros.
48188         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
48189
48190         * lib/path-concat.c (path_concat): Use base_len to compute
48191         base length, not strlen; this means we cannot rely on memcpy
48192         to null-terminate.
48193
48194         * lib/same.c (STREQ): Remove.
48195         (same_name): Handle the case where the basename ends in trailing '/'.
48196
48197         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
48198         a slash was stripped.  Do not strip the last slash after a
48199         file system prefix.
48200
48201 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48202
48203         * lib/Makefile.am (libfetish_a_SOURCES):
48204         Add strftime.c, since we now compile it on all hosts.
48205
48206         * lib/strftime.c (my_strftime):
48207         Define to nstrftime if emacs, but only if my_strftime is not defined.
48208         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
48209         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
48210         Add one more extra argument: a nanoseconds value.
48211         All uses changed.
48212         (ns): New macro.
48213         (my_strftime function): Add %N format.
48214         (emacs_strftimeu): Renamed from emacs_strftime,
48215         with extra ut argument.
48216
48217 2001-05-09  Paul Eggert  <eggert@twinsun.com>
48218
48219         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
48220
48221 2001-04-21  Jim Meyering  <meyering@lucent.com>
48222
48223         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
48224         doesn't interfere.
48225
48226 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48227
48228         * m4/ftruncate.m4: Check for chsize.
48229         Link with ftruncate.o unconditionally if ftruncate is missing.
48230         This was required when cross-compiling to i586-mingw32msvc.
48231
48232 2001-04-08  Jim Meyering  <meyering@lucent.com>
48233
48234         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
48235         recomputed; that's necessary when the offset spans a DST transition.
48236         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
48237
48238 2001-04-02  Jim Meyering  <meyering@lucent.com>
48239
48240         * lib/regex.h, regex.c: Update from GNU libc.
48241
48242 2001-03-24  Jim Meyering  <meyering@lucent.com>
48243
48244         * m4/jm-macros.m4: Require autoconf-2.49d.
48245
48246 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
48247
48248         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
48249
48250 2001-03-19  Paul Eggert  <eggert@twinsun.com>
48251
48252         * lib/version-etc.c (version_etc_copyright): Update to 2001.
48253
48254 2001-03-17  Jim Meyering  <meyering@lucent.com>
48255
48256         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
48257         now that the version in autoconf is equivalent.
48258         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
48259
48260         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
48261         Suggestion from Akim Demaille.
48262
48263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
48264         (jm_PREREQ_TEMPNAME): New function.
48265
48266 2001-03-16  Paul Eggert  <eggert@twinsun.com>
48267
48268         * lib/tempname.c (uint64_t): Define to uintmax_t if
48269         not defined, and if UINT64_MAX is not defined.
48270         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
48271         Reported by John David Anglin.
48272
48273 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
48274
48275         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
48276         resolve alias if codeset is empty.
48277         * lib/config.charset (BeOS): Use wildcard syntax.
48278
48279 2001-03-13  Jim Meyering  <meyering@lucent.com>
48280
48281         * lib/path-concat.c (path_concat)
48282         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
48283         concatenating e.g., `C:' and `foo'.
48284         From Bruno Haible.
48285
48286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48287
48288         * lib/localcharset.c (locale_charset): Don't use
48289         setlocale(LC_CTYPE,NULL). Don't return NULL.
48290         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
48291
48292 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48293
48294         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
48295         support for DOS/DJGPP.
48296
48297 2001-03-01  Paul Eggert  <eggert@twinsun.com>
48298
48299         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
48300         lacks mkstemp.  Compile our own tempname.c if we compile our own
48301         mkstemp.c, as mkstemp relies on tempname.
48302
48303 2001-03-01  Jim Meyering  <meyering@lucent.com>
48304
48305         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
48306         AH_VERBATIM really does output its argument verbatim.
48307
48308 2001-02-28  Paul Eggert  <eggert@twinsun.com>
48309
48310         * lib/Makefile.am (libfetish_a_SOURCES):
48311         Add dup-safer.c, fopen-safer.c.
48312         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
48313
48314         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
48315         * lib/unistd-safer.h: New files.
48316
48317 2001-02-25  Paul Eggert  <eggert@twinsun.com>
48318
48319         The mkstemp replacement is taken from glibc 2.2.2, with some
48320         portability fixes for use outside glibc, as follows:
48321
48322         * lib/tempname.c (struct_stat64): New macro.
48323         (direxists, __gen_tempname): Use it.
48324         This avoids a portability problem with Solaris 8.
48325
48326         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
48327         (<stddef.h>, <stdint.h>, <string.h>):
48328         Include only if STDC_HEADERS || _LIBC.
48329         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
48330         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
48331         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
48332         (__set_errno): Define this macro if <errno.h> doesn't.
48333         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
48334         Define these macros if <stdio.h> doesn't.
48335         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
48336         Define these macros if <sys/stat.h>
48337         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
48338         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
48339         __xstat64): Define if not _LIBC.
48340         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
48341         (__gen_tempname): Invoke gettimeofday only if
48342         HAVE_GETTIMEOFDAY || _LIBC;
48343         otherwise, fall back on plain "time".
48344         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
48345
48346         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
48347
48348         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
48349
48350 2001-02-18  Paul Eggert  <eggert@twinsun.com>
48351
48352         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
48353
48354 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48355
48356         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
48357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
48358         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
48359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48360
48361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48362
48363         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
48364         Remove workaround macros for hosts that have mbrtowc but not
48365         mbstate_t, as we now insist on proper declarations for both
48366         before using mbrtowc.
48367
48368 2001-02-17  Jim Meyering  <meyering@lucent.com>
48369
48370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
48371         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
48372         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
48373         UnixWare 7.1.1.
48374
48375         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
48376         rather than AC_CACHE_VAL.
48377
48378 2001-02-17  Jim Meyering  <meyering@lucent.com>
48379
48380         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
48381         around included file name.
48382
48383         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
48384
48385         * lib/strftime.c: Update from GNU libc (the only changes were to
48386         comments).
48387
48388 2001-02-17  Jim Meyering  <meyering@lucent.com>
48389
48390         * lib/regex.c: Update from libc.
48391
48392 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
48393
48394         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
48395         clash.
48396
48397 2001-02-16  Paul Eggert  <eggert@twinsun.com>
48398
48399         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
48400         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
48401         Reported by Mark Hounschell via Paul Eggert.
48402
48403 2001-02-07  Jim Meyering  <meyering@lucent.com>
48404
48405         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
48406
48407 2001-02-05  Jim Meyering  <meyering@lucent.com>
48408
48409         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
48410         it includes the patch required for `large file' support with at least
48411         HP-UX's 10.20 /bin/cc.
48412
48413 2001-02-03  Jim Meyering  <meyering@lucent.com>
48414
48415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
48416         AS_IF, now that it works once again (mysteriously).
48417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48418
48419 2001-01-30  Jim Meyering  <meyering@lucent.com>
48420
48421         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
48422         * m4/chown.m4: Rename conftestchown to conftest.chown.
48423         * m4/rename.m4: s/conftestdir/conftest.d1/ and
48424         s/conftestdir2/conftest.d2/.
48425         * m4/utimes.m4: s/conftestdata/conftest.data/
48426         Inspired by Pavel Roskin's change in autoconf.
48427
48428 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
48429
48430         * lib/config.charset: Update for FreeBSD 4.2.
48431
48432 2001-01-27  Jim Meyering  <meyering@lucent.com>
48433
48434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
48435         a use of AS_IF.
48436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48437
48438 2001-01-26  Jim Meyering  <meyering@lucent.com>
48439
48440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
48441         quotearg.c includes it.
48442
48443 2001-01-26  Jim Meyering  <meyering@lucent.com>
48444
48445         * lib/quotearg.c: Include stddef.h.
48446         * lib/quote.c: Include stddef.h.
48447         Reported by Axel Kittenberger.
48448
48449         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
48450         line in double quotes so that it evokes a better diagnostic.
48451         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
48452         Reported by Axel Kittenberger.
48453
48454 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
48455
48456         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
48457         as if it was a `charset'.
48458
48459 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48460
48461         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
48462         has const.
48463
48464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48465
48466         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
48467         to avoid a warning.  Add back 'const' to inptr.
48468
48469 2001-01-20  Jim Meyering  <meyering@lucent.com>
48470
48471         Be sure that headers are checked before used in code compiled
48472         for the type checks.
48473         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
48474         In place of that, invoke jm_CHECK_ALL_TYPES.
48475         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
48476         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
48477         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
48478         The check for ssize_t was mistakenly run before the test for unistd.h.
48479
48480         The configure-time check for stdbool.h was missing.
48481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
48482         (jm_PREREQ_HASH): New function.
48483
48484 2001-01-17  Jim Meyering  <meyering@lucent.com>
48485
48486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
48487         for autoconf-2.49c.
48488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
48489
48490 2001-01-16  Jim Meyering  <meyering@lucent.com>
48491
48492         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
48493         From Bruno Haible.
48494
48495 2001-01-14  Jim Meyering  <meyering@lucent.com>
48496
48497         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
48498         foo and bar.  Create conftestdir/ in the script, not in the C code.
48499         Remove directories in the script, not in the C code.
48500         Remove conftestdir{,2} before trying to create the directory.
48501         Make the entire configure script fail if the mkdir fails.
48502
48503 2001-01-14  Jim Meyering  <meyering@lucent.com>
48504
48505         * lib/rename.c: New file.  From Volker Borchert.
48506         Include stdlib.h, string.h or strings.h, and xalloc.h.
48507         Use strip_trailing_slashes rather than open-coding it.
48508
48509 2001-01-03  Paul Eggert  <eggert@twinsun.com>
48510
48511         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
48512
48513 2001-01-03  Jim Meyering  <meyering@lucent.com>
48514
48515         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
48516         of local `inptr' to avoid warning with some system declarations of
48517         iconv.
48518
48519 2001-01-02  Volker Borchert  <bt@teknon.de>
48520
48521         * m4/rename.m4: New file.
48522         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
48523
48524 2001-01-01  Jim Meyering  <meyering@lucent.com>
48525
48526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
48527         even on systems with utmpx.h.  It's necessary for the declaration of
48528         utmp's ut_user member.  Reported by Andreas Jaeger.
48529
48530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
48531         available. They are required for the declarations of getgrgid and
48532         getpwuid resp.
48533         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
48534         Reported by Andreas Jaeger.
48535
48536 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
48537
48538         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
48539         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
48540         so `make install' also works in VPATH builds.
48541
48542 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
48543
48544         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
48545         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
48546         can be used in subdirectories.
48547
48548 2000-12-29  Paul Eggert  <eggert@twinsun.com>
48549
48550         * lib/modechange.c: Do not assume that mode_t uses the
48551         traditional octal encoding.  E.g. "chmod 1 FOO" should set
48552         the other-execute bit of FOO even if S_IXOTH != 1.
48553
48554         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48555         WOTH, XOTH, ALLM): New macros.
48556         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48557          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48558         Use them.
48559         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48560         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48561         (mode_compile):
48562         No need to use uintmax_t; unsigned long is long enough.
48563         Don't bother to get suffix since we don't use it.
48564
48565 2000-12-26  Jim Meyering  <meyering@lucent.com>
48566
48567         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48568         better with autoheader.
48569
48570 2000-12-24  Jim Meyering  <meyering@lucent.com>
48571
48572         * lib/hash.c (is_prime): Return explicit boolean values.
48573         (hash_get_first): Return NULL to appease Irix5.6's 89.
48574         Reported by Nelson Beebe.
48575
48576 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
48577
48578         * lib/localcharset.c (locale_charset): Add support for Win32.
48579
48580 2000-12-18  Paul Eggert  <eggert@twinsun.com>
48581
48582         * lib/physmem.h, lib/physmem.c: New files.
48583
48584         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48585         (noinst_HEADERS): Add physmem.h.
48586
48587         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48588         't' for compatibility with Solaris 8 sort.
48589
48590 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
48591
48592         * lib/config.charset: Add support for BeOS.
48593
48594 2000-12-17  Jim Meyering  <meyering@lucent.com>
48595
48596         * m4/dos.m4 (jm_AC_DOS): New file and macro.
48597         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48598
48599 2000-12-16  Jim Meyering  <meyering@lucent.com>
48600
48601         This bug had a serious impact on chown: `chown N:M FILE' (for integer
48602         N and M) would have treated it like `chown N:N FILE'.
48603
48604         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48605
48606 2000-12-16  Jim Meyering  <meyering@lucent.com>
48607
48608         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48609         SHELLS_FILE to a file name that's useful on djgpp systems.
48610         Include stdlib.h.
48611         (ADDITIONAL_DEFAULT_SHELLS): Define.
48612         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48613         Based mostly on a patch from Prashant TR.
48614
48615 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48616
48617         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48618         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48619         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48620
48621 2000-12-08  Andreas Schwab  <schwab@suse.de>
48622
48623         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48624         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48625
48626 2000-12-07  Jim Meyering  <meyering@lucent.com>
48627
48628         * lib/stripslash.c (ISSLASH): Define.
48629         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48630         `/'.
48631         From Prashant TR.
48632
48633         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48634         (dir_name_r): Declare this function as static.
48635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48636         manifest itself on a name containing a mix of slashes and
48637         backslashes.
48638         Make this function work with names starting with a DOS-style
48639         drive letter and colon prefix.
48640         (dir_name): Append `.' if necessary.
48641         Based mostly on patches from Prashant TR and Eli Zaretskii.
48642
48643         * lib/dirname.h (dir_name_r): Remove prototype.
48644
48645 2000-12-06  Paul Eggert  <eggert@twinsun.com>
48646
48647         * m4/off_t-format.m4: Remove this file.
48648         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48649
48650 2000-12-06  Jim Meyering  <meyering@lucent.com>
48651
48652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48653         replacement strtoull, we may well need the replacement strtoul, too.
48654         Check for declarations of strtoul and strtoull.
48655         Check for strtol.  Mainly as a cue to cause automake to include
48656         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48657         Check for limits.h -- strtol.c needs it.
48658
48659 2000-12-05  Jim Meyering  <meyering@lucent.com>
48660
48661         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48662
48663 2000-12-04  Jim Meyering  <meyering@lucent.com>
48664
48665         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48666         Also include memory.h, stdlib.h, unistd.h if appropriate.
48667         Reported by Andreas Jaeger (conflicting declaration of malloc).
48668
48669 2000-12-02  Jim Meyering  <meyering@lucent.com>
48670
48671         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48672         * m4/jm-macros.m4 (jm_MACROS): require it.
48673
48674 2000-12-02  Jim Meyering  <meyering@lucent.com>
48675
48676         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48677
48678 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48679
48680         * lib/memrchr.c: Include <config.h> before any system include file.
48681
48682 2000-11-30  Jim Meyering  <meyering@lucent.com>
48683
48684         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48685
48686 2000-11-30  Jim Meyering  <meyering@lucent.com>
48687
48688         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48689
48690 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48691
48692         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48693
48694 2000-11-26  Jim Meyering  <meyering@lucent.com>
48695
48696         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48697
48698 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48699
48700         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48701         size of (size_t) -1; it's not portable.
48702
48703 2000-11-17  Jim Meyering  <meyering@lucent.com>
48704
48705         * lib/strstr.c: Update from GNU libc.
48706
48707 2000-11-17  Akim Demaille  <akim@epita.fr>
48708
48709         * lib/obstack.h: Formatting changes.
48710         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48711         prevent type checking.
48712         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48713         cast the value to (void *): assigning a `foo *' to a `void *'
48714         variable is valid.
48715         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48716
48717 2000-11-16  Jim Meyering  <meyering@lucent.com>
48718
48719         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48720
48721 2000-11-11  Jim Meyering  <meyering@lucent.com>
48722
48723         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48724
48725 2000-11-10  Jim Meyering  <meyering@lucent.com>
48726
48727         * lib/obstack.h: Update from GNU libc.
48728         * lib/obstack.c: Likewise.
48729
48730 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48731
48732         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48733
48734 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48735
48736         * lib/getusershell.c (setusershell): Use rewind rather than
48737         fseek/fseeko, to avoid configuration hassles with fseeko.
48738         Don't bother opening SHELLS_FILE if shellstream is NULL;
48739         it's not necessary.
48740
48741 2000-11-05  Jim Meyering  <meyering@lucent.com>
48742
48743         * lib/makepath.h (make_dir): Declare.
48744         * lib/makepath.c (make_dir): Remove `static' attribute.
48745         Tweak a comment.
48746
48747 2000-11-04  Jim Meyering  <meyering@lucent.com>
48748
48749         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48750
48751 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48752
48753         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48754         last one in a bucket, advance to the next bucket.
48755
48756 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48757
48758         * lib/fnmatch.c: Do not comment out all the code if we are using
48759         the GNU C library, because in some cases we are replacing buggy
48760         code in the GNU C library itself.
48761
48762 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48763
48764         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48765         (regex_compile): Catch bogus \(\1\).
48766
48767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48768
48769         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48770         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48771         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48772
48773 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48774
48775         * lib/error.h, getline.h, modechange.h:
48776         Remove "2000" from Copyright line, as the file hasn't been
48777         changed this year other than in the copyright notice.
48778
48779         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48780         was changed this year.
48781
48782 2000-10-29  Jim Meyering  <meyering@lucent.com>
48783
48784         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48785         renaming.
48786         * m4/ls-mntd-fs.m4: Likewise
48787
48788 2000-10-29  Jim Meyering  <meyering@lucent.com>
48789
48790         * lib/xstat.in: Fix grammar in comment.
48791
48792 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48793
48794         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48795         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48796         doesn't define __restrict_arr.
48797
48798 2000-10-28  Jim Meyering  <meyering@lucent.com>
48799
48800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48801         (jm_PREREQ_MEMCHR): New function.
48802
48803 2000-10-28  Jim Meyering  <meyering@lucent.com>
48804
48805         * lib/memchr.c: Update from libc.
48806         Adjust for portability:
48807         [HAVE_STDLIB_H]: Include stdlib.h.
48808         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48809         Undef __memchr, too.
48810         [!weak_alias]: Define __memchr to memchr.
48811
48812         * lib/regex.c: Update from libc.
48813         * lib/regex.h: Likewise.
48814         * lib/getopt1.c: Likewise.
48815         * lib/memcmp.c: Likewise.
48816
48817         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48818         Avoid using fseek, when possible -- it's broken by design.
48819         Patch by Ulrich Drepper.
48820
48821 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48822
48823         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48824         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48825         Giving in to popular pressure to shut up the compiler with casts.
48826
48827 2000-10-26  Jim Meyering  <meyering@lucent.com>
48828
48829         * lib/strftime.c: Update from libc.
48830
48831 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48832
48833         * regex.c: More `unsigned char' -> `re_char' changes.
48834         Also change several `int' into `re_wchar_t'.
48835         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48836         (PUSH_FAILURE_POINTER): Don't cast any more.
48837         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48838         We want GCC to complain, since this piece of code makes
48839         re_match non-reentrant, which *should* be fixed.
48840         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48841         (EXTEND_BUFFER): Use RETALLOC.
48842         (SET_LIST_BIT): Don't cast.
48843         (re_wchar_t): New type.
48844         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48845         that those two functions will always properly return.
48846         (IMMEDIATE_QUIT_CHECK): Cast to void.
48847         (analyse_first): Use recursion rather than an explicit stack.
48848         (re_compile_fastmap): Can't fail anymore.
48849         (re_search_2): Don't check re_compile_fastmap for failure.
48850         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48851         Now also sets the new value (passed in a new argument).
48852         (re_match_2_internal): Use it.
48853         Also, use a new var `reg' of type size_t when looping through regs
48854         rather than reuse the inappropriate `mcnt'.
48855
48856 2000-10-25  Jim Meyering  <meyering@lucent.com>
48857
48858         * lib/obstack.c: Update from libc.
48859
48860 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48861
48862         * regex.c (regex_compile): Change the way of handling a range from
48863         a char less than 256 to a char not less than 256.
48864
48865 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48866
48867         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48868         NT-Emacs only.
48869         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48870         so that re_search functions only quit when callers expect them to.
48871
48872 2000-10-23  Jim Meyering  <meyering@lucent.com>
48873
48874         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48875         wrong.  That set_locale call must not have any side effects.
48876         From Paul Eggert.
48877
48878 2000-10-22  Jim Meyering  <meyering@lucent.com>
48879
48880         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48881         [CYCLIC]: Remove now-unused definition.
48882
48883         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48884         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48885         Suggestion from Ulrich Drepper.
48886
48887 2000-10-21  Jim Meyering  <meyering@lucent.com>
48888
48889         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48890         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48892
48893 2000-10-21  Jim Meyering  <meyering@lucent.com>
48894
48895         * lib/dirname.c (memrchr): Declare if necessary.
48896         (dir_name): Remove the restriction that there be no
48897         trailing slashes.  Now, this code skips past them, effectively
48898         ignoring them.
48899         [TEST_DIRNAME] (main): New unit tests.
48900
48901         * lib/memrchr.c: New file from GNU libc.
48902         Undef __memrchr, too.
48903         [!weak_alias]: Define __memrchr to memrchr.
48904         Guard weak_alias use with `#ifdef weak_alias'.
48905
48906 2000-10-21  Jim Meyering  <meyering@lucent.com>
48907
48908         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48909         (dir_name): Use dir_name_r.
48910         * lib/dirname.h (dir_name_r): Declare it.
48911
48912 2000-10-17  Jim Meyering  <meyering@lucent.com>
48913
48914         * lib/quote.h (PARAMS): Define and use.
48915         Reported by Akim Demaille.
48916
48917         * lib/getopt.c: Update from libc.
48918
48919 2000-10-16  Jim Meyering  <meyering@lucent.com>
48920
48921         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48922         setlocale.
48923         From Jan Fedak.
48924
48925 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48926
48927         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48928
48929 2000-09-25  Jim Meyering  <meyering@lucent.com>
48930
48931         * lib/md5.h (rol): Define (from GnuPG).
48932
48933         * lib/sha.c: Give credit (GnuPG) where due.
48934         (M): Use rol rather than open-coding it.
48935         Add a FIXME comment.
48936
48937 2000-09-21  Jim Meyering  <meyering@lucent.com>
48938
48939         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48940         Reported by Michael Stone.
48941
48942 2000-09-20  Jim Meyering  <meyering@lucent.com>
48943
48944         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48945         (noinst_HEADERS): Add sha.h.
48946         Based on code from Scott G. Miller and from GnuPG.
48947
48948 2000-09-18  Jim Meyering  <meyering@lucent.com>
48949
48950         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48951         LIBS. Otherwise, everyone ends up linking with -lelf for some
48952         configurations.
48953         Reported by Mike Stone.
48954
48955 2000-09-15  Jim Meyering  <meyering@lucent.com>
48956
48957         * lib/regex.c: Update from libc.
48958
48959 2000-09-10  Jim Meyering  <meyering@lucent.com>
48960
48961         * lib/getopt.c (_getopt_internal): Update from glibc.
48962
48963 2000-09-09  Jim Meyering  <meyering@lucent.com>
48964
48965         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48966         think it should be used as a general replacement for isascii.
48967         * lib/fnmatch.c: Likewise.
48968         * lib/mbswidth.c: Likewise
48969         * lib/regex.c: Likewise.
48970
48971         Don't use atoi.
48972         * lib/userspec.c: Include sys/param.h and limits.h.
48973         Include xstrtol.h.
48974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48975         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48976         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48977         UID, GID.  Check range.
48978
48979 2000-09-06  Jim Meyering  <meyering@lucent.com>
48980
48981         * lib/getopt.c (_getopt_internal): Update from glibc.
48982
48983 2000-08-30  Jim Meyering  <meyering@lucent.com>
48984
48985         * lib/strftime.c: Merge in changes from GNU libc.
48986
48987 2000-08-26  Jim Meyering  <meyering@lucent.com>
48988
48989         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48990         * m4/fpending.m4: New file.
48991
48992 2000-08-26  Jim Meyering  <meyering@lucent.com>
48993
48994         * lib/closeout.c: Include "__fpending.h".
48995         (close_stdout_status): Return right away if there's nothing to flush.
48996
48997         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48998         * lib/__fpending.c: New file.
48999         * lib/__fpending.h: New file.
49000
49001 2000-08-20  Jim Meyering  <meyering@lucent.com>
49002
49003         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
49004         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
49005         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
49006
49007 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
49008
49009         Improve fileutils installation on systems where running
49010         programs (like install) can't be unlinked.
49011         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
49012         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
49013
49014 2000-08-07  Paul Eggert  <eggert@twinsun.com>
49015
49016         Standardize on "memory exhausted" instead of "Memory exhausted"
49017         or "virtual memory exhausted".
49018         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
49019         "virtual memory exhausted".
49020         * lib/same.c (same_name): Invoke xalloc_die instead of printing
49021         our own message.
49022         * lib/userspec.c (parse_user_spec): Likewise.
49023         * lib/bumpalloc.h: comment fix
49024         * lib/same.c, userspec.c: Include xalloc.h.
49025
49026         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
49027         not char *const and pointing to a constant array.
49028         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
49029         (xrealloc): Comment fix.
49030
49031         * lib/userspec.c (parse_user_spec):
49032         Don't translate a message until just before returning,
49033         to avoid unnecessary translation.
49034
49035 2000-08-07  Jim Meyering  <meyering@lucent.com>
49036
49037         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
49038         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
49039         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
49040         getgroups.c, gethostname.c, getopt.h, group-member.c,
49041         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
49042         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
49043         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
49044         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
49045         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
49046         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
49047         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
49048         yesno.c: Back out Copyright date changes for each file with no change
49049         this year.  This eases coordination with other programs using the same
49050         source code modules.  From Paul Eggert.
49051
49052 2000-08-06  Paul Eggert  <eggert@twinsun.com>
49053
49054         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
49055         not char, for compatibility with glibc 2.1.3 strftime.c.
49056
49057 2000-08-03  Greg McGary  <greg@mcgary.org>
49058
49059         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
49060         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
49061         (EXTEND_BUFFER): Use them.
49062
49063 2000-08-01  Jim Meyering  <meyering@lucent.com>
49064
49065         * lib/dirname.c (ISSLASH): Define.
49066         (BACKSLASH_IS_PATH_SEPARATOR): Define.
49067         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
49068         both `\' and `/' may be use as path separators.
49069         Based on a patch from Prashant TR.
49070
49071 2000-07-31  Paul Eggert  <eggert@twinsun.com>
49072
49073         * lib/quotearg.c (quotearg_n_options): Don't make the initial
49074         slot vector a constant, since it might get modified.
49075
49076 2000-07-31  Jim Meyering  <meyering@lucent.com>
49077
49078         * lib/xmalloc.c: Use `virtual memory exhausted', not
49079         `Memory exhausted'.
49080         * lib/obstack.c (print_and_abort): Likewise.
49081
49082 2000-07-30  Paul Eggert  <eggert@twinsun.com>
49083
49084         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
49085         buffer, so that the caller can always quote one small
49086         component of a "memory exhausted" message in slot 0.
49087         From a suggestion by Jim Meyering.
49088
49089 2000-07-30  Jim Meyering  <meyering@lucent.com>
49090
49091         * lib/makepath.c (make_path): Quote the other instance, too.
49092
49093         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
49094         (STATIC_BUF_SIZE): Define.
49095         (quotearg_n_options): Use only statically allocated storage when
49096         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
49097         than STATIC_BUF_SIZE.
49098
49099 2000-07-29  Jim Meyering  <meyering@lucent.com>
49100
49101         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
49102         * lib/dirname.c (dir_name): Likewise.
49103
49104         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
49105         `/'.
49106
49107         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
49108         (dir_name): Assert that there are no trailing slashes.
49109
49110 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
49111
49112         * lib/mbswidth.h (mbswidth): Add a flags argument.
49113         (mbswidth): New declaration.
49114         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
49115         * lib/mbswidth.c (mbswidth): Add a flags argument.
49116         (mbsnwidth): New function.
49117
49118 2000-07-24  Jim Meyering  <meyering@lucent.com>
49119
49120         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
49121
49122 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49123
49124         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
49125
49126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49127
49128         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
49129         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
49130         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
49131         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
49132         invoke multibyte primitives.
49133
49134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49135
49136         * lib/quotearg.c:
49137         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
49138         so that mbstate_t is always defined.
49139
49140         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
49141         be 1 in at least one GCC installation, and this configuration
49142         error is likely to be common.  Ignoring MB_LEN_MAX hurts
49143         performance on hosts that have mbrtowc but have only unibyte
49144         locales, but I assume these hosts are rare.
49145
49146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49147
49148         * lib/mbswidth.c (_XOPEN_SOURCE):
49149         Don't define; this causes problems on Solaris 7.
49150         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
49151
49152 2000-07-23  Jim Meyering  <meyering@lucent.com>
49153
49154         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
49155         too: getgrgid, getpwuid, getuid.
49156
49157 2000-07-23  Jim Meyering  <meyering@lucent.com>
49158
49159         * lib/basename.c (base_name): Add an assertion.
49160
49161 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
49162
49163         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
49164         shadow its mbsinit function.
49165
49166 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49167
49168         * lib/mbswidth.h: New file.
49169         * lib/mbswidth.c: New file.
49170         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
49171         (noinst_HEADERS): Add mbswidth.h.
49172
49173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49174
49175         * lib/config.charset: Add support for FreeBSD. Improve support for
49176         HP-UX and IRIX 6.
49177
49178 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
49179
49180         * m4/mbswidth.m4: New file.
49181         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
49182
49183 2000-07-15  Jim Meyering  <meyering@lucent.com>
49184
49185         * lib/makepath.c: Include quote.h.
49186         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
49187         corresponding argument in a `quote (...)' call.
49188         Give better diagnostics.
49189
49190         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
49191         (noinst_HEADERS): Add quote.h.
49192
49193         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
49194         from tar's src/misc.c.
49195         * lib/quote.h: New file.  Prototypes for same.
49196
49197 2000-07-14  Paul Eggert  <eggert@twinsun.com>
49198
49199         From a suggestion by Bruno Haible.
49200         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
49201         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
49202         to decide whether to define the BeOS workaround macro;
49203         this adjusts to the change to AC_MBSTATE_T.
49204
49205 2000-07-14  Jim Meyering  <meyering@lucent.com>
49206
49207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
49208         jm_AC_TYPE_UINTMAX_T.
49209
49210 2000-07-13  Paul Eggert  <eggert@twinsun.com>
49211
49212         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
49213
49214         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
49215         quotearg_buffer_restyled): Add support for
49216         clocale_quoting_style.  Undo previous change to
49217         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
49218         and "{RIGHT QUOTATION MARK}" msgids.
49219
49220 2000-07-10  Paul Eggert  <eggert@twinsun.com>
49221
49222         From a suggestion by Bruno Haible.
49223         * m4/mbstate_t.m4 (AC_MBSTATE_T):
49224         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
49225         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
49226         and mbstate_t, to a single-part test that simply defines mbstate_t.
49227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
49228         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
49229
49230 2000-07-10  Jim Meyering  <meyering@lucent.com>
49231
49232         * m4/strerror_r.m4: Mirror the correction made in autoconf.
49233
49234         * m4/gnu-source.m4: Output to confdefs.h directly.
49235         Suggestion from Akim Demaille.
49236
49237 2000-07-09  Paul Eggert  <eggert@twinsun.com>
49238
49239         The old behavior of quoting `like this' doesn't look good with
49240         newer, ISO-style fonts.  See:
49241         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
49242
49243         Instead, quote "like this" by default.  Let the translator
49244         tailor the locale-specific quoting behavior by providing
49245         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
49246
49247         * lib/quotearg.c (N_): New macro.
49248         (gettext_default): New function.
49249         (quotearg_buffer_restyled): Use
49250         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
49251         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
49252
49253 2000-07-09  Jim Meyering  <meyering@lucent.com>
49254
49255         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
49256         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
49257
49258         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
49259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
49260
49261 2000-07-09  Jim Meyering  <meyering@lucent.com>
49262
49263         * lib/Most files: Update copyright dates to include 2000.
49264
49265 2000-07-08  Jim Meyering  <meyering@lucent.com>
49266
49267         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
49268         if not defined.
49269         (xgethostname): Remove now-unnecessary #ifdef.
49270         Move declaration of `err' into loop where it's used.
49271
49272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49273         and Bruno Haible  <haible@clisp.cons.org>
49274
49275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
49276         only if the test for an object-type mbstate_t fails.  This
49277         prevents us from mistakenly reporting that mbstate_t is a
49278         system object type after we "#define mbstate_t int" to work
49279         around its lack.
49280
49281 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49282         and Bruno Haible  <haible@clisp.cons.org>
49283
49284         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
49285
49286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49287
49288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
49289         to strerror_r.
49290         Include <ctype.h> for use of isalpha.
49291
49292 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49293
49294         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
49295         by allocating a larger buffer. Test the gethostname return value for
49296         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
49297         returns an error and ENAMETOOLONG isn't defined.
49298
49299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49300
49301         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
49302         dimension.
49303
49304 2000-07-04  Jim Meyering  <meyering@lucent.com>
49305
49306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
49307         of the deprecated AC_CHECKING.
49308
49309 2000-07-04  Jim Meyering  <meyering@lucent.com>
49310
49311         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
49312         Reported by Bruno Haible.
49313
49314 2000-07-04  Jim Meyering  <meyering@lucent.com>
49315
49316         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
49317         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
49318         lacks mbrtowc.
49319
49320 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49321
49322         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
49323         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
49324
49325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49326         and Bruno Haible  <haible@clisp.cons.org>
49327
49328         * lib/quotearg.c (mbrtowc):
49329         Assign to *pwc, and return 1 only if result is nonzero.
49330         (iswprint): Use ISPRINT when substituting our own mbrtowc.
49331
49332 2000-07-03  Jim Meyering  <meyering@lucent.com>
49333
49334         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
49335
49336 2000-07-03  Jim Meyering  <meyering@lucent.com>
49337
49338         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
49339         This is necessary to get a definition of e.g., UTMP_FILE on
49340         HP-UX 10.20.
49341         From Bob Proulx.
49342
49343 2000-07-02  Jim Meyering  <meyering@lucent.com>
49344
49345         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
49346
49347         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
49348         AC_LIBOBJ(function_name).
49349         * m4/chown.m4: Likewise.
49350         * m4/fnmatch.m4: Likewise.
49351         * m4/ftruncate.m4: Likewise.
49352         * m4/getgroups.m4: Likewise.
49353         * m4/getline.m4: Likewise.
49354         * m4/group-member.m4: Likewise.
49355         * m4/jm-macros.m4: Likewise.
49356         * m4/lstat.m4: Likewise.
49357         * m4/malloc.m4: Likewise.
49358         * m4/memcmp.m4: Likewise.
49359         * m4/nanosleep.m4: Likewise.
49360         * m4/putenv.m4: Likewise.
49361         * m4/realloc.m4: Likewise.
49362         * m4/regex.m4: Likewise.
49363         * m4/stat.m4: Likewise.
49364         * m4/strftime.m4: Likewise.
49365
49366 2000-07-02  Jim Meyering  <meyering@lucent.com>
49367
49368         * lib/quotearg.c (mbstate_t): Don't define here.
49369
49370 2000-07-02  Jim Meyering  <meyering@lucent.com>
49371
49372         * lib/nanosleep.c (SIGCONT): Define if not already defined.
49373
49374 2000-07-01  Jim Meyering  <meyering@lucent.com>
49375
49376         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
49377
49378 2000-07-01  Jim Meyering  <meyering@lucent.com>
49379
49380         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
49381         problem.
49382
49383 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49384
49385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
49386         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
49387
49388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49389
49390         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
49391         per change in ../m4/ls-mntd-fs.m4.
49392         (read_filesystem_list): Ignore symbolic links.
49393
49394 2000-06-29  Jim Meyering  <meyering@lucent.com>
49395
49396         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
49397         for declaration of strcmp.
49398
49399         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
49400
49401         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
49402         Avoid warning by casting result to `char *' to remove `const'.
49403
49404 2000-06-28  Jim Meyering  <meyering@lucent.com>
49405
49406         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
49407         included by quotearg.c, for which we perform this test.  From
49408         Bruno Haible.
49409
49410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49411
49412         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
49413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
49414         <utmpx.h> exists, put readutmp.o into LIBOBJS.
49415
49416 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49417
49418         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
49419
49420 2000-06-26  Paul Eggert  <eggert@twinsun.com>
49421
49422         savedir now sets errno on failure and invokes xmalloc to get memory.
49423         Fix a couple of other minor bugs while we're at it.
49424
49425         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
49426         (NAMLEN): Remove macro.
49427         (malloc, realloc): Remove decls.
49428         (stpcpy): Likewise.
49429         ("xalloc.h"): Include.
49430         (NAME_SIZE_DEFAULT): New macro.
49431         (savedir): Use xmalloc / xrealloc to allocate memory.
49432         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
49433         Skip "" directory entries.
49434         Use strlen to calculate directory entry length, since the old method
49435         is rarely used these days and isn't worth supporting.
49436         Don't use a pointer after freeing it.
49437         Check for integer overflow when calculating allocation size.
49438         Use memcpy to copy entries, instead of stpcpy.
49439         Set errno properly when returning NULL.
49440         Check for readdir error.
49441
49442 2000-06-26  Jim Meyering  <meyering@lucent.com>
49443
49444         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
49445
49446 2000-06-25  Jim Meyering  <meyering@lucent.com>
49447
49448         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
49449         Linux header bug when _XOPEN_SOURCE is defined to 500.
49450
49451 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49452
49453         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
49454         deficiency.
49455
49456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49457
49458         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
49459         Include xalloc.h.
49460         Don't include <stdlib.h>.  Don't declare malloc, realloc.
49461
49462 2000-06-24  Jim Meyering  <meyering@lucent.com>
49463
49464         * m4/strerror_r.m4: Revive this file -- to try out an experimental
49465         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
49466         for which strerror does return char*, but which lacks a conveniently
49467         accessible declaration of the function.  If the compile-test says
49468         strerror_r doesn't work, then resort to a `run'-test that works on
49469         BeOS and segfaults on DEC Unix.
49470
49471 2000-06-24  Jim Meyering  <meyering@lucent.com>
49472
49473         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
49474
49475 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49476
49477         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
49478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
49479
49480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49481
49482         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
49483         (mbrtowc, mbstate_t): Define substitutes if
49484         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
49485         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
49486         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
49487
49488 2000-06-23  Jim Meyering  <meyering@lucent.com>
49489
49490         * m4/afs.m4: Add missing AC_MSG_RESULT.
49491         Reported by Bruno Haible.
49492
49493         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
49494         Suggestion from Bruno Haible.
49495
49496 2000-06-23  Jim Meyering  <meyering@lucent.com>
49497
49498         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
49499
49500 2000-06-21  Jim Meyering  <meyering@lucent.com>
49501
49502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
49503
49504 2000-06-21  Jim Meyering  <meyering@lucent.com>
49505
49506         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
49507         (noinst_HEADERS): Add getstr.h.
49508
49509         * lib/getline.c (getstr): Move into a separate file.
49510         * lib/getstr.c (getstr): New file, extracted from getline.c, with
49511         the following changes: new parameter, delim2; both delim[12]
49512         parameters have type `int', not `char'.  The latter would lose
49513         with 8-bit delimiters.
49514         * lib/getstr.h: New file.
49515
49516 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49517
49518         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
49519         than 1024, return a memory chunk of least possible size, instead
49520         of size PATH_MAX + 2. In the loop, increment the size proportionally.
49521         Use free/xmalloc instead of xrealloc to avoid copying for very long
49522         paths.
49523
49524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49525
49526         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
49527         the empty string.
49528
49529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49530
49531         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
49532         address, not strdup.  Include <stdlib.h> and don't declare free().
49533
49534 2000-06-19  Jim Meyering  <meyering@lucent.com>
49535
49536         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
49537
49538 2000-06-18  Jim Meyering  <meyering@lucent.com>
49539
49540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
49541
49542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
49543         `checking whether...' message to be consistent with that of the
49544         lstat test.
49545
49546 2000-06-18  Jim Meyering  <meyering@lucent.com>
49547
49548         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
49549         Besides, these days every porting target provides a mkdir function.
49550
49551         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49552         needed. (this snippet comes from src/system.h).
49553
49554 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
49555
49556         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49557
49558 2000-06-15  Paul Eggert  <eggert@twinsun.com>
49559
49560         * lib/human.c (adjust_value): New function.
49561         (human_readable_inexact): Apply rounding style even when
49562         printing approximate values.
49563
49564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49565
49566         * lib/human.c (human_readable_inexact): Allow an input block
49567         size that is not a multiple of the output block size, and vice versa.
49568         Reported by Piergiorgio Sartor.
49569
49570 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49571
49572         * lib/getdate.y (get_date): Apply relative times after time
49573         zone indicator, not before.  Reported by Todd A. Jacobs.
49574
49575 2000-06-13  Jim Meyering  <meyering@lucent.com>
49576
49577         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49578
49579         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49580
49581 2000-06-12  Paul Eggert  <eggert@twinsun.com>
49582
49583         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49584
49585 2000-06-12  Jim Meyering  <meyering@lucent.com>
49586
49587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49588         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49589         optional argument.
49590         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49591         the optional argument, `lib'.
49592
49593 2000-06-08  Jim Meyering  <meyering@lucent.com>
49594
49595         * m4/largefile.m4: Remove file (now that it's part of autoconf).
49596
49597 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49598
49599         Rewrite largefile configuration so that we don't need to run
49600         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
49601         AC_CANONICAL_HOST in configure.in -- jmm]
49602
49603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49604         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49605         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49606         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49607         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49608         All uses changed.
49609         Instead of inspecting the output of getconf, try to compile the
49610         test program without and with the macro definition.
49611         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49612         for getconf.  Instead, check for the needed flags by compiling
49613         test programs.
49614
49615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49616
49617         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49618
49619 2000-06-04  Jim Meyering  <meyering@lucent.com>
49620
49621         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49622         SunOS 4.1.4 for which gid_t is an unsigned type.
49623
49624 2000-06-03  Jim Meyering  <meyering@lucent.com>
49625
49626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49627         now that autoconf requires that.
49628
49629         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49630         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49631         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49632
49633 2000-06-03  Jim Meyering  <meyering@lucent.com>
49634
49635         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49636
49637 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49638
49639         * m4/glibc21.m4: New file.
49640         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49641
49642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49643
49644         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49645         newer, don't install charset.alias.
49646         * lib/config.charset: Change the Linux/glibc rules so they become empty
49647         on glibc-2.1 or newer.
49648
49649 2000-06-02  Jim Meyering  <meyering@lucent.com>
49650
49651         * lib/mountlist.c: Back out last change.  Instead, do this...
49652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49653         me_dummy member using the same `ignore'-testing code.
49654         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49655         fs_type strings.
49656         From Mark D. Roth.
49657
49658 2000-05-29  Jim Meyering  <meyering@lucent.com>
49659
49660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49661         mounts with the `ignore' attribute.  Based on a patch from
49662         Mark D. Roth.
49663
49664 2000-05-28  Jim Meyering  <meyering@lucent.com>
49665
49666         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49667         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49668         * m4/stat.m4: Likewise.
49669         * m4/lstat.m4: Likewise.
49670         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49671
49672         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49673         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49674
49675 2000-05-26  Jim Meyering  <meyering@lucent.com>
49676
49677         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49678
49679 2000-05-24  Jim Meyering  <meyering@lucent.com>
49680
49681         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49682         autoconf requires that.
49683         * m4/lib-check.m4: Likewise.
49684         * m4/jm-macros.m4: Likewise.
49685         * m4/strftime.m4: Likewise.
49686
49687         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49688         AC_CHECK_DECLS, now that autoconf requires that.
49689
49690 2000-05-22  Jim Meyering  <meyering@lucent.com>
49691
49692         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49693         * m4/lstat.m4: Likewise.
49694
49695 2000-05-22  Jim Meyering  <meyering@lucent.com>
49696
49697         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49698
49699 2000-05-20  Jim Meyering  <meyering@lucent.com>
49700
49701         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49702         (jm_PREREQ): Use it.
49703
49704 2000-05-18  Jim Meyering  <meyering@lucent.com>
49705
49706         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49707         back, too, since it may have been modified by allocate_entry.
49708         (hash_delete): Rewrite to use neither the assignment operator
49709         nor the comma operator in an if-expression.
49710
49711 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49712
49713         * lib/closeout.c:
49714         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49715         Remove; no longer needed.
49716         "quotearg.h": Add include.
49717         (file_name): Do not bother to explicitly initialize to NULL; it's less
49718         efficient on some hosts.
49719         (close_stdout_status): Remove test as to whether stdout was already
49720         closed; it breaks for the case "echo x | sort >&-".
49721         Quote file name colons.
49722         Do not assume that _("write error") lacks format strings.
49723
49724 2000-05-15  Jim Meyering  <meyering@lucent.com>
49725
49726         * lib/version-etc.c (version_etc_copyright): Update the copyright
49727         string used in all --version output.
49728
49729 2000-05-14  Jim Meyering  <meyering@lucent.com>
49730
49731         * lib/closeout.c (close_stdout_set_file_name): New function.
49732         (close_stdout_status): Use new file-scoped global.
49733         Return right away if fstat says the stdout file descriptor is invalid.
49734         * lib/closeout.h (close_stdout_set_file_name): Declare.
49735
49736 2000-05-10  Jim Meyering  <meyering@lucent.com>
49737
49738         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49739         (close_stdout_set_status): New function.
49740         * lib/closeout.h (close_stdout_set_status): Declare.
49741
49742 2000-05-09  Jim Meyering  <meyering@lucent.com>
49743
49744         * m4/gettext.m4: Rename this...
49745         * m4/libintl.m4: ...to this.
49746
49747 2000-05-08  Jim Meyering  <meyering@lucent.com>
49748
49749         * lib/long-options.c: Don't include closeout.h.
49750         (parse_long_options): Don't call close_stdout for --version.
49751
49752 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49753
49754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49755         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49756         2.1.3 bug.  This avoids a clash when files like regex.c define
49757         _GNU_SOURCE.
49758
49759 2000-05-06  Jim Meyering  <meyering@lucent.com>
49760
49761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49762         (AC_REPLACE_FUNCS): Add strnlen.
49763
49764         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49765         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49766
49767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49768         AC_SEARCH_LIBS call for nanosleep.
49769         (LIB_NANOSLEEP): Set and AC_SUBST.
49770
49771 2000-05-06  Jim Meyering  <meyering@lucent.com>
49772
49773         * lib/strnlen.c: Undefine __strnlen and strnlen.
49774         [!weak_alias]: Define __strnlen to strnlen.
49775
49776         * lib/atexit.c: New file, from libiberty.
49777
49778 2000-05-06  Jim Meyering  <meyering@lucent.com>
49779
49780         * lib/closeout.c (close_stdout_status): Also check for errors on the
49781         stderr stream.
49782
49783 2000-05-05  Jim Meyering  <meyering@lucent.com>
49784
49785         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49786         AC_SEARCH_LIBS call for clock_gettime.
49787         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49788
49789         * m4/search-libs.m4: Update from autoconf.
49790
49791         su doesn't work on Solaris 2.6.
49792         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49793         <shadow.h>.  Reported by Dragos Harabor.
49794
49795 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49796
49797         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49798         memcpy instead of xmalloc, xrealloc, path_concat.
49799         (locale_charset): Treat empty environment variables as absent.
49800         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49801
49802 2000-05-04  Jim Meyering  <meyering@lucent.com>
49803
49804         * lib/getopt.c: Update from glibc.
49805         * lib/obstack.c: Likewise.
49806         * lib/obstack.h: Likewise.
49807         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49808         file
49809
49810         * lib/regex.h: Likewise.
49811         * lib/strndup.c: Likewise.
49812         * lib/strnlen.c: New file, from glibc.
49813
49814 2000-05-03  Jim Meyering  <meyering@lucent.com>
49815
49816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49817
49818 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49819
49820         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49821         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49822         compile-time test, rather than inspecting host and OS, to
49823         decide whether to define _LARGEFILE_SOURCE.
49824
49825 2000-05-01  Jim Meyering  <meyering@lucent.com>
49826
49827         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49828
49829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49830         Based on a patch from Bruno Haible.
49831
49832 2000-05-01  Jim Meyering  <meyering@lucent.com>
49833
49834         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49835
49836 2000-04-29  Jim Meyering  <meyering@lucent.com>
49837
49838         * lib/path-concat.c: Declare strdup only if it's not defined.
49839         * lib/canon-host.c: Likewise.
49840
49841 2000-04-28  Jim Meyering  <meyering@lucent.com>
49842
49843         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49844         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49845         is included first, then limits.h is included by locale.h by libintl.h.
49846         From John David Anglin.
49847
49848 2000-04-25  Jim Meyering  <meyering@lucent.com>
49849
49850         * lib/makepath.c (S_IRWXUGO): Define.
49851         (make_path): Always perform explicit chmod if MODE specifies any
49852         of the `special' permission bits.  Prompted by a bug report against
49853         install from Mate Wierdl and Joost van Baal.
49854
49855 2000-04-18  Jim Meyering  <meyering@lucent.com>
49856
49857         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49858         (jm_PREREQ): Use it.
49859
49860 2000-04-18  Jim Meyering  <meyering@lucent.com>
49861
49862         * lib/README: New file.
49863
49864         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49865         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49866
49867 2000-04-17  Jim Meyering  <meyering@lucent.com>
49868
49869         Get it right :-)
49870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49871         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49872         Suggestion from Akim Demaille.
49873
49874 2000-04-17  Jim Meyering  <meyering@lucent.com>
49875
49876         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49877         the definition of it to rpl_strftime also defined-away the system's
49878         declaration.
49879
49880 2000-04-15  Jim Meyering  <meyering@lucent.com>
49881
49882         Use `C' to denote so-called `contiguous' files, the same way
49883         that tar does.
49884         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49885         (ftypelet): Use S_ISCTG.
49886         From Michael Deutschmann.
49887
49888 2000-04-14  Jim Meyering  <meyering@lucent.com>
49889
49890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49891         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49892         clobbered.
49893
49894 2000-04-14  Jim Meyering  <meyering@lucent.com>
49895
49896         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49897
49898 2000-04-13  Jim Meyering  <meyering@lucent.com>
49899
49900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49901         AH_VERBATIM to insert required #ifndef into config.h.in.
49902         Suggestion from Akim Demaille.
49903
49904 2000-04-12  Jim Meyering  <meyering@lucent.com>
49905
49906         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49907         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49908         Christian Krackowizer.
49909
49910         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49911         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49912         (AC_SYS_LARGEFILE): Require.
49913         (AM_C_PROTOTYPES): Require.
49914
49915 2000-04-08  Jim Meyering  <meyering@lucent.com>
49916
49917         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49918         names don't conflict.  Reported by Eli Zaretskii.
49919
49920 2000-04-07  Jim Meyering  <meyering@lucent.com>
49921
49922         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49923         sys/types.h, to work around system header problems on AIX 3.2.5.
49924         From Bruno Haible.
49925
49926 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49927
49928         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49929         bug.  Deal with the different error behavior of Irix iconv.
49930
49931 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49932
49933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49934         IRIX if the installer said otherwise.
49935
49936 2000-04-05  Jim Meyering  <meyering@lucent.com>
49937
49938         Portability tweaks required for ultrix4.3.
49939         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49940         (jm_CHECK_DECLS): Add getutent to the list of functions.
49941         (_jm_DECL_HEADERS): Add utmpx.h.
49942         From John David Anglin.
49943
49944         * m4/strftime.m4: Back out the 2000-04-02 change.
49945         Instead of that change, simply undefine putenv in the test program.
49946
49947 2000-04-05  Jim Meyering  <meyering@lucent.com>
49948
49949         Portability tweaks required for ultrix4.3.
49950         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49951         getutent.
49952         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49953         * lib/canon-host.c: Declare strdup.
49954         * lib/path-concat.c: Likewise.
49955         From John David Anglin.
49956
49957 2000-04-04  Jim Meyering  <meyering@lucent.com>
49958
49959         Be more DOS 8.3-friendly.
49960         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49961         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49962         * lib/Makefile.am: Reflect renaming.
49963         Reported by Eli Zaretskii.
49964
49965         Use a temporary file name that won't clash with `charset.alias'
49966         in the DOS 8.3 name space.
49967         * lib/Makefile.am (charset_tmp): Define.
49968         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49969         (uninstall-local): Likewise.
49970         Reported by Eli Zaretskii.
49971
49972 2000-04-03  Jim Meyering  <meyering@lucent.com>
49973
49974         * m4/gettext.m4: Fix typo in comment.
49975
49976         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49977         textutils/configure.in).  Suggestion from Paul Eggert.
49978         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49979
49980 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49981
49982         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49983         variable in the shell rather than using putenv, which isn't
49984         portable.  This avoids the configure-time inter-test dependency
49985         on the potentially-renamed putenv function.
49986
49987 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49988
49989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49990         before checking struct stat.st_blksize, so that
49991         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49992
49993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49994
49995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49996         since strftime.c uses HAVE_STRFTIME to decide whether to use
49997         the underlying strftime.
49998
49999 2000-03-29  Paul Eggert  <eggert@twinsun.com>
50000
50001         * lib/time/strftime.c (my_strftime): Make sure we call the system
50002         strftime, not ourselves, when invoking the underlying strftime.
50003
50004 2000-03-24  Jim Meyering  <meyering@lucent.com>
50005
50006         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
50007         (charset_alias): Define.
50008         (install-exec-local): Factor out common code.
50009         (uninstall-local): Split lines longer than 80.
50010         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
50011         (SUFFIXES): Define.
50012         (.sed.in.sed): New rule.  Don't redirect directly to $@.
50013         (CLEANFILES): Add ref-add.sed and ref-del.sed.
50014
50015 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
50016
50017         * lib/config.charset: Output a line containing "Packages using this
50018         file".
50019         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
50020         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
50021         ref-del.sed): New rules.
50022
50023 2000-03-17  Jim Meyering  <meyering@lucent.com>
50024
50025         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
50026         Otherwise, include <strings.h>
50027
50028 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
50029
50030         * lib/unicodeio.c (utf8_wctomb): New function.
50031         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
50032         format instead of in UCS-4 with platform dependent endianness.
50033
50034 2000-03-10  Jim Meyering  <meyering@lucent.com>
50035
50036         * m4/lib-check.m4: Look for getspnam in -lgen, too.
50037         From Marco Franzen.
50038
50039 2000-03-07  Paul Eggert  <eggert@twinsun.com>
50040
50041         * lib/savedir.c (savedir): Work even if directory size is
50042         negative; this can happen with some screwy NFS configurations.
50043
50044 2000-03-06  Jim Meyering  <meyering@lucent.com>
50045
50046         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
50047         if it's NULL (because we ran out of memory).  From Bruno Haible.
50048
50049 2000-03-05  Jim Meyering  <meyering@lucent.com>
50050
50051         * lib/localcharset.c ("path-concat.h"): Include.
50052         (get_charset_aliases): Use path_concat instead of ANSI string
50053         concatenation.
50054
50055         * lib/unicodeio.h (PARAMS): Define.
50056         Use it to guard prototype.
50057
50058 2000-03-04  Jim Meyering  <meyering@lucent.com>
50059
50060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
50061         for lib/localcharset.c.
50062
50063 2000-03-04  Jim Meyering  <meyering@lucent.com>
50064
50065         * lib/Makefile.am (install-exec-local): Create $(libdir) before
50066         installing into it.
50067         (uninstall-local): Uncomment this rule so `make distcheck' works
50068         once again.
50069
50070         * lib/unicodeio.c (<errno.h>): Include it.
50071         (errno): Declare if not defined.
50072
50073         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
50074
50075         * lib/config.charset: New version, incorporating remarks from a linux
50076         i18n mailing list.  From Bruno Haible.
50077
50078 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
50079
50080         * m4/codeset.m4: New file.
50081         * m4/iconv.m4: New file.
50082         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
50083
50084 2000-03-03  Jim Meyering  <meyering@lucent.com>
50085
50086         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
50087
50088 2000-03-02  Jim Meyering  <meyering@lucent.com>
50089
50090         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
50091         the messages come out on separate lines.
50092
50093         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
50094         rather than jm_CHECK_DECLARATIONS.
50095         * m4/decl.m4: Remove now-unused file.
50096
50097         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
50098         geteuid.
50099
50100 2000-03-02  Jim Meyering  <meyering@lucent.com>
50101
50102         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
50103
50104 2000-03-01  Jim Meyering  <meyering@lucent.com>
50105
50106         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
50107         * lib/unicodeio.c: Likewise.
50108
50109 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
50110
50111         * lib/config.charset: New file.
50112         * lib/localcharset.c: New file.
50113         * lib/unicodeio.h, lib/unicodeio.c: New files.
50114         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
50115         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
50116         (noinst_HEADERS): Add unicodeio.h.
50117         (all-local, install-exec-local, charset.alias): New targets.
50118
50119 2000-02-28  Paul Eggert  <eggert@twinsun.com>
50120
50121         * lib/quotearg.c (ALERT_CHAR): New macro.
50122         (quotearg_buffer_restyled): Use it.
50123
50124 2000-02-27  Jim Meyering  <meyering@lucent.com>
50125
50126         * m4/check-decl.m4: Add getenv to the list.
50127
50128 2000-02-27  Jim Meyering  <meyering@lucent.com>
50129
50130         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
50131         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
50132
50133         * lib/backupfile.c: Guard inclusion of stdlib.h with
50134         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
50135         Declare malloc if needed.
50136
50137         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
50138         `#ifndef HAVE_DECL..'
50139         now that autoconf always defines the HAVE_DECL_ symbols.
50140         * lib/human.c: Likewise.
50141         * lib/same.c: Likewise.
50142         * lib/strtoumax.c: Likewise.
50143
50144         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
50145         declaration check was not run.
50146         * lib/hash.c: Likewise.
50147         * lib/human.c: Likewise.
50148         * lib/same.c: Likewise.
50149         * lib/strtoumax.c: Likewise.
50150
50151         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
50152         `.', then first look up the entire `.'-containing string as a login
50153         name.
50154
50155 2000-02-23  Jim Meyering  <meyering@lucent.com>
50156
50157         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
50158         in place of my hack.
50159
50160 2000-02-18  Paul Eggert  <eggert@twinsun.com>
50161
50162         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
50163         (textint): New typedef.
50164         (parser_control): Member year changed from int to textint.
50165         All uses changed.
50166         (YYSTYPE): Removed; replaced by %union with int and textint members.
50167         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
50168         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
50169         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
50170         (tSNUMBER, tUNUMBER): Now of type <textintval>.
50171         (date, number, to_year): Use width of number in digits, not its value,
50172         to determine whether it's a 2-digit year, or a 2-digit time.
50173         (yylex): Store number of digits of numeric tokens.
50174         Reported by John Kendall.
50175
50176         (parser_control): Changed from struct parser_control to typedef (for
50177         consistency).  All uses changed.
50178
50179         (tID): Removed; not used.
50180         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
50181
50182 2000-02-14  Paul Eggert  <eggert@twinsun.com>
50183
50184         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
50185         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
50186
50187 2000-02-12  Jim Meyering  <meyering@lucent.com>
50188
50189         * lib/userspec.c (ISDIGIT): Define it.
50190         (isdigit): Remove definition.
50191         (is_number): Use ISDIGIT, not isdigit.
50192         <libintl.h>: Include.
50193         (_ and N_): Define.
50194         (parse_user_spec): Mark translatable strings.
50195
50196 2000-02-10  Jim Meyering  <meyering@lucent.com>
50197
50198         With these changes, nanosleep.[ch] are finally enough like the other
50199         lib/* replacement files to compile on a few more losing systems.
50200
50201         * lib/nanosleep.h: Don't include config.h.
50202         Remove prototype from declaration of nanosleep.
50203         (PARAMS): Remove now-unneeded definition.
50204         * lib/nanosleep.c: #undef nanosleep.
50205         (rpl_nanosleep): Rename from nanosleep.
50206
50207 2000-02-10  Jim Meyering  <meyering@lucent.com>
50208
50209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
50210         gnu_nanosleep to rpl_nanosleep.
50211
50212 2000-02-09  Jim Meyering  <meyering@lucent.com>
50213
50214         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
50215         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
50216
50217 2000-02-08  Akim Demaille  <akim@epita.fr>
50218
50219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
50220         `[' and `]' and remove uses of `changequote'.
50221         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
50222         (AC_SYS_LARGEFILE): Likewise.
50223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
50225         of changequote.
50226         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
50227         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
50228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
50229         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
50230
50231 2000-02-05  Jim Meyering  <meyering@lucent.com>
50232
50233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
50234         Remove explicit use of AC_HEADER_TIME.  It is required by
50235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
50236         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
50237         in autoconf whereby the expansion of the latter ended up preceding
50238         the expansion of its prerequisite, AC_HEADER_TIME.
50239         Reported by Volker Borchert.
50240
50241 2000-02-03  Jim Meyering  <meyering@lucent.com>
50242
50243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
50244
50245 2000-02-03  Jim Meyering  <meyering@lucent.com>
50246
50247         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
50248         rather than with `#if HAVE_UTMPNAME'.
50249
50250 2000-02-02  Jim Meyering  <meyering@lucent.com>
50251
50252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
50253         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
50254         Reported by Eli Zaretskii.
50255
50256 2000-02-01  Jim Meyering  <meyering@lucent.com>
50257
50258         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
50259
50260 2000-01-31  Jim Meyering  <meyering@lucent.com>
50261
50262         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
50263         functions.  Add the time.h and sys/time.h headers along with the
50264         AC_REQUIRE'ment of AC_HEADER_TIME.
50265
50266 2000-01-31  Jim Meyering  <meyering@lucent.com>
50267
50268         * lib/nanosleep.h (nanosleep): Guard declaration with
50269         `#if ! HAVE_DECL_NANOSLEEP'.
50270         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
50271         the declaration in that vendor's sys/timers.h.
50272         Reported by Christian Krackowizer.
50273
50274         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
50275         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
50276         (ISPRINT): Likewise.
50277         Reported by Tom Tromey.
50278
50279 2000-01-30  Jim Meyering  <meyering@lucent.com>
50280
50281         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
50282
50283         * m4/prereq.m4 (utmp_includes): Define.
50284         Check for ut_user and ut_name members in both struct utmpx
50285         and struct utmp.
50286
50287 2000-01-30  Jim Meyering  <meyering@lucent.com>
50288
50289         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
50290         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
50291         header files where only utmpx.ut_user is declared.
50292
50293         * lib/readutmp.h (UT_USER): Define.
50294
50295 2000-01-29  Jim Meyering  <meyering@lucent.com>
50296
50297         * m4/lib-check.m4: New file containing library-related checks from
50298         fileutils and sh-utils (textutils had none).
50299
50300 2000-01-28  Jim Meyering  <meyering@lucent.com>
50301
50302         * m4/perl.m4: Change format of warning message to look more like that
50303         from the missing script.  Suggestion from François Pinard.
50304
50305 2000-01-25  Jim Meyering  <meyering@lucent.com>
50306
50307         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
50308         well as time.h in the compile check.
50309         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
50310         Fix typo in cross-compiling case: s/yes/no/.
50311
50312 2000-01-23  Jim Meyering  <meyering@lucent.com>
50313
50314         * m4/jm-macros.m4: Move df-related tests here from
50315         fileutils/configure.in
50316
50317         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
50318         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
50319
50320         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
50321         s/space/ac_fsusage_space/.
50322         (jm_FILE_SYSTEM_USAGE): Take two parameters.
50323
50324         * m4/ftruncate.m4: New file (derived from part of
50325         fileutils/configure.in).
50326         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
50327         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
50328
50329         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
50330         AC_SUBST these here, rather than just in sh-util/configure.in, so
50331         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
50332         all the same.
50333         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
50334         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
50335         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
50336         (AC_SUBST(POW_LIBM)): Likewise.
50337         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
50338
50339 2000-01-23  Jim Meyering  <meyering@lucent.com>
50340
50341         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
50342         obstack.c.
50343
50344 2000-01-22  Jim Meyering  <meyering@lucent.com>
50345
50346         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
50347
50348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
50349
50350         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
50351         configure.in
50352         (AC_CHECK_HEADERS): Likewise for sh-utils.
50353         (AC_CHECK_HEADERS): Likewise for textutils.
50354         Merge the three lists of headers.
50355
50356         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
50357         from fileutils' configure.in.
50358
50359         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
50360         code. Moved tests into their own function (_jm_DECL_HEADERS) in
50361         check-decl.m4.
50362
50363         * m4/check-decl.m4: Use #if rather than #ifdef.
50364         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
50365         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
50366         (_jm_DECL_HEADERS): Define new function.
50367         (jm_CHECK_DECLARATIONS): Require it.
50368
50369 2000-01-22  Jim Meyering  <meyering@lucent.com>
50370
50371         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
50372         [! HAVE_DECL_STRTOULL]: Declare strtoull.
50373         Required for some AIX systems.  Reported by Christian Krackowizer.
50374         [TESTING] (main): New function.
50375
50376         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
50377         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
50378         letters.
50379
50380         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
50381         iswprint.
50382
50383         * lib/strverscmp.c (ISDIGIT): Define.
50384         (strverscmp): Use ISDIGIT, not isdigit.
50385
50386 2000-01-19  Jim Meyering  <meyering@lucent.com>
50387
50388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
50389         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
50390         defines `struct timespec' in <sys/time.h>
50391
50392         * m4/c-bs-a.m4: Remove uses of changequote altogether.
50393         Thanks to Akim for explaining.
50394
50395 2000-01-17  Paul Eggert  <eggert@twinsun.com>
50396
50397         * lib/nanosleep.c (nanosleep):
50398         Don't use SA_INTERRUPT to decide whether to call sigaction, as
50399         POSIX.1 doesn't require SA_INTERRUPT and some systems
50400         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
50401         it's been part of POSIX.1 since day 1 (in 1988).
50402
50403 2000-01-17  Jim Meyering  <meyering@lucent.com>
50404
50405         * lib/interlock: Remove unused file.  Reported by François Pinard.
50406
50407 2000-01-16  Paul Eggert  <eggert@twinsun.com>
50408
50409         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
50410         alert, backslash, formfeed, and vertical tab unnecessarily in
50411         shell quoting style.
50412
50413 2000-01-16  Jim Meyering  <meyering@lucent.com>
50414
50415         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
50416         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
50417         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
50418         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
50419
50420 2000-01-16  Jim Meyering  <meyering@lucent.com>
50421
50422         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
50423         because the latter didn't work.
50424
50425 2000-01-15  Jim Meyering  <meyering@lucent.com>
50426
50427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
50428         (AC_REPLACE_FUNCS): Add memcpy and memset.
50429         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
50430         Add strpbrk.
50431         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
50432
50433 2000-01-12  Jim Meyering  <meyering@lucent.com>
50434
50435         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
50436         (jm_PREREQ): Use it.
50437         (jm_PREREQ_READUTMP): New macro.
50438         (jm_PREREQ): Use it.
50439
50440 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50441
50442         Quote multibyte characters correctly.
50443         * m4/c-bs-a.m4: New file.
50444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
50445         (jm_PREREQ): Use it.
50446
50447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50448
50449         * m4/uintmax_t.m4: Port to autoconf 2.13.
50450
50451 2000-01-08  Jim Meyering  <meyering@ascend.com>
50452
50453         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
50454         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
50455
50456 2000-01-04  Jim Meyering  <meyering@ascend.com>
50457
50458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
50459         jm_STRUCT_DIRENT_D_TYPE.
50460         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
50461         jm_STRUCT_DIRENT_D_INO.
50462         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
50463         jm_STRUCT_UTIMBUF.
50464         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
50465         renamings.
50466         * m4/utime.m4: Likewise.
50467
50468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
50469         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
50470
50471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
50472
50473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
50474         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
50475
50476 2000-01-02  Jim Meyering  <meyering@ascend.com>
50477
50478         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
50479         remember if this is necessary.
50480
50481 1999-12-26  Jim Meyering  <meyering@ascend.com>
50482
50483         * m4/jm-macros.m4: Use it here.
50484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
50485
50486 1999-12-23  Jim Meyering  <meyering@ascend.com>
50487
50488         * m4/jm-macros.m4: Check for clock_gettime (moved from
50489         fileutils/configure.in)
50490         Check for gettimeofday.
50491
50492 1999-12-20  Jim Meyering  <meyering@ascend.com>
50493
50494         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
50495         autoconf-2.14a-1999-12-20.
50496
50497 1999-12-19  Jim Meyering  <meyering@ascend.com>
50498
50499         * m4/lstat-slash.m4: New file.
50500         * m4/jm-macros.m4: Use the new macro:
50501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50502
50503 1999-12-07  Jim Meyering  <meyering@ascend.com>
50504
50505         * m4/perl.m4: Require that File::Compare be available, too.
50506         Too many systems seem to lack it.
50507
50508         * m4/strftime.m4: Add checks for most of the cpp macros tested in
50509         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
50510
50511 1999-11-18  Paul Eggert  <eggert@twinsun.com>
50512
50513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
50514         problem with the QNX 4.25 shell, which doesn't propagate exit
50515         status of failed commands inside shell assignments.
50516
50517 1999-11-17  Jim Meyering  <meyering@ascend.com>
50518
50519         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
50520
50521 1999-11-07  Jim Meyering  <meyering@ascend.com>
50522
50523         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
50524
50525 1999-11-06  Jim Meyering  <meyering@ascend.com>
50526
50527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
50528         * m4/jm-macros.m4 (jm_MACROS): Use it here.
50529
50530 1999-11-05  Jim Meyering  <meyering@ascend.com>
50531
50532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
50533         configure.in of textutils, fileutils, and sh-utils into this one
50534         (shared between those packages) file.
50535         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
50536         AC_STRUCT_ST_BLKSIZE.
50537
50538 1999-11-03  Jim Meyering  <meyering@ascend.com>
50539
50540         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
50541         of AC_CHECK_TYPE checks includes unistd.h.
50542         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
50543         Suggestion from Akim Demaille.
50544
50545 1999-10-30  Jim Meyering  <meyering@ascend.com>
50546
50547         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
50548         m4-quoted string.
50549         * m4/ls-mntd-fs.m4: Likewise.
50550         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
50551         * m4/jm-winsz1.m4: Likewise.
50552
50553         * m4/const.m4: Remove file, since the fix made it into the experimental
50554         version of autoconf.
50555         * m4/mktime.m4: Likewise.
50556
50557         * m4/check-type.m4: Remove file, now that the latest version of
50558         AC_CHECK_TYPE takes a third arg to specify additional #includes.
50559
50560         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50561         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50562         AC_CHECK_TYPE.
50563
50564 1999-10-04  Jim Meyering  <meyering@ascend.com>
50565
50566         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50567
50568 1999-09-22  Paul Eggert  <eggert@twinsun.com>
50569
50570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50571         2.95.1 bug with HP-UX 10.20.
50572
50573 1999-09-17  Jim Meyering  <meyering@ascend.com>
50574
50575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50576         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50577         due to missing strdup (against sh-utils-2.0).
50578
50579 1999-08-29  Jim Meyering  <meyering@ascend.com>
50580
50581         * m4/jm-macros.m4: Require jm_BISON.
50582         * m4/bison.m4: New file.
50583
50584 1999-08-17  Paul Eggert  <eggert@twinsun.com>
50585
50586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50587         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50588
50589 1999-08-05  Jim Meyering  <meyering@ascend.com>
50590
50591         * m4/getline.m4: Rename test file from conftestdata to conftest.data
50592         to avoid conflicts with `conftest' on 8+3 filesystems.
50593         Suggestion from Eli Zaretskii.
50594
50595 1999-08-04  Jim Meyering  <meyering@ascend.com>
50596
50597         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50598         fileutils and sh-utils (textutils's getline test was inadequate).
50599         (AM_FUNC_GETLINE): Run this test.
50600         (AC_CHECK_FUNCS): Check for getdelim.
50601         Reported by Bob Proulx.
50602
50603 1999-08-02  Jim Meyering  <meyering@ascend.com>
50604
50605         * m4/jm-macros.m4: Add a comment.
50606
50607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50608
50609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50610         <inttypes.h> defines strtoumax as a macro (and not as a
50611         function).
50612
50613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50614
50615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50616         that we can shift, multiply and divide unsigned long long
50617         values; Ultrix cc can't do it.
50618
50619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50620
50621         * m4/mktime.m4: New file, which is a preview of what should appear
50622         in the next public autoconf release.
50623
50624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50625
50626         * m4/lfs.m4: Remove this file.
50627         * m4/largefile.m4: New file.  It contains the old contents of
50628         lfs.m4, except that all names with prefix AC_LFS have been
50629         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50630         compatible with future autoconf versions.  Also, some minor m4
50631         quoting problems have been fixed.
50632
50633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50634
50635         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50636         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50637         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50638         and simplify the shell code.
50639
50640 1999-08-01  Jim Meyering  <meyering@ascend.com>
50641
50642         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50643         m4.
50644
50645 1999-07-20  Jim Meyering  <meyering@ascend.com>
50646
50647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50648
50649 1999-07-15  Jim Meyering  <meyering@ascend.com>
50650
50651         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50652
50653 1999-05-22  Jim Meyering  <meyering@ascend.com>
50654
50655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50656
50657 1999-05-20  Jim Meyering  <meyering@ascend.com>
50658
50659         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50660         Add a colon after each `then' in case $4 is empty.
50661
50662 1999-05-16  Jim Meyering  <meyering@ascend.com>
50663
50664         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50665
50666 1999-05-10  Jim Meyering  <meyering@ascend.com>
50667
50668         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50669
50670         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50671         AC_FUNC_MKTIME.
50672
50673 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50674
50675         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50676
50677 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50678
50679         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50680         not CPPFLAGS, so that linking works correctly in IRIX.
50681
50682 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50683
50684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50685
50686 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50687
50688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50689         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50691         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50693
50694         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50695
50696 1999-04-20  Jim Meyering  <meyering@ascend.com>
50697
50698         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50699         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50700         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50701
50702 1999-04-18  Jim Meyering  <meyering@ascend.com>
50703
50704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50705         * m4/jm-macros.m4: Use it.
50706
50707 1999-04-06  Jim Meyering  <meyering@ascend.com>
50708
50709         * m4/strftime.m4: Remove test for %f.
50710
50711 1999-03-29  Jim Meyering  <meyering@ascend.com>
50712
50713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50714         superset of the AC_TYPE_* checks in the textutils, fileutils,
50715         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50716         AC_TYPE_PID_T.
50717
50718 1999-03-28  Jim Meyering  <meyering@ascend.com>
50719
50720         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50721         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50722         replaced e.g., in the *.sh files of the sh-utils.
50723
50724 1999-03-20  Jim Meyering  <meyering@ascend.com>
50725
50726         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50727         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50728         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50729
50730 1999-03-19  Jim Meyering  <meyering@ascend.com>
50731
50732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50733
50734 1999-03-12  Jim Meyering  <meyering@ascend.com>
50735
50736         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50737
50738 1999-03-07  Jim Meyering  <meyering@ascend.com>
50739
50740         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50741         declared.
50742
50743 1999-02-17  Jim Meyering  <meyering@ascend.com>
50744
50745         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50746         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50747
50748 1999-02-07  Jim Meyering  <meyering@ascend.com>
50749
50750         * m4/group-member.m4: New file -- extracted from sh-utils'
50751         configure.in.
50752
50753         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50754         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50755
50756 1999-02-06  Jim Meyering  <meyering@ascend.com>
50757
50758         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50759         * m4/fnmatch.m4: Likewise.
50760         * m4/getgroups.m4: Likewise.
50761         * m4/lstat.m4: Likewise.
50762         * m4/malloc.m4: Likewise.
50763         * m4/putenv.m4: Likewise.
50764         * m4/realloc.m4: Likewise.
50765         * m4/regex.m4: Likewise.
50766         * m4/stat.m4: Likewise.
50767         * m4/strftime.m4: Likewise.
50768         Suggestion from Alain Magloire.
50769
50770         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50771         * m4/fnmatch.m4: Likewise.
50772         * m4/getgroups.m4: Likewise.
50773         * m4/getline.m4: Likewise.
50774         * m4/lstat.m4: Likewise.
50775         * m4/malloc.m4: Likewise.
50776         * m4/memcmp.m4: Likewise.
50777         * m4/putenv.m4: Likewise.
50778         * m4/realloc.m4: Likewise.
50779         * m4/regex.m4: Likewise.
50780         * m4/stat.m4: Likewise.
50781         * m4/strftime.m4: Likewise.
50782         Suggestion from Alain Magloire.
50783
50784         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50785         an argument.
50786
50787         * m4/regex.m4: Add a run-time Test for proper operation of
50788         re_compile_pattern.
50789
50790 1999-01-31  Jim Meyering  <meyering@ascend.com>
50791
50792         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50793
50794 1999-01-30  Jim Meyering  <meyering@ascend.com>
50795
50796         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50797
50798         * m4/jm-mktime.m4: Make this a wrapper around the official
50799         AM_FUNC_MKTIME rather than my private copy, now that the official one
50800         is up to date.
50801         * m4/mktime.m4: Remove file.
50802
50803         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50804         * m4/uptime.m4: Likewise.
50805         * m4/uintmax_t.m4: Likewise.
50806
50807 1999-01-28  Jim Meyering  <meyering@ascend.com>
50808
50809         * m4/jm-macros.m4: Use jm_AFS.
50810         * m4/afs.m4: New file (from fileutils' configure.in).
50811
50812         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50813         * m4/chown.m4: Likewise.
50814         * m4/d-ino.m4: Likewise.
50815         * m4/d-type.m4: Likewise.
50816         * m4/fnmatch.m4: Likewise.
50817         * m4/getgroups.m4: Likewise.
50818         * m4/gettext.m4: Likewise.
50819         * m4/jm-mktime.m4: Likewise.
50820         * m4/jm-winsz2.m4: Likewise.
50821         * m4/lcmessage.m4: Likewise.
50822         * m4/ls-mntd-fs.m4: Likewise.
50823         * m4/malloc.m4: Likewise.
50824         * m4/memcmp.m4: Likewise.
50825         * m4/putenv.m4: Likewise.
50826         * m4/realloc.m4: Likewise.
50827         * m4/st_mtim.m4: Likewise.
50828         * m4/strftime.m4: Likewise.
50829
50830 1999-01-16  Jim Meyering  <meyering@ascend.com>
50831
50832         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50833         (ARGMATCH_DIE_DECL): Define.
50834
50835 1999-01-12  Jim Meyering  <meyering@ascend.com>
50836
50837         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50838         Reported by Lars Hecking.
50839
50840 1999-01-10  Jim Meyering  <meyering@ascend.com>
50841
50842         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50843         gross kludge.
50844         * m4/inttypes_h.m4: Likewise.
50845         * m4/lstat.m4: Likewise.
50846         * m4/malloc.m4: Likewise.
50847         * m4/readdir.m4: Likewise.
50848         * m4/realloc.m4: Likewise.
50849         * m4/st_dm_mode.m4: Likewise.
50850         * m4/stat.m4: Likewise.
50851         * m4/utimbuf.m4: Likewise.
50852         * m4/utimes.m4: Likewise.
50853
50854         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50855         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50856         comments in config.h.in are meaningful.
50857
50858         * m4/jm-macros.m4: Require autoconf-2.13 here.
50859
50860         * m4/regex.m4: By default, don't use the included regex.c on systems
50861         with glibc 2.  Suggestion from Uli Drepper.
50862
50863 1999-01-02  Jim Meyering  <meyering@ascend.com>
50864
50865         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50866
50867 1998-12-18  Jim Meyering  <meyering@ascend.com>
50868
50869         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50870         Based on a suggestion from Lars Hecking.
50871
50872 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50873
50874         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50875
50876 1998-11-16  Jim Meyering  <meyering@ascend.com>
50877
50878         * m4/lfs.m4: Double-quote the `uname...` expression.
50879
50880 1998-11-14  Jim Meyering  <meyering@ascend.com>
50881
50882         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50883         * m4/stat.m4: Likewise.
50884
50885 1998-11-03  Jim Meyering  <meyering@ascend.com>
50886
50887         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50888         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50889
50890 1998-10-18  Jim Meyering  <meyering@ascend.com>
50891
50892         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50893
50894 1998-10-17  Jim Meyering  <meyering@ascend.com>
50895
50896         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50897         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50898         calls for those previously hard-coded headers.  Instead, take a new
50899         parameter.
50900         (jm_CHECK_DECLARATIONS): Reflect interface change.
50901         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50902         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50903
50904         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50905
50906 1998-10-14  Jim Meyering  <meyering@ascend.com>
50907
50908         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50909         instead of "TZ=America/Vancouver".  From Paul Eggert.
50910
50911 1998-10-11  Jim Meyering  <meyering@ascend.com>
50912
50913         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50914         This adds a test for a recently added compatibility fix for mktime.c.
50915         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50916
50917 1998-09-27  Jim Meyering  <meyering@ascend.com>
50918
50919         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50920
50921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50922         ../configure.in, including a change from Gordon Matzigkeit to allow
50923         cross-compiling for the Hurd.
50924
50925         * m4/glibc.m4: New file/macro to test for the GNU C Library
50926         versions 1 and 2.  From Gordon Matzigkeit.
50927         Indent.
50928
50929 1998-09-21  Jim Meyering  <meyering@ascend.com>
50930
50931         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50932
50933 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50934
50935         Port nanosecond-resolution times to UnixWare 2.1.2 and
50936         pedantic Solaris 2.6.
50937
50938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50939         AC_STRUCT_ST_MTIM.
50940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50941         Generate name of ns member, instead of just 1 or undef.
50942         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50943
50944 1998-08-15  Jim Meyering  <meyering@ascend.com>
50945
50946         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50947         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50948         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50949         instead of jm_TYPE_SSIZE_T.
50950
50951 1998-08-12  Jim Meyering  <meyering@ascend.com>
50952
50953         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50954
50955 1998-08-02  Jim Meyering  <meyering@ascend.com>
50956
50957         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50958         in acconfig.h manually.
50959
50960 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50961
50962         * m4/st_mtim.m4: New file.
50963
50964 1998-07-28  Jim Meyering  <meyering@ascend.com>
50965
50966         * m4/utimes.m4: Undef stat.
50967
50968 1998-07-25  Jim Meyering  <meyering@ascend.com>
50969
50970         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50971         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50972
50973 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50974
50975         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50976         uid and gid actually remain unchanged.
50977
50978 1998-07-07  Jim Meyering  <meyering@ascend.com>
50979
50980         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50981
50982 1998-07-04  Jim Meyering  <meyering@ascend.com>
50983
50984         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50985         to prove that this macro can be used in packages without regex.c.
50986
50987 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50988
50989         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50990         is to be used.
50991
50992 1998-07-03  Jim Meyering  <meyering@ascend.com>
50993
50994         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50995
50996         * m4/gettext.m4: New file -- from gettext-0.10.35.
50997         * m4/lcmessage.m4: Likewise.
50998         * m4/progtest.m4: Likewise.
50999
51000         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
51001         * m4/jm-macros.m4: Require the new macro.
51002
51003 1998-06-29  Jim Meyering  <meyering@ascend.com>
51004
51005         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
51006         for the definition of NGROUPS (used in a system header included
51007         by sys/mount.h).
51008
51009 1998-06-28  Jim Meyering  <meyering@ascend.com>
51010
51011         * m4/ls-mntd-fs.m4: New file.
51012         * m4/fstypename.m4: New file.
51013
51014         * m4/jm-macros.m4: Require the new macro.
51015         * m4/jm-glibc-io.m4: New file.
51016
51017 1998-05-19  Jim Meyering  <meyering@ascend.com>
51018
51019         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
51020         * m4/lchown.m4: New file.
51021
51022         * m4/Makefile.am.in: New file.
51023         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
51024
51025 1998-05-14  Jim Meyering  <meyering@ascend.com>
51026
51027         * m4/Makefile.am (EXTRA_DIST): Add them.
51028         * m4/jm-macros.m4: New file.
51029         * m4/utimbuf.m4: New file.
51030
51031 1998-05-12  Jim Meyering  <meyering@ascend.com>
51032
51033         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
51034
51035 1998-05-11  Jim Meyering  <meyering@ascend.com>
51036
51037         * m4/isc-posix.m4: New file.
51038
51039 1998-05-10  Jim Meyering  <meyering@ascend.com>
51040
51041         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
51042
51043 1998-05-09  Jim Meyering  <meyering@ascend.com>
51044
51045         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
51046         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
51047         with automake.
51048
51049         * m4/ssize_t.m4: New file.
51050         * m4/mktime.m4: Remove file -- the new automake has this now.
51051
51052 1998-04-26  Jim Meyering  <meyering@ascend.com>
51053
51054         * m4/assert.m4: New file.
51055         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
51056
51057 1998-04-05  Jim Meyering  <meyering@ascend.com>
51058
51059         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
51060         (jm_PREREQ): Use it here.
51061
51062 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
51063
51064         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
51065         in acconfig.h.
51066
51067 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
51068
51069         * m4/prereq.m4: New file.
51070         * m4/error.m4: New file.
51071         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
51072
51073 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
51074
51075         * m4/getline.m4: Don't set am_cv_func_working_getline before the
51076         cache-check for the same variable -- that defeated the purpose of
51077         the test; the test program was never run.  This was a problem only
51078         on systems with losing getline functions -- HP-UX 10.20 is one.
51079         Reported by Bjorn Helgaas.
51080
51081 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
51082
51083         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
51084
51085 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
51086
51087         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
51088
51089         * m4/const.m4: New file.  Use an initializer in this declaration
51090         typedef int charset[2]; const charset x;
51091         Reported by Bob Glickstein.
51092
51093 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
51094
51095         * m4/chown.m4: Fix reversed types on -1 args to chown.
51096         From Kaveh Ghazi.
51097
51098 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
51099
51100         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
51101         Add lseek and memchr.
51102
51103         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
51104         T.E.Dickey <dickey@clark.net> said that some older preprocessors
51105         have a 20-character limit on names.
51106
51107 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
51108
51109         * m4/inttypes_h.m4: New file.
51110         * m4/uintmax_t.m4: New file.
51111         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
51112
51113
51114         -----
51115
51116         Local Variables:
51117         coding: utf-8
51118         End:
51119
51120         Copyright (C) 1997-2009 Free Software Foundation, Inc.
51121
51122         Copying and distribution of this file, with or without
51123         modification, are permitted provided the copyright notice
51124         and this notice are preserved.