New module glob-tests.
[pspp] / ChangeLog
1 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2
3         * modules/glob-tests: New module.
4         * tests/test-glob.c: Add.
5
6 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7
8         * modules/fnmatch-tests: New module.
9         * tests/test-fnmatch.c: Add.
10
11 2009-05-04  Eric Blake  <ebb9@byu.net>
12
13         maint: make the new no-submodule-changes rule VPATH-safe
14         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
15
16 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17             Bruno Haible  <bruno@clisp.org>
18
19         acl: Fix infinite loop on FreeBSD.
20         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21         of return value from acl_get_entry.
22         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23         Likewise.
24
25 2009-05-03  Bruno Haible  <bruno@clisp.org>
26
27         * lib/acl-internal.h (acl_entries): Clarify return value.
28         * lib/acl_entries.c (acl_entries): Likewise.
29
30 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31
32         Bug fix in acl module.
33         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34
35 2009-05-03  Bruno Haible  <bruno@clisp.org>
36
37         Create gperf-generated file in the source dir, not in the build dir.
38         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40         * modules/unicase/locale-language (unicase/locale-languages.h):
41         Likewise.
42         * modules/unicase/special-casing (unicase/special-casing-table.h):
43         Likewise.
44         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47         Reported by Ralf Wildenhues.
48
49 2009-05-03  Bruno Haible  <bruno@clisp.org>
50
51         * modules/fnmatch (Description, configure.ac): Taken from
52         fnmatch-posix.
53         * modules/fnmatch-posix: Turn into a symbolic reference to the
54         'fnmatch' module, and deprecate.
55         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
56
57 2009-05-03  Bruno Haible  <bruno@clisp.org>
58
59         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
60         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
61         Reported by Ralf Wildenhues.
62
63 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64
65         * m4/fnmatch.m4: Fix fnmatch re-define.
66
67 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68
69         priv-set: new module and tests; adapt write-any-file
70         * lib/priv-set.c: New file.
71         * lib/priv-set.h: New file.
72         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
73         * lib/write-any-file.c: Simplify by using priv-set module.
74         * m4/priv-set.m4: New file.
75         * modules/priv-set: New file.
76         * modules/unlinkdir: Add dependency on priv-set module.
77         * modules/write-any-file: Likewise.
78
79         Tests for module 'priv-set'.
80         * modules/priv-set-tests: New file.
81         * tests/test-priv-set.c: New file.
82
83 2009-05-03  Jim Meyering  <meyering@redhat.com>
84             Bruno Haible  <bruno@clisp.org>
85
86         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
87         use the converted UTF-8 variant of the name instead.
88
89 2009-05-03  Jim Meyering  <meyering@redhat.com>
90
91         tests: tighten some getdate tests
92         * tests/test-getdate.c (main): Tighten tests: require equality,
93         not just greater than.  Set TZ envvar to UTC0.
94
95 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
96
97         getdate: correctly interpret "next monday" when run on a Monday
98         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
99         that e.g., "next tues" (when run on a tuesday) results in a date
100         that is one week in the future, and not today's date.
101         I.e., add a week when the wday is the same as the current one.
102         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
103         and earlier by Martin Bernreuther and Jan Minář.
104         * tests/test-getdate.c (main): Check that "next DAY" is always in
105         the future and that "last DAY" is always in the past.
106
107 2009-05-02  Jim Meyering  <meyering@redhat.com>
108
109         build: ensure that a release build fails when a submodule is unclean
110         * top/maint.mk (no-submodule-changes): New rule.
111         (alpha beta major): Depend on it.
112
113 2009-05-02  Bruno Haible  <bruno@clisp.org>
114
115         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
116         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
117         shell variable gl_fnmatch_required to detect which variant is
118         requested.
119         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
120         gl_FUNC_FNMATCH_POSIX.
121         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
122         exclude fnmatch-posix.
123
124 2009-05-02  Bruno Haible  <bruno@clisp.org>
125
126         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
127         * modules/mbsrtowcs (License): Change to LGPLv2+.
128         * modules/strnlen1 (License): Likewise.
129         Reported by Simon Josefsson.
130
131 2009-05-02  Bruno Haible  <bruno@clisp.org>
132
133         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
134         "cross".
135         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
136         gnulib-tool was called with option --source-base=lib.
137
138 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
139
140         Use automake *-local hooks without commands, for extensibility.
141         * modules/localcharset (Makefile.am): Rename install-exec-local
142         rule to install-exec-localcharset, and make it a prerequisite of
143         install-exec-local.  Likewise, rename the uninstall-local rule to
144         uninstall-localcharset, and make it a prerequisite of the former.
145
146 2009-05-01  Bruno Haible  <bruno@clisp.org>
147
148         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
149         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
150         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
152         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
153         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
154         m4/locale-zh.m4, m4/codeset.m4.
155
156         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
157         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
158         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
159         m4/locale-zh.m4.
160
161         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
162         REPLACE_WCRTOMB if mbstate_t must be replaced.
163         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
164         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
165
166 2009-05-01  Bruno Haible  <bruno@clisp.org>
167
168         Avoid compiler warnings when redefining macros defined by <libintl.h>.
169         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
170         dngettext, dcngettext, textdomain, bindtextdomain,
171         bind_textdomain_codeset): Undefine before redefining.
172
173 2009-04-30  Bruno Haible  <bruno@clisp.org>
174
175         Fix bug introduced on 2009-04-25.
176         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
177         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
178         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
179         is defined.
180         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
181         is defined.
182         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
183         is defined.
184         Reported by Elbert_Pol <elbert.pol@gmail.com>.
185
186 2009-04-28  Bruno Haible  <bruno@clisp.org>
187
188         Comment tweaks.
189         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
190         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
191         * lib/unicase.h (u*_casexfrm): Likewise.
192         Reported by Paolo Bonzini.
193
194 2009-04-28  Bruno Haible  <bruno@clisp.org>
195
196         Fix a compilation error.
197         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
198         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
199         Reported by Jim Meyering.
200
201 2009-04-27  Bruno Haible  <bruno@clisp.org>
202
203         New module 'libunistring'.
204         * modules/libunistring: New file.
205         * m4/libunistring.m4: New file.
206         * MODULES.html.sh (Unicode string functions): Add it.
207
208 2009-04-27  Eric Blake  <ebb9@byu.net>
209
210         maint.mk: allow package-specific header to provide <config.h>
211         * top/maint.mk (sc_require_config_h): New variable.
212         (sc_require_config_h, sc_require_config_h_first): Use it.
213
214 2009-04-27  Simon Josefsson  <simon@josefsson.org>
215
216         * top/maint.mk (sc_avoid_if_before_free): Except
217         useless-if-before-free script.
218
219 2009-04-27  Eric Blake  <ebb9@byu.net>
220
221         maintainer-makefile: depend on all required helper scripts
222         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
223         useless-if-before-free.
224         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
225         version, rather than assuming gnulib checkout is available.
226         Reported by Simen Josefsson.
227
228 2009-04-26  Bruno Haible  <bruno@clisp.org>
229
230         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
232         "../" or "..".
233
234 2009-04-26  Bruno Haible  <bruno@clisp.org>
235
236         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
237         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
238         AC_LIB_HAVE_LINKFLAGS.
239
240 2009-04-26  Bruno Haible  <bruno@clisp.org>
241
242         Simplify calling convention of u*_conv_from_encoding.
243         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
244         u32_conv_from_encoding): Expect a resultbuf argument and return the
245         result directly as a pointer.
246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
247         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
248         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
249         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
250         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
251         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
252         Update.
253         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
254         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
255         * lib/vasnprintf.c (VASNPRINTF): Update.
256         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
257         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
258         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
259         * NEWS: Mention the change.
260
261 2009-04-26  Bruno Haible  <bruno@clisp.org>
262
263         Simplify calling convention of u*_conv_to_encoding.
264         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
265         u32_conv_to_encoding): Expect a resultbuf argument and return the
266         result directly as a pointer.
267         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
268         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
269         freeing scaled_offsets if mem_iconveha failed.
270         * lib/unicase/u-casexfrm.h (FUNC): Update.
271         * lib/uninorm/u-normxfrm.h (FUNC): Update.
272         * lib/vasnprintf.c (VASNPRINTF): Update.
273         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
274         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
275         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
276         * NEWS: Mention the change.
277
278 2009-04-26  Bruno Haible  <bruno@clisp.org>
279
280         Avoid test failures on AIX and OSF/1.
281         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
282         malloc(0).
283         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
284         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
285         Likewise.
286         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
287         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
288         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
289         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
290         * doc/posix-functions/malloc.texi: Document the portability problem
291         related to malloc(0).
292
293 2009-04-26  Bruno Haible  <bruno@clisp.org>
294
295         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
296         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
297         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
298
299 2009-04-25  Bruno Haible  <bruno@clisp.org>
300
301         Avoid link error when creating a namespace clean library.
302         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
303         as macro with arguments if already defined as an alias.
304         * lib/signbitf.c (gl_signbitf): Don't undefine.
305         * lib/signbitd.c (gl_signbitd): Don't undefine.
306         * lib/signbitl.c (gl_signbitl): Don't undefine.
307
308 2009-04-25  Jim Meyering  <meyering@redhat.com>
309
310         vc-list-files: fix another quoting bug
311         * build-aux/vc-list-files: Avoid sed backslash expansion
312         of pathological directory names.
313
314 2009-04-25  Eric Blake  <ebb9@byu.net>
315
316         vc-list-files: fix shell quoting error
317         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
318         timestamp.
319
320 2009-04-25  Jim Meyering  <meyering@redhat.com>
321
322         vc-list-files: restore lost functionality with subdir argument
323         * build-aux/vc-list-files: When given a non-"." sub-directory
324         argument, substitute the $dir/ prefix back onto each resulting name.
325         Otherwise, coreutils' root_tests check would fail.
326
327 2009-04-24  Eric Blake  <ebb9@byu.net>
328
329         vc-list-files: ignore git symlinks
330         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
331         than ls-files, to ignore git symlinks.
332
333         maint.mk: import improvements from m4
334         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
335         (move_if_change): Delete unused macro.
336         (news-date-check, vc-diff-check): Support VPATH builds.
337         (announcement): Likewise.  Split --bootstrap-tools list...
338         (boostrap-tools): ...into separate list, which can be overridden
339         in cfg.mk.
340         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
341         requiring dependency on useless-if-before-free module.
342         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
343         Support VPATH builds.
344
345 2009-04-24  Jim Meyering  <meyering@redhat.com>
346
347         maint.mk: remove coreutils-specific rules and variables
348         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
349         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
350         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
351
352         maint.mk: remove obsolete rule
353         * top/maint.mk (rel-check): Remove rule.
354         (WGET, WGETFLAGS): Remove now-unused variables.
355
356 2009-04-24  Simon Josefsson  <simon@josefsson.org>
357
358         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
359         consistency.
360
361         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
362         '$(PATH_SEPARATOR)' instead of ':'.
363
364 2009-04-24  Simon Josefsson  <simon@josefsson.org>
365
366         * lib/getopt1.c (main): Use 'const' for static array.
367
368 2009-04-24  Simon Josefsson  <simon@josefsson.org>
369
370         * top/maint.mk: Sync with coreutils.
371         * NEWS: Explain incompatibilities.
372
373 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
374             Bruno Haible  <bruno@clisp.org>
375
376         Fix cross-compilation results.
377         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
378         statement, as third argument of AC_TRY_RUN.
379         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
380         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
381         Likewise.
382         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
383         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
384         Likewise.
385         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
386         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
387         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
388
389 2009-04-20  Bruno Haible  <bruno@clisp.org>
390
391         Avoid test failure on mingw.
392         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
393
394 2009-04-20  Bruno Haible  <bruno@clisp.org>
395
396         Avoid compilation error on mingw.
397         * modules/localename-tests (Depends-on): Add locale.
398
399 2009-04-19  Bruno Haible  <bruno@clisp.org>
400
401         Support for building a shared library on Windows platforms.
402         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
403         (main): Test the presence of UNINORM_NFC here.
404         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
405         (main): Test the presence of UNINORM_NFD here.
406         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
407         (main): Test the presence of UNINORM_NFKC here.
408         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
409         (main): Test the presence of UNINORM_NFKD here.
410
411 2009-04-19  Bruno Haible  <bruno@clisp.org>
412
413         Avoid a compiler warning.
414         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
415         Change type of variable 'sequence'.
416
417 2009-04-19  Bruno Haible  <bruno@clisp.org>
418
419         * modules/configmake (Makefile.am): When the contents of configmake.h
420         does not change, arrange to preserve its modification time.
421
422 2009-04-17  Simon Josefsson  <simon@josefsson.org>
423
424         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
425         gettext domain.
426
427 2009-04-16  Jim Meyering  <meyering@redhat.com>
428
429         useless-if-before-free: improve conversion code
430         * build-aux/useless-if-before-free: Adjust code-in-comment to match
431         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
432
433 2009-04-14  Bruno Haible  <bruno@clisp.org>
434
435         * modules/fcntl (Depends-on): Add extensions.
436         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
437
438 2009-04-12  Ben Pfaff  <blp@gnu.org>
439
440         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
441         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
442
443 2009-03-20  Ben Pfaff  <blp@gnu.org>
444
445         Make rename replace existing destinations on Windows.
446         * m4/rename.m4: Add test for Mingw.
447         * lib/rename.c: Add rename replacement that uses MoveFileEx with
448         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
449         * doc/posix-functions/rename.texi: Document.
450
451 2009-04-10  Bruno Haible  <bruno@clisp.org>
452
453         New include file "iconveh.h".
454         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
455         * lib/striconveh.h: Include it.
456         (enum iconv_ilseq_handler): Remove definition.
457         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
458         striconveh.h.
459         * lib/striconveha.c: Include striconveh.h.
460         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
461         * modules/striconveh (Files): Add lib/iconveh.h.
462         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
463         lib/striconveh.h.
464
465 2009-04-10  Bruno Haible  <bruno@clisp.org>
466
467         * lib/uniconv.h: Update comment.
468
469 2009-04-10  Bruno Haible  <bruno@clisp.org>
470
471         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
472         always.
473         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
474         * lib/unistr/u16-mbtouc-aux.c: Likewise.
475         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
476         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
477         "unistring-notinline.h", so that the function gets defined always.
478         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
479         * lib/unistr/u8-uctomb.c: Likewise.
480         * lib/unistr/u16-mbtouc.c: Likewise.
481         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
482         * lib/unistr/u16-uctomb.c: Likewise.
483         * lib/unistr/u32-mbtouc.c: Likewise.
484         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
485         * lib/unistr/u32-uctomb.c: Likewise.
486
487 2009-04-10  Bruno Haible  <bruno@clisp.org>
488
489         Mark 'utime' obsolete.
490         * modules/utime (Status, Notice): New sections.
491         Suggested by Jim Meyering.
492
493         Fix cross-compile guess for utime test.
494         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
495         autoconf.
496         * doc/posix-functions/utime.texi: Give more precisions.
497         Reported by Jan <ipif@ymail.com>.
498
499 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
500
501         filevercmp: correct today's change
502         * lib/filevercmp.c: Also handle coreutils' test inputs.
503         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
504
505         Fix regression in 'filevercmp' module. Thanks Sven Joachim
506         for reporting it.
507         * lib/filevercmp.c: Special handle for "", "." and "..".
508         * tests/test-filevercmp.c: Enlarge the set suite.
509
510 2009-04-07  Jim Meyering  <meyering@redhat.com>
511
512         useless-if-before-free: show how to remove braced useless free, too
513         * build-aux/useless-if-before-free: still only in a comment, though.
514
515 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
516
517         maint.mk: import changes to syntax-check macros from coreutils
518         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
519         Use them in the relevant macros.
520
521 2009-04-06  Bruno Haible  <bruno@clisp.org>
522
523         Fix unportable use of bit-fields.
524         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
525         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
526         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
527
528 2009-04-06  Bruno Haible  <bruno@clisp.org>
529
530         Avoid test failures on AIX and OSF/1.
531         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
532         that malloc(0) = NULL.
533         * tests/unicase/test-u8-tolower.c (check): Likewise.
534         * tests/unicase/test-u8-totitle.c (check): Likewise.
535         * tests/unicase/test-u8-toupper.c (check): Likewise.
536         * tests/unicase/test-u16-casefold.c (check): Likewise.
537         * tests/unicase/test-u16-tolower.c (check): Likewise.
538         * tests/unicase/test-u16-totitle.c (check): Likewise.
539         * tests/unicase/test-u16-toupper.c (check): Likewise.
540         * tests/unicase/test-u32-casefold.c (check): Likewise.
541         * tests/unicase/test-u32-tolower.c (check): Likewise.
542         * tests/unicase/test-u32-totitle.c (check): Likewise.
543         * tests/unicase/test-u32-toupper.c (check): Likewise.
544         * tests/uninorm/test-u8-nfc.c (check): Likewise.
545         * tests/uninorm/test-u8-nfd.c (check): Likewise.
546         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
547         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
548         * tests/uninorm/test-u16-nfc.c (check): Likewise.
549         * tests/uninorm/test-u16-nfd.c (check): Likewise.
550         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
551         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
552         * tests/uninorm/test-u32-nfc.c (check): Likewise.
553         * tests/uninorm/test-u32-nfd.c (check): Likewise.
554         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
555         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
556
557 2009-04-05  Bruno Haible  <bruno@clisp.org>
558
559         Work around an autoconf limitation.
560         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
561         comment line if it would be longer than 3 KB.
562
563 2009-04-05  Bruno Haible  <bruno@clisp.org>
564
565         Avoid test failure with libiconv-1.13.
566         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
567         of the expected test results.
568
569 2009-04-05  Bruno Haible  <bruno@clisp.org>
570
571         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
572         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
573         that it should be installed.
574
575 2009-04-05  Bruno Haible  <bruno@clisp.org>
576
577         * gnulib-tool: New option --copy-file.
578         (func_usage): Document it.
579         (func_dest_tmpfilename): Moved out of func_import.
580         (func_add_file, func_update_file): New functions, extracted from
581         func_import.
582         (func_import): Update.
583
584 2009-04-05  Karl Berry  <karl@gnu.org>
585
586         * README: prominently mention gnulib-tool.
587         Rearrange sections so getting the code is near the top.
588
589 2009-04-05  Bruno Haible  <bruno@clisp.org>
590
591         * lib/unicase.h: Mention u*_cmp2.
592         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
593         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
594         * lib/unicase/ulc-casecmp.c: Likewise.
595         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
596         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
597         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
598         unistr/u8-cmp.
599         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
600         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
601         unistr/u16-cmp.
602         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
603         unistr/u32-cmp.
604
605         * lib/uninorm.h: Mention u*_cmp2.
606         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
607         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
608         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
609         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
610         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
611         unistr/u8-cmp.
612         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
613         unistr/u16-cmp.
614         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
615         unistr/u32-cmp.
616
617         New module 'unistr/u32-cmp2'.
618         * lib/unistr/u32-cmp2.c: New file.
619         * modules/unistr/u32-cmp2: New file.
620
621         New module 'unistr/u16-cmp2'.
622         * lib/unistr/u16-cmp2.c: New file.
623         * modules/unistr/u16-cmp2: New file.
624
625         New module 'unistr/u8-cmp2'.
626         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
627         * lib/unistr/u8-cmp2.c: New file.
628         * lib/unistr/u-cmp2.h: New file.
629         * modules/unistr/u8-cmp2: New file.
630
631 2009-04-05  Bruno Haible  <bruno@clisp.org>
632
633         * lib/unictype.h (uc_property_is_valid): New macro.
634         * tests/unictype/test-pr_byname.c (main): Use it.
635
636         * lib/unistr.h: Doc fixes.
637         * lib/uniconv.h: Doc fixes.
638         * lib/unictype.h: Doc fixes.
639
640 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
641
642         Port coreutils 7.2 to Solaris 8.
643
644         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
645         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
646         for Solaris 8.  This is a bit of a hack, as it means it's the
647         caller's responsibility to add -lnsl if needed, but most likely it
648         won't be needed since only getaddrinfo uses this and getaddrinfo
649         isn't needed on Solaris 8.
650
651         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
652         problem to Solaris 8 encountered with coreutils 7.2, which
653         resulted in a message "fnmatch.c:292: warning: passing argument 4
654         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
655         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
656
657 2009-04-03  Simon Josefsson  <simon@josefsson.org>
658
659         * m4/ld-version-script.m4: Add FIXME comment.
660
661 2009-04-02  Simon Josefsson  <simon@josefsson.org>
662
663         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
664         SOVERSION variable.
665
666 2009-04-02  Bruno Haible  <bruno@clisp.org>
667
668         * Makefile (info, html, dvi, pdf): Combine the rules.
669         Suggested by Jim Meyering.
670
671 2009-04-01  Bruno Haible  <bruno@clisp.org>
672
673         * Makefile (info, html, dvi, pdf): New targets.
674         Reported by Reuben Thomas <rrt@sc3d.org>.
675
676 2009-04-01  Bruno Haible  <bruno@clisp.org>
677
678         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
679         can be put into PATH.
680         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
681
682 2009-04-01  Bruno Haible  <bruno@clisp.org>
683
684         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
685
686 2009-04-01  Bruno Haible  <bruno@clisp.org>
687
688         Rename module 'visibility'.
689         * modules/lib-symbol-visibility: Renamed from modules/visibility.
690         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
691         * doc/gnulib.texi: Update.
692         * MODULES.html.sh (Misc): Update.
693         * NEWS: Mention the change.
694
695 2009-04-01  Simon Josefsson  <simon@josefsson.org>
696
697         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
698         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
699         Eric Blake <ebb9@byu.net> for review.
700         * MODULES.html.sh: Add lib-msvc-compat.
701         * doc/gnulib.texi: Link to new section.
702         * m4/ld-output-def.m4: New file.
703         * doc/ld-output-def.texi: New file.
704
705 2009-04-01  Simon Josefsson  <simon@josefsson.org>
706
707         Rename ld-version-script to lib-symbol-versions.  Suggested by
708         Bruno Haible <bruno@clisp.org>.
709         * modules/ld-version-script: Renamed to lib-symbol-versions.
710         * doc/ld-version-script.texi: Fix module name.
711         * MODULES.html.sh: Add lib-symbol-versions.
712
713 2009-03-31  Simon Josefsson  <simon@josefsson.org>
714
715         * modules/u64-tests: New file.
716         * tests/test-u64.c: New file.
717
718 2009-03-04  Simon Josefsson  <simon@josefsson.org>
719
720         * MODULES.html.sh: Mention u64.
721         * modules/u64: New module.
722         * modules/crypto/sha512: Depend on u64 module instead of providing
723         u64.h.
724
725 2009-03-27  Eric Blake  <ebb9@byu.net>
726
727         test-strerror: make debugging EAI_SYSTEM easier
728         * modules/getaddrinfo-tests (Depends-on): Add strerror.
729         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
730         failure was EAI_SYSTEM.
731
732 2009-03-25  Bruno Haible  <bruno@clisp.org>
733
734         Fix a problem with --enable-relocatable on Solaris 7.
735         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
736         since 2008-02-24.
737
738 2009-03-25  Eric Blake  <ebb9@byu.net>
739
740         test-sockets: avoid gcc warning
741         * tests/test-sockets.c (main): Silence compiler warning.
742
743 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
744
745         New modules nproc, pthread, contributed by Glen Lenker.
746
747         * MODULES.html.sh: Add pthread, nproc.
748         * lib/nproc.c: New file.
749         * lib/nproc.h: New file.
750         * lib/pthread.in.h: New file.
751         * m4/pthread.m4: New file.
752         * modules/nproc: New file.
753         * modules/pthread: New file.
754
755 2009-03-24  Simon Josefsson  <simon@josefsson.org>
756
757         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
758         New variable.
759
760 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
761
762         filevercmp: handle simple~ and numbered.~3~ backup suffixes
763         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
764         * tests/test-filevercmp.c: Add tests for backup suffixes.
765
766 2009-03-24  Simon Josefsson  <simon@josefsson.org>
767
768         * modules/stdlib (Depends-on): Add stdint, needed when defining
769         struct random_data on, for example, HP-UX 10.20.  Reported by
770         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
771
772 2009-03-24  Simon Josefsson  <simon@josefsson.org>
773
774         * lib/readline.c (readline): Call fflush on stdout after printing
775         prompt.
776
777 2009-03-20  Bruno Haible  <bruno@clisp.org>
778
779         Remove dependency from 'close' module to -lws2_32 on native Windows.
780         * lib/close-hook.h: New file.
781         * lib/close-hook.c: New file.
782         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
783         w32sock.h.
784         (_gl_close_fd_maybe_socket): Remove function.
785         (rpl_close): Invoke execute_all_close_hooks instead of
786         _gl_close_fd_maybe_socket.
787         * lib/sockets.c: Include close-hook.h, w32sock.h.
788         (close_fd_maybe_socket): New function, essentially from lib/close.c.
789         (close_sockets_hook): New variable.
790         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
791         (gl_sockets_cleanup): Unregister it.
792         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
793         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
794         * modules/close-hook: New file.
795         * modules/close (Files): Remove lib/w32sock.h.
796         (Depends-on): Add close-hook.
797         (Link): Remove section.
798         * modules/sockets (Files): Add lib/w32sock.h.
799         (Depends-on): Add close-hook.
800         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
801         invocation.
802         * NEWS: Mention that LIB_CLOSE is gone.
803
804 2009-03-23  Eric Blake  <ebb9@byu.net>
805
806         signal-tests: test previous patch
807         * tests/test-signal.c: New file.
808         * modules/signal-tests: Likewise.
809
810         signal.h: always support 'volatile sig_atomic_t'
811         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
812         (gl_SIGNAL_H_DEFAULTS): Add a default.
813         * modules/signal (Makefile.am): Substitute if needed.
814         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
815         users can blindly add volatile.
816         * doc/posix-headers/signal.texi (signal.h): Document it.
817         Reported by Matthew Woehlke.
818
819 2009-03-23  Jim Meyering  <meyering@redhat.com>
820
821         pathmax: PATH_MAX: use pathconf only when available
822         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
823         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
824         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
825         This avoids a link failure in a PSP cross-compilation environment
826         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
827
828         * lib/vasnprintf.c (divide): Fix typo in comment.
829
830 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
831
832         * gnulib-tool (func_filter_filelist): Fix comment.
833
834 2009-03-20  Bruno Haible  <bruno@clisp.org>
835
836         Make sockets.h self-contained.
837         * lib/sockets.c: Include sockets.h first.
838         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
839
840 2009-03-19  Eric Blake  <ebb9@byu.net>
841
842         doc: mention more functions added in cygwin 1.7.0
843         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
844         addition.
845         * doc/posix-functions/log2f.texi: Likewise.
846
847 2009-03-19  Jim Meyering  <meyering@redhat.com>
848
849         fsusage: avoid syntax error due to statement-before-declaration
850         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
851         after all declarations.  Reported by Matthew Woehlke in
852         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
853
854 2009-03-18  Eric Blake  <ebb9@byu.net>
855
856         build-aux/compile: sync from automake
857         * build-aux/compile: New file, from automake.
858         * config/srclist.txt: Mention build-aux/compile.
859
860 2009-03-17  Bruno Haible  <bruno@clisp.org>
861
862         * lib/git-merge-changelog.c: Fix typo in comment.
863         Reported by Reuben Thomas <rrt@sc3d.org>.
864
865 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
866
867         * m4/regex.m4: update and improve help for
868         --without-included-regex.
869
870 2009-03-17  Simon Josefsson  <simon@josefsson.org>
871
872         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
873         failure on missing include files.
874
875 2009-03-17  Eric Blake  <ebb9@byu.net>
876
877         doc: mention more functions added in cygwin 1.7.0
878         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
879         addition.
880         * doc/posix-functions/fwscanf.texi: Likewise.
881         * doc/posix-functions/swprintf.texi: Likewise.
882         * doc/posix-functions/swscanf.texi: Likewise.
883         * doc/posix-functions/vfwprintf.texi: Likewise.
884         * doc/posix-functions/vfwscanf.texi: Likewise.
885         * doc/posix-functions/vswprintf.texi: Likewise.
886         * doc/posix-functions/vswscanf.texi: Likewise.
887         * doc/posix-functions/vwprintf.texi: Likewise.
888         * doc/posix-functions/vwscanf.texi: Likewise.
889         * doc/posix-functions/wcscasecmp.texi: Likewise.
890         * doc/posix-functions/wcsdup.texi: Likewise.
891         * doc/posix-functions/wcsftime.texi: Likewise.
892         * doc/posix-functions/wcsncasecmp.texi: Likewise.
893         * doc/posix-functions/wprintf.texi: Likewise.
894         * doc/posix-functions/wscanf.texi: Likewise.
895         * doc/glibc-functions/gethostbyname2.texi: Likewise.
896
897 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
898
899         maint.mk: really add $(AM_MAKEFLAGS)
900         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
901         was inadvertently omitted in the last commit.
902         Spotted by Bruno Haible.
903
904         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
905         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
906         $(AM_MAKEFLAGS)' rather than plain `make'.
907
908         gnulib-tool: execute $MAKE not make
909         * gnulib-tool: Default $MAKE to 'make'.
910         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
911         than make.  Initialize $MAKE in the do-autobuild script.
912
913         gnulib-tool: use $MAKE not make in generated files
914         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
915         make, in generated files.  Initialize $MAKE in the do-autobuild
916         script.
917
918         * top/GNUmakefile (_have-git-version-gen): Fix typo.
919
920         GNUmakefile: disable parallelism only for multiple, recursive targets
921         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
922         additions in the Makefile.
923         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
924         by Automake.
925         (.NOTPARALLEL): Only disable parallel builds if multiple targets
926         are listed on the command line and at least one of them is
927         listed in $(ALL_RECURSIVE_TARGETS).
928
929 2009-03-14  Bruno Haible  <bruno@clisp.org>
930
931         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
932         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
933         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
934         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
935         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
936         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
937         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
938         unistr/u8-uctomb.
939         * modules/unistr/u8-strchr (Depends-on): Likewise.
940         * modules/unistr/u8-strrchr (Depends-on): Likewise.
941         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
942         unistr/u16-uctomb.
943         * modules/unistr/u16-strchr (Depends-on): Likewise.
944         * modules/unistr/u16-strrchr (Depends-on): Likewise.
945
946 2009-03-12  Bruno Haible  <bruno@clisp.org>
947
948         Work around select() bug on Interix 3.5.
949         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
950         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
951         * m4/select.m4: New file.
952         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
953         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
954         * modules/select (Files): Add m4/select.m4.
955         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
956         * modules/nanosleep (Depends-on): Add select.
957         * modules/poll (Depends-on): Likewise.
958         * doc/posix-functions/select.texi: Mention the Interix bug.
959         Reported by Markus Duft <mduft@gentoo.org>.
960
961         * lib/select.c: Renamed from lib/winsock-select.c.
962         * modules/select (Files): Add lib/select.c, remove
963         lib/winsock-select.c.
964         (configure.ac): Update.
965
966 2009-03-12  Jim Meyering  <meyering@redhat.com>
967
968         avoid gcc warnings about unused macro definitions
969         * lib/readtokens.c (STREQ): Remove unused definition.
970         * lib/xmalloc.c (SIZE_MAX): Likewise.
971         * lib/openat-die.c (N_): Likewise.
972         * lib/mountlist.c (SIZE_MAX): Remove definition.
973         Instead, include <stdint.h>.
974         * lib/readutmp.c: Likewise.
975         * modules/readutmp (Depends-on): Add stdint.
976         * modules/mountlist (Depends-on): Add stdint.
977         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
978
979 2009-03-10  Bruno Haible  <bruno@clisp.org>
980
981         Tests for module 'mbmemcasecoll'.
982         * modules/mbmemcasecoll-tests: New file.
983         * tests/test-mbmemcasecoll1.sh: New file.
984         * tests/test-mbmemcasecoll2.sh: New file.
985         * tests/test-mbmemcasecoll3.sh: New file.
986         * tests/test-mbmemcasecoll.c: New file.
987
988         New module 'mbmemcasecoll'.
989         * lib/mbmemcasecoll.h: New file.
990         * lib/mbmemcasecoll.c: New file.
991         * modules/mbmemcasecoll: New file.
992
993         * tests/test-mbmemcasecmp.h: New file, extracted from
994         tests/test-mbmemcasecmp.c.
995         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
996         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
997         (main): Update.
998         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
999
1000 2009-03-09  Bruno Haible  <bruno@clisp.org>
1001
1002         Tests for module 'mbmemcasecmp'.
1003         * modules/mbmemcasecmp-tests: New file.
1004         * tests/test-mbmemcasecmp1.sh: New file.
1005         * tests/test-mbmemcasecmp2.sh: New file.
1006         * tests/test-mbmemcasecmp3.sh: New file.
1007         * tests/test-mbmemcasecmp.c: New file.
1008
1009         New module 'mbmemcasecmp'.
1010         * lib/mbmemcasecmp.h: New file.
1011         * lib/mbmemcasecmp.c: New file.
1012         * modules/mbmemcasecmp: New file.
1013
1014 2009-03-09  Bruno Haible  <bruno@clisp.org>
1015
1016         Tests for module 'unicase/ulc-casecoll'.
1017         * modules/unicase/ulc-casecoll-tests: New file.
1018         * tests/unicase/test-ulc-casecoll1.sh: New file.
1019         * tests/unicase/test-ulc-casecoll2.sh: New file.
1020         * tests/unicase/test-ulc-casecoll.c: New file.
1021
1022         New module 'unicase/ulc-casecoll'.
1023         * lib/unicase.h (ulc_casecoll): New declaration.
1024         * lib/unicase/ulc-casecoll.c: New file.
1025         * modules/unicase/ulc-casecoll: New file.
1026
1027         New module 'unicase/ulc-casexfrm'.
1028         * lib/unicase.h (ulc_casexfrm): New declaration.
1029         * lib/unicase/ulc-casexfrm.c: New file.
1030         * modules/unicase/ulc-casexfrm: New file.
1031
1032 2009-03-09  Bruno Haible  <bruno@clisp.org>
1033
1034         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
1035         invocations.
1036
1037         * m4/mbscasecmp.m4: Remove file.
1038         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
1039         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
1040
1041         * m4/mbscasestr.m4: Remove file.
1042         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
1043         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
1044
1045         * m4/mbschr.m4: Remove file.
1046         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
1047         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
1048
1049         * m4/mbscspn.m4: Remove file.
1050         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
1051         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
1052
1053         * m4/mbslen.m4: Remove file.
1054         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
1055         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
1056
1057         * m4/mbsncasecmp.m4: Remove file.
1058         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
1059         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
1060
1061         * m4/mbsnlen.m4: Remove file.
1062         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
1063         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
1064
1065         * m4/mbspbrk.m4: Remove file.
1066         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
1067         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
1068
1069         * m4/mbspcasecmp.m4: Remove file.
1070         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
1071         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
1072
1073         * m4/mbsrchr.m4: Remove file.
1074         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
1075         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
1076
1077         * m4/mbssep.m4: Remove file.
1078         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
1079         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
1080
1081         * m4/mbsspn.m4: Remove file.
1082         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
1083         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
1084
1085         * m4/mbsstr.m4: Remove file.
1086         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
1087         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
1088
1089         * m4/mbstok_r.m4: Remove file.
1090         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
1091         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
1092
1093         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
1094
1095         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
1096         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
1097
1098         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
1099
1100 2009-03-08  Bruno Haible  <bruno@clisp.org>
1101
1102         Tests for module 'unicase/ulc-casecmp'.
1103         * modules/unicase/ulc-casecmp-tests: New file.
1104         * tests/unicase/test-ulc-casecmp1.sh: New file.
1105         * tests/unicase/test-ulc-casecmp2.sh: New file.
1106         * tests/unicase/test-ulc-casecmp.c: New file.
1107
1108         New module 'unicase/ulc-casecmp'.
1109         * lib/unicase.h (ulc_casecmp): New declaration.
1110         * lib/unicase/ulc-casecmp.c: New file.
1111         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
1112         'const SRC_UNIT *'.
1113         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
1114         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
1115         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
1116         * modules/unicase/ulc-casecmp: New file.
1117
1118         Tests for module 'unicase/u32-is-cased'.
1119         * modules/unicase/u32-is-cased-tests: New file.
1120         * tests/unicase/test-u32-is-cased.c: New file.
1121
1122         Tests for module 'unicase/u16-is-cased'.
1123         * modules/unicase/u16-is-cased-tests: New file.
1124         * tests/unicase/test-u16-is-cased.c: New file.
1125
1126         Tests for module 'unicase/u8-is-cased'.
1127         * modules/unicase/u8-is-cased-tests: New file.
1128         * tests/unicase/test-u8-is-cased.c: New file.
1129         * tests/unicase/test-is-cased.h: New file.
1130
1131         New module 'unicase/u32-is-cased'.
1132         * lib/unicase/u32-is-cased.c: New file.
1133         * modules/unicase/u32-is-cased: New file.
1134
1135         New module 'unicase/u16-is-cased'.
1136         * lib/unicase/u16-is-cased.c: New file.
1137         * modules/unicase/u16-is-cased: New file.
1138
1139         New module 'unicase/u8-is-cased'.
1140         * lib/unicase/u8-is-cased.c: New file.
1141         * lib/unicase/u-is-cased.h: New file.
1142         * modules/unicase/u8-is-cased: New file.
1143
1144         Tests for module 'unicase/u32-is-casefolded'.
1145         * modules/unicase/u32-is-casefolded-tests: New file.
1146         * tests/unicase/test-u32-is-casefolded.c: New file.
1147
1148         Tests for module 'unicase/u16-is-casefolded'.
1149         * modules/unicase/u16-is-casefolded-tests: New file.
1150         * tests/unicase/test-u16-is-casefolded.c: New file.
1151
1152         Tests for module 'unicase/u8-is-casefolded'.
1153         * modules/unicase/u8-is-casefolded-tests: New file.
1154         * tests/unicase/test-u8-is-casefolded.c: New file.
1155         * tests/unicase/test-is-casefolded.h: New file.
1156
1157         New module 'unicase/u32-is-casefolded'.
1158         * lib/unicase/u32-is-casefolded.c: New file.
1159         * modules/unicase/u32-is-casefolded: New file.
1160
1161         New module 'unicase/u16-is-casefolded'.
1162         * lib/unicase/u16-is-casefolded.c: New file.
1163         * modules/unicase/u16-is-casefolded: New file.
1164
1165         New module 'unicase/u8-is-casefolded'.
1166         * lib/unicase/u8-is-casefolded.c: New file.
1167         * modules/unicase/u8-is-casefolded: New file.
1168
1169         Tests for module 'unicase/u32-is-titlecase'.
1170         * modules/unicase/u32-is-titlecase-tests: New file.
1171         * tests/unicase/test-u32-is-titlecase.c: New file.
1172
1173         Tests for module 'unicase/u16-is-titlecase'.
1174         * modules/unicase/u16-is-titlecase-tests: New file.
1175         * tests/unicase/test-u16-is-titlecase.c: New file.
1176
1177         Tests for module 'unicase/u8-is-titlecase'.
1178         * modules/unicase/u8-is-titlecase-tests: New file.
1179         * tests/unicase/test-u8-is-titlecase.c: New file.
1180         * tests/unicase/test-is-titlecase.h: New file.
1181
1182         New module 'unicase/u32-is-titlecase'.
1183         * lib/unicase/u32-is-titlecase.c: New file.
1184         * modules/unicase/u32-is-titlecase: New file.
1185
1186         New module 'unicase/u16-is-titlecase'.
1187         * lib/unicase/u16-is-titlecase.c: New file.
1188         * modules/unicase/u16-is-titlecase: New file.
1189
1190         New module 'unicase/u8-is-titlecase'.
1191         * lib/unicase/u8-is-titlecase.c: New file.
1192         * modules/unicase/u8-is-titlecase: New file.
1193
1194         Tests for module 'unicase/u32-is-lowercase'.
1195         * modules/unicase/u32-is-lowercase-tests: New file.
1196         * tests/unicase/test-u32-is-lowercase.c: New file.
1197
1198         Tests for module 'unicase/u16-is-lowercase'.
1199         * modules/unicase/u16-is-lowercase-tests: New file.
1200         * tests/unicase/test-u16-is-lowercase.c: New file.
1201
1202         Tests for module 'unicase/u8-is-lowercase'.
1203         * modules/unicase/u8-is-lowercase-tests: New file.
1204         * tests/unicase/test-u8-is-lowercase.c: New file.
1205         * tests/unicase/test-is-lowercase.h: New file.
1206
1207         New module 'unicase/u32-is-lowercase'.
1208         * lib/unicase/u32-is-lowercase.c: New file.
1209         * modules/unicase/u32-is-lowercase: New file.
1210
1211         New module 'unicase/u16-is-lowercase'.
1212         * lib/unicase/u16-is-lowercase.c: New file.
1213         * modules/unicase/u16-is-lowercase: New file.
1214
1215         New module 'unicase/u8-is-lowercase'.
1216         * lib/unicase/u8-is-lowercase.c: New file.
1217         * modules/unicase/u8-is-lowercase: New file.
1218
1219         Tests for module 'unicase/u32-is-uppercase'.
1220         * modules/unicase/u32-is-uppercase-tests: New file.
1221         * tests/unicase/test-u32-is-uppercase.c: New file.
1222
1223         Tests for module 'unicase/u16-is-uppercase'.
1224         * modules/unicase/u16-is-uppercase-tests: New file.
1225         * tests/unicase/test-u16-is-uppercase.c: New file.
1226
1227         Tests for module 'unicase/u8-is-uppercase'.
1228         * modules/unicase/u8-is-uppercase-tests: New file.
1229         * tests/unicase/test-u8-is-uppercase.c: New file.
1230         * tests/unicase/test-is-uppercase.h: New file.
1231
1232         New module 'unicase/u32-is-uppercase'.
1233         * lib/unicase/u32-is-uppercase.c: New file.
1234         * modules/unicase/u32-is-uppercase: New file.
1235
1236         New module 'unicase/u16-is-uppercase'.
1237         * lib/unicase/u16-is-uppercase.c: New file.
1238         * modules/unicase/u16-is-uppercase: New file.
1239
1240         New module 'unicase/u8-is-uppercase'.
1241         * lib/unicase/u8-is-uppercase.c: New file.
1242         * modules/unicase/u8-is-uppercase: New file.
1243
1244         New module 'unicase/u32-is-invariant'.
1245         * lib/unicase/u32-is-invariant.c: New file.
1246         * modules/unicase/u32-is-invariant: New file.
1247
1248         New module 'unicase/u16-is-invariant'.
1249         * lib/unicase/u16-is-invariant.c: New file.
1250         * modules/unicase/u16-is-invariant: New file.
1251
1252         New module 'unicase/u8-is-invariant'.
1253         * lib/unicase/u8-is-invariant.c: New file.
1254         * lib/unicase/invariant.h: New file.
1255         * lib/unicase/u-is-invariant.h: New file.
1256         * modules/unicase/u8-is-invariant: New file.
1257
1258         Tests for module 'unicase/u32-casecoll'.
1259         * modules/unicase/u32-casecoll-tests: New file.
1260         * tests/unicase/test-u32-casecoll.c: New file.
1261
1262         Tests for module 'unicase/u16-casecoll'.
1263         * modules/unicase/u16-casecoll-tests: New file.
1264         * tests/unicase/test-u16-casecoll.c: New file.
1265
1266         Tests for module 'unicase/u8-casecoll'.
1267         * modules/unicase/u8-casecoll-tests: New file.
1268         * tests/unicase/test-u8-casecoll.c: New file.
1269
1270         New module 'unicase/u32-casecoll'.
1271         * lib/unicase/u32-casecoll.c: New file.
1272         * modules/unicase/u32-casecoll: New file.
1273
1274         New module 'unicase/u16-casecoll'.
1275         * lib/unicase/u16-casecoll.c: New file.
1276         * modules/unicase/u16-casecoll: New file.
1277
1278         New module 'unicase/u8-casecoll'.
1279         * lib/unicase/u8-casecoll.c: New file.
1280         * lib/unicase/u-casecoll.h: New file.
1281         * modules/unicase/u8-casecoll: New file.
1282
1283         New module 'unicase/u32-casexfrm'.
1284         * lib/unicase/u32-casexfrm.c: New file.
1285         * modules/unicase/u32-casexfrm: New file.
1286
1287         New module 'unicase/u16-casexfrm'.
1288         * lib/unicase/u16-casexfrm.c: New file.
1289         * modules/unicase/u16-casexfrm: New file.
1290
1291         New module 'unicase/u8-casexfrm'.
1292         * lib/unicase/u8-casexfrm.c: New file.
1293         * lib/unicase/u-casexfrm.h: New file.
1294         * modules/unicase/u8-casexfrm: New file.
1295
1296         Tests for module 'unicase/u32-casecmp'.
1297         * modules/unicase/u32-casecmp-tests: New file.
1298         * tests/unicase/test-u32-casecmp.c: New file.
1299
1300         Tests for module 'unicase/u16-casecmp'.
1301         * modules/unicase/u16-casecmp-tests: New file.
1302         * tests/unicase/test-u16-casecmp.c: New file.
1303
1304         Tests for module 'unicase/u8-casecmp'.
1305         * modules/unicase/u8-casecmp-tests: New file.
1306         * tests/unicase/test-u8-casecmp.c: New file.
1307         * tests/unicase/test-casecmp.h: New file.
1308
1309         New module 'unicase/u32-casecmp'.
1310         * lib/unicase/u32-casecmp.c: New file.
1311         * modules/unicase/u32-casecmp: New file.
1312
1313         New module 'unicase/u16-casecmp'.
1314         * lib/unicase/u16-casecmp.c: New file.
1315         * modules/unicase/u16-casecmp: New file.
1316
1317         New module 'unicase/u8-casecmp'.
1318         * lib/unicase/u8-casecmp.c: New file.
1319         * lib/unicase/u-casecmp.h: New file.
1320         * modules/unicase/u8-casecmp: New file.
1321
1322         Tests for module 'unicase/u32-casefold'.
1323         * modules/unicase/u32-casefold-tests: New file.
1324         * tests/unicase/test-u32-casefold.c: New file.
1325
1326         Tests for module 'unicase/u16-casefold'.
1327         * modules/unicase/u16-casefold-tests: New file.
1328         * tests/unicase/test-u16-casefold.c: New file.
1329
1330         Tests for module 'unicase/u8-casefold'.
1331         * modules/unicase/u8-casefold-tests: New file.
1332         * tests/unicase/test-u8-casefold.c: New file.
1333
1334         New module 'unicase/u32-casefold'.
1335         * lib/unicase/u32-casefold.c: New file.
1336         * modules/unicase/u32-casefold: New file.
1337
1338         New module 'unicase/u16-casefold'.
1339         * lib/unicase/u16-casefold.c: New file.
1340         * modules/unicase/u16-casefold: New file.
1341
1342         New module 'unicase/u8-casefold'.
1343         * lib/unicase/u8-casefold.c: New file.
1344         * lib/unicase/u-casefold.h: New file.
1345         * modules/unicase/u8-casefold: New file.
1346
1347         New module 'unicase/tocasefold'.
1348         * lib/unicase/casefold.h: New file.
1349         * lib/unicase/tocasefold.c: New file.
1350         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
1351         * modules/unicase/tocasefold: New file.
1352
1353         Tests for module 'unicase/u32-totitle'.
1354         * modules/unicase/u32-totitle-tests: New file.
1355         * tests/unicase/test-u32-totitle.c: New file.
1356
1357         Tests for module 'unicase/u16-totitle'.
1358         * modules/unicase/u16-totitle-tests: New file.
1359         * tests/unicase/test-u16-totitle.c: New file.
1360
1361         Tests for module 'unicase/u8-totitle'.
1362         * modules/unicase/u8-totitle-tests: New file.
1363         * tests/unicase/test-u8-totitle.c: New file.
1364
1365         New module 'unicase/u32-totitle'.
1366         * lib/unicase/u32-totitle.c: New file.
1367         * modules/unicase/u32-totitle: New file.
1368
1369         New module 'unicase/u16-totitle'.
1370         * lib/unicase/u16-totitle.c: New file.
1371         * modules/unicase/u16-totitle: New file.
1372
1373         New module 'unicase/u8-totitle'.
1374         * lib/unicase/u8-totitle.c: New file.
1375         * lib/unicase/u-totitle.h: New file.
1376         * modules/unicase/u8-totitle: New file.
1377
1378         Tests for module 'unicase/u32-tolower'.
1379         * modules/unicase/u32-tolower-tests: New file.
1380         * tests/unicase/test-u32-tolower.c: New file.
1381
1382         Tests for module 'unicase/u16-tolower'.
1383         * modules/unicase/u16-tolower-tests: New file.
1384         * tests/unicase/test-u16-tolower.c: New file.
1385
1386         Tests for module 'unicase/u8-tolower'.
1387         * modules/unicase/u8-tolower-tests: New file.
1388         * tests/unicase/test-u8-tolower.c: New file.
1389
1390         New module 'unicase/u32-tolower'.
1391         * lib/unicase/u32-tolower.c: New file.
1392         * modules/unicase/u32-tolower: New file.
1393
1394         New module 'unicase/u16-tolower'.
1395         * lib/unicase/u16-tolower.c: New file.
1396         * modules/unicase/u16-tolower: New file.
1397
1398         New module 'unicase/u8-tolower'.
1399         * lib/unicase/u8-tolower.c: New file.
1400         * modules/unicase/u8-tolower: New file.
1401
1402         Tests for module 'unicase/u32-toupper'.
1403         * modules/unicase/u32-toupper-tests: New file.
1404         * tests/unicase/test-u32-toupper.c: New file.
1405
1406         Tests for module 'unicase/u16-toupper'.
1407         * modules/unicase/u16-toupper-tests: New file.
1408         * tests/unicase/test-u16-toupper.c: New file.
1409
1410         Tests for module 'unicase/u8-toupper'.
1411         * modules/unicase/u8-toupper-tests: New file.
1412         * tests/unicase/test-u8-toupper.c: New file.
1413
1414         New module 'unicase/u32-toupper'.
1415         * lib/unicase/u32-toupper.c: New file.
1416         * modules/unicase/u32-toupper: New file.
1417
1418         New module 'unicase/u16-toupper'.
1419         * lib/unicase/u16-toupper.c: New file.
1420         * modules/unicase/u16-toupper: New file.
1421
1422         New module 'unicase/u8-toupper'.
1423         * lib/unicase/u8-toupper.c: New file.
1424         * modules/unicase/u8-toupper: New file.
1425
1426         New module 'unicase/u32-casemap'.
1427         * lib/unicase/u32-casemap.c: New file.
1428         * modules/unicase/u32-casemap: New file.
1429
1430         New module 'unicase/u16-casemap'.
1431         * lib/unicase/u16-casemap.c: New file.
1432         * modules/unicase/u16-casemap: New file.
1433
1434         New module 'unicase/u8-casemap'.
1435         * lib/unicase/unicasemap.h: New file.
1436         * lib/unicase/u8-casemap.c: New file.
1437         * lib/unicase/u-casemap.h: New file.
1438         * modules/unicase/u8-casemap: New file.
1439
1440         New module 'unicase/special-casing'.
1441         * lib/unicase/special-casing.h: New file.
1442         * lib/unicase/special-casing.c: New file.
1443         * lib/unicase/special-casing-table.gperf: New file, generated by
1444         gen-uni-tables.c.
1445         * modules/unicase/special-casing: New file.
1446
1447         Tests for module 'unicase/locale-language'.
1448         * modules/unicase/locale-language-tests: New file.
1449         * tests/unicase/test-locale-language.sh: New file.
1450         * tests/unicase/test-locale-language.c: New file.
1451
1452         New module 'unicase/locale-language'.
1453         * lib/unicase/locale-language.c: New file.
1454         * lib/unicase/locale-languages.gperf: New file.
1455         * modules/unicase/locale-language: New file.
1456
1457         Generate more tables for case conversion and case folding.
1458         * lib/gen-uni-tables.c (SCC_*): New enum items.
1459         (struct special_casing_rule): New type.
1460         (casing_rules, num_casing_rules, allocated_casing_rules): New
1461         variables.
1462         (add_casing_rule, fill_casing_rules): New functions.
1463         (struct casefold_rule): New type.
1464         (casefolding_rules, num_casefolding_rules,
1465         allocated_casefolding_rules): New variables.
1466         (fill_casefolding_rules): New function.
1467         (unicode_casefold): New variable.
1468         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
1469         sort_casing_rules, output_casing_rules): New functions.
1470         (main): Accept to more arguments: SpecialCasing.txt and
1471         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
1472         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
1473         Output mapping for casefolding.
1474
1475         * lib/unicase.h: Include stdbool.h, uninorm.h.
1476         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
1477         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
1478         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
1479         arguments.
1480         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
1481         resultp arguments.
1482         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
1483         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
1484         resultp arguments.
1485         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
1486         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
1487         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
1488         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
1489         declarations.
1490         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
1491
1492 2009-03-08  Bruno Haible  <bruno@clisp.org>
1493
1494         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1495         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
1496         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
1497         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1498
1499 2009-03-07  Bruno Haible  <bruno@clisp.org>
1500
1501         Adjust u*_normcmp, u*_normcoll API.
1502         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1503         u16_normcoll, u32_normcoll): Change failure conventions.
1504         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
1505         errno and return -1.
1506         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1507
1508 2009-03-07  Bruno Haible  <bruno@clisp.org>
1509
1510         Tests for module 'uninorm/u32-normcoll'.
1511         * modules/uninorm/u32-normcoll-tests: New file.
1512         * tests/uninorm/test-u32-normcoll.c: New file.
1513
1514         Tests for module 'uninorm/u16-normcoll'.
1515         * modules/uninorm/u16-normcoll-tests: New file.
1516         * tests/uninorm/test-u16-normcoll.c: New file.
1517
1518         Tests for module 'uninorm/u8-normcoll'.
1519         * modules/uninorm/u8-normcoll-tests: New file.
1520         * tests/uninorm/test-u8-normcoll.c: New file.
1521
1522 2009-03-07  Bruno Haible  <bruno@clisp.org>
1523
1524         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
1525         tests/uninorm/test-u32-normcmp.c.
1526         * tests/uninorm/test-u32-normcmp.c: Include it.
1527         (test_nonascii): New function, extracted from main. Add some more
1528         tests.
1529         (main): Invoke test_ascii and test_nonascii.
1530         * modules/uninorm/u32-normcmp-tests (Files): Add
1531         tests/uninorm/test-u32-normcmp.h.
1532         (Depends-on): Remove uninorm/u32-normcmp.
1533
1534         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
1535         tests/uninorm/test-u16-normcmp.c.
1536         * tests/uninorm/test-u16-normcmp.c: Include it.
1537         (test_nonascii): New function, extracted from main. Add some more
1538         tests.
1539         (main): Invoke test_ascii and test_nonascii.
1540         * modules/uninorm/u16-normcmp-tests (Files): Add
1541         tests/uninorm/test-u16-normcmp.h.
1542         (Depends-on): Remove uninorm/u16-normcmp.
1543
1544         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
1545         tests/uninorm/test-u8-normcmp.c.
1546         * tests/uninorm/test-u8-normcmp.c: Include it.
1547         (test_nonascii): New function, extracted from main. Add some more
1548         tests.
1549         (main): Invoke test_ascii and test_nonascii.
1550         * modules/uninorm/u8-normcmp-tests (Files): Add
1551         tests/uninorm/test-u8-normcmp.h.
1552         (Depends-on): Remove uninorm/u8-normcmp.
1553
1554 2009-03-07  Bruno Haible  <bruno@clisp.org>
1555
1556         New module 'uninorm/u32-normcoll'.
1557         * lib/uninorm/u32-normcoll.c: New file.
1558         * modules/uninorm/u32-normcoll: New file.
1559
1560         New module 'uninorm/u16-normcoll'.
1561         * lib/uninorm/u16-normcoll.c: New file.
1562         * modules/uninorm/u16-normcoll: New file.
1563
1564         New module 'uninorm/u8-normcoll'.
1565         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
1566         declarations.
1567         * lib/uninorm/u8-normcoll.c: New file.
1568         * lib/uninorm/u-normcoll.h: New file.
1569         * modules/uninorm/u8-normcoll: New file.
1570
1571         New module 'uninorm/u32-normxfrm'.
1572         * lib/uninorm/u32-normxfrm.c: New file.
1573         * modules/uninorm/u32-normxfrm: New file.
1574
1575         New module 'uninorm/u16-normxfrm'.
1576         * lib/uninorm/u16-normxfrm.c: New file.
1577         * modules/uninorm/u16-normxfrm: New file.
1578
1579         New module 'uninorm/u8-normxfrm'.
1580         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
1581         declarations.
1582         * lib/uninorm/u8-normxfrm.c: New file.
1583         * lib/uninorm/u-normxfrm.h: New file.
1584         * modules/uninorm/u8-normxfrm: New file.
1585
1586 2009-03-07  Bruno Haible  <bruno@clisp.org>
1587
1588         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
1589         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
1590         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
1591
1592 2009-03-07  Bruno Haible  <bruno@clisp.org>
1593
1594         New module 'memxfrm'.
1595         * lib/memxfrm.h: New file.
1596         * lib/memxfrm.c: New file.
1597         * modules/memxfrm: New file.
1598
1599 2009-03-07  Bruno Haible  <bruno@clisp.org>
1600
1601         New module 'memcmp2'.
1602         * lib/memcmp2.h: New file.
1603         * lib/memcmp2.c: New file.
1604         * modules/memcmp2: New file.
1605
1606 2009-03-07  Bruno Haible  <bruno@clisp.org>
1607
1608         Tests for module 'uninorm/decomposing-form'.
1609         * modules/uninorm/decomposing-form-tests: New file.
1610         * tests/uninorm/test-decomposing-form.c: New file.
1611
1612         New module 'uninorm/decomposing-form'.
1613         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
1614         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
1615         Add 'decomposing_variant' field.
1616         * lib/uninorm/decomposing-form.c: New file.
1617         * lib/uninorm/nfc.c (uninorm_nfc): Update.
1618         * lib/uninorm/nfd.c (uninorm_nfd): Update.
1619         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
1620         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
1621         * modules/uninorm/decomposing-form: New file.
1622         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
1623         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
1624
1625 2009-03-07  Bruno Haible  <bruno@clisp.org>
1626
1627         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
1628         strings.
1629
1630 2009-03-06  Bruno Haible  <bruno@clisp.org>
1631
1632         Tests for module 'uninorm/u32-normcmp'.
1633         * tests/uninorm/test-u32-normcmp.c: New file.
1634         * modules/uninorm/u32-normcmp-tests: New file.
1635
1636         Tests for module 'uninorm/u16-normcmp'.
1637         * tests/uninorm/test-u16-normcmp.c: New file.
1638         * modules/uninorm/u16-normcmp-tests: New file.
1639
1640         Tests for module 'uninorm/u8-normcmp'.
1641         * tests/uninorm/test-u8-normcmp.c: New file.
1642         * modules/uninorm/u8-normcmp-tests: New file.
1643
1644         New module 'uninorm/u32-normcmp'.
1645         * lib/uninorm/u32-normcmp.c: New file.
1646         * modules/uninorm/u32-normcmp: New file.
1647
1648         New module 'uninorm/u16-normcmp'.
1649         * lib/uninorm/u16-normcmp.c: New file.
1650         * modules/uninorm/u16-normcmp: New file.
1651
1652         New module 'uninorm/u8-normcmp'.
1653         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
1654         declarations.
1655         * lib/uninorm/u8-normcmp.c: New file.
1656         * lib/uninorm/u-normcmp.h: New file.
1657         * modules/uninorm/u8-normcmp: New file.
1658
1659 2009-03-06  Bruno Haible  <bruno@clisp.org>
1660
1661         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
1662         Reported by Eric Blake.
1663
1664 2009-03-06  Eric Blake  <ebb9@byu.net>
1665             Bruno Haible  <bruno@clisp.org>
1666
1667         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
1668         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
1669         condition.
1670         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1671         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
1672         condition.
1673         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1674
1675 2009-03-06  Eric Blake  <ebb9@byu.net>
1676
1677         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
1678         to avoid compiler warnings.
1679         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
1680
1681 2009-03-05  Bruno Haible  <bruno@clisp.org>
1682
1683         * tests/test-ftell.c (main): Disable test beyond end of file on
1684         FreeMiNT.
1685         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1686
1687 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
1688
1689         * lib/filevercmp.c: Move hidden files up in ordering.
1690         * tests/test-filevercmp.c: Add tests for hidden files.
1691
1692 2009-03-04  Bruno Haible  <bruno@clisp.org>
1693
1694         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
1695         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
1696         AM_CFLAGS.
1697         Reported by Simon Josefsson.
1698
1699 2009-03-03  Bruno Haible  <bruno@clisp.org>
1700
1701         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
1702         Reported by Simon Josefsson.
1703
1704         * doc/ld-version-script.texi: Update node reference.
1705
1706 2009-03-03  Bruno Haible  <bruno@clisp.org>
1707
1708         * modules/visibility (License): Change to 'unlimited'.
1709         Suggested by Simon Josefsson.
1710
1711 2009-03-03  Jim Meyering  <meyering@redhat.com>
1712
1713         unlinkdir: cannot_unlink_dir may modify process state
1714         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
1715         it's neither thread-safe nor appropriate for use in a library.
1716
1717 2009-03-03  Eric Blake  <ebb9@byu.net>
1718
1719         test-closein: silence test under Darwin
1720         * tests/test-closein.sh: Ignore stderr from cat, since we don't
1721         care if it dies from EPIPE or EBADF.
1722
1723 2009-03-03  Bruno Haible  <bruno@clisp.org>
1724
1725         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1726         earlier.
1727         * doc/visibility.texi: Fix @node and @section.
1728
1729 2009-03-03  Simon Josefsson  <simon@josefsson.org>
1730
1731         * doc/gnulib.texi: Link to sections for ld version script and
1732         visibility.
1733         * doc/visibility.texi: Add @node and @section.
1734         * modules/ld-version-script: New module.
1735         * m4/ld-version-script.m4: New file.
1736         * doc/ld-version-script.texi: New file.
1737
1738 2009-03-02  David Lutterkort  <lutter@redhat.com>
1739
1740         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1742
1743 2009-03-02  Bruno Haible  <bruno@clisp.org>
1744
1745         * doc/visibility.texi: Mention libtool's -export-symbols option.
1746
1747 2009-03-02  Jim Meyering  <meyering@redhat.com>
1748
1749         announce-gen: new option: --no-print-checksums
1750         * build-aux/announce-gen (usage): Describe it.
1751         (print_checksums): Print a newline here, not in the [*] footnote.
1752         (main): Honor it.
1753
1754 2009-03-01  Bruno Haible  <bruno@clisp.org>
1755
1756         Use socklen_t in the native Windows replacements prototypes.
1757         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1758         instead of 'int'.
1759         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1760         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1761         * modules/getsockopt (Depends-on): Add socklen.
1762         * modules/setsockopt (Depends-on): Add socklen.
1763
1764 2009-03-01  Bruno Haible  <bruno@clisp.org>
1765
1766         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1767         least 4.2.
1768
1769 2009-03-01  Eric Blake  <ebb9@byu.net>
1770             Bruno Haible  <bruno@clisp.org>
1771
1772         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1773         error messages.
1774         * lib/wait-process.c (wait_subprocess): Omit error message about
1775         deadly signal sent to the child of termsigp != NULL.
1776
1777 2009-03-01  Eric Blake  <ebb9@byu.net>
1778
1779         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1780
1781 2009-03-01  Bruno Haible  <bruno@clisp.org>
1782
1783         Avoid a gcc warning.
1784         * tests/test-sched.c (b): Make global.
1785         Reported by Eric Blake.
1786
1787 2009-01-19  Martin Lambers  <marlam@marlam.de>
1788
1789         Provide POSIX semantics for socket timeout options on W32.
1790         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1791         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1792         * modules/setsockopt: Depend on sys_time module for struct timeval.
1793         * modules/getsockopt: Depend on sys_time module for struct timeval.
1794
1795 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1796
1797         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1798         __USE_GNU, for consistency with netdb.in.h.
1799         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1800
1801 2009-03-01  Bruno Haible  <bruno@clisp.org>
1802
1803         More support for FreeMiNT.
1804         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1805         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1806
1807 2009-03-01  Bruno Haible  <bruno@clisp.org>
1808
1809         More support for FreeMiNT.
1810         * lib/fpurge.c (fpurge): Correct last commit.
1811         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1812
1813 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1814
1815         Fix unportable awk script in vc-list-files.
1816         * build-aux/vc-list-files: In the replacement awk script, use
1817         substr with a second argument of 1, not zero.
1818         Report by Simon Josefsson.
1819
1820 2009-02-28  Bruno Haible  <bruno@clisp.org>
1821
1822         More support for FreeMiNT.
1823         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1824         to FreeMiNT today.
1825         * lib/fwriting.c (fwriting): Likewise.
1826         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1827
1828 2009-02-28  Bruno Haible  <bruno@clisp.org>
1829
1830         * tests/test-freadseek.c (main): Disable test beyond end of file on
1831         FreeMiNT.
1832         * tests/test-ftello.c (main): Likewise.
1833         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1834
1835 2009-02-28  Bruno Haible  <bruno@clisp.org>
1836
1837         Add tentative support for FreeMiNT.
1838         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1839         * lib/fpurge.c (fpurge): Likewise.
1840         * lib/freadable.c (freadable): Likewise.
1841         * lib/freading.c (freading): Likewise.
1842         * lib/freadptr.c (freadptr): Likewise.
1843         * lib/freadseek.c (freadptrinc): Likewise.
1844         * lib/fseeko.c (rpl_fseeko): Likewise.
1845         * lib/fseterr.c (fseterr): Likewise.
1846         * lib/fwritable.c (fwritable): Likewise.
1847         * lib/fwriting.c (fwriting): Likewise.
1848         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1849         Hourihane.
1850         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1851
1852 2009-02-28  Bruno Haible  <bruno@clisp.org>
1853
1854         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1855         SIGCHLD.
1856         Reported by Jim Meyering.
1857
1858 2009-02-28  Bruno Haible  <bruno@clisp.org>
1859
1860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1861         Mention the results of these tests on various platforms.
1862         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1863         order.
1864         * doc/posix-functions/printf.texi: Likewise.
1865         * doc/posix-functions/snprintf.texi: Likewise.
1866         * doc/posix-functions/sprintf.texi: Likewise.
1867         * doc/posix-functions/vfprintf.texi: Likewise.
1868         * doc/posix-functions/vprintf.texi: Likewise.
1869         * doc/posix-functions/vsnprintf.texi: Likewise.
1870         * doc/posix-functions/vsprintf.texi: Likewise.
1871         * doc/glibc-functions/obstack_printf.texi: Likewise.
1872         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1873
1874 2009-02-28  Bruno Haible  <bruno@clisp.org>
1875
1876         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1877         Reported by Loïc Minier <lool@dooz.org>.
1878
1879 2009-02-27  Bruno Haible  <bruno@clisp.org>
1880
1881         * gnulib-tool (func_import): Make the sed expression used to create the
1882         sed script for updating the .gitignore file POSIX compliant.
1883         Reported by Eric Blake.
1884
1885 2009-02-27  Bruno Haible  <bruno@clisp.org>
1886
1887         * gnulib-tool (sed): Don't alias as "sed --posix".
1888         Reported by Eric Blake.
1889
1890 2009-02-27  Bruno Haible  <bruno@clisp.org>
1891
1892         Avoid test link errors.
1893         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1894         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1895         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1896         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1898
1899 2009-02-27  Bruno Haible  <bruno@clisp.org>
1900
1901         Avoid spurious "(cached)" in configure output.
1902         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1903         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1904         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1905         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1906         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1907         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1908         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1909         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1910         Reported by Eric Blake.
1911
1912 2009-02-27  Eric Blake  <ebb9@byu.net>
1913
1914         printf: fix regression in previous patch
1915         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1916
1917 2009-02-27  Bruno Haible  <bruno@clisp.org>
1918
1919         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1920         value.
1921         * lib/stdint.in.h: Likewise.
1922         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1923
1924 2009-02-27  Eric Blake  <ebb9@byu.net>
1925
1926         doc: mention more functions added in cygwin 1.7.0
1927         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1928         addition.
1929         * doc/posix-functions/open_wmemstream.texi: Likewise.
1930         * doc/posix-functions/wcsnlen.texi: Likewise.
1931         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1932         * doc/posix-functions/wcstod.texi: Likewise.
1933         * doc/posix-functions/wcstof.texi: Likewise.
1934         * doc/posix-functions/wcstoimax.texi: Likewise.
1935         * doc/posix-functions/wcstok.texi: Likewise.
1936         * doc/posix-functions/wcstoumax.texi: Likewise.
1937
1938         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1939         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1940         * doc/posix-functions/fprintf.texi: Update.
1941         * doc/posix-functions/printf.texi: Update.
1942         * doc/posix-functions/snprintf.texi: Update.
1943         * doc/posix-functions/sprintf.texi: Update.
1944         * doc/posix-functions/vfprintf.texi: Update.
1945         * doc/posix-functions/vprintf.texi: Update.
1946         * doc/posix-functions/vsnprintf.texi: Update.
1947         * doc/posix-functions/vsprintf.texi: Update.
1948         * doc/glibc-functions/obstack_printf.texi: Update.
1949         * doc/glibc-functions/obstack_vprintf.texi: Update.
1950
1951 2009-02-26  Eric Blake  <ebb9@byu.net>
1952
1953         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1954         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1955         compilation bug by using runtime conversion.
1956         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1957         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1958         * modules/ceill-tests (Files): Use nan.h.
1959         * modules/floorl-tests (Files): Likewise.
1960         * modules/frexpl-tests (Files): Likewise.
1961         * modules/isnanl-tests (Files): Likewise.
1962         * modules/ldexpl-tests (Files): Likewise.
1963         * modules/roundl-tests (Files): Likewise.
1964         * modules/truncl-tests (Files): Likewise.
1965         * tests/test-ceill.c (main): Use a working NaN.
1966         * tests/test-floorl.c (main): Likewise.
1967         * tests/test-frexpl.c (main): Likewise.
1968         * tests/test-isnan.c (test_long_double): Likewise.
1969         * tests/test-isnanl.h (main): Likewise.
1970         * tests/test-ldexpl.h (main): Likewise.
1971         * tests/test-roundl.h (main): Likewise.
1972         * tests/test-truncl.h (main): Likewise.
1973         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1974
1975 2009-02-26  Eric Blake  <ebb9@byu.net>
1976             Bruno Haible  <bruno@clisp.org>
1977
1978         Work around a *printf bug with %ls on Solaris.
1979         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1980         precision is specified, sprintf stops converting the wide string
1981         argument when the number of bytes that have been produced by this
1982         conversion equals or exceeds the precision.
1983         * doc/posix-functions/fprintf.texi: Update.
1984         * doc/posix-functions/printf.texi: Update.
1985         * doc/posix-functions/snprintf.texi: Update.
1986         * doc/posix-functions/sprintf.texi: Update.
1987         * doc/posix-functions/vfprintf.texi: Update.
1988         * doc/posix-functions/vprintf.texi: Update.
1989         * doc/posix-functions/vsnprintf.texi: Update.
1990         * doc/posix-functions/vsprintf.texi: Update.
1991         * doc/glibc-functions/obstack_printf.texi: Update.
1992         * doc/glibc-functions/obstack_vprintf.texi: Update.
1993
1994 2009-02-26  Eric Blake  <ebb9@byu.net>
1995
1996         stdlib: favor compiler check of random.h
1997         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1998         to avoid an ObjC random.h installed by Swarm.
1999
2000 2009-02-26  Bruno Haible  <bruno@clisp.org>
2001
2002         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
2003         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
2004         Reported by Gary V. Vaughan <gary@gnu.org>.
2005
2006 2009-02-26  Bruno Haible  <bruno@clisp.org>
2007
2008         Fix *printf behaviour regarding the %ls directive.
2009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
2010         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
2011         NEED_PRINTF_DIRECTIVE_LS.
2012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
2013         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2014         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2015         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
2016         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
2017         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
2018         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2023         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
2024         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2027         * doc/posix-functions/fprintf.texi: Update.
2028         * doc/posix-functions/printf.texi: Update.
2029         * doc/posix-functions/snprintf.texi: Update.
2030         * doc/posix-functions/sprintf.texi: Update.
2031         * doc/posix-functions/vfprintf.texi: Update.
2032         * doc/posix-functions/vprintf.texi: Update.
2033         * doc/posix-functions/vsnprintf.texi: Update.
2034         * doc/posix-functions/vsprintf.texi: Update.
2035         * doc/glibc-functions/obstack_printf.texi: Update.
2036         * doc/glibc-functions/obstack_vprintf.texi: Update.
2037         Reported by Eric Blake.
2038
2039 2009-02-25  Bruno Haible  <bruno@clisp.org>
2040
2041         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
2042         with known value.
2043         Reported by Gary V. Vaughan <gary@gnu.org>.
2044
2045 2009-02-25  Bruno Haible  <bruno@clisp.org>
2046
2047         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
2048         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
2049         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
2050         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
2051         Reported by Gary V. Vaughan <gary@gnu.org>.
2052
2053 2009-02-25  Bruno Haible  <bruno@clisp.org>
2054
2055         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
2056         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
2057         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
2058         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
2059         Reported by Gary V. Vaughan <gary@gnu.org>.
2060
2061 2009-02-25  Eric Blake  <ebb9@byu.net>
2062
2063         tests: skip fseek/ftell tests if ungetc is broken
2064         * m4/ungetc.m4: New file.
2065         * modules/fseek-tests: Split test, so ungetc dependency is
2066         separate from rest of test.
2067         * modules/fseeko-tests: Likewise.
2068         * modules/ftell-tests: Likewise.
2069         * modules/ftello-tests: Likewise.
2070         * tests/test-fseek.c (main): Isolate ungetc dependency.
2071         * tests/test-fseeko.c (main): Likewise.
2072         * tests/test-ftell.c (main): Likewise.
2073         * tests/test-ftello.c (main): Likewise.
2074         * tests/test-fseek2.sh: New file.
2075         * tests/test-fseeko2.sh: Likewise.
2076         * tests/test-ftell2.sh: Likewise.
2077         * tests/test-ftello2.sh: Likewise.
2078
2079 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
2080
2081         test-getaddrinfo: fix usage of skip return code 77
2082         * tests/test-gettaddrinfo.c: Return skip code 77 only
2083         for first occurance of skip (4x77 is not 77)
2084
2085 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
2086
2087         strtod: avoid C99 decl-after-statement
2088         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
2089
2090 2009-02-24  Eric Blake  <ebb9@byu.net>
2091
2092         strtod: detect HP-UX 11.31 bug
2093         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
2094         Reported by Gary V. Vaughan.
2095
2096 2009-02-23  Bruno Haible  <bruno@clisp.org>
2097
2098         Fix invalid read past end of memory block.
2099         * lib/vasnprintf.c (DCHAR_SET): Define.
2100         (local_wcslen): Define only when needed.
2101         (local_strnlen, local_wcsnlen): New functions.
2102         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
2103         directives that involve a conversion ourselves.
2104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
2105         wcsnlen, mbrtowc, wcrtomb.
2106         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
2107         * tests/test-vasprintf-posix.c (test_function): Likewise.
2108         * tests/test-snprintf-posix.h (test_function): Likewise.
2109         * tests/test-sprintf-posix.h (test_function): Likewise.
2110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2111
2112 2009-02-22  Bruno Haible  <bruno@clisp.org>
2113
2114         Implement new clarified decomposition of Hangul syllables.
2115         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
2116         of type LTV, return only a pairwise decomposition.
2117         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
2118         Likewise.
2119         * tests/uninorm/test-decomposition.c (main): Updated expected result.
2120         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
2121         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
2122
2123 2009-02-22  Bruno Haible  <bruno@clisp.org>
2124
2125         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
2126         zero-length results and shrink excess allocated memory.
2127         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
2128         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
2129         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
2130         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
2131         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
2132         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
2133         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
2134         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
2135         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
2136         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
2137         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
2138         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
2139
2140 2009-02-21  Bruno Haible  <bruno@clisp.org>
2141
2142         * doc/gnulib.texi: Include safe-alloc.texi earlier.
2143         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
2144         spaces after a period. Put a space between a macro name and its
2145         argument list. Trivial rewordings.
2146         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
2147         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
2148         (main): Return 0 explicitly.
2149
2150 2009-02-21  Bruno Haible  <bruno@clisp.org>
2151
2152         Tests for module 'uninorm/filter'.
2153         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
2154         * modules/uninorm/filter-tests: New file.
2155
2156         New module 'uninorm/filter'.
2157         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
2158         uninorm_filter_flush, uninorm_filter_free): New declarations.
2159         * lib/uninorm/uninorm-filter.c: New file.
2160         * modules/uninorm/filter: New file.
2161
2162 2009-02-21  Bruno Haible  <bruno@clisp.org>
2163
2164         Tests for module 'uninorm/nfkc'.
2165         * tests/uninorm/test-nfkc.c: New file.
2166         * tests/uninorm/test-u8-nfkc.c: New file.
2167         * tests/uninorm/test-u16-nfkc.c: New file.
2168         * tests/uninorm/test-u32-nfkc.c: New file.
2169         * tests/uninorm/test-u32-nfkc-big.sh: New file.
2170         * tests/uninorm/test-u32-nfkc-big.c: New file.
2171         * modules/uninorm/nfkc-tests: New file.
2172
2173         New module 'uninorm/nfkc'.
2174         * lib/uninorm/nfkc.c: New file.
2175         * modules/uninorm/nfkc: New file.
2176
2177         Tests for module 'uninorm/nfkd'.
2178         * tests/uninorm/test-nfkd.c: New file.
2179         * tests/uninorm/test-u8-nfkd.c: New file.
2180         * tests/uninorm/test-u16-nfkd.c: New file.
2181         * tests/uninorm/test-u32-nfkd.c: New file.
2182         * tests/uninorm/test-u32-nfkd-big.sh: New file.
2183         * tests/uninorm/test-u32-nfkd-big.c: New file.
2184         * modules/uninorm/nfkd-tests: New file.
2185
2186         New module 'uninorm/nfkd'.
2187         * lib/uninorm/nfkd.c: New file.
2188         * modules/uninorm/nfkd: New file.
2189
2190         Tests for module 'uninorm/nfc'.
2191         * tests/uninorm/test-nfc.c: New file.
2192         * tests/uninorm/test-u8-nfc.c: New file.
2193         * tests/uninorm/test-u16-nfc.c: New file.
2194         * tests/uninorm/test-u32-nfc.c: New file.
2195         * tests/uninorm/test-u32-nfc-big.sh: New file.
2196         * tests/uninorm/test-u32-nfc-big.c: New file.
2197         * modules/uninorm/nfc-tests: New file.
2198
2199         New module 'uninorm/nfc'.
2200         * lib/uninorm/nfc.c: New file.
2201         * modules/uninorm/nfc: New file.
2202
2203         Tests for module 'uninorm/nfd'.
2204         * tests/uninorm/test-nfd.c: New file.
2205         * tests/uninorm/test-u8-nfd.c: New file.
2206         * tests/uninorm/test-u16-nfd.c: New file.
2207         * tests/uninorm/test-u32-nfd.c: New file.
2208         * tests/uninorm/test-u32-nfd-big.sh: New file.
2209         * tests/uninorm/test-u32-nfd-big.c: New file.
2210         * tests/uninorm/test-u32-normalize-big.h: New file.
2211         * tests/uninorm/test-u32-normalize-big.c: New file.
2212         * tests/uninorm/NormalizationTest.txt: New file, created from
2213         Unicode 5.1.0 NormalizationTest.txt.
2214         * modules/uninorm/nfd-tests: New file.
2215
2216         New module 'uninorm/nfd'.
2217         * lib/uninorm/nfd.c: New file.
2218         * modules/uninorm/nfd: New file.
2219
2220         New module 'uninorm/u32-normalize'.
2221         * lib/uninorm/u32-normalize.c: New file.
2222         * modules/uninorm/u32-normalize: New file.
2223
2224         New module 'uninorm/u16-normalize'.
2225         * lib/uninorm/u16-normalize.c: New file.
2226         * modules/uninorm/u16-normalize: New file.
2227
2228         New module 'uninorm/u8-normalize'.
2229         * lib/uninorm/u8-normalize.c: New file.
2230         * lib/uninorm/normalize-internal.h: New file.
2231         * lib/uninorm/u-normalize-internal.h: New file.
2232         * modules/uninorm/u8-normalize: New file.
2233
2234         New module 'uninorm/decompose-internal'.
2235         * lib/uninorm/decompose-internal.c: New file.
2236         * modules/uninorm/decompose-internal: New file.
2237
2238         Tests for module 'uninorm/composition'.
2239         * tests/uninorm/test-composition.c: New file.
2240         * modules/uninorm/composition-tests: New file.
2241
2242         New module 'uninorm/composition'.
2243         * lib/uninorm/composition.c: New file.
2244         * lib/uninorm/composition-table.gperf: New file, generated by
2245         gen-uni-tables.
2246         * modules/uninorm/composition: New file.
2247
2248         Tests for module 'uninorm/compat-decomposition'.
2249         * tests/uninorm/test-compat-decomposition.c: New file.
2250         * modules/uninorm/compat-decomposition-tests: New file.
2251
2252         New module 'uninorm/compat-decomposition'.
2253         * lib/uninorm/decompose-internal.h: New file.
2254         * lib/uninorm/compat-decomposition.c: New file.
2255         * modules/uninorm/compat-decomposition: New file.
2256
2257         Tests for module 'uninorm/canonical-decomposition'.
2258         * tests/uninorm/test-canonical-decomposition.c: New file.
2259         * modules/uninorm/canonical-decomposition-tests: New file.
2260
2261         New module 'uninorm/canonical-decomposition'.
2262         * lib/uninorm/canonical-decomposition.c: New file.
2263         * modules/uninorm/canonical-decomposition: New file.
2264
2265         Tests for module 'uninorm/decomposition'.
2266         * tests/uninorm/test-decomposition.c: New file.
2267         * modules/uninorm/decomposition-tests: New file.
2268
2269         New module 'uninorm/decomposition'.
2270         * lib/uninorm/decomposition.c: New file.
2271         * modules/uninorm/decomposition: New file.
2272
2273         New module 'uninorm/decomposition-table'.
2274         * lib/uninorm/decomposition-table.h: New file.
2275         * lib/uninorm/decomposition-table.c: New file.
2276         * lib/uninorm/decomposition-table1.h: New file, generated by
2277         gen-uni-tables.
2278         * lib/uninorm/decomposition-table2.h: New file, generated by
2279         gen-uni-tables.
2280         * modules/uninorm/decomposition-table: New file.
2281
2282         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
2283         (UC_DECOMP_*): New enumeration items.
2284         (get_decomposition): New function.
2285         (struct decomp_table): New type.
2286         (output_decomposition, output_decomposition_tables): New functions.
2287         (unicode_composition_exclusions): New variable.
2288         (fill_composition_exclusions, debug_output_composition_tables): New
2289         functions.
2290         (main): Accept one more argument. Invoke fill_composition_exclusions.
2291         Output decomposition and composition tables.
2292
2293         New module 'uninorm/base'.
2294         * lib/uninorm.h: New file.
2295         * lib/unictype.h: Update comment.
2296         * modules/uninorm/base: New file.
2297
2298 2009-02-21  David Lutterkort  <lutter@redhat.com>
2299
2300         Tests for module 'safe-alloc'.
2301         * tests/test-safe-alloc.c: New file.
2302         * modules/safe-alloc-tests: New file.
2303
2304         New module 'safe-alloc'.
2305         * lib/safe-alloc.h: New file.
2306         * lib/safe-alloc.c: New file.
2307         * m4/safe-alloc.m4: New file.
2308         * modules/safe-alloc: New file.
2309         * doc/safe-alloc.texi: New file.
2310         * doc/gnulib.texi: Include it.
2311         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2312         safe-alloc.
2313
2314 2009-02-18  Bruno Haible  <bruno@clisp.org>
2315
2316         Fix link error on non-glibc systems.
2317         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
2318         variable.
2319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2320
2321 2009-02-18  Jim Meyering  <meyering@redhat.com>
2322
2323         fts: avoid used-uninitialized error due to recent change
2324         * lib/fts.c (fts_read): Guard uses of the new member,
2325         parent->fts_n_dirs_remaining, since it's not relevant for
2326         the parent of a directory specified on the command-line.
2327
2328 2009-02-17  James Youngman  <jay@gnu.org>
2329             Bruno Haible  <bruno@clisp.org>
2330
2331         * m4/include_next.m4: Reformulate comment.
2332
2333 2009-02-16  Jim Meyering  <meyering@redhat.com>
2334
2335         fts: add #if guards so that the fts_lgpl module still builds
2336         * lib/fts.c: Guard just-added hash-table-using parts with
2337         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
2338         Reported by Simon Josefsson.
2339
2340 2009-02-15  Bruno Haible  <bruno@clisp.org>
2341
2342         * modules/array-mergesort-tests: New file.
2343         * tests/test-array-mergesort.c: New file.
2344
2345         New module 'array-mergesort'.
2346         * modules/array-mergesort: New file.
2347         * lib/array-mergesort.h: New file.
2348
2349 2009-02-15  Bruno Haible  <bruno@clisp.org>
2350
2351         Fix 2009-02-07 commit.
2352         * lib/gen-uni-tables.c (output_predicate, output_category,
2353         output_combclass, output_bidi_category, output_decimal_digit,
2354         output_digit, output_numeric, output_mirror, output_scripts,
2355         output_ident_category, output_simple_mapping): Fix format directives.
2356         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
2357
2358 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
2359
2360         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
2361         fixes are available from IBM.
2362
2363 2009-02-13  Jim Meyering  <meyering@redhat.com>
2364
2365         fts: arrange not to stat non-directories in more cases
2366         This makes GNU find (when it doesn't need to stat each file)
2367         *much* more efficient at traversing reiserfs file systems.
2368         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
2369         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
2370         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
2371         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
2372         (leaf_optimization_applies): New function.
2373         (LCO_hash, LCO_compare): New helper functions.
2374         (link_count_optimize_ok): New function.
2375         (fts_stat): Initialize new member (if dir).
2376         (fts_read): Decrement parent's fts_n_dirs_remaining count if
2377         we've just stat'ed a directory.  Skip the stat call when possible.
2378         ---
2379         Note this AFS-related exchange:
2380         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
2381         and note find's pioctl call in find/fstype.c.
2382         But that is necessary only if you want to enable the
2383         optimization for AFS, and for now, I don't.
2384
2385         fts: move a function definition "up" (no semantic change)
2386         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
2387         "up" to precede upcoming use of a related function.
2388
2389 2009-02-11  Jim Meyering  <meyering@redhat.com>
2390
2391         fts: correct internal computation of nlinks (optimization-related)
2392         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
2393         whether the current entry is a directory, so don't test it.
2394
2395 2009-02-10  Bruno Haible  <bruno@clisp.org>
2396
2397         Tests for module 'uniwbrk/ulc-wordbreaks'.
2398         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
2399         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
2400         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
2401
2402         Tests for module 'uniwbrk/u32-wordbreaks'.
2403         * modules/uniwbrk/u32-wordbreaks-tests: New file.
2404         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
2405
2406         Tests for module 'uniwbrk/u16-wordbreaks'.
2407         * modules/uniwbrk/u16-wordbreaks-tests: New file.
2408         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
2409
2410         Tests for module 'uniwbrk/u8-wordbreaks'.
2411         * modules/uniwbrk/u8-wordbreaks-tests: New file.
2412         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
2413
2414 2009-02-10  Bruno Haible  <bruno@clisp.org>
2415
2416         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
2417         property.
2418         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
2419         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
2420         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
2421
2422 2009-02-10  Simon Josefsson  <simon@josefsson.org>
2423
2424         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
2425         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
2426
2427 2009-02-10  Bruno Haible  <bruno@clisp.org>
2428
2429         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
2430         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
2431         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
2432         * lib/unilbrk/u8-possible-linebreaks.c: Update.
2433         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
2434         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
2435
2436 2009-02-09  Simon Josefsson  <simon@josefsson.org>
2437
2438         * lib/sockets.h (gl_fd_to_handle): New function.
2439
2440         * tests/test-sockets.c: Call gl_fd_to_handle.
2441
2442 2009-02-09  Bruno Haible  <bruno@clisp.org>
2443
2444         * doc/havelib.texi: Document the conventions on bi-arch systems.
2445
2446 2009-02-08  Bruno Haible  <bruno@clisp.org>
2447
2448         Document the AC_LIB_LINKFLAGS macro.
2449         * doc/havelib.texi: New file, mostly written on 2005-05-24.
2450         * doc/gnulib.texi: Include it.
2451
2452 2009-02-08  Bruno Haible  <bruno@clisp.org>
2453
2454         Fix wrong order of sections, compared to TOC.
2455         * doc/gnulib.texi: Include relocatable-maint.texi after the
2456         "Regular expressions" node, not before.
2457
2458 2009-02-08  Bruno Haible  <bruno@clisp.org>
2459
2460         Tests for module 'unicase/totitle'.
2461         * modules/unicase/totitle-tests: New file.
2462
2463         Tests for module 'unicase/tolower'.
2464         * modules/unicase/tolower-tests: New file.
2465
2466         Tests for module 'unicase/toupper'.
2467         * modules/unicase/toupper-tests: New file.
2468         * tests/unicase/test-mapping-part1.h: New file.
2469         * tests/unicase/test-mapping-part2.h: New file.
2470
2471         New module 'unicase/totitle'.
2472         * modules/unicase/totitle: New file.
2473         * lib/unicase/totitle.c: New file.
2474
2475         New module 'unicase/tolower'.
2476         * modules/unicase/tolower: New file.
2477         * lib/unicase/tolower.c: New file.
2478
2479         New module 'unicase/toupper'.
2480         * modules/unicase/toupper: New file.
2481         * lib/unicase/toupper.c: New file.
2482         * lib/unicase/simple-mapping.h: New file.
2483
2484         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
2485         (mapping_table): New structure.
2486         (output_simple_mapping): New function.
2487         (main): Invoke output_simple_mapping_test and output_simple_mapping.
2488         * modules/gen-uni-tables (Description): Update.
2489         * lib/unicase/toupper.h: New file, automatically generated by
2490         gen-uni-tables.
2491         * lib/unicase/tolower.h: New file, automatically generated by
2492         gen-uni-tables.
2493         * lib/unicase/totitle.h: New file, automatically generated by
2494         gen-uni-tables.
2495         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
2496         gen-uni-tables.
2497         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
2498         gen-uni-tables.
2499         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
2500         gen-uni-tables.
2501
2502         New module 'unicase/base'.
2503         * modules/unicase/base: New file.
2504         * lib/unicase.h: New file.
2505
2506 2009-02-08  Bruno Haible  <bruno@clisp.org>
2507
2508         New module 'uniwbrk/ulc-wordbreaks'.
2509         * modules/uniwbrk/ulc-wordbreaks: New file.
2510         * lib/uniwbrk/ulc-wordbreaks.c: New file.
2511
2512         New module 'uniwbrk/u32-wordbreaks'.
2513         * modules/uniwbrk/u32-wordbreaks: New file.
2514         * lib/uniwbrk/u32-wordbreaks.c: New file.
2515
2516         New module 'uniwbrk/u16-wordbreaks'.
2517         * modules/uniwbrk/u16-wordbreaks: New file.
2518         * lib/uniwbrk/u16-wordbreaks.c: New file.
2519
2520         New module 'uniwbrk/u8-wordbreaks'.
2521         * modules/uniwbrk/u8-wordbreaks: New file.
2522         * lib/uniwbrk/u8-wordbreaks.c: New file.
2523         * lib/uniwbrk/u-wordbreaks.h: New file.
2524
2525         New module 'uniwbrk/table'.
2526         * modules/uniwbrk/table: New file.
2527         * lib/uniwbrk/wbrktable.h: New file.
2528         * lib/uniwbrk/wbrktable.c: New file.
2529
2530         New module 'uniwbrk/wordbreak-property'.
2531         * modules/uniwbrk/wordbreak-property: New file.
2532         * lib/uniwbrk/wordbreak-property.c: New file.
2533
2534         * lib/gen-uni-tables.c (WBP_*): New enum items.
2535         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
2536         (unicode_org_wbp): New variable.
2537         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
2538         New functions.
2539         (wbp_table): New structure.
2540         (output_wbp, output_wbrk_tables): New functions.
2541         (main): Accept additional argument. Invoke fill_org_wbp,
2542         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
2543         output_wbrk_tables.
2544         * modules/gen-uni-tables (Description): Update.
2545         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
2546         gen-uni-tables.
2547
2548         New module 'uniwbrk/base'.
2549         * modules/uniwbrk/base: New file.
2550         * lib/uniwbrk.h: New file.
2551
2552 2009-02-08  Bruno Haible  <bruno@clisp.org>
2553
2554         Update to Unicode 5.1.0.
2555         * lib/gen-uni-tables.c (is_property_alphabetic): Include
2556         U+2185..U+2188.
2557         (is_property_default_ignorable_code_point): Don't include characters
2558         of category Cc or Cs and not-a-characters.
2559         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
2560         U+0D79, U+109E, U+109F, U+A60C.
2561         * lib/unictype/bidi_of.h: Regenerated.
2562         * lib/unictype/blocks.h: Regenerated.
2563         * lib/unictype/categ_C.h: Regenerated.
2564         * lib/unictype/categ_Cf.h: Regenerated.
2565         * lib/unictype/categ_Cn.h: Regenerated.
2566         * lib/unictype/categ_L.h: Regenerated.
2567         * lib/unictype/categ_Ll.h: Regenerated.
2568         * lib/unictype/categ_Lm.h: Regenerated.
2569         * lib/unictype/categ_Lo.h: Regenerated.
2570         * lib/unictype/categ_Lu.h: Regenerated.
2571         * lib/unictype/categ_M.h: Regenerated.
2572         * lib/unictype/categ_Mc.h: Regenerated.
2573         * lib/unictype/categ_Me.h: Regenerated.
2574         * lib/unictype/categ_Mn.h: Regenerated.
2575         * lib/unictype/categ_N.h: Regenerated.
2576         * lib/unictype/categ_Nd.h: Regenerated.
2577         * lib/unictype/categ_Nl.h: Regenerated.
2578         * lib/unictype/categ_No.h: Regenerated.
2579         * lib/unictype/categ_P.h: Regenerated.
2580         * lib/unictype/categ_Pd.h: Regenerated.
2581         * lib/unictype/categ_Pe.h: Regenerated.
2582         * lib/unictype/categ_Pf.h: Regenerated.
2583         * lib/unictype/categ_Pi.h: Regenerated.
2584         * lib/unictype/categ_Po.h: Regenerated.
2585         * lib/unictype/categ_Ps.h: Regenerated.
2586         * lib/unictype/categ_S.h: Regenerated.
2587         * lib/unictype/categ_Sk.h: Regenerated.
2588         * lib/unictype/categ_Sm.h: Regenerated.
2589         * lib/unictype/categ_So.h: Regenerated.
2590         * lib/unictype/categ_of.h: Regenerated.
2591         * lib/unictype/combining.h: Regenerated.
2592         * lib/unictype/ctype_alnum.h: Regenerated.
2593         * lib/unictype/ctype_alpha.h: Regenerated.
2594         * lib/unictype/ctype_graph.h: Regenerated.
2595         * lib/unictype/ctype_lower.h: Regenerated.
2596         * lib/unictype/ctype_print.h: Regenerated.
2597         * lib/unictype/ctype_punct.h: Regenerated.
2598         * lib/unictype/ctype_upper.h: Regenerated.
2599         * lib/unictype/decdigit.h: Regenerated.
2600         * lib/unictype/digit.h: Regenerated.
2601         * lib/unictype/mirror.h: Regenerated.
2602         * lib/unictype/numeric.h: Regenerated.
2603         * lib/unictype/pr_alphabetic.h: Regenerated.
2604         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
2605         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
2606         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
2607         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
2608         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
2609         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
2610         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
2611         * lib/unictype/pr_combining.h: Regenerated.
2612         * lib/unictype/pr_dash.h: Regenerated.
2613         * lib/unictype/pr_decimal_digit.h: Regenerated.
2614         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
2615         * lib/unictype/pr_deprecated.h: Regenerated.
2616         * lib/unictype/pr_diacritic.h: Regenerated.
2617         * lib/unictype/pr_extender.h: Regenerated.
2618         * lib/unictype/pr_format_control.h: Regenerated.
2619         * lib/unictype/pr_grapheme_base.h: Regenerated.
2620         * lib/unictype/pr_grapheme_extend.h: Regenerated.
2621         * lib/unictype/pr_grapheme_link.h: Regenerated.
2622         * lib/unictype/pr_id_continue.h: Regenerated.
2623         * lib/unictype/pr_id_start.h: Regenerated.
2624         * lib/unictype/pr_ideographic.h: Regenerated.
2625         * lib/unictype/pr_ignorable_control.h: Regenerated.
2626         * lib/unictype/pr_lowercase.h: Regenerated.
2627         * lib/unictype/pr_math.h: Regenerated.
2628         * lib/unictype/pr_numeric.h: Regenerated.
2629         * lib/unictype/pr_other_alphabetic.h: Regenerated.
2630         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
2631         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
2632         * lib/unictype/pr_other_id_continue.h: Regenerated.
2633         * lib/unictype/pr_other_lowercase.h: Regenerated.
2634         * lib/unictype/pr_other_math.h: Regenerated.
2635         * lib/unictype/pr_punctuation.h: Regenerated.
2636         * lib/unictype/pr_sentence_terminal.h: Regenerated.
2637         * lib/unictype/pr_soft_dotted.h: Regenerated.
2638         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
2639         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
2640         * lib/unictype/pr_unified_ideograph.h: Regenerated.
2641         * lib/unictype/pr_uppercase.h: Regenerated.
2642         * lib/unictype/pr_xid_continue.h: Regenerated.
2643         * lib/unictype/pr_xid_start.h: Regenerated.
2644         * lib/unictype/pr_zero_width.h: Regenerated.
2645         * lib/unictype/scripts.h: Regenerated.
2646         * lib/unictype/scripts_byname.gperf: Regenerated.
2647         * lib/unictype/sy_java_ident.h: Regenerated.
2648         * lib/unilbrk/lbrkprop1.h: Regenerated.
2649         * lib/unilbrk/lbrkprop2.h: Regenerated.
2650         * tests/unictype/test-categ_C.c: Regenerated.
2651         * tests/unictype/test-categ_Cf.c: Regenerated.
2652         * tests/unictype/test-categ_Cn.c: Regenerated.
2653         * tests/unictype/test-categ_L.c: Regenerated.
2654         * tests/unictype/test-categ_Ll.c: Regenerated.
2655         * tests/unictype/test-categ_Lm.c: Regenerated.
2656         * tests/unictype/test-categ_Lo.c: Regenerated.
2657         * tests/unictype/test-categ_Lu.c: Regenerated.
2658         * tests/unictype/test-categ_M.c: Regenerated.
2659         * tests/unictype/test-categ_Mc.c: Regenerated.
2660         * tests/unictype/test-categ_Me.c: Regenerated.
2661         * tests/unictype/test-categ_Mn.c: Regenerated.
2662         * tests/unictype/test-categ_N.c: Regenerated.
2663         * tests/unictype/test-categ_Nd.c: Regenerated.
2664         * tests/unictype/test-categ_Nl.c: Regenerated.
2665         * tests/unictype/test-categ_No.c: Regenerated.
2666         * tests/unictype/test-categ_P.c: Regenerated.
2667         * tests/unictype/test-categ_Pd.c: Regenerated.
2668         * tests/unictype/test-categ_Pe.c: Regenerated.
2669         * tests/unictype/test-categ_Pf.c: Regenerated.
2670         * tests/unictype/test-categ_Pi.c: Regenerated.
2671         * tests/unictype/test-categ_Po.c: Regenerated.
2672         * tests/unictype/test-categ_Ps.c: Regenerated.
2673         * tests/unictype/test-categ_S.c: Regenerated.
2674         * tests/unictype/test-categ_Sk.c: Regenerated.
2675         * tests/unictype/test-categ_Sm.c: Regenerated.
2676         * tests/unictype/test-categ_So.c: Regenerated.
2677         * tests/unictype/test-ctype_alnum.c: Regenerated.
2678         * tests/unictype/test-ctype_alpha.c: Regenerated.
2679         * tests/unictype/test-ctype_graph.c: Regenerated.
2680         * tests/unictype/test-ctype_lower.c: Regenerated.
2681         * tests/unictype/test-ctype_print.c: Regenerated.
2682         * tests/unictype/test-ctype_punct.c: Regenerated.
2683         * tests/unictype/test-ctype_upper.c: Regenerated.
2684         * tests/unictype/test-decdigit.h: Regenerated.
2685         * tests/unictype/test-digit.h: Regenerated.
2686         * tests/unictype/test-numeric.h: Regenerated.
2687         * tests/unictype/test-pr_alphabetic.c: Regenerated.
2688         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
2689         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
2690         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
2691         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
2692         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
2693         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
2694         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
2695         * tests/unictype/test-pr_combining.c: Regenerated.
2696         * tests/unictype/test-pr_dash.c: Regenerated.
2697         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
2698         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
2699         * tests/unictype/test-pr_deprecated.c: Regenerated.
2700         * tests/unictype/test-pr_diacritic.c: Regenerated.
2701         * tests/unictype/test-pr_extender.c: Regenerated.
2702         * tests/unictype/test-pr_format_control.c: Regenerated.
2703         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
2704         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
2705         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
2706         * tests/unictype/test-pr_id_continue.c: Regenerated.
2707         * tests/unictype/test-pr_id_start.c: Regenerated.
2708         * tests/unictype/test-pr_ideographic.c: Regenerated.
2709         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
2710         * tests/unictype/test-pr_lowercase.c: Regenerated.
2711         * tests/unictype/test-pr_math.c: Regenerated.
2712         * tests/unictype/test-pr_numeric.c: Regenerated.
2713         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
2714         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
2715         Regenerated.
2716         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
2717         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
2718         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
2719         * tests/unictype/test-pr_other_math.c: Regenerated.
2720         * tests/unictype/test-pr_punctuation.c: Regenerated.
2721         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
2722         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
2723         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2724         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2725         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2726         * tests/unictype/test-pr_uppercase.c: Regenerated.
2727         * tests/unictype/test-pr_xid_continue.c: Regenerated.
2728         * tests/unictype/test-pr_xid_start.c: Regenerated.
2729         * tests/unictype/test-pr_zero_width.c: Regenerated.
2730
2731         Update to Unicode 5.1.0.
2732         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2733         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2734         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2735         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2736         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2737         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2738         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2739         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2740         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2741         (nonspacing_table_ind): Update.
2742         * tests/uniwidth/test-uc_width2.sh: Update expected result.
2743
2744         Update to Unicode 5.1.0.
2745         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2746         code transform.
2747         * lib/uniname/uniname.c (unicode_character_name,
2748         unicode_name_character): Add the range 0x1Fxxx to the code transform.
2749         * lib/uniname/uninames.h: Regenerated.
2750         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2751
2752 2009-02-07  Bruno Haible  <bruno@clisp.org>
2753
2754         Merge gen-ctype and gen-lbrk into a single program.
2755         * lib/gen-uni-tables.c: New file, incorporating
2756         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2757         Add directory prefixes to the names of the generated files.
2758         * lib/unictype/gen-ctype.c: Remove file.
2759         * lib/unilbrk/gen-lbrk.c: Remove file.
2760         * modules/gen-uni-tables: New file.
2761         * modules/unictype/gen-ctype: Remove file.
2762         * modules/unilbrk/gen-lbrk: Remove file.
2763
2764 2009-02-07  Bruno Haible  <bruno@clisp.org>
2765
2766         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2767
2768         New module 'unistr/u32-strcoll'.
2769         * modules/unistr/u32-strcoll: New file.
2770         * lib/unistr/u32-strcoll.c: New file.
2771
2772         New module 'unistr/u16-strcoll'.
2773         * modules/unistr/u16-strcoll: New file.
2774         * lib/unistr/u16-strcoll.c: New file.
2775
2776         New module 'unistr/u8-strcoll'.
2777         * modules/unistr/u8-strcoll: New file.
2778         * lib/unistr/u8-strcoll.c: New file.
2779         * lib/unistr/u-strcoll.h: New file.
2780
2781 2009-02-07  Bruno Haible  <bruno@clisp.org>
2782
2783         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2784         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2785         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2786         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2787         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2788         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2789
2790 2009-02-07  Bruno Haible  <bruno@clisp.org>
2791
2792         Make 64-bit clean.
2793         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2794         output_combclass, output_bidi_category, output_decimal_digit,
2795         output_digit, output_numeric, output_mirror, output_scripts,
2796         output_ident_category): Use proper width specifier in format strings.
2797
2798 2009-02-07  Bruno Haible  <bruno@clisp.org>
2799
2800         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2801         failure behaviour.
2802
2803 2009-02-07  Jim Meyering  <meyering@redhat.com>
2804
2805         regex: avoid compilation failure with upcoming gcc-4.4
2806         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2807         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
2808         "... error: integer overflow in preprocessor expression".
2809
2810 2009-02-05  Ben Pfaff  <blp@gnu.org>
2811
2812         Fix link errors on Windows when close module is used.
2813         * modules/close: Add $(LIB_CLOSE) to Link section.
2814         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2815         $(LIB_CLOSE) on Windows.
2816
2817 2009-02-05  Jim Meyering  <meyering@redhat.com>
2818
2819         still avoid unused-parameter warnings, but do it cleanly
2820         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2821         (get_fs_usage): Cast to void instead.
2822         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2823         (dev_from_mount_options, read_file_system_list): Cast to void.
2824         Prompted by Bruno Haible.
2825
2826 2009-02-04  Jim Meyering  <meyering@redhat.com>
2827
2828         fsusage.c: correct copyright year
2829         * lib/fsusage.c: Reflect year in which the change is pushed into
2830
2831         avoid misc. warnings
2832         * lib/fsusage.c (UNUSED_PARAM): Define.
2833         (get_fs_usage): Mark parameter "disk" as unused.
2834         * lib/getugroups.c (getgrent): Use "void" in prototype.
2835         * lib/mountlist.c: Mark unused parameters.
2836         (read_file_system_list): Declare a local with "const".
2837         * lib/nanosleep.c (getnow): Declare static.
2838         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2839
2840         dirfd: set errno upon failure
2841         * lib/dirfd.c: Include <errno.h>.
2842         Set errno to ENOTSUP when returning -1.
2843         * modules/dirfd (Depends-on): Add errno.
2844         Suggested by John Kodis <kodis@comcast.net>.
2845
2846 2009-02-01  Bruno Haible  <bruno@clisp.org>
2847
2848         Don't assume sizeof (long) >= sizeof (void *).
2849         * lib/memcmp.c: Include stdint.h.
2850         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2851         srcp2 to 'const byte *'.
2852         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2853         types to uintptr_t.
2854         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2855         * modules/memcmp (Depends-on): Add stdint.
2856         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2857
2858 2009-01-30  Eric Blake  <ebb9@byu.net>
2859
2860         fix more require-before-expand issues
2861         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2862         expand, AC_PROG_AWK.
2863         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2864
2865 2009-01-28  Eric Blake  <ebb9@byu.net>
2866
2867         version-etc: use consistent URL formatting
2868         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2869         Improve formatting.  Use fputs for string without %.
2870
2871 2009-01-28  Jim Meyering  <meyering@redhat.com>
2872
2873         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2874         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2875         "underquoted definition of NAME" from autoconf-2.59.
2876
2877 2009-01-28  Bruno Haible  <bruno@clisp.org>
2878
2879         * doc/gnulib.texi: Add "Obsolete modules" to index.
2880
2881 2009-01-28  Jim Meyering  <meyering@redhat.com>
2882
2883         useless-if-before-free: recognize more variants
2884         * build-aux/useless-if-before-free: Also recognize e.g.,
2885         if (NULL != p) free (p);
2886
2887 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2888
2889         test-getaddrinfo: skip (don't fail) this test when there's no network
2890         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2891         on the presumption that it means you lack network access.
2892
2893 2009-01-26  Jim Meyering  <meyering@redhat.com>
2894
2895         fflush: avoid warnings on modern systems
2896         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2897         pos and result, into scopes where they're used.
2898
2899 2009-01-26  Eric Blake  <ebb9@byu.net>
2900
2901         Silence warning reintroduced by recent extensions patch.
2902         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2903         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2904         autoconf.
2905
2906         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2907         * m4/00gnulib.m4: New file.
2908         * gnulib-tool (func_get_filelist): Always use it.
2909         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2910         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2911
2912 2009-01-25  Bruno Haible  <bruno@clisp.org>
2913
2914         Make test-quotearg work on MacOS X and AIX.
2915         * tests/test-quotearg.sh: New file.
2916         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2917         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2918         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2919         include <libintl.h>.
2920         (fake_locale): Remove variable.
2921         (gettext, dgettext, dcgettext): Remove functions.
2922         (main): Instead of setting a fake locale, set a real locale. Call
2923         textdomain and bindtextdomain.
2924         * modules/quotearg-tests (Files): Add the new files.
2925         (Depends-on): Add gettext, setenv, unsetenv.
2926         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2927         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2928         Augment TESTS_ENVIRONMENT.
2929
2930 2009-01-25  Bruno Haible  <bruno@clisp.org>
2931
2932         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2933         fr_FR.ISO8859-1 locale on MacOS X.
2934         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2935         ja_JP.eucJP locale on MacOS X.
2936         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2937         zh_CN.GB18030 locale on MacOS X.
2938
2939 2009-01-25  Bruno Haible  <bruno@clisp.org>
2940
2941         Avoid link errors on MacOS X 10.3.
2942         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2943         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2944
2945 2009-01-25  Bruno Haible  <bruno@clisp.org>
2946
2947         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2948         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2949         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2950         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2951         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2952         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2953         posix_spawnattr_init, posix_spawnattr_setsigmask,
2954         posix_spawnattr_setflags, posix_spawnattr_destroy.
2955
2956         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2957         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2958         * modules/execute (Files): Remove m4/posix_spawn.m4.
2959         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2960         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2961         posix_spawnattr_init, posix_spawnattr_setsigmask,
2962         posix_spawnattr_setflags, posix_spawnattr_destroy.
2963
2964 2009-01-25  Bruno Haible  <bruno@clisp.org>
2965
2966         * lib/glthread/threadlib.c: Include <stdlib.h>.
2967
2968 2009-01-25  Bruno Haible  <bruno@clisp.org>
2969
2970         * lib/glthread/threadlib.c (dummy): New declaration.
2971
2972 2009-01-25  Bruno Haible  <bruno@clisp.org>
2973
2974         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2975         multibyte characters also for the GB18030 encoding. Don't crash when
2976         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2977
2978 2009-01-25  Bruno Haible  <bruno@clisp.org>
2979
2980         Avoid redefining 'struct random_data' on OSF/1 5.1.
2981         * lib/stdlib.in.h: Include <random.h> if it exists.
2982         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2983         HAVE_RANDOM_H. Include <random.h> when testing whether
2984         'struct random_data' exists.
2985         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2986
2987 2009-01-25  Bruno Haible  <bruno@clisp.org>
2988
2989         Don't install charset.alias on MacOS X >= 10.3.
2990         * lib/localcharset.c (DARWIN7): New macro.
2991         (get_charset_aliases): Hardcode the result for Darwin7.
2992         * modules/localcharset (install-exec-local): Don't install
2993         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2994
2995 2009-01-25  Bruno Haible  <bruno@clisp.org>
2996
2997         Don't install charset.alias on mingw and Cygwin.
2998         * modules/localcharset (install-exec-local): Don't install
2999         charset.alias on mingw and Cygwin, if the file does not yet exist.
3000         The result for these platforms is hardcoded in localcharset.c.
3001
3002 2009-01-25  Bruno Haible  <bruno@clisp.org>
3003
3004         Make it possible again to use AC_GNU_SOURCE together with gnulib.
3005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
3006         before requiring AC_USE_SYSTEM_EXTENSIONS.
3007
3008 2009-01-25  Jim Meyering  <meyering@redhat.com>
3009
3010         c-strtod: avoid warnings
3011         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
3012         "assignment discards qualifiers from pointer target type" warnings.
3013
3014 2009-01-24  Bruno Haible  <bruno@clisp.org>
3015
3016         Add support for non-UTF-8 locales on MacOS X.
3017         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
3018         canonical encodings. For Darwin 7 and newer, don't map traditional
3019         encodings to UTF-8.
3020         Reported by Vincent Lefevre <vincent@vinc17.org>
3021         at <http://savannah.gnu.org/bugs/?25235>.
3022
3023 2009-01-24  Bruno Haible  <bruno@clisp.org>
3024
3025         * doc/gnulib.texi (Obsolete modules): New section.
3026         Reported by Mike Frysinger <vapier@gentoo.org>.
3027
3028 2009-01-24  Bruno Haible  <bruno@clisp.org>
3029
3030         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
3031         (%.dvi): New rule.
3032
3033 2009-01-24  Bruno Haible  <bruno@clisp.org>
3034
3035         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
3036         Reported by Eric Blake.
3037
3038 2009-01-24  Bruno Haible  <bruno@clisp.org>
3039
3040         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
3041         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
3042         Reported by Gary V. Vaughan <gary@gnu.org>.
3043
3044 2009-01-24  Bruno Haible  <bruno@clisp.org>
3045
3046         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
3047
3048 2009-01-23  Bruno Haible  <bruno@clisp.org>
3049
3050         Make c-strtod, c-strtold usable in libraries.
3051         * lib/c-strtod.c: Include string.h instead of xalloc.h.
3052         (C_STRTOD): Call strdup instead of xstrdup.
3053         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
3054         * modules/c-strtold (Depends-on): Likewise.
3055         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
3056         * NEWS: Mention the change.
3057         Reported by Michael Gold <mgold@ncf.ca>.
3058
3059 2009-01-23  Jim Meyering  <meyering@redhat.com>
3060
3061         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
3062         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
3063         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
3064
3065 2009-01-23  Simon Josefsson  <simon@josefsson.org>
3066
3067         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
3068         GNU CoreUtils.
3069         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
3070         * modules/version-etc (Description): Update.
3071
3072 2009-01-22  Bruno Haible  <bruno@clisp.org>
3073
3074         Cache the C locale object.
3075         * lib/c-strtod.c (c_locale_cache): New variable.
3076         (c_locale): New function.
3077         (C_STRTOD): Use it, and don't call freelocale.
3078         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
3079         Suggested by Paolo Bonzini.
3080
3081 2009-01-21  Bruno Haible  <bruno@clisp.org>
3082
3083         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
3084         conditions other than overflow.
3085
3086 2009-01-21  Bruno Haible  <bruno@clisp.org>
3087
3088         * lib/c-strtod.c: Include errno.h.
3089         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
3090         value from STRTOD_L and STRTOD.
3091
3092 2009-01-21  Bruno Haible  <bruno@clisp.org>
3093         and Jim Meyering  <meyering@redhat.com>
3094
3095         nanosleep: skip configure test (fail it) for apple universal builds
3096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
3097         universal builds, assume that nanosleep does not work.
3098         * modules/nanosleep (Depends-on): Add multiarch.
3099
3100         mktime: skip configure test (fail it) for apple universal builds
3101         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
3102         universal builds, assume that mktime does not work.
3103         * modules/mktime (Depends-on): Add multiarch.
3104
3105 2009-01-21  Eric Blake  <ebb9@byu.net>
3106
3107         multiarch: avoid expand-before-require warning
3108         * modules/multiarch (configure.ac): Require, rather than expand,
3109         gl_MULTIARCH.
3110         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
3111         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
3112         enforce that all clients require it.  Partial reversion of
3113         2008-12-29 patch.
3114
3115         error: avoid expand-before-require warning
3116         * modules/errno (configure.ac): Require, rather than expand,
3117         gl_HEADER_ERRNO_H.
3118         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
3119         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
3120         enforce that all clients require it.
3121
3122         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
3123         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
3124         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
3125         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
3126
3127 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
3128
3129         Revert:
3130         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
3131
3132         regex: do not depend on obsolete modules.
3133         * modules/regex: Remove memcmp and memmove.
3134
3135 2009-01-20  Bruno Haible  <bruno@clisp.org>
3136
3137         Make the 'link' module link on Windows NT 4.
3138         * lib/link.c (_WIN32_WINNT): Don't define.
3139         (CreateHardLinkFuncType): New type.
3140         (CreateHardLinkFunc, initialized): New variables.
3141         (initialize): New function.
3142         (link): Invoke CreateHardLink indirectly through the function pointer.
3143
3144 2009-01-20  Bruno Haible  <bruno@clisp.org>
3145
3146         Fix compilation failure on mingw.
3147         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
3148
3149 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
3150
3151         * doc/c-strtod.texi: Mention a couple of restrictions.
3152
3153 2009-01-20  Jim Meyering  <meyering@redhat.com>
3154
3155         gettimeofday: move more declarations out of functions
3156         * lib/gettimeofday.c: Move extern declarations of tzset and
3157         gmtime out of containing functions.  Prompted by Bruno Haible.
3158
3159 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
3160
3161         regex: do not depend on obsolete modules.
3162         * modules/regex: Remove memcmp and memmove.
3163
3164 2009-01-19  Bruno Haible  <bruno@clisp.org>
3165
3166         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
3167         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
3168         gl_BIGENDIAN, not AC_C_BIGENDIAN.
3169         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
3170         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
3171
3172 2009-01-19  Bruno Haible  <bruno@clisp.org>
3173
3174         * tests/test-link.c: Include <errno.h>.
3175         (main): Exit with code 77 when a hard link cannot be created due to
3176         the file system.
3177         * tests/test-link.sh: Skip test when a hard link cannot be created due
3178         to the file system.
3179         Suggested by Eric Blake.
3180
3181 2009-01-19  Martin Lambers  <marlam@marlam.de>
3182
3183         * modules/link-tests: New file.
3184         * tests/test-link.sh: New file.
3185         * tests/test-link.c: New file.
3186
3187 2009-01-19  Eric Blake  <ebb9@byu.net>
3188
3189         doc: mention another function added in cygwin 1.7.0
3190         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
3191         Another new function in cygwin 1.7.
3192
3193 2009-01-19  Bruno Haible  <bruno@clisp.org>
3194
3195         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
3196         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
3197         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
3198         gl_BIGENDIAN, not AC_C_BIGENDIAN.
3199         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3200         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3201         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3202         * m4/md4.m4 (gl_MD4): Likewise.
3203         * m4/md5.m4 (gl_MD5): Likewise.
3204         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
3205         * m4/sha1.m4 (gl_SHA1): Likewise.
3206         * m4/sha256.m4 (gl_SHA256): Likewise.
3207         * m4/sha512.m4 (gl_SHA512): Likewise.
3208
3209 2009-01-19  Bruno Haible  <bruno@clisp.org>
3210
3211         * modules/uniname/uniname-tests (Depends-on): Add progname.
3212         * tests/uniname/test-uninames.c: Include progname.h.
3213         (main): Call set_program_name.
3214
3215         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
3216         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
3217         (main): Call set_program_name.
3218
3219         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
3220         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
3221         (main): Call set_program_name.
3222
3223         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
3224         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
3225         (main): Call set_program_name.
3226
3227         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
3228         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
3229         (main): Call set_program_name.
3230
3231         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
3232         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
3233         (main): Call set_program_name.
3234
3235         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
3236         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
3237         (main): Call set_program_name.
3238
3239         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
3240         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
3241         (main): Call set_program_name.
3242
3243         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
3244         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
3245         (main): Call set_program_name.
3246
3247 2009-01-19  Eric Blake  <ebb9@byu.net>
3248
3249         test-unistd: test previous patch
3250         * tests/test-unistd.c: Test *_FILENO macros.
3251
3252         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
3253         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3254         Guarantee a definition.
3255         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
3256         * modules/unistd-safer (Depends-on): Add dependency on unistd.
3257         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
3258         * lib/dup-safer.c (STDERR_FILENO): Likewise.
3259         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3260         Likewise.
3261         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
3262         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
3263         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3264         Likewise.
3265         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
3266         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
3267         (STDERR_FILENO): Likewise.
3268         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
3269         (STDERR_FILENO): Likewise.
3270         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
3271         (STDERR_FILENO): Likewise.
3272         Reported by Elbert Pol.
3273
3274 2009-01-19  Eric Blake  <ebb9@byu.net>
3275
3276         doc: mention more functions added in cygwin 1.7.0
3277         * doc/posix-functions/abort.texi (abort): Update wording related
3278         to cygwin.
3279         * doc/posix-functions/daylight.texi (daylight): Likewise.
3280         * doc/posix-functions/optarg.texi (optarg): Likewise.
3281         * doc/posix-functions/optarg.texi (opterr): Likewise.
3282         * doc/posix-functions/optarg.texi (optind): Likewise.
3283         * doc/posix-functions/optarg.texi (optopt): Likewise.
3284         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
3285         worked in 1.5.x, and was withdrawn in 1.7.
3286         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3287         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
3288         cygwin versions.
3289         * doc/posix-functions/perror.texi (perror): Likewise.
3290         * doc/posix-functions/printf.texi (printf): Likewise.
3291         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
3292         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
3293         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3294         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3295         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3296         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
3297         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3298         Likewise.
3299         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3300         Likewise.
3301         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
3302         this function.
3303         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
3304         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
3305         Likewise.
3306         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
3307         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
3308         * doc/posix-functions/confstr.texi (confstr): Likewise.
3309         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
3310         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
3311         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
3312         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
3313         * doc/posix-functions/fputws.texi (fputws): Likewise.
3314         * doc/posix-functions/fwide.texi (fwide): Likewise.
3315         * doc/posix-functions/getwc.texi (getwc): Likewise.
3316         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
3317         * doc/posix-functions/putwc.texi (putwc): Likewise.
3318         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3319         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
3320         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
3321         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3322         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
3323         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
3324         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
3325         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
3326         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
3327         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
3328         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
3329
3330 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3331
3332         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
3333         * lib/ioctl.c: Include <sys/ioctl.h>.
3334
3335 2009-01-19  Simon Josefsson  <simon@josefsson.org>
3336
3337         * modules/getdate-tests (Depends-on): Add progname.
3338         * tests/test-getdate.c: Use progname module, to avoid link errors
3339         on non-glibc systems.
3340
3341 2009-01-18  Simon Josefsson  <simon@josefsson.org>
3342
3343         * modules/filenamecat-tests (Depends-on): Add progname.
3344         * modules/fstrcmp-tests (Depends-on): Likewise.
3345
3346         * tests/test-filenamecat.c: Use progname module, to avoid link
3347         errors on non-glibc systems.
3348         * tests/test-fstrcmp.c: Likewise.
3349
3350 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3351
3352         gettimeofday: avoid warning: nested extern declaration of 'localtime'
3353         * lib/gettimeofday.c: Move extern declaration out of function.
3354
3355 2009-01-18  Bruno Haible  <bruno@clisp.org>
3356
3357         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
3358         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
3359         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
3360
3361 2009-01-18  Bruno Haible  <bruno@clisp.org>
3362
3363         * lib/strftime.c (MEMPCPY): Remove unused macro.
3364         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
3365
3366 2009-01-18  Martin Lambers  <marlam@marlam.de>
3367
3368         New module 'link'.
3369         * lib/unistd.in.h (link): New declaration.
3370         * lib/link.c: New file.
3371         * m4/link.m4: New file.
3372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
3373         HAVE_LINK.
3374         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
3375         * modules/link: New file.
3376         * doc/posix-functions/link.texi: Mention the new module.
3377
3378 2009-01-18  Bruno Haible  <bruno@clisp.org>
3379
3380         * tests/test-avltree_list.c (main): Call set_program_name.
3381         * tests/test-avltree_oset.c (main): Likewise.
3382         * tests/test-obstack-printf.c: Include progname.h.
3383         (main): Call set_program_name.
3384         * tests/test-quotearg.c: Include progname.h.
3385         (main): Call set_program_name.
3386         * tests/test-xmemdup0.c: Include progname.h.
3387         (main): Call set_program_name.
3388
3389 2009-01-18  Bruno Haible  <bruno@clisp.org>
3390
3391         New module 'alphasort'.
3392         * lib/dirent.in.h (alphasort): New declaration.
3393         * lib/alphasort.c: New file, from glibc with modifications.
3394         * m4/alphasort.m4: New file.
3395         * modules/alphasort: New file.
3396         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
3397         HAVE_ALPHASORT.
3398         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
3399         HAVE_ALPHASORT.
3400         * doc/posix-functions/alphasort.texi: Mention the new module and the
3401         portability problems.
3402
3403 2009-01-18  Bruno Haible  <bruno@clisp.org>
3404
3405         New module 'scandir'.
3406         * lib/dirent.in.h (scandir): New declaration.
3407         * lib/scandir.c: New file, from glibc with modifications.
3408         * m4/scandir.m4: New file.
3409         * modules/scandir: New file.
3410         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
3411         HAVE_SCANDIR.
3412         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
3413         HAVE_SCANDIR.
3414         * doc/posix-functions/scandir.texi: Mention the new module and the
3415         portability problems.
3416
3417 2009-01-17  Bruno Haible  <bruno@clisp.org>
3418
3419         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
3420         Update documentation.
3421         (func_remove_suffix): Escape all dots in the suffix. Update
3422         documentation.
3423         (func_filter_filelist): Update documentation.
3424         Reported by Ralf Wildenhues.
3425
3426 2009-01-17  Bruno Haible  <bruno@clisp.org>
3427
3428         * modules/dprintf-posix-tests: New file.
3429         * tests/test-dprintf-posix.sh: New file.
3430         * tests/test-dprintf-posix.c: New file.
3431
3432         New modules 'dprintf', 'dprintf-posix'.
3433         * lib/stdio.in.h (dprintf): New declaration.
3434         * lib/dprintf.c: New file.
3435         * m4/dprintf.m4: New file.
3436         * m4/dprintf-posix.m4: New file.
3437         * modules/dprintf: New file.
3438         * modules/dprintf-posix: New file.
3439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
3440         HAVE_DPRINTF, REPLACE_DPRINTF.
3441         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
3442         HAVE_DPRINTF, REPLACE_DPRINTF.
3443         * doc/posix-functions/dprintf.texi: Mention the new modules.
3444
3445 2009-01-17  Bruno Haible  <bruno@clisp.org>
3446
3447         * modules/vdprintf-posix-tests: New file.
3448         * tests/test-vdprintf-posix.sh: New file.
3449         * tests/test-vdprintf-posix.c: New file.
3450
3451         New modules 'vdprintf', 'vdprintf-posix'.
3452         * lib/stdio.in.h (vdprintf): New declaration.
3453         * lib/vdprintf.c: New file.
3454         * m4/vdprintf.m4: New file.
3455         * m4/vdprintf-posix.m4: New file.
3456         * modules/vdprintf: New file.
3457         * modules/vdprintf-posix: New file.
3458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
3459         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3460         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
3461         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3462         * doc/posix-functions/vdprintf.texi: Mention the new modules.
3463
3464 2009-01-17  Bruno Haible  <bruno@clisp.org>
3465
3466         Fix replacement of fopen on mingw.
3467         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
3468         mingw.
3469
3470 2009-01-17  Bruno Haible  <bruno@clisp.org>
3471
3472         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
3473         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
3474
3475 2009-01-17  Bruno Haible  <bruno@clisp.org>
3476
3477         Avoid test-fflush2.sh failure on mingw.
3478         * tests/test-fflush2.c: Include binary-io.h.
3479         (main): Put standard input into binary mode.
3480         * modules/fflush-tests (Depends-on): Add binary-io.
3481
3482 2009-01-17  Bruno Haible  <bruno@clisp.org>
3483
3484         * lib/wchar.in.h: In another particular situation, include only the
3485         system's <wchar.h> file.
3486         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
3487         Reported by Albert Chin-A-Young <china@thewrittenword.com>
3488         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
3489
3490 2009-01-17  Bruno Haible  <bruno@clisp.org>
3491
3492         Support for stripping executables in --enable-relocatable.
3493         * build-aux/install-reloc: Expect one more argument, or an environment
3494         variable RELOC_STRIP_PROG. If set, strip the destination program and
3495         its wrapper.
3496         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
3497         RELOC_STRIP_PROG.
3498         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
3499         to set RELOCATABLE_STRIP.
3500         * NEWS: Mention the new Makefile requirement.
3501
3502 2009-01-17  Bruno Haible  <bruno@clisp.org>
3503
3504         * build-aux/install-reloc: Remove debugging information left over by
3505         C compiler on MacOS X.
3506
3507 2009-01-17  Bruno Haible  <bruno@clisp.org>
3508
3509         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
3510         * lib/progreloc.c (find_executable): Fix type of pointer passed to
3511         _NSGetExecutablePath.
3512
3513 2009-01-16  Jim Meyering  <meyering@redhat.com>
3514
3515         strerror: avoid warnings about discarding "const"
3516         * lib/strerror.c (rpl_strerror): Instead of returning a const
3517         string from each and every "case", use a variable, and add a single
3518         cast after the switch.
3519
3520 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
3521
3522         * lib/arpa_inet.in.h: Add extern "C" block for C++.
3523
3524 2009-01-16  Bruno Haible  <bruno@clisp.org>
3525
3526         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
3527         array initializer syntax that also works in C++ mode.
3528         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3529
3530 2009-01-16  Jim Meyering  <meyering@redhat.com>
3531
3532         poll: suppress a warning
3533         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
3534         to ignore "...unsigned expression < 0 is always false" warnings.
3535
3536 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
3537
3538         poll: remove declarations of unused variables
3539         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
3540         sockbuf and optlen.
3541
3542 2009-01-15  Bruno Haible  <bruno@clisp.org>
3543
3544         Make fflush-after-ungetc POSIX compliant on BSD systems.
3545         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
3546         (clear_ungetc_buffer): Implement also for other systems.
3547         (rpl_fflush): On glibc systems, invoke
3548         clear_ungetc_buffer_preserving_position. Otherwise, invoke
3549         clear_ungetc_buffer after fetching the stream's position, not before.
3550
3551 2009-01-15  Bruno Haible  <bruno@clisp.org>
3552
3553         Make fflush-after-ungetc POSIX compliant on glibc systems.
3554         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
3555         after ungetc.
3556         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
3557         (rpl_fflush): On glibc systems, simply call the system's fflush
3558         function after clearing the ungetc buffer.
3559         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
3560         Instead, lseek only to the end of file, then use the system's fseeko
3561         for the rest. On glibc systems, reset the EOF indicator bit.
3562
3563 2009-01-15  Jim Meyering  <meyering@redhat.com>
3564
3565         openmp.m4: revert quote-adding change, for portability to older autoconf
3566         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
3567         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
3568         Simon Josefsson noticed the problem when using autoconf-2.61.
3569
3570 2009-01-15  Bruno Haible  <bruno@clisp.org>
3571
3572         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
3573         * tests/test-fflush2.c (ASSERT): Always fail.
3574         (main): Add two tests for fflush() after ungetc(), taking into account
3575         the Austin Group's clarification.
3576         Suggested by Eric Blake.
3577
3578 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
3579
3580         mktime.m4: remove K&R-style function prototypes
3581         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
3582         for the Sun C++ compiler.
3583
3584 2009-01-14  Bruno Haible  <bruno@clisp.org>
3585
3586         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
3587         while including <wchar.h>.
3588         * lib/wchar.in.h: In two particular situations on HP-UX, include only
3589         the system's <wchar.h> file.
3590         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3591
3592 2009-01-14  Bruno Haible  <bruno@clisp.org>
3593
3594         * m4/csharp.m4: Don't mention gettext on the serial number line.
3595         * m4/csharpexec.m4: Likewise.
3596         * m4/eaccess.m4: Likewise.
3597         * m4/javaexec.m4: Likewise.
3598         * m4/sig_atomic_t.m4: Likewise.
3599         * m4/tmpdir.m4: Likewise.
3600         * m4/intldir.m4: Bump gettext version.
3601         * m4/lib-ld.m4: Likewise.
3602
3603 2009-01-14  Bruno Haible  <bruno@clisp.org>
3604
3605         * lib/progname.c (set_program_name): Add more comments.
3606         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3607
3608 2009-01-14  Simon Josefsson  <simon@josefsson.org>
3609
3610         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
3611         were sys/stat.h does not define it.
3612
3613 2009-01-14  Jim Meyering  <meyering@redhat.com>
3614
3615         many *.m4 files: improve m4 quoting
3616         99% of this change was performed by running the following commands:
3617         git ls-files | grep '\.m4$' | xargs perl -pi \
3618           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
3619           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3620           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3621           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
3622         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
3623         The remainder were to add Copyright dates, increment serial numbers,
3624         undo some changes in comments, exclude m4/intl.m4, and add quotes
3625         around the "1" in ",1" where the unusual spacing prohibited the
3626         above regexps from doing the job.  For more details, see
3627         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
3628         * m4/acl.m4: Modified.
3629         * m4/afs.m4: Likewise.
3630         * m4/alloca.m4: Likewise.
3631         * m4/argp.m4: Likewise.
3632         * m4/argz.m4: Likewise.
3633         * m4/atexit.m4: Likewise.
3634         * m4/bison-i18n.m4: Likewise.
3635         * m4/bison.m4: Likewise.
3636         * m4/byteswap.m4: Likewise.
3637         * m4/c-stack.m4: Likewise.
3638         * m4/c-strtod.m4: Likewise.
3639         * m4/calloc.m4: Likewise.
3640         * m4/canonicalize-lgpl.m4: Likewise.
3641         * m4/chown.m4: Likewise.
3642         * m4/clock_time.m4: Likewise.
3643         * m4/codeset.m4: Likewise.
3644         * m4/copy-file.m4: Likewise.
3645         * m4/csharp.m4: Likewise.
3646         * m4/csharpcomp.m4: Likewise.
3647         * m4/csharpexec.m4: Likewise.
3648         * m4/d-ino.m4: Likewise.
3649         * m4/d-type.m4: Likewise.
3650         * m4/dirfd.m4: Likewise.
3651         * m4/double-slash-root.m4: Likewise.
3652         * m4/eaccess.m4: Likewise.
3653         * m4/eealloc.m4: Likewise.
3654         * m4/environ.m4: Likewise.
3655         * m4/errno_h.m4: Likewise.
3656         * m4/euidaccess.m4: Likewise.
3657         * m4/execute.m4: Likewise.
3658         * m4/fatal-signal.m4: Likewise.
3659         * m4/fchdir.m4: Likewise.
3660         * m4/fcntl_h.m4: Likewise.
3661         * m4/fileblocks.m4: Likewise.
3662         * m4/filenamecat.m4: Likewise.
3663         * m4/findprog.m4: Likewise.
3664         * m4/flexmember.m4: Likewise.
3665         * m4/fnmatch.m4: Likewise.
3666         * m4/fopen.m4: Likewise.
3667         * m4/fpending.m4: Likewise.
3668         * m4/fprintf-posix.m4: Likewise.
3669         * m4/free.m4: Likewise.
3670         * m4/frexp.m4: Likewise.
3671         * m4/frexpl.m4: Likewise.
3672         * m4/fsusage.m4: Likewise.
3673         * m4/ftruncate.m4: Likewise.
3674         * m4/gc-camellia.m4: Likewise.
3675         * m4/gc-random.m4: Likewise.
3676         * m4/gc.m4: Likewise.
3677         * m4/getaddrinfo.m4: Likewise.
3678         * m4/getcwd-abort-bug.m4: Likewise.
3679         * m4/getcwd-path-max.m4: Likewise.
3680         * m4/getdate.m4: Likewise.
3681         * m4/getdomainname.m4: Likewise.
3682         * m4/getgroups.m4: Likewise.
3683         * m4/gethostname.m4: Likewise.
3684         * m4/gethrxtime.m4: Likewise.
3685         * m4/getline.m4: Likewise.
3686         * m4/getloadavg.m4: Likewise.
3687         * m4/getndelim2.m4: Likewise.
3688         * m4/getpass.m4: Likewise.
3689         * m4/gettext.m4: Likewise.
3690         * m4/gettime.m4: Likewise.
3691         * m4/gettimeofday.m4: Likewise.
3692         * m4/gnulib-common.m4: Likewise.
3693         * m4/group-member.m4: Likewise.
3694         * m4/host-os.m4: Likewise.
3695         * m4/iconv.m4: Likewise.
3696         * m4/iconv_open.m4: Likewise.
3697         * m4/inet_ntop.m4: Likewise.
3698         * m4/inet_pton.m4: Likewise.
3699         * m4/inline.m4: Likewise.
3700         * m4/intldir.m4: Likewise.
3701         * m4/intlmacosx.m4: Likewise.
3702         * m4/intmax.m4: Likewise.
3703         * m4/intmax_t.m4: Likewise.
3704         * m4/inttypes.m4: Likewise.
3705         * m4/inttypes_h.m4: Likewise.
3706         * m4/inttypes-pri.m4: Likewise.
3707         * m4/isapipe.m4: Likewise.
3708         * m4/isnand.m4: Likewise.
3709         * m4/isnanf.m4: Likewise.
3710         * m4/isnanl.m4: Likewise.
3711         * m4/javacomp.m4: Likewise.
3712         * m4/javaexec.m4: Likewise.
3713         * m4/jm-winsz1.m4: Likewise.
3714         * m4/jm-winsz2.m4: Likewise.
3715         * m4/lchown.m4: Likewise.
3716         * m4/lcmessage.m4: Likewise.
3717         * m4/ldexpl.m4: Likewise.
3718         * m4/lib-ld.m4: Likewise.
3719         * m4/lib-link.m4: Likewise.
3720         * m4/libsigsegv.m4: Likewise.
3721         * m4/link-follow.m4: Likewise.
3722         * m4/localcharset.m4: Likewise.
3723         * m4/locale-fr.m4: Likewise.
3724         * m4/locale-ja.m4: Likewise.
3725         * m4/locale-tr.m4: Likewise.
3726         * m4/locale-zh.m4: Likewise.
3727         * m4/lock.m4: Likewise.
3728         * m4/longlong.m4: Likewise.
3729         * m4/ls-mntd-fs.m4: Likewise.
3730         * m4/lstat.m4: Likewise.
3731         * m4/malloc.m4: Likewise.
3732         * m4/mathl.m4: Likewise.
3733         * m4/mbrtowc.m4: Likewise.
3734         * m4/mbstate_t.m4: Likewise.
3735         * m4/mbswidth.m4: Likewise.
3736         * m4/memchr.m4: Likewise.
3737         * m4/memcmp.m4: Likewise.
3738         * m4/memcpy.m4: Likewise.
3739         * m4/memmem.m4: Likewise.
3740         * m4/memmove.m4: Likewise.
3741         * m4/mempcpy.m4: Likewise.
3742         * m4/memrchr.m4: Likewise.
3743         * m4/memset.m4: Likewise.
3744         * m4/minmax.m4: Likewise.
3745         * m4/mkdir-slash.m4: Likewise.
3746         * m4/mkdtemp.m4: Likewise.
3747         * m4/mktime.m4: Likewise.
3748         * m4/mmap-anon.m4: Likewise.
3749         * m4/mountlist.m4: Likewise.
3750         * m4/nanosleep.m4: Likewise.
3751         * m4/nls.m4: Likewise.
3752         * m4/nocrash.m4: Likewise.
3753         * m4/open.m4: Likewise.
3754         * m4/openat.m4: Likewise.
3755         * m4/openmp.m4: Likewise.
3756         * m4/pathmax.m4: Likewise.
3757         * m4/perl.m4: Likewise.
3758         * m4/physmem.m4: Likewise.
3759         * m4/pipe.m4: Likewise.
3760         * m4/po.m4: Likewise.
3761         * m4/poll.m4: Likewise.
3762         * m4/posixtm.m4: Likewise.
3763         * m4/posixver.m4: Likewise.
3764         * m4/printf-frexp.m4: Likewise.
3765         * m4/printf-frexpl.m4: Likewise.
3766         * m4/printf-posix.m4: Likewise.
3767         * m4/printf-posix-rpl.m4: Likewise.
3768         * m4/printf.m4: Likewise.
3769         * m4/progtest.m4: Likewise.
3770         * m4/putenv.m4: Likewise.
3771         * m4/readline.m4: Likewise.
3772         * m4/readlink.m4: Likewise.
3773         * m4/readutmp.m4: Likewise.
3774         * m4/realloc.m4: Likewise.
3775         * m4/regex.m4: Likewise.
3776         * m4/relocatable.m4: Likewise.
3777         * m4/relocatable-lib.m4: Likewise.
3778         * m4/rename-dest-slash.m4: Likewise.
3779         * m4/rename.m4: Likewise.
3780         * m4/rmdir-errno.m4: Likewise.
3781         * m4/rmdir.m4: Likewise.
3782         * m4/roundf.m4: Likewise.
3783         * m4/roundl.m4: Likewise.
3784         * m4/rpmatch.m4: Likewise.
3785         * m4/save-cwd.m4: Likewise.
3786         * m4/selinux-selinux-h.m4: Likewise.
3787         * m4/setenv.m4: Likewise.
3788         * m4/settime.m4: Likewise.
3789         * m4/sig2str.m4: Likewise.
3790         * m4/sig_atomic_t.m4: Likewise.
3791         * m4/signalblocking.m4: Likewise.
3792         * m4/signbit.m4: Likewise.
3793         * m4/sigpipe.m4: Likewise.
3794         * m4/sockets.m4: Likewise.
3795         * m4/sockpfaf.m4: Likewise.
3796         * m4/st_dm_mode.m4: Likewise.
3797         * m4/stat-time.m4: Likewise.
3798         * m4/stdbool.m4: Likewise.
3799         * m4/stdint.m4: Likewise.
3800         * m4/stdint_h.m4: Likewise.
3801         * m4/stpcpy.m4: Likewise.
3802         * m4/stpncpy.m4: Likewise.
3803         * m4/strcase.m4: Likewise.
3804         * m4/strchrnul.m4: Likewise.
3805         * m4/strcspn.m4: Likewise.
3806         * m4/strdup.m4: Likewise.
3807         * m4/strftime.m4: Likewise.
3808         * m4/strndup.m4: Likewise.
3809         * m4/strnlen.m4: Likewise.
3810         * m4/strpbrk.m4: Likewise.
3811         * m4/strptime.m4: Likewise.
3812         * m4/strsep.m4: Likewise.
3813         * m4/strtod.m4: Likewise.
3814         * m4/strtoimax.m4: Likewise.
3815         * m4/strtok_r.m4: Likewise.
3816         * m4/strtol.m4: Likewise.
3817         * m4/strtoll.m4: Likewise.
3818         * m4/strtoul.m4: Likewise.
3819         * m4/strtoull.m4: Likewise.
3820         * m4/strtoumax.m4: Likewise.
3821         * m4/strverscmp.m4: Likewise.
3822         * m4/threadlib.m4: Likewise.
3823         * m4/timegm.m4: Likewise.
3824         * m4/tm_gmtoff.m4: Likewise.
3825         * m4/tmpdir.m4: Likewise.
3826         * m4/tmpfile.m4: Likewise.
3827         * m4/tzset.m4: Likewise.
3828         * m4/uintmax_t.m4: Likewise.
3829         * m4/unlinkdir.m4: Likewise.
3830         * m4/unlocked-io.m4: Likewise.
3831         * m4/uptime.m4: Likewise.
3832         * m4/userspec.m4: Likewise.
3833         * m4/utimbuf.m4: Likewise.
3834         * m4/utime.m4: Likewise.
3835         * m4/utimes-null.m4: Likewise.
3836         * m4/utimes.m4: Likewise.
3837         * m4/vararrays.m4: Likewise.
3838         * m4/vasnprintf.m4: Likewise.
3839         * m4/vfprintf-posix.m4: Likewise.
3840         * m4/vprintf-posix.m4: Likewise.
3841         * m4/wait-process.m4: Likewise.
3842         * m4/wchar_t.m4: Likewise.
3843         * m4/wint_t.m4: Likewise.
3844         * m4/write-any-file.m4: Likewise.
3845         * m4/yield.m4: Likewise.
3846
3847 2009-01-13  Bruno Haible  <bruno@clisp.org>
3848
3849         Avoid test-copy-file.sh failures when ACL support insufficient.
3850         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3851         TESTS_ENVIRONMENT.
3852         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3853         Reported by Jim Meyering.
3854
3855 2009-01-13  Bruno Haible  <bruno@clisp.org>
3856
3857         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3858         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3859         * modules/unistdio/u8-printf-parse (Files): Likewise.
3860         * modules/unistdio/u32-printf-parse (Files): Likewise.
3861         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3862
3863 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3864
3865         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3866         and m4/inttypes_h.m4 too.
3867
3868 2009-01-12  Eric Blake  <ebb9@byu.net>
3869
3870         tests: IRIX 6.2 cc can't compile -0.0 into .data
3871         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3872         rather than at compile-time.
3873         * tests/test-floorl.c (minus_zero): Likewise.
3874         * tests/test-frexpl.c (minus_zero): Likewise.
3875         * tests/test-isnan.c (minus_zerol): Likewise.
3876         * tests/test-isnanl.h (minus_zero): Likewise.
3877         * tests/test-ldexpl.c (minus_zero): Likewise.
3878         * tests/test-roundl.c (minus_zero): Likewise.
3879         * tests/test-signbit.c (minus_zerol): Likewise.
3880         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3881         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3882         * tests/test-truncl.c (minus_zero): Likewise.
3883         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3884         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3885         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3886
3887 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3888
3889         regex: fix glibc bug 9697
3890         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3891         handling.
3892
3893 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3894
3895         regex: fix glibc bug 697
3896         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3897         being NULL also if there are no backreferences.
3898
3899 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3900
3901         regex: merge glibc changes
3902         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3903         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3904         re_string_skip_chars, re_string_reconstruct): Likewise.
3905         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3906
3907 2009-01-07  Jim Meyering  <meyering@redhat.com>
3908
3909         poll: filter through cppi
3910         * lib/poll.c: Indent cpp directives to reflect nesting.
3911
3912 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3913
3914         poll: don't return uninitialized
3915         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3916
3917 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3918
3919         avoid compile failure on AIX 6.1
3920         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3921         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3922
3923 2009-01-04  Jim Meyering  <meyering@redhat.com>
3924
3925         remove duplicate inclusion of <stdio.h>
3926         * tests/test-fprintf-posix.c: Likewise.
3927         * tests/test-printf-posix.c: Likewise.
3928         * tests/test-snprintf-posix.c: Likewise.
3929         * tests/test-sprintf-posix.c: Likewise.
3930         * tests/test-vasprintf-posix.c: Likewise.
3931         * tests/test-vfprintf-posix.c: Likewise.
3932         * tests/test-vprintf-posix.c: Likewise.
3933         * tests/test-vsnprintf-posix.c: Likewise.
3934         * tests/test-vsprintf-posix.c: Likewise.
3935
3936 2009-01-03  Jim Meyering  <meyering@redhat.com>
3937
3938         gnulib-tool: fix sed-based filtering
3939         * gnulib-tool (func_filter_filelist): Remove extra backslash
3940         in sed_fff_filter definition.
3941
3942 2009-01-02  Jim Meyering  <meyering@redhat.com>
3943
3944         strftime: avoid compilation failure on Solaris 2.6
3945         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3946         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3947         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3948         be available.  Reported by Tom G. Christensen.  Details in
3949         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3950
3951 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3952             Bruno Haible  <bruno@clisp.org>
3953
3954         Speed up gnulib-tool by doing more string processing through shell
3955         built-ins.
3956         * gnulib-tool (fast_func_append): New variable.
3957         (func_remove_prefix, func_remove_suffix): New functions.
3958         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3959         (func_filter_filelist): New function.
3960         (func_get_dependencies): Use func_remove_suffix instead of sed.
3961         (func_get_automake_snippet): Use func_filter_filelist instead of a
3962         subshell and sed invocation.
3963
3964 2009-01-01  Bruno Haible  <bruno@clisp.org>
3965
3966         Fix a security bug.
3967         * gnulib-tool (func_import, import, update): Don't allow the characters
3968         '"', '$', '`', '\' in macro arguments that become part of commands that
3969         are evaluated.
3970
3971 2009-01-01  Bruno Haible  <bruno@clisp.org>
3972
3973         * gnulib-tool (func_reset_sigpipe): Add more comments.
3974
3975 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3976
3977         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3978         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3979         already know the answer.
3980
3981 2009-01-01  Jim Meyering  <meyering@redhat.com>
3982
3983         * lib/version-etc.c (version_etc_va): Update copyright year.
3984
3985 2008-12-30  Bruno Haible  <bruno@clisp.org>
3986
3987         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3988         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3989         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3990
3991 2008-12-29  Eric Blake  <ebb9@byu.net>
3992
3993         multiarch: avoid autoconf AC_REQUIRE bug
3994         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3995         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3996         2.63 and older.
3997         Reported by Bruno Haible, and analyzed in
3998         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3999
4000 2008-12-29  Bruno Haible  <bruno@clisp.org>
4001
4002         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
4003         files in subdirectories correctly.
4004         Reported by Ralf Wildenhues.
4005
4006 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4007
4008         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
4009         rather than 'join FILE -', for Solaris join.
4010
4011 2008-12-29  Bruno Haible  <bruno@clisp.org>
4012
4013         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
4014         quoting.
4015         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
4016         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4017         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4018         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
4019         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4020         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
4021         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4022         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4023         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4024         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
4025         * m4/nls.m4 (AM_NLS): Likewise.
4026         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
4027         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
4028         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4029         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4030         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4031         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4032         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
4033         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4034         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4035         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4036         * m4/xsize.m4 (gl_XSIZE): Likewise.
4037         Suggested by Jim Meyering.
4038
4039 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4040
4041         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
4042         * lib/parse-duration.c: use a switch instead of cascading if's.
4043
4044 2008-12-29  Eric Blake  <ebb9@byu.net>
4045
4046         wchar.h: supply WEOF on Irix 5.3
4047         * lib/wchar.in.h (wint_t): Also supply WEOF.
4048         * lib/wctype.in.h (wint_t): Likewise.
4049         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
4050         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
4051         Reported by Tom G. Christensen.
4052
4053 2008-12-26  Bruno Haible  <bruno@clisp.org>
4054
4055         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
4056         i486, i586, i686.
4057
4058 2008-12-26  Bruno Haible  <bruno@clisp.org>
4059
4060         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
4061
4062 2008-12-26  Bruno Haible  <bruno@clisp.org>
4063
4064         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
4065         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
4066         not __STDC_CONSTANT_MACROS.
4067         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
4068
4069 2008-12-25  Bruno Haible  <bruno@clisp.org>
4070
4071         Add support for universal builds to vasnprintf.
4072         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
4073         universal builds, guess no.
4074         * modules/vasnprintf-posix (Depends-on): Add multiarch.
4075         * modules/vasprintf-posix (Depends-on): Likewise.
4076         * modules/fprintf-posix (Depends-on): Likewise.
4077         * modules/vfprintf-posix (Depends-on): Likewise.
4078         * modules/snprintf-posix (Depends-on): Likewise.
4079         * modules/vsnprintf-posix (Depends-on): Likewise.
4080         * modules/sprintf-posix (Depends-on): Likewise.
4081         * modules/vsprintf-posix (Depends-on): Likewise.
4082         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4083         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4084         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4085         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4086         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4087         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4088         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4089
4090         Add support for universal builds to <inttypes.h>.
4091         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
4092         _SCNu64_PREFIX): In Apple
4093         universal builds, define directly, using _LP64.
4094         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
4095         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
4096         * modules/inttypes (Depends-on): Add multiarch.
4097         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
4098
4099         Add support for universal builds to <stdint.h>.
4100         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
4101         universal builds, define directly, using _LP64.
4102         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
4103         Apple universal builds, don't test for the size and suffix of ptrdiff_t
4104         and size_t.
4105         * modules/stdint (Depends-on): Add multiarch.
4106         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
4107
4108         New module 'multiarch'.
4109         * modules/multiarch: New file.
4110         * m4/multiarch.m4: New file.
4111
4112 2008-12-25  Bruno Haible  <bruno@clisp.org>
4113
4114         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
4115
4116 2008-12-25  Bruno Haible  <bruno@clisp.org>
4117
4118         * modules/btowc (License): Relicense under LGPLv2+.
4119         * modules/mbsinit (License): Likewise.
4120         * modules/mbrtowc (License): Likewise.
4121         * modules/wcrtomb (License): Likewise.
4122         * modules/streq (License): Likewise.
4123         Reported by David Lutterkort <lutter@redhat.com>.
4124
4125 2008-12-23  Bruno Haible  <bruno@clisp.org>
4126
4127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
4128
4129 2008-12-23  Bruno Haible  <bruno@clisp.org>
4130
4131         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
4132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
4133         GETADDRINFO_LIB, not in LIBS.
4134         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
4135         * modules/canon-host (Link): Likewise.
4136         * NEWS: Mention the change.
4137         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
4138         GETADDRINFO_LIB.
4139
4140 2008-12-22  Bruno Haible  <bruno@clisp.org>
4141
4142         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
4143         * doc/posix-functions/iswalpha_l.texi: Likewise.
4144         * doc/posix-functions/iswblank_l.texi: Likewise.
4145         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4146         * doc/posix-functions/iswctype_l.texi: Likewise.
4147         * doc/posix-functions/iswdigit_l.texi: Likewise.
4148         * doc/posix-functions/iswgraph_l.texi: Likewise.
4149         * doc/posix-functions/iswlower_l.texi: Likewise.
4150         * doc/posix-functions/iswprint_l.texi: Likewise.
4151         * doc/posix-functions/iswpunct_l.texi: Likewise.
4152         * doc/posix-functions/iswspace_l.texi: Likewise.
4153         * doc/posix-functions/iswupper_l.texi: Likewise.
4154         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4155         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
4156         * doc/posix-functions/open_wmemstream.texi: Likewise.
4157         * doc/posix-functions/swscanf.texi: Likewise.
4158         * doc/posix-functions/towctrans_l.texi: Likewise.
4159         * doc/posix-functions/towlower.texi: Likewise.
4160         * doc/posix-functions/towlower_l.texi: Likewise.
4161         * doc/posix-functions/towupper.texi: Likewise.
4162         * doc/posix-functions/towupper_l.texi: Likewise.
4163         * doc/posix-functions/vfwprintf.texi: Likewise.
4164         * doc/posix-functions/vfwscanf.texi: Likewise.
4165         * doc/posix-functions/vswscanf.texi: Likewise.
4166         * doc/posix-functions/vwprintf.texi: Likewise.
4167         * doc/posix-functions/vwscanf.texi: Likewise.
4168         * doc/posix-functions/wcpcpy.texi: Likewise.
4169         * doc/posix-functions/wcpncpy.texi: Likewise.
4170         * doc/posix-functions/wcscasecmp.texi: Likewise.
4171         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
4172         * doc/posix-functions/wcscoll_l.texi: Likewise.
4173         * doc/posix-functions/wcsdup.texi: Likewise.
4174         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4175         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
4176         * doc/posix-functions/wcsnlen.texi: Likewise.
4177         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4178         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4179         * doc/posix-functions/wctrans_l.texi: Likewise.
4180         * doc/posix-functions/wctype_l.texi: Likewise.
4181         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
4182         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
4183         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
4184         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
4185         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
4186         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
4187         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
4188         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
4189         * doc/glibc-functions/wcschrnul.texi: Likewise.
4190         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4191         * doc/glibc-functions/wcstod_l.texi: Likewise.
4192         * doc/glibc-functions/wcstof_l.texi: Likewise.
4193         * doc/glibc-functions/wcstol_l.texi: Likewise.
4194         * doc/glibc-functions/wcstold_l.texi: Likewise.
4195         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4196         * doc/glibc-functions/wcstoq.texi: Likewise.
4197         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4198         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4199         * doc/glibc-functions/wcstouq.texi: Likewise.
4200         * doc/glibc-functions/wmempcpy.texi: Likewise.
4201
4202 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
4203             Eric Blake  <ebb9@byu.net>
4204             Paolo Bonzini  <bonzini@gnu.org>
4205             Bruno Haible  <bruno@clisp.org>
4206
4207         Make c-stack work on Haiku.
4208         * lib/c-stack.c (SA_ONSTACK): Define fallback.
4209         (c_stack_action): Use SA_ONSTACK flag.
4210
4211 2008-12-22  Bruno Haible  <bruno@clisp.org>
4212
4213         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
4214
4215 2008-12-22  Bruno Haible  <bruno@clisp.org>
4216
4217         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
4218         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
4219         being overridden.
4220         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
4221         New macros.
4222         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
4223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
4224         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
4225         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
4226
4227 2008-12-22  Bruno Haible  <bruno@clisp.org>
4228
4229         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
4230         from test code.
4231
4232 2008-12-22  Eric Blake  <ebb9@byu.net>
4233
4234         Avoid gcc warnings on cygwin.
4235         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
4236         Avoid unused variable.
4237         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
4238         Likewise.
4239
4240 2008-12-22  Bruno Haible  <bruno@clisp.org>
4241
4242         Remove HAVE_MBRTOWC conditionals.
4243         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
4244         (mbscasecmp): Assume mbrtowc function.
4245         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
4246         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
4247         * lib/mbschr.c: Include mbuiter.h unconditionally.
4248         (mbschr): Assume mbrtowc function.
4249         * lib/mbscspn.c: Include mbuiter.h unconditionally.
4250         (mbscspn): Assume mbrtowc function.
4251         * lib/mbslen.c: Include mbuiter.h unconditionally.
4252         (mbslen): Assume mbrtowc function.
4253         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
4254         (mbsncasecmp): Assume mbrtowc function.
4255         * lib/mbsnlen.c: Include mbiter.h unconditionally.
4256         (mbsnlen): Assume mbrtowc function.
4257         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
4258         (mbspbrk): Assume mbrtowc function.
4259         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
4260         (mbspcasecmp): Assume mbrtowc function.
4261         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
4262         (mbsrchr): Assume mbrtowc function.
4263         * lib/mbssep.c: Include mbuiter.h unconditionally.
4264         (mbssep): Assume mbrtowc function.
4265         * lib/mbsspn.c: Include mbuiter.h unconditionally.
4266         (mbsspn): Assume mbrtowc function.
4267         * lib/mbsstr.c: Include mbuiter.h unconditionally.
4268         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
4269         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
4270         (mbstok_r): Assume mbrtowc function.
4271         * lib/propername.c: Include mbuiter.h unconditionally.
4272         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
4273         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
4274         (trim2): Assume mbrtowc function.
4275         * lib/mbswidth.c (mbsinit): Remove fallback definition.
4276         (mbsnwidth): Assume mbrtowc function.
4277         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
4278         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
4279         fallback definitions.
4280         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
4281
4282 2008-12-22  Bruno Haible  <bruno@clisp.org>
4283
4284         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
4285
4286 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
4287
4288         * modules/regex: Request emulations for the mb*/wc* functions we need.
4289         * m4/regex.m4: Don't look for those functions here.
4290         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
4291
4292 2008-12-22  Bruno Haible  <bruno@clisp.org>
4293
4294         * modules/fnmatch (Depends-on): Remove duplicated dependency.
4295
4296 2008-12-21  Bruno Haible  <bruno@clisp.org>
4297
4298         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
4299         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
4300         (Include): Remove conditionalization.
4301         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
4302         (Include): Remove conditionalization.
4303         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
4304         (Include): Remove conditionalization.
4305         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
4306         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4307         * NEWS: Mention the change.
4308         Reported by Alan Hourihane <alanh@fairlite.co.uk>
4309         via Sergey Poznyakoff <gray@gnu.org.ua>.
4310
4311 2008-12-21  Bruno Haible  <bruno@clisp.org>
4312
4313         * MODULES.html.sh (Extended multibyte and wide character utilities
4314         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
4315         wcrtomb, wcsrtombs.
4316         (Support for systems lacking POSIX:2008): Add accept, bind, close,
4317         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
4318         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
4319         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
4320
4321 2008-12-21  Bruno Haible  <bruno@clisp.org>
4322
4323         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
4324
4325 2008-12-21  Bruno Haible  <bruno@clisp.org>
4326
4327         * modules/wcsnrtombs-tests: New file.
4328         * tests/test-wcsnrtombs1.sh: New file.
4329         * tests/test-wcsnrtombs2.sh: New file.
4330         * tests/test-wcsnrtombs3.sh: New file.
4331         * tests/test-wcsnrtombs4.sh: New file.
4332         * tests/test-wcsnrtombs.c: New file.
4333
4334         New module 'wcsnrtombs'.
4335         * lib/wchar.in.h (wcsnrtombs): New declaration.
4336         * lib/wcsnrtombs.c: New file.
4337         * lib/wcsrtombs-state.c: New file.
4338         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
4339         (internal_state): Remove variable.
4340         * m4/wcsnrtombs.m4: New file.
4341         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
4342         compilation units.
4343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
4344         HAVE_WCSNRTOMBS.
4345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
4346         HAVE_WCSNRTOMBS.
4347         * modules/wcsnrtombs: New file.
4348         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
4349         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4350
4351 2008-12-21  Bruno Haible  <bruno@clisp.org>
4352
4353         * modules/wcsrtombs-tests: New file.
4354         * tests/test-wcsrtombs1.sh: New file.
4355         * tests/test-wcsrtombs2.sh: New file.
4356         * tests/test-wcsrtombs3.sh: New file.
4357         * tests/test-wcsrtombs4.sh: New file.
4358         * tests/test-wcsrtombs.c: New file.
4359
4360         New module 'wcsrtombs'.
4361         * lib/wchar.in.h (wcsrtombs): New declaration.
4362         * lib/wcsrtombs.c: New file.
4363         * m4/wcsrtombs.m4: New file.
4364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
4365         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
4367         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4368         * modules/wcsrtombs: New file.
4369         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
4370         bugs.
4371
4372 2008-12-21  Bruno Haible  <bruno@clisp.org>
4373
4374         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
4375         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
4376         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
4377         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
4378         if not correct.
4379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
4380         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
4381         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4382         m4/locale-zh.m4, m4/codeset.m4.
4383         * doc/posix-functions/wcrtomb.texi: Document the bug.
4384
4385 2008-12-21  Bruno Haible  <bruno@clisp.org>
4386
4387         Work around a btowc() bug on IRIX 6.5.
4388         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
4389         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
4390         REPLACE_WTOBC if not.
4391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
4392         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
4393         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
4394
4395 2008-12-21  Bruno Haible  <bruno@clisp.org>
4396
4397         * modules/wcrtomb-tests: New file.
4398         * tests/test-wcrtomb.sh: New file.
4399         * tests/test-wcrtomb.c: New file.
4400
4401         New module 'wcrtomb'.
4402         * lib/wchar.in.h (wcrtomb): New declaration.
4403         * lib/wcrtomb.c: New file.
4404         * m4/wcrtomb.m4: New file.
4405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
4406         HAVE_WCRTOMB.
4407         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
4408         HAVE_WCRTOMB.
4409         * modules/wcrtomb: New file.
4410         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4411
4412 2008-12-21  Bruno Haible  <bruno@clisp.org>
4413
4414         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
4415         * modules/mbsrtowcs (Files): Likewise.
4416         * modules/wctob (Files): Likewise.
4417         * modules/c-strcase-tests (Files): Likewise.
4418         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4419         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4420         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4421         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4422         * modules/vasnprintf-posix-tests (Files): Likewise.
4423
4424 2008-12-21  William Pursell  <bill.pursell@gmail.com>
4425
4426         gitlog-to-changelog: pass all command-line arguments to git-log
4427         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
4428         it is sometimes convenient to filter the commits in various ways.
4429         gitlog-to-changelog only allows --since to specify a start date,
4430         but git-log itself supports many other filtering mechanisms.
4431         At the moment, I want to filter by branch name.  Rather than
4432         adding a --branch option to gitlog-to-changelog, it seems more
4433         flexible to simply pass all options directly to git-log and let
4434         git do the work.  Notice that this effectively makes --since a
4435         redundant option for gitlog-to-changelog, but removing it would
4436         require current usage to change since calls would then require
4437         an additional '--'.
4438
4439 2008-12-21  Bruno Haible  <bruno@clisp.org>
4440
4441         * modules/mbsnrtowcs-tests: New file.
4442         * tests/test-mbsnrtowcs1.sh: New file.
4443         * tests/test-mbsnrtowcs2.sh: New file.
4444         * tests/test-mbsnrtowcs3.sh: New file.
4445         * tests/test-mbsnrtowcs4.sh: New file.
4446         * tests/test-mbsnrtowcs.c: New file.
4447
4448         New module 'mbsnrtowcs'.
4449         * lib/wchar.in.h (mbsnrtowcs): New declaration.
4450         * lib/mbsnrtowcs.c: New file.
4451         * lib/mbsrtowcs-state.c: New file.
4452         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
4453         (internal_state): Remove variable.
4454         * m4/mbsnrtowcs.m4: New file.
4455         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
4456         compilation units.
4457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
4458         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4459         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
4460         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4461         * modules/mbsnrtowcs: New file.
4462         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
4463         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
4464         portability problem.
4465
4466 2008-12-21  Bruno Haible  <bruno@clisp.org>
4467
4468         Work around mbsrtowcs bug.
4469         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
4470         (gl_FUNC_MBSRTOWCS): Invoke it.
4471         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4472         m4/locale-zh.m4.
4473         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
4474
4475 2008-12-21  Bruno Haible  <bruno@clisp.org>
4476
4477         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
4478
4479 2008-12-21  Bruno Haible  <bruno@clisp.org>
4480
4481         Update doc for AIX.
4482         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
4483         16-bit wchar_t type.
4484         * doc/posix-functions/btowc.texi: Likewise.
4485         * doc/posix-functions/fgetwc.texi: Likewise.
4486         * doc/posix-functions/fgetws.texi: Likewise.
4487         * doc/posix-functions/fputwc.texi: Likewise.
4488         * doc/posix-functions/fputws.texi: Likewise.
4489         * doc/posix-functions/fwide.texi: Likewise.
4490         * doc/posix-functions/fwprintf.texi: Likewise.
4491         * doc/posix-functions/fwscanf.texi: Likewise.
4492         * doc/posix-functions/getwchar.texi: Likewise.
4493         * doc/posix-functions/getwc.texi: Likewise.
4494         * doc/posix-functions/iswalnum.texi: Likewise.
4495         * doc/posix-functions/iswalpha.texi: Likewise.
4496         * doc/posix-functions/iswblank.texi: Likewise.
4497         * doc/posix-functions/iswcntrl.texi: Likewise.
4498         * doc/posix-functions/iswctype.texi: Likewise.
4499         * doc/posix-functions/iswdigit.texi: Likewise.
4500         * doc/posix-functions/iswgraph.texi: Likewise.
4501         * doc/posix-functions/iswlower.texi: Likewise.
4502         * doc/posix-functions/iswprint.texi: Likewise.
4503         * doc/posix-functions/iswpunct.texi: Likewise.
4504         * doc/posix-functions/iswspace.texi: Likewise.
4505         * doc/posix-functions/iswupper.texi: Likewise.
4506         * doc/posix-functions/iswxdigit.texi: Likewise.
4507         * doc/posix-functions/mbrtowc.texi: Likewise.
4508         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4509         * doc/posix-functions/mbstowcs.texi: Likewise.
4510         * doc/posix-functions/mbtowc.texi: Likewise.
4511         * doc/posix-functions/putwchar.texi: Likewise.
4512         * doc/posix-functions/putwc.texi: Likewise.
4513         * doc/posix-functions/swprintf.texi: Likewise.
4514         * doc/posix-functions/tolower.texi: Likewise.
4515         * doc/posix-functions/toupper.texi: Likewise.
4516         * doc/posix-functions/towctrans.texi: Likewise.
4517         * doc/posix-functions/ungetwc.texi: Likewise.
4518         * doc/posix-functions/vswprintf.texi: Likewise.
4519         * doc/posix-functions/wcrtomb.texi: Likewise.
4520         * doc/posix-functions/wcscat.texi: Likewise.
4521         * doc/posix-functions/wcschr.texi: Likewise.
4522         * doc/posix-functions/wcscmp.texi: Likewise.
4523         * doc/posix-functions/wcscoll.texi: Likewise.
4524         * doc/posix-functions/wcscpy.texi: Likewise.
4525         * doc/posix-functions/wcscspn.texi: Likewise.
4526         * doc/posix-functions/wcsftime.texi: Likewise.
4527         * doc/posix-functions/wcslen.texi: Likewise.
4528         * doc/posix-functions/wcsncat.texi: Likewise.
4529         * doc/posix-functions/wcsncmp.texi: Likewise.
4530         * doc/posix-functions/wcsncpy.texi: Likewise.
4531         * doc/posix-functions/wcspbrk.texi: Likewise.
4532         * doc/posix-functions/wcsrchr.texi: Likewise.
4533         * doc/posix-functions/wcsrtombs.texi: Likewise.
4534         * doc/posix-functions/wcsspn.texi: Likewise.
4535         * doc/posix-functions/wcsstr.texi: Likewise.
4536         * doc/posix-functions/wcstod.texi: Likewise.
4537         * doc/posix-functions/wcstof.texi: Likewise.
4538         * doc/posix-functions/wcstoimax.texi: Likewise.
4539         * doc/posix-functions/wcstok.texi: Likewise.
4540         * doc/posix-functions/wcstold.texi: Likewise.
4541         * doc/posix-functions/wcstoll.texi: Likewise.
4542         * doc/posix-functions/wcstol.texi: Likewise.
4543         * doc/posix-functions/wcstombs.texi: Likewise.
4544         * doc/posix-functions/wcstoull.texi: Likewise.
4545         * doc/posix-functions/wcstoul.texi: Likewise.
4546         * doc/posix-functions/wcstoumax.texi: Likewise.
4547         * doc/posix-functions/wcswidth.texi: Likewise.
4548         * doc/posix-functions/wcsxfrm.texi: Likewise.
4549         * doc/posix-functions/wctob.texi: Likewise.
4550         * doc/posix-functions/wctomb.texi: Likewise.
4551         * doc/posix-functions/wctrans.texi: Likewise.
4552         * doc/posix-functions/wctype.texi: Likewise.
4553         * doc/posix-functions/wcwidth.texi: Likewise.
4554         * doc/posix-functions/wmemchr.texi: Likewise.
4555         * doc/posix-functions/wmemcmp.texi: Likewise.
4556         * doc/posix-functions/wmemcpy.texi: Likewise.
4557         * doc/posix-functions/wmemmove.texi: Likewise.
4558         * doc/posix-functions/wmemset.texi: Likewise.
4559         * doc/posix-functions/wprintf.texi: Likewise.
4560         * doc/posix-functions/wscanf.texi: Likewise.
4561
4562 2008-12-21  Bruno Haible  <bruno@clisp.org>
4563
4564         Update doc for HP-UX 11.11.
4565         * doc/posix-functions/btowc.texi: Clarify that the function is missing
4566         in HP-UX version 11.00, not in all versions of HP-UX 11.
4567         * doc/posix-functions/fwide.texi: Likewise.
4568         * doc/posix-functions/fwprintf.texi: Likewise.
4569         * doc/posix-functions/fwscanf.texi: Likewise.
4570         * doc/posix-functions/inet_ntop.texi: Likewise.
4571         * doc/posix-functions/inet_pton.texi: Likewise.
4572         * doc/posix-functions/mbrlen.texi: Likewise.
4573         * doc/posix-functions/mbrtowc.texi: Likewise.
4574         * doc/posix-functions/mbsinit.texi: Likewise.
4575         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4576         * doc/posix-functions/swprintf.texi: Likewise.
4577         * doc/posix-functions/swscanf.texi: Likewise.
4578         * doc/posix-functions/towctrans.texi: Likewise.
4579         * doc/posix-functions/vfwprintf.texi: Likewise.
4580         * doc/posix-functions/vswprintf.texi: Likewise.
4581         * doc/posix-functions/vwprintf.texi: Likewise.
4582         * doc/posix-functions/wcrtomb.texi: Likewise.
4583         * doc/posix-functions/wcsrtombs.texi: Likewise.
4584         * doc/posix-functions/wcsstr.texi: Likewise.
4585         * doc/posix-functions/wctob.texi: Likewise.
4586         * doc/posix-functions/wctrans.texi: Likewise.
4587         * doc/posix-functions/wmemchr.texi: Likewise.
4588         * doc/posix-functions/wmemcmp.texi: Likewise.
4589         * doc/posix-functions/wmemcpy.texi: Likewise.
4590         * doc/posix-functions/wmemmove.texi: Likewise.
4591         * doc/posix-functions/wmemset.texi: Likewise.
4592         * doc/posix-functions/wprintf.texi: Likewise.
4593         * doc/posix-functions/wscanf.texi: Likewise.
4594
4595 2008-12-21  Bruno Haible  <bruno@clisp.org>
4596
4597         Work around a portability problem.
4598         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
4599         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
4600
4601 2008-12-20  Bruno Haible  <bruno@clisp.org>
4602
4603         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
4604         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
4605         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
4606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
4607         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
4608
4609         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
4610         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
4611         set.
4612         (GNULIB_defined_mbstate_t): New macro.
4613         (mbsinit): Redefine if REPLACE_MBSINIT is set.
4614         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
4615         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
4616         reuses the system's mbrtowc function but works around the bugs.
4617         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
4618         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
4619         macros.
4620         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
4621         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
4622         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
4623         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
4624         REPLACE_MBSINIT if mbsinit needs to be overridden.
4625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
4626         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4627         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
4628         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4629         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4630         m4/locale-zh.m4.
4631         (Depends): Add mbsinit.
4632         * modules/mbsinit (Depends): Add mbrtowc.
4633         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
4634
4635 2008-12-20  Bruno Haible  <bruno@clisp.org>
4636
4637         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
4638         so that there are no conversion errors on AIX.
4639         * tests/test-mbsrtowcs.c (main): LIkewise.
4640
4641 2008-12-20  Bruno Haible  <bruno@clisp.org>
4642
4643         Work around wctob bug on Solaris <= 9.
4644         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
4645         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
4646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
4647         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
4648         * modules/wctob (Files): Add m4/locale-fr.m4.
4649         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
4650
4651 2008-12-20  Bruno Haible  <bruno@clisp.org>
4652
4653         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
4654         /dev/null.
4655         * tests/test-select-in.sh: Likewise.
4656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4657
4658 2008-12-20  Bruno Haible  <bruno@clisp.org>
4659
4660         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
4661         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
4662         Cygwin 1.5.x.
4663
4664 2008-12-20  Bruno Haible  <bruno@clisp.org>
4665
4666         Ensure mbstate_t is defined on HP-UX 11.11.
4667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
4668         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
4669         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
4670         AC_USE_SYSTEM_EXTENSIONS.
4671         * modules/fnmatch (Depends-on): Add extensions.
4672         * modules/mbrlen (Depends-on): Likewise.
4673         * modules/mbrtowc (Depends-on): Likewise.
4674         * modules/mbsinit (Depends-on): Likewise.
4675         * modules/mbsrtowcs (Depends-on): Likewise.
4676         * modules/mbswidth (Depends-on): Likewise.
4677         * modules/quotearg (Depends-on): Likewise.
4678         * modules/strftime (Depends-on): Likewise.
4679
4680 2008-12-20  Bruno Haible  <bruno@clisp.org>
4681
4682         Ensure wctob is declared on IRIX 6.5.
4683         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
4684         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
4685         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
4686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
4687         of HAVE_WCTOB.
4688         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
4689         HAVE_WCTOB.
4690         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
4691
4692 2008-12-19  Bruno Haible  <bruno@clisp.org>
4693
4694         * modules/mbsrtowcs-tests: New file.
4695         * tests/test-mbsrtowcs1.sh: New file.
4696         * tests/test-mbsrtowcs2.sh: New file.
4697         * tests/test-mbsrtowcs3.sh: New file.
4698         * tests/test-mbsrtowcs4.sh: New file.
4699         * tests/test-mbsrtowcs.c: New file.
4700
4701         New module 'mbsrtowcs'.
4702         * lib/wchar.in.h (mbsrtowcs): New declaration.
4703         * lib/mbsrtowcs.c: New file.
4704         * m4/mbsrtowcs.m4: New file.
4705         * modules/mbsrtowcs: New file.
4706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
4707         HAVE_MBSRTOWCS.
4708         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
4709         HAVE_MBSRTOWCS.
4710         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
4711
4712 2008-12-19  Bruno Haible  <bruno@clisp.org>
4713
4714         New module 'mbrlen'.
4715         * lib/wchar.in.h (mbrlen): New declaration.
4716         * lib/mbrlen.c: New file.
4717         * m4/mbrlen.m4: New file.
4718         * modules/mbrlen: New file.
4719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
4720         HAVE_MBRLEN.
4721         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
4722         HAVE_MBRLEN.
4723         * doc/posix-functions/mbrlen.texi: Document the new module.
4724
4725 2008-12-19  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4728         * modules/mbrtowc (Depends-on): Add verify.
4729         Suggested by Paul Eggert.
4730
4731 2008-12-18  Bruno Haible  <bruno@clisp.org>
4732
4733         * modules/mbsinit-tests: New file.
4734         * tests/test-mbsinit.sh: New file.
4735         * tests/test-mbsinit.c: New file.
4736
4737 2008-12-18  Bruno Haible  <bruno@clisp.org>
4738
4739         * modules/mbrtowc-tests: New file.
4740         * tests/test-mbrtowc1.sh: New file.
4741         * tests/test-mbrtowc2.sh: New file.
4742         * tests/test-mbrtowc3.sh: New file.
4743         * tests/test-mbrtowc4.sh: New file.
4744         * tests/test-mbrtowc.c: New file.
4745
4746         New module 'mbrtowc'.
4747         * lib/wchar.in.h (mbstate_t): Override when the system does not have
4748         mbsinit and mbrtowc.
4749         (mbrtowc): New declaration.
4750         * lib/mbrtowc.c: New file.
4751         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4752         * modules/mbrtowc: New file.
4753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4754         HAVE_MBRTOWC.
4755         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4756         HAVE_MBRTOWC.
4757         * doc/posix-functions/mbrtowc.texi: Document the new module.
4758
4759 2008-12-18  Bruno Haible  <bruno@clisp.org>
4760
4761         New module 'wctob'.
4762         * lib/wchar.in.h (wctob): New declaration.
4763         * lib/wctob.c: New file.
4764         * m4/wctob.m4: New file.
4765         * modules/wctob: New file.
4766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4767         HAVE_WCTOB.
4768         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4769         * doc/posix-functions/wctob.texi: Document the new module.
4770
4771 2008-12-18  Bruno Haible  <bruno@clisp.org>
4772
4773         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4774         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4775
4776 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4777
4778         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4779         G. Christensen" <tgc@jupiterrise.com>.
4780
4781         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4782         G. Christensen" <tgc@jupiterrise.com>.
4783
4784         * lib/flock.c: Need to include string.h.  Reported by "Tom
4785         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4786         <ebb9@byu.net>.
4787
4788 2008-12-18  Bruno Haible  <bruno@clisp.org>
4789
4790         * m4/locale-ja.m4: New file, from GNU gettext.
4791
4792 2008-12-17  Bruno Haible  <bruno@clisp.org>
4793
4794         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4795         Suggested by Eric Blake.
4796
4797 2008-12-17  Bruno Haible  <bruno@clisp.org>
4798
4799         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4800
4801 2008-12-17  Bruno Haible  <bruno@clisp.org>
4802
4803         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4804         * modules/mbsinit (Depends-on): Add verify.
4805         Suggested by Paul Eggert.
4806
4807 2008-12-17  Bruno Haible  <bruno@clisp.org>
4808
4809         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4810         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4811         gl_FUNC_MBRTOWC.
4812         * m4/mbiter.m4 (gl_MBITER): LIkewise.
4813         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4814         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4815         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4816         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4817         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4818         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4819         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4820         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4821         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4822         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4823         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4824         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4825         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4826         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4827         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4828         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4829         * modules/trim (configure.ac): Likewise.
4830
4831 2008-12-17  Bruno Haible  <bruno@clisp.org>
4832
4833         * modules/btowc-tests: New file.
4834         * tests/test-btowc1.sh: New file.
4835         * tests/test-btowc2.sh: New file.
4836         * tests/test-btowc.c: New file.
4837
4838         New module 'btowc'.
4839         * lib/wchar.in.h (btowc): New declaration.
4840         * lib/btowc.c: New file.
4841         * m4/btowc.m4: New file.
4842         * modules/btowc: New file.
4843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4844         HAVE_BTOWC.
4845         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4846         * doc/posix-functions/btowc.texi: Document the new module.
4847
4848 2008-12-17  Bruno Haible  <bruno@clisp.org>
4849
4850         New module 'mbsinit'.
4851         * lib/wchar.in.h (mbsinit): New declaration.
4852         * lib/mbsinit.c: New file.
4853         * m4/mbsinit.m4: New file.
4854         * modules/mbsinit: New file.
4855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4856         HAVE_MBSINIT.
4857         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4858         HAVE_MBSINIT.
4859         * doc/posix-functions/mbsinit.texi: Document the new module.
4860
4861 2008-12-16  Bruno Haible  <bruno@clisp.org>
4862
4863         * lib/unistd.in.h: Add comment.
4864         * tests/test-environ.c: Don't include <stdlib.h>.
4865
4866 2008-12-16  Bruno Haible  <bruno@clisp.org>
4867
4868         * lib/parse-duration.h (parse_duration): Document return value
4869         convention.
4870         * lib/parse-duration.c: Include specification header first. Add
4871         comments.
4872         (_): Remove macro.
4873         (parse_year_month_day, parse_hour_minute_second): Move side effects
4874         outside of strchr call.
4875         (parse_non_iso8601): Move side effects outside of isspace call.
4876         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4877         call.
4878
4879 2008-12-16  Bruno Haible  <bruno@clisp.org>
4880
4881         * tests/test-parse-duration.sh: Produce no output when the test
4882         succeeds.
4883
4884 2008-12-16  Bruno Haible  <bruno@clisp.org>
4885
4886         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4887         expressions.
4888
4889 2008-12-15  Bruno Haible  <bruno@clisp.org>
4890
4891         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4892         * doc/glibc-functions/flistxattr.texi: Likewise.
4893         * doc/glibc-functions/fopencookie.texi: Likewise.
4894         * doc/glibc-functions/fremovexattr.texi: Likewise.
4895         * doc/glibc-functions/fsetxattr.texi: Likewise.
4896         * doc/glibc-functions/getxattr.texi: Likewise.
4897         * doc/glibc-functions/lgetxattr.texi: Likewise.
4898         * doc/glibc-functions/listxattr.texi: Likewise.
4899         * doc/glibc-functions/llistxattr.texi: Likewise.
4900         * doc/glibc-functions/lremovexattr.texi: Likewise.
4901         * doc/glibc-functions/lsetxattr.texi: Likewise.
4902         * doc/glibc-functions/removexattr.texi: Likewise.
4903         * doc/glibc-functions/setxattr.texi: Likewise.
4904         * doc/posix-functions/open_memstream.texi: Likewise.
4905
4906 2008-12-15  Eric Blake  <ebb9@byu.net>
4907
4908         Update doc for cygwin 1.7.
4909         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4910         functions.
4911         * doc/posix-functions/fchmodat.texi: Likewise.
4912         * doc/posix-functions/fchownat.texi: Likewise.
4913         * doc/posix-functions/fdopendir.texi: Likewise.
4914         * doc/posix-functions/fmemopen.texi: Likewise.
4915         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4916         * doc/posix-functions/fstatat.texi: Likewise.
4917         * doc/posix-functions/futimens.texi: Likewise.
4918         * doc/posix-functions/gai_strerror.texi: Likewise.
4919         * doc/posix-functions/getaddrinfo.texi: Likewise.
4920         * doc/posix-functions/getnameinfo.texi: Likewise.
4921         * doc/posix-functions/if_freenameindex.texi: Likewise.
4922         * doc/posix-functions/if_indextoname.texi: Likewise.
4923         * doc/posix-functions/if_nameindex.texi: Likewise.
4924         * doc/posix-functions/if_nametoindex.texi: Likewise.
4925         * doc/posix-functions/insque.texi: Likewise.
4926         * doc/posix-functions/linkat.texi: Likewise.
4927         * doc/posix-functions/llrint.texi: Likewise.
4928         * doc/posix-functions/llrintf.texi: Likewise.
4929         * doc/posix-functions/llrintl.texi: Likewise.
4930         * doc/posix-functions/lockf.texi: Likewise.
4931         * doc/posix-functions/lrintl.texi: Likewise.
4932         * doc/posix-functions/mkdirat.texi: Likewise.
4933         * doc/posix-functions/mkfifoat.texi: Likewise.
4934         * doc/posix-functions/mknodat.texi: Likewise.
4935         * doc/posix-functions/mq_close.texi: Likewise.
4936         * doc/posix-functions/mq_getattr.texi: Likewise.
4937         * doc/posix-functions/mq_notify.texi: Likewise.
4938         * doc/posix-functions/mq_open.texi: Likewise.
4939         * doc/posix-functions/mq_receive.texi: Likewise.
4940         * doc/posix-functions/mq_send.texi: Likewise.
4941         * doc/posix-functions/mq_setattr.texi: Likewise.
4942         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4943         * doc/posix-functions/mq_timedsend.texi: Likewise.
4944         * doc/posix-functions/mq_unlink.texi: Likewise.
4945         * doc/posix-functions/open_memstream.texi: Likewise.
4946         * doc/posix-functions/openat.texi: Likewise.
4947         * doc/posix-functions/posix_fadvise.texi: Likewise.
4948         * doc/posix-functions/posix_fallocate.texi: Likewise.
4949         * doc/posix-functions/posix_madvise.texi: Likewise.
4950         * doc/posix-functions/posix_memalign.texi: Likewise.
4951         * doc/posix-functions/posix_openpt.texi: Likewise.
4952         * doc/posix-functions/readlinkat.texi: Likewise.
4953         * doc/posix-functions/remque.texi: Likewise.
4954         * doc/posix-functions/renameat.texi: Likewise.
4955         * doc/posix-functions/rintl.texi: Likewise.
4956         * doc/posix-functions/sem_unlink.texi: Likewise.
4957         * doc/posix-functions/shm_open.texi: Likewise.
4958         * doc/posix-functions/shm_unlink.texi: Likewise.
4959         * doc/posix-functions/signgam.texi: Likewise.
4960         * doc/posix-functions/sigset.texi: Likewise.
4961         * doc/posix-functions/stpcpy.texi: Likewise.
4962         * doc/posix-functions/stpncpy.texi: Likewise.
4963         * doc/posix-functions/strerror.texi: Likewise.
4964         * doc/posix-functions/strtod.texi: Likewise.
4965         * doc/posix-functions/symlinkat.texi: Likewise.
4966         * doc/posix-functions/unlinkat.texi: Likewise.
4967         * doc/posix-functions/utimensat.texi: Likewise.
4968         * doc/glibc-functions/bindresvport.texi: Likewise.
4969         * doc/glibc-functions/dn_expand.texi: Likewise.
4970         * doc/glibc-functions/exp10.texi: Likewise.
4971         * doc/glibc-functions/exp10f.texi: Likewise.
4972         * doc/glibc-functions/fgetxattr.texi: Likewise.
4973         * doc/glibc-functions/flistxattr.texi: Likewise.
4974         * doc/glibc-functions/fopencookie.texi: Likewise.
4975         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4976         * doc/glibc-functions/fremovexattr.texi: Likewise.
4977         * doc/glibc-functions/fsetxattr.texi: Likewise.
4978         * doc/glibc-functions/getifaddrs.texi: Likewise.
4979         * doc/glibc-functions/getxattr.texi: Likewise.
4980         * doc/glibc-functions/lgetxattr.texi: Likewise.
4981         * doc/glibc-functions/listxattr.texi: Likewise.
4982         * doc/glibc-functions/llistxattr.texi: Likewise.
4983         * doc/glibc-functions/lremovexattr.texi: Likewise.
4984         * doc/glibc-functions/lsetxattr.texi: Likewise.
4985         * doc/glibc-functions/pow10.texi: Likewise.
4986         * doc/glibc-functions/pow10f.texi: Likewise.
4987         * doc/glibc-functions/rcmd_af.texi: Likewise.
4988         * doc/glibc-functions/removexattr.texi: Likewise.
4989         * doc/glibc-functions/res_init.texi: Likewise.
4990         * doc/glibc-functions/res_mkquery.texi: Likewise.
4991         * doc/glibc-functions/res_query.texi: Likewise.
4992         * doc/glibc-functions/res_querydomain.texi: Likewise.
4993         * doc/glibc-functions/res_send.texi: Likewise.
4994         * doc/glibc-functions/rresvport_af.texi: Likewise.
4995         * doc/glibc-functions/setxattr.texi: Likewise.
4996         * doc/glibc-functions/strcasestr.texi: Likewise.
4997
4998 2008-12-15  Bruno Haible  <bruno@clisp.org>
4999
5000         Fix compilation error on OSF/1 4.0.
5001         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
5002         <sys/time.h>, simply delegate to the system header.
5003         Reported by Daniel Richard G. <oss@teragram.com>.
5004
5005 2008-12-15  Bruno Haible  <bruno@clisp.org>
5006
5007         * doc/posix-functions/openat.texi: Mention the 'openat' module.
5008         * doc/posix-functions/fchmodat.texi: Likewise.
5009         * doc/posix-functions/fchownat.texi: Likewise.
5010         * doc/posix-functions/fdopendir.texi: Likewise.
5011         * doc/posix-functions/fstatat.texi: Likewise.
5012         * doc/posix-functions/mkdirat.texi: Likewise.
5013         * doc/posix-functions/unlinkat.texi: Likewise.
5014
5015 2008-12-14  Bruno Haible  <bruno@clisp.org>
5016
5017         Update doc for POSIX:2008.
5018         * doc/posix-functions/faccessat.texi: New file.
5019         * doc/posix-functions/fchmodat.texi: New file.
5020         * doc/posix-functions/fchownat.texi: New file.
5021         * doc/posix-functions/fdopendir.texi: New file.
5022         * doc/posix-functions/fstatat.texi: New file.
5023         * doc/posix-functions/futimens.texi: New file.
5024         * doc/posix-functions/linkat.texi: New file.
5025         * doc/posix-functions/mkdirat.texi: New file.
5026         * doc/posix-functions/mkfifoat.texi: New file.
5027         * doc/posix-functions/mknodat.texi: New file.
5028         * doc/posix-functions/open_wmemstream.texi: New file.
5029         * doc/posix-functions/openat.texi: New file.
5030         * doc/posix-functions/psiginfo.texi: New file.
5031         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
5032         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
5033         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
5034         * doc/posix-functions/readlinkat.texi: New file.
5035         * doc/posix-functions/renameat.texi: New file.
5036         * doc/posix-functions/strerror_l.texi: New file.
5037         * doc/posix-functions/symlinkat.texi: New file.
5038         * doc/posix-functions/unlinkat.texi: New file.
5039         * doc/posix-functions/utimensat.texi: New file.
5040         * doc/gnulib.texi (Function Substitutes): Add these subsections.
5041
5042 2008-12-14  Bruno Haible  <bruno@clisp.org>
5043
5044         Update doc for POSIX:2008.
5045         * doc/posix-functions/alphasort.texi: Renamed from
5046         doc/glibc-functions/alphasort.texi.
5047         * doc/posix-functions/dirfd.texi: Renamed from
5048         doc/glibc-functions/dirfd.texi.
5049         * doc/posix-functions/dprintf.texi: Renamed from
5050         doc/glibc-functions/dprintf.texi.
5051         * doc/posix-functions/duplocale.texi: Renamed from
5052         doc/glibc-functions/duplocale.texi.
5053         * doc/posix-functions/fexecve.texi: Renamed from
5054         doc/glibc-functions/fexecve.texi.
5055         * doc/posix-functions/fmemopen.texi: Renamed from
5056         doc/glibc-functions/fmemopen.texi.
5057         * doc/posix-functions/freelocale.texi: Renamed from
5058         doc/glibc-functions/freelocale.texi.
5059         * doc/posix-functions/getdate_err.texi: Renamed from
5060         doc/glibc-functions/getdate_err.texi.
5061         * doc/posix-functions/isalnum_l.texi: Renamed from
5062         doc/glibc-functions/isalnum_l.texi.
5063         * doc/posix-functions/isalpha_l.texi: Renamed from
5064         doc/glibc-functions/isalpha_l.texi.
5065         * doc/posix-functions/isblank_l.texi: Renamed from
5066         doc/glibc-functions/isblank_l.texi.
5067         * doc/posix-functions/iscntrl_l.texi: Renamed from
5068         doc/glibc-functions/iscntrl_l.texi.
5069         * doc/posix-functions/isdigit_l.texi: Renamed from
5070         doc/glibc-functions/isdigit_l.texi.
5071         * doc/posix-functions/isgraph_l.texi: Renamed from
5072         doc/glibc-functions/isgraph_l.texi.
5073         * doc/posix-functions/islower_l.texi: Renamed from
5074         doc/glibc-functions/islower_l.texi.
5075         * doc/posix-functions/isprint_l.texi: Renamed from
5076         doc/glibc-functions/isprint_l.texi.
5077         * doc/posix-functions/ispunct_l.texi: Renamed from
5078         doc/glibc-functions/ispunct_l.texi.
5079         * doc/posix-functions/isspace_l.texi: Renamed from
5080         doc/glibc-functions/isspace_l.texi.
5081         * doc/posix-functions/isupper_l.texi: Renamed from
5082         doc/glibc-functions/isupper_l.texi.
5083         * doc/posix-functions/iswalnum_l.texi: Renamed from
5084         doc/glibc-functions/iswalnum_l.texi.
5085         * doc/posix-functions/iswalpha_l.texi: Renamed from
5086         doc/glibc-functions/iswalpha_l.texi.
5087         * doc/posix-functions/iswblank_l.texi: Renamed from
5088         doc/glibc-functions/iswblank_l.texi.
5089         * doc/posix-functions/iswcntrl_l.texi: Renamed from
5090         doc/glibc-functions/iswcntrl_l.texi.
5091         * doc/posix-functions/iswctype_l.texi: Renamed from
5092         doc/glibc-functions/iswctype_l.texi.
5093         * doc/posix-functions/iswdigit_l.texi: Renamed from
5094         doc/glibc-functions/iswdigit_l.texi.
5095         * doc/posix-functions/iswgraph_l.texi: Renamed from
5096         doc/glibc-functions/iswgraph_l.texi.
5097         * doc/posix-functions/iswlower_l.texi: Renamed from
5098         doc/glibc-functions/iswlower_l.texi.
5099         * doc/posix-functions/iswprint_l.texi: Renamed from
5100         doc/glibc-functions/iswprint_l.texi.
5101         * doc/posix-functions/iswpunct_l.texi: Renamed from
5102         doc/glibc-functions/iswpunct_l.texi.
5103         * doc/posix-functions/iswspace_l.texi: Renamed from
5104         doc/glibc-functions/iswspace_l.texi.
5105         * doc/posix-functions/iswupper_l.texi: Renamed from
5106         doc/glibc-functions/iswupper_l.texi.
5107         * doc/posix-functions/iswxdigit_l.texi: Renamed from
5108         doc/glibc-functions/iswxdigit_l.texi.
5109         * doc/posix-functions/isxdigit_l.texi: Renamed from
5110         doc/glibc-functions/isxdigit_l.texi.
5111         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
5112         doc/glibc-functions/mbsnrtowcs.texi.
5113         * doc/posix-functions/mkdtemp.texi: Renamed from
5114         doc/glibc-functions/mkdtemp.texi.
5115         * doc/posix-functions/newlocale.texi: Renamed from
5116         doc/glibc-functions/newlocale.texi.
5117         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
5118         doc/glibc-functions/nl_langinfo_l.texi.
5119         * doc/posix-functions/open_memstream.texi: Renamed from
5120         doc/glibc-functions/open_memstream.texi.
5121         * doc/posix-functions/opterr.texi: Renamed from
5122         doc/glibc-functions/opterr.texi.
5123         * doc/posix-functions/optind.texi: Renamed from
5124         doc/glibc-functions/optind.texi.
5125         * doc/posix-functions/optopt.texi: Renamed from
5126         doc/glibc-functions/optopt.texi.
5127         * doc/posix-functions/psignal.texi: Renamed from
5128         doc/glibc-functions/psignal.texi.
5129         * doc/posix-functions/scandir.texi: Renamed from
5130         doc/glibc-functions/scandir.texi.
5131         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
5132         doc/glibc-functions/sched_get_priority_min.texi.
5133         * doc/posix-functions/signgam.texi: Renamed from
5134         doc/glibc-functions/signgam.texi.
5135         * doc/posix-functions/stpcpy.texi: Renamed from
5136         doc/glibc-functions/stpcpy.texi.
5137         * doc/posix-functions/stpncpy.texi: Renamed from
5138         doc/glibc-functions/stpncpy.texi.
5139         * doc/posix-functions/strcasecmp_l.texi: Renamed from
5140         doc/glibc-functions/strcasecmp_l.texi.
5141         * doc/posix-functions/strcoll_l.texi: Renamed from
5142         doc/glibc-functions/strcoll_l.texi.
5143         * doc/posix-functions/strfmon_l.texi: Renamed from
5144         doc/glibc-functions/strfmon_l.texi.
5145         * doc/posix-functions/strftime_l.texi: Renamed from
5146         doc/glibc-functions/strftime_l.texi.
5147         * doc/posix-functions/strncasecmp_l.texi: Renamed from
5148         doc/glibc-functions/strncasecmp_l.texi.
5149         * doc/posix-functions/strndup.texi: Renamed from
5150         doc/glibc-functions/strndup.texi.
5151         * doc/posix-functions/strnlen.texi: Renamed from
5152         doc/glibc-functions/strnlen.texi.
5153         * doc/posix-functions/strsignal.texi: Renamed from
5154         doc/glibc-functions/strsignal.texi.
5155         * doc/posix-functions/strxfrm_l.texi: Renamed from
5156         doc/glibc-functions/strxfrm_l.texi.
5157         * doc/posix-functions/timer_gettime.texi: Renamed from
5158         doc/glibc-functions/timer_gettime.texi.
5159         * doc/posix-functions/tolower_l.texi: Renamed from
5160         doc/glibc-functions/tolower_l.texi.
5161         * doc/posix-functions/toupper_l.texi: Renamed from
5162         doc/glibc-functions/toupper_l.texi.
5163         * doc/posix-functions/towctrans_l.texi: Renamed from
5164         doc/glibc-functions/towctrans_l.texi.
5165         * doc/posix-functions/towlower_l.texi: Renamed from
5166         doc/glibc-functions/towlower_l.texi.
5167         * doc/posix-functions/towupper_l.texi: Renamed from
5168         doc/glibc-functions/towupper_l.texi.
5169         * doc/posix-functions/uselocale.texi: Renamed from
5170         doc/glibc-functions/uselocale.texi.
5171         * doc/posix-functions/vdprintf.texi: Renamed from
5172         doc/glibc-functions/vdprintf.texi.
5173         * doc/posix-functions/wcpcpy.texi:
5174         Renamed from doc/glibc-functions/wcpcpy.texi.
5175         * doc/posix-functions/wcpncpy.texi: Renamed from
5176         doc/glibc-functions/wcpncpy.texi.
5177         * doc/posix-functions/wcscasecmp.texi: Renamed from
5178         doc/glibc-functions/wcscasecmp.texi.
5179         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
5180         doc/glibc-functions/wcscasecmp_l.texi.
5181         * doc/posix-functions/wcscoll_l.texi: Renamed from
5182         doc/glibc-functions/wcscoll_l.texi.
5183         * doc/posix-functions/wcsdup.texi: Renamed from
5184         doc/glibc-functions/wcsdup.texi.
5185         * doc/posix-functions/wcsncasecmp.texi: Renamed from
5186         doc/glibc-functions/wcsncasecmp.texi.
5187         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
5188         doc/glibc-functions/wcsncasecmp_l.texi.
5189         * doc/posix-functions/wcsnlen.texi: Renamed from
5190         doc/glibc-functions/wcsnlen.texi.
5191         * doc/posix-functions/wcsnrtombs.texi: Renamed from
5192         doc/glibc-functions/wcsnrtombs.texi.
5193         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
5194         doc/glibc-functions/wcsxfrm_l.texi.
5195         * doc/posix-functions/wctrans_l.texi: Renamed from
5196         doc/glibc-functions/wctrans_l.texi.
5197         * doc/posix-functions/wctype_l.texi: Renamed from
5198         doc/glibc-functions/wctype_l.texi.
5199         * doc/gnulib.texi (Function Substitutes): Add these subsections.
5200         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
5201         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
5202         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
5203         these subsections.
5204         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
5205         Remove sections.
5206
5207 2008-12-14  Bruno Haible  <bruno@clisp.org>
5208
5209         Update doc for POSIX:2008.
5210         * doc/posix-functions/*.texi: Update URL of POSIX specification.
5211
5212 2008-12-14  Bruno Haible  <bruno@clisp.org>
5213
5214         Update doc for POSIX:2008.
5215         * doc/pastposix-functions/bcmp.texi: Renamed from
5216         doc/posix-functions/bcmp.texi.
5217         * doc/pastposix-functions/bcopy.texi: Renamed from
5218         doc/posix-functions/bcopy.texi.
5219         * doc/pastposix-functions/bsd_signal.texi: Renamed from
5220         doc/posix-functions/bsd_signal.texi.
5221         * doc/pastposix-functions/bzero.texi: Renamed from
5222         doc/posix-functions/bzero.texi.
5223         * doc/pastposix-functions/ecvt.texi: Renamed from
5224         doc/posix-functions/ecvt.texi.
5225         * doc/pastposix-functions/fcvt.texi: Renamed from
5226         doc/posix-functions/fcvt.texi.
5227         * doc/pastposix-functions/ftime.texi: Renamed from
5228         doc/posix-functions/ftime.texi.
5229         * doc/pastposix-functions/gcvt.texi: Renamed from
5230         doc/posix-functions/gcvt.texi.
5231         * doc/pastposix-functions/getcontext.texi: Renamed from
5232         doc/posix-functions/getcontext.texi.
5233         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
5234         doc/posix-functions/gethostbyaddr.texi.
5235         * doc/pastposix-functions/gethostbyname.texi: Renamed from
5236         doc/posix-functions/gethostbyname.texi.
5237         * doc/pastposix-functions/getwd.texi: Renamed from
5238         doc/posix-functions/getwd.texi.
5239         * doc/pastposix-functions/h_errno.texi: Renamed from
5240         doc/posix-functions/h_errno.texi.
5241         * doc/pastposix-functions/index.texi: Renamed from
5242         doc/posix-functions/index.texi.
5243         * doc/pastposix-functions/makecontext.texi: Renamed from
5244         doc/posix-functions/makecontext.texi.
5245         * doc/pastposix-functions/mktemp.texi: Renamed from
5246         doc/posix-functions/mktemp.texi.
5247         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
5248         doc/posix-functions/pthread_attr_getstackaddr.texi.
5249         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
5250         doc/posix-functions/pthread_attr_setstackaddr.texi.
5251         * doc/pastposix-functions/rindex.texi: Renamed from
5252         doc/posix-functions/rindex.texi.
5253         * doc/pastposix-functions/scalb.texi: Renamed from
5254         doc/posix-functions/scalb.texi.
5255         * doc/pastposix-functions/setcontext.texi: Renamed from
5256         doc/posix-functions/setcontext.texi.
5257         * doc/pastposix-functions/swapcontext.texi: Renamed from
5258         doc/posix-functions/swapcontext.texi.
5259         * doc/pastposix-functions/ualarm.texi: Renamed from
5260         doc/posix-functions/ualarm.texi.
5261         * doc/pastposix-functions/usleep.texi: Renamed from
5262         doc/posix-functions/usleep.texi.
5263         * doc/pastposix-functions/vfork.texi: Renamed from
5264         doc/posix-functions/vfork.texi.
5265         * doc/pastposix-functions/wcswcs.texi: Renamed from
5266         doc/posix-functions/wcswcs.texi.
5267         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
5268         (Function Substitutes): Update.
5269
5270 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5271
5272         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
5273         m4/strerror.m4.
5274
5275 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5276             Bruno Haible  <bruno@clisp.org>
5277
5278         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
5279
5280 2008-12-13  Bruno Haible  <bruno@clisp.org>
5281
5282         * modules/strtoull (Depends-on): Remove unistd.
5283
5284 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5285
5286         * modules/strtoull (Depends-on): Add stdlib.
5287
5288 2008-12-11  Simon Josefsson  <simon@josefsson.org>
5289
5290         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
5291
5292 2008-12-10  Jim Meyering  <meyering@redhat.com>
5293
5294         gl_ASSERT: don't say assertions are disabled when they're not
5295         * m4/assert.m4 (gl_ASSERT): Do not make configure report
5296         "checking whether to enable assertions... no", when they are in
5297         fact enabled.  This is solely a bug in the output of configure.
5298         In spite of saying "no", NDEBUG was not defined in that case.
5299         Also, as noted by Eric Blake, leave assertions enabled upon
5300         --enable-assert=INVALID.
5301
5302 2008-12-10  Bruno Haible  <bruno@clisp.org>
5303
5304         Change MODULES.html to refer to POSIX:2008 where possible.
5305         * MODULES.html.sh (POSIX2008_URL): New variable.
5306         (posix_headers): Remove sys/timeb, ucontext.
5307         (posix2001_headers): New variable.
5308         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
5309         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
5310         index, makecontext, mktemp, pthread_attr_getstackaddr,
5311         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
5312         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
5313         (posix2001_functions): New variable.
5314         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
5315         otherwise.
5316
5317 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5318
5319         add missing include to parse-duration.c
5320         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
5321         * modules/parse-duration (Depends-on): Add xalloc.
5322
5323         fix sed script reading maint.mk
5324         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
5325         (syntax-check-rules): Use it.
5326
5327 2008-12-09  Bruno Haible  <bruno@clisp.org>
5328
5329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
5330         MacOS X 10.4/PowerPC.
5331         Reported by Simon Josefsson.
5332
5333 2008-12-08  Jim Meyering  <meyering@redhat.com>
5334
5335         work around mingw's lack of some S_IF definitions
5336         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
5337         Reported by Simon Josefsson.
5338
5339 2008-12-08  Bruno Haible  <bruno@clisp.org>
5340
5341         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
5342         applied to variables. Needed on MacOS X 10.4/PowerPC.
5343         Reported by Simon Josefsson.
5344
5345 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
5346         and Eric Blake  <ebb9@byu.net>
5347
5348         assert: honor --enable-assert
5349         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
5350         order to honor --enable-assert, rather than treating it as a
5351         synonym for --disable-assert.
5352
5353 2008-12-08  Jim Meyering  <meyering@redhat.com>
5354
5355         * lib/posixtm.c: Remove now-useless declaration of mktime.
5356
5357         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
5358
5359 2008-12-07  Bruno Haible  <bruno@clisp.org>
5360
5361         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
5362         test_once): Mark functions as static.
5363         * tests/test-tls.c (test_tls): Likewise.
5364
5365 2008-12-07  Bruno Haible  <bruno@clisp.org>
5366
5367         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
5368         iconv_register_autodetect.
5369
5370 2008-12-07  Jim Meyering  <meyering@redhat.com>
5371
5372         posixtm.c: avoid a warning
5373         * lib/posixtm.c (posixtime): Don't initialize tm0.
5374         It's no longer needed to placate gcc4's -Wuninitialized,
5375         and the attempt to placate would elicit a new warning.
5376
5377         unicodeio.c: mark unused parameters
5378         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5379         (fallback_failure_callback): Likewise.
5380
5381 2008-12-07  Bruno Haible  <bruno@clisp.org>
5382
5383         * gnulib-tool (func_create_testdir): When building the tests
5384         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
5385         Reported by Simon Josefsson.
5386
5387 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5388
5389         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
5390
5391 2008-12-06  Bruno Haible  <bruno@clisp.org>
5392
5393         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
5394         Suggested by Eric Blake.
5395
5396 2008-12-06  Bruno Haible  <bruno@clisp.org>
5397
5398         Fix a c-stack test failure on MacOS X.
5399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
5400         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
5401         handler for SIGBUS as well.
5402         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
5403         install a signal handler for SIGBUS as well.
5404         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
5405
5406 2008-12-06  Bruno Haible  <bruno@clisp.org>
5407
5408         Advocacy documentation.
5409         * doc/gnulib-intro.texi (Benefits): New section.
5410         * doc/gnulib.texi: Update.
5411
5412 2008-12-06  Bruno Haible  <bruno@clisp.org>
5413
5414         Document the 'manywarnings' module.
5415         * doc/manywarnings.texi: New file.
5416         * doc/gnulib.texi: Include it.
5417
5418 2008-12-05  Eric Blake  <ebb9@byu.net>
5419
5420         tests: silence some gcc warnings
5421         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
5422         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
5423         type mismatches.
5424
5425 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5426             Bruno Haible  <bruno@clisp.org>
5427
5428         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
5429
5430 2008-11-29  Jim Meyering  <meyering@redhat.com>
5431
5432         unicodeio.c: mark unused parameters
5433         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5434         (fallback_failure_callback): Likewise.
5435
5436         fts: fix a thinko
5437         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
5438         (set_stat_type): Return S_IF*-valued "type" directly.
5439         Prompted by James Youngman's spotting a related bug.
5440         Confirmed by further testing through find.
5441
5442         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
5443         * lib/fts.c (D_TYPE): Define.
5444         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
5445         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
5446         (s_ifmt_shift_bits): New function.
5447         (set_stat_type): New function.
5448         (fts_build): When not calling fts_stat, call set_stat_type
5449         to propagate dirent.d_type info to fts_read caller.
5450         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
5451         fts_statp->st_mode type information may be valid.
5452
5453 2008-11-28  Simon Josefsson  <simon@josefsson.org>
5454
5455         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
5456         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
5457         <sds@gnu.org>.
5458
5459 2008-11-20  Bruno Haible  <bruno@clisp.org>
5460
5461         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
5462         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
5463         INCLUDE_NEXT.
5464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
5465         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
5466         * modules/math (Makefile.am): Substitute
5467         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
5468         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5469
5470 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
5471             Bruno Haible  <bruno@clisp.org>
5472
5473         * lib/stdint.in.h: Define all type macros so that their expansion is
5474         a single typedef'ed token. Fixes a compilation failure in Boost which
5475         does "using ::int8_t;".
5476
5477 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5478
5479         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
5480         gl_MANYWARN_ALL_GCC.
5481         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
5482         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
5483         * modules/manywarnings: New file.
5484         * MODULES.html.sh: Mention manywarnings module.
5485
5486 2008-11-18  Bruno Haible  <bruno@clisp.org>
5487
5488         * doc/gnulib-tool.texi (Unit tests): New section.
5489
5490 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5491
5492         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
5493         paths like 'lib/po/foo.po'.
5494
5495 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5496
5497         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
5498         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
5499
5500 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5501
5502         * m4/warnings.m4: Use CPPFLAGS to really check whether the
5503         parameter works.
5504
5505 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5506
5507         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
5508
5509 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5510
5511         * modules/parse-duration-tests: New file.
5512         * tests/test-parse-duration.sh: New file.
5513         * tests/test-parse-duration.c: New file.
5514
5515         New module 'parse-duration'.
5516         * lib/parse-duration.h: New file.
5517         * lib/parse-duration.c: New file.
5518         * modules/parse-duration: New file.
5519
5520 2008-11-17  Bruno Haible  <bruno@clisp.org>
5521
5522         * tests/test-select-out.sh: Comment out the first pipe test.
5523         Reported by Simon Josefsson.
5524
5525 2008-11-17  Bruno Haible  <bruno@clisp.org>
5526
5527         * modules/getaddrinfo (Depends-on): Add servent, hostent.
5528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
5529         gl_HOSTENT.
5530
5531 2008-11-17  Bruno Haible  <bruno@clisp.org>
5532
5533         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
5534         -lnetwork and -lnet. Needed for Haiku and BeOS.
5535
5536 2008-11-16  Bruno Haible  <bruno@clisp.org>
5537
5538         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
5539
5540 2008-11-16  Bruno Haible  <bruno@clisp.org>
5541
5542         Avoid test failure on Haiku.
5543         * tests/test-fsync.c: Include <errno.h>.
5544         (main): Don't require that fsync (0) fails.
5545
5546 2008-11-15  Bruno Haible  <bruno@clisp.org>
5547
5548         New module 'hostent'.
5549         * modules/hostent: New file.
5550         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
5551
5552 2008-11-15  Bruno Haible  <bruno@clisp.org>
5553
5554         New module 'servent'.
5555         * modules/servent: New file.
5556         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
5557
5558 2008-11-15  Bruno Haible  <bruno@clisp.org>
5559
5560         Avoid generating same test program with two different rules.
5561         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
5562         test-frexp to test-frexp-nolibm.
5563         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
5564         test-frexpl to test-frexpl-nolibm.
5565
5566 2008-11-15  Bruno Haible  <bruno@clisp.org>
5567
5568         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
5569         $(FREXPL_LIBM).
5570
5571 2008-11-15  Bruno Haible  <bruno@clisp.org>
5572
5573         * lib/netdb.in.h: Activate the definitions also when the system's
5574         <netdb.h> has 'struct addrinfo'.
5575         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
5576         EAI_OVERFLOW or AI_NUMERICSERV.
5577         * doc/posix-headers/netdb.texi: Document the problem.
5578
5579 2008-11-15  Bruno Haible  <bruno@clisp.org>
5580
5581         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
5582
5583         Make the 'sched' module work on platforms where <sched.h> exists but
5584         is incomplete (such as Haiku).
5585         * lib/sched.in.h; Include the system's <sched.h> if it exists.
5586         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
5587         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
5588         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
5589         HAVE_STRUCT_SCHED_PARAM.
5590         * modules/sched (Depends-on): Add include_next.
5591         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
5592         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
5593         * doc/posix-headers/sched.texi: Document the issue.
5594
5595 2008-11-13  Jim Meyering  <meyering@redhat.com>
5596
5597         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
5598         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
5599         test would fail due to the difference in the Report bugs to ...
5600         line.  The expected address is empty, "<>", while the actual
5601         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
5602
5603 2008-11-12  Bruno Haible  <bruno@clisp.org>
5604
5605         lstat: don't compile lstat.c on systems lacking lstat
5606         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
5607         which don't have lstat; this is handled by lib/sys_stat.in.h already.
5608         Reported by Daniel P. Berrange via Jim Meyering.
5609
5610 2008-11-12  Jim Meyering  <meyering@redhat.com>
5611
5612         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
5613
5614 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5615
5616         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
5617         instead.
5618
5619 2008-11-12  Bruno Haible  <bruno@clisp.org>
5620
5621         * lib/unicodeio.c: Include unistr.h.
5622         (utf8_wctomb): Remove function.
5623         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
5624
5625 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5626
5627         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
5628         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
5629         <bruno@clisp.org>.
5630         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
5631
5632 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5633
5634         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
5635         * doc/gnulib.texi: Add section for warnings.
5636
5637 2008-11-11  Bruno Haible  <bruno@clisp.org>
5638
5639         * lib/sockets.h: Add a comment.
5640
5641 2008-11-11  Karl Berry  <karl@gnu.org>
5642
5643         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
5644
5645 2008-11-11  Eric Blake  <ebb9@byu.net>
5646
5647         fdl.texi: avoid git symlinks
5648         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
5649
5650 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5651
5652         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
5653
5654 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5655
5656         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
5657         (gl_WARN_ADD): Substitute $2 if literal.
5658
5659 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5660
5661         * m4/warning.m4: Remove.
5662
5663 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5664
5665         * m4/warnings.m4: Almost complete rewrite. :-)
5666
5667 2008-11-10  Simon Josefsson  <simon@josefsson.org>
5668
5669         * modules/warnings: New module.
5670         * m4/warnings.m4: New file.
5671         * MODULES.html.sh: Mention warnings module.
5672         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
5673         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5674
5675 2008-11-10  Eric Blake  <ebb9@byu.net>
5676
5677         fdl.texi: make a symlink to the latest version
5678         * doc/standards.texi: Revert today's earlier change.
5679         * doc/fdl-1.2.texi: Rename from old fdl.texi...
5680         * doc/fdl.texi: ...and replace this with a symlink to the newer
5681         fdl-1.3.texi.
5682
5683 2008-11-10  Bruno Haible  <bruno@clisp.org>
5684
5685         * tests/test-select-fd.c (main): Accept the result file name as fourth
5686         argument.
5687         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
5688         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
5689
5690 2008-11-10  Bruno Haible  <bruno@clisp.org>
5691
5692         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
5693         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
5694         as autoconf-substituted macros.
5695         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
5696         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
5697         gl_NETDB_H_DEFAULTS. Set these variables.
5698         * modules/netdb (Makefile.am): Substitute these variables.
5699
5700 2008-11-10  Eric Blake  <ebb9@byu.net>
5701
5702         standards.texi: include correct file for FDL 1.3
5703         * doc/standards.texi (GNU Free Documentation License): Change
5704         include file to pull in FDL 1.3, not 1.2.
5705
5706         fdl.texi: revert accidental change to license
5707         * doc/fdl.texi: This is FDL 1.2, not 1.3.
5708
5709 2008-11-10  Bruno Haible  <bruno@clisp.org>
5710
5711         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
5712         cross-compiling guesses also when the native compile gives no result.
5713
5714 2008-11-10  Bruno Haible  <bruno@clisp.org>
5715
5716         * lib/spawni.c (__spawni): Force variable into the stack.
5717
5718 2008-11-10  Bruno Haible  <bruno@clisp.org>
5719
5720         Add support for Haiku.
5721         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
5722         glibc and BeOS, but also on Haiku.
5723         * lib/fpurge.c (fpurge): Likewise.
5724         * lib/freadable.c (freadable): Likewise.
5725         * lib/freadahead.c (freadahead): Likewise.
5726         * lib/freading.c (freading): Likewise.
5727         * lib/freadptr.c (freadptr): Likewise.
5728         * lib/freadseek.c (freadptrinc): Likewise.
5729         * lib/fseeko.c (rpl_fseeko): Likewise.
5730         * lib/fseterr.c (fseterr): Likewise.
5731         * lib/fwritable.c (fwritable): Likewise.
5732         * lib/fwriting.c (fwriting): Likewise.
5733         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5734
5735 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5736
5737         * lib/config.charset: Treat Haiku like BeOS.
5738
5739 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5740
5741         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5742         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5743
5744 2008-11-08  Bruno Haible  <bruno@clisp.org>
5745
5746         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5747         AC_CACHE_CHECK.
5748
5749 2008-11-08  Bruno Haible  <bruno@clisp.org>
5750
5751         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5752
5753 2008-11-08  Bruno Haible  <bruno@clisp.org>
5754
5755         * tests/test-select-fd.c: New file.
5756         * tests/test-select-in.sh: New file.
5757         * tests/test-select-out.sh: New file.
5758         * tests/test-select-stdin.c: New file.
5759         * modules/select-tests (Files): Add the new files.
5760         (Depends-on): Add gettimeofday.
5761         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5762         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5763         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5764
5765 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
5766             Bruno Haible  <bruno@clisp.org>
5767
5768         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5769
5770 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
5771
5772         * build-aux/pmccabe2html: Added support for C++ source files.
5773
5774 2008-11-05  Ben Pfaff  <blp@gnu.org>
5775
5776         Fix lib/close.c build on Windows.
5777         * modules/close (Files): Add lib/w32sock.h.
5778
5779 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5780
5781         Accept Bison's NEWS format.
5782         * build-aux/announce-gen (print_news_deltas): Tweak
5783         $re_prefix.
5784
5785 2008-11-04  Bruno Haible  <bruno@clisp.org>
5786
5787         * modules/random_r (Maintainer): Add glibc.
5788
5789 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5790
5791         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5792         by karl@freefriends.org (Karl Berry).
5793         * doc/alloca.texi: Likewise.
5794         * doc/c-ctype.texi: Likewise.
5795         * doc/c-strcase.texi: Likewise.
5796         * doc/c-strcaseeq.texi: Likewise.
5797         * doc/c-strcasestr.texi: Likewise.
5798         * doc/c-strstr.texi: Likewise.
5799         * doc/c-strtod.texi: Likewise.
5800         * doc/c-strtold.texi: Likewise.
5801         * doc/ctime.texi: Likewise.
5802         * doc/error.texi: Likewise.
5803         * doc/fdl.texi: Likewise.
5804         * doc/gcd.texi: Likewise.
5805         * doc/getdate.texi: Likewise.
5806         * doc/gnulib-intro.texi: Likewise.
5807         * doc/gnulib-tool.texi: Likewise.
5808         * doc/gnulib.texi: Likewise.
5809         * doc/inet_ntoa.texi: Likewise.
5810         * doc/maintain.texi: Likewise.
5811         * doc/make-stds.texi: Likewise.
5812         * doc/quote.texi: Likewise.
5813         * doc/regexprops-generic.texi: Likewise.
5814         * doc/standards.texi: Likewise.
5815         * doc/verify.texi: Likewise.
5816         * doc/visibility.texi: Likewise.
5817         * doc/gnulib.texi (GNU Free Documentation License): Include
5818         fdl-1.3.texi instead of fdl.texi.
5819
5820 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5821
5822         * doc/fdl-1.3.texi: New file, from
5823         <http://www.gnu.org/licenses/fdl-1.3.texi>.
5824         * modules/fdl-1.3: Add.
5825         * MODULES.html.sh: Add fdl-1.3.
5826
5827 2008-11-03  Bruno Haible  <bruno@clisp.org>
5828
5829         Make determination of absolute name of header file work with AIX xlc.
5830         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5831         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5832         preprocessing.
5833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5834         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5835
5836 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5837
5838         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5839         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5840         <ludo@gnu.org>.
5841
5842 2008-11-02  Bruno Haible  <bruno@clisp.org>
5843
5844         Mark 'strpbrk' obsolete.
5845         * modules/strpbrk (Status, Notice): New sections.
5846         * modules/strtok_r (Depends-on): Add strpbrk.
5847
5848 2008-11-02  Bruno Haible  <bruno@clisp.org>
5849
5850         Mark 'strdup' obsolete.
5851         * modules/strdup (Status, Notice): New sections.
5852         * modules/findprog (Depends-on): Add strdup.
5853         * modules/getaddrinfo (Depends-on): Likewise.
5854         * modules/localename (Depends-on): Likewise.
5855         * modules/relocatable-lib (Depends-on): Likewise.
5856         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5857         * modules/relocatable-prog (Depends-on): Likewise.
5858         * modules/trim (Depends-on): Likewise.
5859         * modules/unictype/gen-ctype (Depends-on): Likewise.
5860         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5861
5862 2008-11-02  Bruno Haible  <bruno@clisp.org>
5863
5864         Mark 'strcspn' obsolete.
5865         * modules/strcspn (Status, Notice): New sections.
5866
5867 2008-11-02  Bruno Haible  <bruno@clisp.org>
5868
5869         Mark 'rmdir' obsolete.
5870         * modules/rmdir (Status, Notice): New sections.
5871         * modules/clean-temp (Depends-on): Add rmdir.
5872         * modules/openat (Depends-on): Likewise.
5873
5874 2008-11-02  Bruno Haible  <bruno@clisp.org>
5875
5876         Mark 'raise' obsolete.
5877         * modules/raise (Status, Notice): New sections.
5878         (Include): Specify <signal.h>.
5879         * modules/stdio (Depends-on): Add raise.
5880         * modules/write (Depends-on): Likewise.
5881
5882 2008-11-02  Bruno Haible  <bruno@clisp.org>
5883
5884         Mark 'memset' obsolete.
5885         * modules/memset (Status, Notice): New sections.
5886
5887 2008-11-02  Bruno Haible  <bruno@clisp.org>
5888
5889         Mark 'memmove' obsolete.
5890         * modules/memmove (Status, Notice): New sections.
5891         * modules/argp (Depends-on): Add memmove.
5892         * modules/argz (Depends-on): Likewise.
5893         * modules/canonicalize (Depends-on): Likewise.
5894         * modules/canonicalize-lgpl (Depends-on): Likewise.
5895         * modules/fts (Depends-on): Likewise.
5896         * modules/getcwd (Depends-on): Likewise.
5897         * modules/human (Depends-on): Likewise.
5898         * modules/regex (Depends-on): Likewise.
5899         * modules/striconveh (Depends-on): Likewise.
5900         * modules/trim (Depends-on): Likewise.
5901         * modules/unistr/u8-move (Depends-on): Likewise.
5902         * modules/unistr/u16-move (Depends-on): Likewise.
5903         * modules/unistr/u32-move (Depends-on): Likewise.
5904
5905 2008-11-02  Bruno Haible  <bruno@clisp.org>
5906
5907         Mark 'memcpy' obsolete.
5908         * modules/memcpy (Status, Notice): New sections.
5909
5910 2008-11-02  Bruno Haible  <bruno@clisp.org>
5911
5912         Mark 'memcmp' obsolete.
5913         * modules/memcmp (Status, Notice): New sections.
5914         * modules/argmatch (Depends-on): Add memchr.
5915         * modules/backupfile (Depends-on): Likewise.
5916         * modules/c-strcasestr (Depends-on): Likewise.
5917         * modules/crypto/des (Depends-on): Likewise.
5918         * modules/csharpcomp (Depends-on): Likewise.
5919         * modules/fnmatch (Depends-on): Likewise.
5920         * modules/git-merge-changelog (Depends-on): Likewise.
5921         * modules/isnand (Depends-on): Likewise.
5922         * modules/isnand-nolibm (Depends-on): Likewise.
5923         * modules/isnanf (Depends-on): Likewise.
5924         * modules/isnanf-nolibm (Depends-on): Likewise.
5925         * modules/isnanl (Depends-on): Likewise.
5926         * modules/isnanl-nolibm (Depends-on): Likewise.
5927         * modules/mbchar (Depends-on): Likewise.
5928         * modules/memcoll (Depends-on): Likewise.
5929         * modules/quotearg (Depends-on): Likewise.
5930         * modules/regex (Depends-on): Likewise.
5931         * modules/relocatable-prog (Depends-on): Likewise.
5932         * modules/same (Depends-on): Likewise.
5933         * modules/signbit (Depends-on): Likewise.
5934         * modules/strcasestr-simple (Depends-on): Likewise.
5935         * modules/unictype/gen-ctype (Depends-on): Likewise.
5936         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5937         * modules/uniname/uniname (Depends-on): Likewise.
5938         * modules/unistr/u8-cmp (Depends-on): Likewise.
5939
5940 2008-11-02  Bruno Haible  <bruno@clisp.org>
5941
5942         Mark 'memchr' obsolete.
5943         * modules/memchr (Status, Notice): New sections.
5944         * modules/argp (Depends-on): Add memchr.
5945         * modules/base64 (Depends-on): Likewise.
5946         * modules/c-strcasestr (Depends-on): Likewise.
5947         * modules/chdir-long (Depends-on): Likewise.
5948         * modules/fnmatch (Depends-on): Likewise.
5949         * modules/getsubopt (Depends-on): Likewise.
5950         * modules/git-merge-changelog (Depends-on): Likewise.
5951         * modules/glob (Depends-on): Likewise.
5952         * modules/strcasestr-simple (Depends-on): Likewise.
5953         * modules/strnlen (Depends-on): Likewise.
5954
5955 2008-11-02  Bruno Haible  <bruno@clisp.org>
5956
5957         Mark 'atexit' obsolete.
5958         * modules/atexit (Status, Notice): New sections.
5959         * modules/chdir-long (Depends-on): Add atexit.
5960         * modules/wait-process (Depends-on): Likewise.
5961
5962 2008-11-02  Bruno Haible  <bruno@clisp.org>
5963
5964         * gnulib-tool: New option --with-obsolete.
5965         (func_usage): Document it.
5966         (func_modules_transitive_closure): Drop obsolete dependencies if
5967         incobsolete is not true.
5968         (func_import): Read and save the incobsolete variable to the cache.
5969
5970 2008-11-02  Bruno Haible  <bruno@clisp.org>
5971
5972         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5973         * gnulib-tool: New option --extract-status.
5974         (func_usage): Document it.
5975         (sed_extract_prog): Recognize it.
5976         (func_get_status): New function.
5977
5978 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5979
5980         * modules/sockets (License): Change from LGPL to LGPLv2+.
5981
5982 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5983
5984         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5985
5986 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5987
5988         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5989         Mention times and sys_times.
5990         * modules/sys_times, modules/sys_times-tests: New modules.
5991         * modules/times, modules/times-tests: Likewise
5992         * m4/sys_times_h.m4: New file.
5993         * lib/sys_times.in.h: Likewise
5994         * lib/times.c: Likewise.
5995         * tests/test-sys_times.c: Likewise.
5996         * tests/test-times.c: Likewise.
5997         * doc/posix-headers/sys_times.texi: Update.
5998         * doc/posix-functions/times.texi: Update.
5999
6000 2008-10-28  Jim Meyering  <meyering@redhat.com>
6001
6002         * modules/tempname (Depends-on): Add lstat.
6003
6004         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
6005
6006 2008-10-28  Simon Josefsson  <simon@josefsson.org>
6007
6008         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
6009         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
6010         using idiom used elsewhere in gnulib.
6011
6012 2008-10-27  Jim Meyering  <meyering@redhat.com>
6013
6014         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
6015
6016 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6017
6018         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
6019         TESTS_ENVIRONMENT, for shell scripts that needs to call built
6020         programs.
6021         * tests/test-argp-2.sh: Use $EXEEXT when needed.
6022
6023 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6024
6025         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
6026
6027 2008-10-27  Bruno Haible  <bruno@clisp.org>
6028
6029         * tests/test-lstat.c: Include <stdio.h>.
6030
6031 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6032
6033         * modules/lstat-tests: New module.
6034         * tests/test-lstat.c: New file.
6035
6036 2008-10-26  Jim Meyering  <meyering@redhat.com>
6037
6038         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
6039
6040 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6041             Bruno Haible  <bruno@clisp.org>
6042
6043         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
6044         * modules/configmake (Include): Add a note that the include must come
6045         after all system headers.
6046         * lib/javaversion.c: Include configmake.h after all other includes.
6047
6048 2008-10-26  Bruno Haible  <bruno@clisp.org>
6049
6050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
6051         HAVE_STRUCT_RANDOM_DATA to 1.
6052         (gl_STDLIB_H): Simplify.
6053
6054 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6055
6056         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
6057         substitute HAVE_STRUCT_RANDOM_DATA.
6058         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
6059         random_data.
6060         * modules/stdlib (Makefile.am): Substitute
6061         HAVE_STRUCT_RANDOM_DATA.
6062
6063 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6064
6065         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
6066         * doc/gnulib-intro.texi (Copyright): Likewise.
6067
6068 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6069
6070         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
6071         findings.
6072
6073 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
6074             Bruno Haible  <bruno@clisp.org>
6075
6076         * lib/unistd.in.h: Include <winsock2.h>.
6077         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
6078         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
6079         Provide dummy declarations.
6080         (gethostname): Override.
6081         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
6082         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
6083         gl_PREREQ_SYS_H_WINSOCK2.
6084         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
6085         * doc/posix-functions/gethostname.texi: More details.
6086
6087 2008-10-25  Bruno Haible  <bruno@clisp.org>
6088
6089         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6090         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
6091         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
6092
6093         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
6094         here ...
6095         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
6096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
6097         gl_UNISTD_H_DEFAULTS.
6098
6099 2008-10-25  Eric Blake  <ebb9@byu.net>
6100
6101         signbit: avoid spurious compiler failure
6102         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
6103         declarations inside function.
6104
6105 2008-10-24  Simon Josefsson  <simon@josefsson.org>
6106             Bruno Haible  <bruno@clisp.org>
6107
6108         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
6109         * modules/random_r (Depends-on): Add stdint.
6110
6111 2008-10-24  Bruno Haible  <bruno@clisp.org>
6112
6113         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
6114         Eggert.
6115         * modules/strerror (License): Likewise.
6116
6117 2008-10-24  Jim Meyering  <meyering@redhat.com>
6118
6119         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
6120         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
6121
6122 2008-10-24  Eric Blake  <ebb9@byu.net>
6123
6124         getgroups: fix compilation when getgroups is available
6125         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
6126         but with <config.h> override of getgroups disabled.
6127
6128 2008-10-24  Simon Josefsson  <simon@josefsson.org>
6129
6130         * doc/gnulib.texi (Header files): Add note about C++ problems.
6131         Explained by Bruno Haible <bruno@clisp.org>.
6132
6133 2008-10-23  Bruno Haible  <bruno@clisp.org>
6134
6135         Define a dummy SA_NODEFER macro on Interix.
6136         * lib/signal.in.h (SA_NODEFER): Define fallback.
6137         Reported by Aleksey Cheusov <cheusov@tut.by> via
6138         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
6139
6140 2008-10-23  Bruno Haible  <bruno@clisp.org>
6141
6142         * modules/freadahead (License): Change to LGPLv2+.
6143         Suggested by Simon Josefsson.
6144
6145 2008-10-23  Jim Meyering  <meyering@redhat.com>
6146
6147         random_r: new module
6148         * modules/random_r: New file.
6149         * m4/random_r.m4: New file.
6150         * lib/random_r.c: New file, from glibc.
6151         * modules/random_r-tests: New file.
6152         * tests/test-random_r.c: New file.
6153         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
6154          Declare.
6155         (RAND_MAX): Define.
6156         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
6157         * modules/stdlib: Substitute them, too.
6158         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
6159         * doc/glibc-functions/initstate_r.texi: Mention the new module.
6160         * doc/glibc-functions/random_r.texi: Likewise.
6161         * doc/glibc-functions/setstate_r.texi: Likewise.
6162         * doc/glibc-functions/srandom_r.texi: Likewise.
6163         * config/srclist.txt: Mention it.
6164
6165 2008-10-23  David Lutterkort  <lutter@redhat.com>
6166
6167         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
6168         link requirement
6169
6170 2008-10-23  Jim Meyering  <meyering@redhat.com>
6171
6172         selinux-h: mark parameters of stub functions as intentionally unused
6173         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
6174         * lib/se-context.in.h: Likewise.
6175
6176 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6177
6178         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
6179
6180 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6181
6182         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
6183
6184 2008-10-22  Eric Blake  <ebb9@byu.net>
6185
6186         glthread/thread: avoid compiler warning
6187         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
6188         Add unreachable abort to silence compiler.
6189
6190 2008-10-22  Eric Blake  <ebb9@byu.net>
6191
6192         netdb: also supply struct addrinfo for cygwin 1.5.x
6193         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
6194         older cygwin.
6195         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
6196         cygwin.
6197         * doc/posix-headers/netdb.texi (netdb.h): Document this.
6198
6199 2008-10-22  Bruno Haible  <bruno@clisp.org>
6200
6201         * users.txt: Update entry about pspp.
6202
6203 2008-10-21  Bruno Haible  <bruno@clisp.org>
6204
6205         Simplification.
6206         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
6207         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
6208
6209         Simplification.
6210         * lib/ioctl.c (ioctl): Don't undefine.
6211         * lib/socket.c (socket): Don't undefine.
6212
6213         Remove unused module indicator macros.
6214         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
6215         GNULIB_$1 as a C macro.
6216
6217         * doc/posix-functions/close.texi: Undo last change.
6218         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
6219         Windows platforms.
6220
6221 2008-10-21  Bruno Haible  <bruno@clisp.org>
6222
6223         Add gethostname() declaration to <unistd.h>.
6224         * lib/unistd.in.h (gethostname): New declaration.
6225         * lib/gethostname.c: Include <unistd.h>.
6226         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
6227         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
6228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
6229         and HAVE_GETHOSTNAME.
6230         * modules/gethostname (Depends-on): Add unistd.
6231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6232         (Include): Specify <unistd.h>.
6233         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
6234         HAVE_GETHOSTNAME.
6235         * tests/test-gethostname.c: Include <unistd.h> first.
6236
6237 2008-10-21  Bruno Haible  <bruno@clisp.org>
6238
6239         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
6240         * modules/select-tests (Depends-on): Likewise.
6241         Reported by Simon Josefsson.
6242
6243 2008-10-21  Simon Josefsson  <simon@josefsson.org>
6244
6245         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
6246         * lib/accept.c: New file, based on winsock.c.
6247         * lib/bind.c: New file, based on winsock.c.
6248         * lib/connect.c: New file, based on winsock.c.
6249         * lib/getpeername.c: New file, based on winsock.c.
6250         * lib/getsockname.c: New file, based on winsock.c.
6251         * lib/getsockopt.c: New file, based on winsock.c.
6252         * lib/ioctl.c: New file, based on winsock.c.
6253         * lib/listen.c: New file, based on winsock.c.
6254         * lib/recv.c: New file, based on winsock.c.
6255         * lib/recvfrom.c: New file, based on winsock.c.
6256         * lib/send.c: New file, based on winsock.c.
6257         * lib/sendto.c: New file, based on winsock.c.
6258         * lib/setsockopt.c: New file, based on winsock.c.
6259         * lib/shutdown.c: New file, based on winsock.c.
6260         * lib/socket.c: New file, based on winsock.c.
6261         * lib/w32sock.h: New file, based on winsock.c.
6262         * lib/winsock.c: Remove file.
6263         * modules/accept: Likewise.
6264         * modules/bind: Likewise.
6265         * modules/connect: Likewise.
6266         * modules/getpeername: Likewise.
6267         * modules/getsockname: Likewise.
6268         * modules/getsockopt: Likewise.
6269         * modules/ioctl: Likewise.
6270         * modules/listen: Likewise.
6271         * modules/recv: Likewise.
6272         * modules/recvfrom: Likewise.
6273         * modules/send: Likewise.
6274         * modules/sendto: Likewise.
6275         * modules/setsockopt: Likewise.
6276         * modules/shutdown: Likewise.
6277         * modules/socket: Use socket.c instead of winsock.c.
6278         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
6279         * doc/posix-functions/accept.texi: Doc fix.
6280         * doc/posix-functions/bind.texi: Doc fix.
6281         * doc/posix-functions/close.texi: Doc fix.
6282         * doc/posix-functions/connect.texi: Doc fix.
6283         * doc/posix-functions/getpeername.texi: Doc fix.
6284         * doc/posix-functions/getsockname.texi: Doc fix.
6285         * doc/posix-functions/getsockopt.texi: Doc fix.
6286         * doc/posix-functions/ioctl.texi: Doc fix.
6287         * doc/posix-functions/listen.texi: Doc fix.
6288         * doc/posix-functions/recv.texi: Doc fix.
6289         * doc/posix-functions/recvfrom.texi: Doc fix.
6290         * doc/posix-functions/send.texi: Doc fix.
6291         * doc/posix-functions/sendto.texi: Doc fix.
6292         * doc/posix-functions/setsockopt.texi: Doc fix.
6293         * doc/posix-functions/shutdown.texi: Doc fix.
6294         * doc/posix-functions/socket.texi: Doc fix.
6295
6296 2008-10-20  Bruno Haible  <bruno@clisp.org>
6297
6298         Take into account the role of SIGABRT_COMPAT on Windows 2008.
6299         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
6300         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
6301         as an alias for SIGABRT.
6302         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
6303         (sigaction): Map it to SIGABRT.
6304         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
6305
6306 2008-10-20  Bruno Haible  <bruno@clisp.org>
6307
6308         * lib/fts.c: Don't include lstat.h.
6309         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
6310
6311         Move the lstat() declaration to <sys/stat.h>.
6312         * lib/lstat.h: Remove file.
6313         * lib/sys_stat.in.h: Add special invocation convention.
6314         (lstat): New declaration.
6315         * lib/lstat.c (orig_lstat): New function.
6316         (rpl_lstat): Use orig_lstat instead of lstat.
6317         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
6318         AC_C_INLINE. Set REPLACE_LSTAT.
6319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
6320         and REPLACE_LSTAT.
6321         * modules/lstat (Files): Remove lib/lstat.h.
6322         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6323         (Include): Specify <sys/stat.h> instead of lstat.h.
6324         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
6325         REPLACE_LSTAT.
6326         * NEWS: Mention the change.
6327
6328 2008-10-20  Bruno Haible  <bruno@clisp.org>
6329
6330         * modules/posix_spawn-tests: New file.
6331         * tests/test-posix_spawn3.c: New file.
6332
6333 2008-10-20  Bruno Haible  <bruno@clisp.org>
6334
6335         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
6336         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6337         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
6338         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6339         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
6340
6341 2008-10-20  Bruno Haible  <bruno@clisp.org>
6342
6343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
6344         of posix_spawn on AIX 5.3.
6345
6346 2008-10-20  Bruno Haible  <bruno@clisp.org>
6347
6348         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
6349
6350 2008-10-20  Bruno Haible  <bruno@clisp.org>
6351
6352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
6353         of AC_LANG_PROGRAM.
6354
6355 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6356
6357         * lib/netdb.in.h: Don't define GNU specific constants until they
6358         are supported or needed.  Reported by Bruno Haible
6359         <bruno@clisp.org>.
6360
6361 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6362
6363         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
6364
6365 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6366
6367         * lib/getaddrinfo.h: Remove file.
6368         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
6369         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
6370         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
6371         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
6372         * modules/netdb: Substitute GNULIB_GETADDRINFO.
6373         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
6374         * tests/test-getaddrinfo.c: Likewise.
6375         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
6376         * NEWS: Mention change.
6377
6378 2008-10-19  Bruno Haible  <bruno@clisp.org>
6379
6380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
6381
6382 2008-10-19  Bruno Haible  <bruno@clisp.org>
6383
6384         * lib/wait-process.c: Include simply <sys/wait.h>.
6385         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
6386         WIFSTOPPED): Remove fallback definitions.
6387         * modules/wait-process (Depends-on): Add sys_wait.
6388
6389         New module 'sys_wait'.
6390         * modules/sys_wait: New file.
6391         * lib/sys_wait.in.h: New file, partially copied from
6392         lib/wait-process.c.
6393         * m4/sys_wait_h.m4: New file.
6394         * doc/posix-headers/sys_wait.texi: Mention the new module.
6395
6396 2008-10-19  Bruno Haible  <bruno@clisp.org>
6397
6398         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
6399
6400 2008-10-19  Bruno Haible  <bruno@clisp.org>
6401
6402         Assume that waitpid() fills an 'int' status, not a 'union wait'.
6403         * lib/wait-process.c (WAIT_T): Remove type.
6404         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
6405         (wait_subprocess): Update.
6406
6407 2008-10-19  Bruno Haible  <bruno@clisp.org>
6408
6409         New module 'atoll'.
6410         * modules/atoll: New file.
6411         * lib/stdlib.in.h (atoll): New declaration.
6412         * lib/atoll.c: New file, from glibc with modifications.
6413         * m4/atoll.m4: New file.
6414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
6415         HAVE_ATOLL.
6416         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
6417         * doc/posix-functions/atoll.texi: Mention the new module.
6418
6419 2008-10-19  Bruno Haible  <bruno@clisp.org>
6420
6421         Add strtoull() declaration to <stdlib.h>.
6422         * lib/stdlib.in.h (strtoull): New declaration.
6423         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6424         Set HAVE_STRTOULL.
6425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
6426         HAVE_STRTOULL.
6427         * modules/strtoull (Depends-on): Add stdlib.
6428         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6429         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
6430         HAVE_STRTOULL.
6431
6432 2008-10-19  Bruno Haible  <bruno@clisp.org>
6433
6434         Add strtoll() declaration to <stdlib.h>.
6435         * lib/stdlib.in.h (strtoll): New declaration.
6436         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6437         Set HAVE_STRTOLL.
6438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
6439         HAVE_STRTOLL.
6440         * modules/strtoll (Depends-on): Add stdlib.
6441         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6442         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
6443
6444 2008-10-19  Bruno Haible  <bruno@clisp.org>
6445
6446         * modules/bcopy (Depends-on): Add strings.
6447         (Include): Specify <strings.h>.
6448
6449 2008-10-19  Bruno Haible  <bruno@clisp.org>
6450
6451         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
6452
6453 2008-10-19  Bruno Haible  <bruno@clisp.org>
6454
6455         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
6456         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
6457         mingw.
6458
6459 2008-10-19  Bruno Haible  <bruno@clisp.org>
6460
6461         * lib/atanl.c: Don't include isnanl.h.
6462         * lib/cosl.c: Likewise.
6463         * lib/ldexpl.c: Likewise.
6464         * lib/logl.c: Likewise.
6465         * lib/sinl.c: Likewise.
6466         * lib/sqrtl.c: Likewise.
6467         * lib/tanl.c: Likewise.
6468
6469         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
6470         * lib/isnanf.h: Remove file.
6471         * lib/isnand.h: Remove file.
6472         * lib/isnanl.h: Remove file.
6473         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
6474         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
6475         macros.
6476         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
6477         HAVE_ISNANF, don't define it as a C macro.
6478         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
6479         HAVE_ISNAND, don't define it as a C macro.
6480         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
6481         HAVE_ISNANL, don't define it as a C macro.
6482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
6483         HAVE_ISNAN[FDL].
6484         * modules/isnanf (Files): Remove lib/isnanf.h.
6485         (Depends-on): Add math.
6486         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6487         (Include): Specify <math.h> instead of isnanf.h.
6488         * modules/isnand (Files): Remove lib/isnand.h.
6489         (Depends-on): Add math.
6490         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6491         (Include): Specify <math.h> instead of isnand.h.
6492         * modules/isnanl (Files): Remove lib/isnanl.h.
6493         (Depends-on): Add math.
6494         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6495         (Include): Specify <math.h> instead of isnanl.h.
6496         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
6497         HAVE_ISNAN[FDL].
6498         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
6499         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
6500         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
6501         * NEWS: Mention the change.
6502
6503 2008-10-18  Bruno Haible  <bruno@clisp.org>
6504
6505         Add getusershell(), setusershell(), endusershell() declarations to
6506         <unistd.h>.
6507         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
6508         declarations.
6509         * lib/getusershell.c: Include unistd.h.
6510         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
6511         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6512         HAVE_GETUSERSHELL.
6513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
6514         and HAVE_GETUSERSHELL.
6515         * modules/getusershell (Depends-on): Add unistd, extensions.
6516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6517         (Include): Specify <unistd.h>.
6518         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
6519         HAVE_GETUSERSHELL.
6520
6521 2008-10-18  Bruno Haible  <bruno@clisp.org>
6522
6523         Add a getloadavg() declaration to <stdlib.h>.
6524         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
6525         getloadavg declaration.
6526         (getloadavg): New declaration.
6527         * lib/getloadavg.c: Include <stdlib.h> first.
6528         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
6529         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
6530         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
6531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
6532         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6533         * modules/getloadavg (Depends-on): Add stdlib, extensions.
6534         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6535         (Include): Specify <stdlib.h>.
6536         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
6537         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6538
6539 2008-10-18  Bruno Haible  <bruno@clisp.org>
6540
6541         * lib/dirchownmod.c: Don't include lchmod.h.
6542
6543         Move the lchmod() declaration to <sys/stat.h>.
6544         * lib/lchmod.h: Remove file.
6545         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
6546         (lchmod): New declaration, moved here from lib/lchown.h.
6547         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
6548         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
6549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
6550         and HAVE_LCHMOD.
6551         * modules/lchmod (Files): Remove lib/lchmod.h.
6552         (Depends-on): Add sys_stat, extensions.
6553         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6554         (Include): Specify <sys/stat.h> instead of lchmod.h.
6555         * modules/sys_stat (Depends-on): Add link-warning.
6556         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
6557         definition of GL_LINK_WARNING.
6558         * NEWS: Mention the change.
6559
6560 2008-10-18  Bruno Haible  <bruno@clisp.org>
6561
6562         * lib/fchdir.c: Don't include dirfd.h.
6563         * lib/fts.c: Likewise.
6564         * lib/getcwd.c: Likewise.
6565         * lib/glob.c: Likewise.
6566
6567         Move the dirfd() declaration to <dirent.h>.
6568         * lib/dirfd.h: Remove file.
6569         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
6570         (dirfd): New declaration.
6571         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
6572         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
6573         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
6574         HAVE_DECL_DIRFD.
6575         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
6576         HAVE_DECL_DIRFD.
6577         * modules/dirfd (Files): Remove lib/dirfd.h.
6578         (Depends-on): Add dirent, extensions.
6579         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
6580         (Include): Specify <dirent.h> instead of dirfd.h.
6581         * modules/dirent (Depends-on): Add link-warning.
6582         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
6583         definition of GL_LINK_WARNING.
6584         * NEWS: Mention the change.
6585
6586 2008-10-18  Bruno Haible  <bruno@clisp.org>
6587
6588         Move the euidaccess() declaration to <unistd.h>.
6589         * lib/euidaccess.h: Remove file.
6590         * lib/unistd.in.h (euidaccess): New declaration.
6591         * lib/euidaccess.c: Don't include euidaccess.h.
6592         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
6593         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
6594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
6595         and HAVE_EUIDACCESS.
6596         * modules/euidaccess (Files): Remove lib/euidaccess.h.
6597         (Depends-on): Add unistd.
6598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6599         (Include): Specify <unistd.h> instead of euidaccess.h.
6600         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
6601         HAVE_EUIDACCESS.
6602         * NEWS: Mention the change.
6603
6604 2008-10-18  Bruno Haible  <bruno@clisp.org>
6605
6606         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
6607
6608         Move the getdomainname() declaration to <unistd.h>.
6609         * lib/getdomainname.h: Remove file.
6610         * lib/unistd.in.h (getdomainname): New declaration.
6611         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
6612         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6613         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6614         HAVE_GETDOMAINNAME.
6615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6616         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
6617         * modules/getdomainname (Files): Remove lib/getdomainname.h.
6618         (Depends-on): Add unistd, extensions.
6619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6620         (Includes): Specify <unistd.h> instead of getdomainname.h.
6621         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
6622         HAVE_GETDOMAINNAME.
6623         * NEWS: Mention the change.
6624
6625 2008-10-18  Bruno Haible  <bruno@clisp.org>
6626
6627         * modules/dirent: New file.
6628         * m4/dirent_h.m4: New file.
6629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6630         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
6631         * modules/fchdir (Files): Remove lib/dirent.in.h.
6632         (Depends-on): Add dirent.
6633         (Makefile.am): Move rules to modules/dirent.
6634         * doc/posix-headers/dirent.texi: Mention the new module.
6635
6636 2008-10-18  Bruno Haible  <bruno@clisp.org>
6637
6638         Avoid -Wunused-parameter warnings in public gnulib header files.
6639         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
6640         macro.
6641         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
6642
6643 2008-10-18  Bruno Haible  <bruno@clisp.org>
6644
6645         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
6646         * doc/glibc-functions/error.texi: Mention the module 'error'.
6647         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
6648         * doc/glibc-functions/getdomainname.texi: Mention the module
6649         'getdomainname'.
6650         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
6651         * doc/glibc-functions/getpagesize.texi: Mention the module
6652         'getpagesize'.
6653         * doc/glibc-functions/getusershell.texi: Mention the module
6654         'getusershell'.
6655         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
6656         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
6657         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
6658         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
6659         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
6660         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
6661         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
6662         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
6663         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
6664         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
6665         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
6666         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
6667         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
6668         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
6669
6670 2008-10-17  Bruno Haible  <bruno@clisp.org>
6671
6672         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
6673         HP-UX and IRIX, use -0.0L.
6674         * tests/test-ceill.c (minus_zero): Likewise.
6675         * tests/test-floorl.c (minus_zero): Likewise.
6676         * tests/test-frexpl.c (minus_zero): Likewise.
6677         * tests/test-isnan.c (minus_zerol): Likewise.
6678         * tests/test-isnanl.h (minus_zero): Likewise.
6679         * tests/test-ldexpl.c (minus_zero): Likewise.
6680         * tests/test-roundl.c (minus_zero): Likewise.
6681         * tests/test-signbit.c (minus_zerol): Likewise.
6682         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6683         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6684         * tests/test-truncl.c (minus_zero): Likewise.
6685         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6686         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6687         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
6688         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6689
6690 2008-10-17  Bruno Haible  <bruno@clisp.org>
6691
6692         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
6693         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
6694         that it gets activated only for gcc >= 3.0.
6695         * lib/dirent.in.h: Likewise.
6696         * lib/errno.in.h: Likewise.
6697         * lib/fcntl.in.h: Likewise.
6698         * lib/float.in.h: Likewise.
6699         * lib/iconv.in.h: Likewise.
6700         * lib/inttypes.in.h: Likewise.
6701         * lib/locale.in.h: Likewise.
6702         * lib/math.in.h: Likewise.
6703         * lib/netdb.in.h: Likewise.
6704         * lib/netinet_in.in.h: Likewise.
6705         * lib/search.in.h: Likewise.
6706         * lib/signal.in.h: Likewise.
6707         * lib/spawn.in.h: Likewise.
6708         * lib/stdarg.in.h: Likewise.
6709         * lib/stdint.in.h: Likewise.
6710         * lib/stdio.in.h: Likewise.
6711         * lib/stdlib.in.h: Likewise.
6712         * lib/string.in.h: Likewise.
6713         * lib/strings.in.h: Likewise.
6714         * lib/sys_file.in.h: Likewise.
6715         * lib/sys_ioctl.in.h: Likewise.
6716         * lib/sys_select.in.h: Likewise.
6717         * lib/sys_socket.in.h: Likewise.
6718         * lib/sys_stat.in.h: Likewise.
6719         * lib/sys_time.in.h: Likewise.
6720         * lib/sysexits.in.h: Likewise.
6721         * lib/time.in.h: Likewise.
6722         * lib/unistd.in.h: Likewise.
6723         * lib/wchar.in.h: Likewise.
6724         * lib/wctype.in.h: Likewise.
6725         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6726
6727 2008-10-17  Jim Meyering  <meyering@redhat.com>
6728
6729         ignore-value: don't depend on inline module
6730         * modules/ignore-value (Depends-on): Remove 'inline'.
6731         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6732         Suggestion from Bruno Haible.
6733
6734 2008-10-17  Bruno Haible  <bruno@clisp.org>
6735
6736         New implementation of condition variables for Win32.
6737         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6738         (gl_linked_waitqueue_t): New type.
6739         (gl_cond_t): Use it.
6740         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6741         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6742         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6743         (glthread_cond_init_func, glthread_cond_wait_func,
6744         glthread_cond_timedwait_func, glthread_cond_signal_func,
6745         glthread_cond_broadcast_func, glthread_cond_destroy_func):
6746         Reimplemented on the basis of gl_linked_waitqueue_t.
6747         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6748         gl_waitqueue_t.
6749         (gl_rwlock_t): Update.
6750         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6751
6752 2008-10-17  Simon Josefsson  <simon@josefsson.org>
6753
6754         * modules/recvfrom (Depends-on): Add dependency on getpeername.
6755         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6756
6757 2008-10-17  Jim Meyering  <meyering@redhat.com>
6758
6759         ignore-value: new module
6760         * modules/ignore-value: New file.
6761         * lib/ignore-value.h: New file.
6762         * MODULES.html.sh (Compiler warning management): New section,
6763         just for this module.  More to come.
6764
6765 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6766
6767         open-safer.c: avoid 'signed and unsigned in conditional...' warning
6768         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6769         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6770
6771 2008-10-16  Jim Meyering  <meyering@redhat.com>
6772
6773         openat-die.c: avoid 'no previous prototype' warning
6774         * lib/openat-die.c: Include "openat.h".
6775         Reported by Reuben Thomas <rrt@sc3d.org>.
6776
6777 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6778
6779         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6780         * lib/netdb.in.h: Fix typo.
6781         Reported by Bruno Haible  <bruno@clisp.org>
6782
6783         * lib/netdb.in.h: Include sys/socket.h for platforms without
6784         netdb.h, to get structures like hostent on MinGW.
6785         * modules/netdb (Depends-on): Add sys_socket.
6786
6787 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6788
6789         * modules/netdb, modules/netdb-tests: New file.
6790         * m4/netdb_h.m4: New file.
6791         * lib/netdb.in.h: Add, currently just an empty file pending
6792         definitions.
6793         * tests/test-netdb.c: New file.
6794         * doc/posix-headers/netdb.texi: Mention that we replace it if
6795         needed.
6796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6797         netdb.
6798
6799 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6800
6801         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6802         with code.
6803
6804 2008-10-13  Bruno Haible  <bruno@clisp.org>
6805
6806         * lib/glthread/cond.c (glthread_cond_wait_func,
6807         glthread_cond_timedwait_func): Add a comment.
6808
6809 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6810
6811         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6812         * tests/test-select.c: Likewise,
6813
6814 2008-10-13  Bruno Haible  <bruno@clisp.org>
6815
6816         * lib/glthread/cond.c (glthread_cond_wait_func,
6817         glthread_cond_timedwait_func): Fix variable name.
6818         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6819
6820 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
6821
6822         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6823         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6824         struct sockaddr.sa_len.
6825         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6826
6827 2008-10-13  Simon Josefsson  <simon@josefsson.org>
6828
6829         * build-aux/pmccabe2html: Add css and css_url parameters.
6830
6831 2008-10-12  Bruno Haible  <bruno@clisp.org>
6832
6833         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6834         calling aclx_get.
6835         Reported by Rainer Tammer <tammer@tammer.net>.
6836
6837 2008-10-12  Bruno Haible  <bruno@clisp.org>
6838
6839         Use msvcrt aware primitives for creation/termination of Win32 threads.
6840         * lib/glthread/thread.c: Include <process.h>.
6841         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6842         (wrapper_func): Update signature.
6843         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6844
6845 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6846             Bruno Haible  <bruno@clisp.org>
6847
6848         Provide a Win32 implementation of the 'cond' module.
6849         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6850         * lib/glthread/cond.c (glthread_cond_init_func,
6851         glthread_cond_wait_func, glthread_cond_timedwait_func,
6852         glthread_cond_signal_func, glthread_cond_broadcast_func,
6853         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6854         * modules/cond (Dependencies): Add gettimeofday.
6855
6856 2008-10-11  Bruno Haible  <bruno@clisp.org>
6857
6858         Make sleep work on older versions of mingw.
6859         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6860         only whether it exists.
6861         * doc/posix-functions/sleep.texi: Mention the problem with older
6862         versions of mingw.
6863
6864 2008-10-11  Bruno Haible  <bruno@clisp.org>
6865
6866         New module 'shutdown'.
6867         * modules/shutdown: New file.
6868         * lib/sys_socket.in.h (shutdown): New declaration.
6869         * lib/winsock.c (shutdown): New function.
6870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6871         GNULIB_SHUTDOWN.
6872         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6873         * doc/posix-functions/shutdown.texi: Document the new module.
6874
6875 2008-10-11  Jim Meyering  <meyering@redhat.com>
6876
6877         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6878
6879 2008-10-11  Bruno Haible  <bruno@clisp.org>
6880
6881         New module 'fclose'.
6882         * modules/fclose: New file.
6883         * lib/stdio.in.h (fclose): New declaration.
6884         * lib/fclose.c: New file.
6885         * m4/fclose.m4: New file.
6886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6887         REPLACE_FCLOSE.
6888         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6889         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6890         REPLACE_FCLOSE.
6891         * modules/close (Depends-on): fclose.
6892         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6893
6894 2008-10-11  Bruno Haible  <bruno@clisp.org>
6895
6896         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6897         set errno and don't call _close.
6898
6899 2008-10-10  Bruno Haible  <bruno@clisp.org>
6900
6901         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6902         ACL, not afterwards. Fixes test failure on Cygwin.
6903
6904 2008-10-09  Ben Pfaff  <blp@gnu.org>
6905
6906         * build-aux/announce-gen: Fix gnulib version related part of usage
6907         message.  Die with a useful error message if no tarballs are
6908         found.
6909
6910 2008-10-10  Jim Meyering  <meyering@redhat.com>
6911
6912         bootstrap: use git's --depth=N option only if it's supported
6913         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6914         recognize the --depth option.  Reported by Pádraig Brady.
6915
6916 2008-10-09  Bruno Haible  <bruno@clisp.org>
6917
6918         New module 'ioctl'.
6919         * modules/ioctl: New file.
6920         * lib/sys_socket.in.h (ioctl): Remove declaration.
6921         * lib/winsock.c: Include <sys/ioctl.h>.
6922         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6923         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6924         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6925         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6926         * doc/posix-functions/ioctl.texi: Mention the new module.
6927
6928 2008-10-09  Bruno Haible  <bruno@clisp.org>
6929
6930         New module 'sys_ioctl'.
6931         * lib/sys_ioctl.in.h: New file.
6932         * m4/sys_ioctl_h.m4: New file.
6933         * modules/sys_ioctl: New file.
6934         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6935
6936 2008-10-09  Bruno Haible  <bruno@clisp.org>
6937
6938         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6939         * lib/winsock.c: Include <stdarg.h>.
6940         (rpl_ioctl): Change to second argument 'int' and then varargs.
6941
6942 2008-10-09  Bruno Haible  <bruno@clisp.org>
6943
6944         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6945         when the sys_socket module is present and the system has <winsock2.h>.
6946
6947 2008-10-09  Bruno Haible  <bruno@clisp.org>
6948
6949         * doc/posix-functions/close.texi: Mention module 'close' instead of
6950         module 'sys_socket'.
6951
6952 2008-10-09  Bruno Haible  <bruno@clisp.org>
6953
6954         * doc/glibc-headers/sys_ioctl.texi: New file.
6955         * doc/gnulib.texi: Include it.
6956
6957 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6958             Bruno Haible  <bruno@clisp.org>
6959
6960         Combine the two replacements of 'close'.
6961         * lib/sys_socket.in.h (close): Define to a reminder to include
6962         <unistd.h>.
6963         (_gl_close_fd_maybe_socket): New declaration.
6964         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6965         * lib/winsock.c (close): Remove undefinition.
6966         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6967         needed for the gnulib module 'close'.
6968         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6969         define to an error symbol or to a warning, if suitable.
6970         * lib/close.c: Include <sys/socket.h>.
6971         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6972         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6973         UNISTD_H_HAVE_WINSOCK2_H.
6974         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6976         UNISTD_H_HAVE_WINSOCK2_H.
6977         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6978         (configure.ac): Set a module indicator.
6979         (Makefile.am): Substitute GNULIB_CLOSE.
6980         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6981         * modules/poll-tests (Depends-on): Add close.
6982         * modules/select-tests (Depends-on): Likewise.
6983
6984 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6985             Bruno Haible  <bruno@clisp.org>
6986
6987         New module 'close'.
6988         * modules/close: New file.
6989         * lib/unistd.in.h (close): Move declaration out of the
6990         FCHDIR_REPLACEMENT scope.
6991         (_gl_unregister_fd): New declaration.
6992         * lib/close.c: New file.
6993         * lib/fchdir.c (rpl_close): Remove function.
6994         * m4/close.m4: New file.
6995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6996         close.
6997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6998         REPLACE_CLOSE.
6999         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
7000         REPLACE_CLOSE.
7001         * modules/fchdir (Depends-on): Add close.
7002
7003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7004             Bruno Haible  <bruno@clisp.org>
7005
7006         * lib/fcntl.in.h (open): Simplify conditionals.
7007         (_gl_register_fd): New declaration.
7008         * lib/fchdir.c (rpl_open): Remove function.
7009         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
7010         also.
7011         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
7012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
7013         open.
7014
7015 2008-10-09  Jim Meyering  <meyering@redhat.com>
7016
7017         GNUmakefile: use the more name-space-friendly "_version"
7018         * top/GNUmakefile (_dummy): Update.
7019         (_version): Rename from "version".
7020
7021 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7022             Bruno Haible  <bruno@clisp.org>
7023
7024         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
7025         rpl_close.
7026         (_gl_register_fd): New function, extracted from rpl_open.
7027         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
7028         (rpl_open, rpl_opendir): Use _gl_register_fd.
7029
7030 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7031
7032         Fix organization of 'open' replacement.
7033         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
7034         (gl_FUNC_OPEN): Use it.
7035         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
7036
7037 2008-10-08  Bruno Haible  <bruno@clisp.org>
7038
7039         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
7040
7041 2008-10-08  Simon Josefsson  <simon@josefsson.org>
7042
7043         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
7044         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
7045         listen).
7046
7047 2008-10-08  Eric Blake  <ebb9@byu.net>
7048
7049         GNUmakefile: add 'make version' target
7050         * top/GNUmakefile (_curr-ver): Split version update rules...
7051         (version): ...into a target.
7052
7053 2008-10-07  Bruno Haible  <bruno@clisp.org>
7054
7055         Use a more portable replacement expression for -0.0L.
7056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
7057         instead of -0.0L. Fix m4 quotation.
7058
7059         * tests/test-signbit.c: Include <float.h>.
7060         (minus_zero): New variable.
7061         (test_signbitl): Use minus_zero instead of -zero.
7062         * modules/signbit-tests (Depends-on): Add float.
7063
7064         * tests/test-ceill.c: Include <float.h>.
7065         (zero): Remove variable.
7066         (minus_zero): New variable.
7067         (main): Use minus_zero instead of -zero.
7068         * modules/ceill-tests (Depends-on): Add float.
7069
7070         * tests/test-floorl.c: Include <float.h>.
7071         (zero): Remove variable.
7072         (minus_zero): New variable.
7073         (main): Use minus_zero instead of -zero.
7074         * modules/floorl-tests (Depends-on): Add float.
7075
7076         * tests/test-roundl.c: Include <float.h>.
7077         (zero): Remove variable.
7078         (minus_zero): New variable.
7079         (main): Use minus_zero instead of -zero.
7080         * modules/roundl-tests (Depends-on): Add float.
7081
7082         * tests/test-truncl.c: Include <float.h>.
7083         (zero): Remove variable.
7084         (minus_zero): New variable.
7085         (main): Use minus_zero instead of -zero.
7086         * modules/truncl-tests (Depends-on): Add float.
7087
7088         * tests/test-frexpl.c (zero): Remove variable.
7089         (minus_zero): New variable.
7090         (main): Use minus_zero instead of -zero.
7091         * modules/frexpl-tests (Depends-on): Add float.
7092
7093         * tests/test-isnan.c (zerol): Remove variable.
7094         (minus_zerol): New variable.
7095         (test_long_double): Use minus_zerol instead of -zerol.
7096         * modules/isnan-tests (Depends-on): Add float.
7097
7098         * tests/test-isnanl.h (zero): Remove variable.
7099         (minus_zero): New variable.
7100         (main): Use minus_zero instead of -zero.
7101         * modules/isnanl-nolibm-tests (Depends-on): Add float.
7102         * modules/isnanl-tests (Depends-on): Add float.
7103
7104         * tests/test-ldexpl.c (zero): Remove variable.
7105         (minus_zero): New variable.
7106         (main): Use minus_zero instead of -zero.
7107         * modules/ldexpl-tests (Depends-on): Add float.
7108
7109         * tests/test-snprintf-posix.h (zerol): Remove variable.
7110         (minus_zerol): New variable.
7111         (test_function): Use minus_zerol instead of -zerol.
7112         * modules/snprintf-posix-tests (Depends-on): Add float.
7113         * modules/vsnprintf-posix-tests (Depends-on): Add float.
7114
7115         * tests/test-sprintf-posix.h (zerol): Remove variable.
7116         (minus_zerol): New variable.
7117         (test_function): Use minus_zerol instead of -zerol.
7118         * modules/sprintf-posix-tests (Depends-on): Add float.
7119         * modules/vsprintf-posix-tests (Depends-on): Add float.
7120
7121         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
7122         (minus_zerol): New variable.
7123         (test_function): Use minus_zerol instead of -zerol.
7124         * modules/vasnprintf-posix-tests (Depends-on): Add float.
7125
7126         * tests/test-vasprintf-posix.c (zerol): Remove variable.
7127         (minus_zerol): New variable.
7128         (test_function): Use minus_zerol instead of -zerol.
7129         * modules/vasprintf-posix-tests (Depends-on): Add float.
7130
7131 2008-10-07  Simon Josefsson  <simon@josefsson.org>
7132
7133         * MODULES.html.sh (Support for building documentation): Mention
7134         pmccabe2html.  Sort entries.
7135
7136         Add pmccabe2html module, from gnupdf.
7137         * build-aux/pmccabe.css: New file.
7138         * build-aux/pmccabe2html: New file.
7139         * m4/pmccabe2html.m4: New file.
7140         * modules/pmccabe2html: New file.
7141
7142 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
7143
7144         flock: new module
7145         * MODULES.html.sh: Add to list of modules.
7146         * lib/flock.c: flock implementation for Windows and Unix systems
7147         which have fcntl.
7148         * doc/glibc-functions/flock.texi: Update documentation.
7149         * lib/sys_file.in.h: <sys/file.h> header file.
7150         * m4/flock.m4: M4 macros.
7151         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
7152         * modules/flock: flock module.
7153         * modules/flock-tests: flock tests module.
7154         * modules/sys_file: sys/file.h module.
7155         * tests/test-flock.c: test suite for flock.
7156
7157 2008-10-06  Jim Meyering  <meyering@redhat.com>
7158
7159         bootstrap: check for LT_INIT more portably still ;-)
7160         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
7161         Spotted by Bruno Haible.
7162
7163 2008-10-06  Eric Blake  <ebb9@byu.net>
7164
7165         test-signbit: avoid tripping Irix cc bug on -0.0L
7166         * tests/test-signbit.c (minus_zerol): Delete, and replace with
7167         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
7168         entire testsuite consistent and avoids an Irix 6.2 bug.
7169
7170 2008-10-05  Bruno Haible  <bruno@clisp.org>
7171             Jim Meyering  <jim@meyering.net>
7172
7173         Add an option for ignoring EPIPE during close_stdout.
7174         * lib/closeout.h: Include <stdbool.h>.
7175         (close_stdout_set_ignore_EPIPE): New declaration.
7176         * lib/closeout.c: Include <stdbool.h>.
7177         (ignore_EPIPE): New variable.
7178         (close_stdout_set_ignore_EPIPE): New function.
7179         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
7180         * lib/close-stream.c (close_stream): Mention the possible EPIPE
7181         failure.
7182         * modules/closeout (Depends-on): Add stdbool.
7183
7184 2008-10-05  Bruno Haible  <bruno@clisp.org>
7185
7186         * modules/accept: New file.
7187         * modules/bind: New file.
7188         * modules/connect: New file.
7189         * modules/getpeername: New file.
7190         * modules/getsockname: New file.
7191         * modules/getsockopt: New file.
7192         * modules/listen: New file.
7193         * modules/recv: New file.
7194         * modules/recvfrom: New file.
7195         * modules/send: New file.
7196         * modules/sendto: New file.
7197         * modules/setsockopt: New file.
7198         * modules/socket: New file.
7199         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
7200         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7201         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
7202         the particular module is requested. Add a link warning when the
7203         particular module is not requested.
7204         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
7205         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
7206         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
7207         the particular module is requested.
7208         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
7209         gl_SYS_SOCKET_H_DEFAULTS): New macros.
7210         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
7211         * modules/sys_socket (Depends-on): Add link-warning.
7212         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
7213         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
7214         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
7215         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
7216         GL_LINK_WARNING.
7217         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
7218         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
7219         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
7220         * doc/posix-functions/getpeername.texi: Mention the new module
7221         'getpeername'.
7222         * doc/posix-functions/getsockname.texi: Mention the new module
7223         'getsockname'.
7224         * doc/posix-functions/getsockopt.texi: Mention the new module
7225         'getsockopt'.
7226         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
7227         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
7228         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
7229         * doc/posix-functions/send.texi: Mention the new module 'send'.
7230         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
7231         * doc/posix-functions/setsockopt.texi: Mention the new module
7232         'setsockopt'.
7233         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
7234         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
7235         listen, connect, accept.
7236         * modules/select-tests (Depends-on): Likewise.
7237
7238 2008-10-05  Bruno Haible  <bruno@clisp.org>
7239
7240         * lib/winsock.c (strerror): Remove unused #undef.
7241         (rpl_close): Remove unused local variable.
7242
7243         * modules/sys_socket (Depends-on); Add errno.
7244
7245 2008-10-05  Bruno Haible  <bruno@clisp.org>
7246
7247         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
7248         (select): Add a link warning when the 'select' module is not used.
7249         * modules/sys_select (Depends-on): Add link-warning.
7250         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
7251         Suggested by Paolo Bonzini.
7252
7253 2008-10-05  Jim Meyering  <meyering@redhat.com>
7254
7255         bootstrap: check for LT_INIT more portably
7256         * build-aux/bootstrap: Avoid using grep -E, since it's not
7257         portable enough.  Suggestion from Bruno Haible.
7258
7259 2008-10-05  Bruno Haible  <bruno@clisp.org>
7260
7261         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
7262         as being fixed by gnulib.
7263
7264 2008-10-05  Bruno Haible  <bruno@clisp.org>
7265
7266         * modules/select-tests: New file, mostly copied from
7267         modules/sys_select-tests.
7268         * tests/test-select.c: New file, mostly copied from
7269         tests/test-sys_select.c.
7270         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
7271         * modules/sys_select-tests (Depends-on): Remove all dependencies.
7272         (Makefile.am): Remove test_sys_select_LDADD.
7273
7274         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
7275         to an undefined symbol, for an error message.
7276         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
7277         (gl_SYS_SELECT_H_DEFAULTS): New macro.
7278         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
7279         winsock-select.c here.
7280         * modules/sys_select (Files): Remove lib/winsock-select.c.
7281         (Depends-on): Remove alloca.
7282         (Makefile.am): Substitute GNULIB_SELECT.
7283         * modules/select: New file.
7284         * doc/posix-functions/select.texi: Update.
7285
7286 2008-10-05  Bruno Haible  <bruno@clisp.org>
7287
7288         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
7289         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
7290         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
7291         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
7292         getdtablesize.
7293         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7294         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7295
7296 2008-10-05  Bruno Haible  <bruno@clisp.org>
7297
7298         * modules/getdtablesize-tests: New file.
7299         * tests/test-getdtablesize.c: New file.
7300
7301         New module 'getdtablesize'.
7302         * lib/unistd.in.h (getdtablesize): New declaration.
7303         * lib/getdtablesize.c: New file.
7304         * m4/getdtablesize.m4: New file.
7305         * modules/getdtablesize: New file.
7306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7307         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
7308         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
7309         HAVE_GETDTABLESIZE.
7310         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
7311
7312 2008-10-05  Bruno Haible  <bruno@clisp.org>
7313
7314         * modules/sched (Makefile.am): Fix typo.
7315         Reported by Simon Josefsson.
7316
7317 2008-10-05  Jim Meyering  <meyering@redhat.com>
7318
7319         bootstrap: check for LT_INIT, too
7320         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
7321         are deprecated.  Suggestion from Ralf Wildenhues.
7322
7323 2008-10-05  Bruno Haible  <bruno@clisp.org>
7324
7325         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
7326         overriding them by ours.
7327         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
7328
7329 2008-10-05  Jim Meyering  <meyering@redhat.com>
7330
7331         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
7332         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
7333         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
7334
7335 2008-10-04  Bruno Haible  <bruno@clisp.org>
7336
7337         * modules/dup2 (License): Change to LGPLv2+.
7338         * modules/sleep (License): Likewise.
7339         * modules/perror (License): Likewise.
7340         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
7341         Blake.
7342         * modules/signal (License): Likewise.
7343         * modules/sigprocmask (License): Likewise.
7344         * modules/raise (License): Change to LGPLv2+, with approval by Jim
7345         Meyering.
7346
7347 2008-10-04  Bruno Haible  <bruno@clisp.org>
7348
7349         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
7350         Reported by Rainer Tammer <tammer@tammer.net>.
7351
7352 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
7353             Bruno Haible  <bruno@clisp.org>
7354
7355         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
7356         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
7357         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
7358
7359 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
7360
7361         filevercmp: new module
7362         * lib/filevercmp.h: New function filevercmp comparing version strings.
7363         * lib/filevercmp.c: Implementation of filevercmp function.
7364         * modules/filevercmp: Module metadata.
7365         * tests/test-filevercmp.c: Unit test for new module.
7366         * modules/filevercmp-tests: Unit test metadata.
7367         * MODULES.html.sh: Add filevercmp module.
7368
7369 2008-10-03  Bruno Haible  <bruno@clisp.org>
7370
7371         * lib/c-ctype.h: Add comment.
7372         Reported by Jim Meyering.
7373
7374 2008-10-02  Bruno Haible  <bruno@clisp.org>
7375
7376         * modules/posix_spawn-internal (Depends-on): Add 'open'.
7377
7378 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7379
7380         * build-aux/bootstrap: Allow renaming bootstrap, and change the
7381         name of bootstrap.conf accordingly.
7382
7383 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7384
7385         * build-aux/bootstrap: Install git-merge-changelog configuration
7386         items into .gitconfig if needed.
7387
7388 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7389
7390         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
7391         git repository, and initialize/update it accordingly.
7392
7393 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
7394
7395         * modules/fsync-tests: New file.
7396         * tests/test-fsync.c: New file.
7397
7398         New module 'fsync'.
7399         * lib/fsync.c: New file.
7400         * m4/fsync.m4: New file.
7401         * modules/fsync: New file.
7402         * lib/unistd.in.h (fsync): New declaration.
7403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
7404         GNULIB_FSYNC and HAVE_FSYNC.
7405         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
7406         * MODULES.html.sh (posix_functions): Add fsync.
7407         * doc/posix-functions/fsync.texi: Mention the new module.
7408
7409 2008-10-02  Jim Meyering  <meyering@redhat.com>
7410
7411         fts.c: sync with similar code from coreutils' remove.c
7412         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
7413         Guard also with "#if defined __linux__", since for now at least,
7414         this code is Linux-kernel-specific.
7415
7416 2008-10-02  Jim Meyering  <meyering@redhat.com>
7417
7418         fts: bug fixes
7419         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
7420         Include <sys/vfs.h>, not <sys/statfs.h>.
7421
7422         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
7423         Include <sys/vfs.h>, not <sys/statfs.h>.
7424
7425 2008-10-01  Bruno Haible  <bruno@clisp.org>
7426
7427         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
7428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
7429         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
7430         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
7431         * doc/posix-functions/posix_spawnp.texi: Likewise.
7432         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
7433         whether posix_spawn actually works.
7434         * m4/pipe.m4 (gl_PIPE): Likewise.
7435         * modules/execute (Files): Add m4/posix_spawn.m4.
7436         * modules/pipe (Files): Add m4/posix_spawn.m4.
7437         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
7438
7439 2008-10-01  Jim Meyering  <meyering@redhat.com>
7440
7441         remove trailing spaces
7442         * NEWS: Likewise.
7443         * lib/poll.c (poll): Likewise.
7444         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
7445         * lib/winsock.c (rpl_close): Likewise.
7446         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
7447         * modules/yield: Likewise.
7448         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
7449         * tests/test-sys_select.c (connect_to_socket): Likewise.
7450
7451         fts.c: adjust a new interface to be more generally useful
7452         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
7453         (fts_build): Adjust caller.
7454
7455 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7456
7457         * modules/cond-tests: New file.
7458         * tests/test-cond.c: New file.
7459
7460 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7461             Bruno Haible  <bruno@clisp.org>
7462
7463         * modules/cond (Dependencies): Add errno, time.
7464         * lib/glthread/cond.h: Include <time.h>.
7465         (gl_cond_define, gl_cond_define_initialized): Use the same definition
7466         across platforms.
7467
7468 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7469             Bruno Haible  <bruno@clisp.org>
7470
7471         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
7472
7473 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7474             Bruno Haible  <bruno@clisp.org>
7475
7476         * modules/tls-tests (Depends-on): Add thread, yield.
7477         (configure.ac): Remove all checks.
7478         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
7479         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7480         gl_thread_self): Remove definitions. Include glthread/thread.h and
7481         glthread/yield.h instead.
7482         (test_tls): Pass an additional NULL argument to gl_thread_join.
7483
7484 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7485             Bruno Haible  <bruno@clisp.org>
7486
7487         * modules/lock-tests (Depends-on): Add thread, yield.
7488         (configure.ac): Remove all checks.
7489         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
7490         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7491         gl_thread_self): Remove definitions. Include glthread/thread.h and
7492         glthread/yield.h instead.
7493         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
7494         additional NULL argument to gl_thread_join.
7495
7496 2008-09-30  Bruno Haible  <bruno@clisp.org>
7497
7498         Fix the Win32 implementation of the 'thread' module.
7499         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
7500         pointer type.
7501         (gl_thread_self): Invoke gl_thread_self_func.
7502         (gl_thread_self_func): New declaration.
7503         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
7504         (do_init_self_key, init_self_key): New functions.
7505         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
7506         Remove some fields.
7507         (running_threads, running_lock): Remove variables.
7508         (get_current_thread_handle): New function.
7509         (gl_thread_self_func, wrapper_func, glthread_create_func,
7510         glthread_join_func, gl_thread_exit_func): Largely rewritten and
7511         simplified.
7512
7513 2008-09-30  Bruno Haible  <bruno@clisp.org>
7514
7515         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
7516         files.
7517
7518 2008-09-30  Jim Meyering  <meyering@redhat.com>
7519
7520         fts.m4: correct the test for statfs.f_type
7521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
7522         when checking for statfs.f_type.
7523
7524 2008-09-15  Simon Josefsson  <simon@josefsson.org>
7525
7526         tests: avoid some compiler warnings
7527         * tests/test-memchr.c (main): Pass NULL indirectly.
7528         * tests/test-getdate.c (main): Remove unused variable 'ret'.
7529
7530 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
7531
7532         getdate.y: disallow countable dayshifts like "4 yesterday ago"
7533         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
7534         exactly specified dayshifts.
7535         (dayshift): New rule.
7536         (rel): Add dayshift.
7537         (relative_time_table) [tomorrow, yesterday, today, now]:
7538         Use tDAY_SHIFT in place of tDAY_UNIT.
7539         * tests/test-getdate.c: Add tests for now-disallowed countable
7540         dayshifts, e.g., "4 yesterday ago".
7541
7542 2008-09-29  Bruno Haible  <bruno@clisp.org>
7543
7544         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
7545         * tests/test-posix_spawn1.in.sh: Renamed from
7546         tests/test-posix_spawn.in.sh.
7547         * tests/test-posix_spawn2.c: New file.
7548         * tests/test-posix_spawn2.in.sh: New file.
7549         * modules/posix_spawnp-tests (Files): Update.
7550         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
7551
7552 2008-09-29  Bruno Haible  <bruno@clisp.org>
7553
7554         Propagate effects of putenv/setenv/unsetenv to child processes.
7555         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
7556         * lib/pipe.c (create_pipe): Likewise.
7557
7558 2008-09-29  Bruno Haible  <bruno@clisp.org>
7559
7560         Enable use of shell scripts as executables in mingw.
7561         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
7562         run the program as a shell script.
7563         * lib/pipe.c (create_pipe): Likewise.
7564         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
7565         resulting array.
7566
7567 2008-09-29  Eric Blake  <ebb9@byu.net>
7568
7569         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
7570
7571 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
7572
7573         * doc/posix-functions/accept.texi: Update mingw problems.
7574         * doc/posix-functions/bind.texi: Update mingw problems.
7575         * doc/posix-functions/close.texi: Update mingw problems.
7576         * doc/posix-functions/connect.texi: Update mingw problems.
7577         * doc/posix-functions/getpeername.texi: Update mingw problems.
7578         * doc/posix-functions/getsockname.texi: Update mingw problems.
7579         * doc/posix-functions/getsockopt.texi: Update mingw problems.
7580         * doc/posix-functions/ioctl.texi: Update mingw problems.
7581         * doc/posix-functions/listen.texi: Update mingw problems.
7582         * doc/posix-functions/recv.texi: Update mingw problems.
7583         * doc/posix-functions/recvfrom.texi: Update mingw problems.
7584         * doc/posix-functions/select.texi: Update mingw problems.
7585         * doc/posix-functions/send.texi: Update mingw problems.
7586         * doc/posix-functions/sendto.texi: Update mingw problems.
7587         * doc/posix-functions/setsockopt.texi: Update mingw problems.
7588         * doc/posix-functions/socket.texi: Update mingw problems.
7589
7590 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
7591             Bruno Haible  <bruno@clisp.org>
7592
7593         * lib/sys_select.in.h: Include sys/time.h.
7594         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
7595         * modules/sys_select: Depend on sys_time.
7596         * tests/test-sys_select.c: Test that sys/select.h defines struct
7597         timeval fully.
7598
7599 2008-09-29  Bruno Haible  <bruno@clisp.org>
7600
7601         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
7602         * lib/sys_select.in.h: Likewise.
7603
7604 2008-09-29  Bruno Haible  <bruno@clisp.org>
7605
7606         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
7607
7608 2008-09-29  Bruno Haible  <bruno@clisp.org>
7609
7610         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
7611         Set LIBSOCKET instead of augmenting LIBS.
7612         * modules/sockets (Link): New section.
7613         * modules/sockets-tests (test_sockets_LDADD): New variable.
7614         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
7615         * modules/poll-tests (test_poll_LDADD): New variable.
7616         * NEWS: Document the change.
7617
7618 2008-09-29  Bruno Haible  <bruno@clisp.org>
7619
7620         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
7621         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
7622         ARPA_INET_H directly.
7623         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7624
7625 2008-09-28  Bruno Haible  <bruno@clisp.org>
7626
7627         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
7628         from gl_HEADER_SYS_SOCKET.
7629         (gl_HEADER_SYS_SOCKET): Invoke it.
7630         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7631
7632 2008-09-28  Bruno Haible  <bruno@clisp.org>
7633
7634         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
7635         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
7636         Needed on OSF/1 4.0.
7637
7638 2008-09-28  Bruno Haible  <bruno@clisp.org>
7639
7640         Override open more carefully.
7641         * lib/open.c (orig_open): New function.
7642         (rpl_open): Use orig_open instead of open.
7643         * lib/fcntl.in.h: Add special invocation convention.
7644         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
7645         (gl_FUNC_OPEN): Invoke it.
7646
7647         Override freopen more carefully.
7648         * lib/freopen.c (orig_freopen): New function.
7649         (rpl_freopen): Use orig_freopen instead of freopen.
7650         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
7651         (gl_FUNC_FREOPEN): Invoke it.
7652
7653         Override fopen more carefully.
7654         * lib/fopen.c (orig_fopen): New function.
7655         (rpl_fopen): Use orig_fopen instead of fopen.
7656         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
7657         (gl_FUNC_FOPEN): Invoke it.
7658         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
7659
7660 2008-09-28  Bruno Haible  <bruno@clisp.org>
7661
7662         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
7663         SIGPIPE.
7664
7665 2008-09-28  Bruno Haible  <bruno@clisp.org>
7666
7667         * tests/test-sigaction.c (handler, main): Disable the check whether
7668         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
7669         glibc systems with LinuxThreads.
7670
7671 2008-09-28  Bruno Haible  <bruno@clisp.org>
7672
7673         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
7674
7675         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
7676         with AIX xlc.
7677         * lib/fcntl.in.h (open): Likewise.
7678         Reported by Rainer Tammer <tammer@tammer.net>.
7679
7680 2008-09-28  Bruno Haible  <bruno@clisp.org>
7681
7682         * modules/posix_spawnp-tests: New file.
7683         * tests/test-posix_spawn.c: New file.
7684         * tests/test-posix_spawn.in.sh: New file.
7685
7686         New module 'posix_spawnp'.
7687         * modules/posix_spawnp: New file.
7688         * lib/spawnp.c: New file, from GNU libc with modifications.
7689         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
7690
7691         New module 'posix_spawn'.
7692         * modules/posix_spawn: New file.
7693         * lib/spawn.c: New file, from GNU libc with modifications.
7694         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7695
7696         New module 'posix_spawnattr_destroy'.
7697         * modules/posix_spawnattr_destroy: New file.
7698         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
7699         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
7700         module.
7701
7702         New module 'posix_spawnattr_setsigmask'.
7703         * modules/posix_spawnattr_setsigmask: New file.
7704         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
7705         modifications.
7706         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
7707         new module.
7708
7709         New module 'posix_spawnattr_getsigmask'.
7710         * modules/posix_spawnattr_getsigmask: New file.
7711         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
7712         modifications.
7713         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
7714         new module.
7715
7716         New module 'posix_spawnattr_setsigdefault'.
7717         * modules/posix_spawnattr_setsigdefault: New file.
7718         * lib/spawnattr_setdefault.c: New file, from GNU libc with
7719         modifications.
7720         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
7721         new module.
7722
7723         New module 'posix_spawnattr_getsigdefault'.
7724         * modules/posix_spawnattr_getsigdefault: New file.
7725         * lib/spawnattr_getdefault.c: New file, from GNU libc with
7726         modifications.
7727         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7728         new module.
7729
7730         New module 'posix_spawnattr_setschedpolicy'.
7731         * modules/posix_spawnattr_setschedpolicy: New file.
7732         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7733         modifications.
7734         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7735         new module.
7736
7737         New module 'posix_spawnattr_getschedpolicy'.
7738         * modules/posix_spawnattr_getschedpolicy: New file.
7739         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7740         modifications.
7741         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7742         new module.
7743
7744         New module 'posix_spawnattr_setschedparam'.
7745         * modules/posix_spawnattr_setschedparam: New file.
7746         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7747         modifications.
7748         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7749         new module.
7750
7751         New module 'posix_spawnattr_getschedparam'.
7752         * modules/posix_spawnattr_getschedparam: New file.
7753         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7754         modifications.
7755         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7756         new module.
7757
7758         New module 'posix_spawnattr_setpgroup'.
7759         * modules/posix_spawnattr_setpgroup: New file.
7760         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7761         modifications.
7762         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7763         module.
7764
7765         New module 'posix_spawnattr_getpgroup'.
7766         * modules/posix_spawnattr_getpgroup: New file.
7767         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7768         modifications.
7769         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7770         module.
7771
7772         New module 'posix_spawnattr_setflags'.
7773         * modules/posix_spawnattr_setflags: New file.
7774         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7775         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7776         module.
7777
7778         New module 'posix_spawnattr_getflags'.
7779         * modules/posix_spawnattr_getflags: New file.
7780         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7781         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7782         module.
7783
7784         New module 'posix_spawnattr_init'.
7785         * modules/posix_spawnattr_init: New file.
7786         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7787         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7788         module.
7789
7790         New module 'posix_spawn_file_actions_destroy'.
7791         * modules/posix_spawn_file_actions_destroy: New file.
7792         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7793         modifications.
7794         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7795         the new module.
7796
7797         New module 'posix_spawn_file_actions_addopen'.
7798         * modules/posix_spawn_file_actions_addopen: New file.
7799         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7800         modifications.
7801         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7802         the new module.
7803
7804         New module 'posix_spawn_file_actions_adddup2'.
7805         * modules/posix_spawn_file_actions_adddup2: New file.
7806         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7807         modifications.
7808         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7809         the new module.
7810
7811         New module 'posix_spawn_file_actions_addclose'.
7812         * modules/posix_spawn_file_actions_addclose: New file.
7813         * lib/spawn_faction_addclose.c: New file, from GNU libc with
7814         modifications.
7815         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7816         the new module.
7817
7818         New module 'posix_spawn_file_actions_init'.
7819         * modules/posix_spawn_file_actions_init: New file.
7820         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7821         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7822         new module.
7823
7824         New module 'posix_spawn-internal'.
7825         * modules/posix_spawn-internal: New file.
7826         * lib/spawn_int.h: New file, from GNU libc with modifications.
7827         * lib/spawni.c: New file, from GNU libc with modifications.
7828         * m4/posix_spawn.m4: New file.
7829
7830         New module 'spawn'.
7831         * modules/spawn: New file.
7832         * lib/spawn.in.h: New file, from GNU libc with modifications.
7833         * m4/spawn_h.m4: New file.
7834         * doc/posix-headers/spawn.texi: Mention the new module.
7835
7836 2008-09-28  Bruno Haible  <bruno@clisp.org>
7837
7838         * modules/sched-tests: New file.
7839         * tests/test-sched.c: New file.
7840
7841         New module 'sched'.
7842         * modules/sched: New file.
7843         * lib/sched.in.h: New file.
7844         * m4/sched_h.m4: New file.
7845         * doc/posix-headers/sched.texi: Mention the new module.
7846
7847 2008-09-27  Eric Blake  <ebb9@byu.net>
7848
7849         Fix previous patch, and tweak references to $0.
7850         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7851         (func_version, func_gnulib_dir): Don't call this program
7852         gnulib-tool.
7853         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7854         with using $0 in function.
7855         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7856         (func_fatal_error): Reuse the name the user invoked us with.
7857
7858 2008-09-27  Bruno Haible  <bruno@clisp.org>
7859
7860         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7861         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7862         (gl_ICONV_H): Not here.
7863         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7864         instead of assigning ICONV_H directly.
7865
7866         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7868         WCHAR_H directly.
7869
7870 2008-09-27  Bruno Haible  <bruno@clisp.org>
7871
7872         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7873         * modules/arpa_inet (Depends-on): Add link-warning.
7874         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7875         * modules/unistd (Makefile.am): Likewise.
7876
7877 2008-09-26  Bruno Haible  <bruno@clisp.org>
7878
7879         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7880         variables.
7881         (func_version): Essentially copied from gnulib-tool.
7882         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7883         func_readlink): Copied from gnulib-tool.
7884
7885 2008-09-26  Bruno Haible  <bruno@clisp.org>
7886
7887         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7888         invoking git-version-gen.
7889
7890 2008-09-26  Bruno Haible  <bruno@clisp.org>
7891
7892         * posix-modules: Update to directory names changed on 2008-01-19.
7893         Remove commas in output before splitting into words. No more need to
7894         avoid 'ftruncate' since 2007-02-19.
7895
7896 2008-09-26  Bruno Haible  <bruno@clisp.org>
7897
7898         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7899
7900 2008-09-26  Bruno Haible  <bruno@clisp.org>
7901
7902         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7903         * modules/fwriteerror (Depends-on): Add errno.
7904
7905 2008-09-26  Bruno Haible  <bruno@clisp.org>
7906
7907         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7908         * tests/test-vc-list-files-cvs.sh: Likewise.
7909
7910 2008-09-26  Bruno Haible  <bruno@clisp.org>
7911
7912         * doc/posix-headers/sys_resource.texi: Reorder items.
7913
7914 2008-09-26  Jim Meyering  <meyering@redhat.com>
7915
7916         fts: tweak inode comparison function
7917         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7918         inode numbers, as documented.
7919
7920         fts: sort dirent entries on inode number before traversing
7921         This avoids a quadratic, seek-related performance penalty when
7922         operating on a directory containing many entries (measurable at 10k;
7923         3.5 hours at 2 million entries with a cold cache) on certain types
7924         of file systems, including ext3 and ext4, but not tmpfs.
7925         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7926         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7927         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7928         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7929         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7930         (fts_build): Set the stat.st_ino member from D_INO.
7931         If it is likely to be useful, sort dirent entries on inode number.
7932
7933         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7934         and the struct statfs.f_type member.
7935         * modules/fts (Depends-on): Add d-ino.
7936
7937 2008-09-26  Bruno Haible  <bruno@clisp.org>
7938
7939         * modules/sigpipe-die (Depends-on): Add sigpipe.
7940
7941         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7942         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7943         and GNULIB_STDIO_H_SIGPIPE are set.
7944         * lib/stdio-write.c: New file.
7945         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7946         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7947         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7948         REPLACE_STDIO_WRITE_FUNCS.
7949         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7950         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7951         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7952         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7953         * modules/stdio (Files): Add lib/stdio-write.c.
7954         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7955         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7956         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7957         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7958         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7959         REPLACE_FPRINTF_POSIX.
7960         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7961         REPLACE_PRINTF_POSIX.
7962         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7963         REPLACE_VFPRINTF_POSIX.
7964         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7965         REPLACE_VPRINTF_POSIX.
7966         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7967         SIGPIPE issue.
7968         * doc/posix-functions/fputc.texi: Likewise.
7969         * doc/posix-functions/fputs.texi: Likewise.
7970         * doc/posix-functions/fwrite.texi: Likewise.
7971         * doc/posix-functions/printf.texi: Likewise.
7972         * doc/posix-functions/putc.texi: Likewise.
7973         * doc/posix-functions/putchar.texi: Likewise.
7974         * doc/posix-functions/puts.texi: Likewise.
7975         * doc/posix-functions/vfprintf.texi: Likewise.
7976         * doc/posix-functions/vprintf.texi: Likewise.
7977
7978         * modules/safe-write (Depends-on): Add write.
7979
7980         * modules/sigpipe-tests: New file.
7981         * tests/test-sigpipe.c: New file.
7982         * tests/test-sigpipe.sh: New file.
7983
7984         * modules/write: New file.
7985         * lib/unistd.in.h: Include <sys/types.h>.
7986         (write): New declaration.
7987         * lib/write.c: New file.
7988         * m4/write.m4: New file.
7989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7990         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7991         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7992         GNULIB_WRITE, REPLACE_WRITE.
7993         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7994         and the SIGPIPE issue.
7995
7996         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7997         (raise): New declaration.
7998         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7999         (ext_signal): New function.
8000         (rpl_raise): New function.
8001         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8002         GNULIB_SIGNAL_H_SIGPIPE.
8003         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
8004         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
8005
8006         * modules/sigpipe: New file.
8007         * m4/sigpipe.m4: New file.
8008
8009 2008-09-25  Derek Price  <derek@ximbiot.com>
8010             Bruno Haible  <bruno@clisp.org>
8011
8012         * gnulib-tool (func_import): Report all license incompatibilities, not
8013         just the first one.
8014
8015 2008-09-25  Bruno Haible  <bruno@clisp.org>
8016
8017         * gnulib-tool (func_import): When computing the edits, consider not
8018         only the Makefile.ams that exist but also those that will be generated.
8019
8020 2008-09-25  Simon Josefsson  <simon@josefsson.org>
8021
8022         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
8023         fixes gnulib-tool --test warning about duplicate dependency.
8024
8025 2008-09-25  Bruno Haible  <bruno@clisp.org>
8026
8027         * gnulib-tool: Don't ask the user to perform edits in the generated
8028         Makefile.ams.
8029         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
8030         apply to the Makefile.am being generated.
8031         (func_emit_tests_Makefile_am): Execute edits that apply to the
8032         Makefile.am being generated.
8033         (func_import): Setup list of Makefile.am edits before emitting the
8034         Makefile.ams, not at the end.
8035         (func_create_testdir): Update.
8036         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8037
8038 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8039
8040         * gnulib-tool (func_import): Store the --tests-base option in the
8041         comment in gnulib-cache.m4.
8042
8043 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
8044
8045         * NEWS: Document increased portability that sys_select now provides.
8046
8047         * lib/sys_select.in.h: Install select wrapper.
8048         * lib/sys_socket.in.h: Use more descriptive name when there is no
8049         select wrapper.
8050         * lib/winsock-select.c: New.
8051         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
8052         Require gl_HEADER_SYS_SOCKET.
8053         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
8054         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
8055         * tests/test-sys_select.c: Add functional tests.
8056
8057 2008-09-24  Eric Blake  <ebb9@byu.net>
8058
8059         open, fopen: close fd leak in last patch
8060         * lib/open.c (rpl_open): Close fd before returning error.
8061         * lib/fopen.c (rpl_fopen): Close fd before returning error.
8062         * doc/posix-functions/open.texi (open): Document that Irix also
8063         has the bug.
8064         * doc/posix-functions/fopen.texi (fopen): Likewise.
8065         Reported by Paolo Bonzini.
8066
8067 2008-09-24  Bruno Haible  <bruno@clisp.org>
8068
8069         Ensure that a filename ending in a slash cannot be used to access a
8070         non-directory.
8071         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
8072         to check whether it's really a directory.
8073         * lib/fopen.c: Include fcntl.h, unistd.h.
8074         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
8075         and fdopen().
8076         * modules/fopen (Depends-on): Add unistd.
8077         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
8078         * tests/test-fopen.c (main): Likewise.
8079         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
8080         * doc/posix-functions/fopen.texi: Likewise.
8081         Reported by Eric Blake.
8082
8083 2008-09-23  Eric Blake  <ebb9@byu.net>
8084
8085         c-stack: avoid compiler optimizations when provoking overflow
8086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
8087         recursion harder to optimize, to ensure a stack overflow occurs.
8088         * tests/test-c-stack.c (recurse): Likewise.
8089         Borrowed from libsigsegv.
8090
8091         c-stack: work around Irix sigaltstack bug
8092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
8093         whether sigaltstack uses wrong end of stack_t (copied in part from
8094         libsigsegv).
8095         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
8096         Irix bug, without requiring an over-allocation.
8097         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
8098         bug.
8099
8100         fopen: document mingw bug on directories
8101         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
8102         not allowing a stream visiting a directory, even though reading
8103         from such a stream is not portable.
8104
8105 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8106
8107         * lib/poll.c: Rewrite.
8108         * modules/poll: Depend on alloca.
8109
8110 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8111
8112         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
8113         instead define prototypes for a full set of wrappers.  Ensure
8114         that Cygwin does not use the compatibility code, which is only
8115         for MinGW.
8116         * lib/winsock.c: New.
8117         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
8118         * modules/sys_socket: Add lib/winsock.c.
8119
8120         * modules/poll-tests: Add errno and perror.
8121         * tests/test-poll.c: Use ioctl, not ioctlsocket.
8122
8123 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8124
8125         * tests/test-poll.c: Downgrade minimum needed Winsock version.
8126
8127 2008-09-23  Bruno Haible  <bruno@clisp.org>
8128
8129         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
8130         * doc/glibc-functions/*: Likewise.
8131
8132 2008-09-23  Simon Josefsson  <simon@josefsson.org>
8133
8134         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
8135         success.
8136
8137 2008-09-22  Eric Blake  <ebb9@byu.net>
8138             Bruno Haible  <bruno@clisp.org>
8139
8140         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
8141         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
8142         supply %A but mishandle pseudo-NaN.
8143         Reported by Simon Josefsson.
8144
8145 2008-09-21  Bruno Haible  <bruno@clisp.org>
8146
8147         * tests/test-lock.c (main): Tweak skip message.
8148         * tests/test-tls.c (main): Likewise.
8149
8150 2008-09-21  Bruno Haible  <bruno@clisp.org>
8151
8152         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
8153         whether 'struct sigaction' has sa_sigaction here...
8154         (gl_PREREQ_SIG_HANDLER_H): ... not here.
8155         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
8156
8157 2008-09-21  Bruno Haible  <bruno@clisp.org>
8158
8159         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
8160         section.
8161         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
8162         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
8163         the new section.
8164         (Support for obsolete systems lacking POSIX:2001): New section.
8165         (String handling <string.h>): Move strdup to the new section.
8166         Suggested by Simon Josefsson and Paolo Bonzini.
8167
8168 2008-09-21  Bruno Haible  <bruno@clisp.org>
8169
8170         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
8171         exponents in %e and %g results on 'long double'. Needed for mingw's
8172         improved *printf functions.
8173         * tests/test-vasprintf-posix.c (test_function): Likewise.
8174         * tests/test-snprintf-posix.h (test_function): Likewise.
8175         * tests/test-sprintf-posix.h (test_function): Likewise.
8176         Reported by Eric Blake.
8177
8178 2008-09-21  Bruno Haible  <bruno@clisp.org>
8179
8180         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
8181         * tests/test-sprintf-posix.h (test_function): Likewise.
8182
8183 2008-09-21  Bruno Haible  <bruno@clisp.org>
8184
8185         * modules/getpass (Depends-on): Add strdup-posix.
8186
8187         New module 'strdup-posix'.
8188         * modules/strdup-posix: New file.
8189         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
8190         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
8191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8192         REPLACE_STRDUP.
8193         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
8194         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
8195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8196         strdup-posix.
8197
8198         * modules/strdup (Depends-on): Remove malloc-posix.
8199
8200 2008-09-20  Bruno Haible  <bruno@clisp.org>
8201
8202         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
8203         Wildenhues.
8204
8205 2008-09-20  Bruno Haible  <bruno@clisp.org>
8206
8207         Ensure that wint_t gets defined on IRIX 5.3.
8208         * lib/wchar.in.h (wint_t): Define if not defined by the system.
8209         * lib/wctype.in.h (wint_t): Likewise.
8210         (__wctype_wint_t): Remove type.
8211         (isw*): Use wint_t instead of __wctype_wint_t.
8212         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
8213         * modules/wchar (Files): Add m4/wint_t.m4.
8214         (Makefile.am): Substitute HAVE_WINT_T.
8215         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
8216         * tests/test-wctype.c: Check that wint_t is defined.
8217         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
8218         * doc/posix-headers/wctype.texi: Likewise.
8219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8220
8221 2008-09-18  Bruno Haible  <bruno@clisp.org>
8222
8223         * gnulib-tool (func_exit): Update comment.
8224
8225 2008-09-18  Simon Josefsson  <simon@josefsson.org>
8226
8227         * modules/getaddrinfo (Depends-on): Remove strdup, this module
8228         assumes strdup exists and does not depend on strdup to return
8229         ENOMEM on out of memory conditions.
8230
8231 2008-09-18  Bruno Haible  <bruno@clisp.org>
8232
8233         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
8234         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
8235         digits for the exponent.
8236
8237 2008-09-18  Jim Meyering  <meyering@redhat.com>
8238             Bruno Haible  <bruno@clisp.org>
8239
8240         * lib/vasnprintf.c (decimal_point_char): Define also if
8241         NEED_PRINTF_INFINITE_LONG_DOUBLE.
8242
8243 2008-09-16  Bruno Haible  <bruno@clisp.org>
8244         and Eric Blake  <ebb9@byu.net>
8245
8246         vasnprintf: support Irix 5.3
8247         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
8248         that mishandle long double infinity.
8249         Reported by Tom G. Christensen.
8250
8251 2008-09-16  Bruno Haible  <bruno@clisp.org>
8252
8253         * doc/glibc-functions/scandir.texi: Mention the function is missing on
8254         Solaris 9.
8255         * doc/glibc-functions/alphasort.texi: Likewise.
8256         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
8257
8258 2008-09-16  Jim Meyering  <meyering@redhat.com>
8259
8260         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
8261         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
8262         a umask modification leak out of a subshell.  Otherwise, the
8263         opensolaris /bin/sh would be accepted and thus cause unwarranted
8264         failures in the coreutils test suite.
8265
8266 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
8267
8268         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
8269         to succeed.
8270
8271 2008-09-16  Jim Meyering  <meyering@redhat.com>
8272
8273         avoid spurious test failure when library is built without ACL support
8274         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
8275         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
8276         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
8277         * tests/test-copy-acl.sh: Likewise.
8278
8279 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8280
8281         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
8282         based on character occurrence counts.
8283
8284 2008-09-15  Eric Blake  <ebb9@byu.net>
8285
8286         tests: avoid some compiler warnings
8287         * tests/test-memchr.c (main): Pass NULL indirectly.
8288         * tests/test-closein.c (main): Avoid unused variable.
8289
8290 2008-09-15  Bruno Haible  <bruno@clisp.org>
8291
8292         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
8293         are missing on OpenBSD 4.0 individually.
8294         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8295
8296 2008-09-15  Bruno Haible  <bruno@clisp.org>
8297
8298         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
8299         * doc/posix-functions/strerror.texi: Mention also Cygwin.
8300         * doc/posix-functions/perror.texi: Likewise.
8301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
8302         is missing.
8303         Reported by Eric Blake.
8304
8305         * lib/errno.in.h: Use replacement values >= 2000.
8306         Reported by Eric Blake.
8307
8308 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8309
8310         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
8311         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
8312         limit.
8313         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
8314         compareseq was aborted.
8315
8316 2008-09-14  Bruno Haible  <bruno@clisp.org>
8317
8318         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
8319         yvec_edit_count.
8320         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
8321         (fstrcmp_bounded): Simplify result computation accordingly.
8322
8323 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8324
8325         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
8326         (fstrcmp): Define in terms of fstrcmp_bounded.
8327         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
8328         lower_bound argument.
8329         Return quickly if the result is certainly < lower_bound.
8330         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
8331
8332 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8333
8334         * lib/diffseq.h (EARLY_ABORT): New macro.
8335         (compareseq): Change return type to bool. Return true when EARLY_ABORT
8336         evaluates to true.
8337
8338 2008-09-14  Bruno Haible  <bruno@clisp.org>
8339
8340         * modules/perror-tests: New file.
8341         * tests/test-perror.sh: New file.
8342         * tests/test-perror.c: New file.
8343
8344         New module 'perror'.
8345         * lib/stdio.in.h (perror): New declaration.
8346         * lib/perror.c: New file.
8347         * m4/perror.m4: New file.
8348         * modules/perror: New file.
8349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
8350         * doc/posix-functions/perror.texi: Mention the perror module.
8351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
8352         REPLACE_PERROR.
8353         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
8354         REPLACE_PERROR.
8355
8356 2008-09-14  Bruno Haible  <bruno@clisp.org>
8357
8358         * modules/stdio (Makefile.am): Reorder to match the order in
8359         lib/stdio.in.h.
8360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8361
8362 2008-09-13  Bruno Haible  <bruno@clisp.org>
8363
8364         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
8365
8366 2008-09-13  Bruno Haible  <bruno@clisp.org>
8367
8368         Extend strerror to cover the added errno values.
8369         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
8370         (rpl_strerror): Provide error messages for the added errno values and
8371         for the WSA* values.
8372         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
8373         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
8374         strerror.
8375         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
8376         * modules/strerror (Depends-on): Add errno.
8377         * doc/posix-functions/strerror.texi: Document the change.
8378         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
8379         and EOVERFLOW.
8380
8381 2008-09-13  Bruno Haible  <bruno@clisp.org>
8382
8383         * modules/EOVERFLOW: Remove file.
8384         * m4/eoverflow.m4: Remove file.
8385         * modules/EOVERFLOW-tests: Remove file.
8386         * tests/test-EOVERFLOW.c: Remove file.
8387         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
8388         * modules/ftell (Depends-on): Likewise.
8389         * modules/getdelim (Depends-on): Likewise.
8390         * modules/getugroups (Depends-on): Likewise.
8391         * modules/poll (Depends-on): Likewise.
8392         * modules/snprintf (Depends-on): Likewise.
8393         * modules/sprintf-posix (Depends-on): Likewise.
8394         * modules/vasnprintf (Depends-on): Likewise.
8395         * modules/vasprintf (Depends-on): Likewise.
8396         * modules/vfprintf-posix (Depends-on): Likewise.
8397         * modules/vsnprintf (Depends-on): Likewise.
8398         * modules/vsprintf-posix (Depends-on): Likewise.
8399         * modules/xvasprintf (Depends-on): Likewise.
8400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8401         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
8402         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
8403         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
8404         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8405         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
8406         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
8407         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
8408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8409         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
8410         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
8411         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
8412         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8413         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
8414         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
8415         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
8416         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8417         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
8418         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
8419         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
8420         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8421         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
8422         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
8423         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
8424         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
8425         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8426         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
8427         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
8428         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
8429         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
8430         * MODULES.html.sh: Remove EOVERFLOW.
8431         * NEWS: Mention the change.
8432
8433 2008-09-13  Bruno Haible  <bruno@clisp.org>
8434
8435         * modules/errno-tests: New file.
8436         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
8437
8438         * lib/errno.in.h: New file.
8439         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
8440         * modules/errno: New file.
8441         * doc/posix-headers/errno.texi: Update documentation.
8442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
8443
8444 2008-09-13  Bruno Haible  <bruno@clisp.org>
8445
8446         * tests/test-poll.c: Use #if for native Windows, rather than testing
8447         __MSVCRT__.
8448
8449 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8450             Bruno Haible  <bruno@clisp.org>
8451
8452         * lib/glob.c: Don't include <pwd.h> on native Windows.
8453         (WINDOWS32): New macro.
8454         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
8455
8456 2008-09-13  Bruno Haible  <bruno@clisp.org>
8457
8458         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
8459         (ETIMEDOUT): Remove macro.
8460         (glthread_cond_timedwait_multithreaded): New declaration.
8461         (glthread_cond_timedwait): Use it.
8462         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
8463         (glthread_cond_timedwait_multithreaded): New function.
8464
8465 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8466
8467         * modules/poll-tests: Do not check for io.h.
8468         * tests/test-poll.c: Check for __MSVCRT__ instead.
8469
8470 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8471
8472         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
8473         * modules/poll-tests: Add inet_pton, stdbool, sockets.
8474         * tests/test-poll.c: Use them.  Use _pipe on Windows.
8475
8476 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8477
8478         * modules/poll-tests: New.
8479         * tests/test-poll.c: New.
8480
8481 2008-09-12  Eric Blake  <ebb9@byu.net>
8482
8483         frexp: test for NetBSD failure on -0.0
8484         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
8485         not all, bugs from NetBSD 3.0 have been fixed.
8486         * doc/posix-functions/frexp.texi (frexp): Document bug.
8487         Reported by Thomas Klausner.
8488
8489         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
8490         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
8491         literal -0.0.
8492         Reported by Jonathan C. Patschke <jp@centtech.com>.
8493
8494 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8495
8496         * lib/glthread/cond.h: Use dummy implementation also if
8497         USE_WIN32_THREADS.
8498
8499 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8500
8501         * modules/fnmatch-posix (License): Change to LGPLv2+.
8502         * modules/fnmatch-gnu (License): Likewise.
8503
8504 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8505
8506         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
8507
8508 2008-09-11  Jim Meyering  <meyering@redhat.com>
8509
8510         * users.txt: Add gtk-vnc.
8511
8512 2008-09-08  Simon Josefsson  <simon@josefsson.org>
8513
8514         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
8515         rotate amounts.
8516
8517         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
8518         required for 16-bit and 8-bit rotates.
8519         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
8520         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
8521         UINT8_MAX instead of hard-coded constants.
8522         Suggested by Paul Eggert.
8523
8524 2008-09-07  Bruno Haible  <bruno@clisp.org>
8525
8526         * tests/test-striconveh.c (main): Check behaviour when converting from
8527         UTF-7.
8528
8529         Make striconveh work better with stateful encodings.
8530         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
8531         that iconv does not increment the inptr when returning -1/EINVAL.
8532
8533 2008-09-07  Bruno Haible  <bruno@clisp.org>
8534
8535         * build-aux/config.rpath: Update according to libtool-2.2.6.
8536         * build-aux/config.libpath: Likewise.
8537
8538 2008-09-06  Bruno Haible  <bruno@clisp.org>
8539
8540         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
8541         * lib/freadptr.c (freadptr): Likewise.
8542         * lib/freadseek.c (freadptrinc): Likewise.
8543         Reported by Simon Josefsson.
8544
8545 2008-09-06  Bruno Haible  <bruno@clisp.org>
8546
8547         * modules/freadptr (License): Change to LGPLv2+.
8548         * modules/freadseek (License): Likewise.
8549         Suggested by Eric Blake.
8550
8551         * modules/memchr2 (License): Change to LGPLv2+.
8552         Approved by Eric Blake.
8553
8554 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8555             Bruno Haible  <bruno@clisp.org>
8556
8557         Make gnulib-tool work with native 'sed' on AIX.
8558         * gnulib-tool (sed_noop): New variable.
8559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
8560         func_add_or_update, func_create_testdir): Use it to initialize sed
8561         script variables.
8562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8563
8564 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
8565             Bruno Haible  <bruno@clisp.org>
8566
8567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
8568         also works after #include directives.
8569
8570 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
8571
8572         getdate.y: reject an out-of-range timezone value
8573         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
8574         the range [-24...+24].  When specified with only one or two digits,
8575         * tests/test-getdate.c: Tests for the fix.
8576         * doc/getdate.texi: Document this change.
8577
8578 2008-09-03  Bruno Haible  <bruno@clisp.org>
8579
8580         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
8581
8582 2008-09-02  Simon Josefsson  <simon@josefsson.org>
8583
8584         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
8585         <bruce.korb@gmail.com> with ideas from Ben Pfaff
8586         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
8587         Blake <ebb9@byu.net>.
8588
8589         * tests/test-bitrotate.c: Add more test vectors.
8590
8591 2008-09-02  Eric Blake  <ebb9@byu.net>
8592
8593         vasnprintf-posix: handle large precision via %.*d
8594         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
8595         when handling it ourselves.
8596         * tests/test-vasnprintf-posix.c (test_function): Add test.
8597         * tests/test-snprintf-posix.h (test_function): Likewise.
8598         * tests/test-sprintf-posix.h (test_function): Likewise.
8599         * tests/test-vasprintf-posix.c (test_function): Likewise.
8600         Reported by Alain Guibert.
8601
8602 2008-09-01  Eric Blake  <ebb9@byu.net>
8603
8604         c-stack: make configure-time check more robust
8605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
8606         successful sigaction call.
8607         Reported by Tom G. Christensen.
8608
8609 2008-09-01  Bruno Haible  <bruno@clisp.org>
8610
8611         New module 'findprog-lgpl'.
8612         * modules/findprog-lgpl: New file.
8613         * lib/findprog-lgpl.c: New file.
8614         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
8615         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
8616         to decide whether to use strdup or xstrdup, concatenated_filename or
8617         xconcatenated_filename.
8618
8619 2008-09-01  Bruno Haible  <bruno@clisp.org>
8620
8621         Split module 'concat-filename' into 'concat-filename' (LGPL) and
8622         'xconcat-filename' (GPL).
8623         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
8624         (License): Change to LGPLv2+.
8625         * modules/xconcat-filename: New file.
8626         * lib/concat-filename.h (concatenated_filename): Change specification.
8627         (xconcatenated_filename): New declaration.
8628         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
8629         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
8630         memory situations.
8631         * lib/xconcat-filename.c: New file.
8632         * NEWS: Mention the change.
8633         * lib/findprog.c: Include concat-filename.h, not filename.h.
8634         (find_in_path): Use xconcatenated_filename instead of
8635         concatenated_filename.
8636         * lib/javacomp.c: Include concat-filename.h, not filename.h.
8637         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8638         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8639         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8640         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
8641         instead of concatenated_filename.
8642         * lib/javaexec.c: Include concat-filename.h, not filename.h.
8643         (execute_java_class): Use xconcatenated_filename instead of
8644         concatenated_filename.
8645         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
8646         * modules/javacomp (Depends-on): Likewise.
8647         * modules/javaexec (Depends-on): Likewise.
8648
8649 2008-09-01  Bruno Haible  <bruno@clisp.org>
8650
8651         Split module 'filename' into 'filename' and 'concat-filename'.
8652         * modules/filename: Keep only lib/filename.h.
8653         (License): Change to LGPLv2+.
8654         * modules/concat-filename: New file, extracted from modules/filename.
8655         * lib/filename.h (concatenated_filename): Remove declaration.
8656         * lib/concat-filename.h: New file, extracted from lib/filename.h.
8657         * lib/concat-filename.c: Include concat-filename.h.
8658         * NEWS: Mention the change.
8659
8660 2008-09-01  Simon Josefsson  <simon@josefsson.org>
8661
8662         * lib/bitrotate.h (rotl8, rotr8): Add.
8663
8664         * modules/bitrotate (configure.ac): Need
8665         AC_REQUIRE([AC_C_INLINE]).
8666         (Description): Mention stdint.h.  Reported by Bruno Haible
8667         <bruno@clisp.org>.
8668
8669         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
8670         Paolo Bonzini <bonzini@gnu.org>.
8671
8672 2008-08-31  Bruno Haible  <bruno@clisp.org>
8673
8674         Assume Solaris specific bi-arch conventions on Solaris systems.
8675         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
8676         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
8677         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
8678         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
8679         like acl_libdirstem.
8680         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
8681         acl_libdirstem.
8682         * NEWS: Mention the change.
8683         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
8684
8685 2008-08-31  Jim Meyering  <meyering@redhat.com>
8686
8687         * lib/strftime.h: Add comments describing the two added arguments.
8688
8689         remove duplicate #include directives
8690         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
8691         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
8692
8693 2008-08-31  Bruno Haible  <bruno@clisp.org>
8694
8695         New module 'sigpipe-die'.
8696         * modules/sigpipe-die: New file.
8697         * lib/sigpipe-die.h: New file.
8698         * lib/sigpipe-die.c: New file.
8699         * MODULES.html.sh (Signal handling): Add sigpipe-die.
8700
8701 2008-08-31  Bruno Haible  <bruno@clisp.org>
8702
8703         Don't override previously installed signal handlers.
8704         * lib/fatal-signal.c (saved_sigactions): New variable.
8705         (uninstall_handlers): Reset the signal to the saved handler, not
8706         to SIG_DFL (except when ignored).
8707         (install_handlers): Save the previous handlers.
8708
8709 2008-08-30  Bruno Haible  <bruno@clisp.org>
8710
8711         * gnulib-tool (func_reset_sigpipe): New function.
8712         (func_get_automake_snippet, func_modules_transitive_closure,
8713         func_import): Invoke it before a join command that reads from stdin,
8714         to avoid "echo: write error: Broken pipe" error messages on stderr.
8715         Reported by Sam Steingold <sds@gnu.org>.
8716
8717 2008-08-30  Bruno Haible  <bruno@clisp.org>
8718
8719         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
8720         Code copied from m4/open.m4.
8721         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
8722         access and the filename ends in a slash. Code copied from lib/open.c.
8723         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8724         * tests/test-fopen.c (main): Check against bug with trailing slash.
8725
8726 2008-08-29  Bruno Haible  <bruno@clisp.org>
8727
8728         Avoid some "gcc -pedantic" warnings.
8729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8730         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8731         * lib/dirent.in.h: Likewise.
8732         * lib/fcntl.in.h: Likewise.
8733         * lib/float.in.h: Likewise.
8734         * lib/iconv.in.h: Likewise.
8735         * lib/inttypes.in.h: Likewise.
8736         * lib/locale.in.h: Likewise.
8737         * lib/math.in.h: Likewise.
8738         * lib/netinet_in.in.h: Likewise.
8739         * lib/search.in.h: Likewise.
8740         * lib/signal.in.h: Likewise.
8741         * lib/stdarg.in.h: Likewise.
8742         * lib/stdint.in.h: Likewise.
8743         * lib/stdio.in.h: Likewise.
8744         * lib/stdlib.in.h: Likewise.
8745         * lib/string.in.h: Likewise.
8746         * lib/strings.in.h: Likewise.
8747         * lib/sys_select.in.h: Likewise.
8748         * lib/sys_socket.in.h: Likewise.
8749         * lib/sys_stat.in.h: Likewise.
8750         * lib/sys_time.in.h: Likewise.
8751         * lib/sysexits.in.h: Likewise.
8752         * lib/time.in.h: Likewise.
8753         * lib/unistd.in.h: Likewise.
8754         * lib/wchar.in.h: Likewise.
8755         * lib/wctype.in.h: Likewise.
8756         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8757         * modules/fchdir (Makefile.am): Likewise.
8758         * modules/fcntl (Makefile.am): Likewise.
8759         * modules/float (Makefile.am): Likewise.
8760         * modules/iconv_open (Makefile.am): Likewise.
8761         * modules/inttypes (Makefile.am): Likewise.
8762         * modules/locale (Makefile.am): Likewise.
8763         * modules/math (Makefile.am): Likewise.
8764         * modules/netinet_in (Makefile.am): Likewise.
8765         * modules/search (Makefile.am): Likewise.
8766         * modules/signal (Makefile.am): Likewise.
8767         * modules/stdarg (Makefile.am): Likewise.
8768         * modules/stdint (Makefile.am): Likewise.
8769         * modules/stdio (Makefile.am): Likewise.
8770         * modules/stdlib (Makefile.am): Likewise.
8771         * modules/string (Makefile.am): Likewise.
8772         * modules/strings (Makefile.am): Likewise.
8773         * modules/sys_select (Makefile.am): Likewise.
8774         * modules/sys_socket (Makefile.am): Likewise.
8775         * modules/sys_stat (Makefile.am): Likewise.
8776         * modules/sys_time (Makefile.am): Likewise.
8777         * modules/sysexits (Makefile.am): Likewise.
8778         * modules/time (Makefile.am): Likewise.
8779         * modules/unistd (Makefile.am): Likewise.
8780         * modules/wchar (Makefile.am): Likewise.
8781         * modules/wctype (Makefile.am): Likewise.
8782         Reported by Reuben Thomas <rrt@sc3d.org>.
8783
8784 2008-08-29  Bruno Haible  <bruno@clisp.org>
8785
8786         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8787         any more.
8788
8789 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8790
8791         * MODULES.html.sh (Misc): Add bitrotate.
8792
8793         * modules/bitrotate: New file.
8794
8795         * lib/bitrotate.h: New file.
8796
8797         * modules/bitrotate-tests: New file.
8798
8799         * tests/test-bitrotate.c: New file.
8800
8801         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8802         on the bitrotate module.
8803
8804         * lib/arctwo.c: Use new bitrotate module.
8805
8806 2008-08-29  Jim Meyering  <meyering@redhat.com>
8807
8808         bootstrap: merge changes from coreutils
8809         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8810         of copied files.  Remove a kludge, now that this is fixed.
8811         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8812         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8813         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8814
8815 2008-08-29  Bruno Haible  <bruno@clisp.org>
8816
8817         * MODULES.html.sh: Remove --cvs-urls option.
8818
8819 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
8820
8821         maint.mk: adjust to file name change
8822         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8823
8824 2008-08-28  Jim Meyering  <meyering@redhat.com>
8825
8826         * modules/getndelim2 (License): Relicense to LGPLv2+.
8827         Approved by Richard Stallman for the version of 1995, and by
8828         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8829
8830 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8831
8832         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8833         dummy if one is not available.  Do not touch them if
8834         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8835         (getc_maybe_unlocked): New.
8836         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8837
8838 2008-08-26  Eric Blake  <ebb9@byu.net>
8839
8840         doc/INSTALL: resync from autoconf
8841         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8842         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8843         moving...
8844         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8845         * INSTALL: Regenerate.
8846         * INSTALL.ISO: New file.
8847         * INSTALL.UTF-8: Likewise.
8848
8849 2008-08-26  Jim Meyering  <meyering@redhat.com>
8850
8851         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8852         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8853         these definitions conditional, so that they may be overridden, too.
8854
8855 2008-08-26  Bruno Haible  <bruno@clisp.org>
8856
8857         Generate INSTALL file variants with prettier quotes.
8858         * doc/Makefile (INSTALL_PRELUDE): New macro.
8859         (INSTALL): Use it.
8860         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8861
8862 2008-08-26  Bruno Haible  <bruno@clisp.org>
8863
8864         Run makeinfo in an English locale.
8865         * doc/Makefile (MAKEINFO): New variable.
8866
8867 2008-08-26  Bruno Haible  <bruno@clisp.org>
8868
8869         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8870         Suggested by Eric Blake.
8871
8872 2008-08-25  Bruno Haible  <bruno@clisp.org>
8873
8874         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8875
8876 2008-08-25  Eric Blake  <ebb9@byu.net>
8877
8878         c-stack: test that stack overflow can be caught
8879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8880         that platform allows handling stack overflow; at least OS/2 EMX
8881         has sigaltstack, but crashes before transferring control to
8882         handler on stack overflow.
8883         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8884         check for HAVE_STACK_OVERFLOW_HANDLING.
8885         Reported by Elbert Pol.
8886
8887 2008-08-25  Bruno Haible  <bruno@clisp.org>
8888
8889         * doc/posix-functions/strftime.texi: Fix description of strftime
8890         module.
8891
8892 2008-08-24  Bruno Haible  <bruno@clisp.org>
8893
8894         * tests/uniwidth/test-uc_width2.c: New file.
8895         * tests/uniwidth/test-uc_width2.sh: New file.
8896         * modules/uniwidth/width-tests (Files): Add the new files.
8897         (TESTS): Add uniwidth/test-uc_width2.sh.
8898         (TESTS_ENVIRONMENT): New variable.
8899         (check_PROGRAMS): Add test-uc_width2.
8900         (test_uc_width2_SOURCES): New variable.
8901
8902         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8903         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8904         not 0x00AB.
8905         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8906
8907 2008-08-22  Eric Blake  <ebb9@byu.net>
8908
8909         test-lock, test-tls: mention why a test is skipped
8910         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8911         skipped.
8912         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8913
8914         count-one-bits: relax license
8915         * modules/count-one-bits (License): Relicense to LGPLv2+.
8916         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8917
8918 2008-08-22  Andreas Schwab  <schwab@suse.de>
8919
8920         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8921         Remove spurious space in assignment.
8922
8923 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8924
8925         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8926         Paul Eggert <eggert@CS.UCLA.EDU>.
8927
8928 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8929
8930         * modules/gettext: Add m4/threadlib.m4.
8931
8932 2008-08-19  Eric Blake  <ebb9@byu.net>
8933
8934         test-c-stack: fix compilation failure on FreeBSD 5.0
8935         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8936         headers before <sys/resource.h>.
8937         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8938         the bug.
8939         Reported by Nelson H. F. Beebe.
8940
8941         strverscmp: migrate from "strverscmp.h" to <string.h>
8942         * modules/string (Makefile.am): Add new hooks.
8943         * modules/strverscmp (Files): Remove strverscmp.h.
8944         (Depends-on): Add string.
8945         (configure.ac): Add indicator.
8946         (Include): Mention new header.
8947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8948         defaults.
8949         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8950         results.
8951         * lib/strverscmp.h: Delete.
8952         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8953         * tests/test-strverscmp.c (includes): Adjust client.
8954         * lib/check-version.c (includes): Likewise.
8955         * NEWS: Document the change.
8956
8957         strverscmp: add unit test
8958         * modules/strverscmp-tests: New file.
8959         * tests/test-strverscmp.c: Likewise.
8960
8961 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8962
8963         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8964         regarding Windows crypto stuff, from Mono.
8965
8966 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8967
8968         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8969         if present, for intel RND.  Return error on failures.
8970
8971 2008-08-18  Ben Pfaff  <blp@gnu.org>
8972
8973         gitlog-to-changelog: give better diagnostic for failed pipe-open
8974         * build-aux/gitlog-to-changelog: Improve error message: suggest
8975         that the version of Git may be too old.
8976
8977 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8978
8979         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8980         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8981
8982 2008-08-18  Bruno Haible  <bruno@clisp.org>
8983
8984         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8985         pthread_in_use().
8986
8987 2008-08-18  Bruno Haible  <bruno@clisp.org>
8988
8989         * lib/glthread/threadlib.c: Include <pthread.h>.
8990
8991 2008-08-18  Bruno Haible  <bruno@clisp.org>
8992
8993         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8994         glthread_recursive_lock_* macros.
8995         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8996         Fix syntax error.
8997
8998 2008-08-18  Bruno Haible  <bruno@clisp.org>
8999
9000         * lib/glthread/thread.c: Avoid forcing a context switch right after
9001         thread creation.
9002
9003 2008-08-17  Bruno Haible  <bruno@clisp.org>
9004
9005         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
9006         * lib/glthread/thread.h: Provide Win32 specific implementation.
9007         * modules/thread (Files): Add lib/glthread/thread.c.
9008         (Depends-on): Add lock.
9009         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
9010
9011 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9012
9013         New module 'yield'.
9014         * modules/yield: New file.
9015         * lib/glthread/yield.h: New file.
9016         * m4/yield.m4: New file.
9017         * MODULES.html.sh (Multithreading): Add yield.
9018
9019 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9020
9021         New module 'thread'.
9022         * modules/thread: New file.
9023         * lib/glthread/thread.h: New file.
9024         * m4/thread.m4: New file.
9025         * MODULES.html.sh (Multithreading): Add thread.
9026
9027 2008-08-17  Bruno Haible  <bruno@clisp.org>
9028
9029         * lib/glthread/lock.h: Include <stdlib.h> always.
9030         * lib/glthread/tls.h: Likewise.
9031         * lib/glthread/cond.h: Likewise.
9032
9033 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9034
9035         New module 'cond'.
9036         * modules/cond: New file.
9037         * lib/glthread/cond.h: New file.
9038         * lib/glthread/cond.c: New file.
9039         * m4/cond.m4: New file.
9040         * MODULES.html.sh (Multithreading): Add cond.
9041
9042 2008-08-16  Eric Blake  <ebb9@byu.net>
9043
9044         c-stack: fix regression on Irix 5.3 from 2008-06-21
9045         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
9046         sa_sigaction...
9047         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
9048         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
9049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
9050         * modules/signal (Makefile.am): Use the value.
9051         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
9052         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
9053         * doc/posix-headers/signal.texi (signal.h): Document this
9054         portability issue.
9055         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
9056         Reported by Tom G. Christensen.
9057
9058 2008-08-17  Bruno Haible  <bruno@clisp.org>
9059
9060         New module 'threadlib'.
9061         * modules/threadlib: New file.
9062         * lib/glthread/threadlib.c: New file, extracted from
9063         lib/glthread/lock.c.
9064         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
9065         functions.
9066         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
9067         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
9068         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
9069         macros.
9070         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
9071         (gl_DISABLE_THREADS): Remove macro.
9072         * modules/lock (Files): Remove build-aux/config.rpath.
9073         (Depends-on): Remove havelib. Add threadlib.
9074         (configure.ac-early): Remove section.
9075         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
9076         * modules/tls (Depends-on): Remove lock. Add threadlib.
9077         (Link): New section, copied from threadlib.
9078         * MODULES.html.sh (Multithreading): Add threadlib.
9079
9080 2008-08-14  Bruno Haible  <bruno@clisp.org>
9081
9082         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
9083         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
9084         glthread_rwlock_unlock, glthread_rwlock_destroy,
9085         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
9086         glthread_recursive_lock_destroy): Define as macros always.
9087         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
9088         glthread_lock_lock.
9089         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
9090         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
9091         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
9092         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
9093         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
9094         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
9095         (glthread_recursive_lock_lock_func): Renamed from
9096         glthread_recursive_lock_lock.
9097         (glthread_recursive_lock_unlock_func): Renamed from
9098         glthread_recursive_lock_unlock.
9099         (glthread_recursive_lock_destroy_func): Renamed from
9100         glthread_recursive_lock_destroy.
9101
9102 2008-08-14  Bruno Haible  <bruno@clisp.org>
9103
9104         * lib/glthread/lock.h: Renamed from lib/lock.h.
9105         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
9106         * lib/glthread/tls.h: Renamed from lib/tls.h.
9107         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
9108         * lib/fstrcmp.c: Update includes.
9109         * lib/strsignal.c: Update includes.
9110         * modules/lock (Files, Makefile.am): Update.
9111         (Include): Change to "glthread/lock.h".
9112         * modules/tls (Files, Makefile.am): Update.
9113         (Include): Change to "glthread/tls.h".
9114         * tests/test-lock.c: Update includes.
9115         * tests/test-tls.c: Update includes.
9116         * NEWS: Mention the renamed header files.
9117
9118 2008-08-11  Jim Meyering  <meyering@redhat.com>
9119
9120         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
9121
9122 2008-08-11  Eric Blake  <ebb9@byu.net>
9123
9124         test-c-stack: avoid C99-ism
9125         * tests/test-c-stack.c (main): Fix whitespace, move declaration
9126         before statement.
9127         Reported by Alain Guibert.
9128
9129 2008-08-10  Jim Meyering  <meyering@redhat.com>
9130
9131         ensure that return value of uinttostr et al are not ignored
9132         * lib/inttostr.h (__GNUC_PREREQ): Define.
9133         (__attribute_warn_unused_result__): Define.
9134         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
9135
9136 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
9137
9138         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
9139         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
9140
9141 2008-08-07  Jim Meyering  <meyering@redhat.com>
9142
9143         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
9144
9145         * modules/mkstemp (License): Relicense under LGPLv2+.
9146         * modules/tempname (License): Likewise.
9147
9148 2008-08-06  Bruno Haible  <bruno@clisp.org>
9149
9150         * lib/poll.c (poll): Further micro-optimization.
9151
9152 2008-08-06  Jim Meyering  <meyering@redhat.com>
9153
9154         inet_pton.c: use locale-independent tolower
9155         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
9156         (inet_pton6): Use c_tolower rather than tolower.
9157         * modules/inet_pton (Depends-on): Add c-ctype.
9158
9159 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
9160
9161         * lib/poll.c (poll): Avoid division when timeout is 0, cache
9162         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
9163
9164 2008-08-06  Jim Meyering  <meyering@redhat.com>
9165
9166         * modules/inet_pton (License): Relicense under LGPLv2+.
9167
9168 2008-08-03  Bruno Haible  <bruno@clisp.org>
9169
9170         Additional non-aborting API for lock and tls.
9171         * lib/lock.h: Include <errno.h>.
9172         (glthread_lock_init): New macro/function.
9173         (gl_lock_init): Define as wrapper around glthread_lock_init.
9174         (glthread_lock_lock): New macro/function.
9175         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
9176         (glthread_lock_unlock): New macro/function.
9177         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
9178         (glthread_lock_destroy): New macro/function.
9179         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
9180         (glthread_rwlock_init): New macro/function.
9181         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
9182         (glthread_rwlock_rdlock): New macro/function.
9183         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
9184         (glthread_rwlock_wrlock): New macro/function.
9185         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
9186         (glthread_rwlock_unlock): New macro/function.
9187         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
9188         (glthread_rwlock_destroy): New macro/function.
9189         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
9190         (glthread_recursive_lock_init): New macro/function.
9191         (gl_recursive_lock_init): Define as wrapper around
9192         glthread_recursive_lock_init.
9193         (glthread_recursive_lock_lock): New macro/function.
9194         (gl_recursive_lock_lock): Define as wrapper around
9195         glthread_recursive_lock_lock.
9196         (glthread_recursive_lock_unlock): New macro/function.
9197         (gl_recursive_lock_unlock): Define as wrapper around
9198         glthread_recursive_lock_unlock.
9199         (glthread_recursive_lock_destroy): New macro/function.
9200         (gl_recursive_lock_destroy): Define as wrapper around
9201         glthread_recursive_lock_destroy.
9202         (glthread_once): New macro/function.
9203         (gl_once): Define as wrapper around glthread_once.
9204         Update function declarations.
9205         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
9206         glthread_rwlock_init. Return error code.
9207         (glthread_rwlock_rdlock_multithreaded): Renamed from
9208         glthread_rwlock_rdlock. Return error code.
9209         (glthread_rwlock_wrlock_multithreaded): Renamed from
9210         glthread_rwlock_wrlock. Return error code.
9211         (glthread_rwlock_unlock_multithreaded): Renamed from
9212         glthread_rwlock_unlock. Return error code.
9213         (glthread_rwlock_destroy_multithreaded): Renamed from
9214         glthread_rwlock_destroy. Return error code.
9215         (glthread_recursive_lock_init_multithreaded): Renamed from
9216         glthread_recursive_lock_init. Return error code.
9217         (glthread_recursive_lock_lock_multithreaded): Renamed from
9218         glthread_recursive_lock_lock. Return error code.
9219         (glthread_recursive_lock_unlock_multithreaded): Renamed from
9220         glthread_recursive_lock_unlock. Return error code.
9221         (glthread_recursive_lock_destroy_multithreaded): Renamed from
9222         glthread_recursive_lock_destroy. Return error code.
9223         (glthread_once_call): Make static.
9224         (glthread_once_multithreaded): Renamed from glthread_once.
9225         * lib/tls.h: Include <errno.h>.
9226         (glthread_tls_key_init): New macro/function.
9227         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
9228         (glthread_tls_set): New macro/function.
9229         (gl_tls_set): Define as wrapper around glthread_tls_set.
9230         (glthread_tls_key_destroy): New macro/function.
9231         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
9232         Update function declarations.
9233         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
9234         glthread_tls_get.
9235         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9236
9237 2008-08-04  Eric Blake  <ebb9@byu.net>
9238
9239         gnumakefile: use space, not TAB, outside of targets
9240         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
9241
9242 2008-08-02  Jim Meyering  <meyering@redhat.com>
9243
9244         getdate.y: avoid locale-dependent date parsing failure
9245         In Turkish locales, getdate would fail to recognize keywords
9246         containing a lowercase "i".  The solution is not to rely on
9247         locale-sensitive case-conversion.
9248         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
9249         (lookup_word): Use c_toupper in place of toupper.
9250         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
9251         Reported by Vefa Bicakci <bicave@superonline.com> in
9252         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
9253         * modules/getdate (Depends-on): Add c-ctype.
9254
9255 2008-08-02  Bruno Haible  <bruno@clisp.org>
9256
9257         * gnulib-tool (func_import): When updating or creating a .gitignore
9258         file, prepend each added line with a slash, and ignore leading slashes
9259         from the existing lines.
9260         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9261
9262 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9263
9264         Portability fix for GNU make 3.79.1.
9265         * top/GNUmakefile: Avoid 'else COND', which older GNU make
9266         versions do not understand.
9267
9268 2008-08-01  Bruno Haible  <bruno@clisp.org>
9269
9270         Work around bug of HP-UX 10.20 cc with -0.0 literal.
9271         * tests/test-isnanf.h (zero): New variable.
9272         (main): Avoid literal -0.0f.
9273         * tests/test-isnand.h (zero): New variable.
9274         (main): Avoid literal -0.0.
9275         * tests/test-isnanl.h (zero): New variable.
9276         (main): Avoid literal -0.0L.
9277         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
9278         (test_float, test_double, test_long_double): Avoid literals -0.0f,
9279         -0.0, -0.0L.
9280         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
9281         (test_signbitd): Avoid literal -0.0.
9282         (test_signbitl): Avoid literal -0.0L.
9283         * tests/test-ceilf1.c (zero): New variable.
9284         (main): Avoid literal -0.0f.
9285         * tests/test-ceill.c (zero): New variable.
9286         (main): Avoid literal -0.0L.
9287         * tests/test-floorf1.c (zero): New variable.
9288         (main): Avoid literal -0.0f.
9289         * tests/test-floorl.c (zero): New variable.
9290         (main): Avoid literal -0.0L.
9291         * tests/test-roundf1.c (zero): New variable.
9292         (main): Avoid literal -0.0f.
9293         * tests/test-round1.c (zero): New variable.
9294         (main): Avoid literal -0.0.
9295         * tests/test-roundl.c (zero): New variable.
9296         (main): Avoid literal -0.0L.
9297         * tests/test-truncf1.c (zero): New variable.
9298         (main): Avoid literal -0.0f.
9299         * tests/test-trunc1.c (zero): New variable.
9300         (main): Avoid literal -0.0.
9301         * tests/test-truncl.c (zero): New variable.
9302         (main): Avoid literal -0.0L.
9303         * tests/test-frexp.c (zero): New variable.
9304         (main): Avoid literal -0.0.
9305         * tests/test-frexpl.c (zero): New variable.
9306         (main): Avoid literal -0.0L.
9307         * tests/test-ldexpl.c (zero): New variable.
9308         (main): Avoid literal -0.0L.
9309         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9310         (zerod, zerol): New variables.
9311         (test_function): Avoid literals -0.0, -0.0L.
9312         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9313         (zerod, zerol): New variables.
9314         (test_function): Avoid literals -0.0, -0.0L.
9315         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9316         (zerod, zerol): New variables.
9317         (test_function): Avoid literals -0.0, -0.0L.
9318         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9319         (zerod, zerol): New variables.
9320         (test_function): Avoid literals -0.0, -0.0L.
9321         * tests/test-strtod.c (zero): New variable.
9322         (main): Avoid literal -0.0.
9323         Reported by Jonathan C. Patschke <jp@centtech.com>.
9324
9325 2008-07-31  Jim Meyering  <meyering@redhat.com>
9326
9327         sha256.h: correct definition of SHA224_DIGEST_SIZE
9328         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
9329         Reported by Paulie Pena IV <paulie4@gmail.com>.
9330         Define as 224 / 8, rather than as a literal.
9331         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
9332         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
9333         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
9334
9335 2008-07-31  Bruno Haible  <bruno@clisp.org>
9336
9337         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
9338         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
9339         Reported by Jonathan Patschke <jp@centtech.com>.
9340
9341 2008-07-31  Bruno Haible  <bruno@clisp.org>
9342
9343         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
9344         Reported by Paolo Bonzini <bonzini@gnu.org>.
9345
9346 2008-07-30  Eric Blake  <ebb9@byu.net>
9347
9348         test-strtod: allow compilation without -lm
9349         * tests/test-strtod.c (main): Avoid link dependence on fabs.
9350         Reported by Dennis Clarke <blastwave@gmail.com>.
9351
9352 2008-07-28  Jim Meyering  <meyering@redhat.com>
9353
9354         bootstrap: work also when there are no .po files in po/
9355         * build-aux/bootstrap (update_po_files): Complete the change
9356         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
9357
9358 2008-07-27  Jim Meyering  <meyering@redhat.com>
9359
9360         * users.txt: Add zile.
9361
9362 2008-07-26  Ben Pfaff  <blp@gnu.org>
9363
9364         Add missing dependencies on new m4/exponent[fdl].m4 files.
9365         * modules/isnanf-nolibm: Add m4/exponentf.m4.
9366         * modules/isnand-nolibm: Add m4/exponentd.m4.
9367         * modules/isnanl-nolibm: Add m4/exponentl.m4.
9368         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
9369         m4/isnan[fdl].m4, because the macros actually used moved.
9370         Reported by Jim Meyering.
9371
9372 2008-07-14  Ben Pfaff  <blp@gnu.org>
9373
9374         Add isinf module.
9375         * lib/isinf.c: New file.
9376         * lib/math.in.h: Define isinf macro if we have decided to replace
9377         it.
9378         * m4/isinf.m4: New file.
9379         * m4/math_h.m4: Initialize and substitute variables for isinf
9380         module.
9381         * modules/isinf: New file.
9382         * modules/isinf-tests: New file.
9383         * modules/math: Add substitutions for new module.
9384         * tests/test-isinf.c: New file.
9385         * doc/posix-functions/isinf.texi: Mention new module.
9386         * MODULES.html.sh: Mention new module.
9387
9388 2008-07-14  Ben Pfaff  <blp@gnu.org>
9389
9390         Factor out some macros for use by additional modules.
9391         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
9392         exponentf.m4.
9393         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
9394         exponentd.m4.
9395         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
9396         file exponentl.m4.
9397         * m4/exponentf.m4: New file.
9398         * m4/exponentd.m4: New file.
9399         * m4/exponentl.m4: New file.
9400         * modules/isnanf: Use new file m4/exponentf.m4.
9401         * modules/isnand: Use new file m4/exponentd.m4.
9402         * modules/isnanl: Use new file m4/exponentl.m4.
9403
9404 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
9405
9406         mktime.c: normalize tp->tm_isdst value to -1/0/1.
9407         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
9408         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
9409         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
9410
9411         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
9412         readlink on platforms without PATH_MAX.
9413
9414 2008-07-21  Eric Blake  <ebb9@byu.net>
9415
9416         Warn, not fail, on stale version.
9417         * top/GNUmakefile (_curr-ver): Tone down previous patch.
9418
9419         Don't allow installation with stale devel version number.
9420         * top/GNUmakefile (_is-install-target): New macro.
9421         (_curr-ver): Forbid installation with stale version number.
9422
9423 2008-07-20  Bruno Haible  <bruno@clisp.org>
9424
9425         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
9426         TESTS_ENVIRONMENT.
9427         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
9428
9429 2008-07-20  Bruno Haible  <bruno@clisp.org>
9430
9431         * lib/c-stack.h (c_stack_action): Add documentation.
9432         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
9433
9434 2008-07-20  Bruno Haible  <bruno@clisp.org>
9435
9436         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
9437         * modules/readlink (License): Likewise.
9438
9439 2008-07-17  Eric Blake  <ebb9@byu.net>
9440
9441         * modules/c-stack (Link): Fix typo.
9442
9443         Make c-stack use libsigsegv, when available.
9444         * modules/c-stack (Depends-on): Add libsigsegv.
9445         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
9446         needed.
9447         * lib/c-stack.c (SIGSTKSZ): Define fallback.
9448         (segv_handler, overflow_handler, c_stack_action)
9449         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
9450         implementation when libsigsegv is available, but only when using
9451         the library is necessary.
9452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
9453         comment, explaining why XSI check fails on Linux.
9454         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
9455         * tests/test-c-stack2.sh: Tweak skip message.
9456         * NEWS: Document new link-time requirements.
9457
9458 2008-07-16  Eric Blake  <ebb9@byu.net>
9459
9460         c-stack: Expose false positives when not using libsigsegv.
9461         * modules/c-stack-tests (Files): Expand test.
9462         * tests/test-c-stack.c (main): Add means to conditionally trigger
9463         non-overflow SIGSEGV.
9464         * tests/test-c-stack2.sh: New file.
9465
9466 2008-07-14  Bruno Haible  <bruno@clisp.org>
9467
9468         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
9469         Reported by Eric Blake.
9470
9471 2008-07-14  Sam Steingold  <sds@gnu.org>
9472             Bruno Haible  <bruno@clisp.org>
9473
9474         New module libsigsegv.
9475         * modules/libsigsegv: New file.
9476         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
9477         modifications.
9478         * MODULES.html.sh (Signal handling): New section.
9479
9480 2008-07-14  Bruno Haible  <bruno@clisp.org>
9481
9482         * modules/unictype/ctype-* (Description): Add the word "function".
9483         Improves the resulting doc in MODULES.html.
9484
9485 2008-07-12  Ben Pfaff  <blp@gnu.org>
9486
9487         Add longlong module.
9488         * modules/longlong: New file.
9489
9490 2008-07-12  Bruno Haible  <bruno@clisp.org>
9491
9492         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
9493         to empty.
9494
9495 2008-07-10  Ben Pfaff  <blp@gnu.org>
9496
9497         Add isnan module.
9498         * doc/posix-functions/isnan.texi: Mention new module.
9499         * lib/math.in.h: Define isnan macro if we have decided to replace
9500         it.
9501         * m4/isnan.m4: New file.
9502         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
9503         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
9504         also.
9505         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
9506         redundancy.
9507         * m4/math_h.m4: Initialize and substitute variables for isnan
9508         module.
9509         * modules/isnan: New file.
9510         * modules/isnan-tests: New file.
9511         * modules/math: Add substitutions for new module.
9512         * tests/test-isnan.c: New file.
9513         * MODULES.html.sh: Mention new module.
9514
9515 2008-07-10  Ben Pfaff  <blp@gnu.org>
9516
9517         Add isnanf module.
9518         * lib/isnanf.m4: New file.
9519         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
9520         (gl_HAVE_ISNANF_IN_LIBM): New macro.
9521         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
9522         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
9523         * modules/isnanf: New file.
9524         * modules/isnanf-tests: New file.
9525         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
9526         files.
9527         * tests/test-isnanf-nolibm.c: factored most of its contents into
9528         new file tests/test-isnanf.h.
9529         * tests/test-isnanf.h: New file.
9530         * tests/test-isnanf.c: New file.
9531         * MODULES.html.sh: Mention new module.
9532         * doc/glibc-functions/isnanf.texi: Mention new module.
9533
9534 2008-07-10  Ben Pfaff  <blp@gnu.org>
9535
9536         Add isnand module.
9537         * lib/isnand.h: New file.
9538         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
9539         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
9540         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
9541         functionality also.
9542         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
9543         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
9544         (gl_HAVE_ISNAND_IN_LIBM): New macro.
9545         * modules/isnand: New file.
9546         * modules/isnand-tests: New file.
9547         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
9548         files.
9549         * tests/test-isnand-nolibm.c: factored most of its contents into
9550         new file tests/test-isnand.h.
9551         * tests/test-isnand.h: New file.
9552         * tests/test-isnand.c: New file.
9553         * MODULES.html.sh: Mention new module.
9554
9555 2008-07-10  Ben Pfaff  <blp@gnu.org>
9556
9557         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
9558         * lib/isnand.h: Rename lib/isnand-nolibm.h.
9559         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
9560         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
9561         * modules/isnanf-nolibm: Update references to renamed files.
9562         * modules/isnand-nolibm: Likewise.
9563         * modules/isnanf-nolibm-tests: Likewise.
9564         * modules/isnand-nolibm-tests: Likewise.
9565         * lib/frexp.c: Likewise.
9566         * lib/isfinite.c: Likewise.
9567         * lib/signbitd.c: Likewise.
9568         * lib/signbitf.c: Likewise.
9569         * lib/vasnprintf.c: Likewise.
9570         * tests/test-ceilf1.c: Likewise.
9571         * tests/test-ceilf2.c: Likewise.
9572         * tests/test-floorf1.c: Likewise.
9573         * tests/test-floorf2.c: Likewise.
9574         * tests/test-frexp.c: Likewise.
9575         * tests/test-round1.c: Likewise.
9576         * tests/test-round2.c: Likewise.
9577         * tests/test-roundf1.c: Likewise.
9578         * tests/test-strtod.c: Likewise.
9579         * tests/test-trunc1.c: Likewise.
9580         * tests/test-trunc2.c: Likewise.
9581         * tests/test-truncf1.c: Likewise.
9582         * tests/test-truncf2.c: Likewise.
9583         * NEWS: Mention the renamed header files.
9584
9585 2008-07-11  Jim Meyering  <meyering@redhat.com>
9586
9587         vc-list-files: make the last-resort awk code more portable
9588         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
9589         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
9590         does not support it.
9591
9592 2008-07-10  Eric Blake  <ebb9@byu.net>
9593
9594         Work with tar's bootstrap.
9595         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
9596         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
9597         an m4 comment.
9598
9599 2008-07-09  Jim Meyering  <meyering@redhat.com>
9600
9601         posix-shell.m4: fix typo that made this test malfunction
9602         * m4/posix-shell.m4: Remove capitalization in variable name.
9603
9604 2008-07-08  Bruno Haible  <bruno@clisp.org>
9605
9606         * m4/onceonly.m4: Update comments.
9607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9608
9609 2008-07-04  Jim Meyering  <meyering@redhat.com>
9610
9611         * users.txt: Add vc-dwim.
9612         (bison, coreutils): Use the gitweb URL.
9613
9614 2008-07-03  Jim Meyering  <meyering@redhat.com>
9615
9616         * users.txt: Add libffcall.  From Sam Steingold.
9617
9618 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
9619
9620         getdate.y: do not ignore TZ with relative day, month or year offset
9621         * lib/getdate.y (get_date): Move the tz-handling block to follow the
9622         relative-date-handling, since otherwise, the latter would clobber the
9623         sole output (an updated Start value) of the tz-handling block.
9624         * tests/test-getdate.c: Tests for the fix
9625
9626 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9627
9628         Recognize 'foo_LIBRARIES += libgnu.a'.
9629         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
9630         makefile snippet has already specified an installation location,
9631         also using '+='.
9632
9633 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
9634
9635         getdate.y: factor out common actions
9636         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
9637         Use them in place of open-coded actions.
9638
9639 2008-07-01  Simon Josefsson  <simon@josefsson.org>
9640
9641         Add self-test for getdate module.
9642         * modules/getdate-tests: New file.
9643         * tests/test-getdate.c: New file.
9644
9645 2008-06-29  Bruno Haible  <bruno@clisp.org>
9646
9647         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
9648         .gitignore.
9649         Reported by Sylvain Beucler <beuc@beuc.net>.
9650
9651 2008-06-29  Bruno Haible  <bruno@clisp.org>
9652
9653         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
9654         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
9655
9656 2008-06-29  Bruno Haible  <bruno@clisp.org>
9657
9658         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
9659         EXTRA_DIST.
9660         Reported by Sylvain Beucler <beuc@beuc.net>.
9661
9662 2008-06-26  Jim Meyering  <meyering@redhat.com>
9663
9664         make several modules depend on the "open" module
9665         This provides slightly increased consistency when opening-for-write
9666         the name of a non-directory spelled with a trailing slash.
9667         * modules/chdir-safer: Likewise.
9668         * modules/chown: Likewise.
9669         * modules/clean-temp: Likewise.
9670         * modules/copy-file: Likewise.
9671         * modules/fchdir: Likewise.
9672         * modules/fcntl-safer: Likewise.
9673         * modules/pipe: Likewise.
9674         * modules/utime: Likewise.
9675         Prompted by Eric Blake and Bruno Haible.
9676
9677 2008-06-24  Andreas Schwab  <schwab@suse.de>
9678
9679         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
9680         literals can be used as initializers for global variables.
9681
9682 2008-06-23  Eric Blake  <ebb9@byu.net>
9683
9684         Make gnulib-cache.m4 easier to diff.
9685         * gnulib-tool (func_import): Allow newlines when reading cached
9686         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
9687
9688 2008-06-23  Bruno Haible  <bruno@clisp.org>
9689
9690         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
9691         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
9692         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
9693         m4/signalblocking.m4.
9694         (gl_PREREQ_SIGACTION): Don't invoke it.
9695         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
9696         gl_PREREQ_SIG_HANDLER_H.
9697         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9698         Don't check for sigaction here.
9699
9700 2008-06-23  Bruno Haible  <bruno@clisp.org>
9701
9702         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
9703         (install_handlers): Don't set the SA_RESETHAND flag.
9704
9705 2008-06-23  Bruno Haible  <bruno@clisp.org>
9706
9707         * m4/sigaction.m4: Comment fixes.
9708         * lib/signal.in.h: Likewise.
9709
9710 2008-06-23  Eric Blake  <ebb9@byu.net>
9711
9712         Fix typo.
9713         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
9714
9715         Avoid SA_ namespace.
9716         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
9717         Reported by Ralf Wildenhues.
9718
9719         Avoid test failure due to SA_RESTORER.
9720         * tests/test-sigaction.c (SA_MASK): New macro.
9721         (main): Avoid failing due to extension flags being set.
9722         Reported by Jim Meyering.
9723
9724         Revert use of sig-handler.h in sigprocmask.c.
9725         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9726         it requires the existence of struct sigaction.
9727         * lib/sigprocmask.c (handler_t): Restore typedef.
9728         (rpl_signal, old_handlers): Use local type.
9729
9730 2008-06-22  Bruno Haible  <bruno@clisp.org>
9731
9732         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9733         conditionally.
9734         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9735
9736 2008-06-22  Bruno Haible  <bruno@clisp.org>
9737
9738         * doc/posix-functions/siginterrupt.texi: Move note.
9739
9740         * lib/signal.in.h (SA_RESTART): New macro.
9741         * lib/sigaction.c: Update comment.
9742
9743         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9744
9745         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9746         (gl_PREREQ_SIGPROCMASK): Invoke it.
9747         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9748
9749         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9750
9751         * lib/sigprocmask.c: Update a comment.
9752
9753 2008-06-21  Eric Blake  <ebb9@byu.net>
9754
9755         Use sigaction module rather than signal().
9756         * modules/c-stack (Depends-on): Add sigaction.
9757         * modules/fatal-signal (Depends-on): Likewise.
9758         * modules/nanosleep (Depends-on): Likewise.
9759         * modules/sigprocmask (Files): Add sig-handler.h.
9760         * modules/sigaction (Files): Likewise.
9761         * lib/sig-handler.h (get_handler): New file, suggested by Paul
9762         Eggert.
9763         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9764         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9765         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9766         (init_fatal_signals): Likewise.
9767         * lib/nanosleep.c (rpl_nanosleep): Likewise.
9768         (siginterrupt): Delete fallback.
9769         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9770         instead.
9771         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9772         siginterrupt.
9773
9774         New module sigaction, for mingw.
9775         * modules/sigaction: New module...
9776         * modules/sigaction-tests: ...and its test.
9777         * m4/sigaction.m4: New file.
9778         * lib/sigaction.c: Likewise.
9779         * tests/test-sigaction.c: Likewise.
9780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9781         * modules/signal (Makefile.am): Likewise.
9782         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9783         needed.
9784         * doc/posix-headers/signal.texi (signal.h): Mention provided
9785         types.
9786         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9787         that sigaction is preferable.
9788         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9789         module.
9790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9791         sigaction.
9792
9793         Improve robustness of sigprocmask by overriding signal.
9794         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9795         is in use.
9796         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9797         (SIGKILL, SIGSTOP): Provide fallbacks.
9798         (rpl_signal): Implement.
9799         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9800         signal can be called inside handlers.
9801
9802         Fix nanosleep module on mingw.
9803         * modules/nanosleep (Depends-on): Add sys_select.
9804         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9805
9806         Fix licensing of sigprocmask.
9807         * modules/raise (License): Relicense as LGPL.
9808
9809 2008-06-21  Bruno Haible  <bruno@clisp.org>
9810
9811         * lib/propername.c (proper_name_utf8): Don't use the transliterated
9812         result if it contains question marks.
9813         Reported by Michael Geng <linux@michaelgeng.de>.
9814
9815 2008-06-19  Bruno Haible  <bruno@clisp.org>
9816
9817         Fix CVS-ism.
9818         * doc/gnulib.texi: Include updated-stamp.texi.
9819         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9820         (updated-stamp.texi): New rule.
9821         (gnulib.info): Depend on it.
9822         * doc/.gitignore: Add updated-stamp.texi.
9823         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9824
9825 2008-06-19  Bruno Haible  <bruno@clisp.org>
9826
9827         * doc/Makefile (gnulib.info): Update and simplify dependencies.
9828         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9829
9830 2008-06-19  Eric Blake  <ebb9@byu.net>
9831
9832         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9833         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9834         Reported by Stepan Kasal.
9835
9836 2008-06-18  Bruno Haible  <bruno@clisp.org>
9837
9838         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9839         Reported by Eric Blake.
9840
9841 2008-06-18  Eric Blake  <ebb9@byu.net>
9842
9843         Work around cygwin 1.5.25 strsignal bug.
9844         * tests/test-strsignal.c: Allow for const char *.
9845         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9846
9847 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9848
9849         * users.txt: Update URL to article and add author/date
9850         information.
9851
9852 2008-06-17  Bruno Haible  <bruno@clisp.org>
9853
9854         New macro gl_DISABLE_THREADS.
9855         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9856         if the user did not pass --enable-threads or --disable-threads option.
9857         (gl_DISABLE_THREADS): New macro.
9858         Reported by Eric Blake <ebb9@byu.net>.
9859
9860 2008-06-17  Bruno Haible  <bruno@clisp.org>
9861
9862         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9863         when the macro ignores it.
9864         Based on a patch by Eric Blake <ebb9@byu.net>.
9865
9866 2008-06-17  Bruno Haible  <bruno@clisp.org>
9867
9868         * modules/tls (License): Change to LGPLv2+.
9869         Reported by Eric Blake.
9870
9871 2008-06-17  Eric Blake  <ebb9@byu.net>
9872
9873         Simplify c-stack prerequisites.
9874         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9876         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9877         check.
9878         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9879         <sys/resource.h>.
9880
9881         Move c-stack test into testsuite.
9882         * modules/c-stack-tests: New file.
9883         * lib/c-stack.c [DEBUG]: Move test program...
9884         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9885         fail test if sigaltstack is lacking.
9886         * tests/test-c-stack.sh: New driver file.
9887
9888 2008-06-16  Eric Blake  <ebb9@byu.net>
9889
9890         Use raise module consistently.
9891         * modules/fatal-signal (Depends-on): Add raise.
9892         * modules/sigprocmask (Depends-on): Likewise.
9893         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9894         * lib/sigprocmask.c (sigprocmask): Likewise.
9895         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9896         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9897
9898         Fix compliance bug in sigpending.
9899         * lib/sigprocmask.c (sigpending): Return pending array via
9900         parameter, not return value.
9901
9902 2008-06-14  Eric Blake  <ebb9@byu.net>
9903
9904         Improve obstack-printf test code.
9905         * tests/test-obstack-printf.c (test_function): Fix comment, and
9906         simplify usage of obstack_* in macros.  Add a test for coverage.
9907         Reported by Bruno Haible.
9908
9909 2008-06-14  Bruno Haible  <bruno@clisp.org>
9910
9911         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9912         array size as a constant, not as a const variable.
9913         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9914         AC_USE_SYSTEM_EXTENSIONS.
9915         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9916         Test whether the obstack_printf function actually exists.
9917         * modules/obstack-printf (Depends-on): Add extensions.
9918         (Include): Remove obstack.h.
9919         * modules/obstack-printf-posix (Depends-on): Add extensions.
9920         (Include): Remove obstack.h.
9921
9922 2008-06-13  Eric Blake  <ebb9@byu.net>
9923
9924         Add obstack-printf and obstack-printf-posix modules.
9925         * modules/obstack-printf: New file.
9926         * modules/obstack-printf-posix: Likewise.
9927         * MODULES.html.sh (Misc): Mention them.
9928         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9929         Likewise.
9930         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9931         Likewise.
9932         * modules/stdio (Makefile.am): Accomodate new modules.
9933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9934         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9935         Declare.
9936         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9937         functions.
9938         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9939         (gl_REPLACE_OBSTACK_PRINTF): New macros
9940         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9941         * tests/test-obstack-printf.c: New file.
9942         * modules/obstack-printf-tests: Likewise.
9943         * modules/obstack-printf-posix-tests: Likewise.
9944
9945 2008-06-11  Bruno Haible  <bruno@clisp.org>
9946
9947         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9948         * lib/open.c: Include errno.h.
9949         (open): Fail when attempting to write to a file that has a trailing
9950         slash.
9951         * tests/test-open.c (main): Test against trailing slash bug.
9952         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9953
9954 2008-06-10  Bruno Haible  <bruno@clisp.org>
9955
9956         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9957         for $? to work inside the trap command, with various /bin/sh-s.
9958         * tests/test-vc-list-files-cvs.sh: Likewise.
9959
9960 2008-06-10  Bruno Haible  <bruno@clisp.org>
9961
9962         * lib/acl-internal.h: Don't include gettext.h here.
9963         * lib/set-mode-acl.c: Include gettext.h here.
9964         * lib/copy-acl.c: Likewise.
9965
9966 2008-06-10  Bruno Haible  <bruno@clisp.org>
9967
9968         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9969         * lib/wait-process.c (wait_subprocess): Likewise.
9970         * lib/execute.h (execute): Add termsigp argument.
9971         * lib/execute.c (execute): Likewise.
9972         * lib/csharpcomp.c (compile_csharp_using_pnet,
9973         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9974         * lib/csharpexec.c (execute_csharp_using_pnet,
9975         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9976         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9977         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9978         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9979         is_jikes_present): Update.
9980         * lib/javaexec.c (execute_java_class): Update.
9981         * lib/javaversion.c (execute_and_read_line): Update.
9982         * NEWS: Document the changes.
9983         Reported by Eric Blake.
9984
9985 2008-06-10  Eric Blake  <ebb9@byu.net>
9986
9987         Add missing include.
9988         * tests/test-strstr.c (includes): Add <signal.h>.
9989         * tests/test-strcasestr.c (includes): Likewise.
9990         * tests/test-memmem.c (includes): Likewise.
9991
9992 2008-06-10  Bruno Haible  <bruno@clisp.org>
9993
9994         * lib/wait-process.c (wait_subprocess): Add an assertion.
9995
9996 2008-06-10  Bruno Haible  <bruno@clisp.org>
9997
9998         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9999
10000 2008-06-10  Bruno Haible  <bruno@clisp.org>
10001
10002         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
10003         using alarm().
10004         * tests/test-strcasestr.c (main): Likewise.
10005         * tests/test-strstr.c (main): Likewise.
10006
10007 2008-06-09  Bruno Haible  <bruno@clisp.org>
10008
10009         Work around the Solaris 10 ACE ACLs ABI change.
10010         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
10011         declare if ACL_NO_TRIVIAL is present.
10012         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
10013         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
10014         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
10015         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
10016         define if ACL_NO_TRIVIAL is present.
10017         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
10018         and use the current ABI.
10019         (file_has_acl): Use same #if condition as elsewhere.
10020         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
10021         in use, and use the current ABI.
10022         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
10023         Reported by Jim Meyering.
10024
10025 2008-06-09  Eric Blake  <ebb9@byu.net>
10026
10027         Work around environments that (stupidly) ignore SIGALRM.
10028         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
10029         before using alarm().
10030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10032         Reported by Ian Beckwith <ianb@erislabs.net>.
10033
10034         Produce autobuild blurb earlier in log.
10035         * modules/autobuild (configure.ac-early): Move AB_INIT here.
10036
10037 2008-06-09  Jim Meyering  <meyering@redhat.com>
10038         and Ondřej Vašík  <ovasik@redhat.com>
10039
10040         utimens.c: correct kernel bug work-around
10041         Ondřej Vašík found that the invalid return value of 280 indicates
10042         failure, not success, and the kernel bug we're trying to work
10043         around affects not just the utimensat call, but also the fallback
10044         futimens call.
10045         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
10046         not success.
10047         [HAVE_FUTIMENS]: Use the same work-around, here.
10048
10049 2008-06-09  Jim Meyering  <meyering@redhat.com>
10050
10051         add more guards around definition of ACE_-related code
10052         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
10053         ALLOW and ACE_OWNER are also defined.
10054
10055 2008-06-08  Bruno Haible  <bruno@clisp.org>
10056
10057         * lib/acl-internal.h: Add me as co-author.
10058         * lib/file-has-acl.c: Likewise.
10059         * lib/set-mode-acl.c: Likewise.
10060         * lib/copy-acl.c: Likewise.
10061
10062 2008-06-08  Bruno Haible  <bruno@clisp.org>
10063
10064         Add support for AIX ACLs.
10065         * lib/acl-internal.h (acl_nontrivial): New declaration.
10066         * lib/file-has-acl.c (acl_nontrivial): New function.
10067         (file_has_acl): Add implementation using AIX 4 ACL API.
10068         * lib/set-mode-acl.c (qset_acl): Likewise.
10069         * lib/copy-acl.c (qcopy_acl): Likewise.
10070
10071 2008-06-08  Bruno Haible  <bruno@clisp.org>
10072
10073         Add support for HP-UX ACLs.
10074         * lib/acl-internal.h (acl_nontrivial): New declaration.
10075         * lib/file-has-acl.c (acl_nontrivial): New function.
10076         (file_has_acl): Add implementation using HP-UX 11 ACL API.
10077         * lib/set-mode-acl.c (qset_acl): Likewise.
10078         * lib/copy-acl.c (qcopy_acl): Likewise.
10079
10080 2008-06-08  Bruno Haible  <bruno@clisp.org>
10081
10082         Add support for Cygwin ACLs.
10083         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
10084         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
10085         the chmod_or_fchmod call.
10086         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
10087
10088 2008-06-08  Bruno Haible  <bruno@clisp.org>
10089
10090         Fix bug with setuid modes in Solaris 10+ code.
10091         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
10092         succeeded, when the mode contains some special bits.
10093
10094 2008-06-08  Bruno Haible  <bruno@clisp.org>
10095
10096         Add support for Solaris 7..10 ACLs.
10097         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
10098         declarations.
10099         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
10100         functions.
10101         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
10102         * lib/set-mode-acl.c (qset_acl): Likewise.
10103         * lib/copy-acl.c (qcopy_acl): Likewise.
10104
10105 2008-06-08  Bruno Haible  <bruno@clisp.org>
10106
10107         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
10108         declaration.
10109         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
10110         (acl_access_nontrivial): Remove MacOS X case.
10111         (file_has_acl): Use acl_extended_nontrivial.
10112         * lib/copy-acl.c (qcopy_acl): Likewise.
10113
10114 2008-06-08  Bruno Haible  <bruno@clisp.org>
10115
10116         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
10117
10118 2008-06-08  Jim Meyering  <meyering@redhat.com>
10119
10120         * modules/acl (Maintainer): Add Bruno Haible.
10121
10122 2008-06-07  Bruno Haible  <bruno@clisp.org>
10123
10124         Improve support for Tru64 ACLs.
10125         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
10126         ACL on OSF/1.
10127
10128 2008-06-07  Bruno Haible  <bruno@clisp.org>
10129
10130         Add support for MacOS X ACLs.
10131         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
10132         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
10133         * lib/set-mode-acl.c (qset_acl): Likewise.
10134         * lib/copy-acl.c (qcopy_acl): Likewise.
10135
10136 2008-06-07  Bruno Haible  <bruno@clisp.org>
10137
10138         Fix memory leak introduced on 2008-05-22.
10139         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
10140         use.
10141
10142 2008-06-07  Bruno Haible  <bruno@clisp.org>
10143
10144         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
10145         to construct an empty ACL.
10146
10147 2008-06-07  Bruno Haible  <bruno@clisp.org>
10148
10149         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
10150         precisely.
10151         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
10152
10153 2008-06-07  Bruno Haible  <bruno@clisp.org>
10154
10155         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
10156         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
10157
10158 2008-06-07  Bruno Haible  <bruno@clisp.org>
10159
10160         * doc/posix-functions/_setjmp.texi: Explain the use of this function
10161         regardless of POSIX.
10162         * doc/posix-functions/_longjmp.texi: Likewise.
10163         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
10164         SystemV platform in this case.
10165
10166 2008-06-06  Eric Blake  <ebb9@byu.net>
10167
10168         Document abort() bugs.
10169         * doc/posix-functions/abort.texi (abort): Mention anomalies.
10170
10171         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
10172         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
10173         sigsetjmp.
10174         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
10175         siglongjmp, but only as a macro.
10176         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
10177         is obsolete.
10178         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
10179
10180         Tweak documentation to cover cygwin argz bugs.
10181         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
10182         argz bug fix; no code change needed since no cygwin releases
10183         occurred between the last fix and the bug being tested.
10184         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
10185         module and recently fixed cygwin bugs.
10186         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
10187         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
10188         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
10189         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
10190         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
10191         Likewise.
10192         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
10193         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
10194         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
10195         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
10196         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
10197         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
10198         Likewise.
10199
10200         Avoid gcc warning on cygwin.
10201         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
10202         !ACL_NO_TRIVIAL]: Avoid unused variable.
10203
10204 2008-06-05  Eric Blake  <ebb9@byu.net>
10205
10206         Be tolerant of UNKNOWN version in gnulib-tool test dir.
10207         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
10208         git-version-gen fails to come up with a version.
10209         Reported by Simon Josefsson.
10210
10211 2008-06-05  Jim Meyering  <meyering@redhat.com>
10212             Paul Eggert  <eggert@cs.ucla.edu>
10213
10214         utimens.c: work around a probable Linux kernel bug
10215         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
10216         appears to be a kernel bug that causes utimensat to return 280
10217         instead of 0, indicating success.
10218
10219 2008-06-04  Bruno Haible  <bruno@clisp.org>
10220
10221         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
10222         2008-06-01 commit.
10223
10224 2008-06-04  Bruno Haible  <bruno@clisp.org>
10225
10226         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
10227         * lib/file-has-acl.c (acl_access_nontrivial): New function.
10228         (file_has_acl): Use it. Save errno afterwards.
10229         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
10230
10231 2008-06-03  Bruno Haible  <bruno@clisp.org>
10232
10233         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
10234         draft code. Simplify #ifs.
10235         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
10236         Put Solaris code after POSIX-draft code. Fix comments regarding
10237         Solaris 10, HP-UX. Mention Cygwin.
10238         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
10239
10240 2008-06-03  Eric Blake  <ebb9@byu.net>
10241
10242         Provide fallback for older kernels.
10243         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
10244         Provide runtime fallback if kernel lacks support.
10245         Reported by Mike Frysinger.
10246
10247 2008-06-02  Bruno Haible  <bruno@clisp.org>
10248
10249         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
10250         it exists.
10251
10252 2008-06-02  Bruno Haible  <bruno@clisp.org>
10253
10254         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
10255         * lib/copy-acl.c (qcopy_acl): Update comment.
10256
10257 2008-06-02  Bruno Haible  <bruno@clisp.org>
10258
10259         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
10260         like ACL APIs.
10261
10262 2008-06-02  Bruno Haible  <bruno@clisp.org>
10263
10264         * tests/test-file-has-acl.sh: Use different code for Cygwin.
10265         * tests/test-set-mode-acl.sh: Likewise.
10266         * tests/test-copy-acl.sh: Likewise.
10267         * tests/test-copy-file.sh: Likewise.
10268
10269 2008-06-02  Bruno Haible  <bruno@clisp.org>
10270
10271         * tests/test-file-has-acl.sh: Remove unused code.
10272
10273 2008-06-01  Bruno Haible  <bruno@clisp.org>
10274
10275         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
10276         (copy_acl): Just a wrapper around qcopy_acl that emits the error
10277         messages.
10278         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
10279
10280 2008-06-01  Bruno Haible  <bruno@clisp.org>
10281
10282         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
10283         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
10284         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
10285         APIs.
10286         * modules/acl-tests (configure.ac): Remove tests now contained in
10287         m4/acl.m4.
10288
10289 2008-06-02  Jim Meyering  <meyering@redhat.com>
10290
10291         announce-gen: use a better key-server host name
10292         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
10293         it may be more consistently reliable.  Suggested by Werner Koch
10294         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
10295
10296 2008-06-01  Bruno Haible  <bruno@clisp.org>
10297
10298         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
10299         Reported by Voroskoi Andras <voroskoi@gmail.com>.
10300
10301 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
10302
10303         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
10304
10305 2008-06-01  Bruno Haible  <bruno@clisp.org>
10306
10307         New ACL tests.
10308         * tests/test-file-has-acl.sh: New file.
10309         * tests/test-file-has-acl.c: New file.
10310         * tests/test-set-mode-acl.sh: New file.
10311         * tests/test-set-mode-acl.c: New file.
10312         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
10313         * tests/test-copy-acl.c: New file.
10314         * modules/acl-tests: New file, based on modules/copy-file-tests.
10315         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
10316         (Depends-on): Add acl-tests.
10317         (configure.ac): Remove checks.
10318         (Makefile.am): Don't create test-sameacls program here any more.
10319
10320 2008-06-01  Bruno Haible  <bruno@clisp.org>
10321
10322         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
10323         * tests/test-sameacls.c: Include progname.h.
10324         (main): Invoke set_program_name. Portability fixes for MacOS X,
10325         Solaris, HP-UX.
10326
10327 2008-06-01  Bruno Haible  <bruno@clisp.org>
10328
10329         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
10330         function.
10331         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
10332
10333 2008-06-01  Bruno Haible  <bruno@clisp.org>
10334
10335         * modules/rpmatch (Depends-on): Add strdup.
10336
10337 2008-06-01  Bruno Haible  <bruno@clisp.org>
10338
10339         * lib/pipe.c: Include unistd-safer.h.
10340         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
10341         * modules/pipe (Depends-on): Add unistd-safer.
10342
10343 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10344
10345         * modules/autobuild (configure.ac): Call AB_INIT.
10346
10347 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10348
10349         * tests/test-getaddrinfo.c: Don't print debug messages by default.
10350         Suggested by Bruno Haible <bruno@clisp.org>.
10351
10352 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10353
10354         * tests/test-base64.c: Cast size_t to unsigned long when invoking
10355         printf.  Use %lu instead of %d.  Reported by Bruno Haible
10356         <bruno@clisp.org>.
10357
10358 2008-05-29  Eric Blake  <ebb9@byu.net>
10359
10360         Prefer new POSIX 200x interfaces over futimesat.
10361         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
10362         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
10363         when available.
10364         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
10365
10366 2008-05-28  Bruno Haible  <bruno@clisp.org>
10367
10368         * modules/stpcpy (License): Change to LGPLv2+.
10369         Requested by David Lutterkort <dlutter@redhat.com>.
10370
10371 2008-05-27  Bruno Haible  <bruno@clisp.org>
10372
10373         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
10374         current mingw.
10375         Reported by Jose E. Marchesi <jemarch@gnu.org>.
10376
10377 2008-05-27  Bruno Haible  <bruno@clisp.org>
10378
10379         * modules/iconv_open (Link): New section, from module 'iconv'.
10380         * modules/striconv (Link): Likewise.
10381         * modules/striconveh (Link): Likewise.
10382         * modules/xstriconv (Link): Likewise.
10383         * modules/unicodeio (Link): Likewise.
10384         * modules/propername (Link): Likewise.
10385         Reported by Jim Meyering.
10386
10387 2008-05-26  Jim Meyering  <meyering@redhat.com>
10388
10389         sha256: do not artificially restrict buffer length to be < 2^32
10390         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
10391         uint32_t to size_t.
10392         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
10393         to match.
10394
10395         avoid unaligned access errors, e.g., on sparc
10396         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
10397         direct access through a possibly-unaligned uint64* pointer.
10398         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
10399         direct access through a possibly-unaligned uint32* pointer.
10400         Prompted by this patch from Tom "spot" Callaway:
10401         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
10402
10403         sha512.c: fix typo in comment
10404         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
10405
10406 2008-05-25  Bruno Haible  <bruno@clisp.org>
10407
10408         * lib/set-mode-acl.c: Renamed from lib/acl.c.
10409         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
10410         (Makefile.am): Update lib_SOURCES.
10411
10412 2008-05-25  Bruno Haible  <bruno@clisp.org>
10413
10414         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
10415
10416 2008-05-25  Jim Meyering  <meyering@redhat.com>
10417
10418         useless-if-before-free: freed expr may have white-space differences
10419         * build-aux/useless-if-before-free: Recognize cases in which the
10420         freed expression differs from the tested one in embedded white
10421         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
10422         $1 was used, so we can't make any regexp shy.  Improved tests now
10423         detect this.
10424
10425         useless-if-before-free: accept white space in the expression.
10426         * build-aux/useless-if-before-free: For now, any white space
10427         in the expression must be identical in the free argument.
10428
10429         useless-if-before-free: efficiency tweak
10430         * build-aux/useless-if-before-free: Make the expression-matching
10431         regexp "shy".
10432         Make the *outer* regexp shy, not the expr-matching one.
10433
10434         update code-in-comment to accept cast of free arg
10435         * build-aux/useless-if-before-free: Update regexp.
10436
10437 2008-05-25  Bruno Haible  <bruno@clisp.org>
10438
10439         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
10440         * modules/copy-file-tests (Files, Makefile.am): Update.
10441         * tests/test-copy-file.c (func_test_copy): Update.
10442
10443 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
10444
10445         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
10446
10447 2008-05-23  Bruno Haible  <bruno@clisp.org>
10448
10449         Improve support for ACLs on OSF/1.
10450         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
10451         Remove fallback for unknown flavors of ACLs.
10452
10453 2008-05-22  Bruno Haible  <bruno@clisp.org>
10454
10455         Add support for ACLs on OSF/1.
10456         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
10457         replacements.
10458         (acl_free_text): New macro fallback.
10459         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
10460         acl_free.
10461         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
10462         acl_free_text function. Require AC_C_INLINE.
10463
10464 2008-05-22  Bruno Haible  <bruno@clisp.org>
10465
10466         Make copy_acl work on MacOS X 10.5.
10467         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
10468         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
10469         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
10470         If MODE_INSIDE_ACL, don't assume that every system has the same text
10471         representation for ACLs as FreeBSD.
10472         * lib/copy-acl.c (copy_acl): Add support for platforms with
10473         !MODE_INSIDE_ACL.
10474         * lib/file-has-acl.c (file_has_acl): Likewise.
10475         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
10476         FreeBSD, MacOS X, or IRIX, respectively.
10477
10478 2008-05-22  Bruno Haible  <bruno@clisp.org>
10479
10480         * lib/acl.h: Don't include <sys/acl.h>.
10481         (GETACLCNT): Move fallback to lib/acl-internal.h.
10482         * lib/acl-internal.h: Include <sys/acl.h> here.
10483         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
10484
10485 2008-05-22  Bruno Haible  <bruno@clisp.org>
10486
10487         Split off copy_acl function to separate file.
10488         * lib/copy-acl.c: New file, extracted from lib/acl.c.
10489         * lib/acl.c (copy_acl): Moved function to separate file.
10490         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
10491         * modules/acl (Files): Add lib/copy-acl.c.
10492         (Makefiles.am): Augment lib_SOURCES.
10493
10494 2008-05-22  Bruno Haible  <bruno@clisp.org>
10495
10496         * modules/copy-file-tests: New file.
10497         * tests/test-copy-file.sh: New file.
10498         * tests/test-copy-file.c: New file.
10499         * tests/test-copy-file-sameacls.c: New file.
10500
10501 2008-05-22  Eric Blake  <ebb9@byu.net>
10502
10503         Avoid gcc warning.
10504         * tests/test-memcmp.c (main): Pass NULL indirectly.
10505
10506 2008-05-21  Bruno Haible  <bruno@clisp.org>
10507
10508         Add reference doc about ACLs.
10509         * doc/acl-resources.txt: New file.
10510         * doc/acl-cygwin.txt: New file.
10511
10512 2008-05-21  Bruno Haible  <bruno@clisp.org>
10513
10514         Avoid one more warning from gcc.
10515         * lib/vasnprintf.c (IF_LINT): Update comments.
10516         (VASNPRINTF): Use it also for the 'prefix' array initializer.
10517
10518 2008-05-21  Jim Meyering  <meyering@redhat.com>
10519
10520         avoid a warning from gcc
10521         * lib/vasnprintf.c (IF_LINT): Define.
10522         (scale10_round_decimal_long_double):
10523         Use it to avoid a "may be used uninitialized" warning.
10524         (scale10_round_decimal_double): Likewise.
10525
10526 2008-05-21  Simon Josefsson  <simon@josefsson.org>
10527
10528         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
10529         declared.
10530
10531 2008-05-20  Bruno Haible  <bruno@clisp.org>
10532
10533         * tests/test-memcmp.c (main): Test also the sign of the result. Test
10534         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
10535
10536 2008-05-20  Simon Josefsson  <simon@josefsson.org>
10537
10538         * modules/memcmp-tests: New file.
10539         * tests/test-memcmp.c: New file.
10540
10541 2008-05-19  Bruno Haible  <bruno@clisp.org>
10542
10543         * modules/propername (Notice, configure.ac): Put quoted "..." into
10544         --keyword option.
10545         * lib/propername.h: Update comments accordingly.
10546         Reported by Eric Blake.
10547
10548 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
10549
10550         * modules/getpass-gnu (Depends-on): Add fseeko.
10551
10552 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10553
10554         * modules/base64-tests: New file.
10555
10556 2008-05-19  Bo Borgerson <gigabo@gmail.com>
10557
10558         * lib/base64.c (base64_decode_ctx): If a decode context structure
10559         was passed in use it to ignore newlines.  If a context structure
10560         was _not_ passed in, continue to treat newlines as garbage (this
10561         is the historical behavior).  Formerly base64_decode.
10562         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10563         takes a decode context structure.
10564         * lib/base64.h (base64_decode): Macro for four-argument calls.
10565         (base64_decode_alloc): Likewise.
10566         * lib/base64.c (base64_decode_ctx): If a decode context structure
10567         was passed in use it to ignore newlines.  If a context structure
10568         was _not_ passed in, continue to treat newlines as garbage (this
10569         is the historical behavior).  Formerly base64_decode.
10570         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10571         takes a decode context structure.
10572         * lib/base64.h (base64_decode): Macro for four-argument calls.
10573         (base64_decode_alloc): Likewise.
10574
10575 2008-05-19  Jim Meyering  <meyering@redhat.com>
10576
10577         avoid a warning from gcc
10578         * lib/trim.c (IF_LINT): Define.
10579         (trim2): Use it to avoid a "may be used uninitialized" warning.
10580
10581         Fix doc typo.
10582         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
10583
10584 2008-05-19  Bruno Haible  <bruno@clisp.org>
10585
10586         * doc/glibc-functions/getpass.texi: Document limits of other
10587         implementations.
10588
10589 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10590             Bruno Haible <bruno@clisp.org>
10591
10592         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
10593
10594 2008-05-18  Bruno Haible  <bruno@clisp.org>
10595
10596         * modules/propername: New file, from GNU gettext.
10597         * lib/propername.h: New file, from GNU gettext.
10598         * lib/propername.c: New file, from GNU gettext.
10599         * MODULES.html.sh (Internationalization functions): Add propername.
10600
10601 2008-05-16  Jim Meyering  <meyering@redhat.com>
10602             Bruno Haible  <bruno@clisp.org>
10603
10604         Avoid some warnings from "gcc -Wshadow".
10605         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
10606
10607 2008-05-15  Eric Blake  <ebb9@byu.net>
10608
10609         Extend previous patch to cygwin 1.7.0.
10610         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
10611         fast implementation in cygwin >= 1.7.0.
10612         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10614
10615 2008-05-15  Bruno Haible  <bruno@clisp.org>
10616
10617         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
10618         implementation in glibc >= 2.9.
10619         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10621
10622 2008-05-15  Bruno Haible  <bruno@clisp.org>
10623
10624         * MODULES.html.sh (Internationalization functions): Remove linebreak.
10625         (Unicode string functions): Add unilbrk/*.
10626         Reported by Karl Berry.
10627
10628 2008-05-15  Eric Blake  <ebb9@byu.net>
10629
10630         Fix violation of <stdbool.h> replacement in regex.
10631         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
10632         * lib/regexec.c (re_search_internal): Likewise.
10633         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
10634
10635 2008-05-15  Jim Meyering  <meyering@redhat.com>
10636
10637         avoid distracting test output when git or cvs is not found
10638         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
10639         * tests/test-vc-list-files-git.sh: Likewise.
10640
10641 2008-05-15  Eric Blake  <ebb9@byu.net>
10642
10643         Glibc finally accepted the memmem speedup code, bugzilla #5514.
10644         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
10645         glibc version.
10646         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10647         * doc/posix-functions/strstr.texi (strstr): Likewise.
10648         * lib/str-two-way.h (MAX): Sychronize with glibc.
10649
10650 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
10651
10652         * lib/regcomp.c (optimize_utf8): Add a note on why we test
10653         opr.ctx_type.
10654         (calc_first): Initialize constraint field.
10655         (duplicate_node_closure): Use it instead of special casing ANCHORS.
10656         Fix grammar.
10657         (duplicate_node): Merge constraint field for all node types.
10658         (calc_eclosure_iter): Look at constraint field for all node types.
10659         * lib/regex_internal.c (create_cd_newstate): Don't look at
10660         opr.ctx_type.
10661
10662 2008-05-14  Bruno Haible  <bruno@clisp.org>
10663
10664         Help GCC to do better code generation.
10665         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
10666         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10667         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
10668         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
10669         Declare with attribute 'malloc' if supported.
10670
10671 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
10672
10673         use "echo STR|wc -c" rather than unportable "expr length STR"
10674         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
10675         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
10676
10677 2008-05-14  Jim Meyering  <meyering@redhat.com>
10678
10679         use dd ibs=$n count=1 ... rather than less-portable head -c$n
10680         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
10681         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
10682         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
10683         via Collin Lasse.
10684
10685 2008-05-14  Eric Blake  <ebb9@byu.net>
10686
10687         Avoid quadratic growth in gl_LIBSOURCES.
10688         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
10689         Suggested by Bruno Haible.
10690
10691         Test xmemdup0.
10692         * modules/xmemdup0-tests: New file.
10693         * tests/test-xmemdup0.c: Likewise.
10694
10695 2008-05-13  Eric Blake  <ebb9@byu.net>
10696
10697         Split xmemdup0 into its own module.
10698         * modules/xmemdup0: New file.
10699         * lib/xmemdup0.h: Likewise.
10700         * lib/xmemdup0.c: Likewise.
10701         * MODULES.html.sh (Memory management functions): Add xmemdup0.
10702         * lib/xalloc.h (xmemdup0): Remove.
10703         * lib/xmalloc.c (xmemdup0): Likewise.
10704
10705 2008-05-13  Eric Blake  <ebb9@byu.net>
10706             Bruno Haible  <bruno@clisp.org>
10707
10708         Reduce number of forks required during autoconf.
10709         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
10710         and gl_LIBSOURCES_DIR.
10711         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
10712         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
10713         m4_syscmd per file.
10714         <m4_foreach_w>: Move...
10715         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
10716
10717 2008-05-13  Eric Blake  <ebb9@byu.net>
10718
10719         * gnulib-tool: Fix various comment typos.
10720
10721 2008-05-12  Bruno Haible  <bruno@clisp.org>
10722
10723         Tailor the linebreaking algorithm.
10724         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10725
10726 2008-05-12  Bruno Haible  <bruno@clisp.org>
10727
10728         Update to Unicode 5.0.0.
10729         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10730         LBP_JV, LBP_JT. Redistribute values.
10731         (unilbrk_table): Change size.
10732         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10733         Unicode TR#14 rev. 22.
10734         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10735         LBP_JV, LBP_JT. Redistribute values.
10736         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10737         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10738         Update.
10739         * lib/unilbrk/lbrkprop1.h: Regenerated.
10740         * lib/unilbrk/lbrkprop2.h: Regenerated.
10741         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10742         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10743         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10744         Likewise.
10745         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10746         Likewise.
10747         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10748         result.
10749         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10750         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10751         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10752         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10753         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10754         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10755
10756 2008-05-11  Bruno Haible  <bruno@clisp.org>
10757
10758         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10759
10760 2008-05-11  Bruno Haible  <bruno@clisp.org>
10761
10762         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10763         * modules/unilbrk/gen-lbrk: New file.
10764
10765 2008-05-11  Bruno Haible  <bruno@clisp.org>
10766
10767         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10768         * m4/sha512.m4 (gl_SHA512): Likewise.
10769
10770 2008-05-11  Jim Meyering  <meyering@redhat.com>
10771
10772         New modules: crypto/sha256, crypto/sha512 (from coreutils)
10773         * modules/crypto/sha256: New file.
10774         * modules/crypto/sha512: Likewise.
10775         * lib/sha256.c: Likewise.
10776         * lib/sha256.h: Likewise.
10777         * lib/sha512.c: Likewise.
10778         * lib/sha512.h: Likewise.
10779         * lib/u64.h: Likewise.
10780         * m4/sha256.m4: Likewise.
10781         * m4/sha512.m4: Likewise.
10782         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10783
10784 2008-05-10  Bruno Haible  <bruno@clisp.org>
10785
10786         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10787         (Input/Output <stdio.h>): Add xprintf.
10788         (Signal handling <signal.h>): Add strsignal.
10789         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10790         (Core language properties): Add func.
10791         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10792         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10793         strings.
10794         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10795         (Input/output): New section.
10796         (File system functions): Add openat-die, stat-macros.
10797         (Networking functions): Add sockets.
10798         (Unicode string functions): Add unictype/*.
10799         (Support for building libraries and executables): Add gperf.
10800         (Support for building documentation): Add agpl-3.0.
10801         (Misc): Add nocrash.
10802
10803 2008-05-10  Bruno Haible  <bruno@clisp.org>
10804
10805         * modules/unictype/gen-ctype: New file.
10806
10807 2008-05-10  Jim Meyering  <meyering@redhat.com>
10808
10809         Make chdir-safer.c more efficient on a system with no symlinks.
10810         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10811         also if ELOOP is zero.  Suggested by Bruno Haible.
10812
10813         Make chdir-safer.c slightly safer.
10814         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10815         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10816
10817         Avoid compile failure on systems without ELOOP (like mingw).
10818         * lib/chdir-safer.c (ELOOP): Define if not already defined.
10819         Reported by Bruno Haible.
10820
10821 2008-05-10  Bruno Haible  <bruno@clisp.org>
10822
10823         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10824         (is_utf8_encoding): Use a case-insensitive comparison.
10825         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10826         streq.
10827
10828 2008-05-10  Bruno Haible  <bruno@clisp.org>
10829
10830         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10831         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10832         * lib/unilbrk/ulc-common.h (iconv_string_length,
10833         iconv_string_keeping_offsets): Remove declarations.
10834         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10835         Don't include <iconv.h>, streq.h, xsize.h.
10836         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10837         conversion.
10838         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10839         <iconv.h>, streq.h, xsize.h.
10840         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10841         conversion.
10842         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10843         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10844         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10845         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10846
10847 2008-05-10  Bruno Haible  <bruno@clisp.org>
10848
10849         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10850         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10851
10852         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10853         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10854
10855         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10856         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10857
10858         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10859         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10860
10861         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10862         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10863
10864         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10865         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10866
10867         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10868         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10869
10870         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10871         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10872
10873 2008-05-10  Bruno Haible  <bruno@clisp.org>
10874
10875         Split up 'linebreak' module.
10876         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10877         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10878         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10879         modifications.
10880         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10881         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10882         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10883         lib/linebreak.c.
10884         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10885         lib/linebreak.c.
10886         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10887         lib/linebreak.c.
10888         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10889         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10890         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10891         lib/linebreak.c.
10892         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10893         lib/linebreak.c.
10894         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10895         lib/linebreak.c.
10896         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10897         lib/linebreak.c.
10898         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10899         lib/linebreak.c.
10900         * modules/unilbrk/base: New file.
10901         * modules/unilbrk/tables: New file.
10902         * modules/unilbrk/u8-possible-linebreaks: New file.
10903         * modules/unilbrk/u16-possible-linebreaks: New file.
10904         * modules/unilbrk/u32-possible-linebreaks: New file.
10905         * modules/unilbrk/ulc-common: New file.
10906         * modules/unilbrk/ulc-possible-linebreaks: New file.
10907         * modules/unilbrk/u8-width-linebreaks: New file.
10908         * modules/unilbrk/u16-width-linebreaks: New file.
10909         * modules/unilbrk/u32-width-linebreaks: New file.
10910         * modules/unilbrk/ulc-width-linebreaks: New file.
10911         * lib/linebreak.h: Remove file.
10912         * lib/linebreak.c: Remove file.
10913         * m4/linebreak.m4: Remove file.
10914         * modules/linebreak: Remove file.
10915         * NEWS: Mention the changes.
10916
10917 2008-05-09  Eric Blake  <ebb9@byu.net>
10918
10919         Add xmemdup0.
10920         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10921         implementation.
10922         * lib/xmalloc.c (xmemdup0): New C implementation.
10923
10924 2008-05-08  Bruno Haible  <bruno@clisp.org>
10925
10926         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10927
10928 2008-05-07  Eric Blake  <ebb9@byu.net>
10929
10930         Support cross-compilation of <wctype.h>.
10931         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10932         AC_CACHE_CHECK.
10933
10934 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10935
10936         * build-aux/vc-list-files: Add support for bzr.
10937
10938 2008-05-03  Jim Meyering  <meyering@redhat.com>
10939
10940         avoid failed assertion with tight malloc
10941         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10942
10943 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10944
10945         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10946         are needed from arpa/inet.h.
10947         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10948         Reported by Bruno Haible.
10949
10950 2008-05-02  Jim Meyering  <meyering@redhat.com>
10951
10952         avoid compilation error on FreeBSD 6
10953         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10954
10955 2008-05-01  Jim Meyering  <meyering@redhat.com>
10956
10957         useless-if-before-free: correct --help's exit status description
10958         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10959         for one or more matches, etc.  Reported by Bruno Haible.
10960
10961         vc-list-files: make the stand-alone gnulib test work
10962         * modules/vc-list-files-tests (configure.ac):
10963         Define and AC_SUBST abs_aux_dir.
10964         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10965         $(abs_top_srcdir) to each script and having each of them
10966         duplicate the work of setting PATH, set PATH here, using
10967         the new variable, abs_aux_dir instead.
10968         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10969         * tests/test-vc-list-files-git.sh: Likewise.
10970         Reported by Bruno Haible.
10971
10972 2008-05-01  Bruno Haible  <bruno@clisp.org>
10973
10974         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10975         reallocation. Rename 'done' to 'found_delimiter'.
10976
10977 2008-05-01  Jim Meyering  <meyering@redhat.com>
10978
10979         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10980         * build-aux/vc-list-files: Use `...`, not $(...).
10981
10982 2008-04-30  Jim Meyering  <meyering@redhat.com>
10983
10984         add tests for vc-list-files
10985         * modules/vc-list-files-tests: New module.
10986         * tests/test-vc-list-files-cvs.sh: New file.
10987         * tests/test-vc-list-files-git.sh: New file.
10988
10989         avoid a warning from gcc
10990         * lib/getndelim2.c (IF_LINT): Define.
10991         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10992
10993         vc-list-files: work properly with build-aux/cvsu, too
10994         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10995         to all cvs-based clauses.
10996
10997         vc-list-files: work properly in the CVS+awk case, too
10998         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10999
11000         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
11001         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
11002         take more than one file argument, so .  Add quotes, just in case $dir
11003         ever contains a shell meta-character.  Prompted by Soren Hansen in
11004         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
11005
11006 2008-04-29  Eric Blake  <ebb9@byu.net>
11007
11008         Optimize getndelim2 to use block operations when possible.
11009         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
11010         freadseek, and memchr2.
11011         * lib/getndelim2.c (getndelim2): Use them for block reads.
11012
11013 2008-04-29  Bruno Haible  <bruno@clisp.org>
11014
11015         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
11016         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11017         * modules/inet_ntop (Depends-on): Add extensions.
11018         * modules/inet_pton (Depends-on): Likewise.
11019         Reported by Simon Josefsson.
11020
11021 2008-04-29  Jim Meyering  <meyering@redhat.com>
11022
11023         When the is more than one match in a block, match all of them.
11024         * build-aux/useless-if-before-free: Iterate through each block
11025         until there are no more matches.
11026
11027         Fix broken useless-if-before-free script.
11028         * build-aux/useless-if-before-free: Fix typo: missing "?" after
11029         the expression to match cast of argument to free-like function.
11030
11031 2008-04-29  Eric Blake  <ebb9@byu.net>
11032
11033         Use new header.
11034         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
11035
11036 2008-04-29  Jim Meyering  <meyering@redhat.com>
11037
11038         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
11039         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
11040         by gnulib to exist and to declare e.g., inet_ntop.
11041         Don't include "inet_ntop.h", now removed.
11042
11043         * m4/arpa_inet_h.m4: Remove trailing blanks.
11044
11045 2008-04-29  Eric Blake  <ebb9@byu.net>
11046
11047         Silence valgrind on safe reads beyond potential array bounds.
11048         * lib/rawmemchr.valgrind: New file.
11049         * lib/strchrnul.valgrind: Likewise.
11050         * modules/rawmemchr (Files): Distribute new file.
11051         * modules/strchrnul (Files): Likewise.
11052         Suggested by Bruno Haible.
11053
11054 2008-04-29  Bruno Haible  <bruno@clisp.org>
11055
11056         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
11057         (inet_ntop, inet_pton): Change portability warning's wording.
11058         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
11059         Invoke gl_CHECK_NEXT_HEADERS.
11060         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
11061         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
11062         set ARPA_INET_H.
11063         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11064         * modules/arpa_inet (Description): No longer only for systems that
11065         lack it.
11066         (Depends-on): Add include_next.
11067         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
11068         HAVE_ARPA_INET_H.
11069
11070 2008-04-29  Jim Meyering  <meyering@redhat.com>
11071
11072         * modules/mkdir (License): Re-license as LGPLv2+.
11073
11074 2008-04-29  Bruno Haible  <bruno@clisp.org>
11075
11076         * modules/rawmemchr (Maintainer): Set to Eric.
11077         * modules/strchrnul (Maintainer): Likewise.
11078
11079 2008-04-29  Simon Josefsson  <simon@josefsson.org>
11080
11081         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
11082         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
11083
11084         * modules/arpa_inet (arpa/inet.h): Use them.
11085
11086 2008-04-28  Eric Blake  <ebb9@byu.net>
11087
11088         Test getndelim2.
11089         * modules/getndelim2-tests: New file.
11090         * tests/test-getndelim2.c: Likewise.
11091         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
11092         stream.
11093         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
11094
11095         * MODULES.html.sh: Document new module.
11096
11097 2008-04-20  Bruno Haible  <bruno@clisp.org>
11098
11099         * lib/c-stack.c (die): Use raise.
11100         * modules/c-stack (Depends-on): Add raise.
11101
11102 2008-04-28  Bruno Haible  <bruno@clisp.org>
11103
11104         Expect rpmatch to be declared.
11105         * lib/yesno.c (rpmatch): Remove declaration.
11106
11107         Declare rpmatch.
11108         * lib/stdlib.in.h (rpmatch): New declaration.
11109         * lib/rpmatch.c: Include <stdlib.h> first.
11110         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
11111         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
11112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
11113         HAVE_RPMATCH.
11114         * modules/rpmatch (Depends-on): Add stdlib, extensions.
11115         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11116         (Include): Set to <stdlib.h>.
11117         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
11118         HAVE_RPMATCH.
11119         * NEWS: Document the change.
11120
11121 2008-04-28  Bruno Haible  <bruno@clisp.org>
11122
11123         Change rpmatch to use nl_langinfo when appropriate.
11124         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
11125         (N_): New macro.
11126         (localized_pattern): New function/macro.
11127         (try): Remove match, nomatch arguments. Copy the pattern into safe
11128         memory before caching it.
11129         (rpmatch): Use localized_pattern. Add translator comments.
11130         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
11131         Suggested by Eric Blake.
11132         * modules/rpmatch (Depends-on): Add stdbool.
11133
11134 2008-04-28  Eric Blake  <ebb9@byu.net>
11135
11136         Add rawmemchr module, matching glibc.
11137         * modules/string (Makefile.am): New indicator.
11138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
11139         * lib/string.in.h (rawmemchr): Declare when appropriate.
11140         * modules/rawmemchr: New file.
11141         * m4/rawmemchr.m4: Likewise.
11142         * lib/rawmemchr.c: Likewise.
11143         * modules/rawmemchr-tests: Likewise.
11144         * tests/test-rawmemchr.c: Likewise.
11145         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
11146         module.
11147         * modules/strchrnul (Depends-on): Add rawmemchr.
11148         * lib/strchrnul.c (strchrnul): Optimize a corner case.
11149
11150         Whitespace cleanup.
11151         * tests/test-strchrnul.c: Reindent.
11152         * lib/strchrnul.c: Likewise.
11153
11154         Optimize and test strchrnul.
11155         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
11156         * modules/strchrnul-tests: New file.
11157         * tests/test-strchrnul.c: Likewise.
11158
11159         Remove intprops dependency.
11160         * modules/memchr (Depends-on): Remove intprops.
11161         * modules/memrchr (Depends-on): Likewise.
11162         * modules/memchr2 (Depends-on): Likewise.
11163         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
11164         * lib/memrchr.c (__memrchr): Likewise.
11165         * lib/memrchr2.c (memchr2): Likewise.
11166         Reported by Simon Josefsson.
11167
11168 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11169
11170         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
11171         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11172
11173 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11174
11175         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
11176
11177         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
11178
11179         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
11180
11181         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
11182         declarations.
11183         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
11184
11185         * m4/inet_pton.m4: Don't check for header files.
11186
11187         * m4/inet_ntop.m4: Don't check for header files.
11188
11189 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11190
11191         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
11192         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
11193         trigger for cygwin).
11194         Reported by Bruno Haible  <bruno@clisp.org>.
11195
11196 2008-04-28  Bruno Haible  <bruno@clisp.org>
11197
11198         * doc/posix-functions/strdup.texi: Mention mingw problem.
11199
11200 2008-04-27  Bruno Haible  <bruno@clisp.org>
11201
11202         * modules/stat-time-tests (Depends-on): Add sleep.
11203         * tests/test-stat-time.c (force_unlink): New function.
11204         (cleanup): Use it.
11205         (test_mtime): Remove the ctime related tests.
11206         (test_ctime): New function, containing the ctime related tests.
11207         (main): Call test_ctime, except on native Windows platforms.
11208
11209 2008-04-27  Bruno Haible  <bruno@clisp.org>
11210
11211         * lib/rpmatch.c (rpmatch): Add some comments.
11212         Reported by James Youngman <jay@gnu.org>.
11213
11214 2008-04-27  Bruno Haible  <bruno@clisp.org>
11215
11216         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
11217         quiet NaNs.
11218
11219 2008-04-27  Bruno Haible  <bruno@clisp.org>
11220
11221         Make test-yesno.sh work on mingw.
11222         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
11223         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
11224         (main): Set stdin to binary mode.
11225         * modules/yesno-tests (Depends-on): Add binary-io.
11226
11227 2008-04-27  Bruno Haible  <bruno@clisp.org>
11228
11229         Fix 'isfinite' on x86, x86_64, ia64 platforms.
11230         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
11231         argument that lie outside the IEEE 854 domain.
11232         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
11233         (gl_ISFINITE): Use it.
11234         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
11235
11236 2008-04-27  Bruno Haible  <bruno@clisp.org>
11237
11238         Allow local renaming in config.h.
11239         * lib/memrchr.c (memrchr): Don't undefine outside libc.
11240
11241 2008-04-27  Bruno Haible  <bruno@clisp.org>
11242
11243         * lib/memchr.c (__memchr): Change type of 'i'.
11244         * lib/memchr2.c (memchr2): Likewise.
11245
11246 2008-04-26  Eric Blake  <ebb9@byu.net>
11247         and Bruno Haible  <bruno@clisp.org>
11248
11249         Optimize and test memrchr.
11250         * modules/memrchr (Depends-on): Add intprops.
11251         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
11252         * modules/memrchr-tests: New file.
11253         * tests/test-memrchr.c: New file.
11254
11255 2008-04-26  Bruno Haible  <bruno@clisp.org>
11256
11257         Add tentative support for DragonFly BSD.
11258         * lib/stdio-impl.h: Add macros for DragonFly BSD.
11259         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
11260         fp.
11261         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11262         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
11263         * lib/fpurge.c (fpurge): Likewise.
11264         * lib/freadable.c (freaadable): Likewise.
11265         * lib/freadahead.c (freadahead): Likewise.
11266         * lib/freading.c (freading): Likewise.
11267         * lib/freadptr.c (freadptr): Likewise.
11268         * lib/freadseek.c (freadptrinc): Likewise.
11269         * lib/fseeko.c (fseeko): Likewise.
11270         * lib/fseterr.c (fseterr): Likewise.
11271         * lib/fwritable.c (fwritable): Likewise.
11272         * lib/fwriting.c (fwriting): Likewise.
11273
11274 2008-04-26  Bruno Haible  <bruno@clisp.org>
11275
11276         * lib/stdio-impl.h: New file.
11277         * lib/fbufmode.c: Include stdio-impl.h.
11278         (fbufmode): Use fp_, remove redundant #defines.
11279         * lib/fflush.c: Include stdio-impl.h.
11280         (clear_ungetc_buffer): Remove redundant #defines.
11281         * lib/fpurge.c: Include stdio-impl.h.
11282         (fpurge): Remove redundant #defines.
11283         * lib/freadable.c: Include stdio-impl.h.
11284         (freadable): Remove redundant #defines.
11285         * lib/freadahead.c: Include stdio-impl.h.
11286         (freadahead): Remove redundant #defines.
11287         * lib/freading.c: Include stdio-impl.h.
11288         (freading): Remove redundant #defines.
11289         * lib/freadptr.c: Include stdio-impl.h.
11290         (freadptr): Remove redundant #defines.
11291         * lib/freadseek.c: Include stdio-impl.h.
11292         (freadptrinc): Remove redundant #defines.
11293         * lib/fseeko.c: Include stdio-impl.h.
11294         (rpl_fseeko): Remove redundant #defines.
11295         * lib/fseterr.c: Include stdio-impl.h.
11296         (fseterr): Remove redundant #defines.
11297         * lib/fwritable.c: Include stdio-impl.h.
11298         (fwritable: Remove redundant #defines.
11299         * lib/fwriting.c: Include stdio-impl.h.
11300         (fwriting): Remove redundant #defines.
11301         * modules/fbufmode (Files): Add lib/stdio-impl.h.
11302         * modules/fflush (Files): Likewise.
11303         * modules/fpurge (Files): Likewise.
11304         * modules/freadable (Files): Likewise.
11305         * modules/freadahead (Files): Likewise.
11306         * modules/freading (Files): Likewise.
11307         * modules/freadptr (Files): Likewise.
11308         * modules/freadseek (Files): Likewise.
11309         * modules/fseeko (Files): Likewise.
11310         * modules/fseterr (Files): Likewise.
11311         * modules/fwritable (Files): Likewise.
11312         * modules/fwriting (Files): Likewise.
11313
11314 2008-04-26  Bruno Haible  <bruno@clisp.org>
11315
11316         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11317         restore_seek_optimization, update_fpos_cache): New functions, extracted
11318         from rpl_fflush.
11319         (rpl_fflush): Use them.
11320         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
11321         (gl_REPLACE_FFLUSH): Use it.
11322
11323 2008-04-26  Bruno Haible  <bruno@clisp.org>
11324
11325         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
11326         on Solaris.
11327         * tests/test-xstrtoimax.sh: Likewise.
11328         * tests/test-xstrtoumax.sh: Likewise.
11329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11330
11331 2008-04-26  Bruno Haible  <bruno@clisp.org>
11332
11333         * modules/memchr-tests: New file.
11334         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
11335
11336 2008-04-26  Eric Blake  <ebb9@byu.net>
11337             Bruno Haible  <bruno@clisp.org>
11338
11339         * lib/memchr.c: Include intprops.h.
11340         (__memchr): Optimize parallel detection of matching bytes. Rename local
11341         variables. Add explanatory comments.
11342
11343 2008-04-26  Bruno Haible  <bruno@clisp.org>
11344
11345         Fix module 'memchr', broken since 2000-10-28.
11346         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
11347
11348 2008-04-26  Bruno Haible  <bruno@clisp.org>
11349
11350         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
11351         comments.
11352
11353 2008-04-25  Eric Blake  <ebb9@byu.net>
11354
11355         Use native fstatat on cygwin 1.7.0.
11356         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
11357         first.
11358
11359 2008-04-23  Eric Blake  <ebb9@byu.net>
11360
11361         Improve memchr2 performance.
11362         * lib/memchr2.c (memchr2): Further optimize parallel detection of
11363         NUL bytes.
11364         * modules/memchr2 (Depends-on): Use intprops.h.
11365
11366 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11367
11368         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
11369         an inline function instead of a CPP macro.  Patch by Ben Pfaff
11370         <blp@cs.stanford.edu>.
11371
11372 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11373
11374         * lib/arpa_inet.in.h: New file.
11375
11376         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
11377         (Makefile.am): Sed in substitute header file.
11378
11379         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
11380         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
11381
11382         * modules/inet_ntop (configure.ac): Use
11383         gl_ARPA_INET_MODULE_INDICATOR.
11384
11385         * modules/inet_pton (configure.ac): Use
11386         gl_ARPA_INET_MODULE_INDICATOR.
11387
11388 2008-04-22  Jim Meyering  <meyering@redhat.com>
11389
11390         * modules/verify (License): Re-license as LGPLv2+.
11391
11392 2008-04-22  Simon Josefsson  <simon@josefsson.org>
11393
11394         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
11395         parameter to void* as per POSIX standard (MinGW uses char*).
11396
11397 2008-04-21  Bruno Haible  <bruno@clisp.org>
11398
11399         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11400         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11401         Define to replacements if REPLACE_ISWCNTRL is 1.
11402         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
11403         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
11404         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
11405         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
11406         what it fixes.
11407         * doc/posix-functions/iswalpha.texi: Likewise.
11408         * doc/posix-functions/iswblank.texi: Likewise.
11409         * doc/posix-functions/iswcntrl.texi: Likewise.
11410         * doc/posix-functions/iswdigit.texi: Likewise.
11411         * doc/posix-functions/iswgraph.texi: Likewise.
11412         * doc/posix-functions/iswlower.texi: Likewise.
11413         * doc/posix-functions/iswprint.texi: Likewise.
11414         * doc/posix-functions/iswpunct.texi: Likewise.
11415         * doc/posix-functions/iswspace.texi: Likewise.
11416         * doc/posix-functions/iswupper.texi: Likewise.
11417         * doc/posix-functions/iswxdigit.texi: Likewise.
11418         Reported by Alain Guibert.
11419
11420 2008-04-21  Bruno Haible  <bruno@clisp.org>
11421
11422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
11423         Patch by Alain Guibert.
11424
11425 2008-04-21  Bruno Haible  <bruno@clisp.org>
11426
11427         Fix test failures on mingw.
11428         * tests/test-xstrtol.c (print_no_progname): New function.
11429         (main): Install it in error_print_progname hook.
11430         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
11431         * tests/test-xstrtoimax.sh: Likewise.
11432         * tests/test-xstrtoumax.sh: Likewise.
11433
11434 2008-04-21  Bruno Haible  <bruno@clisp.org>
11435
11436         Fix test failure on mingw.
11437         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
11438
11439 2008-04-21  Bruno Haible  <bruno@clisp.org>
11440
11441         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
11442         Actually assign a value.
11443
11444 2008-04-20  Bruno Haible  <bruno@clisp.org>
11445
11446         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
11447         take 2.
11448         * lib/canonicalize.c (canonicalize_file_name): Elide if the
11449         'canonicalize-lgpl' module is also used.
11450         * lib/canonicalize-lgpl.c: Undo last change.
11451         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
11452
11453 2008-04-20  Bruno Haible  <bruno@clisp.org>
11454
11455         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
11456         config.h. Provide _mkdir based fallback for mingw.
11457         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
11458         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
11459         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
11460         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
11461         rather than defining mkdir in config.h.
11462         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
11463         (gl_SYS_STAT_H_DEFAULTS): New macro.
11464         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
11465         HAVE_IO_H any more.
11466         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
11467         HAVE_DECL_MKDIR and HAVE_IO_H.
11468
11469 2008-04-20  Bruno Haible  <bruno@clisp.org>
11470
11471         * lib/isapipe.c: Port to native Windows platforms.
11472
11473 2008-04-20  Bruno Haible  <bruno@clisp.org>
11474
11475         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
11476
11477 2008-04-21  Eric Blake  <ebb9@byu.net>
11478
11479         Work around preprocessors that don't handle UINTMAX_MAX.
11480         * lib/memchr2.c (memchr2): Avoid embedded #if.
11481         Reported by Alain Guibert, fix suggested by Bruno Haible.
11482
11483 2008-04-21  Simon Josefsson  <simon@josefsson.org>
11484
11485         * doc/posix-functions/strftime.texi (strftime): Explain better
11486         Windows incompatibility.  Suggested by Micah Cowan
11487         <micah@cowan.name>.
11488
11489 2008-04-20  Bruno Haible  <bruno@clisp.org>
11490
11491         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
11492         unistr/u8-mblen.
11493
11494 2008-04-20  Bruno Haible  <bruno@clisp.org>
11495
11496         Fix test failure on platforms with non-GNU iconv.
11497         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
11498         (U_TO_U8): Use it, rather than u16_to_u8.
11499         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
11500         units at the end of the input string.
11501         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
11502
11503 2008-04-20  Bruno Haible  <bruno@clisp.org>
11504
11505         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
11506         when the resulting length is 0.
11507         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11508
11509 2008-04-20  Bruno Haible  <bruno@clisp.org>
11510
11511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
11512         works.
11513         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
11514
11515 2008-04-20  Bruno Haible  <bruno@clisp.org>
11516
11517         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
11518         * modules/tsearch-tests (configure.ac): Test for initstate function.
11519
11520 2008-04-20  Bruno Haible  <bruno@clisp.org>
11521
11522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
11523         for nlink_t if missing.
11524         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
11525
11526 2008-04-19  Bruno Haible  <bruno@clisp.org>
11527
11528         Work around snprintf bug on Linux libc5.
11529         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
11530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11531         gl_SNPRINTF_SIZE1.
11532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11533         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
11534         that test failed.
11535         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11536         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
11537         * modules/snprintf (Files): Add m4/printf.m4.
11538         * modules/vsnprintf (Files): Likewise.
11539         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
11540         * doc/posix-functions/vsnprintf.texi: Likewise.
11541
11542 2008-04-19  Bruno Haible  <bruno@clisp.org>
11543
11544         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
11545         from 0.0058 to less than 10^-7.
11546
11547 2008-04-19  Bruno Haible  <bruno@clisp.org>
11548
11549         Fix rounding when a precision is given.
11550         * lib/vasnprintf.c (is_borderline): New function.
11551         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
11552         9...9x.
11553         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
11554         %e, %g.
11555         * tests/test-vasprintf-posix.c (test_function): Likewise.
11556         * tests/test-snprintf-posix.h (test_function): Likewise.
11557         * tests/test-sprintf-posix.h (test_function): Likewise.
11558         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
11559         * tests/test-printf-posix.h (test_function): Likewise.
11560         * tests/test-printf-posix.output: Update.
11561         Reported by John Darrington <john@darrington.wattle.id.au> via
11562         Ben Pfaff <blp@cs.stanford.edu>.
11563
11564 2008-04-18  Simon Josefsson  <simon@josefsson.org>
11565
11566         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
11567         Suggested by Bruno Haible <bruno@clisp.org>.
11568
11569 2008-04-17  Bruno Haible  <bruno@clisp.org>
11570
11571         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
11572         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
11573         implementation.
11574         Patch by Bruce Merry <bmerry@gmail.com>.
11575
11576 2008-04-17  Simon Josefsson  <simon@josefsson.org>
11577
11578         * doc/posix-functions/strftime.texi (strftime): Mention that %e
11579         doesn't work under Windows.
11580
11581 2008-04-16  Bruno Haible  <bruno@clisp.org>
11582
11583         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
11584         New macros.
11585         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
11586         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
11587         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
11588         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
11589         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
11590         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
11591         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
11592         macros.
11593         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
11594         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
11595         Northern Sotho, Uighur.
11596
11597 2008-04-16  Bruno Haible  <bruno@clisp.org>
11598
11599         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
11600         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
11601         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
11602         Reported by Daniel Bergström <daniel@octocode.com>.
11603
11604 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
11605             Bruno Haible  <bruno@clisp.org>
11606
11607         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
11608         function.
11609         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
11610         New functions, mostly extracted from gl_locale_name_default.
11611         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
11612
11613 2008-04-16  Eric Blake  <ebb9@byu.net>
11614
11615         Adjust strtod detection to catch glibc 2.7 bug.
11616         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
11617         Reported by John Gatewood Ham.
11618
11619 2008-04-16  Bruno Haible  <bruno@clisp.org>
11620
11621         Add tentative support for Linux libc5.
11622         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
11623         * lib/fpurge.c (fpurge): Likewise.
11624         * lib/freadable.c (freadable): Likewise.
11625         * lib/freadahead.c (freadahead): Likewise.
11626         * lib/freading.c (freading): Likewise.
11627         * lib/freadptr.c (freadptr): Likewise.
11628         * lib/freadseek.c (freadptrinc): Likewise.
11629         * lib/fseeko.c (rpl_fseeko): Likewise.
11630         * lib/fseterr.c (fseterr): Likewise.
11631         * lib/fwritable.c (fwritable): Likewise.
11632         * lib/fwriting.c (fwriting): Likewise.
11633         Reported by Alain Guibert <alguibert+bts@free.fr>.
11634
11635 2008-04-15  Bruno Haible  <bruno@clisp.org>
11636
11637         * modules/mathl (configure.ac): Define module indicator.
11638
11639 2008-04-15  Bruno Haible  <bruno@clisp.org>
11640
11641         * lib/logl.c (logl): Remove unused variables.
11642
11643 2008-04-15  Bruno Haible  <bruno@clisp.org>
11644
11645         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
11646         fails.
11647
11648 2008-04-15  Bruno Haible  <bruno@clisp.org>
11649
11650         * lib/trim.c (trim2): Fix argument of isspace() macro.
11651
11652 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
11653
11654         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
11655         to 0.
11656         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
11657
11658 2008-04-14  Bruno Haible  <bruno@clisp.org>
11659
11660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
11661         AC_LANG_PROGRAM argument.
11662         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
11663         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
11664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11665         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11666         * m4/math_h.m4 (gl_MATH_H): Likewise.
11667         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11669         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11670         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11671         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11672         * m4/regex.m4 (gl_REGEX): Likewise.
11673         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11674         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
11675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11676         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
11677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11678         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11679         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11680         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11681
11682 2008-04-14  Jim Meyering  <meyering@redhat.com>
11683
11684         test-strtod: fix typos: s/abs/fabs/
11685         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
11686
11687 2008-04-13  Bruno Haible  <bruno@clisp.org>
11688
11689         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
11690         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
11691         module is also used and while not building the reloc-wrapper.
11692
11693 2008-04-13  Bruno Haible  <bruno@clisp.org>
11694
11695         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
11696
11697 2008-04-13  Bruno Haible  <bruno@clisp.org>
11698
11699         Fix AIX compilation failure introduced on 2008-04-02.
11700         * tests/test-frexp.c (exp): Undefine before redefining.
11701         * tests/test-frexpl.c (exp): Likewise.
11702
11703 2008-04-13  Bruno Haible  <bruno@clisp.org>
11704
11705         Work around a HP-UX stdio bug.
11706         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
11707         * tests/test-ftello.c (main): Likewise.
11708         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
11709         * doc/posix-functions/ftello.texi: Likewise.
11710
11711 2008-04-13  Bruno Haible  <bruno@clisp.org>
11712
11713         Make test-signbit pass on HP-UX/hppa.
11714         * tests/test-signbit.c (minus_zerol): New variable.
11715         (test_signbitl): Use it.
11716
11717 2008-04-13  Bruno Haible  <bruno@clisp.org>
11718
11719         Make truncl work on OSF/1 4.0.
11720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
11721         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11722         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11724         HAVE_DECL_TRUNCL.
11725         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11726         HAVE_DECL_TRUNCL.
11727         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11728
11729 2008-04-13  Bruno Haible  <bruno@clisp.org>
11730
11731         * lib/unictype.h: Remove trailing comma from enumeration definitions.
11732
11733 2008-04-13  Bruno Haible  <bruno@clisp.org>
11734
11735         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11736         expression, so as to avoid HP-UX 11 cc compiler bug.
11737
11738 2008-04-13  Bruno Haible  <bruno@clisp.org>
11739
11740         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11741
11742 2008-04-13  Bruno Haible  <bruno@clisp.org>
11743
11744         * lib/git-merge-changelog.c: Remove empty declaration outside of
11745         functions.
11746
11747 2008-04-13  Bruno Haible  <bruno@clisp.org>
11748
11749         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11750
11751 2008-04-13  Bruno Haible  <bruno@clisp.org>
11752
11753         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11754         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11756         also if it exists but lacks definitions of the SHUT_* macros.
11757         * modules/sys_socket (Description): Update.
11758         Reported by Elbert Pol <e.pol@chello.nl>.
11759
11760 2008-04-13  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/localcharset.c (OS2): Don't redefine if already defined.
11763         Reported by Elbert Pol <e.pol@chello.nl>.
11764
11765 2008-04-13  Bruno Haible  <bruno@clisp.org>
11766
11767         * lib/binary-io.h [__EMX__]: Include <io.h>.
11768         Reported by Elbert Pol <e.pol@chello.nl>.
11769
11770 2008-04-12  Bruno Haible  <bruno@clisp.org>
11771
11772         * lib/fpucw.h: Enable the definitions also for x86_64.
11773         Needed for NetBSD/x86_64.
11774         Reported by Thomas Klausner <tk@giga.or.at>.
11775
11776 2008-04-12  Bruno Haible  <bruno@clisp.org>
11777
11778         * tests/test-strtod.c: Include isnand.h.
11779         (main): Use isnand instead of isnan.
11780         Reported by Jim Meyering.
11781
11782 2008-04-12  Bruno Haible  <bruno@clisp.org>
11783
11784         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11785         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11786
11787 2008-04-12  Jim Meyering  <meyering@redhat.com>
11788
11789         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11790
11791 2008-04-12  Bruno Haible  <bruno@clisp.org>
11792
11793         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11794         Reported by Elbert Pol <e.pol@chello.nl>.
11795
11796 2008-04-12  Eric Blake  <ebb9@byu.net>
11797
11798         Work around Solaris 10 math.h bug.
11799         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11800         (gl_MATH_H_DEFAULTS): Set up default.
11801         * modules/math (Makefile.am): Replace new indicators.
11802         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11803         * tests/test-math.c (main): Test this.
11804         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11805         * doc/posix-headers/math.texi (math.h): Mention bug.
11806         Reported by Nelson H. F. Beebe and Jim Meyering.
11807
11808 2008-04-11  Bruno Haible  <bruno@clisp.org>
11809
11810         Adapt to future versions of Apple GCC.
11811         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11812         Reported by Peter O'Gorman <peter@pogma.com>.
11813
11814 2008-04-11  Bruno Haible  <bruno@clisp.org>
11815
11816         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11817
11818 2008-04-11  Bruno Haible  <bruno@clisp.org>
11819
11820         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11821
11822         * modules/getaddrinfo-tests (Makefile.am): Define
11823         test_getaddrinfo_LDADD.
11824
11825 2008-04-11  Bruno Haible  <bruno@clisp.org>
11826
11827         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11828         (init): Fix syntax error.
11829         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11830         is declared.
11831
11832 2008-04-11  Bruno Haible  <bruno@clisp.org>
11833
11834         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11835         * modules/glob (Depends-on): Add stdbool.
11836
11837 2008-04-11  Bruno Haible  <bruno@clisp.org>
11838
11839         * lib/trim.c: Include <string.h>.
11840
11841 2008-04-11  Eric Blake  <ebb9@byu.net>
11842
11843         Avoid compile failure on OS/2.
11844         * lib/regex_internal.h (internal_function): Disable optimization
11845         on OS/2 (__EMX__), where it caused compiler error.
11846         Reported by Elbert Pol.
11847
11848 2008-04-11  Bruno Haible  <bruno@clisp.org>
11849
11850         Flush the standard error stream before aborting. Needed on mingw.
11851         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11852         * tests/test-array_list.c (ASSERT): Likewise.
11853         * tests/test-array_oset.c (ASSERT): Likewise.
11854         * tests/test-avltree_list.c (ASSERT): Likewise.
11855         * tests/test-avltree_oset.c (ASSERT): Likewise.
11856         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11857         * tests/test-binary-io.c (ASSERT): Likewise.
11858         * tests/test-byteswap.c (ASSERT): Likewise.
11859         * tests/test-c-ctype.c (ASSERT): Likewise.
11860         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11861         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11862         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11863         * tests/test-c-strstr.c (ASSERT): Likewise.
11864         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11865         * tests/test-canonicalize.c (ASSERT): Likewise.
11866         * tests/test-carray_list.c (ASSERT): Likewise.
11867         * tests/test-ceilf1.c (ASSERT): Likewise.
11868         * tests/test-ceilf2.c (ASSERT): Likewise.
11869         * tests/test-ceill.c (ASSERT): Likewise.
11870         * tests/test-count-one-bits.c (ASSERT): Likewise.
11871         * tests/test-fbufmode.c (ASSERT): Likewise.
11872         * tests/test-fflush2.c (ASSERT): Likewise.
11873         * tests/test-floorf1.c (ASSERT): Likewise.
11874         * tests/test-floorf2.c (ASSERT): Likewise.
11875         * tests/test-floorl.c (ASSERT): Likewise.
11876         * tests/test-fopen.c (ASSERT): Likewise.
11877         * tests/test-fpending.c (ASSERT): Likewise.
11878         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11879         * tests/test-fpurge.c (ASSERT): Likewise.
11880         * tests/test-freadable.c (ASSERT): Likewise.
11881         * tests/test-freadahead.c (ASSERT): Likewise.
11882         * tests/test-freading.c (ASSERT): Likewise.
11883         * tests/test-freadptr.c (ASSERT): Likewise.
11884         * tests/test-freadptr2.c (ASSERT): Likewise.
11885         * tests/test-freadseek.c (ASSERT): Likewise.
11886         * tests/test-freopen.c (ASSERT): Likewise.
11887         * tests/test-frexp.c (ASSERT): Likewise.
11888         * tests/test-frexpl.c (ASSERT): Likewise.
11889         * tests/test-fseek.c (ASSERT): Likewise.
11890         * tests/test-fseeko.c (ASSERT): Likewise.
11891         * tests/test-fstrcmp.c (ASSERT): Likewise.
11892         * tests/test-ftell.c (ASSERT): Likewise.
11893         * tests/test-ftello.c (ASSERT): Likewise.
11894         * tests/test-func.c (ASSERT): Likewise.
11895         * tests/test-fwritable.c (ASSERT): Likewise.
11896         * tests/test-fwriting.c (ASSERT): Likewise.
11897         * tests/test-getdelim.c (ASSERT): Likewise.
11898         * tests/test-getline.c (ASSERT): Likewise.
11899         * tests/test-i-ring.c (ASSERT): Likewise.
11900         * tests/test-iconv-utf.c (ASSERT): Likewise.
11901         * tests/test-iconv.c (ASSERT): Likewise.
11902         * tests/test-isfinite.c (ASSERT): Likewise.
11903         * tests/test-isnand.c (ASSERT): Likewise.
11904         * tests/test-isnanf.c (ASSERT): Likewise.
11905         * tests/test-isnanl.h (ASSERT): Likewise.
11906         * tests/test-ldexpl.c (ASSERT): Likewise.
11907         * tests/test-linked_list.c (ASSERT): Likewise.
11908         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11909         * tests/test-localename.c (ASSERT): Likewise.
11910         * tests/test-lseek.c (ASSERT): Likewise.
11911         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11912         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11913         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11914         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11915         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11916         * tests/test-mbschr.c (ASSERT): Likewise.
11917         * tests/test-mbscspn.c (ASSERT): Likewise.
11918         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11919         * tests/test-mbspbrk.c (ASSERT): Likewise.
11920         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11921         * tests/test-mbsrchr.c (ASSERT): Likewise.
11922         * tests/test-mbsspn.c (ASSERT): Likewise.
11923         * tests/test-mbsstr1.c (ASSERT): Likewise.
11924         * tests/test-mbsstr2.c (ASSERT): Likewise.
11925         * tests/test-mbsstr3.c (ASSERT): Likewise.
11926         * tests/test-memchr2.c (ASSERT): Likewise.
11927         * tests/test-memmem.c (ASSERT): Likewise.
11928         * tests/test-open.c (ASSERT): Likewise.
11929         * tests/test-printf-frexp.c (ASSERT): Likewise.
11930         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11931         * tests/test-printf-posix.c (ASSERT): Likewise.
11932         * tests/test-quotearg.c (ASSERT): Likewise.
11933         * tests/test-rbtree_list.c (ASSERT): Likewise.
11934         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11935         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11936         * tests/test-round1.c (ASSERT): Likewise.
11937         * tests/test-roundf1.c (ASSERT): Likewise.
11938         * tests/test-roundl.c (ASSERT): Likewise.
11939         * tests/test-signbit.c (ASSERT): Likewise.
11940         * tests/test-sleep.c (ASSERT): Likewise.
11941         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11942         * tests/test-snprintf.c (ASSERT): Likewise.
11943         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11944         * tests/test-stat-time.c (ASSERT): Likewise.
11945         * tests/test-strcasestr.c (ASSERT): Likewise.
11946         * tests/test-strerror.c (ASSERT): Likewise.
11947         * tests/test-striconv.c (ASSERT): Likewise.
11948         * tests/test-striconveh.c (ASSERT): Likewise.
11949         * tests/test-striconveha.c (ASSERT): Likewise.
11950         * tests/test-strsignal.c (ASSERT): Likewise.
11951         * tests/test-strstr.c (ASSERT): Likewise.
11952         * tests/test-strtod.c (ASSERT): Likewise.
11953         * tests/test-trunc1.c (ASSERT): Likewise.
11954         * tests/test-trunc2.c (ASSERT): Likewise.
11955         * tests/test-truncf1.c (ASSERT): Likewise.
11956         * tests/test-truncf2.c (ASSERT): Likewise.
11957         * tests/test-truncl.c (ASSERT): Likewise.
11958         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11959         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11960         * tests/test-vasnprintf.c (ASSERT): Likewise.
11961         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11962         * tests/test-vasprintf.c (ASSERT): Likewise.
11963         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11964         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11965         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11966         * tests/test-vsnprintf.c (ASSERT): Likewise.
11967         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11968         * tests/test-wcwidth.c (ASSERT): Likewise.
11969         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11970         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11971         * tests/test-xvasprintf.c (ASSERT): Likewise.
11972         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11973         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11974         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11975         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11976         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11977         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11978         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11979         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11980         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11981         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11982         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11983         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11984         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11985         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11986         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11987         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11988         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11989         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11990         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11991         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11992         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11993         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11994         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11995         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11996         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11997         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11998         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11999         * tests/unictype/test-combining.c (ASSERT): Likewise.
12000         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
12001         * tests/unictype/test-digit.c (ASSERT): Likewise.
12002         * tests/unictype/test-mirror.c (ASSERT): Likewise.
12003         * tests/unictype/test-numeric.c (ASSERT): Likewise.
12004         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
12005         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
12006         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
12007         * tests/unictype/test-scripts.c (ASSERT): Likewise.
12008         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
12009         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
12010         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
12011         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
12012         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
12013         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
12014         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
12015         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
12016         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
12017         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
12018         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
12019         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
12020         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
12021         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
12022         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
12023         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
12024         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
12025         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
12026         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
12027         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
12028         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
12029         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
12030         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
12031         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
12032         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
12033         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
12034         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
12035         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
12036         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
12037         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
12038         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
12039         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
12040         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
12041         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
12042         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
12043         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
12044         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
12045         Reported by Eric Blake.
12046
12047 2008-04-11  Bruno Haible  <bruno@clisp.org>
12048
12049         * lib/wchar.in.h: Tweak comment.
12050
12051 2008-04-11  Bruno Haible  <bruno@clisp.org>
12052
12053         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
12054         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
12055         gl_COMMON.
12056         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
12057
12058 2008-04-11  Bruno Haible  <bruno@clisp.org>
12059
12060         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
12061
12062 2008-04-11  Simon Josefsson  <simon@josefsson.org>
12063
12064         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
12065         of attempting to use non-existing /dev/*random.  Based on patch
12066         from Adam Strzelecki <ono@java.pl> in
12067         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
12068
12069 2008-04-08  Bruno Haible  <bruno@clisp.org>
12070
12071         Add tentative support for emx+gcc.
12072         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
12073         * lib/fpurge.c (fpurge): Likewise.
12074         * lib/freadable.c (freadable): Likewise.
12075         * lib/freadahead.c (freadahead): Likewise.
12076         * lib/freading.c (freading): Likewise.
12077         * lib/freadptr.c (freadptr): Likewise.
12078         * lib/freadseek.c (freadptrinc): Likewise.
12079         * lib/fseeko.c (rpl_fseeko): Likewise.
12080         * lib/fseterr.c (fseterr): Likewise.
12081         * lib/fwritable.c (fwritable): Likewise.
12082         * lib/fwriting.c (fwriting): Likewise.
12083         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
12084
12085 2008-04-09  Eric Blake  <ebb9@byu.net>
12086
12087         Avoid some autoconf warnings.
12088         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
12089         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
12090         * m4/afs.m4 (gl_AFS): Likewise.
12091         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
12092         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
12093         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12094         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
12095         (gl_INTEGER_TYPE_SUFFIX): Likewise.
12096         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
12097         (AC_CHECK_DECLS_ONCE): Likewise.
12098         Rename file...
12099         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
12100         gnulib-tool requires autoconf 2.59 or better.
12101         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
12102
12103 2008-04-08  Eric Blake  <ebb9@byu.net>
12104
12105         Use 'git describe --match' if present (added in git 1.5.5).
12106         * build-aux/git-version-gen: Limit result to tags that match 'v*'
12107         if possible.
12108
12109 2008-04-08  Bruno Haible  <bruno@clisp.org>
12110
12111         Add tentative support for OpenServer.
12112         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
12113         _ptr, _cnt.
12114         * lib/fpurge.c (fpurge): Likewise.
12115         * lib/freadable.c (freadable): Likewise.
12116         * lib/freadahead.c (freadahead): Likewise.
12117         * lib/freading.c (freading): Likewise.
12118         * lib/freadptr.c (freadptr): Likewise.
12119         * lib/freadseek.c (freadptrinc): Likewise.
12120         * lib/fseeko.c (rpl_fseeko): Likewise.
12121         * lib/fseterr.c (fseterr): Likewise.
12122         * lib/fwritable.c (fwritable): Likewise.
12123         * lib/fwriting.c (fwriting): Likewise.
12124         Reported by Roger Cornelius <rac@tenzing.org> and
12125         Brian K. White <brian@aljex.com>.
12126
12127 2008-04-06  Jim Meyering  <meyering@redhat.com>
12128
12129         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
12130
12131 2008-04-06  Bruno Haible  <bruno@clisp.org>
12132
12133         Avoid possible error with non-ASCII bytes in UTF-8 locales.
12134         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
12135         * tests/test-printf-posix.sh: Likewise.
12136         * tests/test-vfprintf-posix.sh: Likewise.
12137         * tests/test-vprintf-posix.sh: Likewise.
12138         * tests/test-xprintf-posix.sh: Likewise.
12139
12140 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12141
12142         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
12143         hide error from 'ls', needed on OS/2.
12144         Report by Elbert Pol <elbert.pol@gmail.com>.
12145
12146 2008-04-04  Eric Blake  <ebb9@byu.net>
12147
12148         Make test-fseeko.c failures meaningful.
12149         * tests/test-fseeko.c: Print line number on failure.
12150         * tests/test-fseek.c: Likewise.
12151         Reported by Nelson H. F. Beebe.
12152
12153         Improve strtod bug detection check.
12154         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
12155         required for Solaris 10.
12156         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
12157
12158 2008-04-04  Bruno Haible  <bruno@clisp.org>
12159
12160         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
12161         by m4/setenv.m4.
12162
12163 2008-04-03  Eric Blake  <ebb9@byu.net>
12164
12165         Ensure sane .version contents.
12166         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
12167         version string.
12168         * build-aux/git-version-gen: Improve documentation.
12169
12170         Make GNU make output nicer.
12171         * top/GNUmakefile [!_have-Makefile]: Add dependency on
12172         MAKECMDGOALS to enforce message for all command line targets.  Set
12173         srcdir for use in maint.mk.
12174
12175         Another maintainer tweak.
12176         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
12177         a target that regenerates version.
12178
12179 2008-04-03  Jim Meyering  <meyering@redhat.com>
12180
12181         vc-list-files: don't cause coreutils "make po-check" failure
12182         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
12183
12184 2008-04-03  Eric Blake  <ebb9@byu.net>
12185
12186         Allow VPATH usage of vc-list-files.
12187         * build-aux/vc-list-files (scriptversion): Add timestamp.
12188         (options): Add --help, --version, -C.
12189         (CVS): Support installed cvsu.
12190
12191 2008-04-02  Bruno Haible  <bruno@clisp.org>
12192
12193         Avoid some "statement with no effect" warnings from gcc.
12194         * tests/test-wctype.c (main): Explicitly ignore unused values.
12195         Reported by Jim Meyering.
12196
12197 2008-04-02  Jim Meyering  <meyering@redhat.com>
12198
12199         Avoid some warnings from "gcc -Wshadow".
12200         * tests/test-frexp.c (exp): Define to a different identifier.
12201         * tests/test-frexpl.c (exp): Likewise.
12202
12203 2008-04-03  Jim Meyering  <meyering@redhat.com>
12204
12205         bootstrap: remove dangling *.[ch] symlinks from lib
12206         * build-aux/bootstrap [dangling symlink removal]: Move find's
12207         -depth option to precede all others, to avoid a warning.
12208         Remove *.[ch] files too, and from "$source_base" (usually lib/).
12209
12210 2008-04-02  Bruno Haible  <bruno@clisp.org>
12211
12212         Avoid some warnings from "gcc -Wshadow".
12213         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
12214         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
12215         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
12216         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
12217         Reported by Jim Meyering.
12218
12219 2008-04-01  Bruno Haible  <bruno@clisp.org>
12220
12221         Fix test to work on IRIX 6.5 with cc.
12222         * tests/test-math.c (numeric_equal): New function.
12223         (main): Use it.
12224
12225 2008-04-01  Bruno Haible  <bruno@clisp.org>
12226
12227         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
12228
12229 2008-04-01  Bruno Haible  <bruno@clisp.org>
12230
12231         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
12232         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12233         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
12234         (Depends-on): Remove math.
12235
12236         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
12237         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12238         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
12239         (Depends-on): Remove math.
12240
12241         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
12242         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12243         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
12244         (Depends-on): Remove math.
12245         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
12246         (Depends-on): Remove math.
12247
12248         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
12249         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12250         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
12251         (Depends-on): Remove math.
12252         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
12253         (Depends-on): Remove math.
12254
12255         * tests/test-round1.c: Include nan.h.
12256         (main): Use NaNd instead of NAN.
12257         * modules/round-tests (Files): Add tests/nan.h.
12258
12259         * tests/test-trunc1.c: Include nan.h.
12260         (main): Use NaNd instead of NAN.
12261         * modules/trunc-tests (Files): Add tests/nan.h.
12262
12263         * tests/test-roundf1.c: Include nan.h.
12264         (main): Use NaNf instead of NAN.
12265         * modules/roundf-tests (Files): Add tests/nan.h.
12266
12267         * tests/test-truncf1.c: Include nan.h.
12268         (main): Use NaNf instead of NAN.
12269         * modules/truncf-tests (Files): Add tests/nan.h.
12270
12271         * tests/test-ceilf1.c: Include nan.h.
12272         (main): Use NaNf instead of NAN.
12273         * modules/ceilf-tests (Files): Add tests/nan.h.
12274
12275         * tests/test-floorf1.c: Include nan.h.
12276         (main): Use NaNf instead of NAN.
12277         * modules/floorf-tests (Files): Add tests/nan.h.
12278
12279         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
12280         (main): Use NaNf instead of NAN.
12281         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
12282
12283         * tests/test-isnand.c: Include nan.h instead of <math.h>.
12284         (main): Use NaNd instead of NAN.
12285         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
12286
12287         * tests/test-frexp.c: Include nan.h.
12288         (main): Use NaNd instead of NAN.
12289         * modules/frexp-tests (Files): Add tests/nan.h.
12290
12291         * lib/isnan.c: Don't include <math.h>.
12292         (FUNC): Don't use NAN macro.
12293         * modules/isnand-nolibm (Depends-on): Remove math.
12294         * modules/isnanf-nolibm (Depends-on): Remove math.
12295         * modules/isnanl (Depends-on): Remove math.
12296         * modules/isnanl-nolibm (Depends-on): Remove math.
12297
12298         * tests/nan.h: New file.
12299
12300 2008-04-01  Eric Blake  <ebb9@byu.net>
12301
12302         Fix typos.
12303         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
12304         values to be the right type.
12305
12306         For now, cater to gnulib strtod inaccuracies.
12307         * tests/test-strtod.c (main): Allow 1-ulp error on expected
12308         fractional results.  While not as nice from a QoI perspective, it
12309         is a quicker patch than correctly implementing decimal to binary
12310         rounding.
12311
12312 2008-03-31  Eric Blake  <ebb9@byu.net>
12313
12314         Guarantee a definition of NAN.
12315         * lib/math.in.h (NAN): Define if missing.
12316         * tests/test-math.c (main): Test it.
12317         * doc/posix-headers/math.texi (math.h): Document this.
12318         * lib/isnan.c (rpl_isnand): Use it.
12319         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
12320         * tests/test-floorf1.c (NaN): Likewise.
12321         * tests/test-frexp.c (NaN): Likewise.
12322         * tests/test-isnand.c (NaN): Likewise.
12323         * tests/test-isnanf.c (NaN): Likewise.
12324         * tests/test-round1.c (NaN): Likewise.
12325         * tests/test-roundf1.c (NaN): Likewise.
12326         * tests/test-snprintf-posix.h (NaN): Likewise.
12327         * tests/test-sprintf-posix.h (NaN): Likewise.
12328         * tests/test-trunc1.c (NaN): Likewise.
12329         * tests/test-truncf1.c (NaN): Likewise.
12330         * tests/test-vasnprintf-posix.c (NaN): Likewise.
12331         * tests/test-vasprintf-posix.c (NaN): Likewise.
12332         * modules/isnand-nolibm (Depends-on): Add math.
12333         * modules/isnanf-nolibm (Depends-on): Likewise.
12334         * modules/isnanl (Depends-on): Likewise.
12335         * modules/isnanl-nolibm (Depends-on): Likewise.
12336         * modules/snprintf-posix-tests (Depends-on): Likewise.
12337         * modules/sprintf-posix-tests (Depends-on): Likewise.
12338         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
12339         * modules/vsprintf-posix-tests (Depends-on): Likewise.
12340         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
12341         * modules/vasprintf-posix-tests (Depends-on): Likewise.
12342
12343 2008-03-31  Bruno Haible  <bruno@clisp.org>
12344
12345         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
12346         * doc/posix-functions/strtod.texi: Likewise.
12347
12348 2008-03-31  Bruno Haible  <bruno@clisp.org>
12349
12350         * tests/test-strtod.c (main): Don't use C99 syntax.
12351
12352 2008-03-31  Bruno Haible  <bruno@clisp.org>
12353
12354         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
12355         Reported by Eric Blake.
12356
12357 2008-03-31  Jim Meyering  <meyering@redhat.com>
12358
12359         Don't compare actual signbit return values.
12360         * tests/test-strtod.c (main): Rather, compare only their
12361         zero/non-zero nature.
12362
12363 2008-03-31  Eric Blake  <ebb9@byu.net>
12364
12365         More strtod documentation.
12366         * doc/posix-functions/strtod.texi (strtod): Interpret more test
12367         failures as distinct bugs.
12368
12369 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12370
12371         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
12372         Problem reported by Erik Benada in
12373         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
12374
12375 2008-03-30  Bruno Haible  <bruno@clisp.org>
12376
12377         * tests/test-strtod.c: Add comments about which assertion fails on which
12378         platform.
12379         * doc/posix-functions/strtod.texi: Add info about many more platforms.
12380
12381 2008-03-30  Eric Blake  <ebb9@byu.net>
12382
12383         Test signbit behavior on zeros.
12384         * tests/test-signbit.c (test_signbitf): Add tests for zero.
12385         (test_signbitd, test_signbitl): Likewise.
12386
12387         More strtod touchups.
12388         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
12389         sign of negative underflow, for now.  Use .5, not .1.
12390         * doc/posix-functions/strtod.texi (strtod): Mention these
12391         limitations.
12392         Reported by Jim Meyering.
12393
12394 2008-03-30  Bruno Haible  <bruno@clisp.org>
12395
12396         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
12397         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
12398
12399 2008-03-30  Bruno Haible  <bruno@clisp.org>
12400
12401         Avoid failure when attempting to return empty iconv results on some
12402         platforms.
12403         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
12404         allocation, don't report ENOMEM when the resulting string is empty.
12405
12406 2008-03-30  Bruno Haible  <bruno@clisp.org>
12407
12408         Fix buffer overrun.
12409         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
12410         Don't consider the width for tmp_length. Check count against tmp_length
12411         before doing the padding. Ensure enough allocation during padding.
12412
12413 2008-03-30  Eric Blake  <ebb9@byu.net>
12414
12415         strtod touchups.
12416         * lib/strtod.c (strtod): Avoid compiler warnings.
12417         Reported by Jim Meyering.
12418
12419 2008-03-30  Bruno Haible  <bruno@clisp.org>
12420
12421         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
12422         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
12423         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
12424         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
12425         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
12426         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
12427         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
12428         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
12429
12430         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
12431         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
12432         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
12433         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
12434         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
12435         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
12436         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
12437         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
12438
12439         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
12440         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
12441         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
12442         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
12443         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
12444         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
12445         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
12446         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
12447
12448         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
12449         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
12450
12451         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
12452         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
12453
12454         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
12455         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
12456
12457         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
12458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
12459         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
12460
12461         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
12462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
12463         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
12464
12465         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
12466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
12467         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
12468
12469         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
12470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
12471         * modules/vasprintf (Depends-on): Add EOVERFLOW.
12472
12473         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
12474         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
12475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
12476         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
12477         (Depends-on): Add EOVERFLOW.
12478         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
12479         (Depends-on): Add EOVERFLOW.
12480         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12481         (Depends-on): Add EOVERFLOW.
12482         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12483         (Depends-on): Add EOVERFLOW.
12484         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12485         (Depends-on): Add EOVERFLOW.
12486         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12487         (Depends-on): Add EOVERFLOW.
12488         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12489         (Depends-on): Add EOVERFLOW.
12490         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12491         (Depends-on): Add EOVERFLOW.
12492
12493         * lib/sprintf.c (EOVERFLOW): Remove fallback.
12494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
12495         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
12496
12497         * lib/snprintf.c (EOVERFLOW): Remove fallback.
12498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
12499         * modules/snprintf (Depends-on): Add EOVERFLOW.
12500
12501         * lib/poll.c (EOVERFLOW): Remove fallback.
12502         * modules/poll (Depends-on): Add EOVERFLOW.
12503
12504         * lib/getugroups.c (EOVERFLOW): Remove fallback.
12505         * modules/getugroups (Depends-on): Add EOVERFLOW.
12506
12507         * lib/getdelim.c (EOVERFLOW): Remove fallback.
12508         * modules/getdelim (Depends-on): Add EOVERFLOW.
12509
12510         * lib/ftell.c (EOVERFLOW): Remove fallback.
12511         * modules/ftell (Depends-on): Add EOVERFLOW.
12512
12513         * lib/fprintf.c (EOVERFLOW): Remove fallback.
12514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
12515         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
12516
12517         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
12518
12519         * modules/EOVERFLOW-tests: New file.
12520         * tests/test-EOVERFLOW.c: New file.
12521
12522         * modules/EOVERFLOW: New file.
12523         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
12524
12525 2008-03-30  Bruno Haible  <bruno@clisp.org>
12526
12527         Fix bug introduced on 2007-06-10.
12528         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
12529         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
12530
12531 2008-03-30  Bruno Haible  <bruno@clisp.org>
12532
12533         Improve freadseek's efficiency after ungetc.
12534         * lib/freadseek.c: Include freadahead.h.
12535         (freadptrinc): New function, extracted from freadseek.
12536         (freadseek): Use it in a loop. Use freadahead to determine the number
12537         of loop iterations.
12538         * modules/freadseek (Depends-on): Add freadahead.
12539         (configure.ac): Require AC_C_INLINE.
12540
12541 2008-03-30  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/freadseek.c (freadseek): Don't ignore the return value of
12544         freadptr.
12545
12546 2008-03-29  Eric Blake  <ebb9@byu.net>
12547
12548         Add hex float support.
12549         * modules/strtod (Depends-on): Add c-ctype.
12550         (Link): Mention POW_LIB.
12551         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
12552         whitespace between 'e' and exponent.
12553         * tests/test-strtod.c (main): Enable hex float tests.
12554         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
12555         now provides.
12556
12557         Document various strtod bugs, with some fixes.
12558         * doc/posix-functions/strtod.texi (strtod): Document bugs with
12559         "-0x", "inf", "nan", and hex constants.
12560         * doc/posix-functions/atof.texi (atof): Likewise.
12561         * modules/stdlib (Makefile.am): Support strtod.
12562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
12563         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
12564         detect additional strtod bugs.
12565         * lib/stdlib.in.h (rpl_strtod): Add declarations.
12566         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
12567         bool where appropriate.  Parse 'inf' and 'nan'.
12568         * tests/test-strtod.c: New file.
12569         * modules/strtod (Depends-on): Add stdbool, stdlib.
12570         (configure.ac): Turn on module indicator.
12571         * modules/strtod-tests: New module.
12572
12573 2008-03-29  Eric Blake  <ebb9@byu.net>
12574
12575         Fix ftell on mingw.
12576         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
12577         * modules/ftell-tests (Depends-on): Add binary-io.
12578         * modules/ftello-tests (Depends-on): Likewise.
12579         * tests/test-ftell.c (main): Enhance test to cover behavior after
12580         ungetc.  Enforce binary mode.
12581         * tests/test-ftello.c (main): Likewise.
12582
12583         Pass test-freadseek on cygwin.
12584         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
12585         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
12586         ungetc buffer.
12587
12588         * tests/test-fflush2.c (main): Fix typo.
12589
12590 2008-03-29  Bruno Haible  <bruno@clisp.org>
12591
12592         * tests/test-fflush2.c (main): Temporarily disable the contents of
12593         this test.
12594         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
12595         Reported by Eric Blake.
12596
12597 2008-03-28  Simon Josefsson  <simon@josefsson.org>
12598
12599         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
12600         (GC_SHA224_DIGEST_SIZE): Add.
12601
12602         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
12603         (gc_hash_digest_length): Likewise.
12604         (gc_hash_buffer): Likewise.
12605
12606 2008-03-25  Bruno Haible  <bruno@clisp.org>
12607
12608         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
12609         detail which gettext release to use.
12610         Reported by Simon Josefsson.
12611
12612 2008-03-26  Jim Meyering  <meyering@redhat.com>
12613
12614         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
12615         * modules/gnumakefile (clean-GNUmakefile): Also, use
12616         test ... && ... || : syntax rather than if-then ... fi.
12617
12618         gnumakefile: Don't double-quote-expand $(VPATH) value.
12619         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
12620
12621 2008-03-24  Eric Blake  <ebb9@byu.net>
12622
12623         Alter GNUmakefile to install into top directory.
12624         * modules/maintainer-makefile: Split, and add dependency...
12625         * modules/gnumakefile: to this new module.
12626         * build-aux/GNUmakefile: Move...
12627         * top/GNUmakefile: ...here.
12628         * build-aux/maint.mk: Move...
12629         * top/maint.mk: ...here.
12630         * MODULES.html.sh (Support for maintaining...): Document new
12631         module.
12632
12633 2008-03-23  Bruno Haible  <bruno@clisp.org>
12634
12635         * gnulib-tool: New options --vc-files, --no-vc-files.
12636         (func_usage): Document them.
12637         (vc_files): New variable.
12638         (func_import): Consider vc_files.
12639         (func_create_testdir): Set vc_files to empty.
12640         Suggested by Jim Meyering and Karl Berry.
12641
12642 2008-03-23  Bruno Haible  <bruno@clisp.org>
12643
12644         Fix regex compilation error on HP-UX 11.
12645         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
12646         * modules/regex (Files): Add m4/mbstate_t.m4.
12647         Reported by Ton Voon <ton.voon@altinity.com>.
12648
12649 2008-03-23  Bruno Haible  <bruno@clisp.org>
12650
12651         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
12652
12653 2008-03-23  Eric Blake  <ebb9@byu.net>
12654             Bruno Haible  <bruno@clisp.org>
12655
12656         Install files from top/ in the destination directory.
12657         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12658         augmentation also for the files from top/.
12659         (func_import, func_create_testdir): Rewrite file names:
12660         top/filename -> filename.
12661
12662 2008-03-23  Bruno Haible  <bruno@clisp.org>
12663
12664         Tweak "gnulib --version" output.
12665         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
12666
12667 2008-03-23  Bruno Haible  <bruno@clisp.org>
12668
12669         Tweak "gnulib --version" output.
12670         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
12671         rather than contents of ChangeLog, when possible.
12672
12673 2008-03-21  Eric Blake  <ebb9@byu.net>
12674
12675         More --version tweaks.
12676         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
12677         date of last ChangeLog entry.
12678
12679 2008-03-21  Jim Meyering  <meyering@redhat.com>
12680
12681         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
12682
12683 2008-03-20  Eric Blake  <ebb9@byu.net>
12684
12685         VPATH fix.
12686         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
12687
12688 2008-03-20  Simon Josefsson  <simon@josefsson.org>
12689
12690         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
12691         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
12692
12693 2008-03-20  Eric Blake  <ebb9@byu.net>
12694
12695         Sync GNUmakefile with coreutils.
12696         * build-aux/GNUmakefile (have-Makefile): Rename...
12697         (_have-Makefile): ...to this, for namespace consideration.
12698         (GNUmakefile.cfg): Include, if present.
12699         (_autoreconf): Define a default.
12700         (_is-dist-target): New rule for rebuilds to pick up intra-release
12701         version.
12702         (maint-cfg.mk): Rename...
12703         (cfg.mk): ...to this.
12704
12705 2008-03-18  Jim Meyering  <meyering@redhat.com>
12706
12707         New script and module: mktempd
12708         * MODULES.html.sh (maint+release support): Add mktempd.
12709         * build-aux/mktempd: New file.
12710         * modules/mktempd: New file.
12711
12712 2008-03-15  Jim Meyering  <meyering@redhat.com>
12713
12714         Undo last change.
12715         * lib/sha1.c, lib/md5.c: 63 != ~63.
12716         Reported by Andreas Schwab.
12717
12718         sha1.c, md5.c: Hoist a redundant expression.
12719         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
12720         "ctx->buflen" only once, before calling *_process_block.
12721         * lib/md5.c (md5_process_bytes): Likewise.
12722
12723 2008-03-14  Eric Blake  <ebb9@byu.net>
12724
12725         Bump copyright year in files generated by gnulib-tool.
12726         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12727         gnulib-tool, rather than hard-coding it.
12728
12729         Fix 'gnulib-tool --version' output to work with git.
12730         * gnulib-tool (func_gnulib_dir): New function, extracted from...
12731         (startup): ...here.
12732         (func_version): Use it to invoke git-version-gen, rather than
12733         relying on CVS keyword expansion.  Modernize wording.
12734         (cvsdatestamp, last_checkin_date, version): Kill unused
12735         variables.
12736
12737 2008-03-12  Jim Meyering  <meyering@redhat.com>
12738
12739         Recognize optional cast of the argument to free.
12740         * build-aux/useless-if-before-free: Update regexps.
12741
12742         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12743
12744 2008-03-11  Bruno Haible  <bruno@clisp.org>
12745
12746         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12747         by a single package.
12748         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12749         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12750         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12751         Reported by Sam Steingold <sds@gnu.org>.
12752
12753 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12754
12755         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12756         repositories.
12757
12758 2008-03-11  Bruno Haible  <bruno@clisp.org>
12759
12760         Avoid conflicts between local macro definitions.
12761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12762         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12763
12764 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
12765             Bruno Haible  <bruno@clisp.org>
12766
12767         Make va_copy work with some version of xlc on AIX 5.1.
12768         * lib/stdarg.in.h: New file.
12769         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12770         On AIX, use a <stdarg.h> file substitute.
12771         * modules/stdarg (Files): Add lib/stdarg.in.h.
12772         (Depends-on): Add include_next.
12773         (Makefile.am): Build a stdarg.h substitute if requested.
12774         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12775
12776 2008-03-10  Bruno Haible  <bruno@clisp.org>
12777
12778         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12779         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12780         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12781
12782 2008-03-10  Bruno Haible  <bruno@clisp.org>
12783
12784         * modules/stdlib (Depends-on): Add include_next, remove
12785         absolute-header.
12786
12787 2008-03-09  Bruno Haible  <bruno@clisp.org>
12788
12789         * lib/freadahead.h (freadahead): Document more precisely.
12790         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12791         the sum of both buffer sizes.
12792         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12793         * NEWS: Document the change.
12794
12795 2008-03-09  Bruno Haible  <bruno@clisp.org>
12796
12797         Extend freadptr to return also the buffer size.
12798         * lib/freadptr.h (freadptr): Add sizep argument.
12799         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12800         (freadptr): Add sizep argument. Determine buffer size like freadahead
12801         does.
12802         * tests/test-freadptr.c: Don't include freadahead.h.
12803         (main): Adapt for new calling convention of freadptr.
12804         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12805         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12806         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12807         tests/test-freadptr2.sh.
12808         (Depends): Remove freadahead.
12809         (TESTS): Add test-freadptr2.sh.
12810         (check_PROGRAMS): Add test-freadptr2.
12811
12812 2008-03-09  Bruno Haible  <bruno@clisp.org>
12813
12814         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12815         Report and solution by Simon Josefsson.
12816
12817 2008-03-06  Bruno Haible  <bruno@clisp.org>
12818
12819         Make fflush after ungetc work on BSD platforms.
12820         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12821         * tests/test-fflush2.c: New file.
12822         * tests/test-fflush2.sh: New file.
12823         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12824         tests/test-fflush2.c.
12825         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12826         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12827
12828 2008-03-06  Eric Blake  <ebb9@byu.net>
12829
12830         Likewise for ftello.
12831         * modules/ftello (Dependencies): Add extensions.
12832         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12833
12834 2008-03-06  Bruno Haible  <bruno@clisp.org>
12835
12836         * modules/fseeko (Dependencies): Add extensions.
12837         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12838         Needed on glibc systems.
12839
12840 2008-03-06  Bruno Haible  <bruno@clisp.org>
12841
12842         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12843         email address.
12844         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12845
12846 2008-03-06  Bruno Haible  <bruno@clisp.org>
12847
12848         * users.txt: Add libgnupdf.
12849
12850 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12851
12852         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12853         (Header File Substitutes, Function Substitutes,
12854         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12855         (Build robot for gnulib): Fix typo.
12856
12857 2008-03-06  Bruno Haible  <bruno@clisp.org>
12858
12859         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12860         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12861
12862 2008-03-06  Bruno Haible  <bruno@clisp.org>
12863
12864         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12865         * doc/gnulib.texi: Include it.
12866
12867 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12868
12869         * modules/func (License): Change license to unlimited; there was
12870         no LGPL parts in the module anyway.
12871
12872 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12873
12874         * modules/__func__: Renamed to modules/func.
12875         * modules/__func__-tests: Renamed to modules/func-tests.
12876         * tests/test-__func__.c: Renamed to tests/test-func.c.
12877         * m4/__func__.m4: Renamed to m4/func.m4.
12878         * doc/gnulib.texi (__func__): Section renamed to func.
12879         Suggested by Eric Blake <ebb9@byu.net>.
12880
12881 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12882
12883         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12884         about __func__.  Make example self-contained.  Suggested by Eric
12885         Blake <ebb9@byu.net>.
12886
12887         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12888         Suggested by Eric Blake <ebb9@byu.net>.
12889
12890 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12891
12892         * modules/__func__: New file.
12893         * modules/__func__-tests: New file.
12894         * tests/test-__func__.c: New file.
12895         * m4/__func__.m4: New file.
12896         * doc/gnulib.texi (__func__): Document __func__ module.
12897
12898 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12899
12900         * modules/byteswap (License): Re-license as LGPLv2+.
12901
12902 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12903
12904         * doc/Makefile: Add pdf target.
12905
12906 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12907
12908         * modules/inline (License): Use 'unlimited', since there are only
12909         *.m4 files in this module.
12910
12911 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12912             Bruno Haible  <bruno@clisp.org>
12913
12914         Add support for HP C 7.1 on OpenVMS 8.3.
12915         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12916
12917 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12918
12919         Update VMS specifics.
12920         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12921
12922 2008-03-02  Jim Meyering  <meyering@redhat.com>
12923
12924         Remove the last dependency on the "free" module.
12925         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12926         Reported by Bob Proulx.
12927
12928         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12929
12930         Remove useless "if" tests before free.  Deprecate "free" module.
12931         * doc/posix-functions/free.texi: Mention that this
12932         module is no longer useful.
12933         * modules/free (Notice): Say this module is obsolete.
12934         * modules/readutmp (Depends-on): Remove free.
12935         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12936         * lib/putenv.c (putenv): Likewise.
12937         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12938         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12939         * tests/test-c-strcasestr.c (main): Likewise.
12940         * tests/test-c-strstr.c (main): Likewise.
12941         * tests/test-mbscasestr1.c (main): Likewise.
12942         * tests/test-mbscasestr2.c (main): Likewise.
12943         * tests/test-mbsstr1.c (main): Likewise.
12944         * tests/test-mbsstr2.c (main): Likewise.
12945         * tests/test-memmem.c (main): Likewise.
12946         * tests/test-strcasestr.c (main): Likewise.
12947         * tests/test-striconv.c (main): Likewise.
12948         * tests/test-striconveh.c (main): Likewise.
12949         * tests/test-striconveha.c (main): Likewise.
12950         * tests/test-strstr.c (main): Likewise.
12951
12952         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12953
12954         bootstrap: sync from coreutils again
12955         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12956
12957 2008-03-01  Jim Meyering  <meyering@redhat.com>
12958
12959         bootstrap: sync from coreutils
12960         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12961         also when the target doesn't exist.
12962
12963 2008-03-01  Eric Blake  <ebb9@byu.net>
12964
12965         Fix bugs in last patch.
12966         * lib/memchr2.c (memchr2): Fix typo.
12967         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12968         extension.
12969         Reported by Bruce Korb.
12970
12971         New module 'memchr2'.
12972         * modules/memchr2: New file.
12973         * modules/memchr2-tests: Likewise.
12974         * lib/memchr2.h: Likewise.
12975         * lib/memchr2.c: Likewise, based on memchr.c.
12976         * tests/test-memchr2.c: New test.
12977         * MODULES.html.sh (String handling): Add memchr2.
12978
12979 2008-02-29  Bruno Haible  <bruno@clisp.org>
12980
12981         * modules/freadseek-tests: New file.
12982         * tests/test-freadseek.sh: New file.
12983         * tests/test-freadseek.c: New file.
12984
12985         New module 'freadseek'.
12986         * modules/freadseek: New file.
12987         * lib/freadseek.h: New file.
12988         * lib/freadseek.c: New file.
12989         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12990
12991 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12992
12993         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12994         wydawca.
12995
12996         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12997         program_invocation_name and program_invocation_short_name are
12998         present.
12999
13000 2008-02-28  Bruno Haible  <bruno@clisp.org>
13001
13002         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
13003         * tests/test-freadptr.sh: Also test non-seekable stdin.
13004
13005 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
13006
13007         * build-aux/bootstrap (source_base, m4_base)
13008         (doc_base, tests_base): New variables.
13009         (gnulib_tool_options): Do not hardcode base directories, use
13010         the above variables instead.
13011
13012 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
13013
13014         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
13015
13016 2008-02-28  Bruno Haible  <bruno@clisp.org>
13017
13018         * modules/freadptr-tests: New file.
13019         * tests/test-freadptr.sh: New file.
13020         * tests/test-freadptr.c: New file.
13021
13022         New module 'freadptr'.
13023         * modules/freadptr: New file.
13024         * lib/freadptr.h: New file.
13025         * lib/freadptr.c: New file.
13026         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
13027
13028 2008-02-26  Karl Berry  <karl@freefriends.org>
13029
13030         Sync from Libtool:
13031         * libltdl/argz.c (argz_add, argz_count): New functions.
13032         * libltdl/argz.in.h: Declare them.
13033         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
13034
13035 2008-02-22  Bruno Haible  <bruno@clisp.org>
13036
13037         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
13038         is a pointer type.  Needed for HP-UX 10.
13039         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
13040         * doc/posix-functions/gmtime_r.texi: Likewise.
13041         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
13042
13043 2008-02-24  Bruno Haible  <bruno@clisp.org>
13044
13045         * modules/environ-tests: New file.
13046         * tests/test-environ.c: New file.
13047
13048         New module 'environ'.
13049         * modules/environ: New file.
13050         * lib/unistd.in.h (environ): New declaration.
13051         * m4/environ.m4: New file.
13052         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
13053         after use.
13054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
13055         HAVE_DECL_ENVIRON.
13056         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
13057         HAVE_DECL_ENVIRON.
13058         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
13059         wrong claim that 'environ' is missing on some systems.
13060         * modules/execute (Depends-on): Add environ.
13061         * lib/execute.c (environ): Remove fallback declaration.
13062         * modules/pipe (Depends-on): Add environ.
13063         * lib/pipe.c (environ): Remove fallback declaration.
13064         * modules/setenv (Depends-on): Add environ.
13065         * lib/setenv.c (environ): Remove fallback declaration.
13066         * modules/unsetenv (Depends-on): Add environ.
13067         * lib/unsetenv.c (environ): Remove fallback declaration.
13068         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
13069         m4/environ.m4.
13070         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
13071         (gl_PREREQ_UNSETENV): Likewise.
13072
13073 2008-02-24  Bruno Haible  <bruno@clisp.org>
13074
13075         * doc/posix-functions/environ.texi: Document the MacOS X problem.
13076
13077 2008-02-20  Bob Proulx  <bob@proulx.com>
13078
13079         Enable use of older two part flavor 'git describe'.
13080         * build-aux/git-version-gen: If using the older two part flavor of
13081         git version then recreate the third part now present in the
13082         newer three part flavor of git describe.
13083
13084 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
13085
13086         * lib/fts.c (fts_build): Typo correction to comment.
13087
13088 2008-02-17  Bruno Haible  <bruno@clisp.org>
13089
13090         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
13091         generating no-op conflicts.
13092
13093 2008-02-17  Bruno Haible  <bruno@clisp.org>
13094
13095         Speed up by 10%.
13096         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
13097         result_entries, rather than an index-based loop.
13098
13099 2008-02-17  Bruno Haible  <bruno@clisp.org>
13100
13101         Speed up by 25%.
13102         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
13103         'hashcode_cached'.
13104         (entry_create): New function.
13105         (entry_hashcode): Use the cached hashcode if possible.
13106         (read_changelog_file, try_split_merged_entry): Use entry_create.
13107
13108 2008-02-17  Bruno Haible  <bruno@clisp.org>
13109
13110         Speed up from O(n^2) to O(n) for long ChangeLog files.
13111         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
13112         (read_changelog_file): Change implementation of entries_reversed list
13113         to rbtreehash.
13114         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
13115
13116 2008-02-17  Bruno Haible  <bruno@clisp.org>
13117
13118         New option --split-merged-entry.
13119         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
13120         (find_paragraph_end, try_split_merged_entry): New functions.
13121         (long_options): Add option --split-merged-entry.
13122         (usage): Document option --split-merged-entry.
13123         (main): Implement option --split-merged-entry.
13124         Reported by Eric Blake.
13125
13126 2008-02-17  Bruno Haible  <bruno@clisp.org>
13127
13128         * lib/git-merge-changelog.c: Include c-strstr.h.
13129         (main): Support the "git pull --rebase" situation.
13130         * modules/git-merge-changelog (Depends-on): Add c-strstr.
13131         Reported by Eric Blake.
13132
13133 2008-02-16  Eric Blake  <ebb9@byu.net>
13134
13135         Avoid doubling \ in common case of "c-maybe" quoting style.
13136         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
13137         eliding outer quotes.
13138         * lib/quotearg.h: Document this.
13139         * tests/test-quotearg.c (result_strings, inputs, results_g)
13140         (flag_results, locale_results): Test it by adding a new string to
13141         each test group.
13142         (compare_strings): Test new string.
13143
13144 2008-02-13  Eric Blake  <ebb9@byu.net>
13145
13146         Avoid trigraph quoting in default output.
13147         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
13148         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
13149         unless explicitly requested.
13150         * tests/test-quotearg.c (flag_results, main): Add additional tests.
13151
13152 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
13153
13154         Don't rely on signed integer overflowing to negative value.
13155         * lib/getugroups.c (getugroups): Include <limits.h>.
13156         Instead, compare against INT_MAX, and increment only if the test passes.
13157
13158 2008-02-13  Jim Meyering  <meyering@redhat.com>
13159         and Eric Blake  <ebb9@byu.net>
13160
13161         Avoid shadowing warning and compile errors on Linux.
13162         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
13163         forwarding macros on Linux.
13164         (dcgettext): Define a stub, for Linux.
13165         (results_g, main): Avoid warnings.
13166
13167 2008-02-12  Eric Blake  <ebb9@byu.net>
13168
13169         Silence warning in last patch.
13170         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
13171
13172         Quotearg part 4: add tests, fix c-maybe colon quoting.
13173         * lib/quotearg.h: Improve documentation.
13174         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
13175         escapes when adding outer quotes.  When quoting trigraphs, use
13176         valid C notation.  When quoting NUL, omit extra characters if next
13177         character is not digit.  Alter prototype.
13178         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
13179         callers.
13180         * modules/quotearg-tests: New module.
13181         * tests/test-quotearg.c: New test.
13182
13183 2008-02-07  Eric Blake  <ebb9@byu.net>
13184
13185         Quotearg part 3: add flag to control outer quote elision.
13186         * lib/quotearg.h (c_maybe_quoting_style): New style.
13187         (enum quoting_flags): Better documentation of flags.
13188         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
13189         c-maybe style.
13190         (quotearg_buffer_restyled): Handle new flag to elide outer
13191         quotes.
13192
13193         Quotearg part 2: add flag that can control NUL elision.
13194         * lib/quotearg.h (set_quoting_flags): New prototype.
13195         * lib/quotearg.c (struct quoting_options): Add flag field.
13196         (set_quoting_flags): New function.
13197         (quotearg_buffer_restyled): Add flags parameter.
13198         (quotearg_alloc_mem): Set the flag if length cannot be returned.
13199         (quotearg_n_options): Set the flag, since length cannot be
13200         returned.
13201         (quoting_options_from_style): Default flags correctly.
13202
13203         Quotearg part 1: more wrappers, restore quotearg_char state.
13204         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
13205         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
13206         (quotearg_colon_mem): New wrappers.
13207         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
13208         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
13209         functions.
13210         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
13211         (quotearg_colon_mem): New functions.
13212
13213 2008-02-11  Bruno Haible  <bruno@clisp.org>
13214
13215         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
13216         library in the current directory: it does not work with parallel make.
13217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13218
13219 2008-02-11  Bruno Haible  <bruno@clisp.org>
13220
13221         * .gitattributes: New file.
13222
13223 2008-02-11  Jim Meyering  <meyering@redhat.com>
13224
13225         useless-if-before-free: Fix reversed exit values.
13226         * build-aux/useless-if-before-free: Use correct values
13227         for EXIT_MATCH and EXIT_NO_MATCH.
13228
13229         * build-aux/useless-if-before-free: Close stdout carefully.
13230
13231 2008-02-10  Bruno Haible  <bruno@clisp.org>
13232
13233         New module 'git-merge-changelog'.
13234         * modules/git-merge-changelog: New file.
13235         * lib/git-merge-changelog.c: New file.
13236
13237 2008-02-10  Jim Meyering  <meyering@redhat.com>
13238
13239         useless-if-before-free: New option: --list (-l).
13240
13241         useless-if-before-free: Don't exit immediately upon open failure.
13242         * build-aux/useless-if-before-free: Exit 2 for errors.
13243         Upon failure to open a file, don't exit immediately.
13244         Rather, just warn and continue with any remaining files.
13245
13246 2008-02-10  Bruno Haible  <bruno@clisp.org>
13247
13248         New abstract list operation 'node_set_value'.
13249         * lib/gl_list.h (gl_list_node_set_value): New function.
13250         (struct gl_list_implementation): New field node_set_value.
13251         * lib/gl_list.c (gl_list_node_set_value): New function.
13252         * lib/gl_array_list.c (gl_array_node_set_value): New function.
13253         (gl_array_list_implementation): Update.
13254         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
13255         (gl_carray_list_implementation): Update.
13256         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
13257         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
13258         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
13259         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
13260         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
13261         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
13262         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
13263         Update.
13264         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
13265         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
13266         (gl_sublist_list_implementation): Update.
13267
13268 2008-02-10  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
13271         Needed when ELEMENT is #defined to 'some_type *'.
13272
13273 2008-02-10  Jim Meyering  <meyering@redhat.com>
13274
13275         New script and module: useless-if-before-free
13276         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
13277         * build-aux/useless-if-before-free: New file.
13278         * modules/useless-if-before-free: New file.
13279
13280         * build-aux/gitlog-to-changelog: Use committer date, not author date.
13281
13282         xstrtol_error: Fix typo.
13283         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
13284         s/exit_failure/exit_status/.
13285
13286 2008-02-09  Jim Meyering  <meyering@redhat.com>
13287
13288         New script and module: gitlog-to-changelog
13289         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
13290         * modules/gitlog-to-changelog: New file.
13291         * build-aux/gitlog-to-changelog: New file.
13292
13293 2008-02-08  Jim Meyering  <meyering@redhat.com>
13294
13295         Avoid two "parameter unused" warnings.
13296         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
13297         Mark "st" as used.
13298
13299         Use "git COMMAND", not "git-COMMAND".
13300         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
13301         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
13302         * build-aux/git-version-gen: Use "git status", not "git-status".
13303
13304 2008-02-07  Bruno Haible  <bruno@clisp.org>
13305
13306         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
13307         Avoids a crash on Windows Vista.
13308         Reported by Adam Strzelecki <ono@java.pl> via
13309         Simon Josefsson <simon@josefsson.org>.
13310
13311 2008-02-06  Bruno Haible  <bruno@clisp.org>
13312
13313         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
13314         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
13315         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
13316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
13317         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13319         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
13320         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
13321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13328         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
13329         left-adjust flag.
13330         * tests/test-snprintf-posix.h (test_function): Likewise.
13331         * tests/test-sprintf-posix.h (test_function): Likewise.
13332         * tests/test-vasprintf-posix.c (test_function): Likewise.
13333         * doc/posix-functions/fprintf.texi: Update.
13334         * doc/posix-functions/printf.texi: Update.
13335         * doc/posix-functions/snprintf.texi: Update.
13336         * doc/posix-functions/sprintf.texi: Update.
13337         * doc/posix-functions/vfprintf.texi: Update.
13338         * doc/posix-functions/vprintf.texi: Update.
13339         * doc/posix-functions/vsnprintf.texi: Update.
13340         * doc/posix-functions/vsprintf.texi: Update.
13341         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13342
13343 2008-02-06  Bruno Haible  <bruno@clisp.org>
13344
13345         Fix bug introduced on 2008-01-26.
13346         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
13347
13348 2008-02-06  Bruno Haible  <bruno@clisp.org>
13349
13350         Fix bug introduced on 2007-06-10.
13351         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
13352         !NEED_PRINTF_FLAG_ZERO.
13353
13354 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
13355
13356         getloadavg: use libperfstat on AIX5
13357         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
13358
13359 2008-02-03  Bruno Haible  <bruno@clisp.org>
13360
13361         * lib/diffseq.h: Add comments about required #includes.
13362         Reported by Michael Biggs <gnulib@doubleplum.net>.
13363
13364 2008-02-01  Bruno Haible  <bruno@clisp.org>
13365
13366         * users.txt: Add gnuit.
13367
13368 2008-01-31  Bruno Haible  <bruno@clisp.org>
13369
13370         * lib/md4.c (set_uint32): Mark as inline.
13371         * lib/md5.c (set_uint32): Likewise.
13372         * lib/sha1.c (set_uint32): Likewise.
13373         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
13374         * m4/md5.m4 (gl_MD5): Likewise.
13375         * m4/sha1.m4 (gl_SHA1): Likewise.
13376
13377 2008-01-31  Jim Meyering  <meyering@redhat.com>
13378
13379         Use "sizeof VAR", rather than a literal "4".
13380         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
13381         * lib/md4.c (md4_read_ctx): Likewise.
13382         * lib/sha1.c (sha1_read_ctx): Likewise.
13383
13384 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13385
13386         * tests/test-sha1.c: New file, based on test-md5.c.
13387
13388         * modules/crypto/sha1-tests: New file.
13389
13390 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13391
13392         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
13393
13394 2008-01-31  Jim Meyering  <meyering@redhat.com>
13395
13396         Prefer "sizeof v" over the equivalent "4".
13397         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
13398         * lib/md5.c (set_uint32): Likewise.
13399         * lib/sha1.c (set_uint32): Likewise.
13400
13401 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13402
13403         * lib/sha1.c (set_uint32): Mark function as static.
13404
13405 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13406
13407         md2: clarify comments to say that alignment is not required.
13408         * lib/md2.h: Remove warning about alignment in comment.
13409         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
13410         never been required.
13411
13412 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13413
13414         md4: adapt alignment constraint fix from sha1.
13415         * lib/md4.c (set_uint32): New function, from sha1.c
13416         (md4_read_ctx): Use it.
13417         (md4_finish_ctx): Doc fix.
13418         * lib/md4.h: Doc fix.
13419
13420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13421
13422         md5: adapt alignment constraint fix from sha1.
13423         * lib/md5.c (set_uint32): New function, from sha1.c
13424         (md5_read_ctx): Use it.
13425         (md5_finish_ctx): Doc fix.
13426         * lib/md5.h: Doc fix.
13427
13428 2008-01-30  Peter Palfrader  <weasel@debian.org>
13429
13430         sha1: remove the result buffer alignment constraint
13431         * lib/sha1.c (set_uint32): New function.
13432         (sha1_read_ctx): Rewrite to remove the result buffer alignment
13433         constraint.
13434         (sha1_finish_ctx): Remove comment warning about alignment constraint.
13435         * lib/sha1.h: Likewise.
13436
13437 2008-01-30  Andreas Schwab  <schwab@suse.de>
13438             Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
13441         correct definition of LDBL_MIN_EXP.
13442
13443 2008-01-30  Karl Berry  <karl@gnu.org>
13444
13445         * config/srclist-update: try to preserve x bit on updates.
13446         * config/srclistvars.sh: update for karl.
13447
13448 2008-01-29  Jim Meyering  <meyering@redhat.com>
13449
13450         vasnprintf.c: Avoid warning about unused label
13451         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
13452         "overflow" label definition and associated code with the
13453         same cpp condition that guards the sole use of that label.
13454
13455 2008-01-26  Bruno Haible  <bruno@clisp.org>
13456
13457         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
13458         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
13459         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
13460         * lib/isnanl-nolibm.h (isnanl): Likewise.
13461         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13462
13463 2008-01-26  Bruno Haible  <bruno@clisp.org>
13464
13465         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
13466         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
13467
13468 2008-01-26  Bruno Haible  <bruno@clisp.org>
13469
13470         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
13471         GCC >= 4.0 built-in.
13472         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
13473
13474 2008-01-26  Bruno Haible  <bruno@clisp.org>
13475
13476         Rename isnan, applicable to 'double' only, to isnand.
13477         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
13478         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
13479         (configure.ac): Update.
13480         (Include): Replace "isnan.h" with "isnand.h".
13481         * m4/isnand.m4: Renamed from m4/isnan.m4.
13482         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
13483         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
13484         instead of isnan.c.
13485         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
13486         instead of HAVE_ISNAN_IN_LIBC.
13487         (isnand): Renamed from isnan.
13488         * lib/isnand.c: New file.
13489         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
13490         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
13491         (Makefile.am): Update.
13492         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
13493         Include isnand.h instead of isnan.h.
13494         (main): Test isnand instead of isnan.
13495         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
13496         isnan-nolibm.
13497         * modules/frexp (Depends-on): Likewise.
13498         * modules/frexp-tests (Depends-on): Likewise.
13499         * modules/frexp-nolibm (Depends-on): Likewise.
13500         * modules/frexp-nolibm-tests (Depends-on): Likewise.
13501         * modules/isfinite (Depends-on): Likewise.
13502         * modules/round-tests (Depends-on): Likewise.
13503         * modules/signbit (Depends-on): Likewise.
13504         * modules/signbit-tests (Depends-on): Likewise.
13505         * modules/snprintf-posix (Depends-on): Likewise.
13506         * modules/sprintf-posix (Depends-on): Likewise.
13507         * modules/trunc-tests (Depends-on): Likewise.
13508         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13509         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13510         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13511         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13512         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13513         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13514         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13515         * modules/vasnprintf-posix (Depends-on): Likewise.
13516         * modules/vasprintf-posix (Depends-on): Likewise.
13517         * modules/vfprintf-posix (Depends-on): Likewise.
13518         * modules/vsnprintf-posix (Depends-on): Likewise.
13519         * modules/vsprintf-posix (Depends-on): Likewise.
13520         * lib/frexp.c: Include isnand.h instead of isnan.h.
13521         (ISNAN): Set to isnand instead of isnan.
13522         * lib/isfinite.c: Include isnand.h instead of isnan.h.
13523         (gl_isfinited): Use isnand instead of isnan.
13524         * lib/signbitd.c: Include isnand.h instead of isnan.h.
13525         (gl_signbitd): Use isnand instead of isnan.
13526         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
13527         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
13528         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
13529         (main): Use isnand instead of isnan.
13530         * tests/test-round1.c: Include isnand.h.
13531         (main): Use isnand instead of isnan.
13532         * tests/test-round2.c: Include isnand.h instead of isnan.h.
13533         (ISNAN): Set to isnand instead of isnan.
13534         * tests/test-trunc1.c: Include isnand.h.
13535         (main): Use isnand instead of isnan.
13536         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
13537         (equal): Use isnand instead of isnan.
13538         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
13539         isnand-nolibm.
13540         * NEWS: Mention the change.
13541
13542 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13543             Bruno Haible  <bruno@clisp.org>
13544
13545         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
13546         the GCC builtins for signbits are present and set
13547         REPLACE_SIGNBIT_USING_GCC if so.
13548         * lib/math.in.h (signbit): Define using GCC builtins if
13549         REPLACE_SIGNBIT_USING_GCC is set.
13550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
13551         REPLACE_SIGNBIT_USING_GCC.
13552         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
13553
13554 2008-01-25  Jim Meyering  <meyering@redhat.com>
13555
13556         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
13557         * lib/poll.c: Include <config.h>, not "config.h".
13558         * tests/test-getaddrinfo.c: Likewise.
13559
13560 2008-01-25  Simon Josefsson  <simon@josefsson.org>
13561
13562         * modules/sockets-tests: New file.
13563
13564 2008-01-24  Simon Josefsson  <simon@josefsson.org>
13565
13566         * modules/sockets: New module, can be used to call WSA_Startup and
13567         WSA_Cleanup when needed.
13568
13569         * lib/sockets.h, lib/sockets.c: New files.
13570
13571         * m4/sockets.m4: New file.
13572
13573         * tests/test-sockets.c: New file.
13574
13575 2008-01-19  Bruno Haible  <bruno@clisp.org>
13576
13577         * doc/posix-headers: Renamed from doc/headers.
13578         * doc/posix-functions: Renamed from doc/functions.
13579         * doc/gnulib.texi: Update.
13580
13581 2008-01-19  Bruno Haible  <bruno@clisp.org>
13582
13583         * doc/glibc-functions/strcasestr.texi: Include contents of
13584         doc/functions/strcasestr.texi, fixing the list of platforms.
13585         * doc/functions/strcasestr.texi: Remove file.
13586
13587 2008-01-19  Bruno Haible  <bruno@clisp.org>
13588
13589         * doc/glibc-functions/memmem.texi: Include contents of
13590         doc/functions/memmem.texi.
13591         * doc/functions/memmem.texi: Remove file.
13592
13593 2008-01-18  Bruno Haible  <bruno@clisp.org>
13594
13595         * doc/glibc-functions/*.texi: New files.
13596         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
13597         to use the new files.
13598
13599 2008-01-17  Bruno Haible  <bruno@clisp.org>
13600
13601         * tests/test-gethostname.c (main): Fix printf statement.
13602
13603 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13604
13605         * modules/gethostname-tests: New file.
13606
13607         * tests/test-gethostname.c: New file.
13608
13609 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13610
13611         * lib/gethostname.c: Include string.h unconditionally, strncpy is
13612         used by the UNAME case.  Reported by Bruno Haible
13613         <bruno@clisp.org>.
13614
13615 2008-01-17  Eric Blake  <ebb9@byu.net>
13616
13617         Convert c-strcasestr to be more efficient.
13618         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
13619         (Depends-on): Add c-strcase, remove malloca, strnlen.
13620         * tests/test-c-strcasestr.c (main): Enhance test.
13621         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
13622
13623 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13624
13625         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
13626         Use it in creating po/Makevars.
13627
13628 2008-01-15  Simon Josefsson  <simon@josefsson.org>
13629
13630         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
13631         Applications that requires it should initialize libgcrypt
13632         manually.
13633
13634 2008-01-16  Simon Josefsson  <simon@josefsson.org>
13635
13636         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
13637
13638 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13639
13640         Fix problem with getdate on mingw32 reported by Simon Josefsson
13641         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
13642         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
13643         tzname", when deciding whether to declare tzname.
13644         * lib/strftime.c (tzname): Likewise.
13645
13646 2008-01-15  Bruno Haible  <bruno@clisp.org>
13647
13648         Work around a MacOS X 10.5 bug in frexpl().
13649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13650         * doc/functions/frexpl.texi: Document the bug.
13651         Reported by Elias Pipping <pipping@gentoo.org>.
13652
13653 2008-01-14  Eric Blake  <ebb9@byu.net>
13654
13655         Touch up previous patch.
13656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
13657         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
13658
13659         Convert strcasestr module to use Two-Way algorithm.
13660         * modules/strcasestr-simple: New module, based on the old
13661         strcasestr, but with Two-Way rather than KMP.
13662         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
13663         * lib/string.in.h (rpl_strcasestr): Declare.
13664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
13665         performance.
13666         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
13667         * modules/string (Makefile.am): Support strcasestr.
13668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13669         * modules/strcasestr-tests (Depends-on): Check for alarm.
13670         * tests/test-strcasestr.c: Augment test.
13671         * lib/str-two-way.h: Clean up stray macro.
13672         * NEWS: Document new module.
13673         * MODULES.html.sh (string handling): Likewise.
13674         * doc/functions/strcasestr.texi: New file.
13675         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
13676         here, since it is not a POSIX function.
13677
13678 2008-01-14  Colin Watson  <cjwatson@debian.org>
13679             Bruno Haible  <bruno@clisp.org>
13680
13681         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
13682         works fine; if not, set REPLACE_STRSIGNAL.
13683         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
13684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13685         REPLACE_STRSIGNAL.
13686         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
13687         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
13688         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
13689
13690 2008-01-14  Bruno Haible  <bruno@clisp.org>
13691
13692         * modules/strsignal (Include): Change to <string.h>.
13693
13694 2008-01-14  Colin Watson  <cjwatson@debian.org>
13695
13696         * modules/argp (Notice): Add a notice recommending to change
13697         XGETTEXT_OPTIONS.
13698         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
13699
13700 2008-01-13  Colin Watson  <cjwatson@debian.org>
13701
13702         * modules/strsignal-tests: New file.
13703         * tests/test-strsignal.c: New file.
13704
13705         * lib/strsignal.c: New file, from glibc with modifications.
13706         * lib/siglist.h: New file, from glibc with modifications.
13707         * lib/string.in.h (strsignal): New declaration.
13708         * m4/strsignal.m4: New file.
13709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13710         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
13711         * modules/strsignal: New file.
13712         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
13713         HAVE_DECL_STRSIGNAL.
13714
13715 2008-01-13  Bruno Haible  <bruno@clisp.org>
13716
13717         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
13718         locale encoding is not ASCII. Needed for OpenBSD 4.0.
13719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13721
13722 2008-01-13  Bruno Haible  <bruno@clisp.org>
13723
13724         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13725         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13726         * lib/argp.h (__attribute__): Likewise.
13727         * lib/c-stack.c (__attribute__): Likewise.
13728         * lib/error.h (__attribute__): Likewise.
13729         * lib/fts.c (__attribute__): Likewise.
13730         * lib/openat.h (__attribute__): Likewise.
13731         * lib/stdio.in.h (__attribute__): Likewise.
13732         * lib/string.in.h (__attribute__): Likewise.
13733         * lib/utimens.c (__attribute__): Likewise.
13734         * lib/vasnprintf.h (__attribute__): Likewise.
13735         * lib/xalloc.h (__attribute__): Likewise.
13736         * lib/xprintf.h (__attribute__): Likewise.
13737         * lib/xstrtol.h (__attribute__): Likewise.
13738         * lib/xvasprintf.h (__attribute__): Likewise.
13739
13740 2008-01-12  Bruno Haible  <bruno@clisp.org>
13741
13742         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13743         * doc/glibc-headers/a.out.texi: New file.
13744         * doc/glibc-headers/aliases.texi: New file.
13745         * doc/glibc-headers/alloca.texi: New file.
13746         * doc/glibc-headers/ar.texi: New file.
13747         * doc/glibc-headers/argp.texi: New file.
13748         * doc/glibc-headers/argz.texi: New file.
13749         * doc/glibc-headers/byteswap.texi: New file.
13750         * doc/glibc-headers/crypt.texi: New file.
13751         * doc/glibc-headers/endian.texi: New file.
13752         * doc/glibc-headers/envz.texi: New file.
13753         * doc/glibc-headers/err.texi: New file.
13754         * doc/glibc-headers/error.texi: New file.
13755         * doc/glibc-headers/execinfo.texi: New file.
13756         * doc/glibc-headers/fpu_control.texi: New file.
13757         * doc/glibc-headers/fstab.texi: New file.
13758         * doc/glibc-headers/fts.texi: New file.
13759         * doc/glibc-headers/getopt.texi: New file.
13760         * doc/glibc-headers/ieee754.texi: New file.
13761         * doc/glibc-headers/ifaddrs.texi: New file.
13762         * doc/glibc-headers/libintl.texi: New file.
13763         * doc/glibc-headers/mcheck.texi: New file.
13764         * doc/glibc-headers/mntent.texi: New file.
13765         * doc/glibc-headers/obstack.texi: New file.
13766         * doc/glibc-headers/paths.texi: New file.
13767         * doc/glibc-headers/printf.texi: New file.
13768         * doc/glibc-headers/pty.texi: New file.
13769         * doc/glibc-headers/resolv.texi: New file.
13770         * doc/glibc-headers/shadow.texi: New file.
13771         * doc/glibc-headers/sysexits.texi: New file.
13772         * doc/glibc-headers/ttyent.texi: New file.
13773
13774 2008-01-12  Jim Meyering  <meyering@redhat.com>
13775
13776         announce-gen: emit Gnulib's git-based version string.
13777         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13778         New option --gnulib-version=V, where V is expected to be
13779         the output of running git describe in the gnulib directory.
13780         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13781         not useful, and plan to stop publishing an xdelta file with each
13782         coreutils release.
13783
13784         * build-aux/announce-gen: Also check for lzma-compressed files.
13785
13786 2008-01-11  Bruno Haible  <bruno@clisp.org>
13787
13788         * tests/test-memmem.c (main): Increase maximum allowed time.
13789         * tests/test-strstr.c (main): Likewise.
13790
13791 2008-01-11  Bruno Haible  <bruno@clisp.org>
13792
13793         * doc/functions/memmem.texi: Add more precisions about platforms.
13794         * doc/functions/strstr.texi: Likewise.
13795
13796 2008-01-10  Eric Blake  <ebb9@byu.net>
13797
13798         * m4/strstr.m4: Delete cruft from copy-n-paste.
13799         Reported by Bruno Haible.
13800
13801 2008-01-10  Bruno Haible  <bruno@clisp.org>
13802
13803         Make c-strstr rely on strstr.
13804         * lib/c-strstr.c: Don't include str-kmp.h.
13805         (c_strstr): Define in terms of strstr.
13806         * modules/c-strstr (Files): Remove lib/str-kmp.h.
13807         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13808
13809 2008-01-10  Bruno Haible  <bruno@clisp.org>
13810
13811         * doc/gnulib.texi (String Functions in C Locale): New section.
13812         * doc/c-ctype.texi: New file.
13813         * doc/c-strcase.texi: New file.
13814         * doc/c-strcaseeq.texi: New file.
13815         * doc/c-strcasestr.texi: New file.
13816         * doc/c-strstr.texi: New file.
13817         * doc/c-strtod.texi: New file.
13818         * doc/c-strtold.texi: New file.
13819
13820 2008-01-10  Eric Blake  <ebb9@byu.net>
13821
13822         * lib/relocatable.h: Fix a comment.
13823
13824 2008-01-10  Eric Blake  <ebb9@byu.net>
13825
13826         Share two-way algorithm.
13827         * lib/str-two-way.h: New file, merged from...
13828         * lib/memmem.c: ...here...
13829         * lib/strstr.c: ...and here.
13830         * modules/memmem (Files): Use it.
13831         * modules/strstr (Files): Likewise.
13832
13833         Avoid quadratic strstr implementations.
13834         * lib/strstr.c: New file.
13835         * m4/strstr.m4: Likewise.
13836         * modules/strstr: Likewise.
13837         * modules/strstr-tests: Likewise.
13838         * tests/test-strstr.c: Likewise.
13839         * lib/string.in.h (rpl_strstr): Declare.
13840         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13842         * modules/string (Makefile.am): Likewise.
13843         * MODULES.html.sh (string handling): Mention new module.
13844         * doc/functions/strstr.texi (strstr): Document the bug.
13845
13846 2008-01-10  Bruno Haible  <bruno@clisp.org>
13847
13848         * lib/relocatable.h (relocate): State whether result is freshly
13849         allocated or not.
13850         * lib/relocatable.c (relocate): Return a freshly allocated string
13851         instead of a pointer to a privately held string.
13852         Reported by Sylvain Beucler <beuc@gnu.org>.
13853
13854 2008-01-10  Colin Watson  <cjwatson@debian.org>
13855
13856         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13857         s/S_ISNLK/S_ISLNK/.
13858
13859 2008-01-09  Bruno Haible  <bruno@clisp.org>
13860
13861         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13862         and other files.
13863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13864         if it's only a guess.
13865         * modules/memmem: Simplify by depending on memmem-simple.
13866
13867 2008-01-09  Bruno Haible  <bruno@clisp.org>
13868
13869         Work around OpenBSD 4.0 tdelete() bug.
13870         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13871         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13872         macros and don't redefine the enum values.
13873         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13874         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13875         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13876
13877 2008-01-09  Bruno Haible  <bruno@clisp.org>
13878
13879         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13880         (main): Don't perform the tests if setlocale did not install a UTF-8
13881         locale. Needed on OpenBSD 4.0.
13882         * modules/wcwidth-tests (Depends-on): Add localcharset.
13883
13884 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13887         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13888         * NEWS: announce this.
13889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13890
13891 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13892         and Eric Blake  <ebb9@byu.net>
13893
13894         Add memmem-simple module.
13895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13896         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13897         * modules/memmem-simple: New file.
13898         * modules/memmem (Description): Tweak.
13899         * MODULES.html.sh (string handling): Mention new module.
13900         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13901         addressed by memmem-simple.
13902         * NEWS: Document the difference.
13903
13904 2008-01-09  Eric Blake  <ebb9@byu.net>
13905
13906         Give gcc some memmem optimization hints.
13907         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13908         (strcasestr): Declare as pure.
13909         * modules/memmem (Maintainer): Claim my implementation.
13910
13911 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13912
13913         Support AIX 6.1 and higher.
13914         * build-aux/config.libpath: Likewise.
13915         * build-aux/config.rpath: Likewise.
13916
13917 2008-01-08  Jim Meyering  <meyering@redhat.com>
13918             Bruno Haible  <bruno@clisp.org>
13919
13920         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13921         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13922         Reported by Peter Fales in
13923         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13924
13925 2008-01-08  Bruno Haible  <bruno@clisp.org>
13926
13927         * modules/unictype/category-of (Depends-on): Add
13928         unictype/category-none.
13929         * modules/unictype/category-and-tests (Depends-on): Add
13930         unictype/category-{L,N,Lu,Nd}.
13931         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13932         * modules/unictype/category-or-tests (Depends-on): Add
13933         unictype/category-{L,N}.
13934         * modules/unictype/category-name-tests (Depends-on): Add
13935         unictype/category-{Z,Nl}.
13936         Reported by Simon Josefsson.
13937
13938 2008-01-08  Bruno Haible  <bruno@clisp.org>
13939
13940         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13941         convention better.
13942         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13943         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13944         Reported by Peter Miller <millerp@canb.auug.org.au>.
13945
13946 2008-01-08  Eric Blake  <ebb9@byu.net>
13947
13948         Rewrite memmem to guarantee linear complexity without malloc.
13949         * lib/memmem.c (memmem): Use Two-Way rather than
13950         Knuth-Morris-Pratt, to allow O(1) space usage.
13951         (critical_factorization, two_way_short_needle)
13952         (two_way_long_needle): New functions.
13953         (knuth_morris_pratt): Delete.
13954         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13955         Add stdint.
13956         * tests/test-memmem.c (main): Add tests for periodic needle and
13957         sublinear performance.
13958         * doc/functions/memmem.texi (memmem): Document other deficiencies
13959         in cygwin and older glibc.
13960
13961 2008-01-08  Bruno Haible  <bruno@clisp.org>
13962
13963         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13964         augmentation.
13965
13966 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13967
13968         Add a configure time option: --disable-acl.
13969         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13970         AC_ARG_ENABLE(acl).
13971
13972 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13973
13974         * tests/test-localename.c: Don't include obsolete "setenv.h".
13975
13976         * modules/localename-tests (Depends-on): Need unsetenv.
13977
13978 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13979
13980         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13981
13982 2008-01-06  Colin Watson  <cjwatson@debian.org>
13983
13984         * users.txt: Add man-db.
13985
13986 2008-01-07  Bruno Haible  <bruno@clisp.org>
13987
13988         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13989         previous section name.
13990
13991 2008-01-07  Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/progname.c (set_program_name): Don't strip off a leading
13994         "lt-" prefix outside a .libs directory.
13995         Suggested by Paul Eggert.
13996
13997 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13998             Bruno Haible  <bruno@clisp.org>
13999
14000         Improve memory cleanup in 'relocatable' module.
14001         * lib/relocatable.h (compute_curr_prefix): Change return type to
14002         'char *'.
14003         * lib/relocatable.c (compute_curr_prefix): Change return type to
14004         'char *'. Free curr_installdir after use.
14005         (relocate): Free curr_prefix_better after use.
14006         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
14007
14008 2008-01-01  Bruno Haible  <bruno@clisp.org>
14009
14010         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
14011         failure on older glibc systems.
14012         Reported by Peter Fales <psfales@alcatel-lucent.com>.
14013
14014 2008-01-05  Eric Blake  <ebb9@byu.net>
14015
14016         Avoid quadratic system memmem.
14017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
14018         Reported by Ralf Wildenhues.
14019
14020         Fix memmem test for mingw.
14021         * modules/memmem-tests (configure.ac): Check for alarm.
14022         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
14023         it.
14024         * doc/functions/memmem.texi: New file.
14025         * doc/gnulib.texi (Function Substitutes): Add memmem.
14026         Reported by Bruno Haible.
14027
14028 2008-01-04  Bruno Haible  <bruno@clisp.org>
14029
14030         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
14031         Require gl_HEADER_STRINGS_H_DEFAULTS, not
14032         gl_HEADER_STRING_H_DEFAULTS.
14033
14034 2008-01-04  Eric Blake  <ebb9@byu.net>
14035
14036         Shorten duration of memmem test.
14037         * tests/test-memmem.c (main): Use alarm to declare failure if test
14038         is taking too long.
14039         Reported by Ralf Wildenhues.
14040
14041 2007-12-21  Simon Josefsson  <simon@josefsson.org>
14042
14043         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
14044         string, needed by strerror.
14045
14046 2008-01-03  Colin Watson  <cjwatson@debian.org>
14047             Bruno Haible  <bruno@clisp.org>
14048
14049         * doc/gnulib-tool.texi (Localization): New section.
14050
14051 2008-01-02  Bruno Haible  <bruno@clisp.org>
14052
14053         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
14054         variables to 'unsigned char *' type.
14055         Reported by Paul Eggert.
14056
14057 2008-01-02  Jim Meyering  <jim@meyering.net>
14058
14059         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
14060
14061 2007-12-31  Jim Meyering  <jim@meyering.net>
14062
14063         Avoid use of private FTS type name.
14064         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
14065
14066 2007-12-30  Karl Berry  <karl@gnu.org>
14067
14068         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
14069         work around defect in Texinfo and/or the standalone Info browser.
14070
14071 2007-12-30  Bruno Haible  <bruno@clisp.org>
14072
14073         Unify 5 copies of the KMP code.
14074         * lib/str-kmp.h: New file.
14075         * lib/c-strcasestr.c: Include str-kmp.h.
14076         (knuth_morris_pratt): Remove function.
14077         (c_strcasestr): Update.
14078         * lib/c-strstr.c: Include str-kmp.h.
14079         (knuth_morris_pratt): Remove function.
14080         (c_strcasestr): Update.
14081         * lib/mbscasestr.c: Include str-kmp.h.
14082         (knuth_morris_pratt_unibyte): Remove function.
14083         * lib/mbsstr.c: Include str-kmp.h.
14084         (knuth_morris_pratt_unibyte): Remove function.
14085         * lib/strcasestr.c: Include str-kmp.h.
14086         (knuth_morris_pratt): Remove function.
14087         (strcasestr): Update.
14088         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
14089         * modules/c-strstr (Files): Likewise.
14090         * modules/mbscasestr (Files): Likewise.
14091         * modules/mbsstr (Files): Likewise.
14092         * modules/strcasestr (Files): Likewise.
14093         Suggested by Paul Eggert.
14094
14095 2007-12-30  Bruno Haible  <bruno@clisp.org>
14096
14097         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
14098         defined.
14099
14100 2007-12-30  Bruno Haible  <bruno@clisp.org>
14101
14102         * lib/xmalloca.h: Include xalloc.h.
14103         (xnmalloca): New macro.
14104
14105 2007-12-30  Bruno Haible  <bruno@clisp.org>
14106
14107         * lib/malloca.h (nmalloca): New macro.
14108         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
14109         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
14110         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
14111         knuth_morris_pratt_multibyte): Likewise.
14112         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
14113         knuth_morris_pratt_multibyte): Likewise.
14114         * lib/memmem.c (knuth_morris_pratt): Likewise.
14115         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
14116
14117 2007-12-25  Bruno Haible  <bruno@clisp.org>
14118
14119         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
14120         * lib/glob.c: Don't include openat.h.
14121         (link_exists2_p): Add back the code that deals with the
14122         !GLOB_ALTDIRFUNC case.
14123         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
14124         let it do the filename concatenation.
14125         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
14126         * modules/glob (Depends-on): Remove openat.
14127
14128 2007-12-31  Bruno Haible  <bruno@clisp.org>
14129
14130         * modules/dirfd (License): Change to LGPLv2+.
14131         Approved by Jim Meyering.
14132
14133 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
14136         when multiplying M by sizeof (size_t).
14137
14138 2007-12-10  Martin Lambers  <marlam@marlam.de>
14139
14140         Override getpagesize on mingw.
14141         * lib/getpagesize.c: New file.
14142         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
14143         * modules/getpagesize (Files): Add lib/getpagesize.c.
14144         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
14145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14146         REPLACE_GETPAGESIZE.
14147         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
14148
14149 2007-12-25  Bruno Haible  <bruno@clisp.org>
14150
14151         * modules/localcharset (Notice): New field.
14152         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
14153         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14154
14155 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14156             Bruno Haible  <bruno@clisp.org>
14157
14158         Avoid using the syntax symbol() in formatted documentation.
14159         * MODULES.html.sh (func_module): When replacing symbol() with a
14160         hyperlink, remove the parentheses. Show an error if some remain.
14161         Recognize and render the '...' syntax.
14162         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
14163         Rework. Add paragraph about GCC's inlining.
14164         * doc/alloca.texi: Likewise.
14165         * doc/error.texi: Remove parentheses from symbol reference.
14166         * doc/gnulib-intro.texi: Likewise.
14167         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
14168         * modules/fnmatch (Description): Reword to say "the ... function".
14169         * modules/full-read (Description): Likewise.
14170         * modules/full-write (Description): Likewise.
14171         * modules/safe-read (Description): Likewise.
14172         * modules/safe-write (Description): Likewise.
14173         * modules/strchrnul (Description): Likewise.
14174         * modules/trim (Description): Likewise.
14175         * modules/error (Description): Remove parentheses from symbol
14176         references.
14177         * modules/verror (Description): Likewise.
14178         Reported by Karl Berry.
14179
14180 2007-12-25  Bruno Haible  <bruno@clisp.org>
14181
14182         Fixup after 2007-10-16 commit.
14183         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
14184
14185 2007-12-24  Bruno Haible  <bruno@clisp.org>
14186
14187         Make --enable-relocatable work with DESTDIR.
14188         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
14189         to compute installdir from destprog.
14190         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
14191         also set the RELOC_DESTDIR variable.
14192         Reported by Левашев Иван <octagram@bluebottle.com>.
14193
14194 2007-12-24  Bruno Haible  <bruno@clisp.org>
14195
14196         Fix link error due to xalloc_die().
14197         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
14198         of xreadlink.
14199         * lib/relocwrapper.c: Update comments.
14200         * build-aux/install-reloc: Remove xreadlink.c from file list.
14201         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
14202         xreadlink.c.
14203         Reported by Левашев Иван <octagram@bluebottle.com>.
14204
14205 2007-12-24  Bruno Haible  <bruno@clisp.org>
14206
14207         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
14208         * lib/setenv.h: Remove file.
14209         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
14210         lib/setenv.h.
14211         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
14212         (Depends-on): Add stdlib.
14213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
14214         gl_FUNC_UNSETENV.
14215         (Include): Replace setenv.h with <stdlib.h>.
14216         * modules/unsetenv: New file.
14217         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
14218         * lib/unsetenv.c: Include <stdlib.h> first.
14219         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
14220         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
14221         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
14222         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
14223         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
14224         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
14226         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14227         * doc/functions/unsetenv.texi: Update.
14228         * modules/xsetenv (Depends-on): Add unsetenv.
14229         * modules/getdate (Depends-on): Likewise.
14230         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
14231         * lib/xsetenv.c: Don't include setenv.h.
14232         * lib/getdate.y: Likewise.
14233         * lib/relocwrapper.c: Likewise.
14234         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
14235         (Depends-on): Add stdlib.
14236         * NEWS: Mention the changes.
14237         Reported by Левашев Иван <octagram@bluebottle.com>.
14238
14239 2007-12-23  Bruno Haible  <bruno@clisp.org>
14240
14241         * lib/memmem.c (memmem): Use lowercase variable names. Tab
14242         indentation.
14243
14244 2007-12-23  Bruno Haible  <bruno@clisp.org>
14245
14246         * lib/c-strcasestr.c: Add more comments.
14247         * lib/c-strstr.c: Likewise.
14248         * lib/mbscasestr.c: Likewise.
14249         * lib/mbsstr.c: Likewise.
14250         * lib/strcasestr.c: Likewise.
14251         * lib/memmem.c: Likewise.
14252
14253 2007-12-23  Bruno Haible  <bruno@clisp.org>
14254
14255         * tests/test-memmem.c: Include <string.h> first.
14256
14257 2007-12-22  Bruno Haible  <bruno@clisp.org>
14258
14259         * gnulib-tool (func_create_testdir): Change $auxdir while generating
14260         the contents of $testsbase.
14261         Reported by Ralf Wildenhues.
14262
14263 2007-12-22  Bruno Haible  <bruno@clisp.org>
14264
14265         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
14266         two variables local_ldadd_before, local_ldadd_last.
14267
14268 2007-12-20  Eric Blake  <ebb9@byu.net>
14269
14270         Work around circular library issue when cross-compiling.
14271         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
14272         that progname.o does not need to pull in rpl_memcmp.
14273
14274 2007-12-19  Eric Blake  <ebb9@byu.net>
14275
14276         Fix memmem to avoid O(n^2) worst-case complexity.
14277         * lib/memmem.c (knuth_morris_pratt): New function.
14278         (memmem): Use it if first few naive iterations fail.
14279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
14280         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
14281         * modules/memchr (License): Likewise.
14282         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
14283         malloca.
14284         * tests/test-memmem.c: Rewrite, borrowing ideas from
14285         test-mbsstr1.c; the old version wouldn't even compile!
14286         * modules/memmem-tests: New file.
14287         * lib/string.in.h (rpl_memmem): Add declaration.
14288         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
14289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
14290         REPLACE_MEMMEM.
14291
14292 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14293
14294         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
14295         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
14296         before any system include files, and undef after them all.  This
14297         should fix a problem on VMS reported by John E. Malmberg in
14298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
14299
14300 2007-12-17  Eric Blake  <ebb9@byu.net>
14301
14302         Revert addition of verify, for BSD/OS.
14303         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
14304         can't handle large files, for the sake of obsolete platforms.
14305         * modules/fseeko (Depends-on): Remove verify.
14306         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
14307         * doc/functions/ftello.texi (ftello): Likewise.
14308         * doc/functions/fgetpos.texi (fgetpos): Likewise.
14309         Reported by Larry Jones.
14310
14311 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
14312
14313         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
14314         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
14315
14316 2007-12-17  Jim Meyering  <meyering@redhat.com>
14317
14318         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
14319         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
14320         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
14321         * modules/getcwd (Depends-on): Add openat.
14322         Reported by Petr Salinger.
14323
14324 2007-12-17  Bruno Haible  <bruno@clisp.org>
14325
14326         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
14327         avoid a segmentation fault of the configure test on x86_64 systems.
14328
14329 2007-12-15  Jim Meyering  <meyering@redhat.com>
14330
14331         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
14332
14333 2007-12-13  Eric Blake  <ebb9@byu.net>
14334
14335         Another fseek test.
14336         * tests/test-fseek.c (main): Also test ungetc handling.
14337         * tests/test-fseeko.c (main): Likewise.
14338         * modules/fseeko (Depends-on): Add verify.
14339         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
14340         large.
14341         Reported by Larry Jones.
14342
14343         Fix fseeko on mingw.
14344         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
14345         seek.
14346
14347         Beef up fseek tests.
14348         * tests/test-fseek.c (main): Also test eof handling.
14349         * tests/test-fseeko.c (main): Likewise.
14350         Reported by Larry Jones.
14351
14352 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
14353
14354         Fix fseeko on BSD-based platforms.
14355         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
14356         successful seek.
14357
14358 2007-12-12  Eric Blake  <ebb9@byu.net>
14359
14360         Allow circular dependency of separate libtests.a
14361         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
14362         when use_libtests.
14363
14364 2007-12-11  Eric Blake  <ebb9@byu.net>
14365
14366         Fix bug with -0.0L in previous patch.
14367         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
14368         * tests/test-isnan.c (main): Also test on zeroes.
14369         * tests/test-isnanf.c (main): Likewise.
14370         * tests/test-isnanl.h (main): Likewise.
14371
14372         Detect pseudo-denormals on x86 even when cross-compiling.
14373         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
14374         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
14375         invalid bit patterns that happen to satisfy ==.
14376
14377         Avoid link failures with separate libtests.a.
14378         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
14379         last, to satisfy circular dependencies.
14380
14381 2007-12-11  Eric Blake  <ebb9@byu.net>
14382         and Bruno Haible  <bruno@clisp.org>
14383
14384         Fix OpenBSD 4.0 <float.h> handling of long double.
14385         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
14386         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
14387         * doc/headers/float.texi (float.h): Document OpenBSD bug.
14388
14389 2007-12-11  Jim Meyering  <meyering@redhat.com>
14390
14391         * users.txt: Add libvirt.
14392
14393         Support versions of autoconf prior to 2.59c.
14394         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
14395         if it is not already defined.
14396
14397 2007-12-09  Bruno Haible  <bruno@clisp.org>
14398
14399         Let 'gnulib-tool --import' collect sources needed for the tests in
14400         tests/ rather than in lib/.
14401         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
14402         argument. If true, add rules to generate libtests.a, and put libtests.a
14403         into $(LDADD). Consider source files in subdirectories and set
14404         uses_subdirs.
14405         (func_emit_initmacro_start, func_emit_initmacro_end,
14406         func_emit_initmacro_done): Pass all arguments explicitly.
14407         (func_import): Determine two module lists main_modules,
14408         testsrelated_modules. Determine use_libtests. Determine two variables
14409         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
14410         instead of just sed_transform_lib_file. Determine two variables
14411         main_files and testsrelated_files. Compute 'files' as the union of
14412         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
14413         func_add_or_update. In the generated gnulib-comp.m4, collect the
14414         object files for tests/ in different variables than those for lib/.
14415         Substitute LIBTESTS_LIBDEPS.
14416         (func_create_testdir): Combine the uses_subdirs results from
14417         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
14418
14419 2007-12-09  Bruno Haible  <bruno@clisp.org>
14420
14421         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
14422         the build-aux directory.
14423
14424 2007-12-09  Bruno Haible  <bruno@clisp.org>
14425
14426         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
14427         introduced on 2006-09-09.
14428
14429 2007-12-07  Jim Meyering  <meyering@redhat.com>
14430
14431         Let these macros work also with autoconf-2.59.
14432         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
14433         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
14434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14435
14436 2007-12-06  Jim Meyering  <meyering@redhat.com>
14437
14438         Avoid a configure-time syntax error in gl_FUNC_ACL.
14439         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
14440         function in each branch, before testing the cache variable.
14441
14442 2007-12-04  Eric Blake  <ebb9@byu.net>
14443
14444         Make scripts executable.
14445         * build-aux/config.guess: Add execute permissions.
14446         * build-aux/config.sub: Likewise.
14447         * build-aux/gendocs.sh: Likewise.
14448
14449         Fix frexp on mingw.
14450         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
14451         cross-compiling.
14452         * doc/functions/frexp.texi (frexp): Document the bug.
14453
14454         Make cygwin fseeko check more reliable.
14455         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
14456         version numbers, rather than unrelated feature check.
14457         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
14458         * doc/functions/ftello.texi (ftello): Likewise.
14459         Reported by Bruno Haible.
14460
14461         * m4/strerror.m4: Bump version number.
14462
14463 2007-12-03  Bruno Haible  <bruno@clisp.org>
14464
14465         * doc/functions/mprotect.texi: Mention the mingw problem.
14466
14467 2007-12-03  Eric Blake  <ebb9@byu.net>
14468
14469         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
14470         REPLACE_STRERROR is initialized before this macro.
14471
14472 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
14475         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
14476         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
14477         put -lsec in even for programs other than 'ls'.  This fixes a problem
14478         for gettext reported by Bruno Haible in
14479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
14480         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
14481         Add support for Solaris 10.  This isn't efficient, but should get the
14482         job done for now.
14483
14484 2007-12-03  James Youngman  <jay@gnu.org>
14485
14486         * doc/regexprops-generic.texi: change "an close-group" to "a
14487         close-group" and "illegal" to "not allowed".
14488
14489 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14490
14491         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
14492         pr_byname.h. Needed for the rare case when the maintainer has done
14493         "make maintainer-clean" in the source directory and then attempts a
14494         build outside the source directory.
14495         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
14496         scripts_byname.h.
14497
14498 2007-12-02  Martin Lambers <marlam@marlam.de>
14499             Bruno Haible  <bruno@clisp.org>
14500
14501         * lib/getpagesize.h: Remove file.
14502         * lib/unistd.in.h: Include declaration of getpagesize here.
14503         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
14504         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
14505         HAVE_SYS_PARAM_H.
14506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
14507         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14508         * modules/getpagesize (Files): Remove lib/getpagesize.h.
14509         (Depends-on): Add unistd.
14510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14511         (Include): Use <unistd.h> instead of getpagesize.h.
14512         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
14513         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14514         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
14515         gl_GETPAGESIZE invocation, already handled by module dependency.
14516         * lib/pagealign_alloc.c: Don't include getpagesize.h.
14517
14518 2007-12-02  Bruno Haible  <bruno@clisp.org>
14519
14520         * modules/strings-tests: New file.
14521         * tests/test-strings.c: New file.
14522
14523         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
14524         * lib/strings.in.h: New file.
14525         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
14526         * m4/strings_h.m4: New file.
14527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
14528         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
14529         * modules/strings: New file.
14530         * modules/string (Makefile.am): Update.
14531         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
14532         Reported by Karl Berry.
14533
14534 2007-12-01  Eric Blake  <ebb9@byu.net>
14535
14536         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
14537         accomodate fix in cygwin 1.5.25.
14538
14539 2007-12-01  Jim Meyering  <meyering@redhat.com>
14540
14541         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
14542         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
14543         that would inhibit utf8-optimization of a regexp containing line-
14544         or buffer-anchors, e.g., `^', `$'.
14545
14546 2007-11-30  Bruno Haible  <bruno@clisp.org>
14547
14548         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
14549         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
14550         glthread_recursive_lock_init.
14551         * lib/lock.c (glthread_recursive_lock_init)
14552         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
14553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14554
14555 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         New function qset_acl, like set_acl but with syscall semantics.
14558         * lib/acl.h (qset_acl): New decl.
14559         * lib/acl.c (qset_acl): New function.
14560         (set_acl): Use new function.  Use more-consistent diagnostics.
14561
14562 2007-11-28  Jim Meyering  <meyering@redhat.com>
14563
14564         * modules/physmem (License): Change from GPL to LGPLv2+.
14565
14566 2007-11-26  Bruno Haible  <bruno@clisp.org>
14567
14568         * lib/vasnprintf.c (decode_long_double): Don't abort if the
14569         'long double' type has excess precision.
14570         Reported by Jim Meyering in
14571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
14572
14573 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14574
14575         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
14576         Sync from <http://gnu.org/licenses>.
14577         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
14578         with license text from same location.
14579         * doc/maintain.texi, doc/standards.texi:  Sync from
14580         <http://savannah.gnu.org/projects/gnustandards>.
14581
14582 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
14583         and Jim Meyering  <meyering@redhat.com>
14584
14585         Adjust getdate' grammar to accept a slightly more regular language.
14586         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
14587         Before, the former was rejected.
14588         * lib/getdate.y (digits_to_date_time): New function, factored
14589         out of ...
14590         (number): ...here.  Just call digits_to_date_time.
14591         (hybrid): New non-terminal to handle an <unsigned number,
14592         signed relative offset> sequence consistently.
14593
14594 2007-11-18  Jim Meyering  <meyering@redhat.com>
14595
14596         Pull my changes from coreutils:
14597         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
14598         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
14599         use of $gnulib_tool_option_extras, so that it's separated from the
14600         preceding argument.
14601
14602         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
14603         * build-aux/bootstrap (cp_mark_as_generated): Create any required
14604         parent destination directories before copying a file into place.
14605
14606 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14607
14608         bootstrap: work also with 4-argument variant of AC_INIT
14609         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
14610
14611 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14612
14613         Port test-getaddrinfo to Solaris.
14614         Problem reported by Bruno Haible in
14615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
14616         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
14617         explanation of setting 'hints'.
14618         Don't reject an implementation merely because it returns EAI_SERVICE.
14619         (EAI_SERVICE): Define to 0 if not defined.
14620
14621 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14622
14623         The license of gnu-make and posix-shell is now "GPLed build tool".
14624         * modules/gnu-make (License): Likewise.
14625         * modules/posix-shell (License): Likewise.
14626
14627         New module posix-shell, for determining a POSIX shell
14628         or perhaps something that is close enough to a POSIX shell.
14629         * m4/posix-shell.m4: New file.
14630         * modules/posix-shell: New file.
14631
14632         * MODULES.html.sh: Mention new module.
14633
14634         New module gnu-make, for determining whether we're using GNU Make.
14635         * m4/gnu-make.m4: New file.
14636         * modules/gnu-make: New file.
14637         * MODULES.html.sh: Mention new module.
14638
14639 2007-11-14  Jim Meyering  <meyering@redhat.com>
14640
14641         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
14642         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
14643         use this macro to create a function _definition_.
14644         Remove useless "#undef ARGMATCH_DIE".
14645
14646 2007-11-14  Bruno Haible  <bruno@clisp.org>
14647
14648         * lib/config.charset: Update for OpenBSD 4.1.
14649         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
14650
14651 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
14652
14653         Document 64-bit #if problems in stdint.texi.
14654         * doc/headers/stdint.texi (stdint.h): Mention problems with
14655         64-bit-#if, and how to work around them.
14656
14657         Don't insist on 'long long int' support in the preprocessor.  It
14658         breaks too many things.  For example, PRIdMAX still uses a 'long
14659         long int' format with the latest Sun compiler, even though
14660         HAVE_LONG_LONG_INT isn't defined due to that compiler's
14661         preprocessor problem.  This causes the latest coreutils to dump
14662         core on Solaris 10 sparc with the Sun C compiler.
14663         Instead, fix the 2007-10-16 problem in a different way, by evaluating
14664         the troublesome expressions at configure-time, not at #if-time.
14665         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
14666         preprocessor.
14667         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
14668         compile-time C checks, done at 'configure'-time.
14669         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
14670         * modules/inttypes (Makefile): Substitute the new symbols that
14671         gl_INTTYPES_H now generates.
14672         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
14673
14674 2007-11-12  Bruno Haible  <bruno@clisp.org>
14675
14676         Tests for Unicode character classification functions.
14677
14678         * modules/unictype/bidicategory-byname-tests: New file.
14679         * modules/unictype/bidicategory-name-tests: New file.
14680         * modules/unictype/bidicategory-of-tests: New file.
14681         * modules/unictype/bidicategory-test-tests: New file.
14682         * modules/unictype/block-list-tests: New file.
14683         * modules/unictype/block-of-tests: New file.
14684         * modules/unictype/block-test-tests: New file.
14685         * modules/unictype/category-C-tests: New file.
14686         * modules/unictype/category-Cc-tests: New file.
14687         * modules/unictype/category-Cf-tests: New file.
14688         * modules/unictype/category-Cn-tests: New file.
14689         * modules/unictype/category-Co-tests: New file.
14690         * modules/unictype/category-Cs-tests: New file.
14691         * modules/unictype/category-L-tests: New file.
14692         * modules/unictype/category-Ll-tests: New file.
14693         * modules/unictype/category-Lm-tests: New file.
14694         * modules/unictype/category-Lo-tests: New file.
14695         * modules/unictype/category-Lt-tests: New file.
14696         * modules/unictype/category-Lu-tests: New file.
14697         * modules/unictype/category-M-tests: New file.
14698         * modules/unictype/category-Mc-tests: New file.
14699         * modules/unictype/category-Me-tests: New file.
14700         * modules/unictype/category-Mn-tests: New file.
14701         * modules/unictype/category-N-tests: New file.
14702         * modules/unictype/category-Nd-tests: New file.
14703         * modules/unictype/category-Nl-tests: New file.
14704         * modules/unictype/category-No-tests: New file.
14705         * modules/unictype/category-P-tests: New file.
14706         * modules/unictype/category-Pc-tests: New file.
14707         * modules/unictype/category-Pd-tests: New file.
14708         * modules/unictype/category-Pe-tests: New file.
14709         * modules/unictype/category-Pf-tests: New file.
14710         * modules/unictype/category-Pi-tests: New file.
14711         * modules/unictype/category-Po-tests: New file.
14712         * modules/unictype/category-Ps-tests: New file.
14713         * modules/unictype/category-S-tests: New file.
14714         * modules/unictype/category-Sc-tests: New file.
14715         * modules/unictype/category-Sk-tests: New file.
14716         * modules/unictype/category-Sm-tests: New file.
14717         * modules/unictype/category-So-tests: New file.
14718         * modules/unictype/category-Z-tests: New file.
14719         * modules/unictype/category-Zl-tests: New file.
14720         * modules/unictype/category-Zp-tests: New file.
14721         * modules/unictype/category-Zs-tests: New file.
14722         * modules/unictype/category-and-not-tests: New file.
14723         * modules/unictype/category-and-tests: New file.
14724         * modules/unictype/category-byname-tests: New file.
14725         * modules/unictype/category-name-tests: New file.
14726         * modules/unictype/category-none-tests: New file.
14727         * modules/unictype/category-of-tests: New file.
14728         * modules/unictype/category-or-tests: New file.
14729         * modules/unictype/category-test-withtable-tests: New file.
14730         * modules/unictype/combining-class-tests: New file.
14731         * modules/unictype/ctype-alnum-tests: New file.
14732         * modules/unictype/ctype-alpha-tests: New file.
14733         * modules/unictype/ctype-blank-tests: New file.
14734         * modules/unictype/ctype-cntrl-tests: New file.
14735         * modules/unictype/ctype-digit-tests: New file.
14736         * modules/unictype/ctype-graph-tests: New file.
14737         * modules/unictype/ctype-lower-tests: New file.
14738         * modules/unictype/ctype-print-tests: New file.
14739         * modules/unictype/ctype-punct-tests: New file.
14740         * modules/unictype/ctype-space-tests: New file.
14741         * modules/unictype/ctype-upper-tests: New file.
14742         * modules/unictype/ctype-xdigit-tests: New file.
14743         * modules/unictype/decimal-digit-tests: New file.
14744         * modules/unictype/digit-tests: New file.
14745         * modules/unictype/mirror-tests: New file.
14746         * modules/unictype/numeric-tests: New file.
14747         * modules/unictype/property-alphabetic-tests: New file.
14748         * modules/unictype/property-ascii-hex-digit-tests: New file.
14749         * modules/unictype/property-bidi-arabic-digit-tests: New file.
14750         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14751         * modules/unictype/property-bidi-block-separator-tests: New file.
14752         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14753         * modules/unictype/property-bidi-common-separator-tests: New file.
14754         * modules/unictype/property-bidi-control-tests: New file.
14755         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14756         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14757         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14758         * modules/unictype/property-bidi-european-digit-tests: New file.
14759         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14760         * modules/unictype/property-bidi-left-to-right-tests: New file.
14761         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14762         * modules/unictype/property-bidi-other-neutral-tests: New file.
14763         * modules/unictype/property-bidi-pdf-tests: New file.
14764         * modules/unictype/property-bidi-segment-separator-tests: New file.
14765         * modules/unictype/property-bidi-whitespace-tests: New file.
14766         * modules/unictype/property-byname-tests: New file.
14767         * modules/unictype/property-combining-tests: New file.
14768         * modules/unictype/property-composite-tests: New file.
14769         * modules/unictype/property-currency-symbol-tests: New file.
14770         * modules/unictype/property-dash-tests: New file.
14771         * modules/unictype/property-decimal-digit-tests: New file.
14772         * modules/unictype/property-default-ignorable-code-point-tests: New file.
14773         * modules/unictype/property-deprecated-tests: New file.
14774         * modules/unictype/property-diacritic-tests: New file.
14775         * modules/unictype/property-extender-tests: New file.
14776         * modules/unictype/property-format-control-tests: New file.
14777         * modules/unictype/property-grapheme-base-tests: New file.
14778         * modules/unictype/property-grapheme-extend-tests: New file.
14779         * modules/unictype/property-grapheme-link-tests: New file.
14780         * modules/unictype/property-hex-digit-tests: New file.
14781         * modules/unictype/property-hyphen-tests: New file.
14782         * modules/unictype/property-id-continue-tests: New file.
14783         * modules/unictype/property-id-start-tests: New file.
14784         * modules/unictype/property-ideographic-tests: New file.
14785         * modules/unictype/property-ids-binary-operator-tests: New file.
14786         * modules/unictype/property-ids-trinary-operator-tests: New file.
14787         * modules/unictype/property-ignorable-control-tests: New file.
14788         * modules/unictype/property-iso-control-tests: New file.
14789         * modules/unictype/property-join-control-tests: New file.
14790         * modules/unictype/property-left-of-pair-tests: New file.
14791         * modules/unictype/property-line-separator-tests: New file.
14792         * modules/unictype/property-logical-order-exception-tests: New file.
14793         * modules/unictype/property-lowercase-tests: New file.
14794         * modules/unictype/property-math-tests: New file.
14795         * modules/unictype/property-non-break-tests: New file.
14796         * modules/unictype/property-not-a-character-tests: New file.
14797         * modules/unictype/property-numeric-tests: New file.
14798         * modules/unictype/property-other-alphabetic-tests: New file.
14799         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14800         * modules/unictype/property-other-grapheme-extend-tests: New file.
14801         * modules/unictype/property-other-id-continue-tests: New file.
14802         * modules/unictype/property-other-id-start-tests: New file.
14803         * modules/unictype/property-other-lowercase-tests: New file.
14804         * modules/unictype/property-other-math-tests: New file.
14805         * modules/unictype/property-other-uppercase-tests: New file.
14806         * modules/unictype/property-paired-punctuation-tests: New file.
14807         * modules/unictype/property-paragraph-separator-tests: New file.
14808         * modules/unictype/property-pattern-syntax-tests: New file.
14809         * modules/unictype/property-pattern-white-space-tests: New file.
14810         * modules/unictype/property-private-use-tests: New file.
14811         * modules/unictype/property-punctuation-tests: New file.
14812         * modules/unictype/property-quotation-mark-tests: New file.
14813         * modules/unictype/property-radical-tests: New file.
14814         * modules/unictype/property-sentence-terminal-tests: New file.
14815         * modules/unictype/property-soft-dotted-tests: New file.
14816         * modules/unictype/property-space-tests: New file.
14817         * modules/unictype/property-terminal-punctuation-tests: New file.
14818         * modules/unictype/property-test-tests: New file.
14819         * modules/unictype/property-titlecase-tests: New file.
14820         * modules/unictype/property-unassigned-code-value-tests: New file.
14821         * modules/unictype/property-unified-ideograph-tests: New file.
14822         * modules/unictype/property-uppercase-tests: New file.
14823         * modules/unictype/property-variation-selector-tests: New file.
14824         * modules/unictype/property-white-space-tests: New file.
14825         * modules/unictype/property-xid-continue-tests: New file.
14826         * modules/unictype/property-xid-start-tests: New file.
14827         * modules/unictype/property-zero-width-tests: New file.
14828         * modules/unictype/scripts-tests: New file.
14829         * modules/unictype/syntax-c-ident-tests: New file.
14830         * modules/unictype/syntax-c-whitespace-tests: New file.
14831         * modules/unictype/syntax-java-ident-tests: New file.
14832         * modules/unictype/syntax-java-whitespace-tests: New file.
14833         * tests/unictype/test-bidi_byname.c: New file.
14834         * tests/unictype/test-bidi_name.c: New file.
14835         * tests/unictype/test-bidi_of.c: New file.
14836         * tests/unictype/test-bidi_test.c: New file.
14837         * tests/unictype/test-block_list.c: New file.
14838         * tests/unictype/test-block_of.c: New file.
14839         * tests/unictype/test-block_test.c: New file.
14840         * tests/unictype/test-categ_and.c: New file.
14841         * tests/unictype/test-categ_and_not.c: New file.
14842         * tests/unictype/test-categ_byname.c: New file.
14843         * tests/unictype/test-categ_name.c: New file.
14844         * tests/unictype/test-categ_none.c: New file.
14845         * tests/unictype/test-categ_of.c: New file.
14846         * tests/unictype/test-categ_or.c: New file.
14847         * tests/unictype/test-categ_test_withtable.c: New file.
14848         * tests/unictype/test-combining.c: New file.
14849         * tests/unictype/test-decdigit.c: New file.
14850         * tests/unictype/test-digit.c: New file.
14851         * tests/unictype/test-mirror.c: New file.
14852         * tests/unictype/test-numeric.c: New file.
14853         * tests/unictype/test-pr_byname.c: New file.
14854         * tests/unictype/test-pr_test.c: New file.
14855         * tests/unictype/test-predicate-part1.h: New file.
14856         * tests/unictype/test-predicate-part2.h: New file.
14857         * tests/unictype/test-scripts.c: New file.
14858         * tests/unictype/test-sy_c_ident.c: New file.
14859         * tests/unictype/test-sy_java_ident.c: New file.
14860
14861         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14862         for Unicode 5.0.0.
14863         * tests/unictype/test-categ_Cc.c: Likewise.
14864         * tests/unictype/test-categ_Cf.c: Likewise.
14865         * tests/unictype/test-categ_Cn.c: Likewise.
14866         * tests/unictype/test-categ_Co.c: Likewise.
14867         * tests/unictype/test-categ_Cs.c: Likewise.
14868         * tests/unictype/test-categ_L.c: Likewise.
14869         * tests/unictype/test-categ_Ll.c: Likewise.
14870         * tests/unictype/test-categ_Lm.c: Likewise.
14871         * tests/unictype/test-categ_Lo.c: Likewise.
14872         * tests/unictype/test-categ_Lt.c: Likewise.
14873         * tests/unictype/test-categ_Lu.c: Likewise.
14874         * tests/unictype/test-categ_M.c: Likewise.
14875         * tests/unictype/test-categ_Mc.c: Likewise.
14876         * tests/unictype/test-categ_Me.c: Likewise.
14877         * tests/unictype/test-categ_Mn.c: Likewise.
14878         * tests/unictype/test-categ_N.c: Likewise.
14879         * tests/unictype/test-categ_Nd.c: Likewise.
14880         * tests/unictype/test-categ_Nl.c: Likewise.
14881         * tests/unictype/test-categ_No.c: Likewise.
14882         * tests/unictype/test-categ_P.c: Likewise.
14883         * tests/unictype/test-categ_Pc.c: Likewise.
14884         * tests/unictype/test-categ_Pd.c: Likewise.
14885         * tests/unictype/test-categ_Pe.c: Likewise.
14886         * tests/unictype/test-categ_Pf.c: Likewise.
14887         * tests/unictype/test-categ_Pi.c: Likewise.
14888         * tests/unictype/test-categ_Po.c: Likewise.
14889         * tests/unictype/test-categ_Ps.c: Likewise.
14890         * tests/unictype/test-categ_S.c: Likewise.
14891         * tests/unictype/test-categ_Sc.c: Likewise.
14892         * tests/unictype/test-categ_Sk.c: Likewise.
14893         * tests/unictype/test-categ_Sm.c: Likewise.
14894         * tests/unictype/test-categ_So.c: Likewise.
14895         * tests/unictype/test-categ_Z.c: Likewise.
14896         * tests/unictype/test-categ_Zl.c: Likewise.
14897         * tests/unictype/test-categ_Zp.c: Likewise.
14898         * tests/unictype/test-categ_Zs.c: Likewise.
14899         * tests/unictype/test-ctype_alnum.c: Likewise.
14900         * tests/unictype/test-ctype_alpha.c: Likewise.
14901         * tests/unictype/test-ctype_blank.c: Likewise.
14902         * tests/unictype/test-ctype_cntrl.c: Likewise.
14903         * tests/unictype/test-ctype_digit.c: Likewise.
14904         * tests/unictype/test-ctype_graph.c: Likewise.
14905         * tests/unictype/test-ctype_lower.c: Likewise.
14906         * tests/unictype/test-ctype_print.c: Likewise.
14907         * tests/unictype/test-ctype_punct.c: Likewise.
14908         * tests/unictype/test-ctype_space.c: Likewise.
14909         * tests/unictype/test-ctype_upper.c: Likewise.
14910         * tests/unictype/test-ctype_xdigit.c: Likewise.
14911         * tests/unictype/test-decdigit.h: Likewise.
14912         * tests/unictype/test-digit.h: Likewise.
14913         * tests/unictype/test-numeric.h: Likewise.
14914         * tests/unictype/test-pr_alphabetic.c: Likewise.
14915         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14916         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14917         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14918         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14919         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14920         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14921         * tests/unictype/test-pr_bidi_control.c: Likewise.
14922         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14923         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14924         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14925         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14926         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14927         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14928         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14929         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14930         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14931         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14932         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14933         * tests/unictype/test-pr_combining.c: Likewise.
14934         * tests/unictype/test-pr_composite.c: Likewise.
14935         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14936         * tests/unictype/test-pr_dash.c: Likewise.
14937         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14938         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14939         * tests/unictype/test-pr_deprecated.c: Likewise.
14940         * tests/unictype/test-pr_diacritic.c: Likewise.
14941         * tests/unictype/test-pr_extender.c: Likewise.
14942         * tests/unictype/test-pr_format_control.c: Likewise.
14943         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14944         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14945         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14946         * tests/unictype/test-pr_hex_digit.c: Likewise.
14947         * tests/unictype/test-pr_hyphen.c: Likewise.
14948         * tests/unictype/test-pr_id_continue.c: Likewise.
14949         * tests/unictype/test-pr_id_start.c: Likewise.
14950         * tests/unictype/test-pr_ideographic.c: Likewise.
14951         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14952         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14953         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14954         * tests/unictype/test-pr_iso_control.c: Likewise.
14955         * tests/unictype/test-pr_join_control.c: Likewise.
14956         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14957         * tests/unictype/test-pr_line_separator.c: Likewise.
14958         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14959         * tests/unictype/test-pr_lowercase.c: Likewise.
14960         * tests/unictype/test-pr_math.c: Likewise.
14961         * tests/unictype/test-pr_non_break.c: Likewise.
14962         * tests/unictype/test-pr_not_a_character.c: Likewise.
14963         * tests/unictype/test-pr_numeric.c: Likewise.
14964         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14965         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14966         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14967         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14968         * tests/unictype/test-pr_other_id_start.c: Likewise.
14969         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14970         * tests/unictype/test-pr_other_math.c: Likewise.
14971         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14972         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14973         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14974         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14975         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14976         * tests/unictype/test-pr_private_use.c: Likewise.
14977         * tests/unictype/test-pr_punctuation.c: Likewise.
14978         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14979         * tests/unictype/test-pr_radical.c: Likewise.
14980         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14981         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14982         * tests/unictype/test-pr_space.c: Likewise.
14983         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14984         * tests/unictype/test-pr_titlecase.c: Likewise.
14985         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14986         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14987         * tests/unictype/test-pr_uppercase.c: Likewise.
14988         * tests/unictype/test-pr_variation_selector.c: Likewise.
14989         * tests/unictype/test-pr_white_space.c: Likewise.
14990         * tests/unictype/test-pr_xid_continue.c: Likewise.
14991         * tests/unictype/test-pr_xid_start.c: Likewise.
14992         * tests/unictype/test-pr_zero_width.c: Likewise.
14993         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14994         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14995
14996 2007-11-12  Bruno Haible  <bruno@clisp.org>
14997
14998         Unicode character classification functions.
14999         * lib/unictype.h: New file.
15000         * modules/unictype/base: New file.
15001         * modules/unictype/category-L: New file.
15002         * modules/unictype/category-Lu: New file.
15003         * modules/unictype/category-Ll: New file.
15004         * modules/unictype/category-Lt: New file.
15005         * modules/unictype/category-Lm: New file.
15006         * modules/unictype/category-Lo: New file.
15007         * modules/unictype/category-M: New file.
15008         * modules/unictype/category-Mn: New file.
15009         * modules/unictype/category-Mc: New file.
15010         * modules/unictype/category-Me: New file.
15011         * modules/unictype/category-N: New file.
15012         * modules/unictype/category-Nd: New file.
15013         * modules/unictype/category-Nl: New file.
15014         * modules/unictype/category-No: New file.
15015         * modules/unictype/category-P: New file.
15016         * modules/unictype/category-Pc: New file.
15017         * modules/unictype/category-Pd: New file.
15018         * modules/unictype/category-Ps: New file.
15019         * modules/unictype/category-Pe: New file.
15020         * modules/unictype/category-Pi: New file.
15021         * modules/unictype/category-Pf: New file.
15022         * modules/unictype/category-Po: New file.
15023         * modules/unictype/category-S: New file.
15024         * modules/unictype/category-Sm: New file.
15025         * modules/unictype/category-Sc: New file.
15026         * modules/unictype/category-Sk: New file.
15027         * modules/unictype/category-So: New file.
15028         * modules/unictype/category-Z: New file.
15029         * modules/unictype/category-Zs: New file.
15030         * modules/unictype/category-Zl: New file.
15031         * modules/unictype/category-Zp: New file.
15032         * modules/unictype/category-C: New file.
15033         * modules/unictype/category-Cc: New file.
15034         * modules/unictype/category-Cf: New file.
15035         * modules/unictype/category-Cs: New file.
15036         * modules/unictype/category-Co: New file.
15037         * modules/unictype/category-Cn: New file.
15038         * modules/unictype/category-or: New file.
15039         * modules/unictype/category-of: New file.
15040         * modules/unictype/category-test: New file.
15041         * modules/unictype/category-test-withtable: New file.
15042         * modules/unictype/category-byname: New file.
15043         * modules/unictype/category-none: New file.
15044         * modules/unictype/category-and: New file.
15045         * modules/unictype/category-and-not: New file.
15046         * modules/unictype/category-name: New file.
15047         * modules/unictype/combining-class: New file.
15048         * modules/unictype/category-all: New file.
15049         * modules/unictype/bidicategory-all: New file.
15050         * modules/unictype/bidicategory-byname: New file.
15051         * modules/unictype/bidicategory-name: New file.
15052         * modules/unictype/bidicategory-of: New file.
15053         * modules/unictype/bidicategory-test: New file.
15054         * modules/unictype/decimal-digit: New file.
15055         * modules/unictype/digit: New file.
15056         * modules/unictype/numeric: New file.
15057         * modules/unictype/mirror: New file.
15058         * modules/unictype/property-white-space: New file.
15059         * modules/unictype/property-alphabetic: New file.
15060         * modules/unictype/property-other-alphabetic: New file.
15061         * modules/unictype/property-not-a-character: New file.
15062         * modules/unictype/property-default-ignorable-code-point: New file.
15063         * modules/unictype/property-other-default-ignorable-code-point: New
15064         file.
15065         * modules/unictype/property-deprecated: New file.
15066         * modules/unictype/property-logical-order-exception: New file.
15067         * modules/unictype/property-variation-selector: New file.
15068         * modules/unictype/property-private-use: New file.
15069         * modules/unictype/property-unassigned-code-value: New file.
15070         * modules/unictype/property-uppercase: New file.
15071         * modules/unictype/property-other-uppercase: New file.
15072         * modules/unictype/property-lowercase: New file.
15073         * modules/unictype/property-other-lowercase: New file.
15074         * modules/unictype/property-titlecase: New file.
15075         * modules/unictype/property-soft-dotted: New file.
15076         * modules/unictype/property-id-start: New file.
15077         * modules/unictype/property-other-id-start: New file.
15078         * modules/unictype/property-id-continue: New file.
15079         * modules/unictype/property-other-id-continue: New file.
15080         * modules/unictype/property-xid-start: New file.
15081         * modules/unictype/property-xid-continue: New file.
15082         * modules/unictype/property-pattern-white-space: New file.
15083         * modules/unictype/property-pattern-syntax: New file.
15084         * modules/unictype/property-join-control: New file.
15085         * modules/unictype/property-grapheme-base: New file.
15086         * modules/unictype/property-grapheme-extend: New file.
15087         * modules/unictype/property-other-grapheme-extend: New file.
15088         * modules/unictype/property-grapheme-link: New file.
15089         * modules/unictype/property-bidi-control: New file.
15090         * modules/unictype/property-bidi-left-to-right: New file.
15091         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
15092         * modules/unictype/property-bidi-arabic-right-to-left: New file.
15093         * modules/unictype/property-bidi-european-digit: New file.
15094         * modules/unictype/property-bidi-eur-num-separator: New file.
15095         * modules/unictype/property-bidi-eur-num-terminator: New file.
15096         * modules/unictype/property-bidi-arabic-digit: New file.
15097         * modules/unictype/property-bidi-common-separator: New file.
15098         * modules/unictype/property-bidi-block-separator: New file.
15099         * modules/unictype/property-bidi-segment-separator: New file.
15100         * modules/unictype/property-bidi-whitespace: New file.
15101         * modules/unictype/property-bidi-non-spacing-mark: New file.
15102         * modules/unictype/property-bidi-boundary-neutral: New file.
15103         * modules/unictype/property-bidi-pdf: New file.
15104         * modules/unictype/property-bidi-embedding-or-override: New file.
15105         * modules/unictype/property-bidi-other-neutral: New file.
15106         * modules/unictype/property-hex-digit: New file.
15107         * modules/unictype/property-ascii-hex-digit: New file.
15108         * modules/unictype/property-ideographic: New file.
15109         * modules/unictype/property-unified-ideograph: New file.
15110         * modules/unictype/property-radical: New file.
15111         * modules/unictype/property-ids-binary-operator: New file.
15112         * modules/unictype/property-ids-trinary-operator: New file.
15113         * modules/unictype/property-zero-width: New file.
15114         * modules/unictype/property-space: New file.
15115         * modules/unictype/property-non-break: New file.
15116         * modules/unictype/property-iso-control: New file.
15117         * modules/unictype/property-format-control: New file.
15118         * modules/unictype/property-dash: New file.
15119         * modules/unictype/property-hyphen: New file.
15120         * modules/unictype/property-punctuation: New file.
15121         * modules/unictype/property-line-separator: New file.
15122         * modules/unictype/property-paragraph-separator: New file.
15123         * modules/unictype/property-quotation-mark: New file.
15124         * modules/unictype/property-sentence-terminal: New file.
15125         * modules/unictype/property-terminal-punctuation: New file.
15126         * modules/unictype/property-currency-symbol: New file.
15127         * modules/unictype/property-math: New file.
15128         * modules/unictype/property-other-math: New file.
15129         * modules/unictype/property-paired-punctuation: New file.
15130         * modules/unictype/property-left-of-pair: New file.
15131         * modules/unictype/property-combining: New file.
15132         * modules/unictype/property-composite: New file.
15133         * modules/unictype/property-decimal-digit: New file.
15134         * modules/unictype/property-numeric: New file.
15135         * modules/unictype/property-diacritic: New file.
15136         * modules/unictype/property-extender: New file.
15137         * modules/unictype/property-ignorable-control: New file.
15138         * modules/unictype/property-test: New file.
15139         * modules/unictype/property-byname: New file.
15140         * modules/unictype/property-all: New file.
15141         * modules/unictype/scripts: New file.
15142         * modules/unictype/scripts-all: New file.
15143         * modules/unictype/block-of: New file.
15144         * modules/unictype/block-test: New file.
15145         * modules/unictype/block-list: New file.
15146         * modules/unictype/block-all: New file.
15147         * modules/unictype/syntax-c-whitespace: New file.
15148         * modules/unictype/syntax-java-whitespace: New file.
15149         * modules/unictype/syntax-c-ident: New file.
15150         * modules/unictype/syntax-java-ident: New file.
15151         * modules/unictype/ctype-alnum: New file.
15152         * modules/unictype/ctype-alpha: New file.
15153         * modules/unictype/ctype-cntrl: New file.
15154         * modules/unictype/ctype-digit: New file.
15155         * modules/unictype/ctype-graph: New file.
15156         * modules/unictype/ctype-lower: New file.
15157         * modules/unictype/ctype-print: New file.
15158         * modules/unictype/ctype-punct: New file.
15159         * modules/unictype/ctype-space: New file.
15160         * modules/unictype/ctype-upper: New file.
15161         * modules/unictype/ctype-xdigit: New file.
15162         * modules/unictype/ctype-blank: New file.
15163         * lib/unictype/bidi_byname.c: New file.
15164         * lib/unictype/bidi_name.c: New file.
15165         * lib/unictype/bidi_of.c: New file.
15166         * lib/unictype/bidi_test.c: New file.
15167         * lib/unictype/bitmap.h: New file.
15168         * lib/unictype/block_test.c: New file.
15169         * lib/unictype/blocks.c: New file.
15170         * lib/unictype/categ_C.c: New file.
15171         * lib/unictype/categ_Cc.c: New file.
15172         * lib/unictype/categ_Cf.c: New file.
15173         * lib/unictype/categ_Cn.c: New file.
15174         * lib/unictype/categ_Co.c: New file.
15175         * lib/unictype/categ_Cs.c: New file.
15176         * lib/unictype/categ_L.c: New file.
15177         * lib/unictype/categ_Ll.c: New file.
15178         * lib/unictype/categ_Lm.c: New file.
15179         * lib/unictype/categ_Lo.c: New file.
15180         * lib/unictype/categ_Lt.c: New file.
15181         * lib/unictype/categ_Lu.c: New file.
15182         * lib/unictype/categ_M.c: New file.
15183         * lib/unictype/categ_Mc.c: New file.
15184         * lib/unictype/categ_Me.c: New file.
15185         * lib/unictype/categ_Mn.c: New file.
15186         * lib/unictype/categ_N.c: New file.
15187         * lib/unictype/categ_Nd.c: New file.
15188         * lib/unictype/categ_Nl.c: New file.
15189         * lib/unictype/categ_No.c: New file.
15190         * lib/unictype/categ_P.c: New file.
15191         * lib/unictype/categ_Pc.c: New file.
15192         * lib/unictype/categ_Pd.c: New file.
15193         * lib/unictype/categ_Pe.c: New file.
15194         * lib/unictype/categ_Pf.c: New file.
15195         * lib/unictype/categ_Pi.c: New file.
15196         * lib/unictype/categ_Po.c: New file.
15197         * lib/unictype/categ_Ps.c: New file.
15198         * lib/unictype/categ_S.c: New file.
15199         * lib/unictype/categ_Sc.c: New file.
15200         * lib/unictype/categ_Sk.c: New file.
15201         * lib/unictype/categ_Sm.c: New file.
15202         * lib/unictype/categ_So.c: New file.
15203         * lib/unictype/categ_Z.c: New file.
15204         * lib/unictype/categ_Zl.c: New file.
15205         * lib/unictype/categ_Zp.c: New file.
15206         * lib/unictype/categ_Zs.c: New file.
15207         * lib/unictype/categ_and.c: New file.
15208         * lib/unictype/categ_and_not.c: New file.
15209         * lib/unictype/categ_byname.c: New file.
15210         * lib/unictype/categ_name.c: New file.
15211         * lib/unictype/categ_none.c: New file.
15212         * lib/unictype/categ_of.c: New file.
15213         * lib/unictype/categ_or.c: New file.
15214         * lib/unictype/categ_test.c: New file.
15215         * lib/unictype/combining.c: New file.
15216         * lib/unictype/ctype_alnum.c: New file.
15217         * lib/unictype/ctype_alpha.c: New file.
15218         * lib/unictype/ctype_blank.c: New file.
15219         * lib/unictype/ctype_cntrl.c: New file.
15220         * lib/unictype/ctype_digit.c: New file.
15221         * lib/unictype/ctype_graph.c: New file.
15222         * lib/unictype/ctype_lower.c: New file.
15223         * lib/unictype/ctype_print.c: New file.
15224         * lib/unictype/ctype_punct.c: New file.
15225         * lib/unictype/ctype_space.c: New file.
15226         * lib/unictype/ctype_upper.c: New file.
15227         * lib/unictype/ctype_xdigit.c: New file.
15228         * lib/unictype/decdigit.c: New file.
15229         * lib/unictype/digit.c: New file.
15230         * lib/unictype/identsyntaxmap.h: New file.
15231         * lib/unictype/mirror.c: New file.
15232         * lib/unictype/numeric.c: New file.
15233         * lib/unictype/pr_alphabetic.c: New file.
15234         * lib/unictype/pr_ascii_hex_digit.c: New file.
15235         * lib/unictype/pr_bidi_arabic_digit.c: New file.
15236         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
15237         * lib/unictype/pr_bidi_block_separator.c: New file.
15238         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
15239         * lib/unictype/pr_bidi_common_separator.c: New file.
15240         * lib/unictype/pr_bidi_control.c: New file.
15241         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
15242         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
15243         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
15244         * lib/unictype/pr_bidi_european_digit.c: New file.
15245         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
15246         * lib/unictype/pr_bidi_left_to_right.c: New file.
15247         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
15248         * lib/unictype/pr_bidi_other_neutral.c: New file.
15249         * lib/unictype/pr_bidi_pdf.c: New file.
15250         * lib/unictype/pr_bidi_segment_separator.c: New file.
15251         * lib/unictype/pr_bidi_whitespace.c: New file.
15252         * lib/unictype/pr_byname.c: New file.
15253         * lib/unictype/pr_byname.gperf: New file.
15254         * lib/unictype/pr_combining.c: New file.
15255         * lib/unictype/pr_composite.c: New file.
15256         * lib/unictype/pr_currency_symbol.c: New file.
15257         * lib/unictype/pr_dash.c: New file.
15258         * lib/unictype/pr_decimal_digit.c: New file.
15259         * lib/unictype/pr_default_ignorable_code_point.c: New file.
15260         * lib/unictype/pr_deprecated.c: New file.
15261         * lib/unictype/pr_diacritic.c: New file.
15262         * lib/unictype/pr_extender.c: New file.
15263         * lib/unictype/pr_format_control.c: New file.
15264         * lib/unictype/pr_grapheme_base.c: New file.
15265         * lib/unictype/pr_grapheme_extend.c: New file.
15266         * lib/unictype/pr_grapheme_link.c: New file.
15267         * lib/unictype/pr_hex_digit.c: New file.
15268         * lib/unictype/pr_hyphen.c: New file.
15269         * lib/unictype/pr_id_continue.c: New file.
15270         * lib/unictype/pr_id_start.c: New file.
15271         * lib/unictype/pr_ideographic.c: New file.
15272         * lib/unictype/pr_ids_binary_operator.c: New file.
15273         * lib/unictype/pr_ids_trinary_operator.c: New file.
15274         * lib/unictype/pr_ignorable_control.c: New file.
15275         * lib/unictype/pr_iso_control.c: New file.
15276         * lib/unictype/pr_join_control.c: New file.
15277         * lib/unictype/pr_left_of_pair.c: New file.
15278         * lib/unictype/pr_line_separator.c: New file.
15279         * lib/unictype/pr_logical_order_exception.c: New file.
15280         * lib/unictype/pr_lowercase.c: New file.
15281         * lib/unictype/pr_math.c: New file.
15282         * lib/unictype/pr_non_break.c: New file.
15283         * lib/unictype/pr_not_a_character.c: New file.
15284         * lib/unictype/pr_numeric.c: New file.
15285         * lib/unictype/pr_other_alphabetic.c: New file.
15286         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
15287         * lib/unictype/pr_other_grapheme_extend.c: New file.
15288         * lib/unictype/pr_other_id_continue.c: New file.
15289         * lib/unictype/pr_other_id_start.c: New file.
15290         * lib/unictype/pr_other_lowercase.c: New file.
15291         * lib/unictype/pr_other_math.c: New file.
15292         * lib/unictype/pr_other_uppercase.c: New file.
15293         * lib/unictype/pr_paired_punctuation.c: New file.
15294         * lib/unictype/pr_paragraph_separator.c: New file.
15295         * lib/unictype/pr_pattern_syntax.c: New file.
15296         * lib/unictype/pr_pattern_white_space.c: New file.
15297         * lib/unictype/pr_private_use.c: New file.
15298         * lib/unictype/pr_punctuation.c: New file.
15299         * lib/unictype/pr_quotation_mark.c: New file.
15300         * lib/unictype/pr_radical.c: New file.
15301         * lib/unictype/pr_sentence_terminal.c: New file.
15302         * lib/unictype/pr_soft_dotted.c: New file.
15303         * lib/unictype/pr_space.c: New file.
15304         * lib/unictype/pr_terminal_punctuation.c: New file.
15305         * lib/unictype/pr_test.c: New file.
15306         * lib/unictype/pr_titlecase.c: New file.
15307         * lib/unictype/pr_unassigned_code_value.c: New file.
15308         * lib/unictype/pr_unified_ideograph.c: New file.
15309         * lib/unictype/pr_uppercase.c: New file.
15310         * lib/unictype/pr_variation_selector.c: New file.
15311         * lib/unictype/pr_white_space.c: New file.
15312         * lib/unictype/pr_xid_continue.c: New file.
15313         * lib/unictype/pr_xid_start.c: New file.
15314         * lib/unictype/pr_zero_width.c: New file.
15315         * lib/unictype/scripts.c: New file.
15316         * lib/unictype/sy_c_ident.c: New file.
15317         * lib/unictype/sy_c_whitespace.c: New file.
15318         * lib/unictype/sy_java_ident.c: New file.
15319         * lib/unictype/sy_java_whitespace.c: New file.
15320
15321         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
15322         Unicode 5.0.0.
15323         * lib/unictype/blocks.h: Likewise.
15324         * lib/unictype/categ_C.h: Likewise.
15325         * lib/unictype/categ_Cc.h: Likewise.
15326         * lib/unictype/categ_Cf.h: Likewise.
15327         * lib/unictype/categ_Cn.h: Likewise.
15328         * lib/unictype/categ_Co.h: Likewise.
15329         * lib/unictype/categ_Cs.h: Likewise.
15330         * lib/unictype/categ_L.h: Likewise.
15331         * lib/unictype/categ_Ll.h: Likewise.
15332         * lib/unictype/categ_Lm.h: Likewise.
15333         * lib/unictype/categ_Lo.h: Likewise.
15334         * lib/unictype/categ_Lt.h: Likewise.
15335         * lib/unictype/categ_Lu.h: Likewise.
15336         * lib/unictype/categ_M.h: Likewise.
15337         * lib/unictype/categ_Mc.h: Likewise.
15338         * lib/unictype/categ_Me.h: Likewise.
15339         * lib/unictype/categ_Mn.h: Likewise.
15340         * lib/unictype/categ_N.h: Likewise.
15341         * lib/unictype/categ_Nd.h: Likewise.
15342         * lib/unictype/categ_Nl.h: Likewise.
15343         * lib/unictype/categ_No.h: Likewise.
15344         * lib/unictype/categ_P.h: Likewise.
15345         * lib/unictype/categ_Pc.h: Likewise.
15346         * lib/unictype/categ_Pd.h: Likewise.
15347         * lib/unictype/categ_Pe.h: Likewise.
15348         * lib/unictype/categ_Pf.h: Likewise.
15349         * lib/unictype/categ_Pi.h: Likewise.
15350         * lib/unictype/categ_Po.h: Likewise.
15351         * lib/unictype/categ_Ps.h: Likewise.
15352         * lib/unictype/categ_S.h: Likewise.
15353         * lib/unictype/categ_Sc.h: Likewise.
15354         * lib/unictype/categ_Sk.h: Likewise.
15355         * lib/unictype/categ_Sm.h: Likewise.
15356         * lib/unictype/categ_So.h: Likewise.
15357         * lib/unictype/categ_Z.h: Likewise.
15358         * lib/unictype/categ_Zl.h: Likewise.
15359         * lib/unictype/categ_Zp.h: Likewise.
15360         * lib/unictype/categ_Zs.h: Likewise.
15361         * lib/unictype/categ_of.h: Likewise.
15362         * lib/unictype/combining.h: Likewise.
15363         * lib/unictype/ctype_alnum.h: Likewise.
15364         * lib/unictype/ctype_alpha.h: Likewise.
15365         * lib/unictype/ctype_blank.h: Likewise.
15366         * lib/unictype/ctype_cntrl.h: Likewise.
15367         * lib/unictype/ctype_digit.h: Likewise.
15368         * lib/unictype/ctype_graph.h: Likewise.
15369         * lib/unictype/ctype_lower.h: Likewise.
15370         * lib/unictype/ctype_print.h: Likewise.
15371         * lib/unictype/ctype_punct.h: Likewise.
15372         * lib/unictype/ctype_space.h: Likewise.
15373         * lib/unictype/ctype_upper.h: Likewise.
15374         * lib/unictype/ctype_xdigit.h: Likewise.
15375         * lib/unictype/decdigit.h: Likewise.
15376         * lib/unictype/digit.h: Likewise.
15377         * lib/unictype/mirror.h: Likewise.
15378         * lib/unictype/numeric.h: Likewise.
15379         * lib/unictype/pr_alphabetic.h: Likewise.
15380         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15381         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15382         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15383         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15384         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15385         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15386         * lib/unictype/pr_bidi_control.h: Likewise.
15387         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15388         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15389         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15390         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15391         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15392         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15393         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15394         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15395         * lib/unictype/pr_bidi_pdf.h: Likewise.
15396         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15397         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15398         * lib/unictype/pr_combining.h: Likewise.
15399         * lib/unictype/pr_composite.h: Likewise.
15400         * lib/unictype/pr_currency_symbol.h: Likewise.
15401         * lib/unictype/pr_dash.h: Likewise.
15402         * lib/unictype/pr_decimal_digit.h: Likewise.
15403         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15404         * lib/unictype/pr_deprecated.h: Likewise.
15405         * lib/unictype/pr_diacritic.h: Likewise.
15406         * lib/unictype/pr_extender.h: Likewise.
15407         * lib/unictype/pr_format_control.h: Likewise.
15408         * lib/unictype/pr_grapheme_base.h: Likewise.
15409         * lib/unictype/pr_grapheme_extend.h: Likewise.
15410         * lib/unictype/pr_grapheme_link.h: Likewise.
15411         * lib/unictype/pr_hex_digit.h: Likewise.
15412         * lib/unictype/pr_hyphen.h: Likewise.
15413         * lib/unictype/pr_id_continue.h: Likewise.
15414         * lib/unictype/pr_id_start.h: Likewise.
15415         * lib/unictype/pr_ideographic.h: Likewise.
15416         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15417         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15418         * lib/unictype/pr_ignorable_control.h: Likewise.
15419         * lib/unictype/pr_iso_control.h: Likewise.
15420         * lib/unictype/pr_join_control.h: Likewise.
15421         * lib/unictype/pr_left_of_pair.h: Likewise.
15422         * lib/unictype/pr_line_separator.h: Likewise.
15423         * lib/unictype/pr_logical_order_exception.h: Likewise.
15424         * lib/unictype/pr_lowercase.h: Likewise.
15425         * lib/unictype/pr_math.h: Likewise.
15426         * lib/unictype/pr_non_break.h: Likewise.
15427         * lib/unictype/pr_not_a_character.h: Likewise.
15428         * lib/unictype/pr_numeric.h: Likewise.
15429         * lib/unictype/pr_other_alphabetic.h: Likewise.
15430         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15431         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15432         * lib/unictype/pr_other_id_continue.h: Likewise.
15433         * lib/unictype/pr_other_id_start.h: Likewise.
15434         * lib/unictype/pr_other_lowercase.h: Likewise.
15435         * lib/unictype/pr_other_math.h: Likewise.
15436         * lib/unictype/pr_other_uppercase.h: Likewise.
15437         * lib/unictype/pr_paired_punctuation.h: Likewise.
15438         * lib/unictype/pr_paragraph_separator.h: Likewise.
15439         * lib/unictype/pr_pattern_syntax.h: Likewise.
15440         * lib/unictype/pr_pattern_white_space.h: Likewise.
15441         * lib/unictype/pr_private_use.h: Likewise.
15442         * lib/unictype/pr_punctuation.h: Likewise.
15443         * lib/unictype/pr_quotation_mark.h: Likewise.
15444         * lib/unictype/pr_radical.h: Likewise.
15445         * lib/unictype/pr_sentence_terminal.h: Likewise.
15446         * lib/unictype/pr_soft_dotted.h: Likewise.
15447         * lib/unictype/pr_space.h: Likewise.
15448         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15449         * lib/unictype/pr_titlecase.h: Likewise.
15450         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15451         * lib/unictype/pr_unified_ideograph.h: Likewise.
15452         * lib/unictype/pr_uppercase.h: Likewise.
15453         * lib/unictype/pr_variation_selector.h: Likewise.
15454         * lib/unictype/pr_white_space.h: Likewise.
15455         * lib/unictype/pr_xid_continue.h: Likewise.
15456         * lib/unictype/pr_xid_start.h: Likewise.
15457         * lib/unictype/pr_zero_width.h: Likewise.
15458         * lib/unictype/scripts.h: Likewise.
15459         * lib/unictype/scripts_byname.gperf: Likewise.
15460         * lib/unictype/sy_c_ident.h: Likewise.
15461         * lib/unictype/sy_c_whitespace.h: Likewise.
15462         * lib/unictype/sy_java_ident.h: Likewise.
15463         * lib/unictype/sy_java_whitespace.h: Likewise.
15464
15465         * lib/unictype/Makefile: New file.
15466         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
15467         glibc.
15468         * lib/unictype/3level.h: New file, copied from glibc.
15469         * lib/unictype/3levelbit.h: New file.
15470
15471 2007-11-11  Bruno Haible  <bruno@clisp.org>
15472
15473         * modules/gperf: New file.
15474         * modules/iconv_open (Depends-on): Add it.
15475         (Makefile.am): Remove the GPERF definition.
15476
15477 2007-11-11  Bruno Haible  <bruno@clisp.org>
15478
15479         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
15480         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
15481
15482 2007-11-11  Bruno Haible  <bruno@clisp.org>
15483
15484         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
15485         (usage): Remove function.
15486
15487 2007-11-11  Bruno Haible  <bruno@clisp.org>
15488
15489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
15490         gl_FUNC_CEILF_LIBS.
15491         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
15492         gl_FUNC_CEIL_LIBS.
15493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
15494         gl_FUNC_CEILL_LIBS.
15495         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
15496         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
15497         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
15498
15499 2007-11-11  Bruno Haible  <bruno@clisp.org>
15500
15501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
15502         roundf were declared but do not exist on functions.
15503         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
15504         roundl were declared but do not exist on functions.
15505         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
15506         HAVE_FLOORL_AND_CEILL, respectively.
15507         Needed for Sun C on Solaris 10.
15508
15509 2007-11-11  Bruno Haible  <bruno@clisp.org>
15510
15511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
15512         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
15513         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
15514         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
15515         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
15516         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
15517         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
15518         HAVE_DECL_ROUNDF.
15519         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
15520         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
15521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
15522         of HAVE_DECL_ROUND*.
15523         * modules/math (Makefile.am): Update.
15524
15525 2007-11-10  Bruno Haible  <bruno@clisp.org>
15526
15527         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
15528         ptrdiff_t as m4/intl.m4.
15529
15530 2007-11-10  Jim Meyering  <meyering@redhat.com>
15531
15532         Avoid link failure for the argmatch test.
15533         * tests/test-argmatch.c (usage): Define function to avoid a link
15534         failure: argmatch_die requires a usage function.
15535
15536 2007-11-09  Bruno Haible  <bruno@clisp.org>
15537
15538         * doc/functions/snprintf.texi: Mention BeOS deficiency.
15539         * doc/functions/vsnprintf.texi: Likewise.
15540         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
15541         with a size argument < 2.
15542
15543 2007-11-09  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
15546         buffer. Fixes an inefficiency introduced on 2007-11-03.
15547
15548 2007-11-09  Bruno Haible  <bruno@clisp.org>
15549
15550         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
15551         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
15552
15553 2007-11-08  Jim Meyering  <meyering@redhat.com>
15554
15555         Change cache variable name prefix "jm_" to "gl_" everywhere.
15556         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
15557         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
15558         * m4/uptime.m4: s/gl_/jm_/
15559
15560 2007-11-07  Bruno Haible  <bruno@clisp.org>
15561
15562         Update to GNU gettext 0.17.
15563         * m4/intl.m4: Update to GNU gettext 0.17.
15564         * m4/po.m4: Likewise.
15565         * modules/gettext (Files): Remove m4/ulonglong.m4.
15566         (configure.ac): Require gettext infrastructure from version 0.17.
15567
15568 2007-11-06  Bruno Haible  <bruno@clisp.org>
15569
15570         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
15571         symbolic values are not defined in a public header.
15572         * lib/freadable.c (freadable) [QNX]: Likewise.
15573         * lib/freadahead.c (freadahead) [QNX]: Likewise.
15574         * lib/freading.c (freading) [QNX]: Likewise.
15575         * lib/fseterr.c (fseterr) [QNX]: Likewise.
15576         * lib/fwritable.c (fwritable) [QNX]: Likewise.
15577         * lib/fwriting.c (fwriting) [QNX]: Likewise.
15578         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
15579         Reported by Alain Magloire.
15580
15581         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
15582
15583 2007-11-05  Bruno Haible  <bruno@clisp.org>
15584
15585         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
15586         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
15587         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
15588         Reported by Eric Blake.
15589
15590 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15591             Bruno Haible  <bruno@clisp.org>
15592
15593         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
15594         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
15595         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
15596         (malloc): Undefine also before including <stdlib.h>.
15597         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
15598         Needed on OSF/1 4.0.
15599
15600 2007-11-05  Jim Meyering  <meyering@redhat.com>
15601
15602         git-version-gen: sync from coreutils.
15603         * build-aux/git-version-gen: Add comments.
15604         Change the first '-' to '.' in the snapshot version string,
15605         e.g., 6.9-377-08144 -> 6.9.377-08144
15606         Remove first parameter.
15607         Don't declare a version "-dirty" merely because a time
15608         stamp has changed.
15609
15610 2007-11-04  Bruno Haible  <bruno@clisp.org>
15611
15612         * lib/lock.h: Protect all macro definitions containing an 'if'
15613         statement through a "do { ... } while (0)".
15614         * lib/tls.h: Likewise.
15615
15616 2007-11-04  Bruno Haible  <bruno@clisp.org>
15617
15618         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
15619
15620 2007-11-04  Bruno Haible  <bruno@clisp.org>
15621
15622         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
15623         * modules/fprintf-posix (Depends-on): Add nocrash.
15624         * modules/snprintf-posix (Depends-on): Likewise.
15625         * modules/sprintf-posix (Depends-on): Likewise.
15626         * modules/vasnprintf-posix (Depends-on): Likewise.
15627         * modules/vasprintf-posix (Depends-on): Likewise.
15628         * modules/vfprintf-posix (Depends-on): Likewise.
15629         * modules/vsnprintf-posix (Depends-on): Likewise.
15630         * modules/vsprintf-posix (Depends-on): Likewise.
15631         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15632         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15633         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15634         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15635         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15636         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15637         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15638
15639 2007-11-04  Bruno Haible  <bruno@clisp.org>
15640
15641         * modules/nocrash: New file.
15642         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
15643         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
15644
15645 2007-11-04  Bruno Haible  <bruno@clisp.org>
15646
15647         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
15648         precision handling.
15649         * tests/test-vasprintf-posix.c (test_function): Likewise.
15650         * tests/test-snprintf-posix.h (test_function): Likewise.
15651         * tests/test-sprintf-posix.h (test_function): Likewise.
15652
15653         Fix *printf behaviour for large precisions on mingw and BeOS.
15654         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
15655         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
15656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
15657         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15659         gl_PRINTF_PRECISION and test its result. Invoke
15660         gl_PREREQ_VASNPRINTF_PRECISION.
15661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15668         * doc/functions/fprintf.texi: Update.
15669         * doc/functions/printf.texi: Update.
15670         * doc/functions/snprintf.texi: Update.
15671         * doc/functions/sprintf.texi: Update.
15672         * doc/functions/vfprintf.texi: Update.
15673         * doc/functions/vprintf.texi: Update.
15674         * doc/functions/vsnprintf.texi: Update.
15675         * doc/functions/vsprintf.texi: Update.
15676
15677 2007-11-04  Bruno Haible  <bruno@clisp.org>
15678
15679         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
15680
15681 2007-11-04  Bruno Haible  <bruno@clisp.org>
15682
15683         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
15684         Reported by Sylvain Beucler <beuc@gnu.org>.
15685
15686 2007-11-03  Bruno Haible  <bruno@clisp.org>
15687
15688         * tests/test-fprintf-posix2.sh: New file.
15689         * tests/test-fprintf-posix2.c: New file.
15690         * modules/fprintf-posix-tests (Files): Add them.
15691         (TESTS): Add test-fprintf-posix2.sh.
15692         (configure.ac): Check for getrlimit and setrlimit.
15693         (check_PROGRAMS): Add test-fprintf-posix2.
15694
15695         * tests/test-printf-posix2.sh: New file.
15696         * tests/test-printf-posix2.c: New file.
15697         * modules/printf-posix-tests (Files): Add them.
15698         (TESTS): Add test-printf-posix2.sh.
15699         (configure.ac): Check for getrlimit and setrlimit.
15700         (check_PROGRAMS): Add test-printf-posix2.
15701
15702         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
15703         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
15704         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
15705         (decode_double): New function, copied from decode_long_double.
15706         (scale10_round_decimal_decoded): New function, extracted from
15707         scale10_round_decimal_long_double.
15708         (scale10_round_decimal_long_double): Use it.
15709         (scale10_round_decimal_double): New function.
15710         (floorlog10): New function.
15711         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
15712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
15713         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15715         gl_PRINTF_ENOMEM and test its result. Invoke
15716         gl_PREREQ_VASNPRINTF_ENOMEM.
15717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15724         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15725         * modules/snprintf-posix (Depends-on): Likewise.
15726         * modules/sprintf-posix (Depends-on): Likewise.
15727         * modules/vasnprintf-posix (Depends-on): Likewise.
15728         * modules/vasprintf-posix (Depends-on): Likewise.
15729         * modules/vfprintf-posix (Depends-on): Likewise.
15730         * modules/vsnprintf-posix (Depends-on): Likewise.
15731         * modules/vsprintf-posix (Depends-on): Likewise.
15732         * doc/functions/fprintf.texi: Update.
15733         * doc/functions/printf.texi: Update.
15734         * doc/functions/snprintf.texi: Update.
15735         * doc/functions/sprintf.texi: Update.
15736         * doc/functions/vfprintf.texi: Update.
15737         * doc/functions/vprintf.texi: Update.
15738         * doc/functions/vsnprintf.texi: Update.
15739         * doc/functions/vsprintf.texi: Update.
15740
15741 2007-11-03  Bruno Haible  <bruno@clisp.org>
15742
15743         * modules/frexp-nolibm-tests: New file.
15744
15745         * modules/frexp-nolibm: New file.
15746         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15747
15748 2007-11-03  Bruno Haible  <bruno@clisp.org>
15749
15750         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15751         value is C99 compliant.
15752         Needed for OSF/1 5.1.
15753
15754 2007-11-03  Bruno Haible  <bruno@clisp.org>
15755
15756         Fix out-of-memory handling of vasnprintf.
15757         * lib/printf-parse.c: Include <errno.h>.
15758         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15759         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15760         is already set.
15761
15762 2007-11-02  Eric Blake  <ebb9@byu.net>
15763
15764         Fix tests on cygwin.
15765         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15766
15767 2007-11-01  Bruno Haible  <bruno@clisp.org>
15768
15769         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15770         warning.
15771         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15772         needed for POSIX compatibility.
15773
15774 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15775
15776         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15777         for compatibility with GNU.
15778
15779 2007-11-01  Bruno Haible  <bruno@clisp.org>
15780
15781         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15782         (putenv): Renamed from rpl_putenv. Change argument type from
15783         'const char *' to 'char *'.
15784         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15785         of defining putenv in config.h, just set REPLACE_PUTENV.
15786         * modules/putenv (Depends-on): Add stdlib.
15787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15788         (Include): Use <stdlib.h>.
15789         * lib/stdlib.in.h (putenv): New declaration.
15790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15791         REPLACE_PUTENV.
15792         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15793         REPLACE_PUTENV.
15794         Needed for MacOS X 10.5.0.
15795         Reported by Peter O'Gorman <peter@pogma.com>.
15796
15797 2007-11-01  Jim Meyering  <meyering@redhat.com>
15798
15799         Treat an empty date string exactly like "0".
15800         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15801         if the remaining date string (to be parsed) is empty, use "0".
15802         Reported by Mischa Molhoek and discussed in this thread:
15803         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15804
15805 2007-10-31  Bruno Haible  <bruno@clisp.org>
15806
15807         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15808         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15809         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15810         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15811         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15812         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15813
15814 2007-10-31  Bruno Haible  <bruno@clisp.org>
15815
15816         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15817         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15818         (AC_TYPE_LONG_LONG_INT): Use it.
15819         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15820         it as well.
15821         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15822         to m4/longlong.m4.
15823         * modules/stdint (Files): Remove m4/ulonglong.m4.
15824         * modules/strtoull (Files): Use m4/longlong.m4 instead of
15825         m4/ulonglong.m4.
15826         * modules/strtoumax (Files): Likewise.
15827
15828 2007-10-30  Bruno Haible  <bruno@clisp.org>
15829
15830         * modules/xvasprintf-posix: New file.
15831         Suggested by Eric Blake.
15832
15833 2007-10-30  Bruno Haible  <bruno@clisp.org>
15834
15835         * modules/xprintf-posix-tests: New file.
15836         * tests/test-xprintf-posix.sh: New file.
15837         * tests/test-xprintf-posix.c: New file.
15838         * tests/test-xfprintf-posix.c: New file.
15839
15840         * modules/xprintf-posix: New file.
15841
15842 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15843
15844         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15845         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15846         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15847
15848 2007-10-29  Bruno Haible  <bruno@clisp.org>
15849
15850         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15851         contain the special marker '_cv_'.
15852         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15853         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15855         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15856         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15857         Reported by Ralf Wildenhues.
15858
15859 2007-10-29  Bruno Haible  <bruno@clisp.org>
15860
15861         * gnulib-tool (func_import): When --lgpl is not specified, set
15862         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15863         GPLv3.
15864         Reported by Simon Josefsson.
15865
15866 2007-10-28  Bruno Haible  <bruno@clisp.org>
15867
15868         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15869         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15870         HAVE_DECL_ISFINITE.
15871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15872         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15873         HAVE_DECL_ISFINITE.
15874
15875 2007-10-28  Bruno Haible  <bruno@clisp.org>
15876
15877         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15878         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15879
15880 2007-10-28  Bruno Haible  <bruno@clisp.org>
15881
15882         Fix link errors with Sun C 5.0 on Solaris 10.
15883         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15884         function is declared but not present in the compiler's libm.
15885         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15886         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15887         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15888         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15889         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15890         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15891         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15893         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15894         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15895         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15896         HAVE_DECL_FLOORL.
15897
15898 2007-10-28  Bruno Haible  <bruno@clisp.org>
15899
15900         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15901         gl_FUNC_FLOORL. Cache the result.
15902         (gl_FUNC_FLOORL): Use it.
15903         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15904         gl_FUNC_CEILL. Cache the result.
15905         (gl_FUNC_CEILL): Use it.
15906
15907         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15908         gl_FUNC_FLOOR. Cache the result.
15909         (gl_FUNC_FLOOR): Use it.
15910         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15911         gl_FUNC_CEIL. Cache the result.
15912         (gl_FUNC_CEIL): Use it.
15913
15914         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15915         gl_FUNC_FLOORF. Cache the result.
15916         (gl_FUNC_FLOORF): Use it.
15917         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15918         gl_FUNC_CEILF. Cache the result.
15919         (gl_FUNC_CEILF): Use it.
15920
15921 2007-10-28  Bruno Haible  <bruno@clisp.org>
15922
15923         * gnulib-tool: Allow specifying the LGPL version number through
15924         --lgpl=2 or --lgpl=3.
15925         (func_usage): Document --lgpl with argument.
15926         Handle --lgpl=... arguments.
15927         (func_import): Recognize also gl_LGPL calls with an argument. When
15928         --lgpl=2 is used and the module's license is just LGPL, report an
15929         error. Set sed_transform_lib_file according to the lgpl variable. In
15930         the generated files, use --lgpl or gl_LGPL invocations with argument,
15931         if necessary.
15932         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15933         an LGPv2+ license.
15934         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15935         gl_LGPL macro.
15936
15937 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15938             Bruno Haible  <bruno@clisp.org>
15939
15940         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15941         (u16_uctomb_aux): Likewise.
15942         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15943         !HAVE_INLINE.
15944         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15945
15946 2007-10-28  Bruno Haible  <bruno@clisp.org>
15947
15948         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15949         Invoke AM_GETTEXT_OPTION if it exists.
15950         * modules/vasprintf: Likewise.
15951         * modules/verror: Likewise.
15952         * modules/xprintf: Likewise.
15953         * modules/xvasprintf: Likewise.
15954
15955 2007-10-27  Ben Pfaff  <blp@gnu.org>
15956
15957         * lib/math.in.h: Define isfinite macro and prototypes for
15958         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15959         implementations.
15960         * m4/math_h.m4: New substitutions for isfinite module.
15961         * lib/isfinite.c: New file.
15962         * m4/isfinite.m4: New file.
15963         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15964         * modules/isfinite: New file.
15965         * modules/isfinite-tests: New file.
15966         * tests/tests-isfinite.c: New file.
15967         * doc/functions/isfinite.texi: Mention isfinite module.
15968         * MODULES.html.sh: Mention new module.
15969
15970 2007-10-27  Ben Pfaff  <blp@gnu.org>
15971
15972         Ralf Wildenhues reported that Tru64 4.0D declares the round
15973         functions but does not have definitions.
15974         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15975         cannot be found in any library, set the output variable to
15976         "missing" instead of "".
15977         * m4/round.m4: Also use our substitute if we cannot find round in
15978         any library, even if it is declared.
15979         * m4/roundf.m4: Likewise for roundf.
15980         * m4/roundl.m4: Likewise for roundl.
15981         * lib/math.in.h: Undefine roundf, round, roundl before defining
15982         their replacements, to allow for hypothetical systems where these
15983         may be defined as macros but not available in libraries.
15984
15985 2007-10-27  Bruno Haible  <bruno@clisp.org>
15986
15987         * doc/gnulib.texi: Invoke @firstparagraphindent.
15988         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15989         changes in gnulib.
15990         (Source changes): New section.
15991
15992 2007-10-26  Bruno Haible  <bruno@clisp.org>
15993
15994         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15995         borrowed from autoconf.
15996
15997 2007-10-26  Bruno Haible  <bruno@clisp.org>
15998
15999         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
16000         strerror returned the empty string. Needed on HP-UX 11.00.
16001
16002 2007-10-24  Micah Cowan  <micah@cowan.name>
16003
16004         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
16005         * build-aux/bootstrap: Remove support for now-unnecessary option,
16006         --cvs-user, and envvars CVS_USER, CVS_RSH.
16007
16008 2007-10-24  Jim Meyering  <meyering@redhat.com>
16009
16010         Avoid diagnostics from sha1sum when there is no cached checksum.
16011         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
16012         if the po.s1 file hasn't been created yet.
16013
16014         * build-aux/bootstrap: Sync from coreutils:
16015         2007-10-24  Jim Meyering  <meyering@redhat.com>
16016         Get gnulib from the git repository, not from an obsolete cvs one.
16017         * build-aux/bootstrap: Suggestion from Micah Cowan.
16018         2007-10-04  Jim Meyering  <jim@meyering.net>
16019         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
16020         (update_po_files): Work also when there are no .po files in po/.
16021
16022 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16023
16024         * README: Append ".git" to git and cg examples.
16025         Problem reported by Benoit Sigoure.
16026
16027 2007-10-23  Micah Cowan  <micah@cowan.name>
16028
16029         * users.txt: Add wget.
16030
16031 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16032
16033         Fix linking of some unistdio tests on FreeBSD.
16034         * modules/unistdio/u16-vsnprintf-tests
16035         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
16036         * modules/unistdio/u16-vsprintf-tests
16037         (test_u16_vsnprintf1_LDADD): Likewise.
16038         * modules/unistdio/u32-vsnprintf-tests
16039         (test_u32_vsnprintf1_LDADD): Likewise.
16040         * modules/unistdio/u32-vsprintf-tests
16041         (test_u32_vsprintf1_LDADD): Likewise.
16042         * modules/unistdio/u8-vsnprintf-tests
16043         (test_u8_vsnprintf1_LDADD): Likewise.
16044         * modules/unistdio/u8-vsprintf-tests
16045         (test_u8_vsprintf1_LDADD): Likewise.
16046         * modules/unistdio/ulc-vsnprintf-tests
16047         (test_ulc_vsnprintf1_LDADD): Likewise.
16048         * modules/unistdio/ulc-vsprintf-tests
16049         (test_ulc_vsprintf1_LDADD): Likewise.
16050
16051         Fix linking of some uniconv tests on FreeBSD.
16052         * modules/uniconv/u16-conv-from-enc-tests
16053         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
16054         * modules/uniconv/u16-conv-to-enc-tests
16055         (test_u16_conv_to_enc_LDADD): Likewise.
16056         * modules/uniconv/u16-strconv-from-enc-tests
16057         (test_u16_strconv_from_enc_LDADD): Likewise.
16058         * modules/uniconv/u16-strconv-to-enc-tests
16059         (test_u16_strconv_to_enc_LDADD): Likewise.
16060         * modules/uniconv/u32-conv-from-enc-tests
16061         (test_u32_conv_from_enc_LDADD): Likewise.
16062         * modules/uniconv/u32-conv-to-enc-tests
16063         (test_u32_conv_to_enc_LDADD): Likewise.
16064         * modules/uniconv/u32-strconv-from-enc-tests
16065         (test_u32_strconv_from_enc_LDADD): Likewise.
16066         * modules/uniconv/u32-strconv-to-enc-tests
16067         (test_u32_strconv_to_enc_LDADD): Likewise.
16068         * modules/uniconv/u8-conv-from-enc-tests
16069         (test_u8_conv_from_enc_LDADD): Likewise.
16070         * modules/uniconv/u8-conv-to-enc-tests
16071         (test_u8_conv_to_enc_LDADD): Likewise.
16072         * modules/uniconv/u8-strconv-from-enc-tests
16073         (test_u8_strconv_from_enc_LDADD): Likewise.
16074         * modules/uniconv/u8-strconv-to-enc-tests
16075         (test_u8_strconv_to_enc_LDADD): Likewise.
16076
16077 2007-10-22  Bruno Haible  <bruno@clisp.org>
16078
16079         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
16080         size.
16081
16082 2007-10-22  Eric Blake  <ebb9@byu.net>
16083
16084         Tweak x*printf documentation.
16085         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
16086         variable name and comments.
16087         Suggested by Bruno Haible.
16088
16089 2007-10-22  Bruno Haible  <bruno@clisp.org>
16090
16091         * lib/acl.c (copy_acl): Fix file name in comment.
16092
16093 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
16094
16095         Fix Tru64 problem with stdbool.h.
16096         * lib/stdbool.in.h (false, true):
16097         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
16098         Don't declare as an enum in this situation; it runs afoul of Tru64.
16099         Problem reported by Steven M. Schweda in
16100         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
16101
16102 2007-10-22  Eric Blake  <ebb9@byu.net>
16103
16104         Also wrap vf?printf.
16105         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
16106         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
16107         (xvprintf, xvfprintf): New functions.
16108
16109 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16110
16111         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
16112         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
16113
16114         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
16115         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
16116
16117 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
16118
16119         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
16120         by Bruno Haible.
16121
16122 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16123
16124         * lib/getloadavg.c
16125         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
16126         Undef `sys' after including sys/table.h, for Tru64 4.0D.
16127
16128         * tests/test-i-ring.c: Work for C89.
16129
16130 2007-10-22  Bruno Haible  <bruno@clisp.org>
16131
16132         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
16133         -1u, in preprocessor expression, so that we don't test for the bug
16134         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
16135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
16136
16137 2007-10-22  Eric Blake  <ebb9@byu.net>
16138
16139         * tests/test-yesno.sh: Silence stderr during test.
16140
16141 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16142
16143         * modules/crypto/gc-camellia: New file.
16144
16145         * m4/gc-camellia.m4: New file.
16146
16147         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
16148
16149         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
16150
16151 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16152
16153         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
16154         --help to stdout.  Reported by sms@antinode.org (Steven
16155         M. Schweda).
16156
16157 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16158
16159         * users.txt: Fix link to libksba.
16160
16161 2007-10-21  Ben Pfaff  <blp@gnu.org>
16162
16163         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
16164         round.c roundf implementation that depends on floorf and ceilf to
16165         be tested unconditionally.
16166
16167 2007-10-21  Ben Pfaff  <blp@gnu.org>
16168
16169         * m4/check-libm-func.m4: Removed.
16170         * m4/check-math-lib.m4: New file.
16171         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
16172         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
16173         definition and lack of AC_LIBOBJ([roundf]).
16174         * m4/roundl.m4: Ditto, and similarly for roundl.
16175         * modules/round: Reference new m4 file.
16176         * modules/roundf: Ditto.
16177         * modules/roundl: Ditto.
16178         * tests/test-round2.c (main): Use ROUND instead of round.
16179         Bug report from Bruno Haible.
16180
16181 2007-10-21  Bruno Haible  <bruno@clisp.org>
16182
16183         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
16184         context.
16185
16186 2007-10-21  Bruno Haible  <bruno@clisp.org>
16187
16188         * tests/test-wcwidth.c (main): Allow negative result for some control
16189         characters.
16190
16191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
16192         Needed on OSF/1 5.1.
16193
16194 2007-10-21  Bruno Haible  <bruno@clisp.org>
16195
16196         * tests/test-floorf1.c: Include isnanf.h.
16197         (main): Use isnanf() instead of isnan().
16198         * tests/test-ceilf1.c: Include isnanf.h.
16199         (main): Use isnanf() instead of isnan().
16200         * tests/test-truncf1.c: Include isnanf.h.
16201         (main): Use isnanf() instead of isnan().
16202         * tests/test-roundf1.c: Include isnanf.h.
16203         (main): Use isnanf() instead of isnan().
16204
16205 2007-10-21  Eric Blake  <ebb9@byu.net>
16206
16207         * users.txt: Update URL for m4.
16208
16209 2007-10-21  Bruno Haible  <bruno@clisp.org>
16210
16211         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
16212
16213 2007-10-21  Bruno Haible  <bruno@clisp.org>
16214
16215         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
16216         Git's management files if the CVS files are not present.
16217
16218 2007-10-20  Bruno Haible  <bruno@clisp.org>
16219
16220         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
16221         gcc-3.4.x.
16222
16223 2007-10-20  Ben Pfaff  <blp@gnu.org>
16224
16225         * lib/math.in.h: Declare round, roundf, roundl if we are providing
16226         implementations.
16227         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
16228         * lib/round.c: New file.
16229         * lib/roundf.c: New file.
16230         * lib/roundl.c: New file.
16231         * m4/round.m4: New file.
16232         * m4/roundf.m4: New file.
16233         * m4/roundl.m4: New file.
16234         * m4/check-libm-func-m4: New file.
16235         * modules/math: Replace round, roundf, roundl related @VARS@ in
16236         math.in.h.
16237         * modules/round: New file.
16238         * modules/round-tests: New file.
16239         * modules/roundf: New file.
16240         * modules/roundf-tests: New file.
16241         * modules/roundl: New file.
16242         * modules/roundl-tests: New file.
16243         * tests/test-round1.c: New file.
16244         * tests/test-round2.c: New file.
16245         * tests/test-roundf1.c: New file.
16246         * tests/test-roundf2.c: New file.
16247         * tests/test-roundl.c: New file.
16248         * doc/functions/round.texi: Mention round module.
16249         * doc/functions/roundf.texi: Mention roundf module.
16250         * doc/functions/roundl.texi: Mention roundl module.
16251         * MODULES.html.sh: Mention new modules.
16252         Thanks to Bruno Haible for suggestions.
16253
16254 2007-10-20  Jim Meyering  <meyering@redhat.com>
16255
16256         * lib/xprintf.c: Include <config.h> unconditionally.
16257
16258         Change xprintf's license to GPL.
16259         * modules/xprintf (License): s/LGPL/GPL/, since this module
16260         depends on modules (exit and exitfail) which are GPL.
16261         Suggestion from Bruno Haible.
16262
16263         xprintf fixes.
16264         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
16265         Use a clearer diagnostic.
16266         Patch from Bruno Haible.
16267
16268 2007-10-20  Bruno Haible  <bruno@clisp.org>
16269
16270         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
16271         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
16272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16273
16274 2007-10-20  Bruno Haible  <bruno@clisp.org>
16275
16276         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
16277         precision in the comparison result > x - 1 or similar.
16278         * tests/test-ceilf2.c (correct_result_p): Likewise.
16279         * tests/test-truncf2.c (correct_result_p): Likewise.
16280         * tests/test-trunc2.c (correct_result_p): Likewise.
16281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16282
16283 2007-10-20  Bruno Haible  <bruno@clisp.org>
16284
16285         * modules/ceil: New file.
16286         * m4/ceil.m4: New file.
16287         * doc/functions/ceil.texi: Mention the 'ceil' module.
16288
16289 2007-10-20  Bruno Haible  <bruno@clisp.org>
16290
16291         * modules/floor: New file.
16292         * m4/floor.m4: New file.
16293         * doc/functions/floor.texi: Mention the 'floor' module.
16294
16295 2007-10-20  Bruno Haible  <bruno@clisp.org>
16296
16297         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
16298         of %a.
16299         * modules/floorf-tests (Depends-on): Likewise.
16300         * modules/truncf-tests (Depends-on): Likewise.
16301         * modules/trunc-tests (Depends-on): Likewise.
16302         Reported by Ben Pfaff.
16303
16304 2007-10-19  Jim Meyering  <meyering@redhat.com>
16305
16306         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
16307         Don't bother testing specific errno values.  Just test ferror.
16308
16309         New module: xprintf
16310         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
16311
16312 2007-10-19  Bruno Haible  <bruno@clisp.org>
16313
16314         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
16315         syntax.
16316         * modules/javaexec (Makefile.am): Likewise.
16317         * modules/relocatable-prog (Makefile.am): Likewise.
16318         Suggested by Jim Meyering.
16319
16320 2007-10-18  Bruno Haible  <bruno@clisp.org>
16321
16322         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
16323         Reported by Jim Meyering.
16324
16325 2007-10-18  Eric Blake  <ebb9@byu.net>
16326
16327         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
16328
16329 2007-10-18  Bruno Haible  <bruno@clisp.org>
16330
16331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
16332         the format string into writable memory. Needed in Fortify conditions.
16333
16334 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
16335             Bruno Haible  <bruno@clisp.org>
16336
16337         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
16338         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
16339         * modules/trim (Depends-on): Add mbchar.
16340         (configure.ac): Add gl_FUNC_MBRTOWC.
16341         (Makefile.am): Augment lib_SOURCES.
16342
16343 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16344
16345         Modify glob.c to use fstatat and dirfd, to simplify it.
16346         Suggested by Eric Blake.
16347         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
16348         Don't include <stdbool.h>; not used.
16349         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
16350         (link_exists_p): Simplify implementation, since we can now assume
16351         dirfd and fstatat.
16352         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
16353
16354 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16355
16356         * gnulib-tool (func_get_dependencies): Fix sed script to
16357         match only tests.
16358
16359 2007-10-17  Bruno Haible  <bruno@clisp.org>
16360
16361         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
16362         allow locale names without encoding suffix.
16363         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16364         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16365
16366 2007-10-16  Bruno Haible  <bruno@clisp.org>
16367
16368         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
16369         * lib/getgroups.c (getgroups): Likewise.
16370         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
16371
16372 2007-10-16  Bruno Haible  <bruno@clisp.org>
16373
16374         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
16375         * modules/malloc-posix (License): Likewise.
16376         * modules/realloc-posix (License): Likewise.
16377         * modules/calloc-posix (License): Likewise.
16378         * modules/intprops (License): Change from GPL to LGPL, with
16379         Paul Eggert's approval.
16380
16381 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16382
16383         Merge glibc changes into lib/glob.c.
16384
16385         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
16386         2007-10-15 04:59:03 UTC.  Here are the changes:
16387
16388         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
16389
16390         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
16391
16392         * lib/glob.c: Add some branch prediction throughout.
16393
16394         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
16395
16396         [BZ #5103]
16397         * lib/glob.c (glob): Recognize patterns starting \/.
16398
16399         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
16400
16401         [BZ #3996]
16402         * lib/glob.c (attribute_hidden): Define if not defined.
16403         (glob): Unescape dirname, filename or username when needed and not
16404         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
16405         is NULL.  Handle unescaped [ in pattern without closing ].
16406         Don't pass GLOB_CHECK down to recursive glob for directories.
16407         (__glob_pattern_type): New function.
16408         (__glob_pattern_p): Implement using __glob_pattern_type.
16409         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
16410         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
16411         Remove unreachable code.
16412
16413         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
16414
16415         * lib/glob.c (glob_in_dir): Add some comments and asserts to
16416         explain why there are no leaks.
16417
16418         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
16419
16420         [BZ #3253]
16421         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
16422         time, rather allocate increasingly bigger arrays of pointers, if
16423         possible with alloca, if too large with malloc.
16424
16425 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16426
16427         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
16428         Problem reported by H.Merijn Brand in
16429         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
16430         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
16431         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
16432
16433 2007-10-15  Bruno Haible  <bruno@clisp.org>
16434
16435         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
16436         with explicit rpl_ prefix.
16437         * lib/fopen.c (fopen): Likewise.
16438         * lib/freopen.c (freopen): Likewise.
16439         * lib/iconv.c (iconv): Likewise.
16440         * lib/iconv_close.c (iconv_close): Likewise.
16441
16442 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16443
16444         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
16445
16446 2007-10-15  Bruno Haible  <bruno@clisp.org>
16447
16448         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
16449         <stddef.h> instead of <stdlib.h> since we only need NULL.
16450         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16451
16452 2007-10-15  Bruno Haible  <bruno@clisp.org>
16453
16454         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
16455         Replace paragraph talking about LIBOBJS.
16456         Reported by Colin Watson <cjwatson@debian.org>.
16457
16458 2007-10-15  Bruno Haible  <bruno@clisp.org>
16459
16460         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
16461         <stdlib.h> before using NULL.
16462
16463 2007-10-15  Simon Josefsson  <simon@josefsson.org>
16464
16465         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
16466         Reported by Albert Chin <china@thewrittenword.com>.
16467
16468 2007-10-14  Bruno Haible  <bruno@clisp.org>
16469
16470         * modules/iconv_open-utf-tests: New file.
16471         * tests/test-iconv-utf.c: New file.
16472
16473         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
16474         * modules/iconv_open-utf: New file.
16475         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
16476         (iconv, iconv_close): New declarations.
16477         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
16478         be defined.
16479         (iconv_open): Add special handling of conversion between UTF-8 and
16480         UTF-{16,32}{BE,LE}.
16481         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
16482         * lib/iconv_close.c: New file.
16483         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
16484         gl_FUNC_ICONV_OPEN.
16485         (gl_FUNC_ICONV_OPEN): Use it.
16486         (gl_FUNC_ICONV_OPEN_UTF): New macro.
16487         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
16488         and REPLACE_ICONV_UTF.
16489         * modules/iconv_open (Depends-on): Add c-strcase.
16490         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
16491         ICONV_CONST.
16492         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
16493
16494 2007-10-13  Albert Chin  <china@thewrittenword.com>
16495             Bruno Haible  <bruno@clisp.org>
16496
16497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
16498         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
16499
16500 2007-10-13  Bruno Haible  <bruno@clisp.org>
16501
16502         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
16503         defined, use the ISO C99 inline semantics.
16504         * lib/argp.h (ARGP_EI): Likewise.
16505
16506 2007-10-13  Bruno Haible  <bruno@clisp.org>
16507
16508         Handle 'inline' change in gcc 4.3.0.
16509         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
16510         argp_fmtstream_write, argp_fmtstream_set_lmargin,
16511         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
16512         argp_fmtstream_point): Disable 'extern' declaration if the function
16513         definition is going to be provided inline.
16514         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
16515         semantics, not the ISO C99 inline semantics.
16516         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
16517         'extern' declaration if the function definition is going to be provided
16518         inline.
16519         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
16520         the GNU C inline semantics, not the ISO C99 inline semantics. With
16521         GCC 4.2, avoid a warning.
16522
16523 2007-10-13  Bruno Haible  <bruno@clisp.org>
16524
16525         * lib/freading.h (freading): Enable the use of __freading for
16526         glibc >= 2.7.
16527         * lib/freading.c (freading): Likewise.
16528
16529 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16530
16531         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
16532         "warning: C99 inline functions are not supported; using GNU89".
16533
16534 2007-10-12  Bruno Haible  <bruno@clisp.org>
16535
16536         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
16537         of 2.
16538         * tests/test-ceilf2.c: New file.
16539         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
16540
16541         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
16542         * modules/ceilf-tests: Update.
16543
16544 2007-10-12  Bruno Haible  <bruno@clisp.org>
16545
16546         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
16547         of 2.
16548         * tests/test-floorf2.c: New file.
16549         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
16550
16551         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
16552         * modules/floorf-tests: Update.
16553
16554 2007-10-12  Bruno Haible  <bruno@clisp.org>
16555
16556         * tests/test-trunc2.c: New file.
16557         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
16558
16559         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
16560         * modules/trunc-tests: Update.
16561
16562 2007-10-12  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
16565         of 2.
16566         * tests/test-truncf2.c: New file.
16567         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
16568
16569         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
16570         * modules/truncf-tests: Update.
16571
16572 2007-10-11  Eric Blake  <ebb9@byu.net>
16573
16574         Don't claim strerror is broken on Interix.
16575         * doc/functions/strerror.texi (strerror): Known broken systems are
16576         now Solaris 8, and not Interix.
16577         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
16578         Interix on cross-compile.
16579         Reported by Martin Koeppe in
16580         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
16581
16582 2007-10-11  Bruno Haible  <bruno@clisp.org>
16583
16584         * modules/i-ring-tests: New file.
16585         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
16586         instead of assert.
16587
16588 2007-10-11  Bruno Haible  <bruno@clisp.org>
16589
16590         * modules/filenamecat-tests: New file.
16591         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
16592         * lib/filenamecat.c: Remove test code.
16593
16594 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16595
16596         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
16597
16598         * lib/strerror.c: Include <string.h> always, to test interface,
16599         and to remove the need for the dummy.
16600         Include intprops.h to compute width instead of doing it ourselves
16601         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
16602         (strerror): Define it to return NULL if there's no system strerror.
16603         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
16604         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
16605         ancient pre-strerror Unix systems well any more.  Saying "unknown
16606         system error" is enough.
16607         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
16608         simpler strerror.c implementation.
16609         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
16610         Simplify the tests to reflect the simpler strerror implementation.
16611         * modules/strerror (Depends-on): Add intprops.
16612
16613 2007-10-09  Eric Blake  <ebb9@byu.net>
16614
16615         Silence test-fpending.
16616         * modules/fpending-tests (Files): Add wrapper script.
16617         * tests/test-fpending.sh: New file.
16618
16619 2007-10-09  Bruno Haible  <bruno@clisp.org>
16620
16621         * MODULES.html.sh (func_module): Don't create a hyperlink for
16622         function names like 'printf_frexp'.
16623         (Misc): Add crc, memxor.
16624         (Characteristics of floating types): New section.
16625         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
16626         isnanf-nolibm, signbit, trunc, truncf, truncl.
16627         (Enhancements for ISO C 99 functions): New subsection Input/output.
16628         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
16629         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
16630         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
16631         (Compatibility checks for POSIX:2001 functions): Add clock-time.
16632         (Enhancements for POSIX:2001 functions): Add chdir-long.
16633         (File system functions): Add areadlink, chdir-safer, read-file.
16634         Remove cycle-check.
16635         (File system as inode set): New section.
16636         (Date and time): Add gethrxtime.
16637         (Multithreading): Add openmp.
16638         (Internationalization functions): Add localename.
16639         (Unicode string functions): Add unistr/u*-mbsnlen.
16640         (Support for maintaining and releasing projects): Add git-version-gen.
16641         (Lone files): Remove directories.
16642
16643 2007-10-08  Ben Pfaff  <blp@gnu.org>
16644
16645         * lib/xmalloca.h: Fix typo in comment.
16646
16647 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16648
16649         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
16650         when avoiding problems with integer overflow.  Use a portable test
16651         instead.
16652
16653 2007-10-08  Simon Josefsson  <simon@josefsson.org>
16654
16655         * modules/dummy (License): Change to LGPLv2+.
16656         * modules/float (License): Likewise
16657         * modules/realloc (License): Likewise
16658         * modules/stdlib (License): Likewise
16659
16660 2007-10-07  Bruno Haible  <bruno@clisp.org>
16661
16662         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
16663         * floor.c (TWO_MANT_DIG): Likewise.
16664         * ceil.c (TWO_MANT_DIG): Likewise.
16665         Reported by Ben Pfaff.
16666
16667 2007-10-07  Bruno Haible  <bruno@clisp.org>
16668
16669         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
16670         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
16671         * lib/frexp.c (FUNC): Likewise.
16672         * lib/printf-frexp.h (printf_frexp): Likewise.
16673         * lib/printf-frexpl.h (printf_frexpl): Likewise.
16674         * lib/printf-frexp.c (FUNC): Likewise.
16675         Suggested by Jim Meyering.
16676
16677 2007-10-07  Jim Meyering  <meyering@redhat.com>
16678
16679         Make xnanosleep's integer overflow test more robust.
16680         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
16681         so that gcc-4.3.0 doesn't optimize away this test for overflow.
16682
16683 2007-10-07  Bruno Haible  <bruno@clisp.org>
16684
16685         * NEWS: Mention the license change.
16686
16687         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
16688         abbreviations in the modules files.
16689
16690         Change copyright notice from GPLv2+ to GPLv3+.
16691         * README: Change copyright notice.
16692         * MODULES.html.sh: Likewise.
16693         * build-aux/bootstrap.conf: Likewise.
16694         * build-aux/config.libpath: Likewise.
16695         * build-aux/csharpcomp.sh.in: Likewise.
16696         * build-aux/csharpexec.sh.in: Likewise.
16697         * build-aux/install-reloc: Likewise.
16698         * build-aux/javacomp.sh.in: Likewise.
16699         * build-aux/javaexec.sh.in: Likewise.
16700         * build-aux/ldd.sh.in: Likewise.
16701         * build-aux/reloc-ldflags: Likewise.
16702         * build-aux/relocatable.sh.in: Likewise.
16703         * build-aux/x-to-1.in: Likewise.
16704         * check-module: Likewise.
16705         * config/srclistvars.sh: Likewise.
16706         * gnulib-tool: Likewise.
16707         * lib/acl-internal.h: Likewise.
16708         * lib/acl.c: Likewise.
16709         * lib/acl.h: Likewise.
16710         * lib/acl_entries.c: Likewise.
16711         * lib/areadlink-with-size.c: Likewise.
16712         * lib/areadlink.c: Likewise.
16713         * lib/areadlink.h: Likewise.
16714         * lib/argmatch.c: Likewise.
16715         * lib/argmatch.h: Likewise.
16716         * lib/argp-ba.c: Likewise.
16717         * lib/argp-eexst.c: Likewise.
16718         * lib/argp-fmtstream.c: Likewise.
16719         * lib/argp-fmtstream.h: Likewise.
16720         * lib/argp-fs-xinl.c: Likewise.
16721         * lib/argp-help.c: Likewise.
16722         * lib/argp-namefrob.h: Likewise.
16723         * lib/argp-parse.c: Likewise.
16724         * lib/argp-pin.c: Likewise.
16725         * lib/argp-pv.c: Likewise.
16726         * lib/argp-pvh.c: Likewise.
16727         * lib/argp-xinl.c: Likewise.
16728         * lib/argp.h: Likewise.
16729         * lib/at-func.c: Likewise.
16730         * lib/atanl.c: Likewise.
16731         * lib/backupfile.c: Likewise.
16732         * lib/backupfile.h: Likewise.
16733         * lib/basename.c: Likewise.
16734         * lib/binary-io.h: Likewise.
16735         * lib/byteswap.in.h: Likewise.
16736         * lib/c-stack.c: Likewise.
16737         * lib/c-stack.h: Likewise.
16738         * lib/c-strcasestr.c: Likewise.
16739         * lib/c-strcasestr.h: Likewise.
16740         * lib/c-strstr.c: Likewise.
16741         * lib/c-strstr.h: Likewise.
16742         * lib/c-strtod.c: Likewise.
16743         * lib/calloc.c: Likewise.
16744         * lib/canon-host.c: Likewise.
16745         * lib/canon-host.h: Likewise.
16746         * lib/canonicalize-lgpl.c: Likewise.
16747         * lib/canonicalize.c: Likewise.
16748         * lib/canonicalize.h: Likewise.
16749         * lib/ceil.c: Likewise.
16750         * lib/ceilf.c: Likewise.
16751         * lib/ceill.c: Likewise.
16752         * lib/chdir-long.c: Likewise.
16753         * lib/chdir-long.h: Likewise.
16754         * lib/chdir-safer.c: Likewise.
16755         * lib/chdir-safer.h: Likewise.
16756         * lib/chown.c: Likewise.
16757         * lib/classpath.c: Likewise.
16758         * lib/classpath.h: Likewise.
16759         * lib/clean-temp.c: Likewise.
16760         * lib/clean-temp.h: Likewise.
16761         * lib/cloexec.c: Likewise.
16762         * lib/close-stream.c: Likewise.
16763         * lib/closein.c: Likewise.
16764         * lib/closein.h: Likewise.
16765         * lib/closeout.c: Likewise.
16766         * lib/closeout.h: Likewise.
16767         * lib/concat-filename.c: Likewise.
16768         * lib/copy-file.c: Likewise.
16769         * lib/copy-file.h: Likewise.
16770         * lib/count-one-bits.h: Likewise.
16771         * lib/crc.c: Likewise.
16772         * lib/crc.h: Likewise.
16773         * lib/creat-safer.c: Likewise.
16774         * lib/csharpcomp.c: Likewise.
16775         * lib/csharpcomp.h: Likewise.
16776         * lib/csharpexec.c: Likewise.
16777         * lib/csharpexec.h: Likewise.
16778         * lib/cycle-check.c: Likewise.
16779         * lib/cycle-check.h: Likewise.
16780         * lib/diacrit.c: Likewise.
16781         * lib/diacrit.h: Likewise.
16782         * lib/diffseq.h: Likewise.
16783         * lib/dirchownmod.c: Likewise.
16784         * lib/dirent.in.h: Likewise.
16785         * lib/dirfd.c: Likewise.
16786         * lib/dirfd.h: Likewise.
16787         * lib/dirname.c: Likewise.
16788         * lib/dirname.h: Likewise.
16789         * lib/dummy.c: Likewise.
16790         * lib/dup-safer.c: Likewise.
16791         * lib/dup2.c: Likewise.
16792         * lib/eealloc.h: Likewise.
16793         * lib/error.c: Likewise.
16794         * lib/error.h: Likewise.
16795         * lib/euidaccess.c: Likewise.
16796         * lib/exclude.c: Likewise.
16797         * lib/exclude.h: Likewise.
16798         * lib/execute.c: Likewise.
16799         * lib/execute.h: Likewise.
16800         * lib/exitfail.c: Likewise.
16801         * lib/exitfail.h: Likewise.
16802         * lib/expl.c: Likewise.
16803         * lib/fatal-signal.c: Likewise.
16804         * lib/fatal-signal.h: Likewise.
16805         * lib/fbufmode.c: Likewise.
16806         * lib/fbufmode.h: Likewise.
16807         * lib/fchdir.c: Likewise.
16808         * lib/fchmodat.c: Likewise.
16809         * lib/fchownat.c: Likewise.
16810         * lib/fcntl--.h: Likewise.
16811         * lib/fcntl-safer.h: Likewise.
16812         * lib/fcntl.in.h: Likewise.
16813         * lib/fd-safer.c: Likewise.
16814         * lib/fflush.c: Likewise.
16815         * lib/file-has-acl.c: Likewise.
16816         * lib/file-set.c: Likewise.
16817         * lib/file-type.c: Likewise.
16818         * lib/file-type.h: Likewise.
16819         * lib/fileblocks.c: Likewise.
16820         * lib/filemode.c: Likewise.
16821         * lib/filemode.h: Likewise.
16822         * lib/filename.h: Likewise.
16823         * lib/filenamecat.c: Likewise.
16824         * lib/filenamecat.h: Likewise.
16825         * lib/findprog.c: Likewise.
16826         * lib/findprog.h: Likewise.
16827         * lib/float.in.h: Likewise.
16828         * lib/floor.c: Likewise.
16829         * lib/floorf.c: Likewise.
16830         * lib/floorl.c: Likewise.
16831         * lib/fopen-safer.c: Likewise.
16832         * lib/fopen.c: Likewise.
16833         * lib/fpending.c: Likewise.
16834         * lib/fpending.h: Likewise.
16835         * lib/fprintf.c: Likewise.
16836         * lib/fprintftime.h: Likewise.
16837         * lib/fpucw.h: Likewise.
16838         * lib/fpurge.c: Likewise.
16839         * lib/fpurge.h: Likewise.
16840         * lib/freadable.c: Likewise.
16841         * lib/freadable.h: Likewise.
16842         * lib/freadahead.c: Likewise.
16843         * lib/freadahead.h: Likewise.
16844         * lib/freading.c: Likewise.
16845         * lib/freading.h: Likewise.
16846         * lib/free.c: Likewise.
16847         * lib/freopen.c: Likewise.
16848         * lib/frexp.c: Likewise.
16849         * lib/frexpl.c: Likewise.
16850         * lib/fseek.c: Likewise.
16851         * lib/fseterr.c: Likewise.
16852         * lib/fseterr.h: Likewise.
16853         * lib/fstatat.c: Likewise.
16854         * lib/fstrcmp.c: Likewise.
16855         * lib/fstrcmp.h: Likewise.
16856         * lib/fsusage.c: Likewise.
16857         * lib/fsusage.h: Likewise.
16858         * lib/ftell.c: Likewise.
16859         * lib/ftello.c: Likewise.
16860         * lib/fts-cycle.c: Likewise.
16861         * lib/fts.c: Likewise.
16862         * lib/fts_.h: Likewise.
16863         * lib/full-read.c: Likewise.
16864         * lib/full-read.h: Likewise.
16865         * lib/full-write.c: Likewise.
16866         * lib/full-write.h: Likewise.
16867         * lib/fwritable.c: Likewise.
16868         * lib/fwritable.h: Likewise.
16869         * lib/fwriteerror.c: Likewise.
16870         * lib/fwriteerror.h: Likewise.
16871         * lib/fwriting.c: Likewise.
16872         * lib/fwriting.h: Likewise.
16873         * lib/gcd.c: Likewise.
16874         * lib/gcd.h: Likewise.
16875         * lib/getcwd.c: Likewise.
16876         * lib/getdate.h: Likewise.
16877         * lib/getdate.y: Likewise.
16878         * lib/getdomainname.c: Likewise.
16879         * lib/getdomainname.h: Likewise.
16880         * lib/getgroups.c: Likewise.
16881         * lib/gethostname.c: Likewise.
16882         * lib/gethrxtime.c: Likewise.
16883         * lib/gethrxtime.h: Likewise.
16884         * lib/getloadavg.c: Likewise.
16885         * lib/getndelim2.c: Likewise.
16886         * lib/getndelim2.h: Likewise.
16887         * lib/getnline.c: Likewise.
16888         * lib/getnline.h: Likewise.
16889         * lib/getopt.c: Likewise.
16890         * lib/getopt.in.h: Likewise.
16891         * lib/getopt1.c: Likewise.
16892         * lib/getopt_int.h: Likewise.
16893         * lib/getpagesize.h: Likewise.
16894         * lib/getsubopt.c: Likewise.
16895         * lib/gettime.c: Likewise.
16896         * lib/getugroups.c: Likewise.
16897         * lib/getugroups.h: Likewise.
16898         * lib/getusershell.c: Likewise.
16899         * lib/gl_anyavltree_list1.h: Likewise.
16900         * lib/gl_anyavltree_list2.h: Likewise.
16901         * lib/gl_anyhash_list1.h: Likewise.
16902         * lib/gl_anyhash_list2.h: Likewise.
16903         * lib/gl_anylinked_list1.h: Likewise.
16904         * lib/gl_anylinked_list2.h: Likewise.
16905         * lib/gl_anyrbtree_list1.h: Likewise.
16906         * lib/gl_anyrbtree_list2.h: Likewise.
16907         * lib/gl_anytree_list1.h: Likewise.
16908         * lib/gl_anytree_list2.h: Likewise.
16909         * lib/gl_anytree_oset.h: Likewise.
16910         * lib/gl_anytreehash_list1.h: Likewise.
16911         * lib/gl_anytreehash_list2.h: Likewise.
16912         * lib/gl_array_list.c: Likewise.
16913         * lib/gl_array_list.h: Likewise.
16914         * lib/gl_array_oset.c: Likewise.
16915         * lib/gl_array_oset.h: Likewise.
16916         * lib/gl_avltree_list.c: Likewise.
16917         * lib/gl_avltree_list.h: Likewise.
16918         * lib/gl_avltree_oset.c: Likewise.
16919         * lib/gl_avltree_oset.h: Likewise.
16920         * lib/gl_avltreehash_list.c: Likewise.
16921         * lib/gl_avltreehash_list.h: Likewise.
16922         * lib/gl_carray_list.c: Likewise.
16923         * lib/gl_carray_list.h: Likewise.
16924         * lib/gl_linked_list.c: Likewise.
16925         * lib/gl_linked_list.h: Likewise.
16926         * lib/gl_linkedhash_list.c: Likewise.
16927         * lib/gl_linkedhash_list.h: Likewise.
16928         * lib/gl_list.c: Likewise.
16929         * lib/gl_list.h: Likewise.
16930         * lib/gl_oset.c: Likewise.
16931         * lib/gl_oset.h: Likewise.
16932         * lib/gl_rbtree_list.c: Likewise.
16933         * lib/gl_rbtree_list.h: Likewise.
16934         * lib/gl_rbtree_oset.c: Likewise.
16935         * lib/gl_rbtree_oset.h: Likewise.
16936         * lib/gl_rbtreehash_list.c: Likewise.
16937         * lib/gl_rbtreehash_list.h: Likewise.
16938         * lib/gl_sublist.c: Likewise.
16939         * lib/gl_sublist.h: Likewise.
16940         * lib/group-member.c: Likewise.
16941         * lib/group-member.h: Likewise.
16942         * lib/hard-locale.c: Likewise.
16943         * lib/hard-locale.h: Likewise.
16944         * lib/hash-pjw.c: Likewise.
16945         * lib/hash-pjw.h: Likewise.
16946         * lib/hash-triple.c: Likewise.
16947         * lib/hash.c: Likewise.
16948         * lib/hash.h: Likewise.
16949         * lib/human.c: Likewise.
16950         * lib/human.h: Likewise.
16951         * lib/i-ring.c: Likewise.
16952         * lib/i-ring.h: Likewise.
16953         * lib/idcache.c: Likewise.
16954         * lib/imaxabs.c: Likewise.
16955         * lib/imaxdiv.c: Likewise.
16956         * lib/inet_pton.c: Likewise.
16957         * lib/inet_pton.h: Likewise.
16958         * lib/intprops.h: Likewise.
16959         * lib/inttostr.c: Likewise.
16960         * lib/inttostr.h: Likewise.
16961         * lib/inttypes.in.h: Likewise.
16962         * lib/isapipe.c: Likewise.
16963         * lib/isdir.c: Likewise.
16964         * lib/isnan.c: Likewise.
16965         * lib/isnan.h: Likewise.
16966         * lib/isnanf.c: Likewise.
16967         * lib/isnanf.h: Likewise.
16968         * lib/isnanl-nolibm.h: Likewise.
16969         * lib/isnanl.c: Likewise.
16970         * lib/isnanl.h: Likewise.
16971         * lib/javacomp.c: Likewise.
16972         * lib/javacomp.h: Likewise.
16973         * lib/javaexec.c: Likewise.
16974         * lib/javaexec.h: Likewise.
16975         * lib/javaversion.c: Likewise.
16976         * lib/javaversion.h: Likewise.
16977         * lib/javaversion.java: Likewise.
16978         * lib/lbrkprop.h: Likewise.
16979         * lib/lchmod.h: Likewise.
16980         * lib/lchown.c: Likewise.
16981         * lib/ldexpl.c: Likewise.
16982         * lib/linebreak.c: Likewise.
16983         * lib/linebreak.h: Likewise.
16984         * lib/linebuffer.c: Likewise.
16985         * lib/linebuffer.h: Likewise.
16986         * lib/locale.in.h: Likewise.
16987         * lib/logl.c: Likewise.
16988         * lib/long-options.c: Likewise.
16989         * lib/long-options.h: Likewise.
16990         * lib/lstat.c: Likewise.
16991         * lib/lstat.h: Likewise.
16992         * lib/math.in.h: Likewise.
16993         * lib/mbchar.c: Likewise.
16994         * lib/mbchar.h: Likewise.
16995         * lib/mbfile.h: Likewise.
16996         * lib/mbiter.h: Likewise.
16997         * lib/mbscasecmp.c: Likewise.
16998         * lib/mbscasestr.c: Likewise.
16999         * lib/mbschr.c: Likewise.
17000         * lib/mbscspn.c: Likewise.
17001         * lib/mbslen.c: Likewise.
17002         * lib/mbsncasecmp.c: Likewise.
17003         * lib/mbsnlen.c: Likewise.
17004         * lib/mbspbrk.c: Likewise.
17005         * lib/mbspcasecmp.c: Likewise.
17006         * lib/mbsrchr.c: Likewise.
17007         * lib/mbssep.c: Likewise.
17008         * lib/mbsspn.c: Likewise.
17009         * lib/mbsstr.c: Likewise.
17010         * lib/mbstok_r.c: Likewise.
17011         * lib/mbswidth.c: Likewise.
17012         * lib/mbswidth.h: Likewise.
17013         * lib/mbuiter.h: Likewise.
17014         * lib/memcasecmp.c: Likewise.
17015         * lib/memcasecmp.h: Likewise.
17016         * lib/memchr.c: Likewise.
17017         * lib/memcmp.c: Likewise.
17018         * lib/memcoll.c: Likewise.
17019         * lib/memcoll.h: Likewise.
17020         * lib/memcpy.c: Likewise.
17021         * lib/memrchr.c: Likewise.
17022         * lib/mkancesdirs.c: Likewise.
17023         * lib/mkdir-p.c: Likewise.
17024         * lib/mkdir-p.h: Likewise.
17025         * lib/mkdir.c: Likewise.
17026         * lib/mkdirat.c: Likewise.
17027         * lib/mkdtemp.c: Likewise.
17028         * lib/mkstemp-safer.c: Likewise.
17029         * lib/mkstemp.c: Likewise.
17030         * lib/modechange.c: Likewise.
17031         * lib/modechange.h: Likewise.
17032         * lib/mountlist.c: Likewise.
17033         * lib/mountlist.h: Likewise.
17034         * lib/mpsort.c: Likewise.
17035         * lib/nanosleep.c: Likewise.
17036         * lib/obstack.c: Likewise.
17037         * lib/obstack.h: Likewise.
17038         * lib/open-safer.c: Likewise.
17039         * lib/open.c: Likewise.
17040         * lib/openat-die.c: Likewise.
17041         * lib/openat-priv.h: Likewise.
17042         * lib/openat-proc.c: Likewise.
17043         * lib/openat.c: Likewise.
17044         * lib/openat.h: Likewise.
17045         * lib/pagealign_alloc.c: Likewise.
17046         * lib/pagealign_alloc.h: Likewise.
17047         * lib/physmem.c: Likewise.
17048         * lib/physmem.h: Likewise.
17049         * lib/pipe-safer.c: Likewise.
17050         * lib/pipe.c: Likewise.
17051         * lib/pipe.h: Likewise.
17052         * lib/posixtm.c: Likewise.
17053         * lib/posixtm.h: Likewise.
17054         * lib/posixver.c: Likewise.
17055         * lib/printf-frexp.c: Likewise.
17056         * lib/printf-frexp.h: Likewise.
17057         * lib/printf-frexpl.c: Likewise.
17058         * lib/printf-frexpl.h: Likewise.
17059         * lib/printf.c: Likewise.
17060         * lib/progname.c: Likewise.
17061         * lib/progname.h: Likewise.
17062         * lib/progreloc.c: Likewise.
17063         * lib/putenv.c: Likewise.
17064         * lib/quote.c: Likewise.
17065         * lib/quote.h: Likewise.
17066         * lib/quotearg.c: Likewise.
17067         * lib/quotearg.h: Likewise.
17068         * lib/raise.c: Likewise.
17069         * lib/readline.c: Likewise.
17070         * lib/readline.h: Likewise.
17071         * lib/readlink.c: Likewise.
17072         * lib/readtokens.c: Likewise.
17073         * lib/readtokens.h: Likewise.
17074         * lib/readtokens0.c: Likewise.
17075         * lib/readtokens0.h: Likewise.
17076         * lib/readutmp.c: Likewise.
17077         * lib/readutmp.h: Likewise.
17078         * lib/realloc.c: Likewise.
17079         * lib/relocwrapper.c: Likewise.
17080         * lib/rename-dest-slash.c: Likewise.
17081         * lib/rename.c: Likewise.
17082         * lib/rmdir.c: Likewise.
17083         * lib/rpmatch.c: Likewise.
17084         * lib/safe-read.c: Likewise.
17085         * lib/safe-read.h: Likewise.
17086         * lib/safe-write.c: Likewise.
17087         * lib/safe-write.h: Likewise.
17088         * lib/same-inode.h: Likewise.
17089         * lib/same.c: Likewise.
17090         * lib/same.h: Likewise.
17091         * lib/save-cwd.c: Likewise.
17092         * lib/save-cwd.h: Likewise.
17093         * lib/savedir.c: Likewise.
17094         * lib/savedir.h: Likewise.
17095         * lib/savewd.c: Likewise.
17096         * lib/savewd.h: Likewise.
17097         * lib/search.in.h: Likewise.
17098         * lib/setenv.c: Likewise.
17099         * lib/setenv.h: Likewise.
17100         * lib/settime.c: Likewise.
17101         * lib/sh-quote.c: Likewise.
17102         * lib/sh-quote.h: Likewise.
17103         * lib/sig2str.c: Likewise.
17104         * lib/sig2str.h: Likewise.
17105         * lib/signal.in.h: Likewise.
17106         * lib/signbitd.c: Likewise.
17107         * lib/signbitf.c: Likewise.
17108         * lib/signbitl.c: Likewise.
17109         * lib/sigprocmask.c: Likewise.
17110         * lib/sincosl.c: Likewise.
17111         * lib/sleep.c: Likewise.
17112         * lib/sprintf.c: Likewise.
17113         * lib/sqrtl.c: Likewise.
17114         * lib/stat-time.h: Likewise.
17115         * lib/stdio--.h: Likewise.
17116         * lib/stdio-safer.h: Likewise.
17117         * lib/stdlib--.h: Likewise.
17118         * lib/stdlib-safer.h: Likewise.
17119         * lib/stdlib.in.h: Likewise.
17120         * lib/stpcpy.c: Likewise.
17121         * lib/stpncpy.c: Likewise.
17122         * lib/strchrnul.c: Likewise.
17123         * lib/strcspn.c: Likewise.
17124         * lib/strerror.c: Likewise.
17125         * lib/strftime.c: Likewise.
17126         * lib/strftime.h: Likewise.
17127         * lib/striconveh.c: Likewise.
17128         * lib/striconveh.h: Likewise.
17129         * lib/striconveha.c: Likewise.
17130         * lib/striconveha.h: Likewise.
17131         * lib/stripslash.c: Likewise.
17132         * lib/strnlen1.c: Likewise.
17133         * lib/strnlen1.h: Likewise.
17134         * lib/strtod.c: Likewise.
17135         * lib/strtoimax.c: Likewise.
17136         * lib/strtok_r.c: Likewise.
17137         * lib/strtol.c: Likewise.
17138         * lib/strtoll.c: Likewise.
17139         * lib/strtoul.c: Likewise.
17140         * lib/strtoull.c: Likewise.
17141         * lib/sysexits.in.h: Likewise.
17142         * lib/tempname.c: Likewise.
17143         * lib/tempname.h: Likewise.
17144         * lib/timespec.h: Likewise.
17145         * lib/tls.c: Likewise.
17146         * lib/tls.h: Likewise.
17147         * lib/tmpdir.c: Likewise.
17148         * lib/tmpdir.h: Likewise.
17149         * lib/tmpfile-safer.c: Likewise.
17150         * lib/tmpfile.c: Likewise.
17151         * lib/trigl.c: Likewise.
17152         * lib/trigl.h: Likewise.
17153         * lib/trim.c: Likewise.
17154         * lib/trim.h: Likewise.
17155         * lib/trunc.c: Likewise.
17156         * lib/truncf.c: Likewise.
17157         * lib/truncl.c: Likewise.
17158         * lib/tsearch.c: Likewise.
17159         * lib/unicodeio.c: Likewise.
17160         * lib/unicodeio.h: Likewise.
17161         * lib/unistd--.h: Likewise.
17162         * lib/unistd-safer.h: Likewise.
17163         * lib/unistdio/ulc-fprintf.c: Likewise.
17164         * lib/unistdio/ulc-vfprintf.c: Likewise.
17165         * lib/unlinkdir.c: Likewise.
17166         * lib/unlinkdir.h: Likewise.
17167         * lib/unlocked-io.h: Likewise.
17168         * lib/unsetenv.c: Likewise.
17169         * lib/userspec.c: Likewise.
17170         * lib/utime.c: Likewise.
17171         * lib/utimecmp.c: Likewise.
17172         * lib/utimecmp.h: Likewise.
17173         * lib/utimens.c: Likewise.
17174         * lib/verify.h: Likewise.
17175         * lib/verror.c: Likewise.
17176         * lib/verror.h: Likewise.
17177         * lib/version-etc-fsf.c: Likewise.
17178         * lib/version-etc.c: Likewise.
17179         * lib/version-etc.h: Likewise.
17180         * lib/vfprintf.c: Likewise.
17181         * lib/vprintf.c: Likewise.
17182         * lib/vsprintf.c: Likewise.
17183         * lib/w32spawn.h: Likewise.
17184         * lib/wait-process.c: Likewise.
17185         * lib/wait-process.h: Likewise.
17186         * lib/wcwidth.c: Likewise.
17187         * lib/write-any-file.c: Likewise.
17188         * lib/xalloc-die.c: Likewise.
17189         * lib/xalloc.h: Likewise.
17190         * lib/xasprintf.c: Likewise.
17191         * lib/xgetcwd.c: Likewise.
17192         * lib/xgetcwd.h: Likewise.
17193         * lib/xgetdomainname.c: Likewise.
17194         * lib/xgetdomainname.h: Likewise.
17195         * lib/xgethostname.c: Likewise.
17196         * lib/xmalloc.c: Likewise.
17197         * lib/xmalloca.c: Likewise.
17198         * lib/xmalloca.h: Likewise.
17199         * lib/xmemcoll.c: Likewise.
17200         * lib/xnanosleep.c: Likewise.
17201         * lib/xreadlink.c: Likewise.
17202         * lib/xreadlink.h: Likewise.
17203         * lib/xsetenv.c: Likewise.
17204         * lib/xsetenv.h: Likewise.
17205         * lib/xstriconv.c: Likewise.
17206         * lib/xstriconv.h: Likewise.
17207         * lib/xstrndup.c: Likewise.
17208         * lib/xstrndup.h: Likewise.
17209         * lib/xstrtod.c: Likewise.
17210         * lib/xstrtod.h: Likewise.
17211         * lib/xstrtol-error.c: Likewise.
17212         * lib/xstrtol.c: Likewise.
17213         * lib/xstrtol.h: Likewise.
17214         * lib/xtime.h: Likewise.
17215         * lib/xvasprintf.c: Likewise.
17216         * lib/xvasprintf.h: Likewise.
17217         * lib/yesno.c: Likewise.
17218         * lib/yesno.h: Likewise.
17219         * posix-modules: Likewise.
17220         * tests/test-alloca-opt.c: Likewise.
17221         * tests/test-arcfour.c: Likewise.
17222         * tests/test-arctwo.c: Likewise.
17223         * tests/test-argmatch.c: Likewise.
17224         * tests/test-argp-2.sh: Likewise.
17225         * tests/test-argp.c: Likewise.
17226         * tests/test-arpa_inet.c: Likewise.
17227         * tests/test-array_list.c: Likewise.
17228         * tests/test-array_oset.c: Likewise.
17229         * tests/test-atexit.c: Likewise.
17230         * tests/test-avltree_list.c: Likewise.
17231         * tests/test-avltree_oset.c: Likewise.
17232         * tests/test-avltreehash_list.c: Likewise.
17233         * tests/test-base64.c: Likewise.
17234         * tests/test-binary-io.c: Likewise.
17235         * tests/test-byteswap.c: Likewise.
17236         * tests/test-c-ctype.c: Likewise.
17237         * tests/test-c-strcasecmp.c: Likewise.
17238         * tests/test-c-strcasestr.c: Likewise.
17239         * tests/test-c-strncasecmp.c: Likewise.
17240         * tests/test-c-strstr.c: Likewise.
17241         * tests/test-canonicalize-lgpl.c: Likewise.
17242         * tests/test-canonicalize.c: Likewise.
17243         * tests/test-carray_list.c: Likewise.
17244         * tests/test-ceilf.c: Likewise.
17245         * tests/test-ceill.c: Likewise.
17246         * tests/test-count-one-bits.c: Likewise.
17247         * tests/test-crc.c: Likewise.
17248         * tests/test-dirname.c: Likewise.
17249         * tests/test-fbufmode.c: Likewise.
17250         * tests/test-fcntl.c: Likewise.
17251         * tests/test-fflush.c: Likewise.
17252         * tests/test-floorf.c: Likewise.
17253         * tests/test-floorl.c: Likewise.
17254         * tests/test-fopen.c: Likewise.
17255         * tests/test-fprintf-posix.c: Likewise.
17256         * tests/test-fprintf-posix.h: Likewise.
17257         * tests/test-fpurge.c: Likewise.
17258         * tests/test-freadable.c: Likewise.
17259         * tests/test-freadahead.c: Likewise.
17260         * tests/test-freading.c: Likewise.
17261         * tests/test-freopen.c: Likewise.
17262         * tests/test-frexp.c: Likewise.
17263         * tests/test-frexpl.c: Likewise.
17264         * tests/test-fseek.c: Likewise.
17265         * tests/test-fseeko.c: Likewise.
17266         * tests/test-fseterr.c: Likewise.
17267         * tests/test-fstrcmp.c: Likewise.
17268         * tests/test-ftell.c: Likewise.
17269         * tests/test-ftello.c: Likewise.
17270         * tests/test-fwritable.c: Likewise.
17271         * tests/test-fwriting.c: Likewise.
17272         * tests/test-getaddrinfo.c: Likewise.
17273         * tests/test-getpass.c: Likewise.
17274         * tests/test-gettimeofday.c: Likewise.
17275         * tests/test-hmac-md5.c: Likewise.
17276         * tests/test-hmac-sha1.c: Likewise.
17277         * tests/test-iconv.c: Likewise.
17278         * tests/test-iconvme.c: Likewise.
17279         * tests/test-inttypes.c: Likewise.
17280         * tests/test-isnan.c: Likewise.
17281         * tests/test-isnanf.c: Likewise.
17282         * tests/test-isnanl-nolibm.c: Likewise.
17283         * tests/test-isnanl.c: Likewise.
17284         * tests/test-isnanl.h: Likewise.
17285         * tests/test-ldexpl.c: Likewise.
17286         * tests/test-linked_list.c: Likewise.
17287         * tests/test-linkedhash_list.c: Likewise.
17288         * tests/test-locale.c: Likewise.
17289         * tests/test-localename.c: Likewise.
17290         * tests/test-lock.c: Likewise.
17291         * tests/test-lseek.c: Likewise.
17292         * tests/test-malloca.c: Likewise.
17293         * tests/test-math.c: Likewise.
17294         * tests/test-mbscasecmp.c: Likewise.
17295         * tests/test-mbscasestr1.c: Likewise.
17296         * tests/test-mbscasestr2.c: Likewise.
17297         * tests/test-mbscasestr3.c: Likewise.
17298         * tests/test-mbscasestr4.c: Likewise.
17299         * tests/test-mbschr.c: Likewise.
17300         * tests/test-mbscspn.c: Likewise.
17301         * tests/test-mbsncasecmp.c: Likewise.
17302         * tests/test-mbspbrk.c: Likewise.
17303         * tests/test-mbspcasecmp.c: Likewise.
17304         * tests/test-mbsrchr.c: Likewise.
17305         * tests/test-mbsspn.c: Likewise.
17306         * tests/test-mbsstr1.c: Likewise.
17307         * tests/test-mbsstr2.c: Likewise.
17308         * tests/test-mbsstr3.c: Likewise.
17309         * tests/test-md5.c: Likewise.
17310         * tests/test-memmem.c: Likewise.
17311         * tests/test-netinet_in.c: Likewise.
17312         * tests/test-open.c: Likewise.
17313         * tests/test-printf-frexp.c: Likewise.
17314         * tests/test-printf-frexpl.c: Likewise.
17315         * tests/test-printf-posix.c: Likewise.
17316         * tests/test-printf-posix.h: Likewise.
17317         * tests/test-rbtree_list.c: Likewise.
17318         * tests/test-rbtree_oset.c: Likewise.
17319         * tests/test-rbtreehash_list.c: Likewise.
17320         * tests/test-read-file.c: Likewise.
17321         * tests/test-rijndael.c: Likewise.
17322         * tests/test-search.c: Likewise.
17323         * tests/test-signbit.c: Likewise.
17324         * tests/test-sleep.c: Likewise.
17325         * tests/test-snprintf-posix.c: Likewise.
17326         * tests/test-snprintf-posix.h: Likewise.
17327         * tests/test-snprintf.c: Likewise.
17328         * tests/test-sprintf-posix.c: Likewise.
17329         * tests/test-sprintf-posix.h: Likewise.
17330         * tests/test-stat-time.c: Likewise.
17331         * tests/test-stdbool.c: Likewise.
17332         * tests/test-stdint.c: Likewise.
17333         * tests/test-stdio.c: Likewise.
17334         * tests/test-stdlib.c: Likewise.
17335         * tests/test-stpncpy.c: Likewise.
17336         * tests/test-strcasestr.c: Likewise.
17337         * tests/test-striconv.c: Likewise.
17338         * tests/test-striconveh.c: Likewise.
17339         * tests/test-striconveha.c: Likewise.
17340         * tests/test-string.c: Likewise.
17341         * tests/test-sys_select.c: Likewise.
17342         * tests/test-sys_socket.c: Likewise.
17343         * tests/test-sys_stat.c: Likewise.
17344         * tests/test-sys_time.c: Likewise.
17345         * tests/test-sysexits.c: Likewise.
17346         * tests/test-time.c: Likewise.
17347         * tests/test-tls.c: Likewise.
17348         * tests/test-trunc.c: Likewise.
17349         * tests/test-truncf.c: Likewise.
17350         * tests/test-truncl.c: Likewise.
17351         * tests/test-unistd.c: Likewise.
17352         * tests/test-vasnprintf-posix.c: Likewise.
17353         * tests/test-vasnprintf-posix2.c: Likewise.
17354         * tests/test-vasnprintf.c: Likewise.
17355         * tests/test-vasprintf-posix.c: Likewise.
17356         * tests/test-vasprintf.c: Likewise.
17357         * tests/test-verify.c: Likewise.
17358         * tests/test-vfprintf-posix.c: Likewise.
17359         * tests/test-vprintf-posix.c: Likewise.
17360         * tests/test-vsnprintf-posix.c: Likewise.
17361         * tests/test-vsnprintf.c: Likewise.
17362         * tests/test-vsprintf-posix.c: Likewise.
17363         * tests/test-wchar.c: Likewise.
17364         * tests/test-wctype.c: Likewise.
17365         * tests/test-wcwidth.c: Likewise.
17366         * tests/test-xstrtol.c: Likewise.
17367         * tests/test-xvasprintf.c: Likewise.
17368         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17369         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17370         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17371         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17372         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17373         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17374         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17375         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17376         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17377         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17378         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17379         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17380         * tests/uniname/test-uninames.c: Likewise.
17381         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17382         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
17383         * tests/unistdio/test-u16-printf1.h: Likewise.
17384         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17385         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17386         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17387         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17388         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17389         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17390         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17391         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
17392         * tests/unistdio/test-u32-printf1.h: Likewise.
17393         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17394         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17395         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17396         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17397         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17398         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17399         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17400         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
17401         * tests/unistdio/test-u8-printf1.h: Likewise.
17402         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17403         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17404         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17405         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17406         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17407         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17408         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17409         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
17410         * tests/unistdio/test-ulc-printf1.h: Likewise.
17411         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17412         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17413         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17414         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17415         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17416         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17417         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17418         * tests/uniwidth/test-u16-width.c: Likewise.
17419         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17420         * tests/uniwidth/test-u32-width.c: Likewise.
17421         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17422         * tests/uniwidth/test-u8-width.c: Likewise.
17423         * tests/uniwidth/test-uc_width.c: Likewise.
17424         * config/srclist-update: Likewise.
17425         (fixlicense): Update to GPLv3+.
17426
17427         Change copyright notice from LGPLv2.1+ to LGPLv3+.
17428         * tests/test-tsearch.c: Change copyright notice.
17429
17430         Change copyright notice from LGPLv2.0+ to LGPLv3+.
17431         * lib/c-strcaseeq.h: Change copyright notice.
17432         * lib/streq.h: Likewise.
17433         * lib/uniconv.h: Likewise.
17434         * lib/uniconv/u-conv-from-enc.h: Likewise.
17435         * lib/uniconv/u-conv-to-enc.h: Likewise.
17436         * lib/uniconv/u-strconv-from-enc.h: Likewise.
17437         * lib/uniconv/u-strconv-to-enc.h: Likewise.
17438         * lib/uniconv/u16-conv-from-enc.c: Likewise.
17439         * lib/uniconv/u16-conv-to-enc.c: Likewise.
17440         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
17441         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
17442         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
17443         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
17444         * lib/uniconv/u32-conv-from-enc.c: Likewise.
17445         * lib/uniconv/u32-conv-to-enc.c: Likewise.
17446         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
17447         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
17448         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
17449         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
17450         * lib/uniconv/u8-conv-from-enc.c: Likewise.
17451         * lib/uniconv/u8-conv-to-enc.c: Likewise.
17452         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
17453         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
17454         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
17455         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
17456         * lib/uniname.h: Likewise.
17457         * lib/uniname/uniname.c: Likewise.
17458         * lib/unistdio.h: Likewise.
17459         * lib/unistdio/u-asnprintf.h: Likewise.
17460         * lib/unistdio/u-asprintf.h: Likewise.
17461         * lib/unistdio/u-printf-args.c: Likewise.
17462         * lib/unistdio/u-printf-args.h: Likewise.
17463         * lib/unistdio/u-printf-parse.h: Likewise.
17464         * lib/unistdio/u-snprintf.h: Likewise.
17465         * lib/unistdio/u-sprintf.h: Likewise.
17466         * lib/unistdio/u-vasprintf.h: Likewise.
17467         * lib/unistdio/u-vsnprintf.h: Likewise.
17468         * lib/unistdio/u-vsprintf.h: Likewise.
17469         * lib/unistdio/u16-asnprintf.c: Likewise.
17470         * lib/unistdio/u16-asprintf.c: Likewise.
17471         * lib/unistdio/u16-printf-parse.c: Likewise.
17472         * lib/unistdio/u16-snprintf.c: Likewise.
17473         * lib/unistdio/u16-sprintf.c: Likewise.
17474         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
17475         * lib/unistdio/u16-u16-asprintf.c: Likewise.
17476         * lib/unistdio/u16-u16-snprintf.c: Likewise.
17477         * lib/unistdio/u16-u16-sprintf.c: Likewise.
17478         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
17479         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
17480         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
17481         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
17482         * lib/unistdio/u16-vasnprintf.c: Likewise.
17483         * lib/unistdio/u16-vasprintf.c: Likewise.
17484         * lib/unistdio/u16-vsnprintf.c: Likewise.
17485         * lib/unistdio/u16-vsprintf.c: Likewise.
17486         * lib/unistdio/u32-asnprintf.c: Likewise.
17487         * lib/unistdio/u32-asprintf.c: Likewise.
17488         * lib/unistdio/u32-printf-parse.c: Likewise.
17489         * lib/unistdio/u32-snprintf.c: Likewise.
17490         * lib/unistdio/u32-sprintf.c: Likewise.
17491         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
17492         * lib/unistdio/u32-u32-asprintf.c: Likewise.
17493         * lib/unistdio/u32-u32-snprintf.c: Likewise.
17494         * lib/unistdio/u32-u32-sprintf.c: Likewise.
17495         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
17496         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
17497         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
17498         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
17499         * lib/unistdio/u32-vasnprintf.c: Likewise.
17500         * lib/unistdio/u32-vasprintf.c: Likewise.
17501         * lib/unistdio/u32-vsnprintf.c: Likewise.
17502         * lib/unistdio/u32-vsprintf.c: Likewise.
17503         * lib/unistdio/u8-asnprintf.c: Likewise.
17504         * lib/unistdio/u8-asprintf.c: Likewise.
17505         * lib/unistdio/u8-printf-parse.c: Likewise.
17506         * lib/unistdio/u8-snprintf.c: Likewise.
17507         * lib/unistdio/u8-sprintf.c: Likewise.
17508         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
17509         * lib/unistdio/u8-u8-asprintf.c: Likewise.
17510         * lib/unistdio/u8-u8-snprintf.c: Likewise.
17511         * lib/unistdio/u8-u8-sprintf.c: Likewise.
17512         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
17513         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
17514         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
17515         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
17516         * lib/unistdio/u8-vasnprintf.c: Likewise.
17517         * lib/unistdio/u8-vasprintf.c: Likewise.
17518         * lib/unistdio/u8-vsnprintf.c: Likewise.
17519         * lib/unistdio/u8-vsprintf.c: Likewise.
17520         * lib/unistdio/ulc-asnprintf.c: Likewise.
17521         * lib/unistdio/ulc-asprintf.c: Likewise.
17522         * lib/unistdio/ulc-printf-parse.c: Likewise.
17523         * lib/unistdio/ulc-snprintf.c: Likewise.
17524         * lib/unistdio/ulc-sprintf.c: Likewise.
17525         * lib/unistdio/ulc-vasnprintf.c: Likewise.
17526         * lib/unistdio/ulc-vasprintf.c: Likewise.
17527         * lib/unistdio/ulc-vsnprintf.c: Likewise.
17528         * lib/unistdio/ulc-vsprintf.c: Likewise.
17529         * lib/unistr.h: Likewise.
17530         * lib/unistr/u-cpy-alloc.h: Likewise.
17531         * lib/unistr/u-cpy.h: Likewise.
17532         * lib/unistr/u-endswith.h: Likewise.
17533         * lib/unistr/u-move.h: Likewise.
17534         * lib/unistr/u-set.h: Likewise.
17535         * lib/unistr/u-startswith.h: Likewise.
17536         * lib/unistr/u-stpcpy.h: Likewise.
17537         * lib/unistr/u-stpncpy.h: Likewise.
17538         * lib/unistr/u-strcat.h: Likewise.
17539         * lib/unistr/u-strcpy.h: Likewise.
17540         * lib/unistr/u-strcspn.h: Likewise.
17541         * lib/unistr/u-strdup.h: Likewise.
17542         * lib/unistr/u-strlen.h: Likewise.
17543         * lib/unistr/u-strncat.h: Likewise.
17544         * lib/unistr/u-strncpy.h: Likewise.
17545         * lib/unistr/u-strnlen.h: Likewise.
17546         * lib/unistr/u-strpbrk.h: Likewise.
17547         * lib/unistr/u-strspn.h: Likewise.
17548         * lib/unistr/u-strstr.h: Likewise.
17549         * lib/unistr/u-strtok.h: Likewise.
17550         * lib/unistr/u16-check.c: Likewise.
17551         * lib/unistr/u16-chr.c: Likewise.
17552         * lib/unistr/u16-cmp.c: Likewise.
17553         * lib/unistr/u16-cpy-alloc.c: Likewise.
17554         * lib/unistr/u16-cpy.c: Likewise.
17555         * lib/unistr/u16-endswith.c: Likewise.
17556         * lib/unistr/u16-mblen.c: Likewise.
17557         * lib/unistr/u16-mbsnlen.c: Likewise.
17558         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17559         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17560         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17561         * lib/unistr/u16-mbtouc.c: Likewise.
17562         * lib/unistr/u16-mbtoucr.c: Likewise.
17563         * lib/unistr/u16-move.c: Likewise.
17564         * lib/unistr/u16-next.c: Likewise.
17565         * lib/unistr/u16-prev.c: Likewise.
17566         * lib/unistr/u16-set.c: Likewise.
17567         * lib/unistr/u16-startswith.c: Likewise.
17568         * lib/unistr/u16-stpcpy.c: Likewise.
17569         * lib/unistr/u16-stpncpy.c: Likewise.
17570         * lib/unistr/u16-strcat.c: Likewise.
17571         * lib/unistr/u16-strchr.c: Likewise.
17572         * lib/unistr/u16-strcmp.c: Likewise.
17573         * lib/unistr/u16-strcpy.c: Likewise.
17574         * lib/unistr/u16-strcspn.c: Likewise.
17575         * lib/unistr/u16-strdup.c: Likewise.
17576         * lib/unistr/u16-strlen.c: Likewise.
17577         * lib/unistr/u16-strmblen.c: Likewise.
17578         * lib/unistr/u16-strmbtouc.c: Likewise.
17579         * lib/unistr/u16-strncat.c: Likewise.
17580         * lib/unistr/u16-strncmp.c: Likewise.
17581         * lib/unistr/u16-strncpy.c: Likewise.
17582         * lib/unistr/u16-strnlen.c: Likewise.
17583         * lib/unistr/u16-strpbrk.c: Likewise.
17584         * lib/unistr/u16-strrchr.c: Likewise.
17585         * lib/unistr/u16-strspn.c: Likewise.
17586         * lib/unistr/u16-strstr.c: Likewise.
17587         * lib/unistr/u16-strtok.c: Likewise.
17588         * lib/unistr/u16-to-u32.c: Likewise.
17589         * lib/unistr/u16-to-u8.c: Likewise.
17590         * lib/unistr/u16-uctomb-aux.c: Likewise.
17591         * lib/unistr/u16-uctomb.c: Likewise.
17592         * lib/unistr/u32-check.c: Likewise.
17593         * lib/unistr/u32-chr.c: Likewise.
17594         * lib/unistr/u32-cmp.c: Likewise.
17595         * lib/unistr/u32-cpy-alloc.c: Likewise.
17596         * lib/unistr/u32-cpy.c: Likewise.
17597         * lib/unistr/u32-endswith.c: Likewise.
17598         * lib/unistr/u32-mblen.c: Likewise.
17599         * lib/unistr/u32-mbsnlen.c: Likewise.
17600         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17601         * lib/unistr/u32-mbtouc.c: Likewise.
17602         * lib/unistr/u32-mbtoucr.c: Likewise.
17603         * lib/unistr/u32-move.c: Likewise.
17604         * lib/unistr/u32-next.c: Likewise.
17605         * lib/unistr/u32-prev.c: Likewise.
17606         * lib/unistr/u32-set.c: Likewise.
17607         * lib/unistr/u32-startswith.c: Likewise.
17608         * lib/unistr/u32-stpcpy.c: Likewise.
17609         * lib/unistr/u32-stpncpy.c: Likewise.
17610         * lib/unistr/u32-strcat.c: Likewise.
17611         * lib/unistr/u32-strchr.c: Likewise.
17612         * lib/unistr/u32-strcmp.c: Likewise.
17613         * lib/unistr/u32-strcpy.c: Likewise.
17614         * lib/unistr/u32-strcspn.c: Likewise.
17615         * lib/unistr/u32-strdup.c: Likewise.
17616         * lib/unistr/u32-strlen.c: Likewise.
17617         * lib/unistr/u32-strmblen.c: Likewise.
17618         * lib/unistr/u32-strmbtouc.c: Likewise.
17619         * lib/unistr/u32-strncat.c: Likewise.
17620         * lib/unistr/u32-strncmp.c: Likewise.
17621         * lib/unistr/u32-strncpy.c: Likewise.
17622         * lib/unistr/u32-strnlen.c: Likewise.
17623         * lib/unistr/u32-strpbrk.c: Likewise.
17624         * lib/unistr/u32-strrchr.c: Likewise.
17625         * lib/unistr/u32-strspn.c: Likewise.
17626         * lib/unistr/u32-strstr.c: Likewise.
17627         * lib/unistr/u32-strtok.c: Likewise.
17628         * lib/unistr/u32-to-u16.c: Likewise.
17629         * lib/unistr/u32-to-u8.c: Likewise.
17630         * lib/unistr/u32-uctomb.c: Likewise.
17631         * lib/unistr/u8-check.c: Likewise.
17632         * lib/unistr/u8-chr.c: Likewise.
17633         * lib/unistr/u8-cmp.c: Likewise.
17634         * lib/unistr/u8-cpy-alloc.c: Likewise.
17635         * lib/unistr/u8-cpy.c: Likewise.
17636         * lib/unistr/u8-endswith.c: Likewise.
17637         * lib/unistr/u8-mblen.c: Likewise.
17638         * lib/unistr/u8-mbsnlen.c: Likewise.
17639         * lib/unistr/u8-mbtouc-aux.c: Likewise.
17640         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17641         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17642         * lib/unistr/u8-mbtouc.c: Likewise.
17643         * lib/unistr/u8-mbtoucr.c: Likewise.
17644         * lib/unistr/u8-move.c: Likewise.
17645         * lib/unistr/u8-next.c: Likewise.
17646         * lib/unistr/u8-prev.c: Likewise.
17647         * lib/unistr/u8-set.c: Likewise.
17648         * lib/unistr/u8-startswith.c: Likewise.
17649         * lib/unistr/u8-stpcpy.c: Likewise.
17650         * lib/unistr/u8-stpncpy.c: Likewise.
17651         * lib/unistr/u8-strcat.c: Likewise.
17652         * lib/unistr/u8-strchr.c: Likewise.
17653         * lib/unistr/u8-strcmp.c: Likewise.
17654         * lib/unistr/u8-strcpy.c: Likewise.
17655         * lib/unistr/u8-strcspn.c: Likewise.
17656         * lib/unistr/u8-strdup.c: Likewise.
17657         * lib/unistr/u8-strlen.c: Likewise.
17658         * lib/unistr/u8-strmblen.c: Likewise.
17659         * lib/unistr/u8-strmbtouc.c: Likewise.
17660         * lib/unistr/u8-strncat.c: Likewise.
17661         * lib/unistr/u8-strncmp.c: Likewise.
17662         * lib/unistr/u8-strncpy.c: Likewise.
17663         * lib/unistr/u8-strnlen.c: Likewise.
17664         * lib/unistr/u8-strpbrk.c: Likewise.
17665         * lib/unistr/u8-strrchr.c: Likewise.
17666         * lib/unistr/u8-strspn.c: Likewise.
17667         * lib/unistr/u8-strstr.c: Likewise.
17668         * lib/unistr/u8-strtok.c: Likewise.
17669         * lib/unistr/u8-to-u16.c: Likewise.
17670         * lib/unistr/u8-to-u32.c: Likewise.
17671         * lib/unistr/u8-uctomb-aux.c: Likewise.
17672         * lib/unistr/u8-uctomb.c: Likewise.
17673         * lib/unitypes.h: Likewise.
17674         * lib/uniwidth.h: Likewise.
17675         * lib/uniwidth/cjk.h: Likewise.
17676         * lib/uniwidth/u16-strwidth.c: Likewise.
17677         * lib/uniwidth/u16-width.c: Likewise.
17678         * lib/uniwidth/u32-strwidth.c: Likewise.
17679         * lib/uniwidth/u32-width.c: Likewise.
17680         * lib/uniwidth/u8-strwidth.c: Likewise.
17681         * lib/uniwidth/u8-width.c: Likewise.
17682         * lib/uniwidth/width.c: Likewise.
17683
17684 2007-10-07  Bruno Haible  <bruno@clisp.org>
17685
17686         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
17687         The file is still under LGPL (see modules/inttypes).
17688
17689 2007-10-06  Bruno Haible  <bruno@clisp.org>
17690
17691         * modules/trunc (Dependencies): Add 'extensions'.
17692         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
17693         Reported by Ben Pfaff <blp@gnu.org>.
17694
17695 2007-10-06  Bruno Haible  <bruno@clisp.org>
17696
17697         * modules/freopen-tests: New file.
17698         * tests/test-freopen.c: New file.
17699
17700         * modules/fopen-tests: New file.
17701         * tests/test-fopen.c: New file.
17702
17703         * modules/fopen: New file.
17704         * lib/fopen.c: New file.
17705         * m4/fopen.m4: New file.
17706         * modules/freopen: New file.
17707         * lib/freopen.c: New file.
17708         * m4/freopen.m4: New file.
17709         * lib/stdio.in.h (fopen, freopen): New declarations.
17710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17711         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17712         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
17713         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17714         * doc/functions/fopen.texi: Mention the 'fopen' module.
17715         * doc/functions/freopen.texi: Mention the 'freopen' module.
17716
17717 2007-10-06  Bruno Haible  <bruno@clisp.org>
17718
17719         * modules/open-tests: New file.
17720         * tests/test-open.c: New file.
17721
17722         * modules/open: New file.
17723         * lib/open.c: New file.
17724         * m4/open.m4: New file.
17725         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17726         lib/open.c does.
17727         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17729         macros.
17730         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17731         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17732         REPLACE_OPEN.
17733         * doc/functions/open.texi: Mention the 'open' module.
17734
17735 2007-10-04  Bruno Haible  <bruno@clisp.org>
17736
17737         * modules/ceill-tests: New file.
17738         * tests/test-ceill.c: New file.
17739
17740         * modules/ceill: New file.
17741         * lib/ceill.c: Replace entire file.
17742         * m4/ceill.m4: New file.
17743         * lib/math.in.h (ceill): Replace declaration.
17744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17745         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17746         * doc/functions/ceill.texi: Mention the 'ceill' module.
17747         * modules/mathl (Files): Remove lib/ceill.c.
17748         (Depends-on): Add ceill.
17749
17750 2007-10-04  Bruno Haible  <bruno@clisp.org>
17751
17752         * modules/ceilf-tests: New file.
17753         * tests/test-ceilf.c: New file.
17754
17755         * modules/ceilf: New file.
17756         * lib/ceil.c: New file.
17757         * lib/ceilf.c: New file.
17758         * m4/ceilf.m4: New file.
17759         * lib/math.in.h (ceilf): New declaration.
17760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17761         HAVE_DECL_CEILF.
17762         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17763         HAVE_DECL_CEILF.
17764         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17765
17766 2007-10-04  Bruno Haible  <bruno@clisp.org>
17767
17768         * modules/floorl-tests: New file.
17769         * tests/test-floorl.c: New file.
17770
17771         * modules/floorl: New file.
17772         * lib/floorl.c: Replace entire file.
17773         * m4/floorl.m4: New file.
17774         * lib/math.in.h (floorl): Replace declaration.
17775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17776         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17777         * doc/functions/floorl.texi: Mention the 'floorl' module.
17778         * modules/mathl (Files): Remove lib/floorl.c.
17779         (Depends-on): Add floorl.
17780
17781 2007-10-04  Bruno Haible  <bruno@clisp.org>
17782
17783         * modules/floorf-tests: New file.
17784         * tests/test-floorf.c: New file.
17785
17786         * modules/floorf: New file.
17787         * lib/floor.c: New file.
17788         * lib/floorf.c: New file.
17789         * m4/floorf.m4: New file.
17790         * lib/math.in.h (floorf): New declaration.
17791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17792         HAVE_DECL_FLOORF.
17793         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17794         HAVE_DECL_FLOORF.
17795         * doc/functions/floorf.texi: Mention the 'floorf' module.
17796
17797 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17798             Bruno Haible  <bruno@clisp.org>
17799
17800         Advertise for the Git server instead of the CVS server.
17801         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17802         repository instead of the CVS one.
17803         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17804         about all VCS systems generically.
17805         * doc/gnulib.texi (Introduction): Capitalize `Git'.
17806
17807 2007-10-04  Bruno Haible  <bruno@clisp.org>
17808
17809         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17810         means.
17811         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17812
17813 2007-10-04  Bruno Haible  <bruno@clisp.org>
17814
17815         * modules/truncl-tests: New file.
17816         * tests/test-truncl.c: New file.
17817
17818         * modules/truncl: New file.
17819         * lib/truncl.c: New file.
17820         * m4/truncl.m4: New file.
17821         * lib/math.in.h (truncl): New declaration.
17822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17823         HAVE_DECL_TRUNCL.
17824         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17825         HAVE_DECL_TRUNCL.
17826         * doc/functions/truncl.texi: Mention the 'truncl' module.
17827
17828 2007-10-04  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/truncf-tests: New file.
17831         * tests/test-truncf.c: New file.
17832
17833         * modules/truncf: New file.
17834         * lib/trunc.c: Make paramerizable through USE_* macros.
17835         * lib/truncf.c: New file.
17836         * m4/truncf.m4: New file.
17837         * lib/math.in.h (truncf): New declaration.
17838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17839         HAVE_DECL_TRUNCF.
17840         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17841         HAVE_DECL_TRUNCF.
17842         * doc/functions/truncf.texi: Mention the 'truncf' module.
17843
17844 2007-10-03  Bruno Haible  <bruno@clisp.org>
17845
17846         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17847         augmentation also for tests modules.
17848         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17849         * modules/atexit-tests (Makefile.am): Likewise.
17850         * modules/binary-io-tests (Makefile.am): Likewise.
17851         * modules/c-strcase-tests (Makefile.am): Likewise.
17852         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17853         * modules/canonicalize-tests (Makefile.am): Likewise.
17854         * modules/closein-tests (Makefile.am): Likewise.
17855         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17856         * modules/freadahead-tests (Makefile.am): Likewise.
17857         * modules/fseek-tests (Makefile.am): Likewise.
17858         * modules/fseeko-tests (Makefile.am): Likewise.
17859         * modules/ftell-tests (Makefile.am): Likewise.
17860         * modules/ftello-tests (Makefile.am): Likewise.
17861         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17862         * modules/isnanl-tests (Makefile.am): Likewise.
17863         * modules/lseek-tests (Makefile.am): Likewise.
17864         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17865         * modules/mbscasestr-tests (Makefile.am): Likewise.
17866         * modules/mbschr-tests (Makefile.am): Likewise.
17867         * modules/mbscspn-tests (Makefile.am): Likewise.
17868         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17869         * modules/mbspbrk-tests (Makefile.am): Likewise.
17870         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17871         * modules/mbsrchr-tests (Makefile.am): Likewise.
17872         * modules/mbsspn-tests (Makefile.am): Likewise.
17873         * modules/mbsstr-tests (Makefile.am): Likewise.
17874         * modules/printf-posix-tests (Makefile.am): Likewise.
17875         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17876         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17877         * modules/tsearch-tests (Makefile.am): Likewise.
17878         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17879         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17880         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17881         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17882         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17883         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17884         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17885         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17886         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17887         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17888         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17889         * modules/xstrtol-tests (Makefile.am): Likewise.
17890         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17891         * modules/yesno-tests (Makefile.am): Likewise.
17892
17893 2007-10-03  Bruno Haible  <bruno@clisp.org>
17894
17895         * modules/trunc-tests: New file.
17896         * tests/test-trunc.c: New file.
17897
17898         * modules/trunc: New file.
17899         * lib/trunc.c: New file.
17900         * m4/trunc.m4: New file.
17901         * lib/math.in.h (trunc): New declaration.
17902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17903         HAVE_DECL_TRUNC.
17904         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17905         HAVE_DECL_TRUNC.
17906         * doc/functions/trunc.texi: Mention the 'trunc' module.
17907
17908 2007-10-03  Bruno Haible  <bruno@clisp.org>
17909
17910         * tests/test-fpending.c: New file, mostly copied
17911         from coreutils/lib/t-fpending.c.
17912         * modules/fpending-tests: New file.
17913
17914 2007-10-03  Bruno Haible  <bruno@clisp.org>
17915
17916         Port the stdio extensions to QNX (untested).
17917         * lib/fseterr.c (fseterr): Add support for QNX.
17918         * lib/fbufmode.c (fbufmode): Likewise.
17919         * lib/freadable.c (freadable): Likewise.
17920         * lib/fwritable.c (fwritable): Likewise.
17921         * lib/freading.c (freading): Likewise.
17922         * lib/fwriting.c (fwriting): Likewise.
17923         * lib/freadahead.c (freadahed): Likewise.
17924         * lib/fpurge.c (fpurge): Likewise.
17925         * lib/fseeko.c (rpl_fseeko): Likewise.
17926
17927 2007-10-03  Bruno Haible  <bruno@clisp.org>
17928             Jim Meyering  <jim@meyering.net>
17929             Eric Blake  <ebb9@byu.net>
17930
17931         * doc/relocatable.texi: Use @command instead of @program.
17932
17933 2007-10-02  Jim Meyering  <jim@meyering.net>
17934
17935         Perform one more "_.h" -> ".in.h" substitution.
17936         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17937         instead of unistd_.h here, too.
17938
17939 2007-10-01  Bruno Haible  <bruno@clisp.org>
17940
17941         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17942         Needed for the alloca-opt module.
17943
17944 2007-09-30  Bruno Haible  <bruno@clisp.org>
17945
17946         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17947         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17948         alloca_.h.
17949         * lib/argz.in.h: Renamed from lib/argz_.h.
17950         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17951         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17952         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17953         byteswap_.h.
17954         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17955         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17956         dirent_.h.
17957         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17958         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17959         fcntl_.h.
17960         * lib/float.in.h: Renamed from lib/float_.h.
17961         * modules/float (Files, Makefile.am): Use float.in.h instead of
17962         float_.h.
17963         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17964         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17965         fnmatch_.h.
17966         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17967         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17968         getopt_.h.
17969         * lib/glob.in.h: Renamed from lib/glob_.h.
17970         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17971         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17972         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17973         iconv_.h.
17974         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17975         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17976         inttypes_.h.
17977         * lib/locale.in.h: Renamed from lib/locale_.h.
17978         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17979         locale_.h.
17980         * lib/math.in.h: Renamed from lib/math_.h.
17981         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17982         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17983         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17984         of netinet_in_.h. Add dependency.
17985         * lib/poll.in.h: Renamed from lib/poll_.h.
17986         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17987         * lib/search.in.h: Renamed from lib/search_.h.
17988         * modules/search (Files, Makefile.am): Use search.in.h instead of
17989         search_.h.
17990         * lib/signal.in.h: Renamed from lib/signal_.h.
17991         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17992         _signal.h.
17993         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17994         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17995         stdbool_.h.
17996         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17997         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17998         stdint_.h.
17999         * lib/stdio.in.h: Renamed from lib/stdio_.h.
18000         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
18001         stdio_.h.
18002         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
18003         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
18004         stdlib_.h.
18005         * lib/string.in.h: Renamed from lib/string_.h.
18006         * modules/string (Files, Makefile.am): Use string.in.h instead of
18007         string_.h.
18008         * doc/gnulib-tool.texi (Initial import): Update.
18009         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
18010         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
18011         of sys_select_.h. Add dependency.
18012         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
18013         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
18014         of sys_socket_.h.
18015         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
18016         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
18017         sys_stat_.h.
18018         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
18019         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
18020         sys_time_.h.
18021         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
18022         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
18023         sysexits_.h.
18024         * lib/time.in.h: Renamed from lib/time_.h.
18025         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
18026         * lib/unistd.in.h: Renamed from lib/unistd_.h.
18027         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
18028         unistd_.h.
18029         * lib/wchar.in.h: Renamed from lib/wchar_.h.
18030         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
18031         wchar_.h.
18032         * lib/wctype.in.h: Renamed from lib/wctype_.h.
18033         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
18034         wctype_.h.
18035         * build-aux/bootstrap (slurp): Update.
18036         * lib/.cppi-disable: Update.
18037
18038 2007-09-30  Bruno Haible  <bruno@clisp.org>
18039
18040         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
18041         Needed on BeOS.
18042
18043 2007-09-30  Bruno Haible  <bruno@clisp.org>
18044
18045         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
18046
18047 2007-09-29  Bruno Haible  <bruno@clisp.org>
18048
18049         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
18050
18051 2007-09-29  Bruno Haible  <bruno@clisp.org>
18052
18053         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
18054         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
18055         * build-aux/install-reloc: Compile also areadlink.c.
18056         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
18057
18058 2007-09-29  Bruno Haible  <bruno@clisp.org>
18059
18060         * gnulib-tool (func_emit_initmacro_done): Indentation.
18061
18062 2007-09-29  Bruno Haible  <bruno@clisp.org>
18063
18064         * README: Add CVS checkout update instructions.
18065         Info from Bob Proulx <bob@proulx.com>.
18066
18067 2007-09-28  Eric Blake  <ebb9@byu.net>
18068
18069         Provide move-if-change.
18070         * build-aux/move-if-change: New file, based on best practice
18071         rather than any canonical upstream location.
18072
18073 2007-09-28  Jim Meyering  <jim@meyering.net>
18074
18075         Fix canonicalize loop-detection corner case.
18076         Do not attempt to stat the symlink values stored via seen_triple.
18077         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
18078         on linux-2.6.18, (but not 2.6.22).
18079         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
18080         triple_compare.  The former compares dev,ino,filename, while the latter
18081         would actually stat dirname(filename) when dev and ino were equal.
18082         * lib/hash-triple.c: Install <string.h>.
18083         (STREQ): Define.
18084         (triple_compare_ino_str): New function.
18085         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
18086
18087 2007-09-28  Eric Blake  <ebb9@byu.net>
18088
18089         Enforce that AC_REPLACE_FUNCS files exist.
18090         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
18091         override check for typos.
18092
18093         Fix test-closein on Solaris 10.
18094         * tests/test-closein.c (main): Don't assume stdin can be inherited
18095         closed on all systems.
18096         * tests/test-closein.sh: Likewise.
18097         Reported by Piotr Tarnowski.
18098
18099 2007-09-28  Jim Meyering  <jim@meyering.net>
18100
18101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
18102
18103 2007-09-27  Jim Meyering  <jim@meyering.net>
18104
18105         canonicalize: Avoid a false-positive cycle failure.
18106         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
18107         Sort.  Remove cycle-check.
18108         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
18109         not cycle-check.h.
18110         (seen_triple): New function.
18111         (canonicalize_filename_mode): Use it instead of cycle-check.
18112         * tests/test-canonicalize.c: Add a test for this bug.
18113         * tests/test-canonicalize.sh: Set up and run the test.
18114
18115         New module, file-set, from coreutils.
18116         * modules/file-set: Define it.
18117         * lib/file-set.c, lib/file-set.h: Implement.
18118
18119         New module, hash-triple, from coreutils.
18120         * modules/hash-triple: Define it.
18121         * lib/hash-triple.c, lib/hash-triple.h: Implement.
18122
18123 2007-09-25  Eric Blake  <ebb9@byu.net>
18124
18125         Fix strerror on Interix.
18126         * lib/string_.h (strerror): Declare replacement.
18127         * doc/functions/strerror.texi (strerror): Document the Interix
18128         shortcoming.
18129         * modules/string (Makefile.am): Support new hooks.
18130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
18131         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
18132         gl_FUNC_STRERROR_SEPARATE.
18133         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
18134         * lib/strerror.c (rpl_strerror): Provide replacement.
18135         * modules/strerror (Depends-on): Add string.
18136         (configure.ac): Detect use of module.
18137         * tests/test-strerror.c: New file.
18138         * modules/strerror-tests: New test module.
18139         * modules/argp (Depends-on): Add strerror.
18140         * modules/error (Depends-on): Likewise.
18141         Reported by Martin Koeppe.
18142
18143 2007-09-24  Bruno Haible  <bruno@clisp.org>
18144
18145         * README: Update git instructions.
18146
18147 2007-09-24  Eric Blake  <ebb9@byu.net>
18148
18149         Revert fpending breakage from 2007-09-08.
18150         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
18151         __fpending.c.
18152
18153 2007-09-24  Jim Meyering  <jim@meyering.net>
18154
18155         filenamecat.c: Add a test.
18156         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
18157         showing how the function works when DIR is the empty string.
18158
18159 2007-09-21  Simon Josefsson  <simon@josefsson.org>
18160
18161         * tests/test-canonicalize.sh: Turn on executable bit.
18162
18163 2007-09-19  Eric Blake  <ebb9@byu.net>
18164
18165         * README: Update CVS instructions.
18166
18167 2007-09-18  Bruno Haible  <bruno@clisp.org>
18168
18169         * modules/areadlink: New file.
18170         * lib/areadlink.h (areadlink): New declaration.
18171         * lib/areadlink.c: New file, based on lib/xreadlink.c.
18172
18173 2007-09-17  Jim Meyering  <jim@meyering.net>
18174
18175         * lib/savewd.c (ESTALE) [!defined]: Define.
18176         Reported to be required on Interix by Martin Koeppe.
18177
18178 2007-09-17  Bruno Haible  <bruno@clisp.org>
18179
18180         * gnulib-tool (func_version): Use $version.
18181
18182 2007-09-16  Bruno Haible  <bruno@clisp.org>
18183
18184         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
18185         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
18186         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
18187         Reported by Greg Schafer <gschafer@zip.com.au>.
18188
18189 2007-09-15  Bruno Haible  <bruno@clisp.org>
18190
18191         * gnulib-tool (sed): Try a little harder to make bash understand the
18192         alias.
18193         Reported by Bruce Korb <bruce.korb@gmail.com>.
18194
18195 2007-09-13  Eric Blake  <ebb9@byu.net>
18196
18197         * ChangeLog: Remove conflict markers.
18198
18199 2007-09-13  Simon Josefsson  <simon@josefsson.org>
18200
18201         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
18202         Reported by Bruno Haible <bruno@clisp.org>.
18203
18204 2007-09-12  Bruno Haible  <bruno@clisp.org>
18205
18206         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
18207         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
18208         is not defined.
18209
18210 2007-09-12  Eric Blake  <ebb9@byu.net>
18211
18212         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
18213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
18214         Autoconf definition.
18215         * modules/euidaccess (Depends-on): Add extensions, for
18216         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
18217         * modules/fnmatch (Depends-on): Likewise.
18218         * modules/getaddrinfo (Depends-on): Likewise.
18219         * modules/getdelim (Depends-on): Likewise.
18220         * modules/getline (Depends-on): Likewise.
18221         * modules/getsubopt (Depends-on): Likewise.
18222         * modules/gettext (Depends-on): Likewise.
18223         * modules/group-member (Depends-on): Likewise.
18224         * modules/mbchar (Depends-on): Likewise.
18225         * modules/memmem (Depends-on): Likewise.
18226         * modules/mempcpy (Depends-on): Likewise.
18227         * modules/memrchr (Depends-on): Likewise.
18228         * modules/pagealign_alloc (Depends-on): Likewise.
18229         * modules/readutmp (Depends-on): Likewise.
18230         * modules/stpcpy (Depends-on): Likewise.
18231         * modules/stpncpy (Depends-on): Likewise.
18232         * modules/strchrnul (Depends-on): Likewise.
18233         * modules/strndup (Depends-on): Likewise.
18234         * modules/strsep (Depends-on): Likewise.
18235         * modules/strverscmp (Depends-on): Likewise.
18236         * modules/vasprintf (Depends-on): Likewise.
18237         * modules/wcwidth (Depends-on): Likewise.
18238         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
18239         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
18240         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
18241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
18242         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18243         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18244         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
18245         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18246         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
18247         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18249         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18250         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18251         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18252         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
18253         * m4/readutmp.m4 (gl_READUTMP): Likewise.
18254         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18255         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18257         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18258         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18259         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18260         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18261         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
18262         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
18263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18264         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
18265         so that lock.m4 can be used in gettext without extensions module.
18266
18267 2007-09-11  Bruno Haible  <bruno@clisp.org>
18268
18269         * m4/isc-posix.m4: Remove file.
18270         Suggested by Eric Blake.
18271
18272 2007-09-11  Eric Blake  <ebb9@byu.net>
18273
18274         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
18275
18276 2007-09-10  Bruno Haible  <bruno@clisp.org>
18277
18278         * posix-modules: Fix typo in error message.
18279         Reported by Matt <mkraai@beckman.com>.
18280
18281 2007-09-09  Bruno Haible  <bruno@clisp.org>
18282
18283         * doc/functions/getdelim.texi: Update list of platforms lacking the
18284         function.
18285         * doc/functions/getline.texi: Likewise.
18286
18287 2007-09-09  Jim Meyering  <jim@meyering.net>
18288
18289         * lib/hash.c (hash_initialize): Detect calloc failure.
18290         Reported by Bruno Haible.
18291
18292 2007-09-09  Bruno Haible  <bruno@clisp.org>
18293
18294         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
18295         malloc or realloc fails.
18296
18297 2007-09-09  Bruno Haible  <bruno@clisp.org>
18298
18299         * modules/getcwd (Depends-on): Add malloc-posix.
18300         * modules/glob (Depends-on): Likewise.
18301         * modules/putenv (Depends-on): Likewise.
18302         * modules/strdup (Depends-on): Likewise.
18303         * modules/getdelim (Depends-on): Add realloc-posix.
18304         * modules/read-file (Depends-on): Likewise.
18305
18306 2007-09-09  Bruno Haible  <bruno@clisp.org>
18307
18308         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
18309         (gl_FUNC_MALLOC_POSIX): Require it.
18310         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
18311         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
18312         * modules/realloc (Files): Add m4/malloc.m4.
18313         * modules/calloc (Files): Likewise.
18314
18315 2007-09-09  Bruno Haible  <bruno@clisp.org>
18316
18317         * modules/malloc-posix: New file.
18318         * modules/malloc (Depends-on): Add malloc-posix.
18319         * lib/malloc.c: Include errno.h.
18320         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
18321         and a POSIX-compatible malloc into a single function. Set ENOMEM
18322         when returning NULL.
18323         * m4/malloc.m4: New file.
18324         * doc/functions/malloc.texi: Mention the malloc-posix module.
18325         * lib/stdlib_.h (malloc): New declaration.
18326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18327         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
18328         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
18329         and HAVE_MALLOC_POSIX.
18330
18331 2007-09-09  Bruno Haible  <bruno@clisp.org>
18332
18333         * modules/realloc-posix: New file.
18334         * modules/realloc (Depends-on): Add realloc-posix.
18335         * lib/realloc.c: Include errno.h.
18336         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
18337         and a POSIX-compatible realloc into a single function. Set ENOMEM
18338         when returning NULL.
18339         * m4/realloc.m4: New file.
18340         * doc/functions/realloc.texi: Mention the realloc-posix module.
18341         * lib/stdlib_.h (realloc): New declaration.
18342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18343         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
18344         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
18345         and HAVE_REALLOC_POSIX.
18346
18347 2007-09-09  Bruno Haible  <bruno@clisp.org>
18348
18349         * modules/calloc-posix: New file.
18350         * modules/calloc (Depends-on): Add calloc-posix.
18351         * lib/calloc.c: Include errno.h.
18352         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
18353         and a POSIX-compatible calloc into a single function. Set ENOMEM
18354         when returning NULL.
18355         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
18356         * doc/functions/calloc.texi: Mention the calloc-posix module.
18357         * lib/stdlib_.h (calloc): New declaration.
18358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18359         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
18360         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
18361         and HAVE_CALLOC_POSIX.
18362
18363 2007-09-09  Bruno Haible  <bruno@clisp.org>
18364
18365         Allow for modules to show an arbitrary notice.
18366         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
18367         * gnulib-tool: New option --extract-notice.
18368         (func_usage): Document it.
18369         (sed_extract_prog): Update.
18370         (func_get_notice): New function.
18371         (func_modules_notice): New function.
18372         (func_import, func_create_testdir): Invoke it.
18373         Suggested by Jim Meyering.
18374
18375 2007-09-09  Bruno Haible  <bruno@clisp.org>
18376
18377         * gnulib-tool: New options --verbose, --quiet.
18378         (func_usage): Document them.
18379         (verbose): New variable.
18380         (func_execute_command): New function.
18381         (func_import): Don't show the module list and the file list if
18382         $verbose < 0.
18383         (func_create_testdir): Likewise. Use func_execute_command.
18384         (func_create_megatestdir): Use func_execute_command.
18385
18386 2007-09-08  Bruno Haible  <bruno@clisp.org>
18387
18388         * gnulib-tool (func_import): Prefer rsync over wget when available,
18389         for fetching the PO files.
18390
18391 2007-09-08  Bruno Haible  <bruno@clisp.org>
18392
18393         * posix-modules: New file. Portions copied from gnulib-tool.
18394         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
18395
18396 2007-09-08  Jim Meyering  <jim@meyering.net>
18397
18398         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
18399         * lib/fpending.h: Rename from __fpending.h.
18400         * lib/fpending.c: Rename from __fpending.c.
18401         Include "fpending.h", not "__fpending.h".
18402         * lib/__fpending.h, lib/__fpending.c: Remove files.
18403         * modules/fpending (Files): Reflect new file names.
18404         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
18405
18406 2007-09-08  Bruno Haible  <bruno@clisp.org>
18407
18408         * m4/inttypes-h.m4: Remove stub file.
18409
18410 2007-09-07  Simon Josefsson  <simon@josefsson.org>
18411
18412         * doc/headers/stdint.texi: Discuss #include_next issue.
18413
18414 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18415
18416         * build-aux/bootstrap: Remove obsolete comment about wget --help.
18417
18418 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18419
18420         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
18421         in variable name.
18422
18423 2007-09-03  Jim Meyering  <jim@meyering.net>
18424
18425         New module: git-version-gen.
18426         * modules/git-version-gen: New file.
18427
18428         Import changes from coreutils for bootstrap script.
18429
18430         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
18431
18432         bootstrap: uses rsync to download the .po files
18433         * build-aux/bootstrap (po_download_command_format): New global.
18434         (download_po_files): Use rsync.
18435         (update_po_files): Don't remove .po files after download,
18436         so future rsync runs can take advantage of the copies.
18437
18438         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
18439
18440         Solve the unnecessary-.po-file-regeneration problem once and for all.
18441         * build-aux/bootstrap (download_po_files): New function, renamed from
18442         get_translations.  Now, downloads, but doesn't update LINGUAS.
18443         (update_po_files): New function.
18444
18445         bootstrap: Ignore more.
18446         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
18447         uniwidth to e.g., lib/.gitignore.
18448         (slurp): Handle the sys_stat_.h -> sys mapping, too.
18449
18450         * build-aux/bootstrap: New setting: vc_ignore.
18451         (insert_sorted_if_absent): Create $file if absent.
18452         Adapt to new, possibly empty, list: $vc_ignore.
18453
18454         bootstrap: generate more ignorable names
18455         * build-aux/bootstrap (slurp): When generating ignorable names,
18456         also map .sin to .sed, .gperf to .c, and .y to .c.
18457
18458 2007-09-03  Jim Meyering  <jim@meyering.net>
18459
18460         * build-aux/git-version-gen: New file, from coreutils.  For details, see
18461         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
18462
18463 2007-09-02  Bruno Haible  <bruno@clisp.org>
18464
18465         Fix mis-recognition of 'mcs' on QNX 6.
18466         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
18467         output contains the string "Mono".
18468         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
18469         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
18470
18471 2007-09-01  Bruno Haible  <bruno@clisp.org>
18472
18473         Fix collision between uniwidth/* and linebreak modules.
18474         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
18475         u32_width): Remove declarations.
18476         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
18477         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
18478         streq3, streq2, streq1, streq0): Remove functions.
18479         (STREQ): Remove macro.
18480         (is_cjk_encoding): Remove function.
18481         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
18482         (uc_width, u8_width, u16_width, u32_width): Remove functions.
18483         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
18484         * NEWS: Document the change.
18485
18486 2007-09-01  Bruno Haible  <bruno@clisp.org>
18487
18488         * lib/streq.h: Add double-inclusion guard.
18489
18490 2007-09-01  Karl Berry  <karl@gnu.org>
18491
18492         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
18493
18494 2007-08-28  Jim Meyering  <jim@meyering.net>
18495
18496         Rename mreadlink_with_size to areadlink_with_size.
18497         * NEWS: Document the change.
18498         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
18499         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
18500         * lib/mreadlink.h: Rename this to...
18501         * lib/areadlink.h: ...this.
18502         * modules/mreadlink-with-size: Rename this to...
18503         * modules/areadlink-with-size: ...this.
18504         * lib/canonicalize.c: Reflect the renaming.
18505         * modules/canonicalize: Likewise.
18506
18507 2007-08-26  Bruno Haible  <bruno@clisp.org>
18508
18509         * gnulib-tool (func_import): When deciding which files to remove,
18510         consider also dangling symbolic links.
18511         Reported by Eric Blake.
18512
18513 2007-08-26  Bruno Haible  <bruno@clisp.org>
18514
18515         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
18516
18517 2007-08-23  Simon Josefsson  <simon@josefsson.org>
18518
18519         * lib/readline.c: Don't include getline.h, the prototype is now
18520         found in stdio.h.
18521
18522 2007-08-23  Jim Meyering  <jim@meyering.net>
18523
18524         Getdelim touchup.
18525         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
18526         around the funlockfile call, since funlockfile never sets errno.
18527         Don't set errno upon failed realloc.
18528
18529 2007-08-22  Eric Blake  <ebb9@byu.net>
18530
18531         Getline touchups.
18532         * lib/getdelim.c (getdelim): Revert regression that required *n to
18533         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
18534         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
18535         getdelim, rather than whether implementation is missing.
18536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
18537         * lib/stdio_.h (getline): Also declare if replacement is
18538         required.
18539         * doc/functions/getdelim.texi: New file.
18540         * doc/functions/getline.texi: Likewise.
18541         * doc/gnulib.texi (Function Substitutes): Add new files.
18542         Reported by Bruno Haible.
18543
18544 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
18545
18546         * users.txt: Add Guile.
18547
18548 2007-08-22  Eric Blake  <ebb9@byu.net>
18549
18550         * tests/test-getdelim.c (main): Use remove, not unlink.
18551         * tests/test-getline.c (main): Likewise.
18552
18553         Move getline and getdelim into stdio.h, per POSIX 200x.
18554         * modules/getline (Files): Remove getline.h.
18555         (Depends-on): Add stdio.
18556         (configure.ac): Add module indicator.
18557         * modules/getdelim (Files): Remove getdelim.h.
18558         (Depends-on): Add stdio.
18559         (configure.ac): Add module indicator.
18560         * modules/stdio (Makefile.am): Work with new indicators.
18561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18562         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
18563         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18564         * lib/getdelim.h: Delete.
18565         * lib/getline.h: Delete.
18566         * lib/stdio_.h (getdelim, getline): Declare.
18567         * modules/getdelim-tests: New module.
18568         * modules/getline-tests: Likewise.
18569         * tests/test-getdelim.c: New file.
18570         * tests/test-getline.c: Likewise.
18571         * NEWS: Document the change.
18572         * lib/getline.c: Update choice of header.
18573         * lib/csharpcomp.c: Likewise.
18574         * lib/getpass.c: Likewise.
18575         * lib/javacomp.c: Likewise.
18576         * lib/javaversion.c: Likewise.
18577         * lib/yesno.c: Likewise.
18578         * lib/getdelim.c: Likewise.
18579         (getdelim): Set errno on failure, and avoid memory leak.
18580
18581 2007-08-19  Bruno Haible  <bruno@clisp.org>
18582
18583         * modules/closein (Depends-on): Add freadahead.
18584         * lib/closein.c: Include freadahead.h.
18585         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
18586         is zero.
18587
18588 2007-08-19  Bruno Haible  <bruno@clisp.org>
18589
18590         * modules/freadahead-tests: New file.
18591         * tests/test-freadahead.sh: New file.
18592         * tests/test-freadahead.c: New file.
18593
18594         * modules/freadahead: New file.
18595         * lib/freadahead.h: New file.
18596         * lib/freadahead.c: New file.
18597         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18598         fbufmode, fpurge, freadable, fwritable.
18599
18600 2007-08-19  Eric Blake  <ebb9@byu.net>
18601
18602         Test yesno in combination with closein.
18603         * lib/yesno.c (yesno): Document use of stdin.
18604         * modules/yesno-tests (Files): New module.
18605         * tests/test-yesno.c (main): New file.
18606         * tests/test-yesno.sh: Likewise.
18607
18608 2007-08-19  Bruno Haible  <bruno@clisp.org>
18609
18610         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
18611         * lib/fseeko.c (rpl_fseeko): Likewise.
18612         * lib/fseterr.c (fseterr): Likewise.
18613
18614 2007-08-19  Bruno Haible  <bruno@clisp.org>
18615
18616         * tests/test-lseek.c (main): Disable a test for BeOS.
18617         * doc/functions/lseek.texi: Document the BeOS bug.
18618
18619 2007-08-19  Bruno Haible  <bruno@clisp.org>
18620             Eric Blake  <ebb9@byu.net>
18621
18622         * lib/lseek.c: Include <sys/stat.h>.
18623         (rpl_lseek): Add workaround code also for Unix platforms.
18624         Needed for BeOS.
18625         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
18626         * doc/functions/lseek.texi: Document BeOS definiency.
18627
18628 2007-08-18  Bruno Haible  <bruno@clisp.org>
18629
18630         * modules/fstrcmp-tests: New file.
18631         * tests/test-fstrcmp.c: New file.
18632
18633 2007-08-18  Bruno Haible  <bruno@clisp.org>
18634
18635         * modules/fstrcmp: New file, from GNU gettext with modifications.
18636         * lib/fstrcmp.h: New file, from GNU gettext.
18637         * lib/fstrcmp.c: New file, from GNU gettext.
18638         * MODULES.html.sh (String handling): Add fstrcmp.
18639
18640 2007-08-18  Bruno Haible  <bruno@clisp.org>
18641
18642         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
18643         'bool'.
18644         (diag, compareseq): Remove const from the ctxt argument.
18645         (USE_HEURISTIC): Undefine at the end.
18646
18647 2007-08-18  Jim Meyering  <jim@meyering.net>
18648
18649         New file: lib/idcache.h
18650         * NEWS: Mention the addition.
18651         * modules/idcache (Files): Add lib/idcache.h
18652         * lib/idcache.c: Include "idcache.h".
18653         Don't include <sys/types.h>.
18654         Add a FIXME comment.
18655         Move file-scoped "static" declarations to the top.
18656         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
18657
18658 2007-08-17  Bruno Haible  <bruno@clisp.org>
18659         and Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         * MODULES.html.sh: Add diffseq.
18662         * modules/diffseq: New file.
18663         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
18664         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
18665
18666 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18667
18668         Import changes from coreutils for bootstrap script.
18669
18670         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         * build-aux/bootstrap (slurp): Work even in environments where
18673         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
18674         current code does not slurp files whose names start with ".", and
18675         this looks like it might be a troublesome area.
18676
18677         2007-07-11  Jim Meyering  <jim@meyering.net>
18678
18679         If there's a GPL vN copyright comment, require that N == 3.
18680
18681         2007-07-08  Jim Meyering  <jim@meyering.net>
18682
18683         Run the coreutils-specific code only if tests/Makefile.am.in exists.
18684         * build-aux/bootstrap (mam_template): Move definition out of loop.
18685
18686         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
18687
18688         * build-aux/bootstrap (symlink_to_dir): Rename function from
18689         symlink_to_gnulib.  Add a directory parameter.  Update all
18690         callers.
18691         (cp_mark_as_generated): Also check for -- and link to -- files in
18692         gl/.
18693
18694         2007-07-08  Jim Meyering  <jim@meyering.net>
18695
18696         Adapt to deeper hierarchy in gnulib.
18697         * build-aux/bootstrap (symlink_to_dir): If the destination
18698         directory doesn't exist, create it. This is required at least for
18699         "lib/uniwidth/cjk.h".
18700
18701         2007-05-15  Jim Meyering  <jim@meyering.net>
18702
18703         * build-aux/bootstrap: Now that generated Makefile.am files
18704         are no longer under version control, they must be created at
18705         bootstrap time.
18706
18707 2007-08-14  Ben Pfaff  <blp@gnu.org>
18708
18709         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
18710
18711 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18712
18713         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
18714         given the changes below.
18715         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
18716         even on hosts that have padding bits beyond the supported 64.
18717
18718 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18719
18720         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
18721         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
18722         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
18723         depends on it.
18724         (xstrtol_error): Remove.
18725         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18726         but with a different signature.
18727         (ATTRIBUTE_NORETURN, __attribute__): New macros.
18728         * lib/xstrtol-error.c: Include exitfail.h.
18729         (xstrtol_fatal): New function, with a different signature from the
18730         old xstrtol_error, so that the caller need not worry about passing
18731         in an exit status, or about storage management of the option argument.
18732         (xstrtol_error): Now a static function.  Redo signature to
18733         implement xstrtol_fatal.  Output the correct number of hyphens in
18734         front of the option so that the caller need not worry about
18735         storage management.
18736         (N_): New macro.
18737         (_): Remove; not used now.
18738         * modules/xstrtol: Depend on getopt.
18739         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18740         of old STRTOL_FATAL_ERROR macro.
18741         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18742         of test program.
18743         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18744         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18745
18746 2007-08-08  Eric Blake  <ebb9@byu.net>
18747
18748         * lib/xstrtol-error.c: Add missing include.
18749
18750         Move xstrtol messages into gnulib domain, when --pobase is used.
18751         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18752         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18753         * modules/xstrtol (Files): Distribute new file.
18754         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18755         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18756         * tests/test-xstrtol.c: ...into new file.
18757         * tests/test-xstrtoul.c: Also test xstrtoul.
18758         * tests/test-xstrtoimax.c: Also test xstrtoimax.
18759         * tests/test-xstrtoumax.c: Also test xstrtoumax.
18760         * tests/test-xstrtol.sh: Drive the tests.
18761         * tests/test-xstrtoimax.sh: Likewise.
18762         * tests/test-xstrtoumax.sh: Likewise.
18763         * modules/xstrtol-tests: New module.
18764         * modules/xstrtoimax-tests: Likewise.
18765         * modules/xstrtoumax-tests: Likewise.
18766
18767 2007-08-08  Jim Meyering  <jim@meyering.net>
18768
18769         New function: mfile_name_concat.
18770         * lib/filenamecat.c (mfile_name_concat): New function, just like
18771         file_name_concat, but return NULL upon failure rather than exiting
18772         with a diagnostic.
18773         * lib/filenamecat.h: Declare it.
18774
18775 2007-08-07  Bruno Haible  <bruno@clisp.org>
18776
18777         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18778         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18779         warning from gcc.
18780         Reported by Eric Blake.
18781
18782 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18783
18784         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18785         * modules/crypto/arcfour (License): Likewise.
18786         * modules/crypto/des-tests (License): Likewise.
18787         * modules/crypto/gc-arctwo-tests (License): Likewise.
18788         * modules/crypto/gc-des-tests (License): Likewise.
18789         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18790         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18791         * modules/crypto/gc-md2-tests (License): Likewise.
18792         * modules/crypto/gc-md4-tests (License): Likewise.
18793         * modules/crypto/gc-md5-tests (License): Likewise.
18794         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18795         * modules/crypto/gc-rijndael-tests (License): Likewise.
18796         * modules/crypto/gc-sha1-tests (License): Likewise.
18797         * modules/crypto/gc-tests (License): Likewise.
18798         * modules/crypto/hmac-md5 (License): Likewise.
18799         * modules/crypto/hmac-sha1 (License): Likewise.
18800         * modules/crypto/md2-tests (License): Likewise.
18801         * modules/crypto/md4-tests (License): Likewise.
18802         * modules/crypto/md5 (License): Likewise.
18803         * modules/crypto/rijndael (License): Likewise.
18804         * modules/crypto/sha1 (License): Likewise.
18805         * modules/memxor (License): Likewise.
18806
18807 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18808         and Bruno Haible  <bruno@clisp.org>
18809
18810         * NEWS: Describe interface changes to human, xstrtol.
18811         * lib/human.h: Include <xstrtol.h>.
18812         (human_options): Return enum strtol_error, not int.  Remove
18813         bool arg; take int * instead.
18814         * lib/human.c: Don't include "gettext.h".
18815         (_): Remove; no longer used.
18816         Don't include <xstrtol.h>, since human.h does it.
18817         (human_options): Adjust to abovementioned interface changes.
18818         Do not report error to stderr; that's now the caller's
18819         responsibility.
18820         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18821         interface change.
18822         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18823         Str, Argument_type_string.  All uses changed.  Put " argument"
18824         in diagnostics to make them clearer.  Change wording of suffix
18825         message for clarity.
18826         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18827         Argument_type_string.
18828         (STRTOL_FATAL_WARN): Remove; no longer used.
18829         * modules/human (Depends-on): Remove gettext-h.
18830
18831 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18832
18833         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18834
18835 2007-07-31  Bruno Haible  <bruno@clisp.org>
18836
18837         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18838         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18839         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18840
18841 2007-07-31  Bruno Haible  <bruno@clisp.org>
18842
18843         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18844         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18845
18846 2007-07-30  Bruno Haible  <bruno@clisp.org>
18847
18848         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18849         * modules/c-ctype (License): Likewise.
18850         * modules/c-strcase (License): Likewise.
18851         * modules/check-version (License): Likewise.
18852         * modules/iconv (License): Likewise.
18853         * modules/iconv_open (License): Likewise.
18854         * modules/read-file (License): Likewise.
18855         * modules/striconv (License): Likewise.
18856         * modules/strverscmp (License): Likewise.
18857         * modules/vasprintf (License): Likewise.
18858         * modules/crypto/des (License): Likewise.
18859         * modules/crypto/gc (License): Likewise.
18860         * modules/crypto/gc-arcfour (License): Likewise.
18861         * modules/crypto/gc-arctwo (License): Likewise.
18862         * modules/crypto/gc-des (License): Likewise.
18863         * modules/crypto/gc-hmac-md5 (License): Likewise.
18864         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18865         * modules/crypto/gc-md2 (License): Likewise.
18866         * modules/crypto/gc-md4 (License): Likewise.
18867         * modules/crypto/gc-md5 (License): Likewise.
18868         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18869         * modules/crypto/gc-random (License): Likewise.
18870         * modules/crypto/gc-rijndael (License): Likewise.
18871         * modules/crypto/gc-sha1 (License): Likewise.
18872         * modules/crypto/md2 (License): Likewise.
18873         * modules/crypto/md4 (License): Likewise.
18874
18875 2007-07-30  Jim Meyering  <jim@meyering.net>
18876
18877         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18878         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18879         it has valid stat data.  This bug would cause du not to count the
18880         sizes of inaccessible directories.
18881         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18882         in <http://bugzilla.redhat.com/250077>.
18883
18884 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18885             Bruno Haible  <bruno@clisp.org>
18886
18887         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18888         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18889         #include_next, gives a diagnostic about it, but reports no error in
18890         the exit code.
18891         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18892
18893 2007-07-24  Ben Pfaff  <blp@gnu.org>
18894
18895         Improve name: "count-one-bits" is better than "popcount".
18896         * MODULES.html.sh: Update name.
18897         * lib/popcount.h: Renamed lib/count-one-bits.h.
18898         (popcount): Renamed count_one_bits.
18899         (popcountl): Renamed count_one_bits_l.
18900         (popcountll): Renamed count_one_bits_ll.
18901         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18902         * modules/popcount: Renamed module/count-one-bits.
18903         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18904         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18905
18906 2007-07-23  Ben Pfaff  <blp@gnu.org>
18907
18908         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18909         better code generation, and add U to large constants to avoid
18910         warnings, in non-GCC case.
18911         Suggested by Bruno Haible.
18912
18913 2007-07-23  Ben Pfaff  <blp@gnu.org>
18914
18915         * lib/popcount.h: Use verify_true instead of if...abort.
18916         * modules/popcount: Depend on verify module.
18917         Suggested by Jim Meyering.
18918
18919 2007-07-23  Bruno Haible  <bruno@clisp.org>
18920
18921         * gnulib-tool (func_import): Create a .cvsignore file also when the
18922         directory is not yet in CVS but the toplevel directory is. When
18923         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18924         Reported by Karl Berry.
18925
18926 2007-07-22  Ben Pfaff  <blp@gnu.org>
18927
18928         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18929         case.
18930         Suggested by Eric Blake.
18931
18932 2007-07-22  Ben Pfaff  <blp@gnu.org>
18933
18934         New module: popcount.
18935         * MODULES.html.sh: Add popcount.
18936         * modules/popcount: New file.
18937         * modules/popcount-tests: New file.
18938         * tests/test-popcount.c: New file.
18939         * lib/popcount.h: New file.
18940         * m4/popcount.m4: New file.
18941
18942 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18943
18944         * build-aux/announce-gen: Update to GPLv3.
18945
18946         * build-aux/config.guess: Update from config.
18947
18948 2007-07-21  Bruno Haible  <bruno@clisp.org>
18949
18950         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18951         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18952
18953 2007-07-20  Jim Meyering  <jim@meyering.net>
18954
18955         * check-module: Diagnose a self-dependency.
18956
18957 2007-07-19  Bruno Haible  <bruno@clisp.org>
18958
18959         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18960         empty.
18961         Reported by Eric Blake.
18962
18963 2007-07-18  Bruno Haible  <bruno@clisp.org>
18964
18965         * gnulib-tool: New options --po-base, --po-domain.
18966         (func_usage): Document them.
18967         (pobase, po_domain): New variables.
18968         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18969         DEFAULT_TEXT_DOMAIN.
18970         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18971         (func_import): Consider pobase and po_domain. Create a po/ directory.
18972         (func_create_testdir): Set pobase and po_domain to empty.
18973         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18974         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18975
18976 2007-07-18  Bruno Haible  <bruno@clisp.org>
18977
18978         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18979         EXTRA_DIST augmentation for files in build-aux/.
18980
18981 2007-07-16  Bruno Haible  <bruno@clisp.org>
18982
18983         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18984         * modules/getdelim (License): Likewise.
18985
18986 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18987
18988         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18989         * modules/d-type (License): Likewise.
18990         * modules/extensions (License): Likewise.
18991         * modules/fnmatch (License): Likewise.
18992         * modules/fseeko (License): Likewise.
18993         * modules/getaddrinfo (License): Likewise.
18994         * modules/getline (License): Likewise.
18995         * modules/getlogin_r (License): Likewise.
18996         * modules/getpass (License): Likewise.
18997         * modules/gettimeofday (License): Likewise.
18998         * modules/glob (License): Likewise.
18999         * modules/inet_ntop (License): Likewise.
19000         * modules/malloc (License): Likewise.
19001         * modules/malloca (License): Likewise.
19002         * modules/memmem (License): Likewise.
19003         * modules/mempcpy (License): Likewise.
19004         * modules/memset (License): Likewise.
19005         * modules/minmax (License): Likewise.
19006         * modules/mktime (License): Likewise.
19007         * modules/netinet_in (License): Likewise.
19008         * modules/pathmax (License): Likewise.
19009         * modules/poll (License): Likewise.
19010         * modules/regex (License): Likewise.
19011         * modules/snprintf (License): Likewise.
19012         * modules/stdbool (License): Likewise.
19013         * modules/stdint (License): Likewise.
19014         * modules/stdio (License): Likewise.
19015         * modules/strcase (License): Likewise.
19016         * modules/strcasestr (License): Likewise.
19017         * modules/strdup (License): Likewise.
19018         * modules/string (License): Likewise.
19019         * modules/strndup (License): Likewise.
19020         * modules/strnlen (License): Likewise.
19021         * modules/strpbrk (License): Likewise.
19022         * modules/strptime (License): Likewise.
19023         * modules/strsep (License): Likewise.
19024         * modules/sys_select (License): Likewise.
19025         * modules/sys_socket (License): Likewise.
19026         * modules/sys_stat (License): Likewise.
19027         * modules/sys_time (License): Likewise.
19028         * modules/time (License): Likewise.
19029         * modules/time_r (License): Likewise.
19030         * modules/timegm (License): Likewise.
19031         * modules/unistd (License): Likewise.
19032         * modules/vsnprintf (License): Likewise.
19033         * modules/wctype (License): Likewise.
19034
19035 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19036
19037         * modules/argz (License): LGPLv2+.
19038
19039 2007-07-15  Karl Berry  <karl@gnu.org>
19040
19041         * doc/gnulib.texi: revise node structure per new fdl.texi.
19042
19043 2007-07-14  Bruno Haible  <bruno@clisp.org>
19044
19045         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
19046         the output file.
19047         * lib/uniname/uninames.h: Regenerated.
19048
19049 2007-07-14  Karl Berry  <karl@gnu.org>
19050
19051         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
19052         omitting sectioning and index commands.
19053
19054 2007-07-13  Bruno Haible  <bruno@clisp.org>
19055
19056         New gnulib-tool option --more-symlinks.
19057         * gnulib-tool (func_usage): Document --more-symlinks.
19058         (do_copyrights): New variable.
19059         Recognize option --more-symlinks.
19060         (func_import): Don't add a copyright notice transform to
19061         sed_transform_lib_file if do_copyrights is empty.
19062
19063 2007-07-13  Bruno Haible  <bruno@clisp.org>
19064
19065         * lib/vasnprintf.c (decimal_point_char): Define also if
19066         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
19067         && !NEED_PRINTF_DIRECTIVE_A.
19068         Reported by Clemens Koller <clemens.koller@anagramm.de> via
19069         Gary V. Vaughan <gary@gnu.org>.
19070
19071 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19072
19073         * lib/inttypes_.h: Undo previous change, since it was fixed
19074         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
19075
19076 2007-07-13  Bruno Haible  <bruno@clisp.org>
19077
19078         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
19079         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
19080
19081 2007-07-13  Jim Meyering  <jim@meyering.net>
19082
19083         df: Don't fail for Tru64's "file-on-file mount".
19084         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
19085         so we fall through and use statfs instead.  Details here:
19086         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
19087         Reported by Albert Chin.
19088
19089 2007-07-13  Bruno Haible  <bruno@clisp.org>
19090
19091         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
19092         * modules/configmake (License): Likewise.
19093         * modules/gettext (License): Likewise.
19094         * modules/gettext-h (License): Likewise.
19095         * modules/include_next (License): Likewise.
19096         * modules/link-warning (License): Likewise.
19097         * modules/localcharset (License): Likewise.
19098         * modules/localename (License): Likewise.
19099         * modules/lock (License): Likewise.
19100         * modules/relocatable-lib-lgpl (License): Likewise.
19101         * modules/size_max (License): Likewise.
19102         * modules/vasnprintf (License): Likewise.
19103         * modules/wchar (License): Likewise.
19104         * modules/xsize (License): Likewise.
19105
19106 2007-07-13  Bruno Haible  <bruno@clisp.org>
19107
19108         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
19109         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
19110
19111 2007-07-12  Bruno Haible  <bruno@clisp.org>
19112
19113         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
19114         in the modules files.
19115
19116 2007-07-11  Karl Berry  <karl@gnu.org>
19117
19118         * MODULES.html.sh (func_module): use
19119          sed -e '\|^'"${includefile}"'$|d'
19120          instead of /.../d, to avoid errors on $includefile's containing /.
19121
19122 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19123
19124         * gnulib-tool (func_import): Avoid duplication of --avoid
19125         statements
19126         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
19127         names to `_' in variable names.
19128
19129 2007-07-10  Eric Blake  <ebb9@byu.net>
19130
19131         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
19132         * NEWS: Document this change.
19133
19134 2007-07-08  Bruno Haible  <bruno@clisp.org>
19135
19136         Update to Unicode 5.0.
19137         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
19138         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
19139         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
19140         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
19141         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
19142         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
19143         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
19144         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
19145         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
19146         U+10A3F, U+1D242..U+1D244.
19147         (nonspacing_table_ind): Update.
19148         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
19149         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
19150
19151 2007-07-08  Bruno Haible  <bruno@clisp.org>
19152
19153         Update to Unicode 5.0.
19154         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
19155         code transform. Extend the name index field of unicode_name_to_code and
19156         unicode_code_to_name from 16 to 24 bits.
19157         * lib/uniname/uniname.c (unicode_character_name,
19158         unicode_name_character): Add the range 0x12xxx to the code transform.
19159         * lib/uniname/uninames.h: Regenerated.
19160         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
19161
19162 2007-07-07  Bruno Haible  <bruno@clisp.org>
19163
19164         * modules/wcwidth-tests: New file.
19165         * tests/test-wcwidth.c: New file.
19166
19167         Work around MacOS X wcwidth() bug.
19168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
19169         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
19170         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
19171         original wcwidth in non-UTF-8 locales.
19172         * modules/wcwidth (Depends-on): Add localcharset, streq,
19173         uniwidth/width.
19174         * doc/functions/wcwidth.texi: Update.
19175
19176 2007-07-07  Bruno Haible  <bruno@clisp.org>
19177
19178         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
19179         (wcwidth): New declaration.
19180         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
19181         macros.
19182         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
19183         here. Prepare for creating <wchar.h> unconditionally.
19184         * modules/wchar (Depends-on): Add link-warning.
19185         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
19186         REPLACE_WCWIDTH, and GL_LINK_WARNING.
19187         * lib/wcwidth.h: Remove file.
19188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
19189         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
19190         * modules/wcwidth (Files): Remove lib/wcwidth.h.
19191         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
19192         (Include): Replace wcwidth.h with <wchar.h>.
19193         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
19194         * lib/mbchar.h: Don't include wcwidth.h.
19195         * lib/mbswidth.c: Likewise.
19196         * NEWS: Mention the change.
19197
19198 2007-07-07  Bruno Haible  <bruno@clisp.org>
19199
19200         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
19201         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
19202         definition with an external declaration.
19203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
19204         defined as a function. Remove AC_C_INLINE requirement.
19205         * modules/wcwidth (Files): Add lib/wcwidth.c.
19206         (Makefile.am): Remove redundant statement.
19207
19208 2007-07-07  Bruno Haible  <bruno@clisp.org>
19209
19210         * MODULES.html.sh (Unicode string functions): Add the new modules.
19211
19212         * tests/uniwidth/test-u32-strwidth.c: New file.
19213         * modules/uniwidth/u32-strwidth-tests: New file.
19214
19215         * lib/uniwidth/u32-strwidth.c: New file.
19216         * modules/uniwidth/u32-strwidth: New file.
19217
19218         * tests/uniwidth/test-u16-strwidth.c: New file.
19219         * modules/uniwidth/u16-strwidth-tests: New file.
19220
19221         * lib/uniwidth/u16-strwidth.c: New file.
19222         * modules/uniwidth/u16-strwidth: New file.
19223
19224         * tests/uniwidth/test-u8-strwidth.c: New file.
19225         * modules/uniwidth/u8-strwidth-tests: New file.
19226
19227         * lib/uniwidth/u8-strwidth.c: New file.
19228         * modules/uniwidth/u8-strwidth: New file.
19229
19230         * tests/uniwidth/test-u32-width.c: New file.
19231         * modules/uniwidth/u32-width-tests: New file.
19232
19233         * lib/uniwidth/u32-width.c: New file.
19234         * modules/uniwidth/u32-width: New file.
19235
19236         * tests/uniwidth/test-u16-width.c: New file.
19237         * modules/uniwidth/u16-width-tests: New file.
19238
19239         * lib/uniwidth/u16-width.c: New file.
19240         * modules/uniwidth/u16-width: New file.
19241
19242         * tests/uniwidth/test-u8-width.c: New file.
19243         * modules/uniwidth/u8-width-tests: New file.
19244
19245         * lib/uniwidth/u8-width.c: New file.
19246         * modules/uniwidth/u8-width: New file.
19247
19248         * tests/uniwidth/test-uc_width.c: New file.
19249         * modules/uniwidth/width-tests: New file.
19250
19251         * lib/uniwidth/width.c: New file, from GNU libiconv.
19252         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
19253         * modules/uniwidth/width: New file.
19254
19255         * lib/uniwidth.h: New file, from GNU libiconv.
19256         * modules/uniwidth/base: New file.
19257
19258 2007-07-07  Bruno Haible  <bruno@clisp.org>
19259
19260         * lib/uniname.h: New file, from GNU gettext.
19261         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
19262         * lib/uniname/uninames.h: New file, from GNU gettext.
19263         * lib/uniname/uniname.c: New file, from GNU gettext.
19264         * tests/uniname/test-uninames.sh: New file.
19265         * tests/uniname/test-uninames.c: New file, from GNU gettext.
19266         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
19267         * modules/uniname/base: New file.
19268         * modules/uniname/uniname: New file.
19269         * modules/uniname/uniname-tests: New file.
19270         * MODULES.html.sh (Unicode string functions): Add the new modules.
19271
19272 2007-07-06  Bruno Haible  <bruno@clisp.org>
19273
19274         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
19275
19276 2007-07-06  Bruno Haible  <bruno@clisp.org>
19277
19278         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
19279         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
19280         includes <cygwin/sys_time.h> which includes <sys/select.h> which
19281         include <sys/time.h>.
19282         Reported by Eric Blake.
19283
19284 2007-07-06  Eric Blake  <ebb9@byu.net>
19285
19286         Fix testing canonicalize on cygwin.
19287         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19288         Revert patch from 2007-06-19.
19289         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
19290         canonicalize module is also in use.
19291         * tests/test-canonicalize.c: New file.
19292         * tests/test-canonicalize.sh: Likewise.
19293         * modules/canonicalize-tests: Likewise.
19294
19295 2007-07-06  Jim Meyering  <jim@meyering.net>
19296
19297         * lib/getugroups.c (getugroups): Detect getgrent failure.
19298         Adjust comment to reflect reality: this function may return -1.
19299
19300 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19301
19302         * build-aux/bootstrap (TP_URL,get_translations): Update to use
19303         the new TP address.
19304         (usage): Fix typo
19305         (gnulib_mk): New variable.
19306
19307 2007-07-05  Jim Meyering  <jim@meyering.net>
19308
19309         Don't let endgrent clobber errno, no matter how improbable.
19310         * lib/getugroups.c (getugroups): Save and restore errno around
19311         endgrent call.
19312
19313         Close the group DB even when failing with 2^31 or more members.
19314         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
19315
19316 2007-07-04  Jim Meyering  <jim@meyering.net>
19317
19318         * lib/getugroups.h: New file.
19319         * lib/getugroups.c: Include "getugroups.h".
19320         Remove uses of "register" keyword.
19321         Move local variable, "cp", down into scope where used.
19322         Give "username" parameter the "const" attribute.
19323         * modules/getugroups (Files): Add lib/getugroups.h
19324
19325 2007-07-04  Karl Berry  <karl@gnu.org>
19326
19327         * MODULES.html.sh (func_all_modules): Complete rename of
19328         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
19329
19330 2007-07-02  Bruno Haible  <bruno@clisp.org>
19331
19332         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
19333         mode, when inttypes.h comes from gnulib.
19334         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19335
19336 2007-07-02  Simon Josefsson  <simon@josefsson.org>
19337
19338         * NEWS: Mention lgpl module name change.
19339
19340         * modules/lgpl-2.1: Renamed from lgpl.
19341
19342         * NEWS: Mention gpl module name change.
19343
19344         * modules/gpl-3.0: New file, based on gpl-2.0.
19345
19346         * modules/gpl-2.0: Renamed from gpl.
19347
19348         * modules/gpl: Fix filename, doc/gpl.texi is now found at
19349         doc/gpl-2.0.texi.
19350
19351 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19352
19353         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
19354         #define __STDC_LIMIT_MACROS temporarily while including
19355         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
19356         Problem reported by Joel E. Denny in
19357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
19358
19359 2007-07-01  Bruno Haible  <bruno@clisp.org>
19360
19361         * lib/unistdio.h: New file.
19362         * lib/unistdio/u-asnprintf.h: New file.
19363         * lib/unistdio/u-asprintf.h: New file.
19364         * lib/unistdio/u-printf-args.c: New file.
19365         * lib/unistdio/u-printf-args.h: New file.
19366         * lib/unistdio/u-printf-parse.h: New file.
19367         * lib/unistdio/u-snprintf.h: New file.
19368         * lib/unistdio/u-sprintf.h: New file.
19369         * lib/unistdio/u-vasprintf.h: New file.
19370         * lib/unistdio/u-vsnprintf.h: New file.
19371         * lib/unistdio/u-vsprintf.h: New file.
19372         * lib/unistdio/ulc-asnprintf.c: New file.
19373         * lib/unistdio/ulc-asprintf.c: New file.
19374         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
19375         * lib/unistdio/ulc-printf-parse.c: New file.
19376         * lib/unistdio/ulc-snprintf.c: New file.
19377         * lib/unistdio/ulc-sprintf.c: New file.
19378         * lib/unistdio/ulc-vasnprintf.c: New file.
19379         * lib/unistdio/ulc-vasprintf.c: New file.
19380         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
19381         * lib/unistdio/ulc-vsnprintf.c: New file.
19382         * lib/unistdio/ulc-vsprintf.c: New file.
19383         * lib/unistdio/u8-asnprintf.c: New file.
19384         * lib/unistdio/u8-asprintf.c: New file.
19385         * lib/unistdio/u8-printf-parse.c: New file.
19386         * lib/unistdio/u8-snprintf.c: New file.
19387         * lib/unistdio/u8-sprintf.c: New file.
19388         * lib/unistdio/u8-vasnprintf.c: New file.
19389         * lib/unistdio/u8-vasprintf.c: New file.
19390         * lib/unistdio/u8-vsnprintf.c: New file.
19391         * lib/unistdio/u8-vsprintf.c: New file.
19392         * lib/unistdio/u8-u8-asnprintf.c: New file.
19393         * lib/unistdio/u8-u8-asprintf.c: New file.
19394         * lib/unistdio/u8-u8-snprintf.c: New file.
19395         * lib/unistdio/u8-u8-sprintf.c: New file.
19396         * lib/unistdio/u8-u8-vasnprintf.c: New file.
19397         * lib/unistdio/u8-u8-vasprintf.c: New file.
19398         * lib/unistdio/u8-u8-vsnprintf.c: New file.
19399         * lib/unistdio/u8-u8-vsprintf.c: New file.
19400         * lib/unistdio/u16-asnprintf.c: New file.
19401         * lib/unistdio/u16-asprintf.c: New file.
19402         * lib/unistdio/u16-printf-parse.c: New file.
19403         * lib/unistdio/u16-snprintf.c: New file.
19404         * lib/unistdio/u16-sprintf.c: New file.
19405         * lib/unistdio/u16-vasnprintf.c: New file.
19406         * lib/unistdio/u16-vasprintf.c: New file.
19407         * lib/unistdio/u16-vsnprintf.c: New file.
19408         * lib/unistdio/u16-vsprintf.c: New file.
19409         * lib/unistdio/u16-u16-asnprintf.c: New file.
19410         * lib/unistdio/u16-u16-asprintf.c: New file.
19411         * lib/unistdio/u16-u16-snprintf.c: New file.
19412         * lib/unistdio/u16-u16-sprintf.c: New file.
19413         * lib/unistdio/u16-u16-vasnprintf.c: New file.
19414         * lib/unistdio/u16-u16-vasprintf.c: New file.
19415         * lib/unistdio/u16-u16-vsnprintf.c: New file.
19416         * lib/unistdio/u16-u16-vsprintf.c: New file.
19417         * lib/unistdio/u32-asnprintf.c: New file.
19418         * lib/unistdio/u32-asprintf.c: New file.
19419         * lib/unistdio/u32-printf-parse.c: New file.
19420         * lib/unistdio/u32-snprintf.c: New file.
19421         * lib/unistdio/u32-sprintf.c: New file.
19422         * lib/unistdio/u32-vasnprintf.c: New file.
19423         * lib/unistdio/u32-vasprintf.c: New file.
19424         * lib/unistdio/u32-vsnprintf.c: New file.
19425         * lib/unistdio/u32-vsprintf.c: New file.
19426         * lib/unistdio/u32-u32-asnprintf.c: New file.
19427         * lib/unistdio/u32-u32-asprintf.c: New file.
19428         * lib/unistdio/u32-u32-snprintf.c: New file.
19429         * lib/unistdio/u32-u32-sprintf.c: New file.
19430         * lib/unistdio/u32-u32-vasnprintf.c: New file.
19431         * lib/unistdio/u32-u32-vasprintf.c: New file.
19432         * lib/unistdio/u32-u32-vsnprintf.c: New file.
19433         * lib/unistdio/u32-u32-vsprintf.c: New file.
19434         * tests/unistdio/test-ulc-asnprintf1.c: New file.
19435         * tests/unistdio/test-ulc-asnprintf1.h: New file.
19436         * tests/unistdio/test-ulc-printf1.h: New file.
19437         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
19438         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
19439         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
19440         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
19441         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
19442         * tests/unistdio/test-ulc-vasprintf1.c: New file.
19443         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
19444         * tests/unistdio/test-ulc-vsprintf1.c: New file.
19445         * tests/unistdio/test-u8-asnprintf1.c: New file.
19446         * tests/unistdio/test-u8-asnprintf1.h: New file.
19447         * tests/unistdio/test-u8-printf1.h: New file.
19448         * tests/unistdio/test-u8-vasnprintf1.c: New file.
19449         * tests/unistdio/test-u8-vasnprintf2.c: New file.
19450         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
19451         * tests/unistdio/test-u8-vasnprintf3.c: New file.
19452         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
19453         * tests/unistdio/test-u8-vasprintf1.c: New file.
19454         * tests/unistdio/test-u8-vsnprintf1.c: New file.
19455         * tests/unistdio/test-u8-vsprintf1.c: New file.
19456         * tests/unistdio/test-u16-asnprintf1.c: New file.
19457         * tests/unistdio/test-u16-asnprintf1.h: New file.
19458         * tests/unistdio/test-u16-printf1.h: New file.
19459         * tests/unistdio/test-u16-vasnprintf1.c: New file.
19460         * tests/unistdio/test-u16-vasnprintf2.c: New file.
19461         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
19462         * tests/unistdio/test-u16-vasnprintf3.c: New file.
19463         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
19464         * tests/unistdio/test-u16-vasprintf1.c: New file.
19465         * tests/unistdio/test-u16-vsnprintf1.c: New file.
19466         * tests/unistdio/test-u16-vsprintf1.c: New file.
19467         * tests/unistdio/test-u32-asnprintf1.c: New file.
19468         * tests/unistdio/test-u32-asnprintf1.h: New file.
19469         * tests/unistdio/test-u32-printf1.h: New file.
19470         * tests/unistdio/test-u32-vasnprintf1.c: New file.
19471         * tests/unistdio/test-u32-vasnprintf2.c: New file.
19472         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
19473         * tests/unistdio/test-u32-vasnprintf3.c: New file.
19474         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
19475         * tests/unistdio/test-u32-vasprintf1.c: New file.
19476         * tests/unistdio/test-u32-vsnprintf1.c: New file.
19477         * tests/unistdio/test-u32-vsprintf1.c: New file.
19478         * modules/unistdio/base: New file.
19479         * modules/unistdio/u-printf-args: New file.
19480         * modules/unistdio/ulc-asnprintf: New file.
19481         * modules/unistdio/ulc-asprintf: New file.
19482         * modules/unistdio/ulc-fprintf: New file.
19483         * modules/unistdio/ulc-printf-parse: New file.
19484         * modules/unistdio/ulc-snprintf: New file.
19485         * modules/unistdio/ulc-sprintf: New file.
19486         * modules/unistdio/ulc-vasnprintf: New file.
19487         * modules/unistdio/ulc-vasprintf: New file.
19488         * modules/unistdio/ulc-vfprintf: New file.
19489         * modules/unistdio/ulc-vsnprintf: New file.
19490         * modules/unistdio/ulc-vsprintf: New file.
19491         * modules/unistdio/u8-asnprintf: New file.
19492         * modules/unistdio/u8-asprintf: New file.
19493         * modules/unistdio/u8-printf-parse: New file.
19494         * modules/unistdio/u8-snprintf: New file.
19495         * modules/unistdio/u8-sprintf: New file.
19496         * modules/unistdio/u8-vasnprintf: New file.
19497         * modules/unistdio/u8-vasprintf: New file.
19498         * modules/unistdio/u8-vsnprintf: New file.
19499         * modules/unistdio/u8-vsprintf: New file.
19500         * modules/unistdio/u8-u8-asnprintf: New file.
19501         * modules/unistdio/u8-u8-asprintf: New file.
19502         * modules/unistdio/u8-u8-snprintf: New file.
19503         * modules/unistdio/u8-u8-sprintf: New file.
19504         * modules/unistdio/u8-u8-vasnprintf: New file.
19505         * modules/unistdio/u8-u8-vasprintf: New file.
19506         * modules/unistdio/u8-u8-vsnprintf: New file.
19507         * modules/unistdio/u8-u8-vsprintf: New file.
19508         * modules/unistdio/u16-asnprintf: New file.
19509         * modules/unistdio/u16-asprintf: New file.
19510         * modules/unistdio/u16-printf-parse: New file.
19511         * modules/unistdio/u16-snprintf: New file.
19512         * modules/unistdio/u16-sprintf: New file.
19513         * modules/unistdio/u16-vasnprintf: New file.
19514         * modules/unistdio/u16-vasprintf: New file.
19515         * modules/unistdio/u16-vsnprintf: New file.
19516         * modules/unistdio/u16-vsprintf: New file.
19517         * modules/unistdio/u16-u16-asnprintf: New file.
19518         * modules/unistdio/u16-u16-asprintf: New file.
19519         * modules/unistdio/u16-u16-snprintf: New file.
19520         * modules/unistdio/u16-u16-sprintf: New file.
19521         * modules/unistdio/u16-u16-vasnprintf: New file.
19522         * modules/unistdio/u16-u16-vasprintf: New file.
19523         * modules/unistdio/u16-u16-vsnprintf: New file.
19524         * modules/unistdio/u16-u16-vsprintf: New file.
19525         * modules/unistdio/u32-asnprintf: New file.
19526         * modules/unistdio/u32-asprintf: New file.
19527         * modules/unistdio/u32-printf-parse: New file.
19528         * modules/unistdio/u32-snprintf: New file.
19529         * modules/unistdio/u32-sprintf: New file.
19530         * modules/unistdio/u32-vasnprintf: New file.
19531         * modules/unistdio/u32-vasprintf: New file.
19532         * modules/unistdio/u32-vsnprintf: New file.
19533         * modules/unistdio/u32-vsprintf: New file.
19534         * modules/unistdio/u32-u32-asnprintf: New file.
19535         * modules/unistdio/u32-u32-asprintf: New file.
19536         * modules/unistdio/u32-u32-snprintf: New file.
19537         * modules/unistdio/u32-u32-sprintf: New file.
19538         * modules/unistdio/u32-u32-vasnprintf: New file.
19539         * modules/unistdio/u32-u32-vasprintf: New file.
19540         * modules/unistdio/u32-u32-vsnprintf: New file.
19541         * modules/unistdio/u32-u32-vsprintf: New file.
19542         * modules/unistdio/ulc-asnprintf-tests: New file.
19543         * modules/unistdio/ulc-vasnprintf-tests: New file.
19544         * modules/unistdio/ulc-vasprintf-tests: New file.
19545         * modules/unistdio/ulc-vsnprintf-tests: New file.
19546         * modules/unistdio/ulc-vsprintf-tests: New file.
19547         * modules/unistdio/u8-asnprintf-tests: New file.
19548         * modules/unistdio/u8-vasnprintf-tests: New file.
19549         * modules/unistdio/u8-vasprintf-tests: New file.
19550         * modules/unistdio/u8-vsnprintf-tests: New file.
19551         * modules/unistdio/u8-vsprintf-tests: New file.
19552         * modules/unistdio/u16-asnprintf-tests: New file.
19553         * modules/unistdio/u16-vasnprintf-tests: New file.
19554         * modules/unistdio/u16-vasprintf-tests: New file.
19555         * modules/unistdio/u16-vsnprintf-tests: New file.
19556         * modules/unistdio/u16-vsprintf-tests: New file.
19557         * modules/unistdio/u32-asnprintf-tests: New file.
19558         * modules/unistdio/u32-vasnprintf-tests: New file.
19559         * modules/unistdio/u32-vasprintf-tests: New file.
19560         * modules/unistdio/u32-vsnprintf-tests: New file.
19561         * modules/unistdio/u32-vsprintf-tests: New file.
19562         * MODULES.html.sh (Unicode string functions): Add the new modules.
19563
19564 2007-07-01  Bruno Haible  <bruno@clisp.org>
19565
19566         * lib/sprintf.c (sprintf): Limit the available length estimation,
19567         to avoid address wraparound.
19568         * lib/vsprintf.c (vsprintf): Likewise.
19569         * modules/sprintf-posix (Dependencies): Add stdint.
19570         * modules/vsprintf-posix (Dependencies): Likewise.
19571
19572 2007-07-01  Bruno Haible  <bruno@clisp.org>
19573
19574         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
19575         Windows PATH as well. Conservative double-quoting. Comments.
19576
19577 2007-07-01  Bruno Haible  <bruno@clisp.org>
19578             Eric Blake  <ebb9@byu.net>
19579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19580
19581         * gnulib-tool (self_abspathname): Fix algorithm to cope with
19582         empty components in $PATH, denoting '.'.
19583
19584 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19585
19586         * gnulib-tool: Fix indentation.
19587         (func_create_megatestdir): Likewise.
19588         Report by Bruno Haible.
19589
19590 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19591
19592         Sync from Automake.
19593         * build-aux/gnupload: Fix shell portability issues with for loops.
19594         Report by Karl Berry.
19595
19596 2007-06-29  Simon Josefsson  <simon@josefsson.org>
19597
19598         * build-aux/maint.mk (POURL): Use translationproject.org.
19599
19600 2007-06-27  Simon Josefsson  <simon@josefsson.org>
19601             Bruno Haible  <bruno@clisp.org>
19602
19603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
19604         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
19605         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
19606         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
19607         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
19608
19609 2007-06-27  Bruno Haible  <bruno@clisp.org>
19610
19611         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
19612         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
19613
19614 2007-06-26  Karl Berry  <karl@gnu.org>
19615
19616         * MODULES.html.sh: remove xreadlink-with-size.
19617
19618 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19619
19620         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
19621         method that I hope also handles the double-include problem noted
19622         by Bruno Haible in
19623         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
19624
19625 2007-06-23  Bruno Haible  <bruno@clisp.org>
19626
19627         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19628         Don't let the 'mostlyclean' target fail if the last subdirectory could
19629         not be removed.
19630         Reported by Karl Berry.
19631
19632 2007-06-23  Bruno Haible  <bruno@clisp.org>
19633
19634         * gnulib-tool (echo): Add a speedier workaround for ksh.
19635         * tests/test-echo.sh: Likewise.
19636
19637 2007-06-23  Bruno Haible  <bruno@clisp.org>
19638
19639         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
19640         * tests/test-echo.sh: Likewise.
19641
19642 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19643
19644         * gnulib-tool (IFS): Initialize early, so we don't set it to
19645         empty later.
19646         (self_abspathname): Rewrite algorithm to set it, reindent.
19647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19648         (func_create_megatestdir): Merge some sed scripts.
19649
19650 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
19653         exposed by Sun Studio 11 cc on Solaris 8.
19654
19655 2007-06-22  Bruno Haible  <bruno@clisp.org>
19656
19657         * gnulib-tool (echo): Ensure the echo primitive does not interpret
19658         backslashes.
19659         * tests/test-echo.sh: New file.
19660
19661 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19662
19663         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
19664         simplify `sed_replace_build_aux' scripts, they are portable but
19665         echoing them with `echo' is not.
19666         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
19667
19668 2007-06-21  Karl Berry  <karl@gnu.org>
19669
19670         * config/srclist.txt: guess we can't handle the licenses via
19671         srclist at the moment.
19672
19673 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19674
19675         * MODULES.html.sh: Add include_next.
19676         * modules/include_next: New file.
19677
19678 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19679
19680         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
19681         INCLUDE_NEXT.
19682         (gl_CHECK_NEXT_HEADERS): New macro.
19683         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
19684         the obsolescent gl_ABSOLUTE_HEADER.
19685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19686         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19687         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19688         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19689         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19690         * m4/math_h.m4 (gl_MATH_H): Likewise.
19691         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19692         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19693         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19694         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19695         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19696         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19697         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19701         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19702         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19703         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
19704         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19705         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19706         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19707         * m4/inttypes.m4 (gl_INTTYPES_H): Define
19708         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
19709         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
19710         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
19711         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
19712         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
19713         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
19714         * lib/float_.h: Likewise.
19715         * lib/inttypes_.h: Likewise.
19716         * lib/math_.h: Likewise.
19717         * lib/search_.h: Likewise.
19718         * lib/signal_.h: Likewise.
19719         * lib/stdint_.h: Likewise.
19720         * lib/stdio_.h: Likewise.
19721         * lib/stdlib_.h: Likewise.
19722         * lib/string_.h: Likewise.
19723         * lib/sys_stat_.h: Likewise.
19724         * lib/sys_time_.h: Likewise.
19725         * lib/time_.h: Likewise.
19726         * lib/unistd_.h: Likewise.
19727         * lib/wchar_.h: Likewise.
19728         * lib/wctype_.h: Likewise.
19729         * lib/dirent_.h: Likewise.
19730         * lib/iconv_.h: Likewise.
19731         * lib/locale_.h: Likewise.
19732         * lib/netinet_in_.h: Likewise.
19733         * lib/sys_select_.h: Likewise.
19734         * lib/sys_socket_.h: Likewise.
19735         * lib/sysexits_.h: Likewise.
19736         * modules/fcntl (Depends-on): Depend on include_next, not
19737         absolute_header.
19738         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19739         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19740         * modules/fchdir: Likewise.
19741         * modules/float: Likewise.
19742         * modules/iconv_open: Likewise.
19743         * modules/inttypes: Likewise.
19744         * modules/locale: Likewise.
19745         * modules/math: Likewise.
19746         * modules/netinet_in: Likewise.
19747         * modules/search: Likewise.
19748         * modules/signal: Likewise.
19749         * modules/stdint: Likewise.
19750         * modules/stdio: Likewise.
19751         * modules/stdlib: Likewise.
19752         * modules/string: Likewise.
19753         * modules/sys_select: Likewise.
19754         * modules/sys_socket: Likewise.
19755         * modules/sys_stat: Likewise.
19756         * modules/sys_time: Likewise.
19757         * modules/sysexits: Likewise.
19758         * modules/time: Likewise.
19759         * modules/unistd: Likewise.
19760         * modules/wchar: Likewise.
19761         * modules/wctype: Likewise.
19762         * modules/sys_stat: Change maintainer to "all".
19763         * modules/unistd: Likewise.
19764
19765 2007-06-20  Karl Berry  <karl@gnu.org>
19766
19767         * config/srclist.txt: track www changes in license files.
19768
19769 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
19770
19771         * build-aux/bootstrap: Remove stray dot.
19772         Make sure build_aux settings are honored when linking
19773         gnulib_extra_files.
19774
19775 2007-06-19  Eric Blake  <ebb9@byu.net>
19776
19777         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19778         Allow compilation on cygwin.
19779
19780 2007-06-19  Jim Meyering  <jim@meyering.net>
19781
19782         xreadlink-with-size: Remove module.  No longer used.
19783         Ex-callers now use xreadlink or mreadlink-with-size.
19784         * modules/xreadlink-with-size: Remove module.
19785         * lib/xreadlink-with-size.c: Remove file.
19786         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19787         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19788         just before the function definition *is* accurate.
19789
19790         Eliminate one way canonicalize_filename_mode could exit.
19791         * lib/canonicalize.c (canonicalize_filename_mode):
19792         Use mreadlink_with_size, not xreadlink_with_size.
19793
19794 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         Detect porting problems to FreeBSD/arm, which has time_t wider than
19797         long int.  Original problem reported for GNU diff by Xin Li in
19798         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19799         * modules/getdate (Depends-on): Add intprops, verify.
19800         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19801         is an integer type no wider than long int.
19802
19803 2007-06-18  Jim Meyering  <jim@meyering.net>
19804
19805         New module: mreadlink-with-size.
19806         * MODULES.html.sh: Add mreadlink-with-size.
19807         * modules/mreadlink-with-size: New module
19808         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19809         not xreadlink-with-size.
19810         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19811
19812 2007-06-16  Bruno Haible  <bruno@clisp.org>
19813
19814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19815         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19816         Reported by Gary V. Vaughan <gary@gnu.org>.
19817
19818 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19819
19820         Revamp lchown so that it lives in unistd.h where it belongs.
19821         * lib/lchown.h: Remove.
19822         * lib/dirchownmod.c: Don't include lib/lchown.h.
19823         * lib/fchownat.c: Likewise.
19824         * lib/openat.c: Likewise.
19825         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19826         does not follow symlinks.
19827         (EOPNOTSUPP): Define if not defined.
19828         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19829         is defined to 0.
19830         (lchown): New decl.
19831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19832         Do not check for lchown decl.
19833         Set REPLACE_LCHOWN.
19834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19835         REPLACE_LCHOWN.
19836         * modules/chown: Make it clear it follows symlinks.
19837         * modules/lchown: Make it clear it doesn't follow symlinks.
19838         (Files): Remove lib/lchown.h
19839         (Depends-on): Add unistd.
19840         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19841         (Include): Include <unistd.h>, not "lchown.h".
19842         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19843         REPLACE_LCHOWN.
19844
19845 2007-06-15  Jim Meyering  <jim@meyering.net>
19846
19847         Change license (GPL to LGPL) of fsusage and dependents.
19848         * modules/fsusage (License): Change to LGPL.
19849         * modules/full-read (License): Likewise.
19850         * modules/full-write (License): Likewise.
19851         * modules/safe-read (License): Likewise.
19852         * modules/safe-write (License): Likewise.
19853
19854 2007-06-14  Ben Pfaff  <blp@gnu.org>
19855
19856         Missing part of allocsa -> malloca transition.
19857         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19858         gl_MALLOCA.
19859
19860 2007-06-12  Bruno Haible  <bruno@clisp.org>
19861
19862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19863         to ia64, x86_64, i386.
19864         Reported by Eric Blake.
19865
19866 2007-06-12  Bruno Haible  <bruno@clisp.org>
19867
19868         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19869         cross-compiling to x86_64.
19870
19871 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19872
19873         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19874         glitch reported by Ralf Wildenhues in
19875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19876
19877         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19878         Vin Shelton.
19879
19880 2007-06-11  Bruno Haible  <bruno@clisp.org>
19881
19882         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19883         replacement string.
19884         Reported by Eric Blake.
19885
19886 2007-06-10  Bruno Haible  <bruno@clisp.org>
19887
19888         Prepare vasnprintf code for use with Unicode strings.
19889         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19890         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19891         TYPE_U32_STRING.
19892         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19893         a_u32_string variants.
19894         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19895         * lib/printf-args.c: Don't include config.h and the specification
19896         header if PRINTF_FETCHARGS is already defined.
19897         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19898         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19899         TYPE_U16_STRING, TYPE_U32_STRING.
19900         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19901         u16_directive, u16_directives, u32_directive, u32_directives): New
19902         types.
19903         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19904         New declarations.
19905         * lib/printf-parse.c: Don't include config.h and the specification
19906         header if PRINTF_PARSE is already defined. Eliminate the set of
19907         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19908         them now. Include c-ctype.h.
19909         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19910         directive and CHAR_T_ONLY_ASCII.
19911         * lib/vasnprintf.c: Don't include config.h and the specification header
19912         if VASNPRINTF is already defined.
19913         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19914         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19915         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19916         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19917         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19918         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19919         code accordingly.
19920         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19921         pad_ourselves also in this case, with the 'c' and 's' directives, and
19922         with a different notion of "width".
19923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19924
19925 2007-06-10  Bruno Haible  <bruno@clisp.org>
19926
19927         * modules/unistr/u32-mbsnlen: New file.
19928         * lib/unistr/u32-mbsnlen.c: New file.
19929
19930         * modules/unistr/u16-mbsnlen: New file.
19931         * lib/unistr/u16-mbsnlen.c: New file.
19932
19933         * modules/unistr/u8-mbsnlen: New file.
19934         * lib/unistr/u8-mbsnlen.c: New file.
19935
19936         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19937         declarations.
19938
19939 2007-06-10  Bruno Haible  <bruno@clisp.org>
19940
19941         * lib/string_.h (mbsnlen): New declaration.
19942         * lib/mbsnlen.c: New file.
19943         * m4/mbsnlen.m4: New file.
19944         * modules/mbsnlen: New file.
19945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19946         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19947         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19948
19949 2007-06-10  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19952
19953 2007-06-10  Bruno Haible  <bruno@clisp.org>
19954
19955         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19956         * lib/mbuiter.h: Likewise.
19957
19958 2007-06-10  Bruno Haible  <bruno@clisp.org>
19959
19960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19961         declaration.
19962
19963 2007-06-10  Karl Berry  <karl@gnu.org>
19964
19965         * config/srclist.txt: remove gettext entries, Bruno prefers
19966         to update individually.
19967
19968 2007-06-10  Bruno Haible  <bruno@clisp.org>
19969
19970         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19971         'maxlen'. Ensure only length + width bytes are allocated, not
19972         length + 1 + width.
19973
19974 2007-06-09  Bruno Haible  <bruno@clisp.org>
19975
19976         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19977         (CHAR_T): Remove macro.
19978         (VASNPRINTF): Update.
19979
19980 2007-06-09  Bruno Haible  <bruno@clisp.org>
19981
19982         * MODULES.html.sh (Unicode string functions): Add the new modules.
19983
19984         * modules/uniconv/u32-conv-to-enc: New file.
19985         * lib/uniconv/u32-conv-to-enc.c: New file.
19986         * modules/uniconv/u32-conv-to-enc-tests: New file.
19987         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19988
19989         * modules/uniconv/u16-conv-to-enc: New file.
19990         * lib/uniconv/u16-conv-to-enc.c: New file.
19991         * lib/uniconv/u-conv-to-enc.h: New file.
19992         * modules/uniconv/u16-conv-to-enc-tests: New file.
19993         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19994
19995         * modules/uniconv/u8-conv-to-enc: New file.
19996         * lib/uniconv/u8-conv-to-enc.c: New file.
19997         * modules/uniconv/u8-conv-to-enc-tests: New file.
19998         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19999
20000         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20001         u32_conv_to_encoding): New declarations.
20002
20003 2007-06-09  Bruno Haible  <bruno@clisp.org>
20004
20005         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
20006
20007 2007-06-09  Bruno Haible  <bruno@clisp.org>
20008
20009         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
20010         * modules/malloca: Renamed from modules/allocsa, updated.
20011         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
20012         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
20013         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
20014         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
20015         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
20016         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
20017         * modules/xmalloca: Renamed from modules/xallocsa, updated.
20018         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
20019         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
20020         * modules/c-strcasestr (Depends-on): Update.
20021         * lib/c-strcasestr.c: Update.
20022         * modules/c-strstr (Depends-on): Update.
20023         * lib/c-strstr.c: Update.
20024         * modules/canonicalize-lgpl (Depends-on): Update.
20025         * lib/canonicalize-lgpl.c: Update.
20026         * modules/clean-temp (Depends-on): Update.
20027         * lib/clean-temp.c: Update.
20028         * modules/csharpcomp (Depends-on): Update.
20029         * lib/csharpcomp.c: Update.
20030         * modules/csharpexec (Depends-on): Update.
20031         * lib/csharpexec.c: Update.
20032         * modules/javacomp (Depends-on): Update.
20033         * lib/javacomp.c: Update.
20034         * modules/javaexec (Depends-on): Update.
20035         * lib/javaexec.c: Update.
20036         * modules/mbscasestr (Depends-on): Update.
20037         * lib/mbscasestr.c: Update.
20038         * modules/mbsstr (Depends-on): Update.
20039         * lib/mbsstr.c: Update.
20040         * modules/setenv (Depends-on): Update.
20041         * lib/setenv.c: Update.
20042         * modules/strcasestr (Depends-on): Update.
20043         * lib/strcasestr.c: Update.
20044         * modules/striconveha (Depends-on): Update.
20045         * lib/striconveha.c: Update.
20046         * modules/relocatable-prog-wrapper (Files): Update.
20047         * lib/relocwrapper.c: Update.
20048         * build-aux/install-reloc: Update.
20049         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
20050
20051 2007-06-08  Bruno Haible  <bruno@clisp.org>
20052
20053         Port to uClibc.
20054         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
20055         * lib/fpurge.c (fpurge): Likewise.
20056         * lib/freading.c (freading): Likewise.
20057         * lib/fseeko.c (rpl_fseeko): Likewise.
20058         * lib/fseterr.c (fseterr): Likewise.
20059         * lib/fwriting.c (fwriting): Likewise.
20060         * tests/test-fflush.c (main): Avoid a failure on uClibc.
20061
20062 2007-06-08  Bruno Haible  <bruno@clisp.org>
20063
20064         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
20065         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
20066         * modules/gettext (Files): Add m4/intlmacosx.m4.
20067
20068 2007-06-07  Bruno Haible  <bruno@clisp.org>
20069
20070         * modules/localename-tests: New file.
20071         * tests/test-localename.c: New file.
20072
20073         New module 'localename'.
20074         * lib/localename.h: New file.
20075         * lib/localename.c: New file, from GNU gettext.
20076         * m4/localename.m4: New file.
20077         * modules/localename: New file.
20078
20079 2007-06-07  Bruno Haible  <bruno@clisp.org>
20080
20081         Work around the lack of <wchar.h> on some builds of uClibc.
20082         * doc/headers/wchar.texi: Update.
20083         * lib/wchar_.h: Include <wchar.h> only if it exists.
20084         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
20085         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
20086         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
20087         doesn't exist.
20088         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
20089         * modules/mbfile (Depends-on): Add wchar.
20090         * modules/mbiter (Depends-on): Likewise.
20091         * modules/mbuiter (Depends-on): Likewise.
20092         Reported by Simon Josefsson.
20093
20094 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
20095
20096         Work around problem reported by Steven M. Schweda in
20097         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
20098         Tru64 5.1B with the Compaq compiler environment installed declares
20099         an 'isblank' function but does not define it in the C library.
20100         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
20101         * lib/regex_internal.h (isblank): Likewise.
20102         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
20103         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20104
20105 2007-06-05  Bruno Haible  <bruno@clisp.org>
20106
20107         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
20108         ia64.
20109         * modules/printf-safe: New file.
20110         * modules/fprintf-posix (Depends-on): Add printf-safe.
20111         * modules/printf-posix (Depends-on): Likewise.
20112         * modules/snprintf-posix (Depends-on): Likewise.
20113         * modules/sprintf-posix (Depends-on): Likewise.
20114         * modules/vasnprintf-posix (Depends-on): Likewise.
20115         * modules/vasprintf-posix (Depends-on): Likewise.
20116         * modules/vfprintf-posix (Depends-on): Likewise.
20117         * modules/vprintf-posix (Depends-on): Likewise.
20118         * modules/vsnprintf-posix (Depends-on): Likewise.
20119         * modules/vsprintf-posix (Depends-on): Likewise.
20120         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
20121         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
20122         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
20123         "no" on i386, x86_64, ia64.
20124         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
20125         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20126         on i386, x86_64, ia64.
20127         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
20128         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20129         on i386, x86_64, ia64.
20130         * tests/test-vasnprintf-posix.c: Include float.h.
20131         (LDBL80_WORDS): New macro.
20132         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20133         on i386, x86_64, ia64.
20134         * tests/test-vasprintf-posix.c: Include float.h.
20135         (LDBL80_WORDS): New macro.
20136         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20137         on i386, x86_64, ia64.
20138         * tests/test-snprintf-posix.c: Include float.h.
20139         * tests/test-sprintf-posix.c: Likewise.
20140         * tests/test-vsnprintf-posix.c: Likewise.
20141         * tests/test-vsprintf-posix.c: Likewise.
20142
20143 2007-06-05  Bruno Haible  <bruno@clisp.org>
20144
20145         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
20146         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
20147         non-IEEE numbers on i386, x86_64, ia64.
20148         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
20149         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
20150         * tests/test-isnanl.h: Include float.h.
20151         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
20152
20153 2007-06-05  Bruno Haible  <bruno@clisp.org>
20154
20155         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
20156         also the %a / %A. Handle the %a / %A code before this extra handling.
20157
20158 2007-06-05  Bruno Haible  <bruno@clisp.org>
20159
20160         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
20161         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
20162
20163 2007-06-05  Bruno Haible  <bruno@clisp.org>
20164
20165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
20166         typo in variable name.
20167
20168 2007-06-05  Eric Blake  <ebb9@byu.net>
20169
20170         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
20171         Reported by Simon Josefsson.
20172
20173 2007-06-04  Bruno Haible  <bruno@clisp.org>
20174
20175         Avoid test failures on some PowerPC platforms.
20176         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
20177         Define differently for PowerPC.
20178         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
20179         Reported by Gary V. Vaughan <gary@gnu.org>.
20180
20181 2007-06-02  Bruno Haible  <bruno@clisp.org>
20182
20183         Fix test-stdint failure on FreeBSD/ia64.
20184         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
20185         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
20186         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
20187         * doc/headers/stdint.texi: Update.
20188
20189 2007-06-01  Bruno Haible  <bruno@clisp.org>
20190
20191         * tests/test-binary-io.c (main): Pass a third argument to open().
20192         Reported by Gary V. Vaughan <gary@gnu.org>.
20193
20194 2007-06-01  Bruno Haible  <bruno@clisp.org>
20195
20196         * doc/functions/frexpl.texi: Update for mingw.
20197
20198 2007-06-01  Bruno Haible  <bruno@clisp.org>
20199
20200         * tests/test-lseek.c (main): Disable test of errno for invalid third
20201         argument.
20202         * doc/functions/lseek.texi: Update.
20203         Reported by Gary V. Vaughan <gary@gnu.org>.
20204
20205 2007-05-28  Bruno Haible  <bruno@clisp.org>
20206
20207         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
20208
20209 2007-05-31  Eric Blake  <ebb9@byu.net>
20210
20211         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
20212         cross compiling.
20213
20214 2007-05-30  Eric Blake  <ebb9@byu.net>
20215         and Bruno Haible  <bruno@clisp.org>
20216
20217         Work around mingw test failures exposed by m4-1.4.9b.
20218         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
20219         * tests/test-unistd.c: Disable uid_t and git_t tests for the
20220         moment.
20221
20222 2007-05-30  Bruno Haible  <bruno@clisp.org>
20223
20224         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
20225         assuming that they are closed. Needed on HP-UX 11.
20226
20227 2007-05-29  Bruno Haible  <bruno@clisp.org>
20228
20229         Fix a problem with #include_next.
20230         * lib/dirent_.h: Split the double-inclusion guard.
20231         * lib/fcntl_.h: Likewise.
20232         * lib/float_.h: Likewise.
20233         * lib/iconv_.h: Likewise.
20234         * lib/inttypes_.h: Likewise.
20235         * lib/locale_.h: Likewise.
20236         * lib/math_.h: Likewise.
20237         * lib/netinet_in_.h: Likewise.
20238         * lib/search_.h: Likewise.
20239         * lib/signal_.h: Likewise.
20240         * lib/stdint_.h: Likewise.
20241         * lib/stdio_.h: Likewise.
20242         * lib/stdlib_.h: Likewise.
20243         * lib/string_.h: Likewise.
20244         * lib/sys_select_.h: Likewise.
20245         * lib/sys_socket_.h: Likewise.
20246         * lib/sys_stat_.h: Likewise.
20247         * lib/sys_time_.h: Likewise.
20248         * lib/sysexits_.h: Likewise.
20249         * lib/time_.h: Likewise.
20250         * lib/unistd_.h: Likewise.
20251         * lib/wchar_.h: Likewise.
20252         * lib/wctype_.h: Likewise.
20253
20254 2007-05-29  Bruno Haible  <bruno@clisp.org>
20255
20256         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
20257         for the moment.
20258
20259 2007-05-29  Bruno Haible  <bruno@clisp.org>
20260
20261         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
20262         invocation.
20263         Reported by Eric Blake.
20264
20265 2007-05-29  Bruno Haible  <bruno@clisp.org>
20266
20267         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
20268         compiling case.
20269
20270 2007-05-29  Eric Blake  <ebb9@byu.net>
20271             Bruno Haible  <bruno@clisp.org>
20272
20273         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
20274         cross compiles.
20275
20276 2007-05-28  Eric Blake  <ebb9@byu.net>
20277
20278         * modules/closein-tests (test_closein_LDADD): Support test on
20279         cygwin with libtool.
20280
20281 2007-05-28  Bruno Haible  <bruno@clisp.org>
20282
20283         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
20284         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20285         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20286         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20287         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20288         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20289         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20290         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20291         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20292
20293 2007-05-28  Eric Blake  <ebb9@byu.net>
20294
20295         Unconditionally include <config.h> in unit tests.
20296         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
20297         * tests/test-allocsa.c, tests/test-arcfour.c,
20298         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
20299         tests/test-array_list.c, tests/test-array_oset.c,
20300         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
20301         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
20302         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
20303         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
20304         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
20305         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
20306         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
20307         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
20308         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
20309         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
20310         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
20311         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
20312         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
20313         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
20314         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
20315         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
20316         test-md5.c, test-memmem.c, test-printf-posix.c,
20317         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
20318         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
20319         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
20320         test-strcasestr.c, test-striconv.c, test-striconveh.c,
20321         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
20322         test-vasnprintf-posix2.c, test-vasnprintf.c,
20323         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
20324         test-vfprintf-posix.c, test-vprintf-posix.c,
20325         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
20326         test-xvasprintf.c: Likewise.
20327
20328 2007-05-28  Bruno Haible  <bruno@clisp.org>
20329
20330         * gnulib-tool (func_import): Remember the --with-tests command-line
20331         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
20332         Reported by Eric Blake.
20333
20334 2007-05-28  Bruno Haible  <bruno@clisp.org>
20335
20336         * modules/ftell-tests: New file.
20337         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
20338         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
20339
20340         * lib/ftell.c: New file.
20341         * modules/ftell: New file.
20342         * m4/ftell.m4: New file.
20343         * doc/functions/ftell.texi: Update.
20344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
20345         REPLACE_FTELL.
20346         * lib/stdio_.h (rpl_ftell): New declaration.
20347         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
20348         REPLACE_FTELL.
20349
20350 2007-05-28  Eric Blake  <ebb9@byu.net>
20351
20352         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
20353
20354 2007-05-28  Bruno Haible  <bruno@clisp.org>
20355
20356         * modules/fseek-tests: New file.
20357         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
20358         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
20359
20360         * lib/fseek.c: New file.
20361         * modules/fseek: New file.
20362         * m4/fseek.m4: New file.
20363         * doc/functions/fseek.texi: Update.
20364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
20365         REPLACE_FSEEK.
20366         * lib/stdio_.h (rpl_fseek): New declaration.
20367         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
20368         REPLACE_FSEEK.
20369
20370 2007-05-28  Bruno Haible  <bruno@clisp.org>
20371
20372         * lib/stdio_.h (fflush): More comments.
20373
20374 2007-05-28  Bruno Haible  <bruno@clisp.org>
20375
20376         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
20377         runtime test.
20378
20379 2007-05-28  Eric Blake  <ebb9@byu.net>
20380
20381         Improve lseek module.
20382         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
20383         * lib/unistd_.h (lseek): Scale back link warning message.
20384         * tests/test-lseek.c: Beef up test.
20385         * tests/test-lseek.sh: Exercise more facets of lseek.
20386         Reported by Bruno Haible.
20387
20388 2007-05-28  Bruno Haible  <bruno@clisp.org>
20389
20390         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
20391         to define.
20392
20393 2007-05-27  Bruno Haible  <bruno@clisp.org>
20394
20395         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
20396
20397 2007-05-27  Bruno Haible  <bruno@clisp.org>
20398
20399         * modules/openmp: New file.
20400         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
20401         Noah Misch.
20402
20403 2007-05-26  Bruno Haible  <bruno@clisp.org>
20404
20405         * modules/chdir-long (Depends-on): Add fchdir.
20406         * modules/chdir-safer (Depends-on): Likewise.
20407         * modules/fts (Depends-on): Likewise.
20408         * modules/fts-lgpl (Depends-on): Likewise.
20409         * modules/openat (Depends-on): Likewise.
20410         * modules/savewd (Depends-on): Likewise.
20411
20412 2007-05-24  Eric Blake  <ebb9@byu.net>
20413
20414         Fix lseek on mingw.
20415         * modules/lseek: New module.
20416         * m4/lseek.m4: New file.
20417         * lib/lseek.c: New file.
20418         * modules/lseek-tests: New file.
20419         * tests/test-lseek.c: New file.
20420         * tests/test-lseek.sh: New file.
20421         * MODULES.html.sh: Document lseek module.
20422         * modules/fflush (Depends-on): Add lseek, fseeko.
20423         * modules/fseeko (Depends-on): Likewise.
20424         * modules/ftello (Depends-on): Likewise.
20425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
20426         broken.
20427         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
20428         broken.
20429         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
20430         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
20431         * lib/ftello.c (rpl_ftello): Likewise.
20432         * tests/test-fseeko.c (main): Test this.
20433         * tests/test-fseeko.sh: Likewise.
20434         * tests/test-ftello.c (main): Likewise.
20435         * tests/test-ftello.sh: Likewise.
20436         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
20437         implies replacing fseek.
20438         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
20439         HAVE_FTELLO.
20440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
20441         * modules/unistd (Makefile.am): Likewise.
20442         * lib/unistd_.h (lseek): Declare a replacement.
20443         * doc/functions/lseek.texi (lseek): Document this fix.
20444         * doc/functions/fseek.texi (fseek): Likewise.
20445         * doc/functions/ftell.texi (ftell): Likewise.
20446
20447 2007-05-24  Bruno Haible  <bruno@clisp.org>
20448
20449         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
20450         in the printed representation of a NaN.
20451         * tests/test-vasprintf-posix.c (test_function): Likewise.
20452         * tests/test-snprintf-posix.h (test_function): Likewise.
20453         * tests/test-sprintf-posix.h (test_function): Likewise.
20454         Reported by Eric Blake.
20455
20456 2007-05-23  Eric Blake  <ebb9@byu.net>
20457
20458         Fix fseeko/ftello on cygwin 1.5.24.
20459         * doc/functions/fseeko.texi (fseeko): Document the fix.
20460         * doc/functions/ftello.texi (ftello): Document the fix.
20461         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
20462         * doc/functions/stdout.text (stdout): New file.
20463         * doc/functions/stderr.text (stderr): New file.
20464         * doc/gnulib.texi (Function Substitutes): Use new files.
20465         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
20466         prior to 1.7.0.
20467         * tests/test-ftello.c (main): Likewise for ftello.
20468         * tests/test-fseeko.sh: New file.
20469         * tests/test-ftello.sh: New file.
20470         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
20471         with seekable stdin.
20472         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
20473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
20474         (gl_REPLACE_FSEEKO): New macro.
20475         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
20476         * modules/fseeko (Files): Distribute fseeko.c.
20477         * modules/ftello (Files): Distribute ftello.c.
20478         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
20479         mode.
20480         * lib/ftello.c (rpl_ftello): New file.
20481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
20482         fseeko, ftello.
20483         (gl_STDIN_LARGE_OFFSET): New macro.
20484         * modules/stdio (Makefile.am): Perform the replacement.
20485         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
20486
20487 2007-05-23  Bruno Haible  <bruno@clisp.org>
20488
20489         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
20490         GNULIB_POSIXCHECK is defined.
20491
20492 2007-05-21  Bruno Haible  <bruno@clisp.org>
20493
20494         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
20495         Check also the output for NaN arguments. When cross-compiling, guess
20496         no on IRIX.
20497         * lib/vasnprintf.c: Update comments.
20498         * tests/test-vasnprintf-posix.c (strisnan): New function.
20499         (test_function): Use it.
20500         * tests/test-vasprintf-posix.c (strisnan): New function.
20501         (test_function): Use it.
20502         * tests/test-snprintf-posix.h (strisnan): New function.
20503         (test_function): Use it.
20504         * tests/test-sprintf-posix.h (strisnan): New function.
20505         (test_function): Use it.
20506         Reported by Eric Blake.
20507
20508 2007-05-20  Bruno Haible  <bruno@clisp.org>
20509
20510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
20511         numbers that fails on BeOS.
20512         * doc/functions/frexpl.texi: Update.
20513
20514 2007-05-20  Jim Meyering  <jim@meyering.net>
20515
20516         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
20517         forced upon us by glibc-2.6.
20518
20519 2007-05-20  Bruno Haible  <bruno@clisp.org>
20520
20521         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
20522         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
20523         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
20524         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
20525         NEED_PRINTF_INFINITE.
20526         (is_infinitel): New function.
20527         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
20528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
20529         gl_PREREQ_VASNPRINTF_INFINITE.
20530         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
20531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20532         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
20533         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
20534         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
20535         gl_PREREQ_VASNPRINTF_INFINITE.
20536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20543         * doc/functions/fprintf.texi: Update.
20544         * doc/functions/printf.texi: Update.
20545         * doc/functions/snprintf.texi: Update.
20546         * doc/functions/sprintf.texi: Update.
20547         * doc/functions/vfprintf.texi: Update.
20548         * doc/functions/vprintf.texi: Update.
20549         * doc/functions/vsnprintf.texi: Update.
20550         * doc/functions/vsprintf.texi: Update.
20551
20552 2007-05-20  Bruno Haible  <bruno@clisp.org>
20553
20554         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
20555         was not found in libc.
20556         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20557
20558 2007-05-20  Bruno Haible  <bruno@clisp.org>
20559
20560         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20561         printed as "-nan" instead of "nan".
20562         * tests/test-vasprintf-posix.c (test_function): Likewise.
20563         * tests/test-snprintf-posix.h (test_function): Likewise.
20564         * tests/test-sprintf-posix.h (test_function): Likewise.
20565         Needed for HP-UX 11.
20566
20567 2007-05-20  Jim Meyering  <jim@meyering.net>
20568
20569         Fix buggy test for the fchownat-deref bug.
20570         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
20571         symlink required for the run-test.  Without it, this test would
20572         always declare that fchownat doesn't work, and client code would
20573         unnecessarily use the replacement function with fixed libc.
20574         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
20575         Reported by Greg Schafer.
20576
20577 2007-05-19  Bruno Haible  <bruno@clisp.org>
20578
20579         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
20580         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
20581         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
20582         Needed for IRIX 6.5 and Solaris 2.5.1.
20583
20584 2007-05-19  Bruno Haible  <bruno@clisp.org>
20585
20586         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
20587         (test_function): Skip tests involving -0.0 on platforms where
20588         -0.0 = 0.0.
20589         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
20590         (test_function): Skip tests involving -0.0 on platforms where
20591         -0.0 = 0.0.
20592         * tests/test-snprintf-posix.h (have_minus_zero): New function.
20593         (test_function): Skip tests involving -0.0 on platforms where
20594         -0.0 = 0.0.
20595         * tests/test-sprintf-posix.h (have_minus_zero): New function.
20596         (test_function): Skip tests involving -0.0 on platforms where
20597         -0.0 = 0.0.
20598         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
20599         tests.
20600         * tests/test-printf-posix.h (test_function): Likewise.
20601         * tests/test-printf-posix.output: Remove all -0.0 related results.
20602         Needed for IRIX 6.5.
20603
20604 2007-05-19  Bruno Haible  <bruno@clisp.org>
20605
20606         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20607         printed as "nan0x7fffffff" instead of "nan".
20608         * tests/test-vasprintf-posix.c (test_function): Likewise.
20609         * tests/test-snprintf-posix.h (test_function): Likewise.
20610         * tests/test-sprintf-posix.h (test_function): Likewise.
20611         * tests/test-fprintf-posix.h (NaN): Remove macro.
20612         (test_function): Remove all NaN related tests.
20613         * tests/test-printf-posix.h (NaN): Remove macro.
20614         (test_function): Remove all NaN related tests.
20615         * tests/test-printf-posix.output: Remove all NaN related results.
20616         Needed for IRIX 6.5.
20617
20618 2007-05-19  Bruno Haible  <bruno@clisp.org>
20619
20620         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
20621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20622
20623 2007-05-19  Bruno Haible  <bruno@clisp.org>
20624
20625         * lib/float_.h: New file.
20626         * m4/float_h.m4: New file.
20627         * modules/float: New file.
20628         * modules/isnanl (Dependencies): Add float.
20629         * modules/isnanl-nolibm (Dependencies): Likewise.
20630         * modules/mathl (Dependencies): Likewise.
20631         * modules/printf-frexpl (Dependencies): Likewise.
20632         * modules/signbit (Dependencies): Likewise.
20633         * modules/vasnprintf (Dependencies): Likewise.
20634         * doc/headers/float.texi: Update.
20635
20636 2007-05-19  Jim Meyering  <jim@meyering.net>
20637
20638         * lib/utimens.c (gl_futimens): Rename from futimens,
20639         now that glibc-2.6 declares futimens.
20640         * lib/utimens.h: Likewise.
20641
20642 2007-05-19  Bruno Haible  <bruno@clisp.org>
20643
20644         Avoid test failures on mingw.
20645         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
20646         * tests/test-printf-posix.sh: Likewise.
20647         * tests/test-vfprintf-posix.sh: Likewise.
20648         * tests/test-vprintf-posix.sh: Likewise.
20649
20650 2007-05-19  Bruno Haible  <bruno@clisp.org>
20651
20652         Fix *printf result for NaN, Inf, -0.0 on mingw.
20653         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
20654         * lib/vasnprintf.c: Include math.h and isnan.h.
20655         (is_infinite_or_zero): New function.
20656         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
20657         values in the %f, %F, %e, %E, %g, %G directives.
20658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
20659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20660         gl_PRINTF_INFINITE and test its result. Invoke
20661         gl_PREREQ_VASNPRINTF_INFINITE.
20662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20663         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20669         * doc/functions/fprintf.texi: Update.
20670         * doc/functions/printf.texi: Update.
20671         * doc/functions/snprintf.texi: Update.
20672         * doc/functions/sprintf.texi: Update.
20673         * doc/functions/vfprintf.texi: Update.
20674         * doc/functions/vprintf.texi: Update.
20675         * doc/functions/vsnprintf.texi: Update.
20676         * doc/functions/vsprintf.texi: Update.
20677
20678 2007-05-19  Bruno Haible  <bruno@clisp.org>
20679
20680         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
20681         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
20682         Instead of multiplying with 10^k, set extra_zeroes to k.
20683         (scale10_round_long_double): Remove function.
20684
20685 2007-05-18  Bruno Haible  <bruno@clisp.org>
20686
20687         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
20688         introduced on 2007-05-06.
20689
20690 2007-05-18  Bruno Haible  <bruno@clisp.org>
20691
20692         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
20693         %g directives.
20694         * tests/test-vasprintf-posix.c (test_function): Likewise.
20695         * tests/test-snprintf-posix.h (test_function): Likewise.
20696         * tests/test-sprintf-posix.h (test_function): Likewise.
20697
20698 2007-05-18  Bruno Haible  <bruno@clisp.org>
20699
20700         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
20701         (strmatch): New function.
20702         (test_function): Test the %f directive on numbers of various exponents.
20703         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
20704         (strmatch): New function.
20705         (test_function): Test the %f directive on numbers of various exponents.
20706         * tests/test-snprintf-posix.h (strmatch): New function.
20707         (test_function): Test the %f directive on numbers of various exponents.
20708         * tests/test-sprintf-posix.h (strmatch): New function.
20709         (test_function): Test the %f directive on numbers of various exponents.
20710         * tests/test-snprintf-posix.c (SIZEOF): New macro.
20711         * tests/test-sprintf-posix.c (SIZEOF): New macro.
20712         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
20713         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
20714
20715 2007-05-18  Bruno Haible  <bruno@clisp.org>
20716
20717         Add support for 'long double' number output.
20718         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
20719         * lib/vasnprintf.c: Include math.h and float+.h.
20720         (mp_limb_t): New type.
20721         (GMP_LIMB_BITS): New macro.
20722         (mp_twolimb_t): New type.
20723         (GMP_TWOLIMB_BITS): New macro.
20724         (mpn_t): New type.
20725         (multiply, divide, convert_to_decimal, decode_long_double,
20726         scale10_round_long_double, scale10_round_decimal_long_double,
20727         floorlog10l): New functions.
20728         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20729         for the %f, %F, %e, %E, %g, %G directives.
20730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20732         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20733         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20738         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20740         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20741         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20742         * modules/snprintf-posix (Depends-on): Likewise.
20743         * modules/sprintf-posix (Depends-on): Likewise.
20744         * modules/vasnprintf-posix (Depends-on): Likewise.
20745         * modules/vasprintf-posix (Depends-on): Likewise.
20746         * modules/vfprintf-posix (Depends-on): Likewise.
20747         * modules/vsnprintf-posix (Depends-on): Likewise.
20748         * modules/vsprintf-posix (Depends-on): Likewise.
20749         * modules/vasnprintf (Files): Add lib/float+.h.
20750         * doc/functions/fprintf.texi: Update.
20751         * doc/functions/printf.texi: Update.
20752         * doc/functions/snprintf.texi: Update.
20753         * doc/functions/sprintf.texi: Update.
20754         * doc/functions/vfprintf.texi: Update.
20755         * doc/functions/vprintf.texi: Update.
20756         * doc/functions/vsnprintf.texi: Update.
20757         * doc/functions/vsprintf.texi: Update.
20758
20759 2007-05-18  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20762
20763 2007-05-18  Bruno Haible  <bruno@clisp.org>
20764
20765         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20766         for printing 64-bit integers. Needed for mingw.
20767
20768 2007-05-18  Bruno Haible  <bruno@clisp.org>
20769
20770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20771         gl_FUNC_FREXPL_WORKS.
20772         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20773
20774 2007-05-18  Bruno Haible  <bruno@clisp.org>
20775
20776         * modules/frexpl-nolibm-tests: New file.
20777
20778         * modules/frexpl-nolibm: New file.
20779         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20780
20781 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20782
20783         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20784         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20785         GCC 4.2, which otherwise issues a lot of warnings.
20786         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20787         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20788         Likewise.
20789         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20790         * modules/iconv_open (iconv.h): Likewise.
20791         * modules/locale (locale.h): Likewise.
20792         * modules/netinet_in (netinet/in.h): Likewise.
20793         * modules/sys_select (sys_select.h): Likewise.
20794         * modules/sys_socket (sys/socket.h): Likewise.
20795         * modules/sys_stat (sys/stat.h): Likewise.
20796         * modules/sysexits (sysexits.h): Likewise.
20797         * modules/unistd (unistd.h): Likewise.
20798
20799 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20800
20801         * modules/closein-tests (Makefile.am): Distribute
20802         `test-closein.sh'.
20803
20804 2007-05-17  Bruno Haible  <bruno@clisp.org>
20805
20806         * tests/test-printf-posix.output: Renamed from
20807         tests/test-fprintf-posix.out.
20808         * modules/fprintf-posix-tests: Update.
20809         * modules/printf-posix-tests: Update.
20810         * modules/vfprintf-posix-tests: Update.
20811         * modules/vprintf-posix-tests: Update.
20812         * tests/test-fprintf-posix.sh: Update.
20813         * tests/test-printf-posix.sh: Update.
20814         * tests/test-vfprintf-posix.sh: Update.
20815         * tests/test-vprintf-posix.sh: Update.
20816         Reported by Ralf Wildenhues.
20817
20818 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20819
20820         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20821         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20822         GCC 4.2, which otherwise issues a lot of warnings.
20823         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20824         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20825         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20826         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20827         it should no longer be needed.
20828         * lib/string_.h: Likewise.
20829         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20830         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20831         * modules/inttypes (inttypes.h): Likewise.
20832         * modules/math (math.h): Likewise.
20833         * modules/search (search.h): Likewise.
20834         * modules/signal (signal.h): Likewise.
20835         * modules/stdint (stdint.h): Likewise.
20836         * modules/stdio (stdio.h): Likewise.
20837         * modules/stdlib (stdlib.h): Likewise.
20838         * modules/string (string.h): Likewise.
20839         * modules/sys_time (sys/time.h): Likewise.
20840         * modules/time (time.h): Likewise.
20841         * modules/wchar (wchar.h): Likewise.
20842         * modules/wctype (wtype.h): Likewise.
20843
20844 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20845
20846         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20847
20848 2007-05-13  Bruno Haible  <bruno@clisp.org>
20849
20850         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20851         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20852         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20853         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20854         (gl_PREREQ_STRTOK_R): Don't require it here.
20855
20856 2007-05-13  Bruno Haible  <bruno@clisp.org>
20857
20858         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20859         when used in C++ mode.
20860
20861 2007-05-12  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/linebuffer.h: Tweak doc.
20864         * lib/linebuffer.c: Likewise.
20865
20866 2007-05-12  James Youngman  <jay@gnu.org>
20867
20868         * lib/linebuffer.c (readlinebuffer_delim): New function,
20869         like readlinebuffer, but use a caller-specified delimiter.
20870         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20871         as the delimiter.
20872         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20873
20874 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20875
20876         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20877         * modules/openat (Files): Remove openat-die.c.
20878         (Depends-on): Add openat-die.
20879         * modules/openat-die: New module.
20880
20881 2007-05-06  Bruno Haible  <bruno@clisp.org>
20882
20883         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20884         Update with info about Cygwin.
20885         * doc/functions/fprintf.texi: Update.
20886         * doc/functions/printf.texi: Update.
20887         * doc/functions/snprintf.texi: Update.
20888         * doc/functions/sprintf.texi: Update.
20889         * doc/functions/vfprintf.texi: Update.
20890         * doc/functions/vprintf.texi: Update.
20891         * doc/functions/vsnprintf.texi: Update.
20892         * doc/functions/vsprintf.texi: Update.
20893         Reported by Eric Blake.
20894
20895 2007-05-06  Bruno Haible  <bruno@clisp.org>
20896
20897         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20898         padding ourselves for the floating-point directives.
20899         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20902         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20903         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20905         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20911         * tests/test-snprintf-posix.h (test_function): Also check the width
20912         and some flags in the %f directive.
20913         * tests/test-sprintf-posix.h (test_function): Likewise.
20914         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20915         * tests/test-vasprintf-posix.c (test_function): Likewise.
20916         * doc/functions/fprintf.texi: Update.
20917         * doc/functions/printf.texi: Update.
20918         * doc/functions/snprintf.texi: Update.
20919         * doc/functions/sprintf.texi: Update.
20920         * doc/functions/vfprintf.texi: Update.
20921         * doc/functions/vprintf.texi: Update.
20922         * doc/functions/vsnprintf.texi: Update.
20923         * doc/functions/vsprintf.texi: Update.
20924
20925 2007-05-06  Bruno Haible  <bruno@clisp.org>
20926
20927         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20928         pass the ' flag character to sprintf or snprintf.
20929         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20932         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20933         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20934         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20941         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20942         flag.
20943         * tests/test-sprintf-posix.h (test_function): Likewise.
20944         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20945         * tests/test-vasprintf-posix.c (test_function): Likewise.
20946         * doc/functions/fprintf.texi: Update.
20947         * doc/functions/printf.texi: Update.
20948         * doc/functions/snprintf.texi: Update.
20949         * doc/functions/sprintf.texi: Update.
20950         * doc/functions/vfprintf.texi: Update.
20951         * doc/functions/vprintf.texi: Update.
20952         * doc/functions/vsnprintf.texi: Update.
20953         * doc/functions/vsprintf.texi: Update.
20954
20955 2007-05-01  Bruno Haible  <bruno@clisp.org>
20956
20957         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20958
20959 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20962         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20963
20964 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20965
20966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20967         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20969
20970 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20971
20972         * lib/argp-help.c (struct hol_entry): New member `ord'.
20973         (HOL_ENTRY_PTRCMP): Use ord for comparison
20974         (hol_sort): Initialize ord.
20975
20976 2007-05-01  Bruno Haible  <bruno@clisp.org>
20977
20978         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20979         Reported by Eric Blake.
20980         * doc/gnulib.texi (Function Substitutes): Update.
20981
20982 2007-05-01  Bruno Haible  <bruno@clisp.org>
20983
20984         * doc/functions.texi: Remove file, now redundant through
20985         doc/functions/*.texi.
20986
20987 2007-05-01  Bruno Haible  <bruno@clisp.org>
20988
20989         * modules/argp (Depends-on): Add sleep.
20990
20991 2007-05-01  Bruno Haible  <bruno@clisp.org>
20992
20993         * modules/sleep-tests: New file.
20994         * tests/test-sleep.c: New file.
20995
20996         * modules/sleep: New file.
20997         * lib/sleep.c: New file.
20998         * m4/sleep.m4: New file.
20999         * lib/unistd_.h (sleep): New declaration.
21000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
21001         HAVE_SLEEP.
21002         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
21003         * doc/functions/sleep.texi: Document the sleep module.
21004
21005 2007-05-01  Bruno Haible  <bruno@clisp.org>
21006
21007         * lib/sigprocmask.h: Remove file.
21008         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
21009         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
21010         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
21011         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
21012         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
21013         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
21014         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
21015         HAVE_SIGSET_T as a shell variable.
21016         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
21017         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
21018         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
21019         (Depends-on): Add signal. Remove verify.
21020         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
21021         (Include): Mention <signal.h> instead of sigprocmask.h.
21022         * NEWS: Mention the change.
21023         * lib/fatal-signal.c: Don't include sigprocmask.h.
21024
21025 2007-05-01  Bruno Haible  <bruno@clisp.org>
21026
21027         * modules/signal: New file.
21028         * lib/signal_.h: New file.
21029         * m4/signal_h.m4: New file.
21030
21031 2007-05-01  Bruno Haible  <bruno@clisp.org>
21032
21033         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
21034         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
21035         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
21036         HAVE_WCTYPE_CTMP_BUG into wctype.h.
21037
21038 2007-05-01  Bruno Haible  <bruno@clisp.org>
21039
21040         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
21041         configure time.
21042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
21043         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
21044         * modules/sys_stat (Makefile.am): Substitute their values into
21045         sys/stat.h.
21046
21047 2007-05-01  Bruno Haible  <bruno@clisp.org>
21048
21049         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
21050         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
21051         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
21052
21053 2007-05-01  Bruno Haible  <bruno@clisp.org>
21054
21055         * doc/header/assert.texi: Undo last change: don't mention the gnulib
21056         'assert' module here.
21057
21058 2007-05-01  Bruno Haible  <bruno@clisp.org>
21059
21060         * doc/functions/*.texi: New files.
21061         * doc/functions/google-ranking.txt: New file.
21062         * doc/gnulib.texi (Function Substitutes): New chapter.
21063         (ctime, inet_ntoa): Remove sections.
21064         * doc/ctime.texi: Remove file.
21065         * doc/inet_ntoa.texi: Remove file.
21066         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
21067         dependencies.
21068         (%.info): New rule, specifying a --reference-limit.
21069
21070 2007-05-01  Bruno Haible  <bruno@clisp.org>
21071
21072         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
21073
21074 2007-05-01  Bruno Haible  <bruno@clisp.org>
21075
21076         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
21077         the portability of 'mkdir' to mingw systems.
21078
21079 2007-05-01  Bruno Haible  <bruno@clisp.org>
21080
21081         * doc/headers/google-ranking.txt: New file.
21082
21083 2007-04-30  Eric Blake  <ebb9@byu.net>
21084
21085         Prefer fseeko to fseek.
21086         * modules/getpass (Depends-on): Add fseeko.
21087         * lib/getpass.c (getpass): Use fseeko, not fseek.
21088
21089 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
21090
21091         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
21092         assumes the sorting is stable, while most qsort implementations
21093         are not.  Use argument addresses to ensure they never compare as
21094         equal.
21095
21096         * tests/test-argp-2.sh (usage-indent test): Fix output
21097         (func_compare): Restore diff options
21098         * tests/test-argp.c: Restore #include "progname.h"
21099
21100 2007-04-29  Bruno Haible  <bruno@clisp.org>
21101
21102         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
21103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21104         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
21105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21106         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
21107         (configure.ac): Define CHECK_SNPRINTF_POSIX.
21108         (TESTS, check_PROGRAMS): Add test-snprintf.
21109         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
21110         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
21111         (TESTS, check_PROGRAMS): Add test-vsnprintf.
21112         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
21113         assertions that fail on HP-UX, OSF/1, or IRIX.
21114         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
21115
21116 2007-04-29  Bruno Haible  <bruno@clisp.org>
21117
21118         * MODULES.html.sh (posix_functions): Remove 'contents'.
21119
21120 2007-04-29  Karl Berry  <karl@gnu.org>
21121
21122         * config/srclist.txt (gendocs_template_min): new entry.
21123
21124 2007-04-29  Bruno Haible  <bruno@clisp.org>
21125
21126         Work around fpurge bug on BSD systems.
21127         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
21128         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
21129         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
21130         fpurge to rpl_fpurge if the system already has this function.
21131         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
21132         the case where the system already has this function. Correct invariants
21133         on BSD systems.
21134         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
21135         BSD systems.
21136
21137 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
21138
21139         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
21140         proposed by Sven Verdoolaege.
21141
21142         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
21143         options.
21144         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
21145         (usage and help tests): Update
21146
21147 2007-04-29  Bruno Haible  <bruno@clisp.org>
21148
21149         * tests/test-fflush.c (main): Use a file of size 17, not 10.
21150         Print more information in case of failure. Disable a test on BeOS.
21151
21152 2007-04-29  Bruno Haible  <bruno@clisp.org>
21153
21154         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
21155         This helps debugging on systems on which no gdb is available.
21156
21157 2007-04-29  Bruno Haible  <bruno@clisp.org>
21158
21159         * lib/freading.h: Improve comments.
21160         * lib/fwriting.h: Likewise.
21161         * tests/test-freading.c (main): Don't check freading immediately after
21162         repositioning. Needed for glibc.
21163
21164 2007-04-29  Bruno Haible  <bruno@clisp.org>
21165
21166         * lib/freading.c (freading): Trivial simplification.
21167
21168 2007-04-28  Bruno Haible  <bruno@clisp.org>
21169
21170         * tests/test-fwriting.c (main): Also test the interaction between
21171         fflush and fwriting.
21172         * modules/fwriting-tests (Depends-on): Add fflush.
21173
21174         * tests/test-freading.c (main): Also test the interaction between
21175         fflush and freading.
21176         * modules/freading-tests (Depends-on): Add fflush.
21177
21178 2007-04-28  Bruno Haible  <bruno@clisp.org>
21179
21180         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
21181         fseeko and ftello.
21182         Suggested by Eric Blake.
21183
21184 2007-04-28  Jim Meyering  <jim@meyering.net>
21185
21186         Avoid false-negative in gl_STDINT_H's C99 conformance test.
21187         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
21188         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
21189
21190 2007-04-27  Eric Blake  <ebb9@byu.net>
21191
21192         * doc/headers/assert.texi (assert.h): Document assert module use.
21193
21194 2007-04-27  Bruno Haible  <bruno@clisp.org>
21195
21196         * doc/headers/*.texi: New files.
21197         * doc/gnulib.texi (Header File Substitutes): New chapter.
21198         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
21199         dependencies.
21200         (standards.info ,standards.html, standards.dvi): Update dependencies.
21201         (mostlyclean, clean): New targets.
21202
21203 2007-04-27  Bruno Haible  <bruno@clisp.org>
21204
21205         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
21206         * modules/sysexits (Files, Makefile.am): Update.
21207
21208         * lib/sys_socket_.h: Renamed from lib/socket_.h.
21209         * modules/sys_socket (Files, Makefile.am): Update.
21210
21211         * lib/sys_stat_.h: Renamed from lib/stat_.h.
21212         * modules/sys_stat (Files, Makefile.am): Update.
21213
21214 2007-04-27  Eric Blake  <ebb9@byu.net>
21215
21216         * lib/freading.h: Improve comments.
21217         * lib/fwriting.h: Likewise.
21218         * lib/fflush.c: Likewise.
21219
21220         Fix closein for mingw.
21221         * modules/closein-tests: Add tests for closein.
21222         * tests/test-closein.c: New file.
21223         * tests/test-closein.sh: Likewise.
21224         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
21225         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
21226
21227 2007-04-27  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
21230         version is < 6.
21231         * lib/math_.h [__DECC]: Likewise.
21232         * lib/stdio_.h [__DECC]: Likewise.
21233         * lib/stdlib_.h [__DECC]: Likewise.
21234         * lib/string_.h [__DECC]: Likewise.
21235         * lib/time_.h [__DECC]: Likewise.
21236         * lib/wchar_.h [__DECC]: Likewise.
21237         * lib/wctype_.h [__DECC]: Likewise.
21238
21239 2007-04-27  Bruno Haible  <bruno@clisp.org>
21240
21241         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
21242
21243 2007-04-27  Bruno Haible  <bruno@clisp.org>
21244
21245         * lib/fflush.c: Add comments.
21246         * modules/fpurge-tests (Depends-on): Add fflush.
21247         * modules/freadable-tests (Depends-on): Likewise.
21248         * modules/fwritable-tests (Depends-on): Likewise.
21249
21250 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
21251
21252         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
21253         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
21254         Report by Bruno Haible <bruno@clisp.org>.
21255
21256 2007-04-26  Eric Blake  <ebb9@byu.net>
21257
21258         Fix fflush on mingw.
21259         * modules/fflush (Depends-on): Add freading.
21260         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
21261         but unread data.
21262
21263 2007-04-26  Eric Blake  <ebb9@byu.net>
21264         and Bruno Haible  <bruno@clisp.org>
21265
21266         Implement freading and fwriting.
21267         * lib/freading.c: New file.
21268         * lib/freading.h: Likewise.
21269         * m4/freading.m4: Likewise.
21270         * modules/freading: Likewise.
21271         * modules/freading-tests: Likewise.
21272         * tests/test-freading.c: Likewise.
21273         * lib/fwriting.c: New file.
21274         * lib/fwriting.h: Likewise.
21275         * m4/fwriting.m4: Likewise.
21276         * modules/fwriting: Likewise.
21277         * modules/fwriting-tests: Likewise.
21278         * tests/test-fwriting.c: Likewise.
21279         * MODULES.html.sh (File stream based Input/Output): Mention them.
21280
21281 2007-04-26  Bruno Haible  <bruno@clisp.org>
21282
21283         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
21284         'long' when we assume it.
21285         Suggested by Eric Blake.
21286
21287 2007-04-26  Bruno Haible  <bruno@clisp.org>
21288
21289         Ensure fseeko, ftello are declared on glibc systems.
21290         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
21291         * modules/fseeko (configure.ac-early): Likewise.
21292         * modules/ftello (configure.ac-early): Likewise.
21293         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
21294         AC_FUNC_FSEEKO for this.
21295         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
21296         (gl_CHECK_FSEEKO): Remove macro.
21297
21298 2007-04-26  Bruno Haible  <bruno@clisp.org>
21299
21300         * tests/test-fflush.c (main): Also check the ftell result after
21301         fflush and fseek/fseeko.
21302         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
21303         file descriptor position cache in the stream.
21304         * lib/fseeko.c (rpl_fseeko): Likewise.
21305
21306 2007-04-26  Bruno Haible  <bruno@clisp.org>
21307
21308         * modules/fflush-tests (Depends-on): Add fseeko.
21309
21310 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
21311             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21312
21313         * lib/argz_.h: ensure error_t definition is obtained in same
21314         mechanism system argz.h would have.
21315         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
21316         argz facilities are known bad.  Err on the side of caution if
21317         cross-compiling.
21318
21319 2007-04-25  Eric Blake  <ebb9@byu.net>
21320
21321         * lib/fpurge.c (includes): Use stdlib.h for free.
21322         * tests/test-fflush.c (main): Also test fflush-fseeko.
21323
21324 2007-04-25  Bruno Haible  <bruno@clisp.org>
21325
21326         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
21327         * lib/fseeko.c: New file.
21328         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
21329         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
21330         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
21331         gl_FUNC_FSEEKO.
21332         (gl_FUNC_FSEEKO): Invoke it.
21333         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
21334         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
21335         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
21336
21337 2007-04-25  Bruno Haible  <bruno@clisp.org>
21338
21339         * modules/fflush (Depends-on): Add ftello.
21340
21341 2007-04-25  Bruno Haible  <bruno@clisp.org>
21342
21343         * modules/ftello-tests: New file.
21344         * tests/test-ftello.c: New file.
21345
21346         * modules/ftello: New file.
21347         * m4/ftello.m4: New file.
21348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
21349         HAVE_FTELLO.
21350         * lib/stdio_.h (ftello): New declaration.
21351         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
21352         HAVE_FTELLO.
21353
21354 2007-04-25  Bruno Haible  <bruno@clisp.org>
21355
21356         * modules/fseeko-tests: New file.
21357         * tests/test-fseeko.c: New file.
21358
21359         * modules/fseeko: New file.
21360         * m4/fseeko.m4: New file.
21361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
21362         HAVE_FSEEKO.
21363         * lib/stdio_.h (fseeko): New declaration.
21364         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
21365         HAVE_FSEEKO.
21366
21367 2007-04-25  Bruno Haible  <bruno@clisp.org>
21368
21369         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
21370
21371 2007-04-25  Bruno Haible  <bruno@clisp.org>
21372
21373         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
21374         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
21375         * tests/test-unistd.c: Likewise.
21376         * tests/test-fcntl.c: Likewise.
21377
21378 2007-04-23  Eric Blake  <ebb9@byu.net>
21379
21380         * lib/fflush.c: Fix missing include.
21381         Reported by Bruno Haible.
21382
21383 2007-04-23  Bruno Haible  <bruno@clisp.org>
21384
21385         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
21386         Reported by Eric Blake.
21387
21388 2007-04-23  Bruno Haible  <bruno@clisp.org>
21389
21390         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
21391
21392 2007-04-23  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
21395
21396 2007-04-23  Bruno Haible  <bruno@clisp.org>
21397
21398         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
21399         Needed on HP-UX 11.
21400
21401 2007-04-16  Eric Blake  <ebb9@byu.net>
21402
21403         Make fflush rely on fpurge.
21404         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
21405         open coding all variants.
21406         * modules/fflush (Depends-on): Add fpurge and unistd.
21407         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
21408         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
21409
21410         Fix --with-tests compilation on cygwin.
21411         * modules/argmatch-tests (Makefile.am): List gnulib library first
21412         in LDADD.
21413         * modules/argp-tests (Makefile.am): Likewise.
21414         * modules/array-list-tests (Makefile.am): Likewise.
21415         * modules/array-oset-tests (Makefile.am): Likewise.
21416         * modules/avltree-list-tests (Makefile.am): Likewise.
21417         * modules/avltree-oset-tests (Makefile.am): Likewise.
21418         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21419         * modules/carray-list-tests (Makefile.am): Likewise.
21420         * modules/dirname-tests (Makefile.am): Likewise.
21421         * modules/frexp-tests (Makefile.am): Likewise.
21422         * modules/isnanl-tests (Makefile.am): Likewise.
21423         * modules/linked-list-tests (Makefile.am): Likewise.
21424         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21425         * modules/lock-tests (Makefile.am): Likewise.
21426         * modules/rbtree-list-tests (Makefile.am): Likewise.
21427         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21428         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21429         * modules/tls-tests (Makefile.am): Likewise.
21430         * modules/tsearch-tests (Makefile.am): Likewise.
21431         * modules/xvasprintf-tests (Makefile.am): Likewise.
21432
21433         Fix fpurge for cygwin.
21434         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
21435         value.
21436         * modules/fpurge-tests (Depends-on): Clean up trash.
21437
21438 2007-04-16  Simon Josefsson  <simon@josefsson.org>
21439
21440         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
21441
21442         * m4/autobuild.m4: Re-indent.
21443
21444 2007-04-13  Bruno Haible  <bruno@clisp.org>
21445
21446         * modules/fpurge-tests: New file.
21447         * tests/test-fpurge.c: New file.
21448
21449         * modules/fpurge: New file.
21450         * lib/fpurge.h: New file.
21451         * lib/fpurge.c: New file.
21452         * m4/fpurge.m4: New file.
21453
21454 2007-04-13  Bruno Haible  <bruno@clisp.org>
21455
21456         * modules/fbufmode-tests: New file.
21457         * tests/test-fbufmode.c: New file.
21458
21459         * modules/fbufmode: New file.
21460         * lib/fbufmode.h: New file.
21461         * lib/fbufmode.c: New file.
21462         * m4/fbufmode.m4: New file.
21463
21464 2007-04-13  Bruno Haible  <bruno@clisp.org>
21465
21466         * modules/fwritable-tests: New file.
21467         * tests/test-fwritable.c: New file.
21468
21469         * modules/fwritable: New file.
21470         * lib/fwritable.h: New file.
21471         * lib/fwritable.c: New file.
21472         * m4/fwritable.m4: New file.
21473
21474 2007-04-13  Bruno Haible  <bruno@clisp.org>
21475
21476         * modules/freadable-tests: New file.
21477         * tests/test-freadable.c: New file.
21478
21479         * modules/freadable: New file.
21480         * lib/freadable.h: New file.
21481         * lib/freadable.c: New file.
21482         * m4/freadable.m4: New file.
21483
21484 2007-04-13  Bruno Haible  <bruno@clisp.org>
21485
21486         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
21487         MOSTLYCLEANFILES.
21488
21489 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21490
21491         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
21492         gzip bootstrap.conf to avoid dragging in i18n machinery.
21493         (gnulib_tool_option): Use it.
21494
21495 2007-04-13  Bruno Haible  <bruno@clisp.org>
21496
21497         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
21498         %F directives.
21499         * tests/test-vasprintf-posix.c (test_function): Likewise.
21500         * tests/test-snprintf-posix.h (test_function): Likewise.
21501         * tests/test-sprintf-posix.h (test_function): Likewise.
21502         * tests/test-fprintf-posix.h (test_function): Likewise.
21503         * tests/test-printf-posix.h (test_function): Likewise.
21504         * tests/test-fprintf-posix.out: Likewise.
21505
21506 2007-04-13  Bruno Haible  <bruno@clisp.org>
21507
21508         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
21509         * modules/tls-tests (configure.ac): Likewise.
21510         Reported by Arto C. Nirkko <anirkko@insel.ch>.
21511
21512 2007-04-13  Bruno Haible  <bruno@clisp.org>
21513
21514         * lib/tls.c (glthread_tls_get): Fix return type.
21515         Patch by Arto C. Nirkko <anirkko@insel.ch>.
21516
21517 2007-04-12  Eric Blake  <ebb9@byu.net>
21518
21519         * modules/gettime (Depends-on): Remove gettime.
21520         Reported by Dmitry V. Levin.
21521
21522 2007-04-12  Bruno Haible  <bruno@clisp.org>
21523
21524         * modules/fflush (Include): Mention <stdio.h>.
21525         * modules/strtoimax (Include): Mention <inttypes.h>.
21526         * modules/strtoumax (Include): Likewise.
21527
21528 2007-04-12  Eric Blake  <ebb9@byu.net>
21529
21530         * .cvsignore: New file.
21531         * .gitignore: Likewise.
21532
21533 2007-04-12  Bruno Haible  <bruno@clisp.org>
21534
21535         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
21536         not before, since $(LDADD) often contains libgnu.a.
21537         * modules/striconv-tests (test_striconv_LDADD): Likewise.
21538         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
21539         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
21540         Needed on Cygwin.
21541
21542 2007-04-12  Eric Blake  <ebb9@byu.net>
21543
21544         Work around glibc's failure to flush stdin on fclose.
21545         * lib/closein.c (close_stdin): Flush stdin before closing.
21546
21547         Work around glibc's failure to reset seekable stdin on exit.
21548         * modules/closein: New module.
21549         * lib/closein.c: New file.
21550         * lib/closein.h: Likewise.
21551         * m4/closein.m4: Likewise.
21552         * MODULES.html.sh (File stream based Input/Output): Document it.
21553
21554 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21555
21556         * gnulib-tool: Rename generated 'autobuild' script to
21557         'do-autobuild' in --create-megatestdir output.
21558
21559         * doc/gnulib.texi (Build robot for gnulib): Fix.
21560
21561 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21562
21563         * modules/sysexits (Depends-on): Add absolute-header.
21564
21565 2007-04-12  Eric Blake  <ebb9@byu.net>
21566
21567         No need to preserve errno on success.
21568         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
21569         Reported by Bruno Haible.
21570
21571 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21572
21573         * MODULES.html.sh (Support for maintaining and releasing
21574         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
21575
21576 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21577
21578         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
21579
21580 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21581
21582         * modules/autobuild: New module.
21583
21584         * m4/autobuild.m4: New file.
21585
21586 2007-04-11  Bruno Haible  <bruno@clisp.org>
21587
21588         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
21589         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
21590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
21591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
21592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
21599         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21600         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
21602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
21605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
21608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
21611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21613         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
21614         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21615         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21616         Reported by Eric Blake.
21617
21618 2007-04-11  Bruno Haible  <bruno@clisp.org>
21619
21620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
21621
21622 2007-04-10  Bruno Haible  <bruno@clisp.org>
21623
21624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
21625         for NaN and Infinity. Needed on FreeBSD 6.1.
21626         * tests/test-vasnprintf-posix.c (test_function): Undo last change
21627         regarding results for "%010a" of Infinity and NaN.
21628         * tests/test-vasprintf-posix.c (test_function): Likewise.
21629         * tests/test-snprintf-posix.h (test_function): Likewise.
21630         * tests/test-sprintf-posix.h (test_function): Likewise.
21631         * tests/test-fprintf-posix.h (test_function): Likewise.
21632         * tests/test-printf-posix.h (test_function): Likewise.
21633         * tests/test-fprintf-posix.out: Likewise.
21634
21635 2007-04-10  Bruno Haible  <bruno@clisp.org>
21636
21637         * modules/locale-tests: New file.
21638         * tests/test-locale.c: New file.
21639
21640         * modules/locale: New file.
21641         * lib/locale_.h: New file.
21642         * m4/locale_h.m4: New file.
21643
21644 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
21645             Bruno Haible  <bruno@clisp.org>
21646
21647         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
21648         be determined, test for availability of the copysignf, copysign,
21649         copysignl functions.
21650         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
21651         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
21652         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
21653
21654 2007-04-09  Eric Blake  <ebb9@byu.net>
21655
21656         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
21657         * modules/stdio (Makefile.am): Support fflush.
21658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21659         * modules/fflush: New file.
21660         * lib/fflush.c: Likewise.
21661         * m4/fflush.m4: Likewise.
21662         * modules/fflush-tests: New test.
21663         * tests/test-fflush.c: Likewise.
21664         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
21665
21666 2007-04-06  Bruno Haible  <bruno@clisp.org>
21667
21668         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
21669         (VASNPRINTF): Use signbit for faster determination whether to print a
21670         minus sign.
21671         * modules/vasnprintf (Files): Remove lib/float+.h.
21672         * modules/fprintf-posix (Depends-on): Add signbit.
21673         * modules/snprintf-posix (Depends-on): Likewise.
21674         * modules/sprintf-posix (Depends-on): Likewise.
21675         * modules/vasnprintf-posix (Depends-on): Likewise.
21676         * modules/vasprintf-posix (Depends-on): Likewise.
21677         * modules/vfprintf-posix (Depends-on): Likewise.
21678         * modules/vsnprintf-posix (Depends-on): Likewise.
21679         * modules/vsprintf-posix (Depends-on): Likewise.
21680
21681 2007-04-06  Bruno Haible  <bruno@clisp.org>
21682
21683         * tests/test-frexp.c (main): Test also the sign bit of zero results.
21684         * tests/test-frexpl.c (main): Likewise.
21685         * tests/test-ldexpl.c (main): Likewise.
21686         * modules/frexp-tests (Depends-on): Add signbit.
21687         * modules/frexpl-tests (Depdends-on): Likewise.
21688         * modules/ldexpl-tests (Depdends-on): Likewise.
21689
21690 2007-04-06  Bruno Haible  <bruno@clisp.org>
21691
21692         * modules/signbit-tests: New file.
21693         * tests/test-signbit.c: New file.
21694
21695         * modules/signbit: New file.
21696         * lib/signbitf.c: New file.
21697         * lib/signbitd.c: New file.
21698         * lib/signbitl.c: New file.
21699         * m4/signbit.m4: New file.
21700         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
21701         (signbit): New macro.
21702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
21703         REPLACE_SIGNBIT.
21704         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
21705         REPLACE_FREXPL into math.h.
21706
21707 2007-04-06  Bruno Haible  <bruno@clisp.org>
21708
21709         * modules/isnanf-nolibm-tests: New file.
21710         * tests/test-isnanf.c: New file.
21711
21712         * modules/isnanf-nolibm: New file.
21713         * lib/isnanf.h: New file.
21714         * lib/isnanf.c: New file.
21715         * lib/isnan.c: Consider the USE_FLOAT macro.
21716         * m4/isnanf.m4: New file.
21717
21718 2007-04-06  Bruno Haible  <bruno@clisp.org>
21719
21720         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
21721         (Link): New section.
21722
21723         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21724
21725 2007-04-06  Bruno Haible  <bruno@clisp.org>
21726
21727         Assume the 'long double' type.
21728         * m4/longdouble.m4: Remove file.
21729         * config/srclist.txt: Don't mention longdouble.m4.
21730         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21731         * lib/float+.h: Likewise.
21732         * lib/frexp.c: Likewise.
21733         * lib/printf-args.h: Likewise.
21734         * lib/printf-args.c: Likewise.
21735         * lib/printf-frexp.c: Likewise.
21736         * lib/printf-parse.c: Likewise.
21737         * lib/vasnprintf.c: Likewise.
21738         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21739         * m4/intl.m4: Likewise.
21740         * m4/isnanl.m4: Likewise.
21741         * m4/printf.m4: Likewise.
21742         * m4/printf-frexpl.m4: Likewise.
21743         * m4/vasnprintf.m4: Likewise.
21744         * modules/allocsa (Files): Remove m4/longdouble.m4.
21745         * modules/gettext (Files): Likewise.
21746         * modules/relocatable-prog-wrapper (Files): Likewise.
21747         * modules/vasnprintf (Files): Likewise.
21748         * modules/isnanl (Files): Likewise.
21749         (Include): Simplify.
21750         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21751         (Include): Simplify.
21752         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21753         (Include): Simplify.
21754         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21755         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21756         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21757         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21758         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21759         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21760         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21761         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21762         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21763         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21764         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21765         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21766         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21767         * tests/test-isnanl.c: Likewise.
21768         * tests/test-snprintf-posix.h: Likewise.
21769         * tests/test-sprintf-posix.h: Likewise.
21770         * tests/test-vasnprintf-posix.c: Likewise.
21771         * tests/test-vasnprintf-posix2.c: Likewise.
21772         * tests/test-vasprintf-posix.c: Likewise.
21773
21774 2007-04-06  Bruno Haible  <bruno@clisp.org>
21775
21776         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21777         * lib/math_.h [__DECC]: Include the overridden include file through
21778         #include_next, outside the double-inclusion guard.
21779         * lib/stdio_.h [__DECC]: Likewise.
21780         * lib/stdlib_.h [__DECC]: Likewise.
21781         * lib/string_.h [__DECC]: Likewise.
21782         * lib/time_.h [__DECC]: Likewise.
21783         * lib/wchar_.h [__DECC]: Likewise.
21784         * lib/wctype_.h [__DECC]: Likewise.
21785         * lib/inttypes_.h [__DECC]: Likewise.
21786         Reported by Albert Chin <china@thewrittenword.com> in
21787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21788
21789 2007-04-04  Eric Blake  <ebb9@byu.net>
21790
21791         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21792         1.5.x.
21793
21794 2007-04-04  Bruno Haible  <bruno@clisp.org>
21795
21796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21797         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21798
21799 2007-04-04  Bruno Haible  <bruno@clisp.org>
21800
21801         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21802         results for "%010a" of Infinity and NaN.
21803         * tests/test-vasprintf-posix.c (test_function): Likewise.
21804         * tests/test-snprintf-posix.h (test_function): Likewise.
21805         * tests/test-sprintf-posix.h (test_function): Likewise.
21806         * tests/test-fprintf-posix.h (test_function): Remove these tests.
21807         * tests/test-printf-posix.h (test_function): Likewise.
21808         * tests/test-fprintf-posix.out: Update.
21809         Needed for FreeBSD 6.1.
21810
21811 2007-04-04  Bruno Haible  <bruno@clisp.org>
21812
21813         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21814         directly used by the gnulib modules nor by gnulib-tool.
21815
21816 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21817
21818         * DEPENDENCIES: Give overall description of version dependency
21819         desirability.  Use more-typical names for apps.
21820         Add shell, coreutils, diffutils, grep, tar, gzip.
21821
21822 2007-04-04  Simon Josefsson  <simon@josefsson.org>
21823
21824         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
21825
21826 2007-04-04  Karl Berry  <karl@gnu.org>
21827
21828         * MODULES.html.sh (func_module): missing '.
21829
21830 2007-04-03  Bruno Haible  <bruno@clisp.org>
21831
21832         * modules/argmatch-tests (Makefile.am): New variable
21833         test_argmatch_LDADD.
21834         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21835         * modules/array-list-tests (Makefile.am): New variable
21836         test_array_list_LDADD.
21837         * modules/array-oset-tests (Makefile.am): New variable
21838         test_array_oset_LDADD.
21839         * modules/avltree-list-tests (Makefile.am): New variable
21840         test_avltree_list_LDADD.
21841         * modules/avltree-oset-tests (Makefile.am): New variable
21842         test_avltree_oset_LDADD.
21843         * modules/avltreehash-list-tests (Makefile.am): New variable
21844         test_avltreehash_list_LDADD.
21845         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21846         test_canonicalize_lgpl_LDADD.
21847         * modules/carray-list-tests (Makefile.am): New variable
21848         test_carray_list_LDADD.
21849         * modules/dirname-tests (Makefile.am): New variable
21850         test_dirname_LDADD.
21851         * modules/linked-list-tests (Makefile.am): New variable
21852         test_linked_list_LDADD.
21853         * modules/linkedhash-list-tests (Makefile.am): New variable
21854         test_linkedhash_list_LDADD.
21855         * modules/rbtree-list-tests (Makefile.am): New variable
21856         test_rbtree_list_LDADD.
21857         * modules/rbtree-oset-tests (Makefile.am): New variable
21858         test_rbtree_oset_LDADD.
21859         * modules/rbtreehash-list-tests (Makefile.am): New variable
21860         test_rbtreehash_list_LDADD.
21861         * modules/xvasprintf-tests (Makefile.am): New variable
21862         test_xvasprintf_LDADD.
21863         Reported by Eric Blake.
21864
21865 2007-04-03  Eric Blake  <ebb9@byu.net>
21866
21867         * DEPENDENCIES: Weaken m4 requirements.
21868
21869 2007-04-03  Bruno Haible  <bruno@clisp.org>
21870
21871         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21872         * modules/isnanl-tests (configure.ac): Likewise.
21873
21874 2007-04-03  Ben Pfaff  <blp@gnu.org>
21875
21876         * modules/iconv_open: Add $(srcdir)/ to source directory
21877         references in Makefile fragments that call gperf, to fix VPATH
21878         builds.
21879
21880 2007-04-03  Bruno Haible  <bruno@clisp.org>
21881
21882         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21883         * lib/ldexpl.c: Undo last change.
21884
21885 2007-04-03  Bruno Haible  <bruno@clisp.org>
21886
21887         * modules/printf-frexpl (Depends-on): Undo last change.
21888         (Files): Add m4/ldexpl.m4.
21889
21890 2007-04-03  Bruno Haible  <bruno@clisp.org>
21891
21892         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21893         * modules/isnanl (Link): New section.
21894
21895         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21896         * modules/frexp (Link): New section.
21897
21898         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21899         * modules/frexpl (Link): New section.
21900
21901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21902         * modules/ldexpl (Link): New section.
21903
21904 2007-04-03  Bruno Haible  <bruno@clisp.org>
21905
21906         * modules/TEMPLATE-EXTENDED: New file.
21907         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21908
21909 2007-04-03  Bruno Haible  <bruno@clisp.org>
21910
21911         * DEPENDENCIES: New file.
21912         Suggested by Simon Josefsson.
21913
21914 2007-04-03  Bruno Haible  <bruno@clisp.org>
21915
21916         * doc/gnulib.texi: Escape @.
21917
21918 2007-04-03  James Youngman  <jay@gnu.org>
21919         and Paul Eggert  <eggert@cs.ucla.edu>
21920
21921         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21922         birthtime on all systems that have birthtime, not just those which
21923         use st_birthtimensec rather than st_birthtim.  Putting zero in
21924         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21925         that the birth time is not available for files on an NFS mount.
21926
21927 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21928
21929         * modules/memxor: Move back from crypto/, suggested by Bruno.
21930         * modules/crypto/hmac-sha1: Fix memxor dependency.
21931
21932         * modules/crypto/gc: Moved from ../.
21933
21934 2007-04-02  Eric Blake  <ebb9@byu.net>
21935
21936         * lib/ldexpl.c (includes): Avoid libm.
21937
21938         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21939
21940 2007-04-02  Bruno Haible  <bruno@clisp.org>
21941
21942         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21943         on IRIX.
21944
21945 2007-04-02  Bruno Haible  <bruno@clisp.org>
21946
21947         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21948         x86 or x86_64 platforms running MacOS X.
21949         Reported by Ryan Schmidt <@ryandesign.com>.
21950
21951 2007-04-02  Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21954         i386.
21955
21956 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21957
21958         * modules/crypto/arcfour: Moved from ../.
21959         * modules/crypto/arcfour-tests: Moved from ../.
21960         * modules/crypto/arctwo: Moved from ../.
21961         * modules/crypto/arctwo-tests: Moved from ../.
21962         * modules/crypto/des: Moved from ../.
21963         * modules/crypto/des-tests: Moved from ../.
21964         * modules/crypto/gc-arcfour: Moved from ../.
21965         * modules/crypto/gc-arcfour-tests: Moved from ../.
21966         * modules/crypto/gc-arctwo: Moved from ../.
21967         * modules/crypto/gc-arctwo-tests: Moved from ../.
21968         * modules/crypto/gc-des: Moved from ../.
21969         * modules/crypto/gc-des-tests: Moved from ../.
21970         * modules/crypto/gc-hmac-md5: Moved from ../.
21971         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21972         * modules/crypto/gc-hmac-sha1: Moved from ../.
21973         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21974         * modules/crypto/gc-md2: Moved from ../.
21975         * modules/crypto/gc-md2-tests: Moved from ../.
21976         * modules/crypto/gc-md4: Moved from ../.
21977         * modules/crypto/gc-md4-tests: Moved from ../.
21978         * modules/crypto/gc-md5: Moved from ../.
21979         * modules/crypto/gc-md5-tests: Moved from ../.
21980         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21981         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21982         * modules/crypto/gc-random: Moved from ../.
21983         * modules/crypto/gc-rijndael: Moved from ../.
21984         * modules/crypto/gc-rijndael-tests: Moved from ../.
21985         * modules/crypto/gc-sha1: Moved from ../.
21986         * modules/crypto/gc-sha1-tests: Moved from ../.
21987         * modules/crypto/gc-tests: Moved from ../.
21988         * modules/crypto/hmac-md5: Moved from ../.
21989         * modules/crypto/hmac-md5-tests: Moved from ../.
21990         * modules/crypto/hmac-sha1: Moved from ../.
21991         * modules/crypto/hmac-sha1-tests: Moved from ../.
21992         * modules/crypto/md2: Moved from ../.
21993         * modules/crypto/md2-tests: Moved from ../.
21994         * modules/crypto/md4: Moved from ../.
21995         * modules/crypto/md4-tests: Moved from ../.
21996         * modules/crypto/md5: Moved from ../.
21997         * modules/crypto/md5-tests: Moved from ../.
21998         * modules/crypto/memxor: Moved from ../.
21999         * modules/crypto/rijndael: Moved from ../.
22000         * modules/crypto/rijndael-tests: Moved from ../.
22001         * modules/crypto/sha1: Moved from ../.
22002
22003 2007-03-30  James Youngman  <jay@gnu.org>
22004
22005         * tests/test-stat-time.c (prepare_test): use chmod() rather than
22006         rename() to change the ctime of a file (because ctime is unaffected
22007         by rename on jfs2 on AIX 5.1).
22008         (main): Start by doing cleanup, in case a previous run failed leaving
22009         test files behind.
22010
22011 2007-03-31  Bruno Haible  <bruno@clisp.org>
22012
22013         Support old proprietary implementations of iconv.
22014         * modules/iconv_open: New file.
22015         * lib/iconv_.h: New file.
22016         * m4/iconv_h.m4: New file.
22017         * lib/iconv_open.c: New file.
22018         * lib/iconv_open-aix.gperf: New file.
22019         * lib/iconv_open-hpux.gperf: New file.
22020         * lib/iconv_open-irix.gperf: New file.
22021         * lib/iconv_open-osf.gperf: New file.
22022         * m4/iconv_open.m4: New file.
22023         * modules/linebreak (Depends-on): Add iconv_open.
22024         * modules/striconv (Depends-on): Likewise.
22025         * modules/striconveh (Depends-on): Likewise.
22026         * modules/unicodeio (Depends-on): Likewise.
22027         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
22028         (iconv_t)(-1).
22029         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
22030         conversion if cd is (iconv_t)(-1).
22031         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
22032         is not possible.
22033
22034 2007-03-31  Bruno Haible  <bruno@clisp.org>
22035
22036         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
22037         work on Solaris either. Protect also second use of "autodetect_jp".
22038
22039 2007-03-31  Bruno Haible  <bruno@clisp.org>
22040
22041         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
22042         the function is not present.
22043
22044 2007-03-31  Bruno Haible  <bruno@clisp.org>
22045
22046         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
22047         the function is not present.
22048
22049 2007-03-31  Bruno Haible  <bruno@clisp.org>
22050
22051         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
22052         a bug in HP-UX iconv_open().
22053
22054 2007-03-31  Bruno Haible  <bruno@clisp.org>
22055
22056         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
22057         (Mathematics <math.h>): New section, add fpieee.
22058         (Input/output <stdio.h>): Add fseterr.
22059         (Mathematics <math.h>): New section, add printf-frexp.
22060         (Container data structures): Add sublist.
22061         (Core language properties): Add fpucw, inline.
22062         (Functions for greatest-width integer types <inttypes.h>): Add
22063         imaxabs, imaxdiv, inttypes.
22064         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
22065         isnanl-nolibm, ldexp.
22066         (Mathematics <math.h>): New section, add printf-frexpl.
22067         (Support for systems lacking POSIX:2001): Add fprintf-posix,
22068         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
22069         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
22070         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
22071         (Unicode string functions): Add unistr/u*-mbtoucr.
22072         (Java): Add javacomp-script, javaexec-script.
22073         (C#): Add csharpcomp-script, csharpexec-script.
22074         (Support for building libraries and executables): Add havelib,
22075         relocatable-*.
22076         (Support for maintaining and releasing projects): Renamed from
22077         'Support for maintaining and release projects'. Add announce-gen.
22078
22079 2007-03-31  Bruno Haible  <bruno@clisp.org>
22080
22081         * README: Talk primarily about git.
22082         (git and CVS): Renamed from CVS.
22083         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
22084         gnulib is available through git.
22085         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
22086
22087 2007-03-30  Bruno Haible  <bruno@clisp.org>
22088
22089         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
22090         * lib/poll_.h: Likewise.
22091         * lib/stat_.h: Likewise.
22092         * lib/sys_time_.h: Likewise.
22093         * lib/sysexit_.h: Likewise.
22094         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
22095         * lib/stdbool_.h: Likewise.
22096         * lib/byteswap_.h: Add double-inclusion guard.
22097
22098 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
22099
22100         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
22101
22102 2007-03-30  Karl Berry  <karl@gnu.org>
22103
22104         * config/srclist-update: double space after USA in the license
22105         substitution, since that's how it's usually (?) written.
22106
22107 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22108
22109         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
22110         reported by Bruno Haible.
22111
22112 2007-03-29  Bruno Haible  <bruno@clisp.org>
22113
22114         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
22115         a bug in AIX iconv().
22116
22117 2007-03-29  Bruno Haible  <bruno@clisp.org>
22118
22119         * modules/ldexpl-tests: New file.
22120         * tests/test-ldexpl.c: New file.
22121
22122 2007-03-29  Bruno Haible  <bruno@clisp.org>
22123
22124         * lib/ldexpl.c: Include fpucw.h.
22125         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
22126         multiplication.
22127         * modules/ldexpl (Depends-on): Add fpucw.
22128
22129 2007-03-29  Bruno Haible  <bruno@clisp.org>
22130
22131         * modules/ldexpl: New file.
22132         * m4/ldexpl.m4: New file.
22133         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
22134         set.
22135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
22136         REPLACE_LDEXPL.
22137         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
22138         REPLACE_LDEXPL.
22139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22140         gl_FUNC_LDEXPL_WORKS.
22141         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
22142         * modules/mathl (Files): Remove lib/ldexpl.c.
22143         (Depends-on): Add ldexpl.
22144
22145 2007-03-29  Bruno Haible  <bruno@clisp.org>
22146
22147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
22148
22149 2007-03-29  Bruno Haible  <bruno@clisp.org>
22150
22151         * tests/test-striconveh.c (main): Don't assume that a direct conversion
22152         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
22153         and possibly also HP-UX.
22154         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
22155         work on AIX, IRIX, HP-UX, OSF/1.
22156         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22157         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22158         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22159         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22160         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
22161         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22162
22163 2007-03-29  Bruno Haible  <bruno@clisp.org>
22164
22165         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
22166
22167 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
22168
22169         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
22170         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
22171
22172 2007-03-29  Eric Blake  <ebb9@byu.net>
22173
22174         * lib/acl-internal.h: Remove redundant include.
22175         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
22176         Cygwin when a file is locked.
22177
22178 2007-03-29  Bruno Haible  <bruno@clisp.org>
22179
22180         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
22181         file.
22182         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
22183
22184 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
22187         try to remove a parent directory if the child couldn't be removed
22188         (except for the first rmdir, which could fail because the child
22189         doesn't exist).  Problem reported by Jeff Blaine in
22190         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
22191
22192 2007-03-28  Bruno Haible  <bruno@clisp.org>
22193
22194         * lib/striconveh.c (utf8conv_carefully): New function.
22195         (mem_cd_iconveh_internal): Invoke it.
22196
22197 2007-03-28  Bruno Haible  <bruno@clisp.org>
22198
22199         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
22200         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
22201         input.
22202         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
22203         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
22204         unistr/u8-uctomb.
22205
22206 2007-03-28  Bruno Haible  <bruno@clisp.org>
22207
22208         * modules/unistr/u8-mbtoucr: New file.
22209         * lib/unistr/u8-mbtoucr.c: New file.
22210         * modules/unistr/u16-mbtoucr: New file.
22211         * lib/unistr/u16-mbtoucr.c: New file.
22212         * modules/unistr/u16-mbtoucr: New file.
22213         * lib/unistr/u16-mbtoucr.c: New file.
22214         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
22215
22216 2007-03-27  Simon Josefsson  <simon@josefsson.org>
22217             Bruno Haible  <bruno@clisp.org>
22218
22219         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
22220         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
22221         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
22222
22223         * m4/stdio_h.m4: Add stubs for vasprintf too.
22224
22225         * modules/stdio: Support vasprintf in sed command.
22226
22227         * modules/vasprintf: Depend on stdio for prototypes.  Remove
22228         vasprintf.h.  Add stdio module indicator.
22229
22230         * lib/stdio_.h: Declare asprintf and vasprintf, based on
22231         vasprintf.h.
22232
22233         * lib/vasprintf.h: File removed.
22234
22235         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
22236         * lib/vasprintf.c: Ditto.
22237         * lib/xvasprintf.c: Ditto.
22238         * tests/test-vasprintf-posix.c: Ditto.
22239         * tests/test-vasprintf.c: Ditto.
22240
22241 2007-03-27  Bruno Haible  <bruno@clisp.org>
22242
22243         Make vasnprintf multithread-safe.
22244         * lib/vasnprintf.c (decimal_point_char): New function.
22245         (VASNPRINTF): Use it.
22246         Suggested by Simon Josefsson.
22247
22248 2007-03-27  Eric Blake  <ebb9@byu.net>
22249
22250         Support sub-second birthtime on cygwin.
22251         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
22252         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
22253         (get_stat_birthtime): Also work with st_birthtim.
22254
22255 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22256
22257         * lib/stat-time.h (USE_BIRTHTIME): Remove.
22258         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
22259         (get_stat_birthtime_ns): Do not try to use "spare" fields.
22260         (get_stat_birthtime_ns): Simplify compile-time tests.
22261         (get_stat_birthtime): Change the API to look like
22262         get_stat_mtime etc., except return a negative tv_nsec on error.
22263         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
22264         Don't check for "spare" fields.
22265         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
22266         or for struct stat.st_birthtime, as these tests aren't used.
22267         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
22268
22269 2007-03-27  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/stat-time.h: Include <sys/stat.h>.
22272
22273 2007-03-27  James Youngman  <jay@gnu.org>
22274
22275         * lib/stat-time.h (get_stat_birthtime): New function for
22276           retrieving st_birthtime as provided by UFS2 (hence *BSD).
22277         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
22278           and its variants.
22279         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
22280         * modules/stat-time-test: New file.
22281         * tests/test-stat-time.c: New test, devised by Bruno Haible.
22282
22283 2007-03-26  Bruno Haible  <bruno@clisp.org>
22284
22285         Better support of signalling NaNs.
22286         * lib/atanl.c: Include isnanl.h.
22287         (atanl): Perform test for NaN at the beginning of the function and
22288         through a call to isnanl.
22289         * lib/cosl.c: Include isnanl.h.
22290         (cosl): Perform test for NaN at the beginning of the function and
22291         through a call to isnanl.
22292         * lib/ldexpl.c: Include isnanl.h.
22293         (ldexpl): Perform test for NaN through a call to isnanl.
22294         * lib/logl.c: Include isnanl.h.
22295         (logl): Perform test for NaN at the beginning of the function and
22296         through a call to isnanl.
22297         * lib/sinl.c: Include isnanl.h.
22298         (sinl): Perform test for NaN at the beginning of the function and
22299         through a call to isnanl.
22300         * lib/sqrtl.c: Include isnanl.h.
22301         (sqrtl): Perform test for NaN at the beginning of the function and
22302         through a call to isnanl.
22303         * lib/tanl.c: Include isnanl.h.
22304         (tanl): Perform test for NaN at the beginning of the function and
22305         through a call to isnanl.
22306         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
22307         * modules/mathl (Depends-on): Add isnanl.
22308
22309 2007-03-26  Eric Blake  <ebb9@byu.net>
22310
22311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
22312         regression in logic sense of previous patch.
22313
22314 2007-03-26  Bruno Haible  <bruno@clisp.org>
22315
22316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
22317         unportable shell command "if ! ...".
22318         Reported by Ralf Wildenhues.
22319
22320 2007-03-25  Bruno Haible  <bruno@clisp.org>
22321
22322         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
22323         <sysexits.h> file, and only add EX_CONFIG.
22324         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
22325         absolute file name and whether it is sufficient. Substitute also
22326         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
22327         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
22328         ABSOLUTE_SYSEXITS_H into sysexits.h.
22329
22330 2007-03-25  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
22333         hints is NULL.
22334
22335 2007-03-25  Bruno Haible  <bruno@clisp.org>
22336
22337         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
22338         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22339
22340 2007-03-25  Bruno Haible  <bruno@clisp.org>
22341
22342         * lib/vasnprintf.c: Include langinfo.h.
22343         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
22344         multithread-safe.
22345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
22346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
22347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22349         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22350         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22351         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22352         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
22353         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22354         Reported by Simon Josefsson.
22355
22356 2007-03-25  Bruno Haible  <bruno@clisp.org>
22357
22358         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
22359         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
22360         * modules/vasnprintf (Depends-on): Add stdint.
22361
22362 2007-03-25  Bruno Haible  <bruno@clisp.org>
22363
22364         * modules/fpieee: New file.
22365         * m4/fpieee.m4: New file.
22366         * modules/isnan-nolibm (Depends-on): Add fpieee.
22367         * modules/isnanl-nolibm (Depends-on): Add fpieee.
22368         * modules/isnanl (Depends-on): Add fpieee.
22369
22370 2007-03-25  Bruno Haible  <bruno@clisp.org>
22371
22372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
22373
22374 2007-03-25  Bruno Haible  <bruno@clisp.org>
22375
22376         Avoid test failures on IRIX 6.5.
22377         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
22378         (main): Use it.
22379         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
22380         macros.
22381         (main): Use them.
22382
22383 2007-03-25  Bruno Haible  <bruno@clisp.org>
22384
22385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
22386         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
22387         exists but doesn't work.
22388         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
22389         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
22390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
22391         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
22392
22393 2007-03-25  Bruno Haible  <bruno@clisp.org>
22394
22395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
22396         returns inf. Needed on IRIX 6.5.
22397
22398 2007-03-25  Bruno Haible  <bruno@clisp.org>
22399
22400         * tests/test-frexpl.c: Include isnanl-nolibm.h.
22401         (main): Use isnanl instead of x != x idiom.
22402         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
22403
22404         * tests/test-frexp.c: Include isnan.h.
22405         (main): Use isnan instead of x != x idiom.
22406         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
22407
22408 2007-03-25  Bruno Haible  <bruno@clisp.org>
22409
22410         * tests/test-frexp.c (NaN): New function/macro.
22411         (main): Use it instead of 0.0 / 0.0.
22412         * tests/test-isnan.c (NaN): New function/macro.
22413         (main): Use it instead of 0.0 / 0.0.
22414         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
22415         (test_function): Use it instead of 0.0 / 0.0.
22416         * tests/test-vasprintf-posix.c (NaN): New function/macro.
22417         (test_function): Use it instead of 0.0 / 0.0.
22418         * tests/test-snprintf-posix.h (NaN): New function/macro.
22419         (test_function): Use it instead of 0.0 / 0.0.
22420         * tests/test-sprintf-posix.h (NaN): New function/macro.
22421         (test_function): Use it instead of 0.0 / 0.0.
22422         * tests/test-fprintf-posix.h (NaN): New function/macro.
22423         (test_function): Use it instead of 0.0 / 0.0.
22424         * tests/test-printf-posix.h (NaN): New function/macro.
22425         (test_function): Use it instead of 0.0 / 0.0.
22426
22427         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
22428
22429 2007-03-25  Bruno Haible  <bruno@clisp.org>
22430
22431         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
22432
22433 2007-03-25  Bruno Haible  <bruno@clisp.org>
22434
22435         * lib/regexec.c (merge_state_with_log): Make static.
22436
22437 2007-03-25  Bruno Haible  <bruno@clisp.org>
22438
22439         * lib/trigl.c (kernel_rem_pio2): Make static.
22440
22441 2007-03-25  Bruno Haible  <bruno@clisp.org>
22442
22443         * lib/sincosl.c (sincosl_table): Make static.
22444
22445 2007-03-25  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
22448         if the compiler does not support C99.
22449
22450 2007-03-25  Bruno Haible  <bruno@clisp.org>
22451
22452         * modules/time (Makefile.am): Ensure all rule action lines start with a
22453         tab.
22454
22455 2007-03-24  Bruno Haible  <bruno@clisp.org>
22456
22457         * modules/tsearch-tests: New file.
22458         * tests/test-tsearch.sh: New file.
22459         * tests/test-tsearch.c: New file, mostly copied from glibc.
22460
22461         * modules/search-tests: New file.
22462         * tests/test-search.c: New file.
22463
22464         * modules/search: New file.
22465         * lib/search_.h: New file, incorporating lib/tsearch.h.
22466         * m4/search_h.m4: New file.
22467         * lib/tsearch.h: Remove file.
22468         * lib/tsearch.c: Include search.h instead of tsearch.h.
22469         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
22470         HAVE_TSEARCH.
22471         * modules/tsearch (Files): Remove lib/tsearch.h.
22472         (Depends-on): Add search.
22473         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
22474         (Include): Change tsearch.h into search.h.
22475
22476 2007-03-24  Bruno Haible  <bruno@clisp.org>
22477
22478         * modules/fpucw: New file.
22479         * lib/fpucw.h: New file.
22480         * lib/frexp.c: Include fpucw.h.
22481         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22482         (FUNC): Use them.
22483         * lib/printf-frexp.c: Include fpucw.h.
22484         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22485         (FUNC): Use them.
22486         * lib/vasnprintf.c: Include fpucw.h.
22487         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
22488         'long double' calculations.
22489         * tests/test-frexpl.c: Include fpucw.h.
22490         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22491         * tests/test-printf-frexpl.c: Include fpucw.h.
22492         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22493         * modules/frexpl (Depends-on): Add fpucw.
22494         * modules/printf-frexpl (Depends-on): Likewise.
22495         * modules/fprintf-posix (Depends-on): Likewise.
22496         * modules/snprintf-posix (Depends-on): Likewise.
22497         * modules/sprintf-posix (Depends-on): Likewise.
22498         * modules/vasnprintf-posix (Depends-on): Likewise.
22499         * modules/vasprintf-posix (Depends-on): Likewise.
22500         * modules/vfprintf-posix (Depends-on): Likewise.
22501         * modules/vsnprintf-posix (Depends-on): Likewise.
22502         * modules/vsprintf-posix (Depends-on): Likewise.
22503         * modules/frexpl-tests (Depends-on): Likewise.
22504         * modules/printf-frexpl-tests (Depends-on): Likewise.
22505
22506 2007-03-24  Bruno Haible  <bruno@clisp.org>
22507
22508         * lib/float+.h: New file.
22509         * lib/isnan.c: Include float+.h.
22510         (SIZE): New macro.
22511         (FUNC): Compare only SIZE bytes of the value.
22512         * lib/vasnprintf.c: Include float+.h.
22513         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
22514         SIZEOF_LDBL or SIZEOF_DBL bytes.
22515         * modules/isnan-nolibm (Files): Add lib/float+.h.
22516         * modules/isnanl-nolibm (Files): Add lib/float+.h.
22517         * modules/isnanl (Files): Add lib/float+.h.
22518         * modules/vasnprintf (Files): Add lib/float+.h.
22519
22520 2007-03-24  Bruno Haible  <bruno@clisp.org>
22521
22522         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
22523         include isnanl-nolibm.h.
22524
22525 2007-03-24  Bruno Haible  <bruno@clisp.org>
22526
22527         * tests/test-read-file.c (main): Don't produce spurious output for
22528         expected situations. Make the test fail if it encountered unexpected
22529         results.
22530
22531 2007-03-24  Bruno Haible  <bruno@clisp.org>
22532
22533         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
22534         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
22535
22536 2007-03-24  Bruno Haible  <bruno@clisp.org>
22537
22538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
22539
22540 2007-03-24  Bruno Haible  <bruno@clisp.org>
22541
22542         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
22543         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
22544
22545         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
22546         * modules/utf8-ucs4: Turn into a symbolic link to module
22547         unistr/u8-mbtouc.
22548
22549         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
22550         utf8-ucs4-unsafe.
22551         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
22552         unistr/u8-mbtouc-unsafe.
22553
22554         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
22555         * modules/utf16-ucs4: Turn into a symbolic link to module
22556         unistr/u16-mbtouc.
22557
22558         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
22559         utf16-ucs4-unsafe.
22560         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
22561         unistr/u16-mbtouc-unsafe.
22562
22563         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
22564         * modules/ucs4-utf8: Turn into a symbolic link to module
22565         unistr/u8-ubtomb.
22566
22567         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
22568         * modules/ucs4-utf16: Turn into a symbolic link to module
22569         unistr/u16-ubtomb.
22570
22571 2007-03-24  Bruno Haible  <bruno@clisp.org>
22572
22573         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
22574         Enable the function only if HAVE_INLINE.
22575         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
22576         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22577         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
22578         Enable the function only if HAVE_INLINE.
22579         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
22580         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22581         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
22582         Enable the function only if HAVE_INLINE.
22583         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
22584         Enable the function only if HAVE_INLINE.
22585         * modules/utf8-ucs4: Update.
22586         * modules/utf8-ucs4-unsafe: Update.
22587         * modules/utf16-ucs4: Update.
22588         * modules/utf16-ucs4-unsafe: Update.
22589         * modules/ucs4-utf8: Update.
22590         * modules/ucs4-utf16: Update.
22591
22592 2007-03-24  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/utf8-ucs4.h: Remove file.
22595         * lib/utf8-ucs4-unsafe.h: Remove file.
22596         * lib/utf16-ucs4.h: Remove file.
22597         * lib/utf16-ucs4-unsafe.h: Remove file.
22598         * lib/ucs4-utf8.h: Remove file.
22599         * lib/ucs4-utf16.h: Remove file.
22600         * lib/unistr.h: Include their previous contents.
22601         * m4/utf-ucs4.m4: Remove file.
22602         * m4/ucs4-utf.m4: Remove file.
22603         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
22604         (Depends-on): Add unistr/base.
22605         (configure.ac): Remove gl_UTF_UCS4.
22606         (Makefile.am): Update.
22607         (Include): Change to unistr.h.
22608         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
22609         (Depends-on): Add unistr/base.
22610         (configure.ac): Remove gl_UTF_UCS4.
22611         (Makefile.am): Update.
22612         (Include): Change to unistr.h.
22613         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
22614         (Depends-on): Add unistr/base.
22615         (configure.ac): Remove gl_UTF_UCS4.
22616         (Makefile.am): Update.
22617         (Include): Change to unistr.h.
22618         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
22619         (Depends-on): Add unistr/base.
22620         (configure.ac): Remove gl_UTF_UCS4.
22621         (Makefile.am): Update.
22622         (Include): Change to unistr.h.
22623         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
22624         (Depends-on): Add unistr/base.
22625         (configure.ac): Remove gl_UCS4_UTF.
22626         (Makefile.am): Update.
22627         (Include): Change to unistr.h.
22628         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
22629         (Depends-on): Add unistr/base.
22630         (configure.ac): Remove gl_UCS4_UTF.
22631         (Makefile.am): Update.
22632         (Include): Change to unistr.h.
22633         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
22634         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
22635         utf8-ucs4-unsafe.h.
22636         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
22637         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
22638         utf16-ucs4-unsafe.h.
22639         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
22640         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
22641         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
22642         * lib/unistr/u8-strchr.c: Likewise.
22643         * lib/unistr/u8-strrchr.c: Likewise.
22644         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
22645         * lib/unistr/u16-strchr.c: Likewise.
22646         * lib/unistr/u16-strrchr.c: Likewise.
22647         * lib/striconveh.c: Update.
22648         * lib/linebreak.c: Update.
22649
22650 2007-03-24  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
22653         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
22654
22655 2007-03-22  Bruno Haible  <bruno@clisp.org>
22656
22657         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
22658
22659 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22660
22661         * MODULES.html.sh (File system functions): New module write-any-file.
22662         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
22663         * m4/write-any-file.m4: New files.
22664
22665 2007-03-23  Eric Blake  <ebb9@byu.net>
22666
22667         * gnulib-tool: Rearrange space-tab sequences, since some editors
22668         like to eat them.
22669
22670 2007-03-23  Eric Blake  <ebb9@byu.net>
22671
22672         * lib/version-etc.c (version_etc_va): Update license wording to
22673         be more concise.  Recommended by Richard Stallman.
22674
22675 2007-03-22  Bruno Haible  <bruno@clisp.org>
22676
22677         * lib/poll.c (MSG_PEEK): New fallback definition.
22678
22679 2007-03-22  Bruno Haible  <bruno@clisp.org>
22680
22681         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
22682         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
22683         (main): Update.
22684         Fixes a compilation error on BeOS.
22685
22686 2007-03-22  Bruno Haible  <bruno@clisp.org>
22687
22688         * modules/frexpl-tests: New file.
22689         * tests/test-frexpl.c: New file.
22690
22691         * modules/frexpl: New file.
22692         * m4/frexpl.m4: New file.
22693         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
22694         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
22695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
22696         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
22697         (Depends-on): Add frexpl. Remove isnanl-nolibm.
22698         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
22699
22700 2007-03-22  Bruno Haible  <bruno@clisp.org>
22701
22702         * lib/frexpl.c: Share code with lib/frexp.c.
22703         * modules/mathl (Files): Add lib/frexp.c.
22704         (Depends-on): Add isnanl-nolibm.
22705
22706 2007-03-22  Bruno Haible  <bruno@clisp.org>
22707
22708         * modules/printf-frexp (Files): Add m4/frexp.m4.
22709         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
22710         only if the found frexp function actually works.
22711
22712 2007-03-22  Bruno Haible  <bruno@clisp.org>
22713
22714         * lib/frexp.c: Remove older implementation that uses divisions.
22715
22716 2007-03-21  Bruno Haible  <bruno@clisp.org>
22717
22718         * modules/frexp-tests: New file.
22719         * tests/test-frexp.c: New file.
22720
22721         * modules/frexp: New file.
22722         * lib/frexp.c: New file.
22723         * m4/frexp.m4: New file.
22724         * lib/math_.h (frexp): New declaration.
22725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22726         REPLACE_FREXP.
22727         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22728
22729 2007-03-21  Bruno Haible  <bruno@clisp.org>
22730
22731         * modules/isnanl-tests: New file.
22732         * tests/test-isnanl.c: New file.
22733
22734         * modules/isnanl: New file.
22735         * lib/isnanl.h: New file.
22736         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22737         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22738         gl_FUNC_ISNANL_WORKS.
22739         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22740         New macros.
22741
22742 2007-03-21  Bruno Haible  <bruno@clisp.org>
22743
22744         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22745         lib/isnanl.h.
22746         (Include): Update.
22747         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22748         * lib/vasnprintf.c: Update.
22749         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22750         tests/test-isnanl.h, remove tests/test-isnanl.c.
22751         (Makefile.am): Update.
22752         * tests/test-isnanl-nolibm.c: New file.
22753         * tests/test-isnanl.h: New file.
22754         * tests/test-isnanl.c: Remove file.
22755
22756 2007-03-21  Jim Meyering  <jim@meyering.net>
22757
22758         When trying to open ".", treat ESTALE like EACCES.
22759         * lib/savewd.c (savewd_save): Resort to forking not just upon
22760         failure with EACCES, but also when errno is ESTALE.
22761
22762 2007-03-20  Bruno Haible  <bruno@clisp.org>
22763
22764         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22765         Needed on AIX 5.1. Reported by Matthew Woehlke.
22766
22767 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22768
22769         Suggestions by Bruno Haible:
22770         * lib/acl-internal.h: Include "gettext.h" rather than rolling
22771         our own.
22772         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22773         * modules/acl (Depends-on): Add gettext.
22774
22775 2007-03-19  Bruno Haible  <bruno@clisp.org>
22776
22777         * modules/iconvme: Remove file.
22778         * lib/iconvme.h: Remove file.
22779         * lib/iconvme.c: Remove file.
22780         * m4/iconvme.m4: Remove file.
22781
22782 2007-03-19  Bruno Haible  <bruno@clisp.org>
22783
22784         * doc/relocatable-maint.texi: Break long shell script line.
22785         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22786
22787 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22788
22789         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22790         handle file_has_acl.
22791         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22792         * lib/acl.c: Move header inclusions and related macro defns into
22793         lib/acl-internal.h.
22794         (S_ISLNK): Remove defn, since that's now done for us.
22795         (file_has_acl): Move to lib/file-has-acl.c.
22796         Call acl_trivial if available.  This is the crucial part of the fix.
22797         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22798         shared within the library.  Rewrite a bit, partly to make it compatible
22799         with the GNU coding style.
22800         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22801         Remove unnecessary double-quotes.
22802         Don't test for acl_to_text; the build will catch that.
22803         Replace acl_entries if it doesn't exist and it is needed.
22804         Check for -lsec and acl_trivial (as used on Solaris 10).
22805         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22806         lib/file-has-acl.c.
22807         (Depends-on): Add sys_stat, for S_ISLNK.
22808
22809 2007-03-19  Ben Pfaff  <blp@gnu.org>
22810
22811         * doc/gnulib.texi: Fix typos.
22812         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22813
22814 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22815
22816         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22817         If size is zero here, buf must be zero.
22818
22819 2007-03-19  Simon Josefsson  <simon@josefsson.org>
22820
22821         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
22822         <bruno@clisp.org>.
22823
22824 2007-03-18  Bruno Haible  <bruno@clisp.org>
22825
22826         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22827         Suggested by Eric Blake.
22828
22829 2007-03-18  Ben Pfaff  <blp@gnu.org>
22830
22831         * doc/relocatable.texi: Recommend using as prefix a directory
22832         that does not exist and will never be created.  Based on
22833         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22834         and others.
22835
22836 2007-03-17  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/fchownat.c: Include lchown.h.
22839
22840 2007-03-17  Bruno Haible  <bruno@clisp.org>
22841
22842         Fix endless loop when the given allocated size was > INT_MAX.
22843         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22844         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22845         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22846         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22847         * lib/sprintf.c (sprintf): Likewise.
22848
22849 2007-03-17  Bruno Haible  <bruno@clisp.org>
22850
22851         * tests/test-argp-2.sh (func_compare): Output a context diff.
22852
22853 2007-03-17  Bruno Haible  <bruno@clisp.org>
22854
22855         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22856         locale's decimal-point character.
22857
22858 2007-03-17  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22861         before comparing it. Needed because on some platforms (e.g. x86) a
22862         'long double' occupies less bytes than sizeof (long double).
22863
22864 2007-03-17  Bruno Haible  <bruno@clisp.org>
22865
22866         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22867         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22868         * tests/test-getaddrinfo.c (simple): Likewise.
22869         * tests/test-read-file.c (main): Likewise.
22870
22871 2007-03-17  Bruno Haible  <bruno@clisp.org>
22872
22873         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22874
22875 2007-03-17  Bruno Haible  <bruno@clisp.org>
22876
22877         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22878         unused variable.
22879
22880 2007-03-17  Bruno Haible  <bruno@clisp.org>
22881
22882         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22883         * tests/test-c-strncasecmp.c: Likewise.
22884
22885 2007-03-17  Bruno Haible  <bruno@clisp.org>
22886
22887         * modules/stdlib (Depends-on): Add unistd.
22888         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22889         Needed for MacOS X 10.3.
22890
22891 2007-03-17  Bruno Haible  <bruno@clisp.org>
22892
22893         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22894
22895 2007-03-17  Bruno Haible  <bruno@clisp.org>
22896
22897         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22898
22899 2007-03-17  Bruno Haible  <bruno@clisp.org>
22900
22901         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22902         to reflect files copied from gnulib (with or without modifications).
22903         Suggested by Jim Meyering.
22904
22905 2007-03-17  Eric Blake  <ebb9@byu.net>
22906
22907         * NEWS: Document stdlib change from 2007-02-18.
22908
22909 2007-03-17  Jim Meyering  <jim@meyering.net>
22910
22911         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22912         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22913         someone uses a name containing shell meta-characters.
22914         Reported by Alfred M. Szmidt.
22915
22916         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22917
22918 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22919
22920         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22921         and copy gettext configuration files only if configure.ac contains
22922         a use of AM_GNU_GETTEXT_VERSION.
22923
22924 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22925
22926         * build-aux/bootstrap (gnulib_name): New variable.
22927         (gnulib_tool_options): Use it.
22928
22929 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22930
22931         * tests/test-des.c: Use new namespace.
22932
22933 2007-03-15  Bruno Haible  <bruno@clisp.org>
22934
22935         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22936         Reported by James Youngman <jay@gnu.org>.
22937
22938 2007-03-15  Bruno Haible  <bruno@clisp.org>
22939
22940         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22941         declared prototype. Needed with cc on OSF/1 5.1.
22942
22943 2007-03-15  Bruno Haible  <bruno@clisp.org>
22944
22945         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22946         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22947         (struct gl_list_implementation): Add dispose_fn argument to the
22948         'create_empty', 'create' methods.
22949         (struct gl_list_impl_base): Add field 'dispose_fn'.
22950         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22951         argument.
22952         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22953         dispose_fn argument.
22954         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22955         dispose_fn on the dropped values.
22956         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22957         dispose_fn argument.
22958         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22959         dropped values.
22960         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22961         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22962         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22963         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22964         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22965         argument.
22966         (gl_tree_list_free): Call dispose_fn on the dropped values.
22967         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22968         the dropped values.
22969         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22970         Add dispose_fn argument.
22971         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22972         Call dispose_fn on the dropped values.
22973         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22974         Add dispose_fn argument.
22975         (gl_sublist_create): Initialize the 'dispose_fn' field.
22976         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22977         * tests/test-array_list.c (main): Update.
22978         * tests/test-carray_list.c (main): Update.
22979         * tests/test-avltree_list.c (main): Update.
22980         * tests/test-rbtree_list.c (main): Update.
22981         * tests/test-avltreehash_list.c (main): Update.
22982         * tests/test-rbtreehash_list.c (main): Update.
22983         * tests/test-linked_list.c (main): Update.
22984         * tests/test-linkedhash_list.c (main): Update.
22985         * tests/test-array_oset.c (main): Update.
22986
22987 2007-03-15  Bruno Haible  <bruno@clisp.org>
22988
22989         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22990         (gl_oset_create_empty): Add dispose_fn argument.
22991         (struct gl_oset_implementation): Add dispose_fn argument to
22992         'create_empty' method.
22993         (struct gl_oset_impl_base): Add dispose_fn field.
22994         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22995         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22996         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22997         values.
22998         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22999         (gl_tree_oset_free): Call dispose_fn on the dropped values.
23000         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
23001         dropped value.
23002         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
23003         dropped value.
23004         * tests/test-array_oset.c (main): Update.
23005         * tests/test-avltree_oset.c (main): Update.
23006         * tests/test-rbtree_oset.c (main): Update.
23007         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
23008
23009 2007-03-13  Bruno Haible  <bruno@clisp.org>
23010
23011         * tests/test-stdbool.c (i): Update after last patch.
23012
23013 2007-03-12  Bruno Haible  <bruno@clisp.org>
23014
23015         * lib/quotearg.c: Include <wctype.h> early, before the definition of
23016         the iswprint macro. Needed on Solaris 2.5.1.
23017
23018 2007-03-12  Bruno Haible  <bruno@clisp.org>
23019
23020         * tests/test-printf-frexp.c (main): Declare x as volatile.
23021
23022 2007-03-12  Simon Josefsson  <simon@josefsson.org>
23023
23024         * doc/gnulib.texi (Build robot for gnulib): New section.
23025
23026 2007-03-12  Jim Meyering  <jim@meyering.net>
23027
23028         * build-aux/bootstrap: New file.
23029         * build-aux/bootstrap.conf: New file, from coreutils.
23030
23031 2007-03-11  Bruno Haible  <bruno@clisp.org>
23032
23033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
23034
23035 2007-03-12  Simon Josefsson  <simon@josefsson.org>
23036
23037         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
23038         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
23039         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
23040
23041 2007-03-11  Bruno Haible  <bruno@clisp.org>
23042
23043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
23044         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
23045
23046 2007-03-11  Bruno Haible  <bruno@clisp.org>
23047
23048         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
23049         formula. Needed for SunPRO C 5.0.
23050
23051 2007-03-11  Bruno Haible  <bruno@clisp.org>
23052
23053         * modules/long-options (Depends-on): Add getopt.
23054
23055 2007-03-11  Bruno Haible  <bruno@clisp.org>
23056
23057         * modules/modechange (Depends-on): Add stdbool.
23058
23059 2007-03-11  Bruno Haible  <bruno@clisp.org>
23060
23061         * modules/i-ring (Depends-on): Add stdbool.
23062
23063 2007-03-11  Bruno Haible  <bruno@clisp.org>
23064
23065         * modules/gc-des (Depends-on): Add stdbool.
23066
23067 2007-03-11  Bruno Haible  <bruno@clisp.org>
23068
23069         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
23070
23071 2007-03-11  Bruno Haible  <bruno@clisp.org>
23072
23073         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
23074
23075 2007-03-11  Bruno Haible  <bruno@clisp.org>
23076
23077         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
23078
23079 2007-03-11  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/vasnprintf.c (sprintf): Undefine.
23082
23083 2007-03-11  Bruno Haible  <bruno@clisp.org>
23084
23085         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
23086         initializers in SunPRO C and Compaq C compilers.
23087
23088 2007-03-11  Bruno Haible  <bruno@clisp.org>
23089
23090         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
23091         decrementing code ANSI C compliant.
23092
23093 2007-03-11  Bruno Haible  <bruno@clisp.org>
23094
23095         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
23096         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
23097
23098 2007-03-11  Bruno Haible  <bruno@clisp.org>
23099
23100         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
23101         <stdbool.h> substitute doesn't pass.
23102
23103 2007-03-11  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
23106
23107 2007-03-11  Bruno Haible  <bruno@clisp.org>
23108
23109         * gnulib-tool (func_create_megatestdir): Create also an autobuild
23110         script, for submission to autobuild.josefsson.org.
23111
23112 2007-03-10  Bruno Haible  <bruno@clisp.org>
23113
23114         * modules/canonicalize-lgpl-tests: New file.
23115         * tests/test-canonicalize-lgpl.sh: New file.
23116         * tests/test-canonicalize-lgpl.c: New file.
23117
23118         * modules/c-strcase-tests: New file.
23119         * tests/test-c-strcase.sh: New file.
23120         * tests/test-c-strcasecmp.c: New file.
23121         * tests/test-c-strncasecmp.c: New file.
23122
23123         * modules/atexit-tests: New file.
23124         * tests/test-atexit.sh: New file.
23125         * tests/test-atexit.c: New file.
23126
23127 2007-03-10  Bruno Haible  <bruno@clisp.org>
23128
23129         * tests/test-binary-io.sh: Use temporary filenames that are not so
23130         likely to clash with those of other tests (in a parallel make).
23131         * tests/test-binary-io.c: Likewise.
23132
23133 2007-03-10  Bruno Haible  <bruno@clisp.org>
23134
23135         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
23136         fallback; use #error instead.
23137         Suggested by Simon Josefsson.
23138
23139 2007-03-10  Bruno Haible  <bruno@clisp.org>
23140
23141         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
23142         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
23143         first and the last.
23144
23145 2007-03-10  Bruno Haible  <bruno@clisp.org>
23146
23147         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
23148
23149 2007-03-10  Bruno Haible  <bruno@clisp.org>
23150
23151         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
23152         "make distcheck".
23153         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
23154         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
23155         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
23156
23157 2007-03-10  Bruno Haible  <bruno@clisp.org>
23158
23159         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
23160         variable.
23161         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
23162         variable.
23163
23164 2007-03-09  Eric Blake  <ebb9@byu.net>
23165         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
23166
23167         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
23168         types are not being provided by gnulib.
23169         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
23170         types are supported.
23171
23172 2007-03-10  Bruno Haible  <bruno@clisp.org>
23173
23174         * lib/stdio_.h (__attribute__): New macro.
23175         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
23176         vsprintf): Specify __attribute__ __format__ for GCC.
23177         Suggested by Eric Blake.
23178
23179 2007-03-09  Bruno Haible  <bruno@clisp.org>
23180
23181         * modules/printf-posix-tests: New file.
23182         * tests/test-printf-posix.sh: New file.
23183         * tests/test-printf-posix.c: New file.
23184
23185         * modules/printf-posix: New file.
23186         * lib/printf.c: New file.
23187         * m4/printf-posix-rpl.m4: New file.
23188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
23189         REPLACE_PRINTF.
23190         * lib/stdio_.h (printf): New declaration.
23191         (format, __format__, ____printf____, ____scanf____, ____strftime____,
23192         ____strfmon____): New macros.
23193         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
23194         REPLACE_PRINTF.
23195
23196 2007-03-09  Bruno Haible  <bruno@clisp.org>
23197
23198         * tests/test-vasnprintf-posix2.sh: New file.
23199         * tests/test-vasnprintf-posix2.c: New file.
23200         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
23201         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23202         (Makefile.am): Activate test-vasnprintf-posix2.sh.
23203
23204         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
23205         a locale dependent decimal point, rather than always '.'.
23206
23207 2007-03-09  Eric Blake  <ebb9@byu.net>
23208
23209         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
23210         spite of platforms like Tandem/NSK that define it to -1.
23211
23212 2007-03-08  Bruno Haible  <bruno@clisp.org>
23213
23214         * modules/vprintf-posix-tests: New file.
23215         * tests/test-vprintf-posix.sh: New file.
23216         * tests/test-vprintf-posix.c: New file.
23217         * tests/test-printf-posix.h: New file.
23218
23219         * modules/vprintf-posix: New file.
23220         * lib/vprintf.c: New file.
23221         * m4/vprintf-posix.m4: New file.
23222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
23223         REPLACE_VPRINTF.
23224         * lib/stdio_.h (vprintf): New declaration.
23225         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
23226         REPLACE_VPRINTF.
23227
23228 2007-03-08  Bruno Haible  <bruno@clisp.org>
23229
23230         * modules/fprintf-posix-tests: New file.
23231         * tests/test-fprintf-posix.sh: New file.
23232         * tests/test-fprintf-posix.c: New file.
23233
23234         * modules/fprintf-posix: New file.
23235         * lib/fprintf.c: New file.
23236         * m4/fprintf-posix.m4: New file.
23237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
23238         REPLACE_FPRINTF.
23239         * lib/stdio_.h (fprintf): New declaration.
23240         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
23241         REPLACE_FPRINTF.
23242
23243 2007-03-08  Bruno Haible  <bruno@clisp.org>
23244
23245         * modules/vfprintf-posix-tests: New file.
23246         * tests/test-vfprintf-posix.sh: New file.
23247         * tests/test-vfprintf-posix.c: New file.
23248         * tests/test-fprintf-posix.h: New file.
23249         * tests/test-fprintf-posix.out: New file.
23250
23251         * modules/vfprintf-posix: New file.
23252         * lib/vfprintf.c: New file.
23253         * m4/vfprintf-posix.m4: New file.
23254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
23255         REPLACE_VFPRINTF.
23256         * lib/stdio_.h (vfprintf): New declaration.
23257         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
23258         REPLACE_VFPRINTF.
23259
23260 2007-03-08  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
23263
23264 2007-03-08  Bruno Haible  <bruno@clisp.org>
23265
23266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
23267         instead of 'expr' invocations.
23268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23273         Suggested by Paul Eggert.
23274
23275 2007-03-08  Bruno Haible  <bruno@clisp.org>
23276
23277         * modules/fseterr-tests: New file.
23278         * tests/test-fseterr.c: New file.
23279
23280         * modules/fseterr: New file.
23281         * lib/fseterr.h: New file.
23282         * lib/fseterr.c: New file.
23283
23284 2007-03-08  Bruno Haible  <bruno@clisp.org>
23285
23286         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
23287         * lib/getopt_.h: Likewise.
23288         * lib/mbswidth.h: Likewise.
23289         * lib/setenv.h: Likewise.
23290         * lib/vasnprintf.h: Likewise.
23291         * lib/vasprintf.h: Likewise.
23292         * lib/verror.h: Likewise.
23293         * lib/xsetenv.h: Likewise.
23294         * lib/xvasprintf.h: Likewise.
23295
23296 2007-03-08  Jim Meyering  <jim@meyering.net>
23297
23298         * users.txt: Add parted.
23299
23300         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
23301
23302 2007-03-07  Bruno Haible  <bruno@clisp.org>
23303
23304         * m4/printf.m4: Make the shell script snippets copy&pastable.
23305
23306 2007-03-02  Bruno Haible  <bruno@clisp.org>
23307
23308         * lib/netinet_in_.h: New file.
23309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
23310         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
23311         * modules/netinet_in (Files): Add lib/netinet_in_.h.
23312         (Depends-on): Add absolute-header.
23313         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
23314         into netinet/in.h.
23315
23316 2007-03-03  Bruno Haible  <bruno@clisp.org>
23317
23318         * lib/sys_select_.h: New file.
23319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
23320         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
23321         * modules/sys_select (Files): Add lib/sys_select_.h.
23322         (Depends-on): Add absolute-header.
23323         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
23324         into sys/select.h.
23325
23326 2007-03-02  Bruno Haible  <bruno@clisp.org>
23327
23328         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
23329         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
23330         values.
23331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
23332         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
23333         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
23334         * modules/sys_socket (Depends-on): Add absolute-header.
23335         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
23336         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
23337         (Include): Remove requirement of inclusion of <sys/types.h>.
23338
23339 2007-03-02  Bruno Haible  <bruno@clisp.org>
23340
23341         * lib/byteswap_.h (bswap_32): Fix formula.
23342
23343 2007-03-06  Bruno Haible  <bruno@clisp.org>
23344
23345         * modules/sprintf-posix-tests: New file.
23346         * tests/test-sprintf-posix.c: New file.
23347
23348         * modules/sprintf-posix: New file.
23349         * lib/sprintf.c: New file.
23350         * m4/sprintf-posix.m4: New file.
23351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
23352         REPLACE_SPRINTF.
23353         * lib/stdio_.h (sprintf): New declaration.
23354         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
23355         REPLACE_SPRINTF.
23356
23357 2007-03-06  Bruno Haible  <bruno@clisp.org>
23358
23359         * modules/vsprintf-posix-tests: New file.
23360         * tests/test-vsprintf-posix.c: New file.
23361         * tests/test-sprintf-posix.h: New file.
23362
23363         * modules/vsprintf-posix: New file.
23364         * lib/vsprintf.c: New file.
23365         * m4/vsprintf-posix.m4: New file.
23366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
23367         REPLACE_VSPRINTF.
23368         * lib/stdio_.h (vsprintf): New declaration.
23369         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
23370         REPLACE_VSPRINTF.
23371
23372 2007-03-06  Bruno Haible  <bruno@clisp.org>
23373
23374         * modules/vsnprintf (Depend-on): Remove minmax.
23375
23376 2007-03-06  Bruno Haible  <bruno@clisp.org>
23377
23378         * modules/snprintf-posix-tests: New file.
23379         * tests/test-snprintf-posix.c: New file.
23380
23381         * modules/snprintf-posix: New file.
23382         * m4/snprintf-posix.m4: New file.
23383         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
23384         gl_FUNC_SNPRINTF.
23385         (gl_FUNC_SNPRINTF): Invoke it.
23386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
23387         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
23388         is set.
23389         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
23390
23391 2007-03-06  Bruno Haible  <bruno@clisp.org>
23392
23393         * modules/vsnprintf-posix-tests: New file.
23394         * tests/test-vsnprintf-posix.c: New file.
23395         * tests/test-snprintf-posix.h: New file.
23396
23397         * modules/vsnprintf-posix: New file.
23398         * m4/vsnprintf-posix.m4: New file.
23399         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
23400         gl_FUNC_VSNPRINTF.
23401         (gl_FUNC_VSNPRINTF): Invoke it.
23402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
23403         * lib/stdio_.h (vsnprintf): Define as a replacement if
23404         REPLACE_VSNPRINTF is set.
23405         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
23406
23407 2007-03-06  Bruno Haible  <bruno@clisp.org>
23408
23409         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
23410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
23411
23412 2007-03-06  Bruno Haible  <bruno@clisp.org>
23413
23414         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
23415         (asinl): Declare also if HAVE_DECL_ASINL is set.
23416         (atanl): Declare also if HAVE_DECL_ATANL is set.
23417         (ceill): Declare also if HAVE_DECL_CEILL is set.
23418         (cosl): Declare also if HAVE_DECL_COSL is set.
23419         (expl): Declare also if HAVE_DECL_EXPL is set.
23420         (floorl): Declare also if HAVE_DECL_FLOORL is set.
23421         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
23422         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
23423         (logl): Declare also if HAVE_DECL_LOGL is set.
23424         (sinl): Declare also if HAVE_DECL_SINL is set.
23425         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
23426         (tanl): Declare also if HAVE_DECL_TANL is set.
23427         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
23428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
23429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
23430         declaration of frexpl, ldexpl.
23431         * modules/printf-frexpl (Depends-on): Add math.
23432         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
23433
23434 2007-03-05  Bruno Haible  <bruno@clisp.org>
23435
23436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
23437         frexpl and ldexpl are declared.
23438         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
23439
23440 2007-03-05  Bruno Haible  <bruno@clisp.org>
23441
23442         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
23443         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
23444
23445 2007-03-05  Bruno Haible  <bruno@clisp.org>
23446
23447         * lib/stdio_.h: Include <stddef.h>.
23448
23449 2007-03-05  Bruno Haible  <bruno@clisp.org>
23450
23451         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
23452
23453 2007-03-05  Bruno Haible  <bruno@clisp.org>
23454
23455         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
23456         NetBSD 4, from Ralf Wildenhues.
23457
23458 2007-03-04  Bruno Haible  <bruno@clisp.org>
23459
23460         * lib/vasprintf.h: Update #if logic for the case when the functions
23461         exist but are overridden.
23462
23463 2007-03-04  Bruno Haible  <bruno@clisp.org>
23464
23465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
23466         implementations: glibc-2.4 and MacOS X 10.3.
23467         * tests/test-vasnprintf-posix.c (test_function): Test also the case
23468         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
23469         * tests/test-vasprintf-posix.c (test_function): Likewise.
23470
23471 2007-03-04  Bruno Haible  <bruno@clisp.org>
23472
23473         * modules/vasprintf-posix-tests: New file.
23474         * tests/test-vasprintf-posix.c: New file.
23475
23476         * modules/vasprintf-posix: New file.
23477         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
23478         defined.
23479         * m4/vasprintf-posix.m4: New file.
23480         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
23481         gl_FUNC_VASPRINTF.
23482         (gl_FUNC_VASPRINTF): Invoke it.
23483         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
23484         here.
23485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
23486
23487 2007-03-04  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
23490         REPLACE_GETTIMEOFDAY.
23491         * modules/sys_time (Makefile.am): Likewise.
23492         * m4/sys_time_h.m4: Likewise.
23493         * m4/gettimeofday.m4: Likewise.
23494
23495 2007-03-04  Bruno Haible  <bruno@clisp.org>
23496
23497         * modules/vasnprintf-posix-tests: New file.
23498         * tests/test-vasnprintf-posix.c: New file.
23499
23500         * modules/vasnprintf-posix: New file.
23501         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
23502         printf-frexpl.h.
23503         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
23504         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
23505         REPLACE_VASNPRINTF is defined.
23506         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
23507         gl_FUNC_VASNPRINTF.
23508         (gl_FUNC_VASNPRINTF): Invoke it.
23509         * m4/vasnprintf-posix.m4: New file.
23510         * m4/printf.m4: New file.
23511
23512 2007-03-04  Bruno Haible  <bruno@clisp.org>
23513
23514         Compile progreloc.c only if --enable-relocatable is specified.
23515         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
23516         if --enable-relocatable was specified.
23517         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
23518         lib_SOURCES.
23519
23520 2007-03-04  Jim Meyering  <jim@meyering.net>
23521
23522         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
23523         Use it consistently, rather than enumerating errno constants.
23524
23525 2007-03-04  Bruno Haible  <bruno@clisp.org>
23526
23527         * modules/xvasprintf-tests: New file.
23528         * tests/test-xvasprintf.c: New file.
23529
23530         * modules/vasprintf-tests: New file.
23531         * tests/test-vasprintf.c: New file.
23532
23533         * modules/vasnprintf-tests: New file.
23534         * tests/test-vasnprintf.c: New file.
23535
23536         * modules/vsnprintf-tests: New file.
23537         * tests/test-vsnprintf.c: New file.
23538
23539         * modules/snprintf-tests: New file.
23540         * tests/test-snprintf.c: New file.
23541
23542 2007-03-04  Bruno Haible  <bruno@clisp.org>
23543
23544         Compile relocatable.c only if --enable-relocatable is specified.
23545         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
23546         gl_RELOCATABLE_LIBRARY.
23547         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
23548         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
23549         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
23550         gl_RELOCATABLE_LIBRARY.
23551         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
23552         (Makefile.am): Remove lib_SOURCES.
23553         * modules/relocatable-lib-lgpl (configure.ac): Invoke
23554         gl_RELOCATABLE_LIBRARY.
23555         (Makefile.am): Remove lib_SOURCES.
23556         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
23557         always.
23558         * modules/relocatable-prog-wrapper (configure.ac): Invoke
23559         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
23560
23561 2007-03-04  Bruno Haible  <bruno@clisp.org>
23562
23563         * modules/argmatch-tests: New file.
23564         * tests/test-argmatch.c: New file.
23565
23566         * tests/test-allocsa.c (main): Halve the number of loop runs.
23567
23568         * modules/alloca-opt-tests: New file.
23569         * tests/test-alloca-opt.c: New file.
23570
23571 2007-03-04  Jim Meyering  <jim@meyering.net>
23572
23573         Work around difference between Linux ACLs and Solaris 10 ZFS.
23574         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
23575         for EINVAL.
23576
23577 2007-03-03  Bruno Haible  <bruno@clisp.org>
23578
23579         * modules/relocatable-prog (Depends-on): Add back progreloc's
23580         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
23581
23582 2007-03-03  Bruno Haible  <bruno@clisp.org>
23583
23584         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
23585         * modules/relocatable-lib: New file.
23586
23587 2007-03-03  Bruno Haible  <bruno@clisp.org>
23588
23589         * modules/relocatable-prog: Renamed from modules/relocatable.
23590         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
23591
23592 2007-03-03  Bruno Haible  <bruno@clisp.org>
23593
23594         * modules/relocatable-script (Files): Add doc/relocatable.texi,
23595         m4/relocatable-lib.m4.
23596         (Depends-on): Remove 'relocatable'.
23597         (configure.ac): Add gl_RELOCATABLE_NOP.
23598
23599 2007-03-03  Bruno Haible  <bruno@clisp.org>
23600
23601         * modules/relocatable-prog-wrapper: New file.
23602         * modules/relocatable (Depends-on): Add it. Remove all other
23603         dependencies except progname.
23604         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
23605
23606         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
23607         (gl_FUNC_STRERROR): Nop.
23608         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
23609
23610         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
23611         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
23612
23613         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
23614         (gl_FUNC_READLINK): Update.
23615
23616         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
23617
23618 2007-03-03  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/xreadlink.c: Include <unistd.h> unconditionally.
23621         * modules/xreadlink (Depends-on): Add unistd.
23622         * modules/xreadlink-with-size (Depends-on): Likewise.
23623
23624 2007-03-03  Bruno Haible  <bruno@clisp.org>
23625
23626         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
23627         extracted from gt_FUNC_SETENV.
23628         (gt_FUNC_SETENV): Remove macro.
23629         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
23630         remove gt_FUNC_SETENV.
23631
23632 2007-03-03  Bruno Haible  <bruno@clisp.org>
23633
23634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
23635         ENABLE_RELOCATABLE here.
23636         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
23637
23638 2007-03-03  Bruno Haible  <bruno@clisp.org>
23639
23640         * modules/rbtreehash-list-tests (Depends-on): Add progname.
23641         * tests/test-rbtreehash_list.c: Include progname.h.
23642         (main): Call set_program_name.
23643
23644         * modules/rbtree-oset-tests (Depends-on): Add progname.
23645         * tests/test-rbtree_oset.c: Include progname.h.
23646         (main): Call set_program_name.
23647
23648         * modules/rbtree-list-tests (Depends-on): Add progname.
23649         * tests/test-rbtree_list.c: Include progname.h.
23650         (main): Call set_program_name.
23651
23652         * modules/linked-list-tests (Depends-on): Add progname.
23653         * tests/test-linked_list.c: Include progname.h.
23654         (main): Call set_program_name.
23655
23656 2007-03-03  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
23659         All uses of __restrict changed to _Restrict_.
23660         * lib/glob_.h (__restrict): Remove macro.
23661
23662 2007-03-02  Bruno Haible  <bruno@clisp.org>
23663
23664         * modules/gettext (configure.ac): Require gettext infrastructure
23665         from version 0.16.1.
23666
23667 2007-03-02  Bruno Haible  <bruno@clisp.org>
23668
23669         * modules/linkedhash-list-tests (Depends-on): Add progname.
23670         * tests/test-linkedhash_list.c: Include progname.h.
23671         (main): Call set_program_name.
23672
23673         * modules/carray-list-tests (Depends-on): Add progname.
23674         * tests/test-carray_list.c: Include progname.h.
23675         (main): Call set_program_name.
23676
23677         * modules/avltreehash-list-tests (Depends-on): Add progname.
23678         * tests/test-avltreehash_list.c: Include progname.h.
23679         (main): Call set_program_name.
23680
23681         * modules/avltree-oset-tests (Depends-on): Add progname.
23682         * tests/test-avltree_oset.c: Include progname.h.
23683         (main): Call set_program_name.
23684
23685         * modules/avltree-list-tests (Depends-on): Add progname.
23686         * tests/test-avltree_list.c: Include progname.h.
23687         (main): Call set_program_name.
23688
23689         * modules/array-oset-tests (Depends-on): Add progname.
23690         * tests/test-array_oset.c: Include progname.h.
23691         (main): Call set_program_name.
23692
23693         * modules/array-list-tests (Depends-on): Add progname.
23694         * tests/test-array_list.c: Include progname.h.
23695         (main): Call set_program_name.
23696
23697         * modules/argp-tests (Depends-on): Add progname.
23698         * tests/test-argp.c: Include argp.h first. Include progname.h.
23699         (main): Call set_program_name.
23700
23701 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
23702
23703         * doc/gnulib-tool.texi (Initial import): Reword description of
23704         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
23705         limited effect even if defined after the first system include.
23706
23707 2007-03-01  Bruno Haible  <bruno@clisp.org>
23708
23709         * build-aux/config.libpath: Update to libtool-1.5.22.
23710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23711
23712 2007-03-01  Bruno Haible  <bruno@clisp.org>
23713
23714         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
23715         foo_CFLAGS.
23716         Reported by Ralf Wildenhues.
23717
23718 2007-03-01  Bruno Haible  <bruno@clisp.org>
23719
23720         * build-aux/install-reloc: Remove object files left over by some
23721         compilers.
23722         Reported by Ralf Wildenhues.
23723
23724 2007-03-01  Bruno Haible  <bruno@clisp.org>
23725
23726         * build-aux/install-reloc: Break long lines.
23727
23728 2007-03-01  Bruno Haible  <bruno@clisp.org>
23729
23730         * doc/relocatable.texi: Document that it may not work on OpenBSD.
23731         Reported by Ralf Wildenhues.
23732
23733 2007-03-01  Bruno Haible  <bruno@clisp.org>
23734
23735         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23736         include ordering constraints.
23737
23738 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23739
23740         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23742         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23743         as another example.
23744         * lib/time_.h: Fix misspelling.
23745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23746         Require gl_HEADER_TIME_H_DEFAULTS.
23747         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23748         * m4/time_r.m4 (gl_TIME_R): Likewise.
23749         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23750
23751 2007-03-01  Bruno Haible  <bruno@clisp.org>
23752
23753         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23754         * m4/utimens.m4 (gl_UTIMENS): Likewise.
23755
23756 2007-03-01  Jim Meyering  <jim@meyering.net>
23757
23758         * modules/xreadlink (Maintainer): Add my name.
23759         * modules/xreadlink-with-size (Depends-on): Alphabetize.
23760
23761 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
23762             Bruno Haible  <bruno@clisp.org>
23763
23764         * build-aux/install-reloc: Compile also c-ctype.c.
23765         * build-aux/relocatable.sh.in: New file.
23766         * doc/relocatable.texi: New file.
23767         * doc/relocatable-maint.texi: New file.
23768         * doc/gnulib.texi: Include relocatable-maint.texi.
23769         * lib/progreloc.c: Include unistd.h unconditionally.
23770         * lib/relocwrapper.c: Include unistd.h unconditionally.
23771         Include c-ctype.h.
23772         (add_dotbin): Use c_tolower.
23773         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23774         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23775         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23776         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23777         to m4/relocatable-lib.m4.
23778         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23779         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23780         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23781         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23782         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23783         * modules/relocatable: New file.
23784         * modules/relocatable-lib: New file.
23785         * modules/relocatable-script: New file.
23786
23787 2007-02-28  Bruno Haible  <bruno@clisp.org>
23788
23789         Import --enable-relocatable infrastructure.
23790         * build-aux/config.libpath: New file, from GNU gettext.
23791         * build-aux/install-reloc: New file, from GNU gettext.
23792         * build-aux/reloc-ldflags: New file, from GNU gettext.
23793         * lib/relocatable.h: New file, from GNU gettext.
23794         * lib/relocatable.c: New file, from GNU gettext.
23795         * lib/relocwrapper.c: New file, from GNU gettext.
23796         * m4/relocatable.m4: New file, from GNU gettext.
23797
23798 2007-02-28  Bruno Haible  <bruno@clisp.org>
23799
23800         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23801
23802         * modules/xreadlink: New file, from GNU gettext with modifications.
23803         * lib/xreadlink.c: New file, from GNU gettext.
23804         * lib/xreadlink.h: Add comments.
23805         (xreadlink): New declaration.
23806
23807         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23808         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23809         lib/xreadlink-with-size.c.
23810         (configure.ac): Remove gl_XREADLINK invocation.
23811         (Makefile.am): Augment lib_SOURCES.
23812         * m4/xreadlink.m4: Remove file.
23813         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23814         (xreadlink_with_size): Renamed from xreadink.
23815         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23816         * modules/canonicalize (Depends-on): Replace xreadlink with
23817         xreadlink-with-size.
23818         * lib/canonicalize.c (canonicalize_filename_mode): Update.
23819
23820 2007-02-25  Jim Meyering  <jim@meyering.net>
23821
23822         * build-aux/announce-gen: When complaining about excess arguments,
23823         list them.
23824
23825 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23826
23827         * README: Document signed integer overflow situation more
23828         accurately.
23829
23830 2007-02-25  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23833         'a' or 'A' conversion.
23834
23835 2007-02-25  Bruno Haible  <bruno@clisp.org>
23836
23837         * modules/filename: Renamed from modules/pathname.
23838         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23839         lib/concatpath.c with lib/concat-filename.c.
23840         (Makefile.am): Update.
23841         (Include): Replace pathname.h with filename.h.
23842         * lib/filename.h: Renamed from lib/pathname.h.
23843         (concatenated_filename): Renamed from concatenated_pathname.
23844         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23845         (concatenated_filename): Renamed from concatenated_pathname.
23846         * lib/findprog.c: Include filename.h instead of pathname.h.
23847         (find_in_path): Update.
23848         * lib/javacomp.c: Include filename.h instead of pathname.h.
23849         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23850         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23851         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23852         is_oldgcj_14_13_usable, is_javac_usable): Update.
23853         * lib/javaexec.c: Include filename.h instead of pathname.h.
23854         (execute_java_class): Update.
23855         * modules/findprog: Update.
23856         * modules/javacomp: Update.
23857         * modules/javaexec: Update.
23858         * MODULES.html.sh (File system functions): Add 'filename', remove
23859         'pathname'.
23860
23861 2007-02-25  Bruno Haible  <bruno@clisp.org>
23862
23863         * modules/printf-frexpl-tests: New file.
23864         * tests/test-printf-frexpl.c: New file.
23865
23866         * modules/printf-frexpl: New file.
23867         * lib/printf-frexpl.h: New file.
23868         * lib/printf-frexpl.c: New file.
23869         * m4/printf-frexpl.m4: New file.
23870
23871 2007-02-25  Bruno Haible  <bruno@clisp.org>
23872
23873         * modules/printf-frexp-tests: New file.
23874         * tests/test-printf-frexp.c: New file.
23875
23876         * modules/printf-frexp: New file.
23877         * lib/printf-frexp.h: New file.
23878         * lib/printf-frexp.c: New file.
23879         * m4/printf-frexp.m4: New file.
23880
23881 2007-02-25  Bruno Haible  <bruno@clisp.org>
23882
23883         Assume automake >= 1.10 for the tests.
23884         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23885         * modules/arctwo-tests: Likewise.
23886         * modules/argp-tests: Likewise.
23887         * modules/avltree-list-tests: Likewise.
23888         * modules/avltree-oset-tests: Likewise.
23889         * modules/avltreehash-list-tests: Likewise.
23890         * modules/carray-list-tests: Likewise.
23891         * modules/crc-tests: Likewise.
23892         * modules/des-tests: Likewise.
23893         * modules/gc-arcfour-tests: Likewise.
23894         * modules/gc-arctwo-tests: Likewise.
23895         * modules/gc-des-tests: Likewise.
23896         * modules/gc-hmac-md5-tests: Likewise.
23897         * modules/gc-hmac-sha1-tests: Likewise.
23898         * modules/gc-md2-tests: Likewise.
23899         * modules/gc-md4-tests: Likewise.
23900         * modules/gc-md5-tests: Likewise.
23901         * modules/gc-pbkdf2-sha1-tests: Likewise.
23902         * modules/gc-rijndael-tests: Likewise.
23903         * modules/gc-sha1-tests: Likewise.
23904         * modules/gc-tests: Likewise.
23905         * modules/getaddrinfo-tests: Likewise.
23906         * modules/hmac-md5-tests: Likewise.
23907         * modules/hmac-sha1-tests: Likewise.
23908         * modules/linked-list-tests: Likewise.
23909         * modules/linkedhash-list-tests: Likewise.
23910         * modules/lock-tests: Likewise.
23911         * modules/md2-tests: Likewise.
23912         * modules/md4-tests: Likewise.
23913         * modules/md5-tests: Likewise.
23914         * modules/rbtree-list-tests: Likewise.
23915         * modules/rbtree-oset-tests: Likewise.
23916         * modules/rbtreehash-list-tests: Likewise.
23917         * modules/read-file-tests: Likewise.
23918         * modules/rijndael-tests: Likewise.
23919         * modules/stdint-tests: Likewise.
23920         * modules/tls-tests: Likewise.
23921
23922 2007-02-24  Bruno Haible  <bruno@clisp.org>
23923
23924         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23925         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23926         function; instead check whether isnan with a double argument links.
23927         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23928         function; instead check whether isnan with a 'long double' argument
23929         links.
23930         Reported by Eric Blake <ebb9@byu.net>.
23931
23932 2007-02-24  Bruno Haible  <bruno@clisp.org>
23933
23934         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23935         defined.
23936         * lib/isnanl.c: Remove all code. Just include isnan.c.
23937         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23938
23939 2007-02-25  Jim Meyering  <jim@meyering.net>
23940
23941         Avoid conflicting types for 'unsetenv' on FreeBSD.
23942         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23943         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23944         in stdlib.h.
23945
23946 2007-02-24  Bruno Haible  <bruno@clisp.org>
23947
23948         * modules/isnanl-nolibm-tests: New file.
23949         * tests/test-isnanl.c: New file.
23950
23951         * modules/isnanl-nolibm: New file.
23952         * lib/isnanl.h: New file.
23953         * lib/isnanl.c: New file.
23954         * m4/isnanl.m4: New file.
23955
23956 2007-02-24  Bruno Haible  <bruno@clisp.org>
23957
23958         * modules/isnan-nolibm-tests: New file.
23959         * tests/test-isnan.c: New file.
23960
23961         * modules/isnan-nolibm: New file.
23962         * lib/isnan.h: New file.
23963         * lib/isnan.c: New file.
23964         * m4/isnan.m4: New file.
23965
23966 2007-02-24  Bruno Haible  <bruno@clisp.org>
23967
23968         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23969         assume that an exponent fits in 20 bits.
23970
23971 2007-02-24  Jim Meyering  <jim@meyering.net>
23972
23973         * m4/regex.m4: Update the description of the configure-time option,
23974         --without-included-regex, to state accurately what the defaults are,
23975         and perhaps to give people an idea why using this option is risky.
23976
23977 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23978
23979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23980         loops on small arguments.  This attempts to avoid the problem
23981         Bruno Haible reported for AIX 4.3.2 in
23982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23983
23984 2007-02-23  Bruno Haible  <bruno@clisp.org>
23985
23986         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23987         Needed for help2man.
23988
23989 2007-02-23  Karl Berry  <karl@gnu.org>
23990
23991         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23992         exists, foo.h should be cvs-ignored, not committed.
23993
23994 2007-02-23  Eric Blake  <ebb9@byu.net>
23995
23996         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23997         * lib/stat-time.h (includes): Likewise.
23998         * lib/utimecmp.c (includes): Likewise.
23999         * lib/utimens.h (includes): Likewise.
24000         * lib/getdate.y (includes): Also include "timespec.h" for use
24001         internal to the module.
24002         * modules/utimens (Depends-on): Revert yesterday's patch.
24003         * modules/nanosleep (Depends-on): Add missing dependency.
24004
24005 2007-02-22  Bruno Haible  <bruno@clisp.org>
24006
24007         * lib/glob.c: Don't include getlogin_r.h.
24008
24009 2007-02-22  Jim Meyering  <jim@meyering.net>
24010
24011         * modules/utimens (Depends-on): Add timespec, required for
24012         utimens.h's inclusion of timespec.h.
24013
24014 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24015
24016         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
24017         long unreadable paths in GNU/Linux.  Problem reported by Andreas
24018         Schwab in
24019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
24020         I'll try to think of a better way to fix the Solaris problem.
24021
24022         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
24023         like glibc; on Solaris 10, it fails with errno == EINVAL.
24024         POSIX says the behavior is unspecified if the first argument is NULL,
24025         so play it safe and never pass NULL to the system getcwd.
24026
24027 2007-02-21  Jim Meyering  <jim@meyering.net>
24028
24029         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
24030         of gettimeofday.  It would conflict with the one now always
24031         provided via sys_time_.h.  Reported by Matthew Woehlke, as
24032         an IRIX 6.5 build failure.
24033
24034 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24035
24036         Minor fixups to port to Solaris 10 with Sun C 5.8.
24037         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
24038         * modules/getcwd (Depends-on): Add dirfd.
24039         * lib/putenv.c (putenv): #undef it.
24040         (rpl_putenv): New decl.
24041         (malloc, free): Include <stdlib.h> rather than prototyping separately.
24042
24043 2007-02-20  Bruno Haible  <bruno@clisp.org>
24044
24045         * modules/stdio-tests: New file.
24046         * tests/test-stdio.c: New file.
24047
24048         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
24049         (Depends-on): Add stdio.
24050         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24051         (Include): Use <stdio.h> instead of vsnprintf.h.
24052         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
24053         HAVE_DECL_VSNPRINTF.
24054         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
24055
24056         * modules/snprintf (Files): Remove lib/snprintf.h.
24057         (Depends-on): Add stdio.
24058         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24059         (Include): Use <stdio.h> instead of snprintf.h.
24060         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
24061         HAVE_DECL_SNPRINTF.
24062         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
24063         * lib/getaddrinfo.c: Likewise.
24064
24065         * modules/stdio: New file.
24066         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
24067         * lib/snprintf.h: Remove file.
24068         * lib/vsnprintf.h: Remove file.
24069         * lib/.cppi-disable: Remove snprintf.h.
24070         * m4/stdio_h.m4: New file.
24071         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
24072
24073 2007-02-20  Jim Meyering  <jim@meyering.net>
24074
24075         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
24076         used by e.g., mingw.  From Bruno Haible.
24077
24078 2007-02-19  Bruno Haible  <bruno@clisp.org>
24079
24080         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
24081         warnings.
24082         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24083
24084 2007-02-19  Bruno Haible  <bruno@clisp.org>
24085
24086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
24087         from mingw users.
24088
24089 2007-02-19  Bruno Haible  <bruno@clisp.org>
24090
24091         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
24092         warnings.
24093         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
24094
24095 2007-02-19  Jim Meyering  <jim@meyering.net>
24096
24097         Don't use FD after a successful "fdopendir (fd)".
24098         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
24099         Reset it by calling dirfd on the just-obtained DIR*.
24100
24101         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
24102         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
24103
24104 2007-02-18  Bruno Haible  <bruno@clisp.org>
24105
24106         * lib/readlink.c: Include <unistd.h>.
24107         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
24108         HAVE_READLINK.
24109         * modules/readlink (Depends-on): Add unistd.
24110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24111         (Include): Add <unistd.h>.
24112
24113         * lib/getlogin_r.h: Remove file.
24114         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
24115         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
24116         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
24117         HAVE_DECL_GETLOGIN_R.
24118         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
24119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24120         (Include): Use <unistd.h> instead of getlogin_r.h.
24121
24122         * lib/getcwd.h: Remove file.
24123         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
24124         * lib/xgetcwd.c: Likewise.
24125         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
24126         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
24127         * modules/getcwd (Files): Remove lib/getcwd.h.
24128         (Depends-on): Add unistd.
24129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24130         (Include): Use <unistd.h> instad of getcwd.h.
24131
24132         * lib/ftruncate.c: Include <unistd.h> first.
24133         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
24134         Set HAVE_FTRUNCATE.
24135         * modules/ftruncate (Depends-on): Add unistd.
24136         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24137
24138         * lib/fchdir.c: Include <unistd.h> first.
24139         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
24140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
24141         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
24142         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24143         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
24144
24145         * lib/dup2.c: Include <unistd.h> first.
24146         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
24147         HAVE_DUP2.
24148         * modules/dup2 (Depends-on): Add unistd.
24149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24150
24151         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
24152         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
24153         REPLACE_CHOWN. Don't define chown as a macro here.
24154         * modules/chown (Depends-on): Add unistd.
24155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24156
24157         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
24158         Add definition for GL_LINK_WARNING.
24159         (chown, dup2): New declarations.
24160         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
24161         link warning.
24162         (ftruncate): New declaration.
24163         (getcwd): New declaration, taken from old getcwd.h.
24164         (getlogin_r): New declaration, taken from old getlogin_r.h.
24165         (readlink): New declaration.
24166         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
24167         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
24168         (gl_PREREQ_UNISTD): Remove macro.
24169         (gl_UNISTD_MODULE_INDICATOR): New macro.
24170         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
24171         many new variables. Don't set UNISTD_H.
24172         * modules/unistd (Description): Change.
24173         (Depends-on): Add link-warning.
24174         (configure.ac): Update.
24175         (Makefile.am): Create unistd.h always. Substitute many new variables
24176         into it.
24177
24178 2007-02-18  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
24181         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
24182         HAVE_GETSUBOPT.
24183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
24184         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
24185         * lib/getsubopt.h: Remove file.
24186         * modules/getsubopt (Files): Remove lib/getsubopt.h.
24187         (Depends-on): Add stdlib.
24188         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24189         (Includes): Use <stdlib.h> instead of getsubopt.h.
24190         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
24191         Set HAVE_GETSUBOPT.
24192         * lib/getsubopt.c: Don't include getsubopt.h.
24193
24194 2007-02-18  Bruno Haible  <bruno@clisp.org>
24195
24196         * modules/fchdir (Depends-on): Add dup2.
24197
24198 2007-02-18  Bruno Haible  <bruno@clisp.org>
24199
24200         * lib/stdlib_.h: Handle glibc's special invocation convention
24201         specially.
24202
24203 2007-02-18  Bruno Haible  <bruno@clisp.org>
24204
24205         * modules/stdlib-tests: New file.
24206         * tests/test-stdlib.c: New file.
24207
24208         * modules/mkstemp (Files): Remove lib/mkstemp.h.
24209         (Depends-on): Add stdlib.
24210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24211         (Includes): Use <stdlib.h> instead of mkstemp.h.
24212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24213         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
24214         * lib/mkstemp.c: Don't include mkstemp.h.
24215         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
24216         * lib/stdlib--.h: Don't include mkstemp.h.
24217
24218         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
24219         (Depends-on): Add stdlib.
24220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24221         (Includes): Use <stdlib.h> instead of mkdtemp.h.
24222         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24223         HAVE_MKDTEMP.
24224         * lib/mkdtemp.c: Don't include mkdtemp.h.
24225         * lib/clean-temp.c: Don't include mkdtemp.h.
24226
24227         * modules/exit (Files): Remove lib/exit.h.
24228         (Depends-on): Add stdlib.
24229         (Makefile.am): Remove lib_SOURCES.
24230         (Include): Use <stdlib.h> instead of exit.h.
24231         * lib/argmatch.c: Don't include exit.h.
24232         * lib/execute.c: Likewise.
24233         * lib/pagealign_alloc.c: Likewise.
24234         * lib/pipe.c: Likewise.
24235         * lib/wait-process.c: Likewise.
24236         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
24237         * lib/exitfail.c: Likewise.
24238         * lib/savewd.c: Likewise.
24239         * lib/xsetenv.c: Likewise.
24240
24241         * modules/stdlib: New file.
24242         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
24243         and extra comments about mkstemp().
24244         * lib/exit.h: Remove file.
24245         * lib/mkdtemp.h: Remove file.
24246         * lib/mkstemp.h: Remove file.
24247         * m4/stdlib_h.m4: New file.
24248         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
24249
24250 2007-02-18  Bruno Haible  <bruno@clisp.org>
24251
24252         * modules/math-tests: New file.
24253         * tests/test-math.c: New file.
24254
24255         * modules/math: New file.
24256         * modules/mathl (Files): Remove lib/mathl.h.
24257         (Depends-on): Add math.
24258         (Makefile.am): Don't mention mathl.h.
24259         (Include): Use <math.h> instead of mathl.h.
24260         * lib/math_.h: New file.
24261         * lib/mathl.h: Remove file.
24262         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
24263         mathl.h.
24264         * lib/asinl.c: Likewise.
24265         * lib/atanl.c: Likewise.
24266         * lib/ceill.c: Likewise.
24267         * lib/cosl.c: Likewise.
24268         * lib/expl.c: Likewise.
24269         * lib/floorl.c: Likewise.
24270         * lib/frexpl.c: Likewise.
24271         * lib/ldexpl.c: Likewise.
24272         * lib/logl.c: Likewise.
24273         * lib/sincosl.c: Likewise.
24274         * lib/sinl.c: Likewise.
24275         * lib/sqrtl.c: Likewise.
24276         * lib/tanl.c: Likewise.
24277         * lib/trigl.c: Likewise.
24278         * m4/math_h.m4: New file.
24279         * MODULES.html.sh (Mathematics): Add math.
24280
24281 2007-02-17  Bruno Haible  <bruno@clisp.org>
24282
24283         * modules/wctype-tests: New file.
24284         * tests/test-wctype.c: New file.
24285
24286         * modules/wchar-tests: New file.
24287         * tests/test-wchar.c: New file.
24288
24289         * modules/unistd-tests: New file.
24290         * tests/test-unistd.c: New file.
24291
24292         * modules/time-tests: New file.
24293         * tests/test-time.c: New file.
24294
24295         * modules/sysexits-tests: New file.
24296         * tests/test-sysexits.c: New file.
24297
24298         * modules/sys_time-tests: New file.
24299         * tests/test-sys_time.c: New file.
24300
24301         * modules/sys_stat-tests: New file.
24302         * tests/test-sys_stat.c: New file.
24303
24304         * modules/sys_socket-tests: New file.
24305         * tests/test-sys_socket.c: New file.
24306
24307         * modules/sys_select-tests: New file.
24308         * tests/test-sys_select.c: New file.
24309
24310         * modules/string-tests: New file.
24311         * tests/test-string.c: New file.
24312
24313         * modules/stdbool-tests: New file.
24314         * tests/test-stdbool.c: New file.
24315
24316         * modules/netinet_in-tests: New file.
24317         * tests/test-netinet_in.c: New file.
24318
24319         * modules/inttypes-tests: New file.
24320         * tests/test-inttypes.c: New file.
24321
24322         * modules/fcntl-tests: New file.
24323         * tests/test-fcntl.c: New file.
24324
24325         * modules/byteswap-tests: New file.
24326         * tests/test-byteswap.c: New file.
24327
24328         * modules/arpa_inet-tests: New file.
24329         * tests/test-arpa_inet.c: New file.
24330
24331 2007-02-17  Bruno Haible  <bruno@clisp.org>
24332
24333         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
24334         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
24335         if the corresponding module is not enabled. Emit link warnings if
24336         the function is used nevertheless.
24337         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
24338         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
24339         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
24340         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
24341         * modules/inttypes (Depends-on): Add link-warning.
24342         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24343         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
24344         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
24345         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
24346         * modules/imaxdiv (configure.ac): Likewise.
24347         * modules/strtoimax (configure.ac): Likewise.
24348         * modules/strtoumax (configure.ac): Likewise.
24349
24350 2007-02-17  Bruno Haible  <bruno@clisp.org>
24351
24352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
24353         gl_STRING_MODULE_INDICATOR_DEFAULTS.
24354         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
24355         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
24356
24357 2007-02-17  Bruno Haible  <bruno@clisp.org>
24358
24359         * modules/link-warning: New file.
24360         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
24361         * lib/string_.h (GL_LINK_WARNING): Remove definition.
24362         * modules/string (Depends-on): Add link-warning.
24363         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24364         string.h.
24365         * MODULES.html.sh (Support for building libraries and executables): Add
24366         link-warning.
24367
24368 2007-02-17  Bruno Haible  <bruno@clisp.org>
24369
24370         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
24371         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
24372         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
24373         long lines.
24374
24375 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
24376             Bruno Haible  <bruno@clisp.org>
24377
24378         * modules/tmpfile: New file.
24379         * lib/tmpfile.c: New file.
24380         * m4/tmpfile.m4: New file.
24381         * MODULES.html.sh (func_all_modules): New section "Input/output".
24382
24383 2007-02-15  Bruno Haible  <bruno@clisp.org>
24384
24385         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
24386         (supports_delete_on_close): New function.
24387         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
24388
24389 2007-02-14  Bruno Haible  <bruno@clisp.org>
24390
24391         * modules/mbspcasecmp-tests: New file.
24392         * tests/test-mbspcasecmp.sh: New file.
24393         * tests/test-mbspcasecmp.c: New file.
24394
24395         New module mbspcasecmp.
24396         * modules/mbspcasecmp: New file.
24397         * lib/mbspcasecmp.c: New file.
24398         * lib/string_.h (strncasecmp): Change warning message.
24399         (mbspcasecmp): New declaration.
24400         * m4/mbspcasecmp.m4: New file.
24401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24402         GNULIB_MBSPCASECMP.
24403         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
24404         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
24405
24406 2007-02-14  Bruno Haible  <bruno@clisp.org>
24407
24408         * modules/mbsncasecmp-tests: New file.
24409         * tests/test-mbsncasecmp.sh: New file.
24410         * tests/test-mbsncasecmp.c: New file.
24411
24412         New module mbsncasecmp.
24413         * modules/mbsncasecmp: New file.
24414         * lib/mbsncasecmp.c: New file.
24415         * lib/string_.h (mbsncasecmp): New declaration.
24416         * m4/mbsncasecmp.m4: New file.
24417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24418         GNULIB_MBSNCASECMP.
24419         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
24420         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
24421
24422 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24423
24424         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
24425         Verify that it doesn't overlap with our flags.
24426         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
24427         do not have the desired effect in multibyte locales; instead, use
24428         mbscasecmp.
24429         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
24430         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
24431         we don't require GNU fnmatch ourselves (if our users require it, they
24432         should do so explicitly).
24433
24434         Fix regex code so it doesn't rely on strcasecmp.
24435         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
24436         Otherwise, include gnulib's langinfo.h.
24437         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
24438         undesirable behavior in non-C locales.  Instead, rely on localecharset.
24439         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
24440         * modules/regex (FILES): Remove m4/codeset.m4.
24441         (Depends-on): Add localcharset.  Remove strcase.
24442
24443 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24444
24445         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
24446         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24447
24448 2007-02-13  Bruno Haible  <bruno@clisp.org>
24449
24450         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
24451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24452
24453 2007-02-12  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24456         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
24457         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
24458         time warning rather than a link error.
24459
24460 2007-02-12  Bruno Haible  <bruno@clisp.org>
24461
24462         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
24463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24465
24466 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24467
24468         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
24469         args, not 2.
24470
24471 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24472
24473         New module 'time', so that apps can include <time.h> as per
24474         POSIX and GNU instead of separate include files like time_r.h
24475         and timegm.h.  This implementation tries out a simpler approach
24476         for replacing decls in standard include files (as compared to
24477         the string module), somewhat as an experiment.
24478
24479         * config/srclist.txt: Comment out mktime.c for now.
24480         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
24481         since it doesn't apply any more.  Use generic wording instead.
24482         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
24483         'time'.
24484         * lib/time_.h, m4/time_h.m4, modules/time: New files.
24485         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
24486         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
24487         Don't include <sys/types.h>; no longer needed since we assume C89.
24488         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
24489         * lib/strftime.c: Likewise.
24490         * lib/time_r.c: Likewise.
24491         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
24492         * lib/nanosleep.c: Include <time.h> first, to check interface.
24493         * lib/strptime.c: Likewise.
24494         * lib/time_r.c: Likewise.
24495         * lib/timegm.c: Likewise.
24496         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
24497         needed.
24498         * lib/timegm.c: Don't include timegm.h; no longer needed.
24499         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
24500         time.h now handles any problems in that area.
24501         (struct timespec, nanosleep): Remove; time.h now arranges for these.
24502         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
24503         that time.h defines struct timespec.
24504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
24505         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
24506         handles that.
24507         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
24508         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
24509         needed.  Set REPLACE_LOCALTIME.
24510         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
24511         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
24512         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
24513         nanosleep; time_h.m4 now does that.  Don't require
24514         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
24515         module handles this now.
24516         * modules/getdate (Depends-on): Remove timespec.  Add time.
24517         * modules/nanosleep (Depends-on): Likewise.
24518         * modules/stat-time (Depends-on): Likewise.
24519         * modules/nanosleep (Include): Include time.h, not timespec.h.
24520         * modules/strptime (Files): Remove lib/strptime.h.
24521         (Depends-on): Add extensions, time.
24522         (Include): Include time.h, not strptime.h.
24523         * modules/time_r (Files): Remove lib/time_r.h.
24524         (Depends-on): Add time.
24525         (Include): Include time.h, not time_r.h.
24526         * modules/timegm: Likewise.
24527         * modules/timespec (Description): Now does timespec-related decls
24528         of our own, instead of struct timespec itself.
24529         (Depends-on): Add time; remove extensions.
24530         (Maintainer): Add self.
24531         * modules/utimecmp (Depends-on): Add time; remove timespec.
24532         * modules/utimens (Depends-on): Likewise.
24533         * modules/xnanosleep (Depends-on): Likewise.
24534
24535 2007-02-11  Bruno Haible  <bruno@clisp.org>
24536
24537         * lib/c-strstr.c: Include allocsa.h.
24538         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24539         * lib/c-strcasestr.c: Include allocsa.h.
24540         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24541         * lib/strcasestr.c: Include allocsa.h.
24542         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24543         * lib/mbsstr.c: Include allocsa.h.
24544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24545         allocsa/freesa instead of malloc/free.
24546         * lib/mbscasestr.c: Include allocsa.h.
24547         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24548         allocsa/freesa instead of malloc/free.
24549         * modules/c-strstr (Depends-on): Add allocsa.
24550         * modules/c-strcasestr (Depends-on): Likewise.
24551         * modules/strcasestr (Depends-on): Likewise.
24552         * modules/mbsstr (Depends-on): Likewise.
24553         * modules/mbscasestr (Depends-on): Likewise.
24554
24555 2007-02-11  Bruno Haible  <bruno@clisp.org>
24556
24557         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
24558
24559         * modules/mbsspn-tests: New file.
24560         * tests/test-mbsspn.sh: New file.
24561         * tests/test-mbsspn.c: New file.
24562
24563 2007-02-11  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
24566
24567         * modules/mbspbrk-tests: New file.
24568         * tests/test-mbspbrk.sh: New file.
24569         * tests/test-mbspbrk.c: New file.
24570
24571 2007-02-11  Bruno Haible  <bruno@clisp.org>
24572
24573         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
24574         unneeded cast.
24575
24576         * modules/mbscspn-tests: New file.
24577         * tests/test-mbscspn.sh: New file.
24578         * tests/test-mbscspn.c: New file.
24579
24580 2007-02-11  Bruno Haible  <bruno@clisp.org>
24581
24582         * modules/mbscasecmp-tests: New file.
24583         * tests/test-mbscasecmp.sh: New file.
24584         * tests/test-mbscasecmp.c: New file.
24585
24586 2007-02-11  Bruno Haible  <bruno@clisp.org>
24587
24588         Ensure O(n) worst-case complexity of mbscasestr.
24589         * lib/mbscasestr.c: Include stdbool.h.
24590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24591         functions.
24592         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
24593         the bookkeeping indicates that it's worth it.
24594         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
24595
24596         * modules/mbscasestr-tests: New file.
24597         * tests/test-mbscasestr1.c: New file.
24598         * tests/test-mbscasestr2.sh: New file.
24599         * tests/test-mbscasestr2.c: New file.
24600         * tests/test-mbscasestr3.sh: New file.
24601         * tests/test-mbscasestr3.c: New file.
24602         * tests/test-mbscasestr4.sh: New file.
24603         * tests/test-mbscasestr4.c: New file.
24604         * m4/locale-tr.m4: New file.
24605
24606 2007-02-11  Bruno Haible  <bruno@clisp.org>
24607
24608         Ensure O(n) worst-case complexity of mbsstr.
24609         * lib/mbsstr.c: Include stdbool.h.
24610         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24611         functions.
24612         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
24613         bookkeeping indicates that it's worth it.
24614         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
24615
24616         * modules/mbsstr-tests: New file.
24617         * tests/test-mbsstr1.c: New file.
24618         * tests/test-mbsstr2.sh: New file.
24619         * tests/test-mbsstr2.c: New file.
24620         * tests/test-mbsstr3.sh: New file.
24621         * tests/test-mbsstr3.c: New file.
24622         * m4/locale-fr.m4: New file.
24623
24624 2007-02-11  Bruno Haible  <bruno@clisp.org>
24625
24626         * lib/mbsrchr.c (mbsrchr): Fix bug.
24627
24628         * modules/mbsrchr-tests: New file.
24629         * tests/test-mbsrchr.sh: New file.
24630         * tests/test-mbsrchr.c: New file.
24631
24632 2007-02-11  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/mbschr.c (mbschr): Fix bug.
24635
24636         * modules/mbschr-tests: New file.
24637         * tests/test-mbschr.sh: New file.
24638         * tests/test-mbschr.c: New file.
24639         * m4/locale-zh.m4: New file.
24640
24641 2007-02-11  Bruno Haible  <bruno@clisp.org>
24642
24643         Support for copying multibyte string iterators.
24644         * lib/mbiter.h: Include <string.h>.
24645         (mbiter_multi_copy): New function.
24646         (mbi_copy): New macro.
24647         * lib/mbuiter.h: Include <string.h>.
24648         (mbuiter_multi_copy): New function.
24649         (mbui_copy): New macro.
24650
24651 2007-02-11  Bruno Haible  <bruno@clisp.org>
24652
24653         New module mbslen.
24654         * modules/mbslen: New file.
24655         * lib/mbslen.c: New file.
24656         * lib/string_.h (mbslen): New declaration.
24657         * m4/mbslen.m4: New file.
24658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24659         GNULIB_MBSLEN.
24660         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
24661         * MODULES.html.sh (Internationalization functions): Add mbslen.
24662
24663 2007-02-11  Bruno Haible  <bruno@clisp.org>
24664
24665         Ensure O(n) worst-case complexity of strcasestr substitute.
24666         * lib/strcasestr.c: Include stdbool.h.
24667         (knuth_morris_pratt): New function.
24668         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24669         bookkeeping indicates that it's worth it.
24670         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
24671
24672         * modules/strcasestr-tests: New file.
24673         * tests/test-strcasestr.c: New file.
24674
24675 2007-02-11  Bruno Haible  <bruno@clisp.org>
24676
24677         Ensure O(n) worst-case complexity of c_strcasestr.
24678         * lib/c-strcasestr.c: Include stdbool.h, string.h.
24679         (knuth_morris_pratt): New function.
24680         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
24681         the bookkeeping indicates that it's worth it.
24682         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
24683
24684         * modules/c-strcasestr-tests: New file.
24685         * tests/test-c-strcasestr.c: New file.
24686
24687 2007-02-11  Bruno Haible  <bruno@clisp.org>
24688
24689         Ensure O(n) worst-case complexity of c_strstr.
24690         * lib/c-strstr.c: Include stdbool.h, string.h.
24691         (knuth_morris_pratt): New function.
24692         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24693         bookkeeping indicates that it's worth it.
24694         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
24695
24696         * lib/c-strstr.c: Complete rewrite for maintainability.
24697
24698         * modules/c-strstr-tests: New file.
24699         * tests/test-c-strstr.c: New file.
24700
24701 2007-02-11  Bruno Haible  <bruno@clisp.org>
24702
24703         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
24704         5.2.1 and earlier, whereby \055 was treated just like the range
24705         delimiter '-'.
24706         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24707
24708 2007-02-08  Bruno Haible  <bruno@clisp.org>
24709
24710         * modules/regex (Depends-on): Add stdbool.
24711         Reported by Dalibor Topic <robilad@kaffe.org>.
24712
24713 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24714
24715         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
24716         Prefer returning from main to exiting from it.
24717         Remove unnecessary parens after sizeof.
24718
24719 2007-02-05  Bruno Haible  <bruno@clisp.org>
24720
24721         New module mbssep.
24722         * modules/mbssep: New file.
24723         * lib/mbssep.c: New file.
24724         * lib/string_.h (strsep): Add a conditional link warning.
24725         (mbssep): New declaration.
24726         * m4/mbssep.m4: New file.
24727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24728         GNULIB_MBSSEP.
24729         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24730         * MODULES.html.sh (Internationalization functions): Add mbssep.
24731
24732 2007-02-05  Bruno Haible  <bruno@clisp.org>
24733
24734         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24735         Optimize search in case of 1 delimiter.
24736
24737 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24738
24739         * lib/acl.h: Include sys/types.h before sys/acl.h.
24740
24741 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24742
24743         Merge upstream fix for glibc bugzilla #3957:
24744
24745         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
24746
24747         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24748         bit for RE_HAT_LISTS_NOT_NEWLINE.
24749         (build_charclass_op): Remove bogus comment.
24750
24751 2007-02-05  Simon Josefsson  <simon@josefsson.org>
24752
24753         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24754
24755 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24756
24757         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24758         * lib/memmem.c [!defined _LIBC]: Include config.h.
24759
24760 2007-02-04  Bruno Haible  <bruno@clisp.org>
24761
24762         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24763         warning message.
24764
24765 2007-02-04  Bruno Haible  <bruno@clisp.org>
24766
24767         New module mbstok_r.
24768         * modules/mbstok_r: New file.
24769         * lib/mbstok_r.c: New file.
24770         * lib/string_.h (strtok_r): Change argument names to match the
24771         comments. Add a conditional link warning.
24772         (mbstok_r): New declaration.
24773         * m4/mbstok_r.m4: New file.
24774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24775         GNULIB_MBSTOK_R.
24776         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24777         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24778
24779 2007-02-04  Bruno Haible  <bruno@clisp.org>
24780
24781         New module mbsspn.
24782         * modules/mbsspn: New file.
24783         * lib/mbsspn.c: New file.
24784         * lib/string_.h (strspn): Add a conditional link warning.
24785         (mbsspn): New declaration.
24786         * m4/mbsspn.m4: New file.
24787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24788         GNULIB_MBSSPN.
24789         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24790         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24791
24792 2007-02-04  Bruno Haible  <bruno@clisp.org>
24793
24794         New module mbspbrk.
24795         * modules/mbspbrk: New file.
24796         * lib/mbspbrk.c: New file.
24797         * lib/string_.h (strpbrk): Add a conditional link warning.
24798         (mbspbrk): New declaration.
24799         * m4/mbspbrk.m4: New file.
24800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24801         GNULIB_MBSPBRK.
24802         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24803         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24804
24805 2007-02-04  Bruno Haible  <bruno@clisp.org>
24806
24807         New module mbscspn.
24808         * modules/mbscspn: New file.
24809         * lib/mbscspn.c: New file.
24810         * lib/string_.h (strcspn): Add a conditional link warning.
24811         (mbscspn): New declaration.
24812         * m4/mbscspn.m4: New file.
24813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24814         GNULIB_MBSCSPN.
24815         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24816         * MODULES.html.sh (Internationalization functions): Add mbscspn.
24817
24818 2007-02-04  Bruno Haible  <bruno@clisp.org>
24819
24820         New module mbscasestr, reduced goal of strcasestr.
24821         * modules/mbscasestr: New file.
24822         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24823         (mbscasestr): Renamed from strcasestr.
24824         * lib/strcasestr.c: Don't include mbuiter.h.
24825         (strcasestr): Remove support for multibyte locales.
24826         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24827         Change the conditional link warning.
24828         (mbscasestr): New declaration.
24829         * m4/mbscasestr.m4: New file.
24830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24831         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24832         REPLACE_STRCASESTR.
24833         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24835         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24836         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24837         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24838         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24839         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24840         (Depends-on): Remove mbuiter.
24841         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24842
24843 2007-02-04  Bruno Haible  <bruno@clisp.org>
24844
24845         Simplify handling of strncasecmp.
24846         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24847         the conditional link warning.
24848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24849         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24850         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24851         * modules/strcase (configure.ac): Don't invoke
24852         gl_STRING_MODULE_INDICATOR.
24853         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24854
24855 2007-02-04  Bruno Haible  <bruno@clisp.org>
24856
24857         New module mbscasecmp, reduced goal of strcasecmp.
24858         * modules/mbscasecmp: New file.
24859         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24860         (mbscasecmp): Renamed from strcasecmp.
24861         * lib/strcasecmp.c: Don't include mbuiter.h.
24862         (strcasecmp): Remove support for multibyte locales.
24863         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24864         Change the conditional link warning.
24865         (mbscasecmp): New declaration.
24866         * m4/mbscasecmp.m4: New file.
24867         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24868         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24869         REPLACE_STRCASECMP.
24870         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24872         GNULIB_MBSCASECMP.
24873         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24874         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24875         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24876         (Depends-on): Remove mbuiter.
24877         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24878
24879 2007-02-04  Bruno Haible  <bruno@clisp.org>
24880
24881         New module mbsstr. Remove module strstr.
24882         * modules/mbsstr: New file.
24883         * modules/strstr: Remove file.
24884         * lib/mbsstr.c: Renamed from lib/strstr.c.
24885         (mbsstr): Renamed from strstr.
24886         * lib/string_.h (strstr): Remove declaration. Change the conditional
24887         link warning.
24888         (mbsstr): New declaration.
24889         * m4/mbsstr.m4: New file.
24890         * m4/strstr.m4: Remove file.
24891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24892         REPLACE_STRSTR.
24893         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24894         Don't initialize GNULIB_STRSTR.
24895         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24896         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24897         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24898         (Support for systems lacking ANSI C 89): Remove strstr.
24899
24900 2007-02-04  Bruno Haible  <bruno@clisp.org>
24901
24902         New module mbsrchr.
24903         * modules/mbsrchr: New file.
24904         * lib/mbsrchr.c: New file.
24905         * lib/string_.h (strrchr): Add a conditional link warning.
24906         (mbsrchr): New declaration.
24907         * m4/mbsrchr.m4: New file.
24908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24909         GNULIB_MBSRCHR.
24910         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24911         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24912
24913 2007-02-04  Bruno Haible  <bruno@clisp.org>
24914
24915         New module mbschr.
24916         * modules/mbschr: New file.
24917         * lib/mbschr.c: New file.
24918         * lib/string_.h (strchr): Add a conditional link warning.
24919         (mbschr): New declaration.
24920         * m4/mbschr.m4: New file.
24921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24922         GNULIB_MBSCHR.
24923         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24924         * MODULES.html.sh (Internationalization functions): Add mbschr.
24925
24926 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24927
24928         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24929
24930         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24931
24932 2007-02-04  Bruno Haible  <bruno@clisp.org>
24933
24934         New module description section 'configure.ac-early'.
24935         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24936         (func_get_autoconf_early_snippet): New function.
24937         (func_import, func_create_testdir): Use it. Remove special cases for
24938         modules 'extensions' and 'lock'.
24939         * modules/extensions (configure.ac-early): Require
24940         gl_USE_SYSTEM_EXTENSIONS.
24941         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24942
24943 2007-02-04  Bruno Haible  <bruno@clisp.org>
24944
24945         Make use of gcj-4.3's -fsource and -ftarget option.
24946         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24947         and if so try the options -fsource and -ftarget.
24948         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24949         source_version, ftarget_option, target_version arguments.
24950         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24951         (is_envjavac_oldgcj_14_14_usable): Renamed from
24952         is_envjavac_gcj_14_14_usable.
24953         (is_envjavac_oldgcj_14_13_usable): Renamed from
24954         is_envjavac_gcj_14_13_usable.
24955         (is_gcj_present): Update.
24956         (is_gcj_43, is_gcj43_usable): New functions.
24957         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24958         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24959         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24960         try the options -fsource and -ftarget.
24961
24962 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24963
24964         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24965         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24966         larger value.
24967
24968 2007-02-03  Jim Meyering  <jim@meyering.net>
24969
24970         Give tools a better chance to allocate space for very large buffers.
24971         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24972
24973         Make pwd and readlink work also when run with an unreadable parent dir
24974         on systems with openat support.
24975         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24976         provided getcwd function, even when we have openat support.
24977         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24978
24979 2007-02-02  Bruno Haible  <bruno@clisp.org>
24980
24981         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24982         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24983         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24984         portability problems if one of these functions is only used on specific
24985         platforms.
24986         Reported by Paul Eggert.
24987
24988 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24989
24990         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24991         is causing more trouble than it's curing.
24992         * lib/regex_internal.h (__mempcpy): Remove.
24993         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24994         (and make the code a tad smaller to boot).
24995         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24996
24997 2007-02-02  Jim Meyering  <jim@meyering.net>
24998
24999         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
25000         section, not in the Makefile.am: one.
25001
25002 2007-02-02  Eric Blake  <ebb9@byu.net>
25003
25004         * lib/strchrnul.c: Always include config.h first.
25005
25006         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
25007         gnulib strstr is not necessary here.
25008
25009 2007-02-02  Simon Josefsson  <simon@josefsson.org>
25010
25011         * m4/socklen.m4: Fix typo.
25012
25013 2007-02-02  Eric Blake  <ebb9@byu.net>
25014
25015         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
25016         * modules/netinet_in (Makefile.am): Likewise.
25017
25018 2007-02-01  Bruno Haible  <bruno@clisp.org>
25019
25020         * lib/string_.h (GL_LINK_WARNING): New macro.
25021         (strcasecmp, strstr, strcasestr): If provided by the system,
25022         conditionally define as a macro that leads to a warning instead of to
25023         an error.
25024         (strncasecmp): Conditionally define as a macro that leads to a warning.
25025
25026 2007-02-01  Karl Berry  <karl@gnu.org>
25027
25028         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
25029
25030 2007-02-01  Bruno Haible  <bruno@clisp.org>
25031
25032         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
25033         renamings.
25034
25035 2007-02-01  Eric Blake  <ebb9@byu.net>
25036
25037         * modules/regex (Depends-on): Revert dependence on mempcpy.
25038         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
25039         module's definition of mempcpy.
25040         Reported by Paul Eggert.
25041
25042 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
25043
25044         * lib/string_.h: If the gnulib module XYZ is not present, undefine
25045         the symbol XYZ before redefining it.  This fixes a problem with
25046         programs that don't use XYZ, when compiled on systems that define
25047         XYZ to something else.
25048
25049 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
25050
25051         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
25052         occurs when "mkdir -m foo" creates a setgid directory that is (1)
25053         writeable to group or other and (2) is intended to have a special
25054         mode bit that is set or cleared.  In such a case, the directory
25055         should be neither group- nor other-writeable until the special
25056         mode bits are right.
25057
25058 2007-01-31  Eric Blake  <ebb9@byu.net>
25059
25060         * modules/mountlist (Depends-on): Add strstr.
25061
25062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
25063         bug.
25064         * modules/string (Makefile.am): Remove redundant replacement.
25065         * modules/regex (Depends-on): Add mempcpy.
25066
25067 2007-01-31  Bruno Haible  <bruno@clisp.org>
25068
25069         New module description field 'Link'.
25070         * gnulib-tool (func_usage): Document --extract-link-directive.
25071         (sed_extract_prog): Recognize 'Link' directive.
25072         (func_get_link_directive): New function.
25073         (func_import): Show summary of link directives.
25074         Handle --extract-link-directive option.
25075         * modules/acl (Link): New section.
25076         * modules/clock-time (Link): New section.
25077         * modules/euidaccess (Link): New section.
25078         * modules/gettext (Link): New section.
25079         * modules/iconv (Link): New section.
25080         * modules/lock (Link): New section.
25081         * modules/nanosleep (Link): New section.
25082         * modules/readline (Link): New section.
25083
25084 2007-01-27  Bruno Haible  <bruno@clisp.org>
25085
25086         Enforce the use of gnulib modules for unportable <string.h> functions.
25087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
25088         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
25089         (gl_HEADER_STRING_H_BODY): Require it.
25090         * lib/string_.h: If the gnulib module XYZ is not present, redefine
25091         the symbol XYZ to one that gives a link error.
25092         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
25093         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
25094         * modules/mempcpy (configure.ac): Likewise.
25095         * modules/memrchr (configure.ac): Likewise.
25096         * modules/stpcpy (configure.ac): Likewise.
25097         * modules/stpncpy (configure.ac): Likewise.
25098         * modules/strcase (configure.ac): Likewise.
25099         * modules/strcasestr (configure.ac): Likewise.
25100         * modules/strchrnul (configure.ac): Likewise.
25101         * modules/strdup (configure.ac): Likewise.
25102         * modules/strndup (configure.ac): Likewise.
25103         * modules/strnlen (configure.ac): Likewise.
25104         * modules/strpbrk (configure.ac): Likewise.
25105         * modules/strsep (configure.ac): Likewise.
25106         * modules/strstr (configure.ac): Likewise.
25107         * modules/strtok_r (configure.ac): Likewise.
25108
25109 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
25110
25111         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
25112
25113 2007-01-30  Jim Meyering  <jim@meyering.net>
25114
25115         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
25116
25117 2007-01-29  Bruno Haible  <bruno@clisp.org>
25118
25119         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
25120         * lib/execute.c: Likewise.
25121         * lib/pipe.c: Likewise.
25122         * lib/printf-args.h: Likewise.
25123         * lib/printf-args.c: Likewise.
25124         * lib/printf-parse.c: Likewise.
25125         * lib/vasnprintf.c: Likewise.
25126
25127 2007-01-29  Eric Blake  <ebb9@byu.net>
25128
25129         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
25130         declaration.
25131
25132 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25133
25134         * lib/strptime.h (strptime): Use 'restrict' for args where
25135         POSIX requires this.
25136         * lib/strptime.c (strptime): Likewise.
25137         Change license notice from LGPL to GPL, since gnulib-tool will
25138         change this as needed.
25139         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
25140         defined.
25141         Include "strptime.h" first, to check interface.
25142         Do not #undef _LIBC and _NL_CURRENT.
25143         Do not include <stdlib.h>; no longer needed.
25144         Include "time_r.h" and declare ptime_locale_status
25145         only if _LIBC is not defined.
25146         (__P): Remove unused macro.
25147         (match_string): Bring back glibc version, but use it only if _LIBC
25148         is defined.
25149         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
25150         Remove unnecessary assertion and abort() call.
25151         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
25152         * m4/strptime.m4: Fix serial number comment.
25153         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
25154         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
25155         (Depends-on): Add time_r.
25156
25157 2007-01-29  Bruno Haible  <bruno@clisp.org>
25158
25159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25160         strptime.
25161         * modules/strptime (Depends-on): Add stdbool.
25162         * lib/strptime.h: Include <time.h> always. Add comments.
25163
25164 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25165
25166         * modules/strptime: New file.
25167         * lib/strptime.h: New file.
25168         * lib/strptime.c: New file.
25169         * m4/strptime.m4: New file.
25170
25171 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * MODULES.html.sh: New module mpsort.
25174         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
25175
25176         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
25177         a circularity problem with HP-UX ia64 reported by Bob Proulx in
25178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
25179         All uses changed.
25180         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
25181         All uses changed.
25182         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
25183         to _Restrict_.
25184         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
25185         the parameter matches the prototype.
25186
25187 2007-01-28  Jim Meyering  <jim@meyering.net>
25188
25189         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
25190         sys/time.h here, reverting that part of the previous patch:
25191         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
25192
25193 2007-01-28  Bruno Haible  <bruno@clisp.org>
25194
25195         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
25196         value of $(SYS_TIME_H).
25197         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
25198         remove it conditionally, too. [added by Jim Meyering]
25199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
25200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25201         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
25202         GETTIMEOFDAY_REPLACEMENT to 1.
25203
25204 2007-01-28  Bruno Haible  <bruno@clisp.org>
25205
25206         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
25207         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
25208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
25209         Set UNISTD_H instead of UNISTD_H2.
25210         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
25211
25212 2007-01-28  Bruno Haible  <bruno@clisp.org>
25213
25214         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
25215         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
25216
25217 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25218
25219         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
25220         (func_create_testdir): Ensure C locale for `grep' and `tr'
25221         character ranges.
25222         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
25223         ACLOCAL_AMFLAGS parsing state machine.
25224
25225 2007-01-27  Bruno Haible  <bruno@clisp.org>
25226
25227         * modules/unistr/base: Update.
25228
25229 2007-01-27  Bruno Haible  <bruno@clisp.org>
25230
25231         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
25232         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
25233         * modules/unistr/u32-mbtouc-unsafe: Renamed from
25234         modules/unistr/u32-mbtouc.
25235         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
25236         * lib/unistr.h: Update.
25237         * lib/linebreak.c: Update.
25238         * modules/unistr/u32-mbtouc: Renamed from
25239         modules/unistr/u32-mbtouc-safe.
25240         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
25241         * lib/unistr.h: Update.
25242         * lib/unistr/u32-to-u8.c: Update.
25243         * lib/unistr/u32-to-u16.c: Update.
25244
25245 2007-01-27  Bruno Haible  <bruno@clisp.org>
25246
25247         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
25248         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
25249         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
25250         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
25251         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
25252         * modules/unistr/u16-mbtouc-unsafe: Renamed from
25253         modules/unistr/u16-mbtouc.
25254         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
25255         * lib/unistr.h: Update.
25256         * lib/linebreak.c: Update.
25257         * modules/linebreak: Update.
25258         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
25259         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
25260         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
25261         * modules/unistr/u16-mbtouc: Renamed from
25262         modules/unistr/u16-mbtouc-safe.
25263         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
25264         * lib/unistr.h: Update.
25265         * lib/unistr/u16-to-u8.c: Update.
25266         * modules/unistr/u16-to-u8: Update.
25267         * lib/unistr/u16-to-u32.c: Update.
25268         * modules/unistr/u16-to-u32: Update.
25269
25270 2007-01-27  Bruno Haible  <bruno@clisp.org>
25271
25272         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
25273         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
25274         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
25275         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
25276         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
25277         * modules/unistr/u8-mbtouc-unsafe: Renamed from
25278         modules/unistr/u8-mbtouc.
25279         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
25280         * lib/unistr.h: Update.
25281         * lib/striconveh.c: Update.
25282         * modules/striconveh: Update.
25283         * lib/linebreak.c: Update.
25284         * modules/linebreak: Update.
25285         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
25286         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
25287         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
25288         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
25289         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
25290         * lib/unistr.h: Update.
25291         * lib/striconveh.c: Update.
25292         * modules/striconveh: Update.
25293         * lib/unistr/u8-to-u16.c: Update.
25294         * modules/unistr/u8-to-u16: Update.
25295         * lib/unistr/u8-to-u32.c: Update.
25296         * modules/unistr/u8-to-u32: Update.
25297
25298 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25299
25300         Sync from Libtool.
25301         * lib/argz.c: Do not include strings.h nor memory.h, include
25302         string.h unconditionally.  Patch by Simon Josefsson.
25303
25304 2007-01-27  Bruno Haible  <bruno@clisp.org>
25305
25306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
25307         from gl_HEADER_STRING_H_BODY.
25308         (gl_HEADER_STRING_H_BODY): Require it.
25309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
25310         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25311         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25312         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25314         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
25315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25316         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25317         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
25318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25320         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
25321         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25322         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25323         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25324
25325 2007-01-27  Bruno Haible  <bruno@clisp.org>
25326
25327         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
25328         check_PROGRAMS into noinst_PROGRAMS.
25329         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
25330         check_PROGRAMS in this case.
25331         (func_import): Set for_test to false.
25332         (func_create_testdir): Set for_test to true.
25333
25334 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25335             Bruno Haible  <bruno@clisp.org>
25336
25337         * modules/strcasestr (Files): Remove lib/strcasestr.h.
25338         (Depends-on): Add string.
25339         (Includes): Use <string.h> instead of strcasestr.h.
25340         * modules/string (Makefile.am): Also substitute the value of
25341         REPLACE_STRCASESTR.
25342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
25343         assume strcasestr is declared in <string.h> not <strings.h>. Also
25344         set REPLACE_STRCASESTR.
25345         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
25346         REPLACE_STRCASESTR.
25347         * lib/strcasestr.h: Remove file.
25348         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
25349         * lib/string_.h (strcasestr): New declaration.
25350
25351 2007-01-27  Bruno Haible  <bruno@clisp.org>
25352
25353         * lib/string_.h: Use 'extern'.
25354
25355 2007-01-27  Jim Meyering  <jim@meyering.net>
25356
25357         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
25358         of set-but-not-used local, "q".
25359
25360         * lib/mempcpy.c: Include <config.h> before <string.h>.
25361         This fixes a compilation error on HP-UX, due to the system's
25362         "restrict"-using mempcpy prototype.
25363
25364 2007-01-26  Bruno Haible  <bruno@clisp.org>
25365
25366         Small optimization.
25367         * lib/javacomp.c: Include c-strstr.h.
25368          (is_envjavac_gcj): Use c_strstr instead of strstr.
25369         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
25370
25371 2007-01-26  Bruno Haible  <bruno@clisp.org>
25372
25373         * MODULES.html.sh (Unicode string functions): Add the new modules.
25374
25375         * modules/uniconv/u32-strconv-to-locale: New file.
25376         * lib/uniconv/u32-strconv-to-locale.c: New file.
25377
25378         * modules/uniconv/u16-strconv-to-locale: New file.
25379         * lib/uniconv/u16-strconv-to-locale.c: New file.
25380
25381         * modules/uniconv/u8-strconv-to-locale: New file.
25382         * lib/uniconv/u8-strconv-to-locale.c: New file.
25383
25384         * modules/uniconv/u32-strconv-from-locale: New file.
25385         * lib/uniconv/u32-strconv-from-locale.c: New file.
25386
25387         * modules/uniconv/u16-strconv-from-locale: New file.
25388         * lib/uniconv/u16-strconv-from-locale.c: New file.
25389
25390         * modules/uniconv/u8-strconv-from-locale: New file.
25391         * lib/uniconv/u8-strconv-from-locale.c: New file.
25392
25393         * modules/uniconv/u32-strconv-to-enc: New file.
25394         * lib/uniconv/u32-strconv-to-enc.c: New file.
25395         * modules/uniconv/u32-strconv-to-enc-tests: New file.
25396         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
25397
25398         * modules/uniconv/u16-strconv-to-enc: New file.
25399         * lib/uniconv/u16-strconv-to-enc.c: New file.
25400         * lib/uniconv/u-strconv-to-enc.h: New file.
25401         * modules/uniconv/u16-strconv-to-enc-tests: New file.
25402         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
25403
25404         * modules/uniconv/u8-strconv-to-enc: New file.
25405         * lib/uniconv/u8-strconv-to-enc.c: New file.
25406         * modules/uniconv/u8-strconv-to-enc-tests: New file.
25407         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
25408
25409         * modules/uniconv/u32-strconv-from-enc: New file.
25410         * lib/uniconv/u32-strconv-from-enc.c: New file.
25411         * modules/uniconv/u32-strconv-from-enc-tests: New file.
25412         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
25413
25414         * modules/uniconv/u16-strconv-from-enc: New file.
25415         * lib/uniconv/u16-strconv-from-enc.c: New file.
25416         * modules/uniconv/u16-strconv-from-enc-tests: New file.
25417         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
25418
25419         * modules/uniconv/u8-strconv-from-enc: New file.
25420         * lib/uniconv/u8-strconv-from-enc.c: New file.
25421         * lib/uniconv/u-strconv-from-enc.h: New file.
25422         * modules/uniconv/u8-strconv-from-enc-tests: New file.
25423         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
25424
25425         * modules/uniconv/u32-conv-from-enc: New file.
25426         * lib/uniconv/u32-conv-from-enc.c: New file.
25427         * modules/uniconv/u32-conv-from-enc-tests: New file.
25428         * tests/uniconv/test-u32-conv-from-enc.c: New file.
25429
25430         * modules/uniconv/u16-conv-from-enc: New file.
25431         * lib/uniconv/u16-conv-from-enc.c: New file.
25432         * lib/uniconv/u-conv-from-enc.h: New file.
25433         * modules/uniconv/u16-conv-from-enc-tests: New file.
25434         * tests/uniconv/test-u16-conv-from-enc.c: New file.
25435
25436         * modules/uniconv/u8-conv-from-enc: New file.
25437         * lib/uniconv/u8-conv-from-enc.c: New file.
25438         * modules/uniconv/u8-conv-from-enc-tests: New file.
25439         * tests/uniconv/test-u8-conv-from-enc.c: New file.
25440
25441         * modules/uniconv/base: New file.
25442         * lib/uniconv.h: New file.
25443
25444 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25445
25446         * doc/gnulib-tool.texi (Initial import): Update to match current
25447         behavior with strdup module.
25448         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
25449         * lib/memmem.h: Remove; all uses removed.  This is now done
25450         by <string.h>.
25451         * lib/mempcpy.h: Likewise.
25452         * lib/memrchr.h: Likewise.
25453         * lib/stpcpy.h: Likewise.
25454         * lib/stpncpy.h: Likewise.
25455         * lib/strcase.h: Likewise.
25456         * lib/strchrnul.h: Likewise.
25457         * lib/strdup.h: Likewise.
25458         * lib/strndup.h: Likewise.
25459         * lib/strnlen.h: Likewise.
25460         * lib/strpbrk.h: Likewise.
25461         * lib/strsep.h: Likewise.
25462         * lib/strstr.h: Likewise.
25463         * lib/strtok_r.h: Likewise.
25464         * lib/string_.h: New file.
25465         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
25466         Rely on <string.h> instead.
25467         * lib/canon-host.c: Likewise.
25468         * lib/chdir-long.c: Likewise.
25469         * lib/concatpath.c: Likewise.
25470         * lib/exclude.c: Likewise.
25471         * lib/fchdir.c: Likewise.
25472         * lib/getaddrinfo.c: Likewise.
25473         * lib/getcwd.c: Likewise.
25474         * lib/getsubopt.c: Likewise.
25475         * lib/glob.c: Likewise.
25476         * lib/hard-locale.c: Likewise.
25477         * lib/iconvme.c: Likewise.
25478         * lib/javacomp.c: Likewise.
25479         * lib/mempcpy.c: Likewise.
25480         * lib/memrchr.c: Likewise.
25481         * lib/regex_internal.h: Likewise.
25482         * lib/stpncpy.c: Likewise.
25483         * lib/strcasecmp.c: Likewise.
25484         * lib/strchrnul.c: Likewise.
25485         * lib/strdup.c: Likewise.
25486         * lib/striconv.c: Likewise.
25487         * lib/striconveh.c: Likewise.
25488         * lib/striconveha.c: Likewise.
25489         * lib/strncasecmp.c: Likewise.
25490         * lib/strndup.c: Likewise.
25491         * lib/strnlen.c: Likewise.
25492         * lib/strsep.c: Likewise.
25493         * lib/strstr.c: Likewise.
25494         * lib/strtok_r.c: Likewise.
25495         * lib/userspec.c: Likewise.
25496         * lib/w32spawn.h: Likewise.
25497         * lib/xstrndup.c: Likewise.
25498         * lib/mountlist.c (strstr): Remove decl.
25499         * m4/string_h.m4: New file.
25500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
25501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
25502         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
25503         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
25504         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
25505         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
25506         Set REPLACE_STRCASECMP if necessary.
25507         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
25508         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
25509         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
25510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
25511         HAVE_DECL_STRDUP if necessary.
25512         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
25513         since gl_FUNC_STRNDUP does that now.
25514         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
25515         Check for decl here...
25516         (gl_PREREQ_STRNLEN): ... not here.
25517         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
25518         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
25519         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
25520         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
25521         necessary.
25522         * modules/string: New file.
25523         * modules/memmem (Files): Remove special-purpose include file.
25524         (Depends-on): Add string.
25525         (Include): Include <string.h>, not the removed file.
25526         * modules/mempcpy: Likewise.
25527         * modules/memrchr: Likewise.
25528         * modules/stpcpy: Likewise.
25529         * modules/stpncpy: Likewise.
25530         * modules/strcase: Likewise.
25531         * modules/strchrnul: Likewise.
25532         * modules/strdup: Likewise.
25533         * modules/strndup: Likewise.
25534         * modules/strnlen: Likewise.
25535         * modules/strpbrk: Likewise.
25536         * modules/strsep: Likewise.
25537         * modules/strstr: Likewise.
25538         * modules/strtok_r: Likewise.
25539         * tests/test-dirname.c: Don't include "strdup.h", since
25540         <string.h> now suffices.
25541         * tests/test-memmem.c: Don't include "memmem.h", since
25542         <string.h> now suffices.
25543
25544 2007-01-25  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
25547         *resultp is 0.
25548
25549         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
25550         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
25551         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
25552         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
25553
25554         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
25555         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
25556         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
25557         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
25558         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
25559         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
25560
25561 2007-01-24  Bruno Haible  <bruno@clisp.org>
25562
25563         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
25564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
25565         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
25566         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
25567         gl_FUNC_FTS_CORE.
25568         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
25569         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
25570         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25571         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
25572         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
25573         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
25574         gl_FUNC_FCHOWNAT.
25575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
25576         gl_FUNC_STRFTIME.
25577         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
25578         Reported by Ralf Wildenhues.
25579
25580 2007-01-24  Bruno Haible  <bruno@clisp.org>
25581
25582         Drop AC_REQUIRE calls that are redundant with the module dependencies.
25583         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
25584         gl_GETADDRINFO.
25585         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
25586         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
25587         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
25588
25589 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25590
25591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
25592         Don't use 'exit'; just return from 'main'.
25593         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
25594
25595         * lib/fnmatch_.h: Readjust white space and comments to match
25596         glibc, to avoid spurious diffs.
25597
25598 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25599
25600         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
25601         2004-12-01 change by Jakub Jelinek, since this code won't compile
25602         if !LIBC.  Problem reported by Bob Proulx.
25603
25604 2007-01-23  Bruno Haible  <bruno@clisp.org>
25605
25606         * lib/striconveh.c: Include c-strcaseeq.h.
25607         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
25608         * modules/striconveh (Depends-on): Add c-strcaseeq.
25609
25610 2007-01-23  Bruno Haible  <bruno@clisp.org>
25611
25612         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
25613
25614         * modules/c-strcaseeq: New file.
25615         * lib/c-strcaseeq.h: New file.
25616
25617         * modules/streq: New file.
25618         * lib/streq.h: New file.
25619
25620 2007-01-23  Bruno Haible  <bruno@clisp.org>
25621
25622         * modules/striconveha-tests: New file.
25623         * tests/test-striconveha.c: New file.
25624
25625         * lib/striconveha.h: Include <stdbool.h>.
25626         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
25627         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
25628         (mem_iconveha_notranslit): Renamed from mem_iconveha.
25629         (mem_iconveha): New function.
25630         (str_iconveha_notranslit): Renamed from str_iconveha.
25631         (str_iconveha): New function.
25632         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
25633         c-strcase.
25634
25635 2007-01-23  Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
25638         encodings without forgiving before trying any encoding with handler.
25639         (str_iconveha): Try all encodings without forgiving before trying any
25640         encoding with handler.
25641
25642 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25643
25644         Import the following changes from libc.
25645
25646         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25647
25648         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
25649
25650         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25651
25652         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
25653         normal_bracket label.
25654
25655         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
25656
25657         [BZ #361]
25658         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
25659         to normal_bracket after fetching the next character.
25660
25661 2007-01-22  Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
25664         argument.
25665         * lib/striconveh.c (iconv_carefully_1): New function.
25666         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
25667         argument.
25668         (str_cd_iconveh): Update.
25669         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
25670         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
25671         * tests/test-striconveh.c (MAGIC): New macro.
25672         (new_offsets): New function.
25673         (main): Test call with and without offsets.
25674
25675 2007-01-22  Bruno Haible  <bruno@clisp.org>
25676
25677         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
25678         * modules/sys_select (Makefile.am): Likewise.
25679         * modules/sys_socket (Makefile.am): Likewise.
25680         * modules/sys_time (Makefile.am): Likewise.
25681
25682 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25683
25684         * modules/gettimeofday (License): Change from GPL to LGPL, since
25685         gettimeofday is a library function.
25686
25687 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25688
25689         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
25690
25691 2007-01-21  Bruno Haible  <bruno@clisp.org>
25692
25693         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
25694
25695 2007-01-21  Bruno Haible  <bruno@clisp.org>
25696
25697         * modules/striconveha: New file.
25698         * lib/striconveha.h: New file.
25699         * lib/striconveha.c: New file.
25700         * MODULES.html.sh (Internationalization functions): Add striconveha.
25701         * lib/striconv.c (str_iconv): Optimize the case of an empty input
25702         string.
25703         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
25704
25705 2007-01-21  Bruno Haible  <bruno@clisp.org>
25706
25707         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
25708         * lib/striconveh.c (str_iconveh): Likewise.
25709
25710 2007-01-21  Bruno Haible  <bruno@clisp.org>
25711
25712         * lib/striconveh.h (mem_iconveh): New declaration.
25713         * lib/striconveh.c (mem_iconveh): New function.
25714         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
25715
25716 2007-01-21  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
25719
25720         * lib/striconveh.h (mem_cd_iconveh): Change specification.
25721         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
25722         original result buffer.
25723         (str_cd_iconveh): Update.
25724         * tests/test-striconveh.c (main): Update.
25725
25726         * lib/striconv.h (mem_cd_iconv): Change specification.
25727         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25728         result buffer.
25729         (str_cd_iconv): Update.
25730         * tests/test-striconv.c (main): Update.
25731
25732 2007-01-21  Bruno Haible  <bruno@clisp.org>
25733
25734         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25735
25736 2007-01-20  Jim Meyering  <jim@meyering.net>
25737
25738         * lib/userspec.c (parse_with_separator): If a user or group string
25739         starts with "+", skip the corresponding name-to-ID look-up, since
25740         such a look-up must fail: user and group names may not include "+".
25741
25742 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25743
25744         * lib/poll.c: Include sys/time.h and time.h unconditionally,
25745         since we now assume the sys_time module.
25746         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25747         check for sys/time.h; no longer needed.
25748         * modules/poll (Depends-on): Depend on sys_time.
25749
25750 2007-01-18  Bruno Haible  <bruno@clisp.org>
25751
25752         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25753         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25754
25755         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25756         gettimeofday.
25757
25758         * tests/test-gettimeofday.c: Include <time.h>.
25759         (dummy): Remove variable.
25760
25761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25762         gl_HEADER_SYS_TIME_H.
25763         (gl_HEADER_SYS_TIME_H): New macro.
25764
25765         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25766         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25768         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25769         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25771         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25772         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25773         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25774         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25775         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25776
25777         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25778         last change; it caused a compilation error when cross-compiling to
25779         Cygwin.
25780
25781 2007-01-18  Jim Meyering  <jim@meyering.net>
25782
25783         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25784         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25785         than the race-prone "test -d sys || mkdir sys".
25786         (configure.ac): Use AC_PROG_MKDIR_P.
25787         * modules/sys_select: Likewise.
25788         * modules/sys_socket: Likewise.
25789         * modules/sys_time: Likewise.
25790
25791 2007-01-18  Eric Blake  <ebb9@byu.net>
25792
25793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25794         replace gettimeofday.
25795         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25796         name, to avoid infinite recursion.
25797
25798 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25799
25800         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25801         module sys_time.
25802         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25803         assume timespec.h defines struct timeval.
25804         * lib/settime.c: Likewise.
25805         * lib/utimens.c: Likewise.
25806         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25807         since we now assume the gettimeofday module.
25808         * lib/tempname.c (__gen_tempname): Likewise.
25809         * lib/gettimeofday.h: Remove.
25810         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25811         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25812         Include <time.h>, for 'time()'.
25813         (localtime_buffer_addr): Also use this workaround if
25814         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
25815         to simplify the uses.  All uses changed.
25816         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25817         that #undef is inside {}, and 'const' follows type name consistently.
25818         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25819         (gettimeofday): Do not use the maximum possible value for
25820         tv->tv_usec, since that might break usages other than ls.c.
25821         Instead, we'll leave ls.c alone.  This undoes today's patch
25822         by Bruno.  Add a compile-time warning for 1s-clock resolution;
25823         we've never observed the problem but might as well keep the
25824         canary.
25825         * lib/nanosleep.c: Include timespec.h first, for interface check.
25826         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25827         now assume the sys_time module.
25828         * lib/tempname.c: Likewise.
25829         * lib/timespec.h: Likewise.
25830         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25831         needed.
25832         * lib/strftime.c: Likewise.
25833         * lib/timespec.h: Likewise.
25834         * lib/posixtm.c: Include posixtm.h first, for interface check.
25835         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25836         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25837         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25838         * lib/sys_time_.h: New file.
25839         * lib/timespec.h (struct timespec): Use long int, not long.
25840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25841         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25842         Remove obsolescent call to AC_HEADER_TIME.
25843         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25845         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25846         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25847         Likewise.
25848         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25849         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25851         into the sys_time module.  Check for gettimeofday just once.
25852         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25853         for gettimeofday signature to just check the signature.  Merely
25854         compile it, since linking doesn't test signature.  Improve test for
25855         whether gettimeofday.o is actually needed.
25856         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25857         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25858         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25859         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25860         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25861         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25862         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25863         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25864         than worrying about sys/time.h.
25865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25866         Don't bother worrying about TIME_WITH_SYS_TIME.
25867         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25868         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25869         * m4/sys_time_h.m4: New file.
25870         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25871         Don't include sys/time.h.  Return from main rather than exiting.
25872         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25873         all uses changed.
25874         * modules/gethrxtime (Depends-on): Add sys_time.
25875         * modules/gettime (Depends-on): Likewise.
25876         * modules/gettimeofday (Depends-on): Likewise.
25877         * modules/nanosleep (Depends-on): Likewise.
25878         * modules/settime (Depends-on): Likewise.
25879         * modules/tempname (Depends-on): Likewise.
25880         * modules/utimens (Depends-on): Likewise.
25881         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25882         (Include:) Change back to <sys/time.h>.
25883         (Maintainer:) Add self.
25884         * modules/sys_time: New file.
25885         * modules/tempname (Depends-on): Add gettimeofday.
25886         * tests/test-gettimeofday.c: Include <sys/time.h>
25887         rather than gettimeofday.h.
25888
25889 2007-01-17  Bruno Haible  <bruno@clisp.org>
25890
25891         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25892         the license default to GPL.
25893         (func_create_testdir): Don't complain if a module is LGPL and its
25894         tests module depends on GPLed modules.
25895
25896 2007-01-17  Bruno Haible  <bruno@clisp.org>
25897
25898         * lib/gettimeofday.c (gettimeofday): Add code for the case
25899         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25900         maximum possible value for tv->tv_usec, rather than the minimum one.
25901
25902 2005-10-08  Martin Lambers  <marlam@marlam.de>
25903 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25904 2007-01-16  Bruno Haible  <bruno@clisp.org>
25905
25906         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25907         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25908         gl_FUNC_GETTIMEOFDAY.
25909         (Include): Add gettimeofday.h.
25910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25911         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25912         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25913         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25914         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25915         * lib/gettimeofday.h: New file.
25916         * lib/gettimeofday.c: Include <sys/timeb.h>.
25917         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25918         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25919         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25920         fall back on time().
25921
25922         * tests/test-gettimeofday.c: New file.
25923         * modules/gettimeofday-tests: New file.
25924
25925 2007-01-16  Eric Blake  <ebb9@byu.net>
25926
25927         * modules/fnmatch (Depends-on): Depend on wchar.
25928         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25929         * m4/fnmatch.m4: Likewise.
25930         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25931         * m4/mbchar.m4: Likewise.
25932         * modules/mbswidth (Depends-on): Depend on wchar.
25933         * lib/mbswidth.c: Assume <wchar.h>.
25934         * m4/mbswidth.m4: Likewise.
25935         * modules/quotearg (Depends-on): Depend on wchar.
25936         * lib/quotearg.c: Assume <wchar.h>.
25937         * m4/quotearg.m4: Likewise.
25938         * modules/regex (Depends-on): Depend on wchar.
25939         * lib/regex_internal.h: Assume <wchar.h>.
25940         * m4/regex.m4: Likewise.
25941         * modules/stdint (Depends-on): Depend on wchar.
25942         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25943         * m4/stdint.m4: Likewise.
25944         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25945         * modules/strftime (Depends-on): Depend on wchar.
25946         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25947         * modules/strtol (Depends-on): Depend on wchar.
25948         * lib/strtol.c: Assume <wchar.h>.
25949         * modules/wcwidth (Depends-on): Depend on wchar.
25950         * lib/wcwidth.h: Assume <wchar.h>.
25951         * m4/wcwidth.m4: Likewise.
25952
25953 2007-01-16  Bruno Haible  <bruno@clisp.org>
25954
25955         * modules/csharpexec-script: New, created from...
25956         * modules/csharpexec: ... this.
25957
25958 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25959
25960         * modules/javaexec-script: New, created from...
25961         * modules/javaexec: ... this.
25962
25963 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25964
25965         * modules/poll (Dependencies): Add sys_select.
25966
25967 2007-01-15  Jim Meyering  <jim@meyering.net>
25968
25969         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25970         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25971         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25972         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25973
25974 2007-01-15  Bruno Haible  <bruno@clisp.org>
25975
25976         * modules/striconveh: New file.
25977         * lib/striconveh.h: New file.
25978         * lib/striconveh.c: New file.
25979         * MODULES.html.sh (Internationalization functions): Add striconveh.
25980
25981         * modules/striconveh-tests: New file.
25982         * tests/test-striconveh.c: New file.
25983
25984 2007-01-15  Bruno Haible  <bruno@clisp.org>
25985
25986         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25987         not from GNU libiconv or GNU libc.
25988
25989 2007-01-15  Bruno Haible  <bruno@clisp.org>
25990
25991         * doc/gnulib-intro.texi (Copyright): Explain the different license
25992         terms for module descriptions, autoconf macros, tests, documentation.
25993
25994 2007-01-14  Bruno Haible  <bruno@clisp.org>
25995
25996         * modules/striconv-tests: New file.
25997         * tests/test-striconv.c: New file.
25998
25999 2007-01-14  Bruno Haible  <bruno@clisp.org>
26000
26001         * modules/iconv-tests: New file.
26002         * tests/test-iconv.c: New file.
26003
26004 2007-01-14  Bruno Haible  <bruno@clisp.org>
26005
26006         * gnulib-tool (func_get_license): For test modules, use the license of
26007         the main module.
26008
26009 2007-01-14  Bruno Haible  <bruno@clisp.org>
26010
26011         * modules/iconv (Include): Clarify that <iconv.h> can only be included
26012         if iconv is found to exist.
26013
26014 2007-01-14  Bruno Haible  <bruno@clisp.org>
26015
26016         * modules/c-ctype-tests: New file.
26017         * tests/test-c-ctype.c: New file.
26018
26019 2007-01-14  Bruno Haible  <bruno@clisp.org>
26020
26021         * modules/binary-io-tests: New file.
26022         * tests/test-binary-io.sh: New file.
26023         * tests/test-binary-io.c: New file.
26024
26025 2007-01-14  Bruno Haible  <bruno@clisp.org>
26026
26027         * modules/array-oset-tests: New file.
26028         * tests/test-array_oset.c: New file.
26029
26030 2007-01-14  Bruno Haible  <bruno@clisp.org>
26031
26032         * modules/array-list-tests: New file.
26033         * tests/test-array_list.c: New file.
26034
26035 2007-01-14  Bruno Haible  <bruno@clisp.org>
26036
26037         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
26038         and make.
26039         Reported by Simon Josefsson in
26040         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
26041
26042 2007-01-14  Bruno Haible  <bruno@clisp.org>
26043
26044         * modules/allocsa-tests: New file.
26045         * tests/test-allocsa.c: New file.
26046
26047 2007-01-14  Bruno Haible  <bruno@clisp.org>
26048
26049         * modules/fchdir (Depends-on): Add absolute-header.
26050         * modules/unistd (Depends-on): Likewise.
26051
26052 2006-12-30  Bruno Haible  <bruno@clisp.org>
26053
26054         * modules/fchdir: New file.
26055         * modules/unistd (Files): Add lib/unistd_.h.
26056         (Makefile.am): Generate unistd.h from unistd_.h.
26057         * lib/fchdir.c: New file.
26058         * lib/dirent_.h: New file.
26059         * lib/unistd_.h: New file.
26060         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
26061         * m4/fchdir.m4: New file.
26062         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
26063         (gl_HEADER_UNISTD): Invoke it.
26064         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
26065         function.
26066         * lib/backupfile.c (opendir, closedir): Undefine.
26067         * lib/chown.c (open, close): Undefine.
26068         * lib/clean-temp.c (open, close): Undefine.
26069         * lib/copy-file.c (open, close): Undefine.
26070         * lib/execute.c (open, close): Undefine.
26071         * lib/fsusage.c (open, close): Undefine.
26072         * lib/gc-gnulib.c (open, close): Undefine.
26073         * lib/getcwd.c (opendir, closedir): Undefine.
26074         * lib/glob.c (opendir, closedir): Undefine.
26075         * lib/javacomp.c (open, close): Undefine.
26076         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
26077         * lib/openat-proc.c (open, close): Undefine.
26078         * lib/pagealign_alloc.c (open, close): Undefine.
26079         * lib/pipe.c (open, close): Undefine.
26080         * lib/progreloc.c (open, close): Undefine.
26081         * lib/savedir.c (opendir, closedir): Undefine.
26082         * lib/utime.c (open, close): Undefine.
26083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
26084
26085 2007-01-10  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
26088
26089 2007-01-12  Eric Blake  <ebb9@byu.net>
26090
26091         Provide a robust <wchar.h>.  Further simplifications are now
26092         possible in other modules, but not included here.
26093         * modules/wchar: New module.
26094         * m4/wchar.m4: New file.
26095         * lib/wchar_.h: Likewise.
26096         * modules/mbchar (Depends-on): Depend on wchar, as the first use
26097         of the new module.
26098         * MODULES.html.sh (Extended multibyte and wide character utilities):
26099         New section.
26100
26101 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
26102
26103         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
26104         to a reasonable default for memory allocation.
26105         (xreadlink): Don't allocate a huge buffer, to work around a buggy
26106         file system that reports garbage st_size values for symlinks.
26107         Problem reported by Liyang Hu.
26108
26109 2007-01-11  Simon Josefsson  <simon@josefsson.org>
26110
26111         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
26112         Emacs .#* auto-save files).
26113
26114 2007-01-11  Bruno Haible  <bruno@clisp.org>
26115
26116         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
26117         directory.
26118
26119 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         Use @...@ consistently in lib/wctype_.h.
26122         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
26123         on it being set to 1 or 0.
26124         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
26125         go back to AC_SUBSTing it.
26126         * modules/wctype (Makefile.am): Undo previous change.
26127
26128 2007-01-10  Eric Blake  <ebb9@byu.net>
26129
26130         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
26131         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
26132         * modules/wctype (Makefile.am): Likewise.
26133         Reported by Chris McGuire.
26134
26135 2007-01-10  Jim Meyering  <jim@meyering.net>
26136
26137         fts.c: a small readability/maintainability improvement
26138         * lib/fts.c (fts_read): Make this code slightly more readable and
26139         maintainable by hoisting the "sp->fts_cur = p" assignments to
26140         immediately follow the statements that set P.  Derived from
26141         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
26142
26143 2007-01-10  Eric Blake  <ebb9@byu.net>
26144
26145         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
26146         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
26147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26148         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26149         Reported by Chris McGuire.
26150
26151 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26152
26153         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
26154         in sed script.
26155
26156 2007-01-09  Bruno Haible  <bruno@clisp.org>
26157
26158         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
26159         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
26160         variables.
26161         (func_module): Use them.
26162
26163 2007-01-09  Bruno Haible  <bruno@clisp.org>
26164
26165         * modules/unistr/base: New file.
26166         * lib/unistr.h: New file.
26167
26168         * modules/unistr/u8-to-u16: New file.
26169         * lib/unistr/u8-to-u16.c: New file.
26170
26171         * modules/unistr/u8-to-u32: New file.
26172         * lib/unistr/u8-to-u32.c: New file.
26173
26174         * modules/unistr/u16-to-u8: New file.
26175         * lib/unistr/u16-to-u8.c: New file.
26176
26177         * modules/unistr/u16-to-u32: New file.
26178         * lib/unistr/u16-to-u32.c: New file.
26179
26180         * modules/unistr/u32-to-u8: New file.
26181         * lib/unistr/u32-to-u8.c: New file.
26182
26183         * modules/unistr/u32-to-u16: New file.
26184         * lib/unistr/u32-to-u16.c: New file.
26185
26186         * modules/unistr/u8-check: New file.
26187         * modules/unistr/u16-check: New file.
26188         * modules/unistr/u32-check: New file.
26189         * lib/unistr/u8-check.c: New file.
26190         * lib/unistr/u16-check.c: New file.
26191         * lib/unistr/u32-check.c: New file.
26192
26193         * modules/unistr/u8-chr: New file.
26194         * modules/unistr/u16-chr: New file.
26195         * modules/unistr/u32-chr: New file.
26196         * lib/unistr/u8-chr.c: New file.
26197         * lib/unistr/u16-chr.c: New file.
26198         * lib/unistr/u32-chr.c: New file.
26199
26200         * modules/unistr/u8-cmp: New file.
26201         * modules/unistr/u16-cmp: New file.
26202         * modules/unistr/u32-cmp: New file.
26203         * lib/unistr/u8-cmp.c: New file.
26204         * lib/unistr/u16-cmp.c: New file.
26205         * lib/unistr/u32-cmp.c: New file.
26206
26207         * modules/unistr/u8-cpy: New file.
26208         * modules/unistr/u16-cpy: New file.
26209         * modules/unistr/u32-cpy: New file.
26210         * lib/unistr/u8-cpy.c: New file.
26211         * lib/unistr/u16-cpy.c: New file.
26212         * lib/unistr/u32-cpy.c: New file.
26213         * lib/unistr/u-cpy.h: New file.
26214
26215         * modules/unistr/u8-cpy-alloc: New file.
26216         * modules/unistr/u16-cpy-alloc: New file.
26217         * modules/unistr/u32-cpy-alloc: New file.
26218         * lib/unistr/u8-cpy-alloc.c: New file.
26219         * lib/unistr/u16-cpy-alloc.c: New file.
26220         * lib/unistr/u32-cpy-alloc.c: New file.
26221         * lib/unistr/u-cpy-alloc.h: New file.
26222
26223         * modules/unistr/u8-endswith: New file.
26224         * modules/unistr/u16-endswith: New file.
26225         * modules/unistr/u32-endswith: New file.
26226         * lib/unistr/u8-endswith.c: New file.
26227         * lib/unistr/u16-endswith.c: New file.
26228         * lib/unistr/u32-endswith.c: New file.
26229         * lib/unistr/u-endswith.h: New file.
26230
26231         * modules/unistr/u8-mblen: New file.
26232         * modules/unistr/u16-mblen: New file.
26233         * modules/unistr/u32-mblen: New file.
26234         * lib/unistr/u8-mblen.c: New file.
26235         * lib/unistr/u16-mblen.c: New file.
26236         * lib/unistr/u32-mblen.c: New file.
26237
26238         * modules/unistr/u8-mbtouc: New file.
26239         * modules/unistr/u16-mbtouc: New file.
26240         * modules/unistr/u32-mbtouc: New file.
26241         * lib/unistr/u8-mbtouc.c: New file.
26242         * lib/unistr/u16-mbtouc.c: New file.
26243         * lib/unistr/u32-mbtouc.c: New file.
26244
26245         * modules/unistr/u8-mbtouc-safe: New file.
26246         * modules/unistr/u16-mbtouc-safe: New file.
26247         * modules/unistr/u32-mbtouc-safe: New file.
26248         * lib/unistr/u8-mbtouc-safe.c: New file.
26249         * lib/unistr/u16-mbtouc-safe.c: New file.
26250         * lib/unistr/u32-mbtouc-safe.c: New file.
26251
26252         * modules/unistr/u8-move: New file.
26253         * modules/unistr/u16-move: New file.
26254         * modules/unistr/u32-move: New file.
26255         * lib/unistr/u8-move.c: New file.
26256         * lib/unistr/u16-move.c: New file.
26257         * lib/unistr/u32-move.c: New file.
26258         * lib/unistr/u-move.h: New file.
26259
26260         * modules/unistr/u8-next: New file.
26261         * modules/unistr/u16-next: New file.
26262         * modules/unistr/u32-next: New file.
26263         * lib/unistr/u8-next.c: New file.
26264         * lib/unistr/u16-next.c: New file.
26265         * lib/unistr/u32-next.c: New file.
26266
26267         * modules/unistr/u8-prev: New file.
26268         * modules/unistr/u16-prev: New file.
26269         * modules/unistr/u32-prev: New file.
26270         * lib/unistr/u8-prev.c: New file.
26271         * lib/unistr/u16-prev.c: New file.
26272         * lib/unistr/u32-prev.c: New file.
26273
26274         * modules/unistr/u8-set: New file.
26275         * modules/unistr/u16-set: New file.
26276         * modules/unistr/u32-set: New file.
26277         * lib/unistr/u8-set.c: New file.
26278         * lib/unistr/u16-set.c: New file.
26279         * lib/unistr/u32-set.c: New file.
26280         * lib/unistr/u-set.h: New file.
26281
26282         * modules/unistr/u8-startswith: New file.
26283         * modules/unistr/u16-startswith: New file.
26284         * modules/unistr/u32-startswith: New file.
26285         * lib/unistr/u8-startswith.c: New file.
26286         * lib/unistr/u16-startswith.c: New file.
26287         * lib/unistr/u32-startswith.c: New file.
26288         * lib/unistr/u-startswith.h: New file.
26289
26290         * modules/unistr/u8-stpcpy: New file.
26291         * modules/unistr/u16-stpcpy: New file.
26292         * modules/unistr/u32-stpcpy: New file.
26293         * lib/unistr/u8-stpcpy.c: New file.
26294         * lib/unistr/u16-stpcpy.c: New file.
26295         * lib/unistr/u32-stpcpy.c: New file.
26296         * lib/unistr/u-stpcpy.h: New file.
26297
26298         * modules/unistr/u8-stpncpy: New file.
26299         * modules/unistr/u16-stpncpy: New file.
26300         * modules/unistr/u32-stpncpy: New file.
26301         * lib/unistr/u8-stpncpy.c: New file.
26302         * lib/unistr/u16-stpncpy.c: New file.
26303         * lib/unistr/u32-stpncpy.c: New file.
26304         * lib/unistr/u-stpncpy.h: New file.
26305
26306         * modules/unistr/u8-strcat: New file.
26307         * modules/unistr/u16-strcat: New file.
26308         * modules/unistr/u32-strcat: New file.
26309         * lib/unistr/u8-strcat.c: New file.
26310         * lib/unistr/u16-strcat.c: New file.
26311         * lib/unistr/u32-strcat.c: New file.
26312         * lib/unistr/u-strcat.h: New file.
26313
26314         * modules/unistr/u8-strchr: New file.
26315         * modules/unistr/u16-strchr: New file.
26316         * modules/unistr/u32-strchr: New file.
26317         * lib/unistr/u8-strchr.c: New file.
26318         * lib/unistr/u16-strchr.c: New file.
26319         * lib/unistr/u32-strchr.c: New file.
26320
26321         * modules/unistr/u8-strcmp: New file.
26322         * modules/unistr/u16-strcmp: New file.
26323         * modules/unistr/u32-strcmp: New file.
26324         * lib/unistr/u8-strcmp.c: New file.
26325         * lib/unistr/u16-strcmp.c: New file.
26326         * lib/unistr/u32-strcmp.c: New file.
26327
26328         * modules/unistr/u8-strcpy: New file.
26329         * modules/unistr/u16-strcpy: New file.
26330         * modules/unistr/u32-strcpy: New file.
26331         * lib/unistr/u8-strcpy.c: New file.
26332         * lib/unistr/u16-strcpy.c: New file.
26333         * lib/unistr/u32-strcpy.c: New file.
26334         * lib/unistr/u-strcpy.h: New file.
26335
26336         * modules/unistr/u8-strcspn: New file.
26337         * modules/unistr/u16-strcspn: New file.
26338         * modules/unistr/u32-strcspn: New file.
26339         * lib/unistr/u8-strcspn.c: New file.
26340         * lib/unistr/u16-strcspn.c: New file.
26341         * lib/unistr/u32-strcspn.c: New file.
26342         * lib/unistr/u-strcspn.h: New file.
26343
26344         * modules/unistr/u8-strdup: New file.
26345         * modules/unistr/u16-strdup: New file.
26346         * modules/unistr/u32-strdup: New file.
26347         * lib/unistr/u8-strdup.c: New file.
26348         * lib/unistr/u16-strdup.c: New file.
26349         * lib/unistr/u32-strdup.c: New file.
26350         * lib/unistr/u-strdup.h: New file.
26351
26352         * modules/unistr/u8-strlen: New file.
26353         * modules/unistr/u16-strlen: New file.
26354         * modules/unistr/u32-strlen: New file.
26355         * lib/unistr/u8-strlen.c: New file.
26356         * lib/unistr/u16-strlen.c: New file.
26357         * lib/unistr/u32-strlen.c: New file.
26358         * lib/unistr/u-strlen.h: New file.
26359
26360         * modules/unistr/u8-strmblen: New file.
26361         * modules/unistr/u16-strmblen: New file.
26362         * modules/unistr/u32-strmblen: New file.
26363         * lib/unistr/u8-strmblen.c: New file.
26364         * lib/unistr/u16-strmblen.c: New file.
26365         * lib/unistr/u32-strmblen.c: New file.
26366
26367         * modules/unistr/u8-strmbtouc: New file.
26368         * modules/unistr/u16-strmbtouc: New file.
26369         * modules/unistr/u32-strmbtouc: New file.
26370         * lib/unistr/u8-strmbtouc.c: New file.
26371         * lib/unistr/u16-strmbtouc.c: New file.
26372         * lib/unistr/u32-strmbtouc.c: New file.
26373
26374         * modules/unistr/u8-strncat: New file.
26375         * modules/unistr/u16-strncat: New file.
26376         * modules/unistr/u32-strncat: New file.
26377         * lib/unistr/u8-strncat.c: New file.
26378         * lib/unistr/u16-strncat.c: New file.
26379         * lib/unistr/u32-strncat.c: New file.
26380         * lib/unistr/u-strncat.h: New file.
26381
26382         * modules/unistr/u8-strncmp: New file.
26383         * modules/unistr/u16-strncmp: New file.
26384         * modules/unistr/u32-strncmp: New file.
26385         * lib/unistr/u8-strncmp.c: New file.
26386         * lib/unistr/u16-strncmp.c: New file.
26387         * lib/unistr/u32-strncmp.c: New file.
26388
26389         * modules/unistr/u8-strncpy: New file.
26390         * modules/unistr/u16-strncpy: New file.
26391         * modules/unistr/u32-strncpy: New file.
26392         * lib/unistr/u8-strncpy.c: New file.
26393         * lib/unistr/u16-strncpy.c: New file.
26394         * lib/unistr/u32-strncpy.c: New file.
26395         * lib/unistr/u-strncpy.h: New file.
26396
26397         * modules/unistr/u8-strnlen: New file.
26398         * modules/unistr/u16-strnlen: New file.
26399         * modules/unistr/u32-strnlen: New file.
26400         * lib/unistr/u8-strnlen.c: New file.
26401         * lib/unistr/u16-strnlen.c: New file.
26402         * lib/unistr/u32-strnlen.c: New file.
26403         * lib/unistr/u-strnlen.h: New file.
26404
26405         * modules/unistr/u8-strpbrk: New file.
26406         * modules/unistr/u16-strpbrk: New file.
26407         * modules/unistr/u32-strpbrk: New file.
26408         * lib/unistr/u8-strpbrk.c: New file.
26409         * lib/unistr/u16-strpbrk.c: New file.
26410         * lib/unistr/u32-strpbrk.c: New file.
26411         * lib/unistr/u-strpbrk.h: New file.
26412
26413         * modules/unistr/u8-strrchr: New file.
26414         * modules/unistr/u16-strrchr: New file.
26415         * modules/unistr/u32-strrchr: New file.
26416         * lib/unistr/u8-strrchr.c: New file.
26417         * lib/unistr/u16-strrchr.c: New file.
26418         * lib/unistr/u32-strrchr.c: New file.
26419
26420         * modules/unistr/u8-strspn: New file.
26421         * modules/unistr/u16-strspn: New file.
26422         * modules/unistr/u32-strspn: New file.
26423         * lib/unistr/u8-strspn.c: New file.
26424         * lib/unistr/u16-strspn.c: New file.
26425         * lib/unistr/u32-strspn.c: New file.
26426         * lib/unistr/u-strspn.h: New file.
26427
26428         * modules/unistr/u8-strstr: New file.
26429         * modules/unistr/u16-strstr: New file.
26430         * modules/unistr/u32-strstr: New file.
26431         * lib/unistr/u8-strstr.c: New file.
26432         * lib/unistr/u16-strstr.c: New file.
26433         * lib/unistr/u32-strstr.c: New file.
26434         * lib/unistr/u-strstr.h: New file.
26435
26436         * modules/unistr/u8-strtok: New file.
26437         * modules/unistr/u16-strtok: New file.
26438         * modules/unistr/u32-strtok: New file.
26439         * lib/unistr/u8-strtok.c: New file.
26440         * lib/unistr/u16-strtok.c: New file.
26441         * lib/unistr/u32-strtok.c: New file.
26442         * lib/unistr/u-strtok.h: New file.
26443
26444         * modules/unistr/u8-uctomb: New file.
26445         * modules/unistr/u16-uctomb: New file.
26446         * modules/unistr/u32-uctomb: New file.
26447         * lib/unistr/u8-uctomb.c: New file.
26448         * lib/unistr/u16-uctomb.c: New file.
26449         * lib/unistr/u32-uctomb.c: New file.
26450
26451         * MODULES.html.sh (Unicode string functions): Add the new modules.
26452
26453 2007-01-08  Bruno Haible  <bruno@clisp.org>
26454
26455         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
26456         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
26457         subdirectories.
26458
26459 2007-01-08  Karl Berry  <karl@gnu.org>
26460
26461         * doc/error.texi: mention that main() fns must set program_name
26462         when progname is used.
26463
26464 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26465
26466         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
26467         WCTYPE_H is empty, for the benefit of builds from non-distclean
26468         directories.  Problem reported by Eric Blake in
26469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
26470
26471 2007-01-08  Bruno Haible  <bruno@clisp.org>
26472
26473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
26474         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
26475         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
26476         PROVIDE_CANONICALIZE_FILENAME_MODE.
26477         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
26478
26479 2007-01-08  Bruno Haible  <bruno@clisp.org>
26480
26481         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
26482         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
26483         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
26484         * lib/fts.c: Likewise.
26485         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
26486
26487 2006-12-25  Bruno Haible  <bruno@clisp.org>
26488
26489         * modules/utf8-ucs4-safe: New file.
26490         * lib/utf8-ucs4-safe.h: New file.
26491         * lib/unistr/utf8-ucs4-safe.c: New file.
26492
26493         * modules/utf16-ucs4-safe: New file.
26494         * lib/utf16-ucs4-safe.h: New file.
26495         * lib/unistr/utf16-ucs4-safe.c: New file.
26496
26497         * MODULES.html.sh (Unicode string functions): Add the new modules.
26498
26499 2007-01-08  Bruno Haible  <bruno@clisp.org>
26500
26501         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
26502         (Depends-on): Add unitypes.
26503         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26504         (u8_mbtouc_aux): Move out to separate file.
26505         (u8_mbtouc): Use ucs4_t, uint8_t types.
26506         * lib/unistr/utf8-ucs4.c: New file.
26507
26508         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
26509         (Depends-on): Add unitypes.
26510         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26511         (u16_mbtouc_aux): Move out to separate file.
26512         (u16_mbtouc): Use ucs4_t, uint16_t types.
26513         * lib/unistr/utf16-ucs4.c: New file.
26514
26515         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
26516         (Depends-on): Add unitypes.
26517         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
26518         (u8_uctomb_aux): Move out to separate file.
26519         (u8_uctomb): Use ucs4_t, uint8_t types.
26520         * lib/unistr/ucs4-utf8.c: New file.
26521
26522         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
26523         (Depends-on): Add unitypes.
26524         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
26525         (u16_uctomb_aux): Move out to separate file.
26526         (u16_uctomb): Use ucs4_t, uint16_t types.
26527         * lib/unistr/ucs4-utf16.c: New file.
26528
26529 2006-12-25  Bruno Haible  <bruno@clisp.org>
26530
26531         * modules/unitypes: New file.
26532         * lib/unitypes.h: New file.
26533         * MODULES.html.sh (func_all_modules): New section "Unicode string
26534         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
26535         this section. Add unitypes.
26536
26537 2007-01-08  Bruno Haible  <bruno@clisp.org>
26538
26539         Avoid variable names that conflict with those from libtool.
26540         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
26541         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
26542         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
26543         library_names_spec to acl_library_names_spec, hardcode_* to
26544         acl_hardcode_*.
26545         Reported by Ralf Wildenhues.
26546
26547 2007-01-08  Bruno Haible  <bruno@clisp.org>
26548
26549         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
26550         definition.
26551         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
26552         definition.
26553         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
26554         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
26555         definition.
26556         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
26557         definition.
26558         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
26559         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
26560         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
26561         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
26562         definition.
26563         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
26564         definition.
26565         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
26566         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
26567         GC_USE_<algorithm>.
26568         * lib/gc-libgcrypt.c: Likewise.
26569         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
26570         * modules/gc-arctwo (configure.ac): Likewise.
26571         * modules/gc-des (configure.ac): Likewise.
26572         * modules/gc-hmac-md5 (configure.ac): Likewise.
26573         * modules/gc-hmac-sha1 (configure.ac): Likewise.
26574         * modules/gc-md2 (configure.ac): Likewise.
26575         * modules/gc-md4 (configure.ac): Likewise.
26576         * modules/gc-md5 (configure.ac): Likewise.
26577         * modules/gc-random (configure.ac): Likewise.
26578         * modules/gc-rijndael (configure.ac): Likewise.
26579         * modules/gc-sha1 (configure.ac): Likewise.
26580
26581 2007-01-08  Bruno Haible  <bruno@clisp.org>
26582
26583         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
26584         macro definition.
26585         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
26586         definition.
26587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
26588         definition.
26589         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
26590         * modules/fcntl-safer (configure.ac): Likewise.
26591         * modules/fopen-safer (configure.ac): Likewise.
26592         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
26593         GNULIB_FWRITEERROR macro definition.
26594
26595 2007-01-08  Bruno Haible  <bruno@clisp.org>
26596
26597         * m4/gnulib-common.m4: New file.
26598         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
26599         (func_get_filelist): Add m4/gnulib-common.m4.
26600
26601 2007-01-08  Bruno Haible  <bruno@clisp.org>
26602
26603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
26604         command.
26605
26606 2007-01-08  Jim Meyering  <jim@meyering.net>
26607
26608         Use a more robust test for a "can't happen" condition.
26609         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
26610         narrowed the st_size value.  Presuming the "can't happen" condition
26611         is true, that narrowing could conceivably convert an invalid st_size
26612         value into a valid one.  Instead, use a change based on Matthew
26613         Woehlke's original patch.
26614
26615         Slight readability improvement: use an assert-like macro
26616         in place of literal "abort ()" uses.
26617         * lib/fts.c (fts_assert): Define.
26618         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
26619         Use this macro instead of a bare 'abort'.
26620
26621 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26622
26623         Don't worry about using IRIX 5.3's wctype.h broken definitions;
26624         simply work around them.
26625         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
26626         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
26627         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
26628         declaring.
26629         Don't bother to define as macros, since the standard doesn't require it.
26630         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
26631         longer worry about IRIX 5.3.
26632         (HAVE_WCTYPE_CTMP_BUG): Remove.
26633
26634 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26635
26636         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
26637         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
26638         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26639         Problems reported by Georg Schwarz for IRIX 5.3.
26640
26641         * gnulib-tool (autoconf_minversion): Take the maximum version number
26642         found, not the minimum.  Problem reported by James Youngman.
26643
26644 2007-01-03  Karl Berry  <karl@gnu.org>
26645
26646         * doc/error.texi: new file, explaining interaction with progname.
26647         * doc/gnulib.texi: include it.  Update copyright.
26648
26649 2007-01-03  Simon Josefsson  <simon@josefsson.org>
26650
26651         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
26652         AC_CANONICAL_HOST, to improve autobuild outputs.
26653
26654 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
26655             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26656
26657         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
26658         sockets, server sockets, and other file descriptors.  Count errors
26659         to compute the return value.  Reorder the code a bit to be easier
26660         to follow.  Don't set event bits that were not requested (except
26661         POLLERR and POLLHUP).
26662
26663 2007-01-01  Bruno Haible  <bruno@clisp.org>
26664
26665         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
26666
26667 2007-01-03  Jim Meyering  <jim@meyering.net>
26668
26669         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
26670
26671 2007-01-02  Bruno Haible  <bruno@clisp.org>
26672
26673         * modules/settime (Include): Require timespec.h.
26674         * modules/nanosleep (Include): Likewise.
26675
26676 2007-01-01  Bruno Haible  <bruno@clisp.org>
26677
26678         * gnulib-tool (func_emit_copyright_notice): Bump year.
26679         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
26680
26681 2007-01-01  Bruno Haible  <bruno@clisp.org>
26682
26683         Improve support for OpenBSD.
26684         * build-aux/config.rpath (libname_spec): Export.
26685         (library_names_spec): New variable. Export.
26686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
26687         library_names_spec from the config.rpath output. Locate shared library
26688         through the name pattern in library_names_spec.
26689
26690 2007-01-01  Eric Blake  <ebb9@byu.net>
26691
26692         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
26693
26694 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
26697         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
26698         assume the C locale, and avoid an "eval" that could cause trouble.
26699         Problem with SORT reported by Bob Proulx.
26700
26701         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
26702         Define.  Trivial patch from Henning Nielsen Lund, originally
26703         sent to bug-grep@gnu.org today.
26704
26705 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
26708         struct stat.  Problem reported by Henning Nielsen Lund.
26709         * lib/acl.c: Include acl.h first, to check interface.  Don't
26710         bother to include sys/types.h and sys/stat.h again.
26711
26712 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26713
26714         Import the following change from libc; problem reported by
26715         Sven Verdoolaege.
26716
26717         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
26718
26719         [BZ #1373]
26720         * lib/argp.h: Remove __NTH for __argp_usage inline function.
26721
26722 2006-12-28  Jim Meyering  <jim@meyering.net>
26723
26724         * build-aux/announce-gen: Do not assume that the package
26725         builds any of tar.gz, tar.bz2, and .xdelta files.
26726         Suggestion from Simon Josefsson.
26727
26728 2006-12-28  Simon Josefsson  <simon@josefsson.org>
26729
26730         * modules/announce-gen: New file.
26731
26732 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26733
26734         * lib/mbchar.h: Just include <wctype.h>; the wctype module
26735         handles its gotchas now.
26736         * lib/mbswidth.c: Likewise.
26737         * lib/wcwidth.h: Likewise.
26738         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26739         and iswcntrl; the wctype module does this stuff now.
26740         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26742         * modules/mbchar (Depends-on): Add wctype.
26743         * modules/mbswidth (Depends-on): Likewise.
26744         * modules/wcwidth (Depends-on): Likewise.
26745
26746 2006-12-27  Eric Blake  <ebb9@byu.net>
26747
26748         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26749         module uses more than what <wctype.h> is required to provide.
26750
26751 2006-12-26  Eric Blake  <ebb9@byu.net>
26752
26753         * gnulib-tool (sed_extract_prog): Avoid space-tab.
26754
26755 2006-12-26  Eric Blake  <ebb9@byu.net>
26756
26757         * modules/absolute-header: New module.
26758         * modules/fcntl (Depends-on): Depend on it.
26759         * modules/inttypes (Depends-on): Likewise.
26760         * modules/stdint (Depends-on): Likewise.
26761         * modules/sys_stat (Depends-on): Likewise.
26762         * modules/wctype (Depends-on): Likewise.
26763         * MODULES.html.sh (Support for building libraries and
26764         executables): Document it.
26765
26766 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26767
26768         * gnulib-tool (SED): Remove, undoing previous change.
26769         The problem was that it broke coreutils on Solaris, because
26770         "sed --posix" leaked into a makefile.
26771         (sed): New alias, if 'alias' and GNU sed.
26772
26773 2006-12-24  Jim Meyering  <jim@meyering.net>
26774
26775         Work around an fchownat bug in glibc-2.4:
26776         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26777         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26778         in spite of the -P option.
26779         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26780         New macros.
26781         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26782         * modules/openat (Files): Add lib/fchownat.c.
26783         * lib/openat.c (fchownat): Don't define here.  Move to...
26784         * lib/fchownat.c: ...this new file.
26785
26786 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26787
26788         Fix bug reported by Bruno Haible in
26789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26790         where quotearg.c didn't compile on Mac OS X 10.2 because it
26791         lacks <wchar.h> and wint_t.
26792         * lib/wctype_.h (__wctype_wint_t): New type.
26793         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26794         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26795         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26796         Arg is now of type __wctype_wint_t, not wint_t.
26797         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26798         substitute HAVE_WINT_T.
26799         * modules/wctype (Files): Add m4/wint_t.m4.
26800         (wctype.h): Substitute HAVE_WINT_T.
26801
26802 2006-12-23  Bruno Haible  <bruno@clisp.org>
26803
26804         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26805
26806 2006-12-23  Bruno Haible  <bruno@clisp.org>
26807
26808         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26809         S_ISLNK.
26810         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26811         mingw.
26812
26813 2006-12-22  Bruno Haible  <bruno@clisp.org>
26814
26815         * lib/copy-file.c: Include acl.h.
26816         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26817         Close the file descriptors only after being done with copy_acl.
26818         * modules/copy-file (Depends-on): Add acl.
26819
26820 2006-12-22  Bruno Haible  <bruno@clisp.org>
26821
26822         * gnulib-tool (SED): New variable.
26823         Use $SED instead of sed everywhere.
26824
26825 2006-12-22  Bruno Haible  <bruno@clisp.org>
26826
26827         * modules/no-c++: New file.
26828         * m4/no-c++.m4: New file.
26829         * MODULES.html.sh (Support for building libraries and executables):
26830         Add no-c++.
26831
26832 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26833
26834         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26835         Include <limits.h>, and use its INT_MAX to rewrite the
26836         j loop so that it does not overflow 'int'.  Problem reported by
26837         Ralf Wildenhues in
26838         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26839         Play it safe by shifting left by 1 rather than multiplying by 2,
26840         as GCC is less likely to optimize this away when the value
26841         is signed (when it assumes overflow leads to undefined behavior).
26842         Also, don't assume time_t uses two's complement.
26843
26844 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26845
26846         * MODULES.html.sh: New module wctype.
26847         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26848         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26849         <wctype.h>, since the new wctype module should fix this.
26850         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26851         the wctype module should arrange for it.
26852         * lib/regex_internal.h: Likewise.
26853         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26854         since the wctype module should handle this now.
26855         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26856         * modules/fnmatch (Depends-on): Add wctype.
26857         * modules/quotearg (Depends-on): Likewise.
26858         * modules/regex (Depends-on): Likewise.
26859
26860 2006-12-19  Bruno Haible  <bruno@clisp.org>
26861
26862         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26863         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26864
26865 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26866
26867         * modules/savewd (Depends-on): Fix dependency on fcntl.
26868
26869 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26870
26871         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26872         conforms to C99, rather than relying on the user's environment
26873         setting of STDINT_H.
26874
26875 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26876         and Eric Blake  <ebb9@byu.net>
26877
26878         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26879         This is more consistent with the other defines here.
26880         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26881         Port to z/OS.  Problem reported by Paul Gilmartin.
26882         Change local vars to use gl_ prefix rather than ac_.
26883         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26884         with other defines.
26885         * modules/double-slash-root: New module.
26886         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26887         (Depends-on): Add double-slash-root.
26888         * MODULES.html.sh (File system functions): Mention new module.
26889
26890 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26893         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26894         This is for the benefit of gzip, which doesn't do i18n.
26895
26896 2006-12-12  Jim Meyering  <jim@meyering.net>
26897
26898         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26899         Reported by Andreas Schwab <schwab@suse.de>.
26900
26901 2006-12-12  Bruno Haible  <bruno@clisp.org>
26902
26903         Merge these changes.
26904         2006-09-05  Bruno Haible  <bruno@clisp.org>
26905         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26906         iconv_alloc succeeded.
26907         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26908         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26909         test for " && dest " at the end - dest is always != NULL there. Call
26910         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26911         with 2xNULL arguments, also to flush the state storage. Handle the
26912         IRIX iconv behaviour. Realloc the final result, to throw away unused
26913         memory.
26914
26915 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26916
26917         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26918         and fchmodat unconditionally, since glibc 2.4 has them.
26919         Problem reported by Arkadiusz Miskiewicz.
26920
26921 2006-12-10  Bruno Haible  <bruno@clisp.org>
26922
26923         * gnulib-tool (func_import): Show the include files only for those
26924         modules that are copied and specified.
26925         Reported by Karl Berry.
26926
26927 2006-12-08  Jim Meyering  <jim@meyering.net>
26928
26929         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26930         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26931
26932         * build-aux/announce-gen: Add two new options, both optional:
26933         --bootstrap-tools=TOOL_LIST
26934               a comma-separated list of tools, e.g.,
26935               autoconf,automake,bison,gnulib
26936         --gnulib-snapshot-date=DATE
26937               if gnulib is in the bootstrap tool list,
26938               then report this as the snapshot date.
26939               If not specified, use the current date/time.
26940               If you specify a date here, be sure it's UTC.
26941
26942 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26943
26944         * tests/test-argp-2.sh: Fix test to match actual output.
26945         (func_compare): Fix sed script to be portable.
26946
26947 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26948
26949         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26950         workaround for this case.  It is not autoconfigured now; offhand
26951         it's hard to see how to autoconfigure it.
26952
26953 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26954
26955         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26956         a directory that is about to be chowned.  Such a directory's
26957         initial file permissions should permit the owner only and this
26958         should not be changed until after the chown, since the group and
26959         other bits would be incorrect if they granted permission before
26960         the chown.
26961
26962         Fix porting problem for iswctype reported by Georg Schwarz in:
26963         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26964         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26965         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26966         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26967         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26968
26969 2006-12-03  Jim Meyering  <jim@meyering.net>
26970
26971         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26972         p->fts_statp may not yet be defined.
26973         (fts_read): Instead, set it in the caller, once p->fts_statp is
26974         sure to be defined, and corresponds to a top-level directory.
26975         This bug made du -x fail.  Here's the coreutils test case:
26976         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26977         Reported by Mike Frysinger.
26978
26979 2006-12-01  Jim Meyering  <jim@meyering.net>
26980
26981         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26982         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26983         Reported by Simon Josefsson.
26984
26985 2006-11-30  Jim Meyering  <jim@meyering.net>
26986
26987         * m4/warning.m4: Use the all-permissive copyright notice
26988         recommended by RMS (rather than LGPL).
26989         * m4/vararrays.m4: Likewise.
26990         * m4/flexmember.m4: Likewise.
26991
26992 2006-11-29  Bruno Haible  <bruno@clisp.org>
26993
26994         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26995         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26996         using +=.
26997         Reported by Simon Josefsson <simon@josefsson.org>.
26998
26999 2006-11-28  James Youngman <jay@gnu.org>
27000
27001         * README: Advise users that they might find the bug-gnulib@gnu.org
27002         and autotools-announce@gnu.org mailing lists useful.
27003
27004 2006-11-28  Bruno Haible  <bruno@clisp.org>
27005
27006         * m4/ptrdiff_max.m4: Remove file.
27007
27008 2006-11-21  Bruno Haible  <bruno@clisp.org>
27009
27010         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
27011         _AC_COMPUTE_INT.
27012         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27013         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
27014         _AC_COMPUTE_INT.
27015         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27016         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
27017         _AC_COMPUTE_INT.
27018         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27019
27020 2006-11-28  Jim Meyering  <jim@meyering.net>
27021
27022         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
27023         warning from "gcc -Wshadow" about shadowing the builtin.
27024
27025 2006-11-27  Bruno Haible  <bruno@clisp.org>
27026
27027         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
27028         _AC_COMPUTE_INT.
27029         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27030
27031 2006-11-27  Bruno Haible  <bruno@clisp.org>
27032             Paul Eggert  <eggert@cs.ucla.edu>
27033
27034         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
27035
27036 2006-11-26  Bruno Haible  <bruno@clisp.org>
27037
27038         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
27039         noinst_LTLIBRARIES.
27040
27041 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
27042             Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
27045         if compiling with "gcc -ansi".
27046
27047 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27048
27049         Fix some incompatibilities with gcc -ansi -pedantic.
27050         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
27051         if compiling pedantically with GCC, unless it's C99 or later.
27052         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
27053         it mishandles gcc -ansi -pedantic as well.
27054         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
27055         if gcc -pedantic.
27056         * lib/regexec.c (check_node_accept_bytes): Don't use auto
27057         initializers for struct if -pedantic, unless it's C99 or later.
27058
27059 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
27060
27061         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
27062         Don't close an fd more than once. Identical atimes indicate
27063         success, not failure.
27064
27065 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
27066
27067         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
27068
27069 2006-11-23  Jim Meyering  <jim@meyering.net>
27070
27071         * build-aux/announce-gen: New file.  From coreutils.
27072
27073 2006-11-22  Jim Meyering  <jim@meyering.net>
27074
27075         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
27076         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
27077         (fts_read): Use a temporary to narrow the overused st_size member
27078         before using it in a switch statement.  Reported by Matthew Woehlke.
27079
27080         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
27081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27082
27083 2006-11-20  Bruno Haible  <bruno@clisp.org>
27084
27085         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
27086         changequote instead of pairs of brackets.
27087         Reported by Andreas Schwab <schwab@suse.de>.
27088
27089 2006-11-21  Jim Meyering  <jim@meyering.net>
27090
27091         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
27092         so as to remain compatible with older compilers.
27093         Patch from Michael Deutschmann.
27094
27095 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27096
27097         * MODULES.html.sh (File system functions): Add openat.
27098
27099         * lib/openat.h (rpl_fstatat): New macro, if
27100         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
27101         (fstatat): Define to rpl_fstatat under the same conditions,
27102         unless COMPILING_FSTATAT.
27103         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
27104         seems to have the bug.
27105         * lib/fstatat.c: New file.
27106         * modules/openat (Files): Add it.
27107
27108 2006-11-20  Bruno Haible  <bruno@clisp.org>
27109
27110         * Makefile: New file.
27111
27112 2006-11-20  Jim Meyering  <jim@meyering.net>
27113
27114         The beginnings of syntax-related checks for gnulib.
27115         * lib/Makefile: New file.
27116         * lib/t-idcache: New script.  Ensure that the two halves of
27117         idcache.c stay in sync.
27118
27119         * lib/idcache.c: Adjust comments in user- and group- portions to
27120         be more accurate, and to be consistent with one another.
27121
27122 2006-11-20  Jim Meyering  <jim@meyering.net>
27123
27124         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
27125         continue using the flexible array member (thus, this module performs
27126         half as many malloc calls), with the addition that...
27127         (getgroup, getuser): Consistently record a non-match via an empty
27128         "name" string, and map an empty string match to a NULL return value.
27129         * modules/idcache (Depends-on): Re-add flexmember.
27130
27131         * lib/idcache.c (getuser): Remove all uses of the register keyword.
27132         (getuidbyname, getgroup, getgidbyname): Likewise.
27133
27134         Use cleaner syntax: NULL rather than 0.
27135         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
27136
27137 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27138
27139         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
27140         It mishandled the case where the group was missing.
27141         Problem reported by Greg Schafer.
27142         * modules/idcache: Likewise.
27143
27144 2006-11-18  Jim Meyering  <jim@meyering.net>
27145
27146         * check-module (%exempt_header): Add exception for some
27147         conditionally-included headers.
27148
27149         * modules/i-ring (Depends-on): Add verify.
27150         (License): Change to LGPL.
27151
27152 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27153
27154         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
27155         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
27156         and inttostr.h.  Use snprintf rather than uinttostr, so that
27157         LGPLed code doesn't depend on GPLed.
27158
27159 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27160
27161         * modules/inline (License): Change from GPL to LGPL.
27162
27163 2006-11-17  Jim Meyering  <jim@meyering.net>
27164
27165         * modules/d-type (License): Switch to LGPL.
27166
27167 2006-11-15  Bruno Haible  <bruno@clisp.org>
27168
27169         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
27170
27171 2006-11-15  Eric Blake  <ebb9@byu.net>
27172
27173         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
27174         the module dependency.
27175
27176 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27177             Bruno Haible  <bruno@clisp.org>
27178
27179         * gnulib-tool (func_create_testdir): Add license consistency check.
27180
27181 2006-11-15  Eric Blake  <ebb9@byu.net>
27182
27183         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
27184         random "(cached)" in configure output.
27185
27186 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27187
27188         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
27189         test for conforming inttypes.h is both announced and cached.
27190
27191         * MODULES.html.sh (seen_modules, seen_files): New variables.
27192         (func_module): Rewrite to use a few less gnulib-tool and sed
27193         invocations.  Avoid a couple of quadratic algorithms for ...
27194         (missed_modules, missed_files): ... these, with ...
27195         (func_append, func_tmpdir): ... these new functions, from
27196         gnulib-tool.  Analogously, install traps for cleanup.
27197
27198         * tests/test-gc.c (main): Remove unused variables.
27199         * tests/test-read-file.c: Include stdlib.h, for 'free'.
27200
27201 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27202
27203         * modules/inttostr (License): Change to LGPL.
27204
27205 2006-11-14  Eric Blake  <ebb9@byu.net>
27206
27207         * modules/tempname (License): Change to LGPL.
27208
27209 2006-11-14  Eric Blake  <ebb9@byu.net>
27210
27211         * doc/functions.texi (Function Portability): *printf functions on
27212         Cygwin now understand all POSIX size specifiers.
27213
27214 2006-11-14  Bruno Haible  <bruno@clisp.org>
27215
27216         * modules/c-ctype (License): Change to LGPL.
27217
27218 2006-11-12  Bruno Haible  <bruno@clisp.org>
27219
27220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27221         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
27222         for GNOME libraries, for which the include files are installed in
27223         subdirectories of $prefix/include.
27224
27225 2006-11-12  Bruno Haible  <bruno@clisp.org>
27226
27227         * m4/lib-link.m4: Require at least autoconf-2.54.
27228         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
27229         name to underscores for the --with option.
27230
27231 2006-11-13  Bruno Haible  <bruno@clisp.org>
27232
27233         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
27234         the tests directory.
27235         Reported by Ralf Wildenhues.
27236
27237 2006-11-13  Bruno Haible  <bruno@clisp.org>
27238
27239         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
27240         (func_emit_initmacro_end): Undo the override here.
27241         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
27242         Works around the famous automake error in coreutils.
27243
27244 2006-11-13  Eric Blake  <ebb9@byu.net>
27245
27246         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
27247         element, not its node.
27248
27249 2006-11-12  Bruno Haible  <bruno@clisp.org>
27250
27251         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
27252         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
27253
27254 2006-11-12  Bruno Haible  <bruno@clisp.org>
27255
27256         * gnulib-tool: New option --local-symlink.
27257         (func_usage): Document it.
27258         (lsymbolic): New variable.
27259         (func_import, func_create_testdir): If --symlink was not specified,
27260         test whether --local-symlink was specified and the file comes from
27261         the local_gnulib_dir.
27262
27263 2006-11-12  Bruno Haible  <bruno@clisp.org>
27264
27265         * gnulib-tool (func_ln): New function.
27266         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
27267
27268 2006-11-12  Bruno Haible  <bruno@clisp.org>
27269
27270         Finish support for source files in subdirectories.
27271         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
27272         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
27273         AUTOMAKE_OPTIONS.
27274         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
27275
27276 2006-11-12  Bruno Haible  <bruno@clisp.org>
27277
27278         * gnulib-tool (func_get_automake_snippet): Synthesize also an
27279         EXTRA_lib_SOURCES augmentation.
27280         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
27281
27282 2006-11-12  Jim Meyering  <jim@meyering.net>
27283
27284         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
27285         file descriptors.  This also averts a failure on systems with
27286         native openat support when a traversed directory lacks "x" access.
27287         * lib/fts_.h: Include "i-ring.h"
27288         (struct FTS) [fts_fd_ring]: New member.
27289         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
27290         (FCHDIR): Add parentheses.
27291         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
27292         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
27293         When descending, rather than simply closing the previous
27294         fts_cwd_fd value, push that file descriptor onto the ring.
27295         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
27296         (fts_open): Initialize the new fd_ring member.
27297         (fts_close): Clear the ring.
27298         (fts_safe_changedir): When possible, use our new fd_ring to skip
27299         the diropen and fstat and dev/ino comparison that would normally
27300         accompany a virtual `chdir ("..")'.
27301
27302         * modules/fts (Depends-on): Add i-ring.
27303         * modules/i-ring: New module.
27304         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
27305         * m4/i-ring.m4: New file.
27306
27307 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27308
27309         * gnulib-tool (func_create_testdir): Fix replacement of
27310         `build-aux' in configure.ac.  Run autotools in gltests
27311         subdirectory.
27312         (func_create_testdir, func_create_megatestdir, test): There is
27313         no need for '--force' in most autotool invocations in a new
27314         tree.  Actually fail the whole test if any of the tools, or the
27315         configure or make stages fail.
27316
27317         Sync from Automake.
27318         * build-aux/gnupload: Revert last change.  Add pointer to upload
27319         instructions of the GNU Maintenance Instructions.
27320         Suggestion by Karl Berry.
27321
27322 2006-11-10  Jim Meyering  <jim@meyering.net>
27323
27324         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
27325
27326 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27327
27328         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
27329         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
27330         (bind_textdomain_codeset) [! ENABLE_NLS]:
27331         Evaluate all the arguments.  That way, callers get compatible behavior
27332         if the arguments have side effects.  Also, it avoids some GCC
27333         diagnostics in some cases; Joel E. Denny reported problems when Bison
27334         was configured with --enable-gcc-warnigs.
27335
27336 2006-11-10  Jim Meyering  <jim@meyering.net>
27337
27338         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
27339         relevant options in CFLAGS (like -O, -fno-inline) are taken into
27340         account.
27341
27342 2006-11-10  Jim Meyering  <jim@meyering.net>
27343
27344         * modules/inline: New file/module.
27345         * modules/xalloc (Files): Remove m4/inline.m4.
27346         (Depends-on): Add inline, instead.
27347         * modules/oset: Likewise.
27348         * modules/list: Likewise.
27349
27350 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27351
27352         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
27353         Problem reported by Matthew Woehlke.
27354
27355 2006-11-09  Bruno Haible  <bruno@clisp.org>
27356
27357         * lib/tempname.c (gen_tempname): Remove variant that invokes
27358         __gen_tempname.
27359         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
27360         __gen_tempname.
27361
27362 2006-11-08  Bruno Haible  <bruno@clisp.org>
27363
27364         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
27365         to 'yes' instead of 'cross-compiling'.
27366
27367 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
27368
27369         * lib/quotearg.h (quotearg_free): New decl.
27370         * lib/quotearg.c (quotearg_free): New function.
27371         (slot0, nslots, slotvec0, slotvec):
27372         Now file-scope so that quotearg_free can get at them.
27373
27374 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27375
27376         Sync from Automake.
27377         * build-aux/gnupload: Add missing 'gnu' to example URL.
27378         Report by Karl Berry.
27379
27380 2006-11-08  Bruno Haible  <bruno@clisp.org>
27381
27382         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
27383         Suggested by Paul Eggert.
27384
27385 2006-11-08  Jim Meyering  <jim@meyering.net>
27386
27387         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
27388         It's already included if !_LIBC.
27389         (fts_safe_changedir): Add a comment.
27390
27391 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27392
27393         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
27394         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
27395         Matthew Woehlke.
27396
27397         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
27398         definitions up, to avoid colliding with change below.
27399         (static_inline) [HAVE_INLINE]: New macro.
27400         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
27401         Provide extern decls when !HAVE_INLINE.  Do not define unless
27402         static_inline is defined, either by us or by xmalloc.c.  Use
27403         static_inline rather than static inline.
27404         (XCALLOC): Optimize sizeof(T) = 1 case.
27405         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
27406
27407 2006-11-07  Bruno Haible  <bruno@clisp.org>
27408
27409         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
27410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
27411         AC_C_INLINE.
27412         * modules/xalloc (Files): Add m4/inline.m4.
27413
27414 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27415
27416         * README: Fix typo.
27417         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
27418         (Miscellanous Notes): ...from this.
27419
27420 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27421
27422         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27423         Mention that offsetof should be used instead of sizeof.
27424         From Bruno Haible.
27425
27426 2006-11-07  Bruno Haible  <bruno@clisp.org>
27427
27428         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
27429
27430 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27431
27432         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27433         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
27434         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27435         (gl_tree_add_before, gl_tree_add_after):
27436         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
27437         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
27438         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27439         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
27440         (gl_linked_add_after, gl_linked_add_at): Likewise.
27441         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
27442         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27443         (gl_tree_add_before, gl_tree_add_after): Likewise.
27444         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
27445         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
27446         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27447
27448 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449
27450         * lib/gl_oset.h: Use C comment style, not C++ comment style.
27451
27452 2006-11-06  Bruno Haible  <bruno@clisp.org>
27453
27454         * m4/inline.m4: New file.
27455         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
27456         * modules/list (Files): Add m4/inline.m4.
27457         * modules/oset (Files): Likewise.
27458
27459 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27460
27461         * lib/idcache.c: Include <stddef.h>, for offsetof.
27462         (struct userid.name): Change from char * to a flexible array member.
27463         All uses changed.
27464         * modules/idcache (Depends-on): Add flexmember.
27465
27466         * MODULES.html.sh (Core language properties): New module flexmember.
27467         * modules/flexmember, m4/flexmember.m4: New files.
27468
27469         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
27470         inline functions that are identical with the old xnmalloc_inline,
27471         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
27472         that we can avoid some unnecessary integer multiplications and
27473         divisions in the common case where the element size is known at
27474         compile time.
27475         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
27476         needed.
27477         (xnboundedmalloc): Remove.
27478         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
27479         arguments, for consistency with rest of this header.
27480         (xcharalloc): Rewrite using XNMALLOC.
27481         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
27482         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
27483         versions have been moved to lib/xalloc.h and renamed to be the
27484         non-*_inline versions.
27485         (xmalloc, xrealloc): Implement without reference to the xnmalloc
27486         and xnrealloc functions, since those functions are now inline and
27487         now call us.
27488         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
27489         renaming described above.
27490         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
27491         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
27492         captures the dependency in AC_C_INLINE.
27493
27494         New module canonicalize-lgpl, proposed by Charles Wilson in
27495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
27496         with a few small changes afterwards.
27497         * MODULES.html.sh (File system functions): New module
27498         canonicalize-lgpl.
27499         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
27500         and canonicalize_file_name.
27501         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
27502         * modules/canonicalize-lgpl: New files.
27503
27504 2006-11-05  Bruno Haible  <bruno@clisp.org>
27505
27506         * gnulib-tool (func_import, func_create_testdir): Create directories
27507         also for files in subdirectories of lib/.
27508
27509 2006-11-05  Bruno Haible  <bruno@clisp.org>
27510
27511         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
27512         ANSI C compliant.
27513
27514 2006-11-03  Bruno Haible  <bruno@clisp.org>
27515
27516         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
27518         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
27519         (xnboundedmalloc): New inline function.
27520         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
27521         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
27522         xmalloc.
27523         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
27524         xmalloc.
27525         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
27526         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
27527         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
27528         xmalloc.
27529         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27530         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
27531         xmalloc.
27532         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
27533         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27534         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
27535         xmalloc.
27536         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27537         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
27538         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27539         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
27540         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
27541         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
27542         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
27543
27544 2006-11-03  Bruno Haible  <bruno@clisp.org>
27545
27546         * lib/c-ctype.h [C++]: Define functions without name mangling.
27547         * lib/fwriteerror.h [C++]: Likewise.
27548         * lib/gcd.h [C++]: Likewise.
27549         * lib/linebreak.h [C++]: Likewise.
27550
27551 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27552
27553         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
27554         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
27555         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
27556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
27557         Check for functions and headers just once.
27558         Check for declaration of canonicalize_file_name.
27559         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
27560
27561 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27562
27563         * gnulib-tool (func_import): Fix typo in actioncmd.
27564
27565 2006-11-02  Bruno Haible  <bruno@clisp.org>
27566
27567         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
27568         newline sequence in the Makefile.am snippet as a space, like "make"
27569         does.
27570         Reported by Roger Persson <perrog@gmail.com>.
27571
27572 2006-11-01  Bruno Haible  <bruno@clisp.org>
27573
27574         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
27575         already declared in <string.h>.
27576         * lib/strcase.h (strncasecmp): Don't declare it if yes.
27577
27578 2006-11-01  Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
27581         * lib/strcase.h: Include <string.h>.
27582         (strcasecmp): Define to rpl_strcasecmp here.
27583
27584 2006-11-01  Bruno Haible  <bruno@clisp.org>
27585
27586         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
27587
27588 2006-11-01  Eric Blake  <ebb9@byu.net>
27589
27590         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
27591
27592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
27593
27594 2006-10-29  Bruno Haible  <bruno@clisp.org>
27595
27596         Make it compile in C++ mode.
27597         * lib/full-write.c (full_rw): Add a cast.
27598
27599 2006-11-01  Bruno Haible  <bruno@clisp.org>
27600
27601         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
27602         be POSIX compliant.
27603         Reported by Roger Persson <perrog@gmail.com>.
27604
27605 2006-11-01  Eric Blake  <ebb9@byu.net>
27606
27607         * lib/getopt_.h: Fix comments.
27608
27609 2006-10-31  Eric Blake  <ebb9@byu.net>
27610
27611         * modules/tmpdir (Depends-on): Add sys_stat.
27612         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
27613         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27614         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
27615         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
27616         tempname.
27617
27618 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27619
27620         Avoid some C++ diagnostics reported by Bruno Haible.
27621         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
27622         xmalloc.
27623         (quotearg_alloc): Use xcharalloc rather than xmalloc.
27624         (struct slotvec): Move to top level.
27625         (quotearg_n_options): Rewrite to avoid xmalloc.
27626         * lib/xalloc.h (xcharalloc): New function.
27627         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
27628         [defined __cplusplus]: Add function template that provides result
27629         type propagation.  This part of the change is from Bruno Haible.
27630
27631 2006-10-29  Bruno Haible  <bruno@clisp.org>
27632
27633         Make it compile in C++ mode.
27634         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
27635         * lib/strnlen1.c (strnlen1): Cast memchr result.
27636         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
27637         * lib/clean-temp.c (string_equals, string_hash): Add casts.
27638         (create_temp_dir): Rename local variable 'template'.
27639         (compile_csharp_using_sscli): Add cast.
27640         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
27641         * lib/findprog.c (find_in_path): Likewise.
27642         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
27643         * lib/wait-process.c (register_slave_subprocess): Likewise.
27644
27645 2006-10-22  Bruno Haible  <bruno@clisp.org>
27646
27647         * modules/tsearch: New file.
27648         * lib/tsearch.h: New file.
27649         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
27650         * m4/tsearch.m4: New file.
27651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
27652
27653 2006-10-29  Eric Blake  <ebb9@byu.net>
27654
27655         * lib/arcfour.c: Assume config.h.
27656         * lib/arctwo.c: Likewise.
27657         * lib/base64.c: Likewise.
27658         * lib/check-version.c: Likewise.
27659         * lib/crc.c: Likewise.
27660         * lib/des.c: Likewise.
27661         * lib/gc-gnulib.c: Likewise.
27662         * lib/gc-libgcrypt.c: Likewise.
27663         * lib/gc-pbkdf2-sha1.c: Likewise.
27664         * lib/getaddrinfo.c: Likewise.
27665         * lib/getdelim.c: Likewise.
27666         * lib/getline.c: Likewise.
27667         * lib/hmac-md5.c: Likewise.
27668         * lib/hmac-sha1.c: Likewise.
27669         * lib/iconvme.c: Likewise.
27670         * lib/md2.c: Likewise.
27671         * lib/md4.c: Likewise.
27672         * lib/memxor.c: Likewise.
27673         * lib/read-file.c: Likewise.
27674         * lib/readline.c: Likewise.
27675         * lib/rijndael-alg-fst.c: Likewise.
27676         * lib/rijndael-api-fst.c: Likewise.
27677         * lib/xgetdomainname.c: Likewise.
27678
27679 2006-10-28  Eric Blake  <ebb9@byu.net>
27680
27681         * lib/xstrndup.c: Assume config.h.
27682
27683 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27684
27685         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
27686         stat-macros.h is now for our own macros, whereas stat_h is for
27687         macros in the <sys/stat.h> name space.
27688         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
27689         (STAT_MACROS_H): Remove.
27690         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
27691         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
27692         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
27693         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
27694         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
27695         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
27696         Move these macros to ...
27697         * lib/stat_.h: here.  Don't include stat-macros.h.
27698         * lib/canonicalize.c: Don't include stat-macros.h.
27699         * lib/chown.c: Likewise.
27700         * lib/euidaccess.c: Likewise.
27701         * lib/file-type.c: Likewise.
27702         * lib/filemode.c: Likewise.
27703         * lib/glob.c: Likewise.
27704         * lib/isapipe.c: Likewise.
27705         * lib/lchown.c: Likewise.
27706         * lib/lstat.c: Likewise.
27707         * lib/mkdir-p.c: Likewise.
27708         * lib/rmdir.c: Likewise.
27709         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
27710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
27711         unless mkdir isn't declared, to speed up 'configure'.
27712         Always create sys/stat.h, since it's unlikely any real sys/stat.h
27713         would define all the S_* symbols.
27714         * modules/canonicalize (Depends-on):
27715         Depend on sys_stat, not stat-macros.
27716         * modules/chown: Likewise.
27717         * modules/euidaccess: Likewise.
27718         * modules/filemode: Likewise.
27719         * modules/file-type: Likewise.
27720         * modules/glob: Likewise.
27721         * modules/isapipe: Likewise.
27722         * modules/lchown: Likewise.
27723         * modules/lstat: Likewise.
27724         * modules/mkancesdirs: Likewise.
27725         * modules/rmdir: Likewise.
27726         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27727         * modules/modechange: Likewise.
27728         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27729         (configure.ac): Remove gl_STAT_MACROS.
27730         * modules/sys_stat (Depends-on): Remove stat-macros.
27731
27732 2006-10-27  Bruno Haible  <bruno@clisp.org>
27733
27734         * m4/signed.m4: Remove file.
27735         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27736         invocation.
27737         * modules/vasnprintf (Files): Remove m4/signed.m4.
27738
27739 2006-10-27  Bruno Haible  <bruno@clisp.org>
27740
27741         Update to GNU gettext 0.16.
27742         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27743         m4/inttypes-h.m4, m4/signed.m4.
27744         * m4/gettext.m4: Update to GNU gettext 0.16.
27745         * m4/intl.m4: New file, from GNU gettext.
27746         * m4/intldir.m4: New file, from GNU gettext.
27747         * config/srclist.txt: Update
27748
27749 2006-10-27  Eric Blake  <ebb9@byu.net>
27750
27751         * MODULES.html.sh: Document tempname.
27752         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27753         dependencies.
27754         (Files): Move lib/tempname.c...
27755         * modules/tempname: ...to this new module.
27756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27757         (gl_PREREQ_TEMPNAME): Move...
27758         * m4/tempname.m4: ...to this new file.
27759         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27760         * modules/sys_stat (Depends-on): Add stat-macros.
27761         * lib/stat_.h (includes): Pick up stat macros.
27762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27763         if stat macros are broken.
27764         * lib/tempname.c (includes): No need to include "stat-macros.h".
27765         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27766         (direxists, __path_search) [!_LIBC]: Don't compile these in
27767         gnulib; the tmpdir module covers that.
27768         * lib/tempname.h: New file.
27769
27770 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         * COPYING: Explain how gnulib-tool converts licence headers.
27773         Almost all wording by Eric Blake.
27774
27775 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27776
27777         * lib/mbchar.h (is_basic_table): Make read-only.
27778         * lib/mbchar.c (is_basic_table): Likewise.
27779         Reported by John Darrington.
27780
27781 2006-10-25  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/progname.h (set_program_name): Undefine before defining.
27784
27785 2006-10-25  Bruno Haible  <bruno@clisp.org>
27786
27787         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27788         false for non-gcc C++ compilers.
27789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27790
27791 2006-10-24  Bruno Haible  <bruno@clisp.org>
27792
27793         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27794         iconv implementations like Irix iconv.
27795
27796 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27797
27798         * modules/vararrays: New file.
27799         * m4/vararrays.m4: New file, taken from diffutils.
27800         * MODULES.html.sh: New module vararrays.
27801
27802 2006-10-24  Karl Berry  <karl@gnu.org>
27803
27804         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27805         Don't call GNU Unix.
27806
27807 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27808
27809         * users.txt: Add Libtool.
27810
27811         Sync from Libtool:
27812
27813         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27816         to gnulib's policy of including config.h unconditionally.
27817
27818 2006-10-24  Bruno Haible  <bruno@clisp.org>
27819
27820         * modules/wcwidth (Files): Add m4/wint_t.m4.
27821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27822         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27823
27824 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27825
27826         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27827         to pacify GCC with some -W flags enabled.  Problem reported by
27828         Bruno Haible.
27829
27830 2006-10-24  Jim Meyering  <jim@meyering.net>
27831
27832         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27833         Reported by Karl Berry.
27834
27835 2006-10-23  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27838
27839 2006-10-24  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/gl_list.h: Use C comment style, not C++ comment style.
27842
27843 2006-10-23  Eric Blake  <ebb9@byu.net>
27844
27845         * lib/getaddrinfo.c (includes): Add missing include.
27846
27847 2006-10-23  Bruno Haible  <bruno@clisp.org>
27848             Paul Eggert  <eggert@cs.ucla.edu>
27849
27850         Ability to rename obstack_free.
27851         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27852         obstack_free.
27853         (obstack_free): Invoke the __obstack_free macro.
27854         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27855
27856 2006-10-23  Bruno Haible  <bruno@clisp.org>
27857             Paul Eggert  <eggert@cs.ucla.edu>
27858
27859         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27860         __argc, __argv from the declaration. (They are defined as macros on
27861         mingw.)
27862
27863 2006-10-22  Bruno Haible  <bruno@clisp.org>
27864
27865         * doc/gnulib-intro.texi: New file.
27866         * doc/gnulib.texi: Include it.
27867
27868 2006-10-21  Bruno Haible  <bruno@clisp.org>
27869
27870         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27871         "Introduction", "Miscellanous Notes", "Particular Modules".
27872
27873 2006-10-21  Bruno Haible  <bruno@clisp.org>
27874
27875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27876         Change mostlyclean-local rule to avoid sh syntax error from bash
27877         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27878
27879 2006-10-23  Jim Meyering  <jim@meyering.net>
27880
27881         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27882         in place of snprintf.
27883
27884         * modules/inttostr (Files): Add lib/uinttostr.c.
27885         * lib/uinttostr.c (inttostr): New file/function.
27886         * lib/inttostr.h (uinttostr): Declare.
27887         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27888         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27889         Add uinttostr.
27890         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27891
27892 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27893
27894         * lib/canonicalize.c (ELOOP): Define if not already defined.
27895         Problem reported by Bruno Haible in
27896         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27897
27898 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27899
27900         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27901         Problem reported by Perry Smith and Ville Laurikari.
27902
27903         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27904         uses.
27905
27906 2006-10-19  Bruno Haible  <bruno@clisp.org>
27907
27908         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27909         for mingw.
27910
27911 2006-10-19  Bruno Haible  <bruno@clisp.org>
27912
27913         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27914         Needed for mingw.
27915
27916 2006-10-19  Bruno Haible  <bruno@clisp.org>
27917
27918         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27919
27920 2006-10-19  Bruno Haible  <bruno@clisp.org>
27921
27922         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27923         it.
27924
27925 2006-10-19  Bruno Haible  <bruno@clisp.org>
27926
27927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27928         invocation.
27929
27930 2006-10-19  Bruno Haible  <bruno@clisp.org>
27931
27932         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27933         mountlist by default.
27934
27935 2006-10-16  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/c-strstr.c: Include c-strstr.h.
27938
27939 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27940
27941         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27942         in a slash.
27943
27944 2006-10-18  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/lock.h [C++]: Wrap definitions in extern "C".
27947
27948 2006-10-18  Bruno Haible  <bruno@clisp.org>
27949
27950         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27951         gl_LIBOBJS list.
27952
27953 2006-10-18  Bruno Haible  <bruno@clisp.org>
27954
27955         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27956
27957 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27958
27959         * lib/xstrtol.h: Include gettext.h.
27960         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27961         Problem reported by Eric Blake.
27962         * modules/xstrtol (Depends-on): Add gettext-h.
27963
27964 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27965
27966         * lib/strftime.c (advance): New macro.
27967         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27968         incomplete type, so you can't add 0 to it.  Problem and patch
27969         reported by Eelco Dolstra for dietlibc.
27970
27971 2006-10-18  Jim Meyering  <jim@meyering.net>
27972
27973         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27974         type for a local, and rename it: s/up/user_proc/.
27975
27976 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27977
27978         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27979         READ_UTMP_USER_PROCESS.
27980         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27981
27982 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27985         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27986
27987 2006-10-17  Eric Blake  <ebb9@byu.net>
27988
27989         * lib/sigprocmask.c (sigprocmask): Fix typo.
27990
27991         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27992
27993         * modules/clean-temp (Makefile.am): Don't add to make output...
27994         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27995         config.h.
27996
27997 2006-10-17  Bruno Haible  <bruno@clisp.org>
27998
27999         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
28000         differently if DEFAULT_TEXT_DOMAIN is set.
28001
28002 2006-10-16  Bruno Haible  <bruno@clisp.org>
28003
28004         * lib/clean-temp.c: Include fwriteerror.h.
28005
28006 2006-10-16  Bruno Haible  <bruno@clisp.org>
28007
28008         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
28009
28010 2006-10-16  Bruno Haible  <bruno@clisp.org>
28011
28012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
28013         * lib/sigprocmask.h: Include <sys/types.h>.
28014         (sigset_t): Use the system's definition if present.
28015
28016 2006-10-17  Eric Blake  <ebb9@byu.net>
28017
28018         * lib/xvasprintf.c (includes): Assume config.h.
28019         * lib/xasprintf.c (includes): Likewise.
28020
28021 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28022
28023         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
28024         at least as wide as intmax_t.
28025
28026 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
28027
28028         (Imported from Automake.)
28029         * build-aux/gnupload: Update to version 1.1 of directive file.
28030
28031 2006-10-16  Eric Blake  <ebb9@byu.net>
28032
28033         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
28034         match Automake 1.10a.
28035
28036 2006-10-14  Bruno Haible  <bruno@clisp.org>
28037
28038         * modules/sigprocmask: New file.
28039         * lib/sigprocmask.h: New file.
28040         * lib/sigprocmask.c: New file.
28041         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
28042         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
28043         request sigprocmask.o.
28044         (gl_PREREQ_SIGPROCMASK): New macro.
28045         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
28046         (Depends-on): Add sigprocmask.
28047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
28048         gt_SIGNALBLOCKING. Test for 'raise' only once.
28049         * lib/fatal-signal.c: Include sigprocmask.h.
28050         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
28051         unblock_fatal_signals): Define always.
28052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28053         sigprocmask.
28054
28055 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28056
28057         Sync from Automake.
28058         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
28059         which incorrectly sets the mode of an existing destination
28060         directory.  In some cases the unpatched install-sh could do the
28061         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
28062         system.  We hope this is rare in practice, but it's clearly worth
28063         fixing.  Problem reported by Alex Unleashed in
28064         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
28065         Also, don't bother to check for -m bugs unless we're using -m;
28066         suggested by Stepan Kasal.
28067
28068 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28069
28070         Sync from Automake.
28071         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
28072         `-c' flag, so they appear at the same position as in %FASTDEP%
28073         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
28074         which ignores unknown options only after the first non-option.
28075         Bug report against M4 by Nelson H. F. Beebe.
28076
28077 2006-10-13  Jim Meyering  <jim@meyering.net>
28078
28079         Fix a bug in yesterday's change.
28080         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
28081         p->fts_statp->st_dev would be used uninitialized.
28082         Ensures that we always call fts_stat on the very first entry.
28083         Miklos Szeredi reported that find -xdev stopped working.
28084
28085 2006-10-12  Bruno Haible  <bruno@clisp.org>
28086
28087         * gnulib-tool (func_get_automake_snippet): Append an automatically
28088         computed EXTRA_DIST augmentation.
28089         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
28090         * modules/alloca-opt (Makefile.am): Likewise.
28091         * modules/allocsa (Makefile.am): Likewise.
28092         * modules/arcfour (Makefile.am): Likewise.
28093         * modules/arctwo (Makefile.am): Likewise.
28094         * modules/argmatch (Makefile.am): Likewise.
28095         * modules/argz (Makefile.am): Likewise.
28096         * modules/atexit (Makefile.am): Likewise.
28097         * modules/backupfile (Makefile.am): Likewise.
28098         * modules/byteswap (Makefile.am): Likewise.
28099         * modules/c-strtod (Makefile.am): Likewise.
28100         * modules/c-strtold (Makefile.am): Likewise.
28101         * modules/calloc (Makefile.am): Likewise.
28102         * modules/canon-host (Makefile.am): Likewise.
28103         * modules/canonicalize (Makefile.am): Likewise.
28104         * modules/chdir-long (Makefile.am): Likewise.
28105         * modules/chdir-safer (Makefile.am): Likewise.
28106         * modules/check-version (Makefile.am): Likewise.
28107         * modules/chown (Makefile.am): Likewise.
28108         * modules/cloexec (Makefile.am): Likewise.
28109         * modules/close-stream (Makefile.am): Likewise.
28110         * modules/closeout (Makefile.am): Likewise.
28111         * modules/crc (Makefile.am): Likewise.
28112         * modules/csharpexec (Makefile.am): Likewise.
28113         * modules/cycle-check (Makefile.am): Likewise.
28114         * modules/des (Makefile.am): Likewise.
28115         * modules/dev-ino (Makefile.am): Likewise.
28116         * modules/dirfd (Makefile.am): Likewise.
28117         * modules/dirname (Makefile.am): Likewise.
28118         * modules/dup2 (Makefile.am): Likewise.
28119         * modules/eealloc (Makefile.am): Likewise.
28120         * modules/error (Makefile.am): Likewise.
28121         * modules/euidaccess (Makefile.am): Likewise.
28122         * modules/exclude (Makefile.am): Likewise.
28123         * modules/exitfail (Makefile.am): Likewise.
28124         * modules/fcntl-safer (Makefile.am): Likewise.
28125         * modules/fcntl (Makefile.am): Likewise.
28126         * modules/file-type (Makefile.am): Likewise.
28127         * modules/fileblocks (Makefile.am): Likewise.
28128         * modules/filemode (Makefile.am): Likewise.
28129         * modules/filenamecat (Makefile.am): Likewise.
28130         * modules/fnmatch (Makefile.am): Likewise.
28131         * modules/fopen-safer (Makefile.am): Likewise.
28132         * modules/fpending (Makefile.am): Likewise.
28133         * modules/fprintftime (Makefile.am): Likewise.
28134         * modules/free (Makefile.am): Likewise.
28135         * modules/fsusage (Makefile.am): Likewise.
28136         * modules/ftruncate (Makefile.am): Likewise.
28137         * modules/fts (Makefile.am): Likewise.
28138         * modules/gc-arcfour (Makefile.am): Likewise.
28139         * modules/gc-des (Makefile.am): Likewise.
28140         * modules/gc-hmac-md5 (Makefile.am): Likewise.
28141         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
28142         * modules/gc-md4 (Makefile.am): Likewise.
28143         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
28144         * modules/gc-sha1 (Makefile.am): Likewise.
28145         * modules/gc (Makefile.am): Likewise.
28146         * modules/getaddrinfo (Makefile.am): Likewise.
28147         * modules/getcwd (Makefile.am): Likewise.
28148         * modules/getdelim (Makefile.am): Likewise.
28149         * modules/getdomainname (Makefile.am): Likewise.
28150         * modules/getgroups (Makefile.am): Likewise.
28151         * modules/gethostname (Makefile.am): Likewise.
28152         * modules/gethrxtime (Makefile.am): Likewise.
28153         * modules/getline (Makefile.am): Likewise.
28154         * modules/getloadavg (Makefile.am): Likewise.
28155         * modules/getlogin_r (Makefile.am): Likewise.
28156         * modules/getndelim2 (Makefile.am): Likewise.
28157         * modules/getopt (Makefile.am): Likewise.
28158         * modules/getpagesize (Makefile.am): Likewise.
28159         * modules/getpass-gnu (Makefile.am): Likewise.
28160         * modules/getpass (Makefile.am): Likewise.
28161         * modules/getsubopt (Makefile.am): Likewise.
28162         * modules/gettime (Makefile.am): Likewise.
28163         * modules/gettimeofday (Makefile.am): Likewise.
28164         * modules/getugroups (Makefile.am): Likewise.
28165         * modules/getusershell (Makefile.am): Likewise.
28166         * modules/glob (Makefile.am): Likewise.
28167         * modules/group-member (Makefile.am): Likewise.
28168         * modules/hard-locale (Makefile.am): Likewise.
28169         * modules/hash (Makefile.am): Likewise.
28170         * modules/hmac-md5 (Makefile.am): Likewise.
28171         * modules/hmac-sha1 (Makefile.am): Likewise.
28172         * modules/human (Makefile.am): Likewise.
28173         * modules/idcache (Makefile.am): Likewise.
28174         * modules/imaxabs (Makefile.am): Likewise.
28175         * modules/imaxdiv (Makefile.am): Likewise.
28176         * modules/inet_ntop (Makefile.am): Likewise.
28177         * modules/inet_pton (Makefile.am): Likewise.
28178         * modules/intprops (Makefile.am): Likewise.
28179         * modules/inttostr (Makefile.am): Likewise.
28180         * modules/inttypes (Makefile.am): Likewise.
28181         * modules/isapipe (Makefile.am): Likewise.
28182         * modules/javaversion (Makefile.am): Likewise.
28183         * modules/lchmod (Makefile.am): Likewise.
28184         * modules/lchown (Makefile.am): Likewise.
28185         * modules/localcharset (Makefile.am): Likewise.
28186         * modules/long-options (Makefile.am): Likewise.
28187         * modules/lstat (Makefile.am): Likewise.
28188         * modules/malloc (Makefile.am): Likewise.
28189         * modules/mathl (Makefile.am): Likewise.
28190         * modules/mbchar (Makefile.am): Likewise.
28191         * modules/md2 (Makefile.am): Likewise.
28192         * modules/md4 (Makefile.am): Likewise.
28193         * modules/md5 (Makefile.am): Likewise.
28194         * modules/memcasecmp (Makefile.am): Likewise.
28195         * modules/memchr (Makefile.am): Likewise.
28196         * modules/memcmp (Makefile.am): Likewise.
28197         * modules/memcoll (Makefile.am): Likewise.
28198         * modules/memcpy (Makefile.am): Likewise.
28199         * modules/memmem (Makefile.am): Likewise.
28200         * modules/memmove (Makefile.am): Likewise.
28201         * modules/mempcpy (Makefile.am): Likewise.
28202         * modules/memrchr (Makefile.am): Likewise.
28203         * modules/memset (Makefile.am): Likewise.
28204         * modules/memxor (Makefile.am): Likewise.
28205         * modules/mkancesdirs (Makefile.am): Likewise.
28206         * modules/mkdir-p (Makefile.am): Likewise.
28207         * modules/mkdir (Makefile.am): Likewise.
28208         * modules/mkdtemp (Makefile.am): Likewise.
28209         * modules/mkstemp (Makefile.am): Likewise.
28210         * modules/mktime (Makefile.am): Likewise.
28211         * modules/modechange (Makefile.am): Likewise.
28212         * modules/mountlist (Makefile.am): Likewise.
28213         * modules/nanosleep (Makefile.am): Likewise.
28214         * modules/obstack (Makefile.am): Likewise.
28215         * modules/openat (Makefile.am): Likewise.
28216         * modules/pagealign_alloc (Makefile.am): Likewise.
28217         * modules/pathmax (Makefile.am): Likewise.
28218         * modules/physmem (Makefile.am): Likewise.
28219         * modules/poll (Makefile.am): Likewise.
28220         * modules/posixtm (Makefile.am): Likewise.
28221         * modules/posixver (Makefile.am): Likewise.
28222         * modules/putenv (Makefile.am): Likewise.
28223         * modules/quote (Makefile.am): Likewise.
28224         * modules/quotearg (Makefile.am): Likewise.
28225         * modules/raise (Makefile.am): Likewise.
28226         * modules/read-file (Makefile.am): Likewise.
28227         * modules/readline (Makefile.am): Likewise.
28228         * modules/readlink (Makefile.am): Likewise.
28229         * modules/readtokens (Makefile.am): Likewise.
28230         * modules/readutmp (Makefile.am): Likewise.
28231         * modules/realloc (Makefile.am): Likewise.
28232         * modules/regex (Makefile.am): Likewise.
28233         * modules/rename-dest-slash (Makefile.am): Likewise.
28234         * modules/rename (Makefile.am): Likewise.
28235         * modules/rijndael (Makefile.am): Likewise.
28236         * modules/rmdir (Makefile.am): Likewise.
28237         * modules/rpmatch (Makefile.am): Likewise.
28238         * modules/safe-read (Makefile.am): Likewise.
28239         * modules/safe-write (Makefile.am): Likewise.
28240         * modules/same-inode (Makefile.am): Likewise.
28241         * modules/same (Makefile.am): Likewise.
28242         * modules/save-cwd (Makefile.am): Likewise.
28243         * modules/savedir (Makefile.am): Likewise.
28244         * modules/setenv (Makefile.am): Likewise.
28245         * modules/settime (Makefile.am): Likewise.
28246         * modules/sha1 (Makefile.am): Likewise.
28247         * modules/sig2str (Makefile.am): Likewise.
28248         * modules/snprintf (Makefile.am): Likewise.
28249         * modules/stat-macros (Makefile.am): Likewise.
28250         * modules/stat-time (Makefile.am): Likewise.
28251         * modules/stdbool (Makefile.am): Likewise.
28252         * modules/stdint (Makefile.am): Likewise.
28253         * modules/stdlib-safer (Makefile.am): Likewise.
28254         * modules/stpcpy (Makefile.am): Likewise.
28255         * modules/stpncpy (Makefile.am): Likewise.
28256         * modules/strcase (Makefile.am): Likewise.
28257         * modules/strcasestr (Makefile.am): Likewise.
28258         * modules/strchrnul (Makefile.am): Likewise.
28259         * modules/strcspn (Makefile.am): Likewise.
28260         * modules/strdup (Makefile.am): Likewise.
28261         * modules/strerror (Makefile.am): Likewise.
28262         * modules/strftime (Makefile.am): Likewise.
28263         * modules/strndup (Makefile.am): Likewise.
28264         * modules/strnlen (Makefile.am): Likewise.
28265         * modules/strpbrk (Makefile.am): Likewise.
28266         * modules/strsep (Makefile.am): Likewise.
28267         * modules/strstr (Makefile.am): Likewise.
28268         * modules/strtod (Makefile.am): Likewise.
28269         * modules/strtoimax (Makefile.am): Likewise.
28270         * modules/strtok_r (Makefile.am): Likewise.
28271         * modules/strtol (Makefile.am): Likewise.
28272         * modules/strtoll (Makefile.am): Likewise.
28273         * modules/strtoul (Makefile.am): Likewise.
28274         * modules/strtoull (Makefile.am): Likewise.
28275         * modules/strtoumax (Makefile.am): Likewise.
28276         * modules/strverscmp (Makefile.am): Likewise.
28277         * modules/sys_socket (Makefile.am): Likewise.
28278         * modules/sys_stat (Makefile.am): Likewise.
28279         * modules/sysexits (Makefile.am): Likewise.
28280         * modules/time_r (Makefile.am): Likewise.
28281         * modules/timegm (Makefile.am): Likewise.
28282         * modules/timespec (Makefile.am): Likewise.
28283         * modules/tmpfile-safer (Makefile.am): Likewise.
28284         * modules/trim (Makefile.am): Likewise.
28285         * modules/unistd-safer (Makefile.am): Likewise.
28286         * modules/unlinkdir (Makefile.am): Likewise.
28287         * modules/unlocked-io (Makefile.am): Likewise.
28288         * modules/userspec (Makefile.am): Likewise.
28289         * modules/utime (Makefile.am): Likewise.
28290         * modules/utimecmp (Makefile.am): Likewise.
28291         * modules/utimens (Makefile.am): Likewise.
28292         * modules/vasnprintf (Makefile.am): Likewise.
28293         * modules/vasprintf (Makefile.am): Likewise.
28294         * modules/vsnprintf (Makefile.am): Likewise.
28295         * modules/xalloc (Makefile.am): Likewise.
28296         * modules/xgetcwd (Makefile.am): Likewise.
28297         * modules/xnanosleep (Makefile.am): Likewise.
28298         * modules/xreadlink (Makefile.am): Likewise.
28299         * modules/xstrtod (Makefile.am): Likewise.
28300         * modules/xstrtol (Makefile.am): Likewise.
28301         * modules/xstrtold (Makefile.am): Likewise.
28302         * modules/yesno (Makefile.am): Likewise.
28303         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
28304
28305 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28306
28307         * modules/error (Makefile.am): Distribute files through
28308         EXTRA_DIST, not lib_SOURCES.
28309
28310 2006-10-12  Eric Blake  <ebb9@byu.net>
28311
28312         * modules/error (Makefile.am): Distribute files in /lib.
28313         * modules/obstack (Makefile.am): Likewise.
28314
28315 2006-10-12  Bruno Haible  <bruno@clisp.org>
28316
28317         * modules/acl (Makefile.am): Distribute all files in lib/ through
28318         EXTRA_DIST.
28319         * modules/arcfour (Makefile.am): Likewise.
28320         * modules/arctwo (Makefile.am): Likewise.
28321         * modules/argmatch (Makefile.am): Likewise.
28322         * modules/argz (Makefile.am): Likewise.
28323         * modules/atexit (Makefile.am): Likewise.
28324         * modules/backupfile (Makefile.am): Likewise.
28325         * modules/c-strtod (Makefile.am): Likewise.
28326         * modules/c-strtold (Makefile.am): Likewise.
28327         * modules/calloc (Makefile.am): Likewise.
28328         * modules/canon-host (Makefile.am): Likewise.
28329         * modules/canonicalize (Makefile.am): Likewise.
28330         * modules/chdir-long (Makefile.am): Likewise.
28331         * modules/chdir-safer (Makefile.am): Likewise.
28332         * modules/check-version (Makefile.am): Likewise.
28333         * modules/chown (Makefile.am): Likewise.
28334         * modules/cloexec (Makefile.am): Likewise.
28335         * modules/close-stream (Makefile.am): Likewise.
28336         * modules/closeout (Makefile.am): Likewise.
28337         * modules/crc (Makefile.am): Likewise.
28338         * modules/cycle-check (Makefile.am): Likewise.
28339         * modules/des (Makefile.am): Likewise.
28340         * modules/dirfd (Makefile.am): Likewise.
28341         * modules/dirname (Makefile.am): Likewise.
28342         * modules/dup2 (Makefile.am): Likewise.
28343         * modules/euidaccess (Makefile.am): Likewise.
28344         * modules/exclude (Makefile.am): Likewise.
28345         * modules/exitfail (Makefile.am): Likewise.
28346         * modules/fcntl-safer (Makefile.am): Likewise.
28347         * modules/file-type (Makefile.am): Likewise.
28348         * modules/fileblocks (Makefile.am): Likewise.
28349         * modules/filemode (Makefile.am): Likewise.
28350         * modules/filenamecat (Makefile.am): Likewise.
28351         * modules/fnmatch (Makefile.am): Likewise.
28352         * modules/fopen-safer (Makefile.am): Likewise.
28353         * modules/fpending (Makefile.am): Likewise.
28354         * modules/fprintftime (Makefile.am): Likewise.
28355         * modules/free (Makefile.am): Likewise.
28356         * modules/fsusage (Makefile.am): Likewise.
28357         * modules/ftruncate (Makefile.am): Likewise.
28358         * modules/fts (Makefile.am): Likewise.
28359         * modules/gc (Makefile.am): Likewise.
28360         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
28361         * modules/getaddrinfo (Makefile.am): Likewise.
28362         * modules/getcwd (Makefile.am): Likewise.
28363         * modules/getdelim (Makefile.am): Likewise.
28364         * modules/getdomainname (Makefile.am): Likewise.
28365         * modules/getgroups (Makefile.am): Likewise.
28366         * modules/gethostname (Makefile.am): Likewise.
28367         * modules/gethrxtime (Makefile.am): Likewise.
28368         * modules/getline (Makefile.am): Likewise.
28369         * modules/getloadavg (Makefile.am): Likewise.
28370         * modules/getlogin_r (Makefile.am): Likewise.
28371         * modules/getopt (Makefile.am): Likewise.
28372         * modules/getpass (Makefile.am): Likewise.
28373         * modules/getpass-gnu (Makefile.am): Likewise.
28374         * modules/getsubopt (Makefile.am): Likewise.
28375         * modules/gettime (Makefile.am): Likewise.
28376         * modules/gettimeofday (Makefile.am): Likewise.
28377         * modules/getugroups (Makefile.am): Likewise.
28378         * modules/getusershell (Makefile.am): Likewise.
28379         * modules/glob (Makefile.am): Likewise.
28380         * modules/group-member (Makefile.am): Likewise.
28381         * modules/hard-locale (Makefile.am): Likewise.
28382         * modules/hash (Makefile.am): Likewise.
28383         * modules/hmac-md5 (Makefile.am): Likewise.
28384         * modules/hmac-sha1 (Makefile.am): Likewise.
28385         * modules/human (Makefile.am): Likewise.
28386         * modules/idcache (Makefile.am): Likewise.
28387         * modules/imaxabs (Makefile.am): Likewise.
28388         * modules/imaxdiv (Makefile.am): Likewise.
28389         * modules/inet_ntop (Makefile.am): Likewise.
28390         * modules/inet_pton (Makefile.am): Likewise.
28391         * modules/inttostr (Makefile.am): Likewise.
28392         * modules/isapipe (Makefile.am): Likewise.
28393         * modules/lchown (Makefile.am): Likewise.
28394         * modules/long-options (Makefile.am): Likewise.
28395         * modules/lstat (Makefile.am): Likewise.
28396         * modules/malloc (Makefile.am): Likewise.
28397         * modules/mathl (Makefile.am): Likewise.
28398         * modules/mbchar (Makefile.am): Likewise.
28399         * modules/md2 (Makefile.am): Likewise.
28400         * modules/md4 (Makefile.am): Likewise.
28401         * modules/md5 (Makefile.am): Likewise.
28402         * modules/memcasecmp (Makefile.am): Likewise.
28403         * modules/memchr (Makefile.am): Likewise.
28404         * modules/memcmp (Makefile.am): Likewise.
28405         * modules/memcoll (Makefile.am): Likewise.
28406         * modules/memcpy (Makefile.am): Likewise.
28407         * modules/memmem (Makefile.am): Likewise.
28408         * modules/memmove (Makefile.am): Likewise.
28409         * modules/mempcpy (Makefile.am): Likewise.
28410         * modules/memrchr (Makefile.am): Likewise.
28411         * modules/memset (Makefile.am): Likewise.
28412         * modules/memxor (Makefile.am): Likewise.
28413         * modules/mkancesdirs (Makefile.am): Likewise.
28414         * modules/mkdir (Makefile.am): Likewise.
28415         * modules/mkdir-p (Makefile.am): Likewise.
28416         * modules/mkdtemp (Makefile.am): Likewise.
28417         * modules/mkstemp (Makefile.am): Likewise.
28418         * modules/mktime (Makefile.am): Likewise.
28419         * modules/modechange (Makefile.am): Likewise.
28420         * modules/mountlist (Makefile.am): Likewise.
28421         * modules/nanosleep (Makefile.am): Likewise.
28422         * modules/openat (Makefile.am): Likewise.
28423         * modules/pagealign_alloc (Makefile.am): Likewise.
28424         * modules/physmem (Makefile.am): Likewise.
28425         * modules/poll (Makefile.am): Likewise.
28426         * modules/posixtm (Makefile.am): Likewise.
28427         * modules/posixver (Makefile.am): Likewise.
28428         * modules/putenv (Makefile.am): Likewise.
28429         * modules/quote (Makefile.am): Likewise.
28430         * modules/quotearg (Makefile.am): Likewise.
28431         * modules/raise (Makefile.am): Likewise.
28432         * modules/read-file (Makefile.am): Likewise.
28433         * modules/readline (Makefile.am): Likewise.
28434         * modules/readlink (Makefile.am): Likewise.
28435         * modules/readtokens (Makefile.am): Likewise.
28436         * modules/readutmp (Makefile.am): Likewise.
28437         * modules/realloc (Makefile.am): Likewise.
28438         * modules/regex (Makefile.am): Likewise.
28439         * modules/rename (Makefile.am): Likewise.
28440         * modules/rename-dest-slash (Makefile.am): Likewise.
28441         * modules/rijndael (Makefile.am): Likewise.
28442         * modules/rmdir (Makefile.am): Likewise.
28443         * modules/rpmatch (Makefile.am): Likewise.
28444         * modules/safe-read (Makefile.am): Likewise.
28445         * modules/safe-write (Makefile.am): Likewise.
28446         * modules/same (Makefile.am): Likewise.
28447         * modules/save-cwd (Makefile.am): Likewise.
28448         * modules/savedir (Makefile.am): Likewise.
28449         * modules/setenv (Makefile.am): Likewise.
28450         * modules/settime (Makefile.am): Likewise.
28451         * modules/sha1 (Makefile.am): Likewise.
28452         * modules/sig2str (Makefile.am): Likewise.
28453         * modules/snprintf (Makefile.am): Likewise.
28454         * modules/stdlib-safer (Makefile.am): Likewise.
28455         * modules/stpcpy (Makefile.am): Likewise.
28456         * modules/stpncpy (Makefile.am): Likewise.
28457         * modules/strcase (Makefile.am): Likewise.
28458         * modules/strcasestr (Makefile.am): Likewise.
28459         * modules/strchrnul (Makefile.am): Likewise.
28460         * modules/strcspn (Makefile.am): Likewise.
28461         * modules/strdup (Makefile.am): Likewise.
28462         * modules/strerror (Makefile.am): Likewise.
28463         * modules/strftime (Makefile.am): Likewise.
28464         * modules/strndup (Makefile.am): Likewise.
28465         * modules/strnlen (Makefile.am): Likewise.
28466         * modules/strpbrk (Makefile.am): Likewise.
28467         * modules/strsep (Makefile.am): Likewise.
28468         * modules/strstr (Makefile.am): Likewise.
28469         * modules/strtod (Makefile.am): Likewise.
28470         * modules/strtoimax (Makefile.am): Likewise.
28471         * modules/strtok_r (Makefile.am): Likewise.
28472         * modules/strtol (Makefile.am): Likewise.
28473         * modules/strtoll (Makefile.am): Likewise.
28474         * modules/strtoul (Makefile.am): Likewise.
28475         * modules/strtoull (Makefile.am): Likewise.
28476         * modules/strtoumax (Makefile.am): Likewise.
28477         * modules/strverscmp (Makefile.am): Likewise.
28478         * modules/time_r (Makefile.am): Likewise.
28479         * modules/timegm (Makefile.am): Likewise.
28480         * modules/tmpfile-safer (Makefile.am): Likewise.
28481         * modules/unistd-safer (Makefile.am): Likewise.
28482         * modules/unlinkdir (Makefile.am): Likewise.
28483         * modules/userspec (Makefile.am): Likewise.
28484         * modules/utime (Makefile.am): Likewise.
28485         * modules/utimecmp (Makefile.am): Likewise.
28486         * modules/utimens (Makefile.am): Likewise.
28487         * modules/vasnprintf (Makefile.am): Likewise.
28488         * modules/vasprintf (Makefile.am): Likewise.
28489         * modules/vsnprintf (Makefile.am): Likewise.
28490         * modules/xalloc (Makefile.am): Likewise.
28491         * modules/xgetcwd (Makefile.am): Likewise.
28492         * modules/xnanosleep (Makefile.am): Likewise.
28493         * modules/xreadlink (Makefile.am): Likewise.
28494         * modules/xstrtod (Makefile.am): Likewise.
28495         * modules/xstrtol (Makefile.am): Likewise.
28496         * modules/xstrtold (Makefile.am): Likewise.
28497         * modules/yesno (Makefile.am): Likewise.
28498
28499 2006-10-12  Jim Meyering  <jim@meyering.net>
28500
28501         * m4/getloadavg.m4: Revert the change below.
28502
28503         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
28504         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
28505         fail with a symlink, which is what coreutils' ./bootstrap now
28506         creates by default.
28507
28508 2006-10-12  Bruno Haible  <bruno@clisp.org>
28509
28510         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
28511         mingw.
28512         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
28513         MSVC and mingw explicitly.
28514
28515 2006-10-11  Simon Josefsson  <jas@extundo.com>
28516             Bruno Haible  <bruno@clisp.org>
28517
28518         Add support for multiple gnulib-tool invocations in the scope of a
28519         single configure.ac file.
28520         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
28521         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
28522         with the same contents as the _LIBADD variable.
28523         (func_emit_initmacro_start, func_emit_initmacro_end,
28524         func_emit_initmacro_done): New functions.
28525         (func_import, func_create_testdir): Invoke them. Allow the identifiers
28526         gl_LIBOBJS and gl_LTLIBOBJS.
28527
28528 2006-10-11  Bruno Haible  <bruno@clisp.org>
28529
28530         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
28531         (func_create_testdir): Don't create po/Makefile.am, don't invoke
28532         autoreconf. Instead, invoke autopoint explicitly but move back the
28533         *.m4 files from gnulib.
28534
28535 2006-10-11  Bruno Haible  <bruno@clisp.org>
28536
28537         * gnulib-tool (func_usage): Make module names after --create-testdir
28538         optional.
28539         (func_create_testdir): If no module was specified, use nearly all
28540         modules.
28541
28542 2006-10-12  Jim Meyering  <jim@meyering.net>
28543
28544         Big performance improvement for fts-based tools that use FTS_NOSTAT.
28545         Avoid spurious inode-mismatch problems on non-POSIX file systems.
28546         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
28547         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
28548         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
28549         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
28550         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
28551         (fts_set_stat_required): New function.
28552         (fts_open): Defer the calls to fts_stat, if possible or requested.
28553         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
28554         into fts_stat itself.
28555         (fts_read): Perform any required (deferred) fts_stat call.
28556         (fts_build): Likewise, for the directory we're about to open and read.
28557         In the readdir loop, carefully decide whether each entry will require
28558         an eventual call to fts_stat, using dirent.d_type info if available.
28559         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
28560         a command line argument into this function.  Update all callers.
28561         Map a return value of FTS_DOT to FTS_D for a command line argument.
28562         * modules/fts (Depends-on): Add d-type.  Alphabetize.
28563         Thanks to Miklos Szeredi for his tenacity and for the initial
28564         bug report about "find" failing on a FUSE-based file system.
28565
28566         * lib/fts.c (fts_open): Use consistent indentation.
28567
28568 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28569
28570         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
28571         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
28572         reported by Jim Meyering.  All uses of cache variables renamed
28573         to match Autoconf's.
28574         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
28575         the other one.
28576
28577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28578         Fix misspelling in diagnostic.
28579
28580 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28581
28582         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
28583         defined.  Problem reported by Matthew Woehlke.
28584
28585         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
28586         Add support for Tandem NonStop R series.
28587         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
28588         Use new macro.
28589
28590         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
28591         (has_trailing_slash): Omit size arg; all callers changed.
28592         Omit 'inline', since it doesn't help performance and we'd
28593         need to configure it.
28594         Don't count //, ///, etc. as having a trailing slash.
28595         As a side effect, this removes a C99ism reported by Matthew Woehlke.
28596         (rpl_rename_dest_slash): On failure, use rename's errno rather
28597         than (in some cases) an incorrect or junk errno.
28598         Simplify code by removing need to compute length; this does
28599         cause it to make two passes instead of one over the file name,
28600         but it's worth it.
28601
28602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
28603         change, since Autoconf's version may no longer be appropriate now
28604         that we are using CVS Autoconf's version.  Add support for Tandem.
28605
28606 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28607             Bruno Haible  <bruno@clisp.org>
28608
28609         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
28610         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
28611         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
28612         gl_AC_TYPE_LONG_LONG.
28613
28614         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
28615         instead of HAVE_LONG_LONG.
28616         * lib/printf-args.c (printf_fetchargs): Likewise.
28617         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28618         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28619         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
28620         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
28621         gl_AC_TYPE_LONG_LONG.
28622
28623 2006-10-11  Bruno Haible  <bruno@clisp.org>
28624
28625         * m4/longlong.m4: Add comments.
28626         * m4/ulonglong.m4: Likewise.
28627
28628 2006-10-10  Bruno Haible  <bruno@clisp.org>
28629
28630         Make it possible to #define stpcpy, strdup to aliases.
28631         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
28632         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
28633
28634 2006-10-10  Bruno Haible  <bruno@clisp.org>
28635
28636         Make it possible to #define gcd to an alias.
28637         * lib/gcd.c: Include config.h.
28638
28639 2006-10-10  Bruno Haible  <bruno@clisp.org>
28640
28641         Make it possible to #define c_isascii to an alias.
28642         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
28643         defined. Undefine the macros before defining them, to avoid gcc
28644         warnings.
28645         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
28646         define NO_C_CTYPE_MACROS early.
28647
28648 2006-10-10  Bruno Haible  <bruno@clisp.org>
28649
28650         Make it possible to #define set_program_name to an alias.
28651         * lib/progname.c: Don't undefine set_program_name; instead, undefine
28652         ENABLE_RELOCATABLE early.
28653
28654 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28655
28656         Port to Tandem NSK OSS, which has 64-bit signed int but at most
28657         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
28658         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
28659         More generally, don't assume that 64-bit signed int is available
28660         if unsigned int is, and vice versa.
28661         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
28662         unsigned symbols, not on their signed counterparts.
28663         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
28664         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
28665         (UINT64_C, UINTMAX_C):
28666         Likewise.
28667         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
28668         unsigned counterparts.
28669         (Have_long_long, Unsigned): New macros.
28670         (Int): Renamed from INT.
28671         (strtoimax): Use the new macros.
28672         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
28673         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
28674         * modules/inttypes (inttypes.h): Substitute
28675         HAVE_UNSIGNED_LONG_LONG_INT.
28676         * modules/stdint (stdint.h): Likewise.
28677         (Files): Add m4/ulonglong.m4.
28678
28679 2006-10-10  Bruno Haible  <bruno@clisp.org>
28680
28681         Fix a gcc -Wshadow warning.
28682         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
28683         to 'bucket'.
28684         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
28685         gl_linked_indexof_from_to): Likewise.
28686         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
28687         Likewise.
28688         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
28689         Likewise.
28690         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
28691         Reported by Eric Blake.
28692
28693 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28694
28695         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
28696         for NetBSD.  Problem reported by Bruno Haible.
28697
28698 2006-10-09  Jim Meyering  <jim@meyering.net>
28699
28700         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
28701         Patch from Bruno Haible.
28702
28703 2006-10-09  Jim Meyering  <jim@meyering.net>
28704
28705         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28706         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
28707         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
28708
28709 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28710
28711         Don't include <config.h> twice; this doesn't work in some cases,
28712         e.g., when config.h has "#define intmax_t long long int" and
28713         we include <config.h>, <inttypes.h>, <config.h> in that order.
28714         Problem reported by Matthew Woehlke in:
28715         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
28716         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
28717         * lib/fts-cycle.c: Don't include config.h.
28718         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
28719         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28720         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
28721         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
28722         inttypes.h.
28723         * lib/xstrtoumax.c: Likewise.
28724         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28725         __strtol and the like, so that this module is more like its siblings.
28726         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28727         Remove; no longer needed now that we assume gnulib inttypes.h.
28728
28729 2006-10-08  Bruno Haible  <bruno@clisp.org>
28730
28731         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28732         option.
28733
28734 2006-10-07  Jim Meyering  <jim@meyering.net>
28735
28736         * modules/inttypes (inttypes.h): Revert what seems to have been
28737         an inadvertent part of today's change: use "|", not "/" in the
28738         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28739
28740 2006-10-07  Bruno Haible  <bruno@clisp.org>
28741
28742         * modules/sublist: New file.
28743
28744 2006-10-07  Bruno Haible  <bruno@clisp.org>
28745
28746         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28747         * modules/argz (argz.h): Likewise.
28748         * modules/arpa_inet (arpa/inet.h): Likewise.
28749         * modules/byteswap (byteswap.h): Likewise.
28750         * modules/configmake (configmake.h): Likewise.
28751         * modules/fcntl (fcntl.h): Likewise.
28752         * modules/fnmatch (fnmatch.h): Likewise.
28753         * modules/getopt (getopt.h): Likewise.
28754         * modules/glob (glob.h): Likewise.
28755         * modules/inttypes (inttypes.h): Likewise.
28756         * modules/netinet_in (netinet/in.h): Likewise.
28757         * modules/poll (poll.h): Likewise.
28758         * modules/stdbool (stdbool.h): Likewise.
28759         * modules/stdint (stdint.h): Likewise.
28760         * modules/sys_select (sys/select.h): Likewise.
28761         * modules/sys_socket (sys/socket.h): Likewise.
28762         * modules/sys_stat (sys/stat.h): Likewise.
28763         * modules/sysexits (sysexits.h): Likewise.
28764         * modules/unistd (unistd.h): Likewise.
28765         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28766         Add a "DO NOT EDIT" comment to the generated file.
28767         (func_import): Likewise for gnulib-comp.m4.
28768
28769 2006-10-07  Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/gl_sublist.h: New file.
28772         * lib/gl_sublist.c: New file.
28773
28774 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28775
28776         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28777         name (relative to the original working directory) and the file
28778         name component (relative to the temporary working directory).  All
28779         callers changed.
28780         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28781         * lib/mkdir-p.c (make_dir_parents): Likewise.
28782         * lib/mkdir-p.h (make_dir_parents): Likewise.
28783
28784 2006-10-06  Eric Blake  <ebb9@byu.net>
28785
28786         Define several macros for use by the clean-temp module.
28787         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28789         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28790
28791         * lib/clean-temp.h (close_stream_temp): New declaration.
28792         * lib/clean-temp.c (includes): Pull in headers according to what
28793         other modules are in use.
28794         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28795
28796 2006-10-06  Bruno Haible  <bruno@clisp.org>
28797
28798         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28799         instead of fopen, fwriteerror.
28800
28801 2006-10-06  Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28804         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28805         int.
28806         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28807         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28808         Return an error indicator.
28809         Suggested by Eric Blake.
28810
28811 2006-10-06  Bruno Haible  <bruno@clisp.org>
28812
28813         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28814         Reported by Eric Blake.
28815
28816 2006-10-06  Bruno Haible  <bruno@clisp.org>
28817
28818         * modules/closeout (Description): Mention stderr too.
28819
28820 2006-10-06  Bruno Haible  <bruno@clisp.org>
28821         and Paul Eggert  <eggert@cs.ucla.edu>
28822
28823         * lib/closeout.c (close_stdout): Also close stderr.
28824         * lib/closeout.h: Update comment.
28825
28826 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28827
28828         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28829         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28830         * lib/dirchownmod.c: Include lchown.h.
28831         * lib/lchown.c: Don't include files that lchown.h now includes.
28832         Don't declare chown, since lchown.h now does that.
28833         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28834         (lchown): Define to rpl_chown if lchown is declared but
28835         does not exist.  Declare using a prototype if lchown is not
28836         declared.  Add a copyright notice.
28837         * lib/mkstemp.h: Include <unistd.h>.
28838         * lib/openat.c: Include lchown.h.
28839
28840         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28841         we now test for that separately.
28842         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28843         rather than O_NOFOLLOW, when testing whether it's possible to
28844         avoid a race condition reliably.
28845         * lib/savewd.c (savewd_chdir): Likewise.
28846
28847         Remove macros that are no longer needed now that stdint.h is
28848         reliable.
28849         * lib/fsusage.c (UINTMAX_MAX): Remove.
28850         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28851         * lib/utimecmp.c (SIZE_MAX): Remove.
28852
28853         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28854
28855         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28856         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28857         O_NOATIME works.
28858
28859 2006-10-05  Bruno Haible  <bruno@clisp.org>
28860
28861         * lib/gl_list.h (gl_sortedlist_search_from_to,
28862         gl_sortedlist_indexof_from_to): New declarations.
28863         (gl_list_implementation): New fields sortedlist_search_from_to,
28864         sortedlist_indexof_from_to.
28865         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28866         inline functions.
28867         * lib/gl_list.c (gl_sortedlist_search_from_to,
28868         gl_sortedlist_indexof_from_to): New functions.
28869         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28870         function.
28871         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28872         (gl_array_sortedlist_search_from_to): New function.
28873         (gl_array_list_implementation): Update.
28874         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28875         function.
28876         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28877         (gl_carray_sortedlist_search_from_to): New function.
28878         (gl_carray_list_implementation): Update.
28879         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28880         gl_linked_sortedlist_indexof_from_to): New functions.
28881         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28882         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28883         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28884         gl_tree_sortedlist_indexof_from_to): New functions.
28885         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28886         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28887         Update.
28888         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28889         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28890         Update.
28891
28892 2006-10-05  Bruno Haible  <bruno@clisp.org>
28893
28894         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28895         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28896         (struct gl_list_implementation): Add fields search_from_to,
28897         indexof_from_to. Remove fields search, indexof.
28898         (gl_list_search): Use the search_from_to method.
28899         (gl_list_search_from, gl_list_search_from_to): New functions.
28900         (gl_list_indexof): Use the indexof_from_to method.
28901         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28902         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28903         (gl_list_search_from, gl_list_search_from_to): New functions.
28904         (gl_list_indexof): Use the indexof_from_to method.
28905         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28906         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28907         gl_array_indexof. Add start_index, end_index arguments.
28908         (gl_array_search_from_to): Renamed from gl_array_search. Add
28909         start_index, end_index arguments.
28910         (gl_array_remove, gl_array_list_implementation): Update.
28911         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28912         gl_carray_indexof. Add start_index, end_index arguments.
28913         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28914         start_index, end_index arguments.
28915         (gl_carray_remove, gl_carray_list_implementation): Update.
28916         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28917         gl_linked_search. Add start_index, end_index arguments.
28918         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28919         start_index, end_index arguments.
28920         (gl_linked_remove): Update.
28921         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28922         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28923         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28924         field to 'size_t'.
28925         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28926         gl_tree_search. Add start_index, end_index arguments.
28927         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28928         start_index, end_index arguments.
28929         (gl_tree_remove): Update.
28930         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28931         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28932         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28933         function.
28934         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28935         gl_tree_search. Add start_index, end_index arguments.
28936         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28937         start_index, end_index arguments.
28938         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28939         Update.
28940         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28941
28942 2006-10-05  Bruno Haible  <bruno@clisp.org>
28943
28944         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28945
28946         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28947         fwriteerror_temp): New declarations.
28948         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28949         (descriptors): New variable.
28950         (cleanup): First, close the descriptors.
28951         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28952         fclose_temp, fwriteerror_temp): New functions.
28953
28954 2006-10-04  Jim Meyering  <jim@meyering.net>
28955
28956         * lib/fts.c (fts_open): Tiny comment change.
28957
28958 2006-10-04  Bruno Haible  <bruno@clisp.org>
28959
28960         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28961         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28962         gl_LOCK_BODY.
28963         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28964         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28965         gl_LOCK_EARLY_BODY.
28966         (gl_LOCK): Require gl_LOCK_BODY.
28967
28968 2006-10-04  Bruno Haible  <bruno@clisp.org>
28969
28970         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28971         (gl_oset_search_atleast): New declaration.
28972         (struct gl_oset_implementation): Add field 'search_atleast'.
28973         (gl_oset_search_atleast): New inline function.
28974         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28975         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28976         (gl_array_oset_implementation): Update.
28977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28978         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28979         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28980
28981 2006-10-04  Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28984
28985 2006-10-03  Bruno Haible  <bruno@clisp.org>
28986
28987         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28988         from gl_avltreehash_list_implementation.
28989
28990 2006-10-03  Bruno Haible  <bruno@clisp.org>
28991
28992         * lib/gl_oset.c (gl_oset_add): Fix return type.
28993
28994 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28995
28996         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28997
28998 2006-10-02  Eric Blake  <ebb9@byu.net>
28999
29000         * modules/strnlen (Depends-on): Add extensions.
29001
29002 2006-10-02  Eric Blake  <ebb9@byu.net>
29003
29004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
29005         definition in 2.60+.
29006
29007 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
29008
29009         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
29010         checks.
29011
29012 2006-10-02  Bruno Haible  <bruno@clisp.org>
29013
29014         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
29015         to the AUTOMAKE_OPTIONS.
29016         Reported by Jim Meyering.
29017
29018 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
29019
29020         Work around bug in Solaris 10 /proc file system:
29021         /proc/self/fd/NNN/.. isn't the parent directory of
29022         the directory whose file descriptor is NNN.  This needs to
29023         be worked around at run time, not compile time, since a
29024         program might be built on Solaris 8, where things work, and
29025         run on Solaris 10.
29026         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
29027         to use the following interface instead:
29028         (OPENAT_BUFFER_SIZE): New macro.
29029         (openat_proc_name): New function.
29030         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
29031         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
29032         Likewise.
29033         * lib/openat-proc.c: New file.
29034         * modules/openat (Files): Add lib/openat-proc.c.
29035         (Depends-on): Add same-inode, stdbool.
29036         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
29037
29038 2006-09-29  Bruno Haible  <bruno@clisp.org>
29039
29040         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
29041         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
29042         argument. Set stdout_closed before testing for ferror, not after.
29043         (fwriteerror, fwriteerror_no_ebadf): New functions.
29044
29045 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29046
29047         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
29048
29049 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
29050
29051         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
29052         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
29053
29054 2006-09-28  Jim Meyering  <jim@meyering.net>
29055
29056         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
29057         Include <unistd.h>.
29058
29059 2006-09-28  Bruno Haible  <bruno@clisp.org>
29060
29061         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
29062         * modules/linkedhash-list (Depends-on): Likewise.
29063         * modules/rbtreehash-list (Depends-on): Likewise.
29064
29065 2006-09-28  Bruno Haible  <bruno@clisp.org>
29066
29067         * lib/strndup.h: Simplify the redefinition of strndup.
29068         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
29069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
29070
29071 2006-09-28  Bruno Haible  <bruno@clisp.org>
29072
29073         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
29074         * lib/gl_linkedhash_list.c: Likewise.
29075         * lib/gl_rbtreehash_list.c: Likewise.
29076
29077 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
29078
29079         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
29080         getaddrinfo.
29081
29082         * lib/__fpending.h: Don't include <stdio_ext.h> unless
29083         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
29084         it causes <stdio_ext.h> to cause a compile-time error.
29085         Problem reported by Nelson H. F. Beebe.
29086         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
29087         of HAVE_DECL___PENDING.
29088
29089         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
29090         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
29091         declaration.
29092
29093 2006-09-27  Jim Meyering  <jim@meyering.net>
29094
29095         This file could end up with a definition for a function
29096         named __strndup, rather than rpl_strndup on a system with
29097         incomplete weak_alias support.
29098         * lib/strndup.c (strndup): Rename from __strndup.
29099         Remove #defines that used to map __strndup to strndup.
29100         Don't use K&R prototypes.
29101         Remove LIBC-related code, since this file is not sync'd with glibc.
29102         * lib/strndup.h: Revamp, accordingly.
29103         * m4/strndup.m4: Modernize.
29104
29105 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29106
29107         * modules/savewd (Depends-on): Add 'raise'.
29108         * lib/savewd.c: Include <signal.h>, for 'raise'.
29109
29110 2006-09-26  Jim Meyering  <jim@meyering.net>
29111
29112         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
29113         when we detect Darwin 8.7.0's acl_get_file bug.
29114         Rearrange to perform the new (below) run-test while $LIBS
29115         contains any acl-related library.  Set USE_ACL at the end.
29116         (gl_ACL_GET_FILE): New function.
29117
29118 2006-09-26  Eric Blake  <ebb9@byu.net>
29119
29120         * lib/verror.c: Include <config.h> unconditionally.
29121
29122 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29123
29124         * modules/clock-time (Maintainer): Add self.
29125         * modules/getlogin_r (Depends-on): Add extensions.
29126
29127 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29128
29129         * modules/clock-time: New module.
29130         * modules/nanosleep (Depends-on): Add clock-time.
29131         * modules/gethrxtime (Depends-on): Likewise.
29132         * modules/gettime (Depends-on): Likewise.
29133         * modules/settime (Depends-on): Likewise.
29134
29135         * modules/fts-lgpl: Depend on openat.
29136         * modules/mkancesdirs: Depend on savewd.
29137         * modules/mkdir-p: Likewise.
29138
29139 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29140
29141         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
29142
29143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
29144         `gl_have_arbitrary_file_name_length_limit' to
29145         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
29146         actually works between configure runs.
29147
29148 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29149             Bruno Haible  <bruno@clisp.org>
29150
29151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
29152
29153 2006-09-25  Jim Meyering  <jim@meyering.net>
29154
29155         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
29156         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
29157
29158 2006-09-25  Eric Blake  <ebb9@byu.net>
29159
29160         * gnulib-tool (func_import, func_create_testdir): Fix typos in
29161         exec's in 2006-09-18 patch when shuffling fds.
29162
29163 2006-09-25  Bruno Haible  <bruno@clisp.org>
29164
29165         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
29166         Reported by Jim Meyering.
29167
29168 2006-09-24  Jim Meyering  <jim@meyering.net>
29169
29170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
29171         compare a pointer against a literal "0".  That caused failures with
29172         at least HP-UX's hpcc.
29173
29174 2006-09-22  Simon Josefsson  <jas@extundo.com>
29175
29176         * modules/gc-sha1:
29177         * modules/gc-md4:
29178         * modules/gc-hmac-sha1:
29179         * modules/gc-hmac-md5:
29180         * modules/gc-des:
29181         * modules/gc-arcfour: Distribute more files.
29182
29183 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29184
29185         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
29186         (gl_linked_iterator_from_to): Initialize struct completely.
29187         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
29188         (gl_tree_iterator_from_to): Likewise
29189         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
29190         * lib/gl_array_list.c [lint] (gl_array_iterator)
29191         (gl_array_iterator_from_to): Likewise.
29192         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
29193         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
29194         (gl_carray_iterator_from_to): Likewise.
29195
29196         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
29197         * lib/md4.c (md4_process_block): Remove unused variable.
29198         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
29199         parentheses for clarity.
29200
29201 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29202
29203         * modules/bison-i18n (Depends-on): Add gettext.
29204
29205 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29206
29207         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
29208         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29209         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
29210         also add missing comma that caused broken test.
29211         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
29212         stdlib.h, for `abort'.
29213         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
29214         variables.
29215         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
29216         include unistd.h if present, for `rmdir'.
29217         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
29218         variables.
29219         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
29220         in the process include standard headers for prototypes.
29221         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
29222         gets declared on GNU/Linux.
29223         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
29224         unistd.h, for `rmdir'.
29225         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
29226
29227         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
29228         always true.
29229         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
29230
29231         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
29232
29233 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29234
29235         * gnulib-tool (func_version): Create output all at once.  This
29236         may help avoid triggering unnecessary SIGPIPEs, and at any
29237         rate it doesn't hurt.
29238
29239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29240             Bruno Haible  <bruno@clisp.org>
29241
29242         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
29243         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29244         * m4/signed.m4 (bh_C_SIGNED): Likewise.
29245
29246         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
29247         (gl_FUNC_VASPRINTF): Invoke it.
29248
29249 2006-09-22  Bruno Haible  <bruno@clisp.org>
29250
29251         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
29252         getloadavg.c as first argument.
29253
29254 2006-09-22  Bruno Haible  <bruno@clisp.org>
29255
29256         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
29257         at the beginning of the gl_INIT macro.
29258         * modules/getloadavg (configure.ac): Pass $gl_source_base to
29259         gl_GETLOADAVG.
29260
29261 2006-09-22  Bruno Haible  <bruno@clisp.org>
29262
29263         * gnulib-tool (func_create_megatestdir): Don't include the config-h
29264         module.
29265         Suggested by Ralf Wildenhues.
29266
29267 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29268
29269         Import this patch from libc:
29270
29271         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
29272
29273         * lib/regex_internal.c (re_string_reconstruct): Handle
29274         offset < pstr->valid_raw_len && pstr->offsets_needed case.
29275         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
29276         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
29277         re_string_context_at.
29278
29279         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
29280         now requires it.
29281         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
29282         gl_REGEX now does it for us.
29283         (gl_REGEX): Add test taken from
29284         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
29285
29286         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
29287         Check that large offsets work.  Modernize Autoconf usages.
29288         Prefer "yes" to mean a good thing rather than a bad.
29289         Don't put "#define mkstemp" in config.h, as this might interfere
29290         with standard system headers that "#define mkstemp mkstemp64".
29291
29292         * modules/mkstemp (Depends-on): Add extensions, so that
29293         mkstemp is visible on some platforms.
29294         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
29295         (Include): Change to "mkstemp.h" from <stdlib.h>.
29296         (Files): Add mkstemp.h.
29297
29298         * lib/mkstemp.h: New file, since some standard headers
29299         #define mkstemp.
29300         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
29301         Include "mkstemp.h".
29302         Make the _LIBC code resemble glibc original more,
29303         e.g., use K&R style.
29304         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
29305         (mkstemp): Remove, since mkstemp.h does this for us.
29306         * lib/stdlib--.h: Include mkstemp.h.
29307
29308         Import this patch from libc:
29309
29310         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29311
29312         * lib/tempname.c (__gen_tempname): Change attempts_min
29313         into a macro.  Use preprocessor to decide how to initialize
29314         attempts [Coverity CID 67].
29315
29316 2006-09-20  Bruno Haible  <bruno@clisp.org>
29317
29318         * lib/mkdtemp.c: Import from libc.
29319         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29320                 * sysdeps/posix/tempname.c (__gen_tempname): Change
29321                 attempts_min into a macro.  Use preprocessor to decide how to
29322                 initialize attempts [Coverity CID 67].
29323         2001-11-27  Paul Eggert  <eggert@twinsun.com>
29324                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
29325                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
29326
29327 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29328
29329         * gnulib-tool (func_exit): New function, to allow to pass the
29330         exit status portably through the trap.  Use everywhere.
29331         (--help, --version): Signal a write error.
29332         (trap): catch SIGPIPE, for write errors.
29333         Exit at the end of the trap, with the correct exit status.
29334
29335 2006-09-19  Karl Berry  <karl@gnu.org>
29336
29337         * doc/gnulib.texi: note about the license texinfo files.
29338
29339 2006-09-19  Eric Blake  <ebb9@byu.net>
29340
29341         * gnulib-tool: Avoid space-tab.
29342
29343 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29344
29345         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
29346         that prevented coreutils 6.1 from building.  Problem reported
29347         by Petter Reinholdtsen.
29348
29349 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         * gnulib-tool (avoidlist): Fix typo that broke options like
29352         --avoid=lock that are used by coreutils bootstrap.
29353
29354 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
29355
29356         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
29357         more systematically.
29358
29359 2006-09-18  Jim Meyering  <jim@meyering.net>
29360
29361         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
29362
29363 2006-09-18  Bruno Haible  <bruno@clisp.org>
29364
29365         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
29366
29367 2006-09-18  Bruno Haible  <bruno@clisp.org>
29368
29369         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
29370         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
29371         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
29372         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
29373         * m4/gettext.m4: Require autoconf >= 2.52.
29374         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
29375         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
29376         of gl_cv_header_inttypes_h.
29377
29378 2006-09-18  Bruno Haible  <bruno@clisp.org>
29379
29380         * lib/javaversion.c: Include configmake.h.
29381
29382 2006-09-18  Bruno Haible  <bruno@clisp.org>
29383
29384         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
29385         avoid that the while loops be executed in a subshell.
29386
29387 2006-09-18  Bruno Haible  <bruno@clisp.org>
29388
29389         * MODULES.html.sh (func_module): Break long lines.
29390         Suggested by Bruce Korb <bkorb@gnu.org>.
29391
29392 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29393
29394         Speed up by a factor of 1.12.
29395         * gnulib-tool (nl): New variable.
29396         (func_import): Rewrite include directive extraction to only read each
29397         directive once.
29398
29399 2006-09-17  Bruno Haible  <bruno@clisp.org>
29400
29401         * modules/javaversion (Makefile.am): Remove DEFS setting.
29402         (Depends-on): Add configmake, for PKGDATADIR definition.
29403
29404 2006-09-17  Bruno Haible  <bruno@clisp.org>
29405
29406         * gnulib-tool (func_create_testdir): Rewrite all files at once.
29407
29408 2006-09-17  Bruno Haible  <bruno@clisp.org>
29409
29410         * gnulib-tool (func_append): New function, stolen from libtool.m4.
29411         (func_modules_transitive_closure, func_modules_add_dummy,
29412         func_modules_to_filelist, func_import, func_create_testdir,
29413         func_create_megatestdir, ...): Use it wherever possible.
29414         Suggested by Ralf Wildenhues.
29415
29416 2006-09-16  Karl Berry  <karl@gnu.org>
29417
29418         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
29419         to avoid sectioning errors.
29420         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
29421         [ifinfo]: blank line after @center-ed titles.
29422         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
29423         Spell FSF address consistently with others.
29424         (These changes approved by rms.)
29425
29426 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29427
29428         Speed up by a factor of 1.61.
29429         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
29430         already checked module names again.
29431
29432 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29433
29434         Speed up by a factor of 1.13.
29435         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
29436         for new_files, and the input to func_add_or_update.
29437
29438 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29439
29440         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
29441         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
29442
29443 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * modules/mkancesdirs (Depends-on): Add fcntl.
29446         * modules/savewd: New file.
29447         * MODULES.html.sh (File system functions): Add savewd.
29448
29449         * modules/configmake (Makefile.am): Add support for the
29450         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
29451
29452 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29453
29454         * m4/savewd.m4: New file.
29455
29456 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29457
29458         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
29459         (dirchownmod): New arg FD.  All callers changed.
29460         Use FD rather than opening the directory ourself, as opening is
29461         now the caller's responsibility.
29462         * lib/dirchownmod.h: Likewise.
29463         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
29464         hosts that require <sys/types.h> before <sys/stat.h>.  Include
29465         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
29466         (test_dir): Remove.
29467         (mkancesdirs): Return length of prefix of FILE that has already
29468         been made, or -2 if there is a child doing the work.  Redo
29469         algorithm so that it is O(N) rather than O(N**2).  Optimize away
29470         ".", and treat ".." specially since it might stray back into
29471         already-created areas.  Use a subprocess if necessary.  New arg
29472         WD; all users changed.  MAKE_DIR function should now return 1
29473         if it creates a directory that is not readable.  Return -2 if
29474         a child process is spun off.
29475         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
29476         Adjust signature to match code.
29477         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
29478         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
29479         all users changed.
29480         * lib/savewd.c, lib/savewd.h: New files.
29481
29482 2006-09-15  Jim Meyering  <jim@meyering.net>
29483
29484         * modules/rename-dest-slash: New module.
29485         * MODULES.html.sh (posix_compat): Add it here.
29486
29487         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
29488
29489 2006-09-15  Jim Meyering  <jim@meyering.net>
29490
29491         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
29492         file.
29493
29494         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
29495
29496 2006-09-15  Jim Meyering  <jim@meyering.net>
29497
29498         * lib/rename-dest-slash.c (has_trailing_slash): Use
29499         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
29500         (rpl_rename_dest_slash): Perform the cheaper trailing slash
29501         test before testing whether SRC is a directory.
29502         Suggestions from Bruno Haible.
29503
29504         Avoid a warning about an unused variable.
29505         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
29506         into the #ifdef block where it's used.
29507
29508         * lib/rename-dest-slash.c: New file.
29509
29510 2006-09-14  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/allocsa.c: Include <config.h> unconditionally.
29513         * lib/asnprintf.c: Likewise.
29514         * lib/asprintf.c: Likewise.
29515         * lib/c-strcasecmp.c: Likewise.
29516         * lib/c-strcasestr.c: Likewise.
29517         * lib/c-strncasecmp.c: Likewise.
29518         * lib/c-strstr.c: Likewise.
29519         * lib/classpath.c: Likewise.
29520         * lib/clean-temp.c: Likewise.
29521         * lib/concatpath.c: Likewise.
29522         * lib/copy-file.c: Likewise.
29523         * lib/csharpcomp.c: Likewise.
29524         * lib/csharpexec.c: Likewise.
29525         * lib/execute.c: Likewise.
29526         * lib/fatal-signal.c: Likewise.
29527         * lib/findprog.c: Likewise.
29528         * lib/fwriteerror.c: Likewise.
29529         * lib/gl_array_list.c: Likewise.
29530         * lib/gl_array_oset.c: Likewise.
29531         * lib/gl_avltree_list.c: Likewise.
29532         * lib/gl_avltree_oset.c: Likewise.
29533         * lib/gl_avltreehash_list.c: Likewise.
29534         * lib/gl_carray_list.c: Likewise.
29535         * lib/gl_linked_list.c: Likewise.
29536         * lib/gl_linkedhash_list.c: Likewise.
29537         * lib/gl_list.c: Likewise.
29538         * lib/gl_oset.c: Likewise.
29539         * lib/gl_rbtree_list.c: Likewise.
29540         * lib/gl_rbtree_oset.c: Likewise.
29541         * lib/gl_rbtreehash_list.c: Likewise.
29542         * lib/imaxabs.c: Likewise.
29543         * lib/imaxdiv.c: Likewise.
29544         * lib/javacomp.c: Likewise.
29545         * lib/javaexec.c: Likewise.
29546         * lib/javaversion.c: Likewise.
29547         * lib/linebreak.c: Likewise.
29548         * lib/localcharset.c: Likewise.
29549         * lib/lock.c: Likewise.
29550         * lib/mbchar.c: Likewise.
29551         * lib/mbswidth.c: Likewise.
29552         * lib/mkdtemp.c: Likewise.
29553         * lib/pipe.c: Likewise.
29554         * lib/printf-args.c: Likewise.
29555         * lib/printf-parse.c: Likewise.
29556         * lib/progname.c: Likewise.
29557         * lib/progreloc.c: Likewise.
29558         * lib/readlink.c: Likewise.
29559         * lib/sh-quote.c: Likewise.
29560         * lib/stpcpy.c: Likewise.
29561         * lib/stpncpy.c: Likewise.
29562         * lib/strcasecmp.c: Likewise.
29563         * lib/strcasestr.c: Likewise.
29564         * lib/strcspn.c: Likewise.
29565         * lib/striconv.c: Likewise.
29566         * lib/strncasecmp.c: Likewise.
29567         * lib/strnlen1.c: Likewise.
29568         * lib/strstr.c: Likewise.
29569         * lib/strtok_r.c: Likewise.
29570         * lib/tls.c: Likewise.
29571         * lib/tmpdir.c: Likewise.
29572         * lib/unicodeio.c: Likewise.
29573         * lib/unsetenv.c: Likewise.
29574         * lib/vasnprintf.c: Likewise.
29575         * lib/vasprintf.c: Likewise.
29576         * lib/wait-process.c: Likewise.
29577         * lib/xallocsa.c: Likewise.
29578         * lib/xsetenv.c: Likewise.
29579         * lib/xstriconv.c: Likewise.
29580
29581 2006-09-13  Simon Josefsson  <jas@extundo.com>
29582
29583         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
29584         that internally, suggested by Ralf Wildenhues
29585         <Ralf.Wildenhues@gmx.de>.
29586
29587 2006-09-13  Simon Josefsson  <jas@extundo.com>
29588
29589         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
29590         @LIBOBJS@.
29591         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29592
29593 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29594
29595         * lib/_fpending.c: Include <config.h> unconditionally, since we no
29596         longer worry about uses that don't define HAVE_CONFIG_H.
29597         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
29598         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
29599         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
29600         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
29601         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
29602         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
29603         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
29604         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
29605         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
29606         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
29607         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
29608         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
29609         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
29610         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
29611         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
29612         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
29613         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
29614         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
29615         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
29616         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
29617         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
29618         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
29619         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
29620         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
29621         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
29622         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
29623         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
29624         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
29625         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
29626         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
29627         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
29628         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
29629         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
29630         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
29631         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
29632         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
29633         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
29634         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
29635         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
29636         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
29637         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
29638         Likewise.
29639
29640 2006-09-13  Eric Blake  <ebb9@byu.net>
29641
29642         * lib/getopt.c: Fix typo in last commit.
29643
29644 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29645
29646         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
29647         dgettext.
29648
29649 2006-09-12  Jim Meyering  <jim@meyering.net>
29650
29651         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
29652         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
29653         Reported by Nelson H. F. Beebe.
29654
29655 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29656
29657         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
29658         program_invocation_name and program_invocation_short_name are
29659         initialized.
29660         * lib/argp-namefrob.h: Move declarations of program_invocation_name
29661         and program_invocation_short_name to argp.h, so they are visible
29662         to user programs.
29663         * lib/argp.h: Likewise
29664
29665 2006-09-10  Bruno Haible  <bruno@clisp.org>
29666
29667         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29668         m4/inttypes_h.m4, m4/uintmax_t.m4.
29669
29670 2006-09-10  Bruno Haible  <bruno@clisp.org>
29671
29672         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
29673         gl_AC_TYPE_UINTMAX_T.
29674
29675 2006-09-10  Bruno Haible  <bruno@clisp.org>
29676
29677         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
29678
29679 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29680
29681         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
29682         convention.  Text proposed by Bruno Haible.
29683         (struct argp_option): Document the use of N_() wrappers.
29684
29685         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
29686         '\v', and translate the two parts separately, instead of feeding
29687         the whole string to gettext.  This allows to exclude
29688         '\v' from the strings visible to the translator by writing doc
29689         strings as N_("..") "\v" N_("..").
29690
29691 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
29692
29693         * config/srclist.txt: Undo latest change; the bug was fixed.
29694
29695 2006-09-09  Bruno Haible  <bruno@clisp.org>
29696
29697         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
29698         assignments if building a library without libtool.
29699         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
29700         in func_emit_lib_Makefile_am.
29701         (func_import): When building a static library libfoo.a, arrange to
29702         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
29703         (func_create_testdir): Likewise.
29704         * modules/gc (configure.ac, Makefile.am): If building statically,
29705         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
29706         * modules/iconvme (configure.ac, Makefile.am): Likewise.
29707         * modules/striconv (configure.ac, Makefile.am): Likewise.
29708         Based on a suggestion by Ralf Wildenhues.
29709
29710 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29711
29712         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29713         Check for unistd.h too, since Autoconf doesn't assume POSIX.
29714         Also:
29715
29716         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29717         Add year_2050_test to catch glibc bug 2821
29718         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29719
29720         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29721         Prefer #ifdef to #if.
29722
29723         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29724         Return from 'main' instead of calling 'exit'.
29725
29726 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29727
29728         * lib/mktime.c (guess_time_tm): Fix bug where mktime
29729         returned the maximum time_t value rather than (time_t) -1.
29730         Problem originally reported by William Bardwell
29731         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29732
29733         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29734         Moved to here ...
29735         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29736         ... from here.
29737
29738 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29739
29740         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29741         2821 is fixed.
29742
29743 2006-09-08  Jim Meyering  <jim@meyering.net>
29744
29745         Don't make generated files read-only.  That would bother too many
29746         people.  However, do retain the ability to work when targets are
29747         read-only: remove the destination and temporary files before writing
29748         them (when generated via sed or echo), or by using the -f option for
29749         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
29750         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29751         * modules/byteswap, modules/configmake, modules/fcntl:
29752         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29753         * modules/localcharset, modules/netinet_in, modules/poll:
29754         * modules/stdbool, modules/stdint, modules/sys_select:
29755         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29756
29757 2006-09-08  Jim Meyering  <jim@meyering.net>
29758
29759         Avoid new build failure on FreeBSD 6.0.
29760         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29761         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
29762         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29763
29764 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29765
29766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29767
29768 2006-09-07  Jim Meyering  <jim@meyering.net>
29769
29770         Fix global typo in last change: use chmod u-w, not chmod u-x.
29771         Spotted by Paul Eggert and Bruce Korb.
29772         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29773         * modules/byteswap, modules/configmake, modules/fcntl:
29774         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29775         * modules/localcharset, modules/netinet_in, modules/poll:
29776         * modules/stdbool, modules/stdint, modules/sys_select:
29777         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29778
29779 2006-09-06  Jim Meyering  <jim@meyering.net>
29780
29781         Make generated files be read-only.
29782         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29783         Ensure that each generated file is now read-only.
29784         * modules/argz: Likewise.
29785         * modules/arpa_inet: Likewise.
29786         * modules/byteswap: Likewise.
29787         * modules/configmake: Likewise.
29788         * modules/fcntl: Likewise.
29789         * modules/fnmatch: Likewise.
29790         * modules/getopt: Likewise.
29791         * modules/glob: Likewise.
29792         * modules/inttypes: Likewise.
29793         * modules/netinet_in: Likewise.
29794         * modules/poll: Likewise.
29795         * modules/stdbool: Likewise.
29796         * modules/stdint: Likewise.
29797         * modules/sys_select: Likewise.
29798         * modules/sys_socket: Likewise.
29799         * modules/sys_stat: Likewise.
29800         * modules/sysexits: Likewise.
29801         * modules/localcharset: Same as above, but continue using temporary
29802         file named "t-$@" (why different?) rather than the "$@-t" used
29803         everywhere else.
29804
29805         * modules/sysexits (Makefile.am): Replace literal occurrences
29806         of "sysexit.h" more readable, and more consistent, "$@".
29807
29808 2006-09-06  Bruno Haible  <bruno@clisp.org>
29809
29810         * modules/striconv: New file.
29811         * modules/xstriconv: New file.
29812         * MODULES.html.sh (Internationalization functions): Add striconv,
29813         xstriconv.
29814
29815 2006-09-06  Bruno Haible  <bruno@clisp.org>
29816
29817         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29818         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29819         not using libtool correctly.
29820
29821 2006-09-06  Bruno Haible  <bruno@clisp.org>
29822
29823         * lib/striconv.h: New file.
29824         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29825         iconvstring.c.
29826         * lib/xstriconv.h: New file.
29827         * lib/xstriconv.c: New file.
29828
29829 2006-09-06  Bruno Haible  <bruno@clisp.org>
29830
29831         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29832         lib_..._LDFLAGS.
29833
29834 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29835
29836         * lib/argz_.h: Sync from Libtool.
29837
29838         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29839                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29840
29841         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29842
29843 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29844
29845         * modules/trim: New file.
29846
29847 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29848
29849         * lib/trim.h: New file.
29850         * lib/trim.c: New file.
29851
29852 2006-09-05  Bruno Haible  <bruno@clisp.org>
29853
29854         * MODULES.html.sh (String handling): Add trim.
29855
29856 2006-09-04  Karl Berry  <karl@gnu.org>
29857
29858         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29859         until next release.
29860
29861 2006-09-03  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29864         correctly.
29865
29866 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29867
29868         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29869         not gl_GETLOADAVG.  Omit unneeded semicolons.
29870         Problems reported by Ralf Wildenhues in
29871         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29872         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29873         at the end, which is the usual gnulib style.
29874
29875         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29876         of doing all the work ourselves.
29877         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29878         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29879
29880 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29881
29882         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29883         Problem reported by Ralf Wildenhues in
29884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29885
29886         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29887         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29888
29889 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29890
29891         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29892         yesterday's patch by changing test -n to test -z.
29893
29894 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29895
29896         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29897         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29898         the former is now obsolescent.
29899
29900         * modules/chdir-long (Depends-on): Add fcntl.
29901
29902 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29903
29904         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29905         obsolescent, and programs should use gnulib instead.
29906         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29907         but with prefixes changed.
29908
29909 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29910
29911         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29912         or stdbool.h, because they might not exist while configuring.
29913
29914         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29915         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29916         does that for us.
29917         (O_DIRECTORY): Remove.
29918
29919 2006-08-31  Eric Blake  <ebb9@byu.net>
29920
29921         * gnulib-tool: Don't let emacs change spaces to TAB.
29922
29923 2006-08-31  Bruno Haible  <bruno@clisp.org>
29924
29925         * gnulib-tool: When calling func_import more than once, do it in a
29926         subshell.
29927         Reported by Eric Blake <ebb9@byu.net>.
29928
29929 2006-08-31  Bruno Haible  <bruno@clisp.org>
29930
29931         * gnulib-tool (nl): Remove variable.
29932         (sed_transform_lib_file): Use more robust test for config-h module.
29933         (func_import): Fix typo in 2006-08-25 patch.
29934
29935 2006-08-31  Bruno Haible  <bruno@clisp.org>
29936
29937         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29938         specified, augment Makefile.am variables instead of assigning them.
29939
29940 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29941
29942         Work around a bug in both the Linux and SunOS 64-bit kernels:
29943         nanosleep mishandles sleeps for longer than 2**31 seconds.
29944         Problem reported by Frank v Waveren in
29945         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29947         Check for nanosleep bug.
29948         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29949
29950 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29951
29952         Work around a bug in both the Linux and SunOS 64-bit kernels:
29953         nanosleep mishandles sleeps for longer than 2**31 seconds.
29954         Problem reported by Frank v Waveren in
29955         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29956         * lib/nanosleep.c (BILLION): New constant.
29957         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29958         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29959         implementation.
29960
29961 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29962
29963         * modules/nanosleep (Depends-on): Add gettime.
29964
29965 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29966         and Simon Josefsson  <jas@extundo.com>
29967         and Oskar Liljeblad  <oskar@osk.mine.nu>
29968
29969         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29970         * gnulib-tool (func_import): New license type 'unmodifiable license
29971         text'.
29972         * modules/fdl: Use it.  Longer description.
29973         * module/gpl, module/lgpl: New files.
29974
29975 2006-08-30  Jim Meyering  <jim@meyering.net>
29976
29977         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29978         shadowing the parameter.
29979
29980 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29981
29982         Sync from Libtool:
29983
29984         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29985
29986         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29987         sharing with gnulib.  Report by Eric Blake.
29988
29989 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29990
29991         * modules/isapipe: New file.
29992         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29993
29994 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         * modules/configmake (Makefile.am): Add a comment, and omit
29997         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29998         by Bruno Haible.
29999
30000 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30001
30002         * m4/isapipe.m4: New file.
30003
30004 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         * lib/isapipe.c, lib/isapipe.h: New files.
30007
30008 2006-08-29  Jim Meyering  <jim@meyering.net>
30009
30010         * modules/configmake (Makefile.am): Make configmake.h depend on
30011         Makefile.  Otherwise, a stale configmake.h could hang around.
30012
30013 2006-08-29  Eric Blake  <ebb9@byu.net>
30014
30015         * lib/error.c (error_at_line, print_errno_message): Match libc, after
30016         resolution of upstream bug 3044.
30017
30018 2006-08-29  Bruno Haible  <bruno@clisp.org>
30019
30020         * modules/localcharset (Depends-on): Add configmake.
30021         (Makefile.am): Remove setting of LIBDIR through DEFS.
30022
30023 2006-08-29  Bruno Haible  <bruno@clisp.org>
30024
30025         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
30026         defined.
30027
30028 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30029
30030         * modules/fcntl: New file.
30031         * modules/chdir-safer (Depends-on): Add fcntl.
30032         * modules/fts: Likewise.
30033         * modules/mkdir-p: Likewise.
30034
30035         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
30036         This undoes the most recent change, since we're now addressing the
30037         problem in a different way.
30038
30039         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
30040         into output, since the output might be called Makefile.am even
30041         if $makefile_name is something different.
30042         (func_import): Use $makefile_am rather than
30043         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
30044         empty.
30045
30046         * modules/inttypes (Files): Add m4/inttypes-h.m4.
30047
30048 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30049
30050         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
30051         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
30052         recent change to stdint.m4, since we're now addressing the problem in a
30053         different way.
30054
30055 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30056
30057         * m4/fcntl_h.m4: New file.
30058
30059 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30060
30061         * lib/fcntl_.h: New file.
30062         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
30063         the fcntl module.
30064         * lib/dirchownmod.c: Likewise.
30065         * lib/fts.c: Likewise.
30066
30067         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
30068         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
30069         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
30070         just before including <inttypes.h>, to avoid circular inclusion.
30071
30072 2006-08-28  Jim Meyering  <jim@meyering.net>
30073
30074         * doc/visibility.texi: Actually read and correct the grammar of the
30075         sentence affected by yesterday's change.
30076
30077 2006-08-28  Eric Blake  <ebb9@byu.net>
30078
30079         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
30080         needs wrapper.
30081
30082 2006-08-28  Eric Blake  <ebb9@byu.net>
30083
30084         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
30085
30086 2006-08-28  Eric Blake  <ebb9@byu.net>
30087
30088         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
30089
30090 2006-08-28  Bruno Haible  <bruno@clisp.org>
30091
30092         * modules/c-strstr: New file, from GNU gettext.
30093         * MODULES.html.sh (String handling): Add c-strstr.
30094
30095 2006-08-28  Bruno Haible  <bruno@clisp.org>
30096
30097         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
30098         macros.
30099         Reported by Eric Blake.
30100
30101 2006-08-28  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
30104         (VASNPRINTF): Return a string of length > INT_MAX without failing.
30105         * lib/vasprintf.c: Include errno.h, limits.h.
30106         (EOVERFLOW): New fallback definition.
30107         (vasprintf): Test here whether the string length is > INT_MAX.
30108         * lib/vsnprintf.c: Include errno.h, limits.h.
30109         (EOVERFLOW): New fallback definition.
30110         (vsnprintf): Fix bug when generated string was too long for the buffer.
30111         Test here whether the string length is > INT_MAX.
30112
30113 2006-08-28  Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/inttypes_.h (SCNX*): Remove definitions.
30116         Reported by Eric Blake.
30117
30118 2006-08-28  Bruno Haible  <bruno@clisp.org>
30119
30120         * lib/c-strstr.h: New file, from GNU gettext.
30121         * lib/c-strstr.c: New file, from GNU gettext.
30122
30123 2006-08-28  Bruno Haible  <bruno@clisp.org>
30124
30125         * gnulib-tool: Reorder some statements.
30126
30127 2006-08-28  Bruno Haible  <bruno@clisp.org>
30128
30129         * gnulib-tool: New option --makefile-name.
30130         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
30131         $makefile_name.
30132         (func_import): Write $makefile_name to the cache file, and read it from
30133         there unless explicitly specified. Use $makefile_name as file name
30134         instead of Makefile.am. Adjust the recommendations accordingly.
30135
30136 2006-08-28  Bruno Haible  <bruno@clisp.org>
30137
30138         * gnulib-tool (func_verify_module): Check against misapplying patch.
30139
30140 2006-08-28  Bruno Haible  <bruno@clisp.org>
30141
30142         * gnulib-tool (func_relativize, func_relconcat): New functions.
30143         Give an error if --local-dir is given with --update.
30144         Remove trailing slashes from $local_gnulib_dir.
30145         (func_import): Store the relativized $local_gnulib_dir in
30146         gnulib-cache.m4, and read it from there if not specified explicitly.
30147
30148 2006-08-28  Bruno Haible  <bruno@clisp.org>
30149
30150         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
30151         is the current directory. Respect also $local_gnulib_dir.
30152
30153 2006-08-28  Bruno Haible  <bruno@clisp.org>
30154             Simon Josefsson  <jas@extundo.com>
30155
30156         BeOS portability.
30157         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
30158
30159 2006-08-27  Jim Meyering  <jim@meyering.net>
30160
30161         * doc/visibility.texi: Remove duplicate word: "pointer".
30162
30163 2006-08-26  Bruno Haible  <bruno@clisp.org>
30164
30165         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
30166         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
30167         (Makefile.am): Create inttypes.h from inttypes_.h.
30168         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
30169
30170         * modules/imaxabs: New file.
30171
30172         * modules/imaxdiv: New file.
30173
30174 2006-08-26  Bruno Haible  <bruno@clisp.org>
30175
30176         * m4/inttypes.m4: New file.
30177         * m4/_inttypes_h.m4: Remove file.
30178         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
30179         PRI_MACROS_BROKEN.
30180         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
30181
30182         * m4/imaxabs.m4: New file.
30183
30184         * m4/imaxdiv.m4: New file.
30185
30186 2006-08-26  Bruno Haible  <bruno@clisp.org>
30187
30188         * lib/inttypes_.h: New file.
30189         * lib/inttypes.h: Remove file.
30190         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
30191
30192         * lib/imaxabs.c: New file.
30193
30194         * lib/imaxdiv.c: New file.
30195
30196 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30197
30198         New config-h module, so that "make" output needn't be cluttered
30199         by -DHAVE_CONFIG_H.
30200         * MODULES.html.sh (Support for building libraries and executables):
30201         Add config-h.
30202         * modules/config-h: New file.
30203         * gnulib-tool (nl, sed_transform_lib_file): New vars.
30204         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
30205         the config-h module is used.
30206
30207         New configmake module, so that "make" output needn't be cluttered
30208         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
30209         * MODULES.html.sh (Support for building libraries and executables):
30210         Add configmake.
30211         * modules/configmake: New file.
30212
30213 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30214
30215         * m4/config-h.m4: New file.
30216
30217 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * config/srclist.txt: Add elisp-comp.
30220
30221 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30222
30223         * MODULES.html.sh (Support for building libraries and executables):
30224         Add elisp-comp.
30225         * build-aux/elisp-comp: New file.
30226         * modules/elisp-comp: New file.
30227
30228 2006-08-24  Bruno Haible  <bruno@clisp.org>
30229
30230         * gnulib-tool (func_create_testdir): Use non-default values of
30231         sourcebase and m4base.
30232
30233 2006-08-24  Bruno Haible  <bruno@clisp.org>
30234
30235         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
30236         HTML structure.
30237
30238 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30239
30240         * modules/openat (Depends-on): Add lchown.
30241
30242 2006-08-23  Bruno Haible  <bruno@clisp.org>
30243
30244         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
30245         of gl_LOCK_EARLY instead of gl_LOCK.
30246
30247 2006-08-23  Bruno Haible  <bruno@clisp.org>
30248
30249         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
30250         on OSF/1 to no.
30251         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
30252
30253 2006-08-23  Bruno Haible  <bruno@clisp.org>
30254
30255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
30256         as unusable.
30257
30258         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
30259         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
30260         (gl_LOCK): New macro.
30261
30262 2006-08-22  Simon Josefsson  <jas@extundo.com>
30263
30264         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
30265         to md5 module.
30266
30267 2006-08-22  Simon Josefsson  <jas@extundo.com>
30268
30269         * MODULES.html.sh: Add "Support for maintaining and release
30270         projects".
30271
30272         * build-aux/gnupload: New file, from coreutils.
30273
30274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30275
30276         Avoid the need for AC_LIBSOURCES in m4 macros.
30277         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
30278         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
30279         * modules/check-version (EXTRA_DIST): Add check-version.h.
30280         * modules/crc (EXTRA_DIST): Add crc.h.
30281         * modules/des (EXTRA_DIST): Add des.h.
30282         * modules/gc (EXTRA_DIST): Add gc.h.
30283         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
30284         * modules/getline (EXTRA_DIST): Add getline.h.
30285         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
30286         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
30287         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
30288         * modules/md2 (EXTRA_DIST): Add md2.h.
30289         * modules/md4 (EXTRA_DIST): Add md4.h.
30290         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
30291         * modules/read-file (EXTRA_DIST): Add read-file.h.
30292         * modules/readline (EXTRA_DIST): Add readline.h.
30293         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
30294         rijndael-api-fst.h.
30295
30296 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30297
30298         * m4/rijndael.m4 (gl_ARCFOUR):
30299         * m4/arctwo.m4 (gl_ARCTWO):
30300         * m4/check-version.m4 (gl_CHECK_VERSION):
30301         * m4/crc.m4 (gl_CRC):
30302         * m4/des.m4 (gl_DES):
30303         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
30304         * m4/gc.m4 (gl_GC):
30305         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
30306         * m4/getline.m4 (gl_FUNC_GETLINE):
30307         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
30308         * m4/hmac-md5.m4 (gl_HMAC_MD5):
30309         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
30310         * m4/md2.m4 (gl_MD2):
30311         * m4/md4.m4 (gl_MD4):
30312         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
30313         * m4/read-file.m4 (gl_FUNC_READ_FILE):
30314         * m4/readline.m4 (gl_FUNC_READLINE):
30315         * m4/rijndael.m4 (gl_RIJNDAEL):
30316         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30317         to get the necessary .h files and whatnot.
30318
30319 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30320
30321         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
30322         gnulib rather than the other way around.
30323         * config/srclistvars.sh (COREUTILS): Remove.
30324
30325 2006-08-22  Jim Meyering  <jim@meyering.net>
30326
30327         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
30328
30329         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
30330
30331 2006-08-22  Eric Blake  <ebb9@byu.net>
30332
30333         * modules/regexprops-generic: New file.
30334         * MODULES.html.sh (Support for building documentation): List it.
30335
30336 2006-08-22  Eric Blake  <ebb9@byu.net>
30337
30338         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
30339         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30340         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
30341         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30342
30343 2006-08-22  Bruno Haible  <bruno@clisp.org>
30344
30345         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
30346         and lib_LTLIBRARIES like the other lib_* variables.
30347
30348 2006-08-22  Bruno Haible  <bruno@clisp.org>
30349
30350         * build-aux/x-to-1.in: New file, from GNU gettext.
30351
30352 2006-08-22  Bruno Haible  <bruno@clisp.org>
30353
30354         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
30355         <utmpx.h> exists.
30356
30357 2006-08-22  Bruno Haible  <bruno@clisp.org>
30358
30359         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
30360         <utmpx.h> exists.
30361
30362 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30363
30364         BeOS portability.
30365         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
30366         exist.
30367         Problem reported by Bruno Haible.
30368
30369 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30370
30371         Avoid the need for AC_LIBSOURCES in m4 macros.
30372         * modules/acl (EXTRA_DIST): Add acl.h.
30373         * modules/argmatch (Files): Add m4/argmatch.m4.
30374         (configure.ac): Add gl_ARGMATCH.
30375         (EXTRA_DIST): Renamed from lib_SOURCES, for
30376         consistency with the other modules.  Remove argmatch.c.
30377         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
30378         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
30379         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
30380         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
30381         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
30382         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
30383         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
30384         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
30385         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
30386         * modules/closeout (EXTRA_DIST): Add closeout.h.
30387         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
30388         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
30389         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
30390         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
30391         dirname.h; remove basename.c and stripslash.c.
30392         * modules/exclude (EXTRA_DIST): Add exclude.h.
30393         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
30394         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
30395         * modules/file-type (EXTRA_DIST): Add file-type.h.
30396         * modules/filemode (EXTRA_DIST): Add filemode.h.
30397         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
30398         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30399         * modules/fpending (EXTRA_DIST): Add __fpending.h.
30400         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
30401         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
30402         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
30403         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
30404         * modules/getdate (EXTRA_DIST): Add getdate.c.
30405         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
30406         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
30407         * modules/getpass (EXTRA_DIST): Add getpass.h.
30408         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
30409         * modules/group-member (EXTRA_DIST): Add group-member.h.
30410         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
30411         * modules/hash (EXTRA_DIST): Add hash.h.
30412         * modules/human (EXTRA_DIST): Add human.h.
30413         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
30414         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
30415         * modules/lchown (EXTRA_DIST): Add lchown.h.
30416         * modules/long-options (EXTRA_DIST): Add long-options.h.
30417         * modules/lstat (EXTRA_DIST): Add lstat.h.
30418         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
30419         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
30420         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
30421         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
30422         * modules/memxor (EXTRA_DIST): Add memxor.h.
30423         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
30424         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
30425         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
30426         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
30427         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
30428         * modules/physmem (EXTRA_DIST): Add physmem.h.
30429         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
30430         * modules/posixver (EXTRA_DIST): Add posixver.h.
30431         * modules/quote (EXTRA_DIST): Add quote.h.
30432         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
30433         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
30434         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
30435         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
30436         regex_internal.h regexec.c.
30437         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
30438         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
30439         * modules/same (EXTRA_DIST): Add same.h.
30440         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
30441         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
30442         * modules/savedir (EXTRA_DIST): Add savedir.h.
30443         * modules/sha1 (EXTRA_DIST): Add sha1.h.
30444         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
30445         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
30446         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
30447         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
30448         * modules/strdup (EXTRA_DIST): Add strdup.h.
30449         * modules/strftime (EXTRA_DIST): Add strftime.h.
30450         * modules/strndup (EXTRA_DIST): Add strndup.h.
30451         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
30452         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
30453         * modules/time_r (EXTRA_DIST): Add time_r.h.
30454         * modules/timespec (EXTRA_DIST): Add timespec.h.
30455         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30456         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
30457         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
30458         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
30459         * modules/userspec (EXTRA_DIST): Add userspec.h.
30460         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
30461         * modules/utimens (EXTRA_DIST): Add utimens.h.
30462         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
30463         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
30464         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
30465         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
30466         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
30467         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
30468         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
30469         * modules/yesno (EXTRA_DIST): Add yesno.h.
30470
30471 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30472
30473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
30474
30475         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
30476         * m4/dev-ino.m4, same-inode.m4: Remove.
30477
30478         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
30479         * m4/acl.m4 (AC_FUNC_ACL):
30480         * m4/backupfile.m4 (gl_BACKUPFILE):
30481         * m4/c-strtod.m4 (gl_C99_STRTOLD):
30482         * m4/canon-host.m4 (gl_CANON_HOST):
30483         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
30485         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
30486         * m4/cloexec.m4 (gl_CLOEXEC):
30487         * m4/close-stream.m4 (gl_CLOSE_STREAM):
30488         * m4/closeout.m4 (gl_CLOSEOUT):
30489         * m4/dirfd.m4 (gl_FUNC_DIRFD):
30490         * m4/dirname.m4 (gl_DIRNAME):
30491         * m4/exclude.m4 (gl_EXCLUDE):
30492         * m4/exitfail.m4 (gl_EXITFAIL):
30493         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
30494         * m4/file-type.m4 (gl_FILE_TYPE):
30495         * m4/filemode.m4 (gl_FILEMODE):
30496         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
30497         * m4/fpending.m4 (gl_FUNC_FPENDING):
30498         * m4/fprintftime.m4 (gl_FPRINTFTIME):
30499         * m4/fts.m4 (gl_FUNC_FTS):
30500         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
30501         * m4/getdate.m4 (gl_GETDATE):
30502         * m4/gethrxtime.m4 (gl_GETHRXTIME):
30503         * m4/getpagesize.m4 (gl_GETPAGESIZE):
30504         * m4/getpass.m4 (gl_FUNC_GETPASS):
30505         * m4/gettime.m4 (gl_GETTIME):
30506         * m4/getugroups.m4 (gl_GETUGROUPS):
30507         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
30508         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
30509         * m4/hard-locale.m4 (gl_HARD_LOCALE):
30510         * m4/hash.m4 (gl_HASH):
30511         * m4/idcache.m4 (gl_IDCACHE):
30512         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
30513         * m4/lchown.m4 (gl_FUNC_LCHOWN):
30514         * m4/long-options.m4 (gl_LONG_OPTIONS):
30515         * m4/lstat.m4 (gl_FUNC_LSTAT):
30516         * m4/md5.m4 (gl_MD5):
30517         * m4/memcasecmp.m4 (gl_MEMCASECMP):
30518         * m4/memcoll.m4 (gl_MEMCOLL):
30519         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
30520         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
30521         * m4/memxor.m4 (gl_MEMXOR):
30522         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
30523         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
30524         * m4/modechange.m4 (gl_MODECHANGE):
30525         * m4/mountlist.m4 (gl_MOUNTLIST):
30526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30527         * m4/openat.m4 (gl_FUNC_OPENAT):
30528         * m4/pathmax.m4 (gl_PATHMAX):
30529         * m4/physmem.m4 (gl_PHYSMEM):
30530         * m4/posixtm.m4 (gl_POSIXTM):
30531         * m4/posixver.m4 (gl_POSIXVER):
30532         * m4/quote.m4 (gl_QUOTE):
30533         * m4/quotearg.m4 (gl_QUOTEARG):
30534         * m4/readtokens.m4 (gl_READTOKENS):
30535         * m4/readutmp.m4 (gl_READUTMP):
30536         * m4/regex.m4 (gl_REGEX):
30537         * m4/safe-read.m4 (gl_SAFE_READ):
30538         * m4/safe-write.m4 (gl_SAFE_WRITE):
30539         * m4/same.m4 (gl_SAME):
30540         * m4/save-cwd.m4 (gl_SAVE_CWD):
30541         * m4/savedir.m4 (gl_SAVEDIR):
30542         * m4/settime.m4 (gl_SETTIME):
30543         * m4/sha1.m4 (gl_SHA1):
30544         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
30545         * m4/stat-macros.m4 (gl_STAT_MACROS):
30546         * m4/stat-time.m4 (gl_STAT_TIME):
30547         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
30548         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
30549         * m4/strdup.m4 (gl_FUNC_STRDUP):
30550         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
30551         * m4/strndup.m4 (gl_FUNC_STRNDUP):
30552         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
30553         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
30554         * m4/time_r.m4 (gl_TIME_R):
30555         * m4/timespec.m4 (gl_TIMESPEC):
30556         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
30557         * m4/unlinkdir.m4 (gl_UNLINKDIR):
30558         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
30559         * m4/userspec.m4 (gl_USERSPEC):
30560         * m4/utimecmp.m4 (gl_UTIMECMP):
30561         * m4/utimens.m4 (gl_UTIMENS):
30562         * m4/xalloc.m4 (gl_XALLOC):
30563         * m4/xgetcwd.m4 (gl_XGETCWD):
30564         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
30565         * m4/xreadlink.m4 (gl_XREADLINK):
30566         * m4/xstrtod.m4 (gl_XSTRTOD):
30567         * m4/yesno.m4 (gl_YESNO):
30568         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30569         to get the necessary .h files and whatnot.
30570
30571 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
30572             Bruno Haible  <bruno@clisp.org>
30573
30574         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
30575         /bin/sh understanding of '!' conditional negation.
30576
30577 2006-08-21  Jim Meyering  <jim@meyering.net>
30578
30579         * modules/openat (Depends-on): Really alphabetize.
30580
30581         * modules/acl (Depends-on): Add error and quote.
30582
30583         * check-module (find_included_lib_files): Add at-func.c to the
30584         ok-to-include-more-than-once white list.
30585
30586         * modules/openat (Depends-on): Add lstat.  Alphabetize.
30587
30588 2006-08-21  Bruno Haible  <bruno@clisp.org>
30589
30590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30591         Emit a pkgdata_DATA variable only if some snippets add contents to it.
30592         Reported by Martin Lambers <marlam@marlam.de>.
30593
30594 2006-08-21  Bruno Haible  <bruno@clisp.org>
30595
30596         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
30597         specify an installation location, don't emit a noinst_LIBRARIES or
30598         noinst_LTLIBRARIES assignment.
30599
30600 2006-08-21  Bruno Haible  <bruno@clisp.org>
30601
30602         BeOS portability.
30603         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
30604         BeOS has mbrtowc() but no <wctype.h>.
30605
30606 2006-08-21  Bruno Haible  <bruno@clisp.org>
30607
30608         BeOS portability.
30609         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
30610         exist.
30611
30612 2006-08-21  Bruno Haible  <bruno@clisp.org>
30613
30614         BeOS portability.
30615         * lib/mbchar.h: Include <wctype.h> only if it exists.
30616
30617 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30618
30619         Remove files that are no longer needed by their respective modules.
30620         * m4/obstack.m4: Remove.
30621         * m4/strerror_r.m4: Remove.
30622         * m4/uint32_t.m4: Remove.
30623         * m4/uintptr_t.m4: Remove.
30624         * m4/ullong_max.m4: Remove.
30625         * m4/xstrtoimax.m4: Remove.
30626         * m4/xstrtoumax.m4: Remove.
30627
30628         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
30629         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
30630         dependencies now capture this.
30631
30632         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30633         Do not use AC_LIBSOURCES, since gnulib modules now do this.
30634         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
30635         * m4/human.m4 (gl_HUMAN): Likewise.
30636         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
30637         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
30638
30639         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
30640
30641         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
30642         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
30643         stdint.
30644         * m4/human.m4 (gl_HUMAN): Likewise.
30645         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
30646         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
30647         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30648         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30649         * m4/xstrtol (gl_XSTRTOL): Likewise.
30650
30651         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
30652         AC_TYPE_LONG_LONG_INT.
30653         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30654         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
30655         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
30656         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30657
30658         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
30659         on stdbool.
30660
30661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
30662         (gl_PREREQ_XSTRTOUL): Remove.
30663
30664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
30665
30666         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
30667         mode.
30668
30669 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30670
30671         Add and change modules to make it easier for coreutils to use
30672         gnulib-tool.
30673         * modules/backupfile (Files): Remove m4/d-ino.m4.
30674         (Depends-on): Add d-ino.
30675         * modules/cycle-check (Depends-on): Add stdint.
30676         (lib_SOURCES): Add cycle-check.h.
30677         * modules/d-ino: New module.
30678         * modules/d-type: New module.
30679         * modules/error (Files): Remove m4/strerror_r.m4.
30680         * modules/filemode (Files): Add m4/st_dm_mode.m4.
30681         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
30682         m4/inttypes_h.m4, m4/uintmax_t.m4.
30683         (Depends-on): Add stdint.
30684         (lib_SOURCES): Add fsusage.h.
30685         * modules/getcwd (Files): Remove d-ino.m4.
30686         (Depends-on): Add d-ino.
30687         * modules/getndelim2 (Depends-on): Add stdint.
30688         * modules/glob (Files): Remove m4/d-type.m4.
30689         (Depends-on): Add d-type.
30690         * modules/host-os: New module.
30691         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
30692         m4/inttypes_h.m4, m4/uintmax_t.m4.
30693         * Depends-on: Add stdint.
30694         (lib_SOURCES): Add human.h.
30695         * modules/inttostr (Files): Remove m4/intmax_t.m4,
30696         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
30697         m4/uintmax_t.m4, m4/ulonglong.m4.
30698         (Depends-on): Add stdint.
30699         (EXTRA_DIST): Add inttostr.h.
30700         * modules/lchmod: New module.
30701         * modules/link-follow: New module.
30702         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
30703         (Depends-on): Add lchmod.
30704         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
30705         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
30706         (Depends-on): Add stdint.
30707         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
30708         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
30709         (Depends-on): Add stdint.
30710         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
30711         * modules/perl: New module.
30712         * modules/regex (Depends-on): Add stdint.
30713         * modules/rmdir-errno: New module.
30714         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30715         m4/intmax_t.m4.
30716         (Depends-on): Add stdint.
30717         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30718         m4/uintmax_t.m4.
30719         (Depends-on): Add stdint.
30720         * modules/unlink-busy: New module.
30721         * modules/utimecmp (Depends-on): Add stdint.
30722         * modules/uptime: New module.
30723         * modules/winsz-ioctl: New module.
30724         * modules/winsz-termios: New module.
30725         * modules/xnanosleep (Depends-on): Add nanosleep.
30726         * modules/ullong_max: Remove.
30727         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30728         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30729         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30730         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30731         (Depends-on): Add inttypes.
30732         (lib_SOURCES): Add xstrtol.h.
30733         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30734         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30735         * MODULES.html.sh: Move 'assert' into the assert section.
30736         Move 'dummy' into the linking section.
30737         Remove ullong_max.
30738         Add section for compatibility checks for POSIX:2001 functions,
30739         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30740         winsz-ioctl, and winsz-termios into it.
30741         Add lchmod.
30742         Add top-level Misc section and put host-os, perl, and uptime
30743         into it.
30744
30745 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30746
30747         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30748         now assume the stdint module.  Do not include inttypes.h.
30749         * lib/fsusage.h: Likewise.
30750         * lib/getndelim2.c: Likewise.
30751         * lib/human.h: Likewise.
30752         * lib/inttostr.h: Likewise.
30753         * lib/obstack.c: Likewise.
30754         * lib/regex_internal.h: Likewise.
30755         * lib/tempname.c: Likewise.
30756         * lib/utimecmp.c: Likewise.
30757         * lib/xstrtol.h: Likewise.
30758
30759         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30760
30761         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30762         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30763         * lib/xtime.h: Likewise.
30764
30765 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30766
30767         * modules/openat (Files): Add lib/fchmodat.c.
30768         Fixes problem reported by Jay Youngman.
30769
30770 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30771
30772         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
30773         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
30774
30775 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30776             Bruno Haible  <bruno@clisp.org>
30777
30778         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30779         and is a script that invokes bison. Tighten the code. Add comments.
30780
30781 2006-08-18  Jim Meyering  <jim@meyering.net>
30782
30783         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30784         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30785         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30786         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30787
30788 2006-08-18  Bruno Haible  <bruno@clisp.org>
30789
30790         * modules/bison-i18n: New file.
30791         * MODULES.html.sh (Internationalization functions): Add it.
30792
30793 2006-08-18  Bruno Haible  <bruno@clisp.org>
30794
30795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30796         sys/statvfs.h. When getmntinfo was found, check its declaration and
30797         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30798
30799 2006-08-18  Bruno Haible  <bruno@clisp.org>
30800
30801         * m4/bison-i18n.m4: New file, from bison.
30802
30803 2006-08-18  Bruno Haible  <bruno@clisp.org>
30804
30805         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30806         (ME_DUMMY): Treat "kernfs" as a dummy.
30807         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30808
30809 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30810
30811         Update from coreutils.
30812
30813         2006-08-15  Jim Meyering  <jim@meyering.net>
30814
30815         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30816
30817         2006-01-17  Jim Meyering  <jim@meyering.net>
30818
30819         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30820
30821         2006-01-11  Jim Meyering  <jim@meyering.net>
30822
30823         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30824         Check for the lchmod function.
30825
30826 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30827
30828         Update from coreutils.
30829
30830         * lib/__fpending.h: Add copyright notice.
30831         * lib/fprintftime.h: Likewise.
30832         * lib/savedir.c: Use (C) in copyright notice.
30833         * lib/savedir.h: Likewise.
30834
30835         2006-08-15  Jim Meyering  <jim@meyering.net>
30836
30837         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30838         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30839         in support of the EXPECTED_ERRNO macro.
30840         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30841         definitions.  Instead, define the appropriate symbols and include
30842         "at-func.c".
30843         * lib/mkdirat.c (mkdirat): Likewise.
30844         * lib/fchmodat.c (fchmodat): Likewise.
30845         (ENOSYS): Remove definition.
30846         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30847         it.  Don't include "unistd--.h" -- it wasn't ever used.
30848
30849         2006-01-17  Jim Meyering  <jim@meyering.net>
30850
30851         Rewrite fts.c not to change the current working directory,
30852         by using openat, fstatat, fdopendir, etc..
30853
30854         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30855         (HAVE_OPENAT_SUPPORT): Define.
30856         [_LIBC] (fchdir): Don't undef or define; no longer used.
30857         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30858         Now, this `function' always succeeds, and consumes its file descriptor
30859         parameter -- so callers must not close such FDs.  Update callers.
30860         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30861         (diropen): Add parameter, SP.  Adjust all callers.
30862         Implement using diropen_fd, rather than open.
30863         (fts_open): Initialize new member, fts_cwd_fd.
30864         Remove fts_rft-setting code.
30865         (fts_close): Close fts_cwd_fd, if necessary.
30866         (__opendir2): Define in terms of opendir or opendirat,
30867         depending on whether the FST_NOCHDIR flag is set.
30868         (fts_build): Since fts_safe_changedir consumes its FD, and since
30869         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30870         and close the dup'd file descriptor upon failure.
30871         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30872         (fts_safe_changedir): Tweak semantics to reflect that this function
30873         now calls cwd_advance_fd and hence consumes its FD argument.
30874         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30875         [struct FTS] (fts_rft): Remove now-unused member.
30876         [struct FTS] (fts_cycle.state): Improve comment.
30877
30878         * lib/openat.c (openat_needs_fchdir): New function.
30879         * lib/openat.h (openat_needs_fchdir): Declare it.
30880
30881 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30882
30883         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30884         Problem and fix reported by Pádraig Brady in
30885         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30886
30887 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30888
30889         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30890
30891 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30892
30893         * lib/memcoll.c (memcoll): Optimize for the common case where the
30894         arguments are bytewise equal.
30895
30896 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30897
30898         * doc/regexprops-generic.texi: Add a copyright notice.
30899
30900 2006-08-15  Bruno Haible  <bruno@clisp.org>
30901
30902         * modules/tmpdir (License): Change to LGPL.
30903
30904 2006-08-15  Bruno Haible  <bruno@clisp.org>
30905
30906         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30907         module.
30908
30909 2006-08-14  Simon Josefsson  <jas@extundo.com>
30910
30911         * config/srclist.txt: Add gnupload.
30912
30913 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30914
30915         Change copyright notice from LGPL 2 to GPL 2, since that's the
30916         standard form used in the gnulib repository.
30917         * tests/test-lock.c: Likewise.
30918         * tests/test-stdint.c: Likewise.
30919         * tests/test-tls.c: Likewise.
30920
30921         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30922         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30923         Add copyright notice.
30924
30925         * check-module: Add copyright notice.  Output a copyright
30926         notice if "--version" is specified.
30927         * modules/COPYING: New file.
30928         * tests/test-getaddrinfo.c: Add copyright notice.
30929         * tests/test-verify.c: Likewise.
30930
30931 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30932
30933         Change copyright notice from LGPL 2 to GPL 2, since that's the
30934         standard form used in the gnulib repository.
30935         * lib/lock.c: LGPL -> GPL.
30936         * lib/lock.h: Likewise.
30937         * lib/strnlen1.c: Likewise.
30938         * lib/strnlen1.h: Likewise.
30939         * lib/tls.c: Likewise.
30940         * lib/tls.h: Likewise.
30941         * lib/tmpdir.c: Likewise.
30942
30943         * lib/TODO: Remove; this belongs only in coreutils.
30944
30945 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30946
30947         Add copyright notices to long-enough files that lack them, since
30948         otherwise the files aren't clearly free.  Use the same notice that
30949         getdate.texi already uses.
30950         * doc/alloca-opt.texi: Add copyright notice.
30951         * doc/alloca.texi: Likewise.
30952         * doc/ctime.texi: Likewise.
30953         * doc/functions.texi: Likewise.
30954         * doc/gcd.texi: Likewise.
30955         * doc/gnulib-tool.texi: Likewise.
30956         * doc/inet_ntoa.texi: Likewise.
30957         * doc/visibility.texi: Likewise.
30958
30959         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30960         * doc/quote.texi: Add copyright notice.
30961
30962         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30963         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30964         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30965         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30966         is now obsolete, and give a pointer to the Sun list.
30967         Add copyright notice.
30968
30969 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         * config/srclistvars.sh: Add copyright notice.
30972
30973 2006-08-14  Eric Blake  <ebb9@byu.net>
30974
30975         Import the following change from libc:
30976
30977         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30978
30979         Upstream bug 2997.
30980         * lib/misc/error.c: Add space between program name and message if file
30981         name is missing.
30982
30983 2006-08-12  Karl Berry  <karl@gnu.org>
30984
30985         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30986         remove, these originate in gnulib now.
30987
30988 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30989
30990         * doc/Makefile (standards.info standards.html standards.dvi):
30991         Also depend on make-stds.texi.
30992
30993 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30994
30995         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30996         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30997
30998         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30999         in wchar_t.  Problem reported by Eric Blake.
31000
31001         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
31002         LEN is smaller than SIZE.  Suggested by Bruno Haible.
31003         Also, help the compiler to keep LEN in a register.
31004
31005 2006-08-11  Eric Blake  <ebb9@byu.net>
31006
31007         * users.txt: Sort.  Add tar.
31008
31009 2006-08-11  Bruno Haible  <bruno@clisp.org>
31010
31011         * users.txt: New file.
31012
31013 2006-08-11  Bruno Haible  <bruno@clisp.org>
31014
31015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
31016         before <wchar.h>. Needed for OSF/1 and BSD/OS.
31017
31018 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31019
31020         * modules/snprintf (Depends-on): Remove minmax.
31021         (Maintainer): Add self and Bruno.
31022
31023 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * lib/.cppi-disable: Add snprintf.h, socket_.h.
31026         * lib/snprintf.c: Include <errno.h> and <limits.h>.
31027         (EOVERFLOW): Define if the system does not.
31028         Do not include "minmax.h"; it wasn't used.
31029         (snprintf): Don't assume size_t promotes to an unsigned type.
31030         Fix bug when generated string was too long for the buffer: the
31031         buffer's contents are supposed to be the initial prefix of the
31032         output.  Don't assume vasnprintf returns EOVERFLOW if the size
31033         exceeds INT_MAX; do the check ourselves.
31034
31035         Import the following changes from libc:
31036
31037         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
31038
31039         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
31040         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
31041         set wc to the byte which couldn't be converted.
31042         (re_string_reconstruct): Don't clear valid_raw_len before calling
31043         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
31044         tip_context using re_string_context_at.
31045
31046         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
31047
31048         * lib/posix/regex.h: g++ still cannot handled [restrict].
31049
31050         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
31051
31052         * lib/posix/regex.h: Remove special handling for VMS.
31053
31054 2006-08-10  Jim Meyering  <jim@meyering.net>
31055
31056         * modules/same-inode: New module.
31057         * modules/dev-ino: New module.
31058         * modules/cycle-check: Depend on these modules, rather than simply
31059         including their .h files.
31060         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
31061         required via m4/cycle-check.m4.
31062         * modules/same: Depend on new same-inode module, rather than
31063         including same-inode.h.
31064         * modules/chdir-safer: New file.
31065
31066         * modules/chown (Depends-on): Add stat-macros.
31067
31068 2006-08-10  Jim Meyering  <jim@meyering.net>
31069
31070         * m4/cycle-check.m4: New file.
31071         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
31072         * m4/dev-ino.m4, m4/same-inode.m4: New files.
31073
31074 2006-08-10  Eric Blake  <ebb9@byu.net>
31075
31076         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
31077         in from original proposal.
31078
31079 2006-08-10  Eric Blake  <ebb9@byu.net>
31080         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31081
31082         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
31083         namespace.
31084
31085 2006-08-10  Bruno Haible  <bruno@clisp.org>
31086
31087         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
31088         as well.
31089
31090 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31091
31092         Sync from coreutils.
31093
31094         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
31095
31096         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
31097         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
31098
31099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31100
31101         * modules/restrict: Remove; no longer needed now that we assume
31102         Autoconf 2.59 or later.
31103         * MODULES.html.sh: Remove 'restrict'.
31104         * modules/argp (Depends-on): Remove 'restrict'.
31105         * modules/base64 (Depends-on): Likewise.
31106         * modules/gc (Depends-on): Likewise.
31107         * modules/getaddrinfo (Depends-on): Likewise.
31108         * modules/glob (Depends-on): Likewise.
31109         * modules/inet_ntop (Depends-on): Likewise.
31110         * modules/inet_pton (Depends-on): Likewise.
31111         * modules/memxor (Depends-on): Likewise.
31112         * modules/regex (Depends-on): Likewise.
31113         * modules/strtok_r (Depends-on): Likewise.
31114         * modules/time_r (Depends-on): Likewise.
31115
31116 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31117
31118         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
31119         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
31120         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31121         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
31122         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
31123         * m4/memxor.m4 (gl_MEMXOR): Likewise.
31124         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
31125         gl_C_RESTRICT replaced by AC_C_RESTRICT.
31126
31127         Merge from coreutils.
31128         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
31129         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
31130         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31131         * m4/time_r.m4 (gl_TIME_R): Likewise.
31132
31133 2006-08-09  Karl Berry  <karl@gnu.org>
31134
31135         * config/srclist.txt: no more gettext-tools, per Bruno.
31136
31137 2006-08-08  Eric Blake  <ebb9@byu.net>
31138
31139         * modules/verror: New module.
31140         * MODULES.html.sh: Document it.
31141
31142 2006-08-08  Eric Blake  <ebb9@byu.net>
31143
31144         * lib/verror.h, lib/verror.c: New files.
31145
31146 2006-08-08  Eric Blake  <ebb9@byu.net>
31147
31148         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
31149         verror_at_line output complies with GNU Coding Standards even when
31150         file is NULL.
31151
31152 2006-08-07  Bruno Haible  <bruno@clisp.org>
31153
31154         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
31155         versions of AIX.
31156         Reported by Ralf Wildenhues.
31157
31158 2006-08-07  Bruno Haible  <bruno@clisp.org>
31159
31160         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
31161         in an AC_DEFUN. Needed so that the autoconf snippets can use
31162         AC_REQUIRE.
31163
31164 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31165
31166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31167         Initialize pkgdata_DATA.
31168         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
31169         overriding it.
31170
31171 2006-08-06  Eric Blake  <ebb9@byu.net>
31172
31173         * lib/error.h: Fold in some upstream changes from glibc.
31174         * lib/error.c: Likewise.
31175
31176 2006-08-04  Bruno Haible  <bruno@clisp.org>
31177
31178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31179         Make the mostlyclean-local rule depend on mostlyclean-generic.
31180         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
31181
31182 2006-07-31  Bruno Haible  <bruno@clisp.org>
31183
31184         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
31185         <stdlib.h>, <string.h>.
31186
31187 2006-07-30  Bruno Haible  <bruno@clisp.org>
31188
31189         * modules/readlink (License): Change to LGPL.
31190
31191 2006-07-30  Bruno Haible  <bruno@clisp.org>
31192
31193         * modules/javaversion (Makefile.am): Distribute javaversion.java and
31194         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
31195         set PKGDATADIR to point to it.
31196
31197 2006-07-30  Bruno Haible  <bruno@clisp.org>
31198
31199         * modules/csharpexec (configure.ac): Comment out macro invocation.
31200         * modules/javaexec (configure.ac): Likewise.
31201         * modules/javacomp-script (configure.ac): Likewise.
31202
31203         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
31204
31205 2006-07-30  Bruno Haible  <bruno@clisp.org>
31206
31207         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
31208         linked-list.
31209
31210 2006-07-30  Bruno Haible  <bruno@clisp.org>
31211
31212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
31213
31214 2006-07-30  Bruno Haible  <bruno@clisp.org>
31215
31216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31217         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
31218         get removed.
31219
31220 2006-07-29  Bruno Haible  <bruno@clisp.org>
31221
31222         Make it possible for gnulib-tool to work with locally modified or
31223         augmented gnulib repositories.
31224         * gnulib-tool (func_usage): Document --local-dir option.
31225         (local_gnulib_dir): New variable.
31226         Handle --local-dir option.
31227         (func_lookup_file): New function.
31228         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
31229         (func_get_description, func_get_filelist, func_get_description,
31230         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
31231         func_get_automake_snippet, func_get_include_directive,
31232         func_get_license, func_get_maintainer): Use func_lookup_file.
31233         (func_import, func_create_testdir): Use func_lookup_file.
31234
31235 2006-07-29  Bruno Haible  <bruno@clisp.org>
31236
31237         * modules/setenv (Depends-on): Add unistd.
31238
31239 2006-07-29  Bruno Haible  <bruno@clisp.org>
31240
31241         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
31242
31243 2006-07-29  Bruno Haible  <bruno@clisp.org>
31244
31245         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
31246
31247 2006-07-29  Bruno Haible  <bruno@clisp.org>
31248
31249         * gnulib-tool (import, update): If there is no Makefile.am, look at
31250         aclocal.m4, instead of bailing out.
31251
31252 2006-07-29  Bruno Haible  <bruno@clisp.org>
31253
31254         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
31255         Categorize the options by when they are useful.
31256
31257 2006-07-29  Bruno Haible  <bruno@clisp.org>
31258
31259         * gnulib-tool (func_usage): Document option --no-libtool.
31260         Handle option --no-libtool.
31261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
31262         for changed semantics of $libtool variable.
31263         (func_import): Likewise. If libtool is not used, show this through
31264         an option --no-libtool.
31265         (func_create_testdir): Update.
31266
31267 2006-07-29  Bruno Haible  <bruno@clisp.org>
31268
31269         * gnulib-tool (func_import): Extend error message about missing
31270         --doc-base.
31271
31272 2006-07-29  Bruno Haible  <bruno@clisp.org>
31273
31274         * gnulib-tool (func_import): Don't create the $docbase directory if
31275         there is no file to store there.
31276
31277 2006-07-29  Bruno Haible  <bruno@clisp.org>
31278
31279         * gnulib-tool (autoconf_minversion): If a --dir option is given and
31280         relevant, look for configure.ac there, not in the current directory.
31281         Also use a simple search for AC_PREREQ, not "autoconf --trace".
31282
31283 2006-07-29  Bruno Haible  <bruno@clisp.org>
31284
31285         * gnulib-tool (SORT): New variable.
31286         (func_usage): Undocument --assume-autoconf option.
31287         Remove --assume-autoconf option handling.
31288         (autoconf_minversion): Determine from the contents of configure.ac.
31289         (func_import): Remove autoconf_minversion handling.
31290         Suggested by Eric Blake.
31291
31292 2006-07-29  Bruno Haible  <bruno@clisp.org>
31293
31294         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
31295
31296 2006-07-29  Bruno Haible  <bruno@clisp.org>
31297
31298         * config/srclist.txt (*setenv.[ch]): Remove rules.
31299
31300 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31301
31302         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
31303
31304 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31305
31306         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
31307         arpa/inet.h.
31308
31309 2006-07-28  Simon Josefsson  <jas@extundo.com>
31310
31311         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
31312         * modules/inet_pton (Depends-on): Likewise.
31313
31314 2006-07-28  Simon Josefsson  <jas@extundo.com>
31315
31316         * m4/netinet_in_h.m4: New file.
31317
31318 2006-07-28  Simon Josefsson  <jas@extundo.com>
31319
31320         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
31321         #include's.
31322
31323 2006-07-28  Simon Josefsson  <jas@extundo.com>
31324
31325         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
31326         #include's.
31327
31328 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
31329
31330         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
31331         setgid on directories only if they set these bits.
31332         * lib/modechange.h: Remove obsolete comment about masks.
31333
31334 2006-07-28  Eric Blake  <ebb9@byu.net>
31335
31336         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
31337         macro expansion.
31338
31339 2006-07-28  Bruno Haible  <bruno@clisp.org>
31340
31341         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
31342
31343 2006-07-28  Bruno Haible  <bruno@clisp.org>
31344
31345         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
31346
31347 2006-07-28  Bruno Haible  <bruno@clisp.org>
31348
31349         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31350         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31351         Define fallbacks.
31352         Avoids link error on FreeBSD 4.x.
31353         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31354
31355         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
31356         encoding.
31357         * lib/mbswidth.c (iswcntrl): Likewise.
31358
31359 2006-07-27  Bruno Haible  <bruno@clisp.org>
31360
31361         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
31362         test.
31363
31364 2006-07-27  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
31367         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
31368         defined.
31369
31370 2006-07-26  Eric Blake  <ebb9@byu.net>
31371
31372         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
31373
31374 2006-07-26  Eric Blake  <ebb9@byu.net>
31375
31376         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
31377         like mingw that lack mkstemp.
31378         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
31379         avoid compilation warning on mingw.
31380
31381 2006-07-26  Bruno Haible  <bruno@clisp.org>
31382
31383         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
31384         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
31385         INT_FAST*_MIN, INTPTR_MIN.
31386
31387 2006-07-25  Bruno Haible  <bruno@clisp.org>
31388
31389         * modules/version-etc (Depends-on): Add stdarg.
31390
31391 2006-07-25  Bruno Haible  <bruno@clisp.org>
31392
31393         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
31394         complex commands.
31395
31396 2006-07-25  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
31399         defined in <stdarg.h> or config.h.
31400
31401 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31402
31403         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
31404         (gl_STDIO_SAFER): Remove.
31405
31406 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31407
31408         * MODULES.html.sh (File stream based Input/Output):
31409         Add fopen-safer, tmpfile-safer; remove stdio-safer.
31410         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
31411         * modules/fopen-safer, modules/tmpfile-safer: New files.
31412         * modules/stdio-safer: Remove.
31413
31414 2006-07-24  Bruno Haible  <bruno@clisp.org>
31415
31416         * modules/tmpdir: New file.
31417         * MODULES.html.sh (File system functions): Add it.
31418
31419 2006-07-24  Bruno Haible  <bruno@clisp.org>
31420
31421         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
31422         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
31423
31424 2006-07-24  Bruno Haible  <bruno@clisp.org>
31425
31426         * modules/clean-temp: New file.
31427
31428 2006-07-24  Bruno Haible  <bruno@clisp.org>
31429
31430         * m4/tmpdir.m4: New file, from GNU gettext.
31431
31432 2006-07-24  Bruno Haible  <bruno@clisp.org>
31433
31434         * lib/tmpdir.h: New file, from GNU gettext.
31435         * lib/tmpdir.c: New file, from GNU gettext.
31436
31437 2006-07-24  Bruno Haible  <bruno@clisp.org>
31438
31439         * lib/clean-temp.h: New file, from GNU gettext.
31440         * lib/clean-temp.c: New file, from GNU gettext.
31441
31442 2006-07-23  Eric Blake  <ebb9@byu.net>
31443
31444         * modules/stdio-safer (Files): Add tmpfile-safer.c.
31445         (Depends-on): Add binary-io.
31446
31447 2006-07-23  Eric Blake  <ebb9@byu.net>
31448
31449         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
31450
31451 2006-07-23  Eric Blake  <ebb9@byu.net>
31452
31453         * lib/tmpfile-safer.c: New file.
31454         * lib/stdio-safer.h (fopen_safer): Add prototype.
31455         * lib/stdio--.h (tmpfile): Make safer.
31456
31457 2006-07-23  Bruno Haible  <bruno@clisp.org>
31458
31459         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
31460         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
31461         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
31462         gl_linked_remove_at): Use it.
31463
31464 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31465         and Simon Josefsson <jas@extundo.com>
31466
31467         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
31468
31469         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
31470
31471 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31472
31473         * modules/close-stream: New file.
31474         * modules/closeout (Description): Make it clear that it exits
31475         with a diagnostic on error.
31476         (Depends-on): Add close-stream.  Remove fpending, stdbool.
31477         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
31478
31479 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31480
31481         * m4/close-stream.m4: New file.
31482
31483 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31484
31485         * lib/close-stream.c, lib/close-stream.h: New files.
31486
31487 2006-07-22  Bruno Haible  <bruno@clisp.org>
31488
31489         Merge from GNU gettext 0.15.
31490
31491         2006-05-01  Bruno Haible  <bruno@clisp.org>
31492
31493                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
31494
31495         2006-07-22  Bruno Haible  <bruno@clisp.org>
31496
31497                 * modules/javaversion: New file.
31498                 * MODULES.html.sh (Java): Add javaversion.
31499
31500         2006-03-12  Bruno Haible  <bruno@clisp.org>
31501
31502                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
31503
31504         2005-12-04  Bruno Haible  <bruno@clisp.org>
31505
31506                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
31507                 (untested).
31508
31509         2006-06-21  Bruno Haible  <bruno@clisp.org>
31510
31511                 Avoid warnings from recent versions of mcs.
31512                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
31513                 -o, -L, -r any more. Use options documented since mcs-1.0
31514                 instead. Similarly for -g.
31515
31516         2005-12-04  Bruno Haible  <bruno@clisp.org>
31517
31518                 * build-aux/csharpcomp.sh.in: Suffix for resources is
31519                 .resources, not .resource.
31520
31521         2005-07-09  Bruno Haible  <bruno@clisp.org>
31522
31523                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
31524                 add a .dll suffix.
31525                 Reported by Mark Junker <mjscod@gmx.de>.
31526
31527         2006-07-22  Bruno Haible  <bruno@clisp.org>
31528
31529                 * modules/gettext: Upgrade to gettext-0.15.
31530                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
31531                 m4/visibility.m4.
31532                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
31533
31534 2006-07-22  Bruno Haible  <bruno@clisp.org>
31535
31536         Merge from GNU gettext 0.15.
31537
31538         2006-03-25  Bruno Haible  <bruno@clisp.org>
31539
31540                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
31541
31542         2006-07-21  Bruno Haible  <bruno@clisp.org>
31543
31544                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
31545                 "1.1".
31546
31547         2006-05-09  Bruno Haible  <bruno@clisp.org>
31548
31549                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
31550                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
31551                 for the conftestver execution.
31552
31553         2006-05-01  Bruno Haible  <bruno@clisp.org>
31554
31555                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
31556                 optional target-version argument. Verify that the compiler
31557                 groks source of the specified source-version, or add -source
31558                 option as necessary. Verify that the compiler produces
31559                 bytecode in the specified target-version, or add -target and
31560                 -source options as necessary. Make the result of the test
31561                 available as variable CONF_JAVAC. Also log error output in
31562                 config.log.
31563
31564         2006-03-11  Bruno Haible  <bruno@clisp.org>
31565
31566                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
31567
31568         2006-05-09  Bruno Haible  <bruno@clisp.org>
31569
31570                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
31571                 CLASSPATH_SEPARATOR to a semicolon.
31572
31573         2006-03-12  Bruno Haible  <bruno@clisp.org>
31574
31575                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
31576                 available as variable CONF_JAVA, for subsequent autoconf
31577                 tests. Also log error output in config.log.
31578
31579         2006-07-19  Bruno Haible  <bruno@clisp.org>
31580
31581                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
31582                 that getline works on glibc2 systems. Needed to avoid trouble
31583                 in relocatable.c.
31584                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
31585
31586         2005-12-04  Bruno Haible  <bruno@clisp.org>
31587
31588                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
31589                 launcher (untested).
31590
31591         2005-12-04  Bruno Haible  <bruno@clisp.org>
31592
31593                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
31594
31595         2006-07-22  Bruno Haible  <bruno@clisp.org>
31596
31597                 * gettext.m4: Update from GNU gettext-0.15.
31598                 * nls.m4: Likewise.
31599                 * po.m4: Likewise.
31600                 * inttypes-pri.m4: Likewise.
31601                 * inttypes-h.m4: Renamed from inttypes.m4.
31602                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
31603
31604 2006-07-22  Bruno Haible  <bruno@clisp.org>
31605
31606         Merge from GNU gettext 0.15.
31607
31608         2005-07-05  Bruno Haible  <bruno@clisp.org>
31609
31610                 * printf-args.c (printf_fetchargs): Work around broken
31611                 definition of wint_t on mingw.
31612
31613         2005-02-12  Bruno Haible  <bruno@clisp.org>
31614
31615                 * xallocsa.h: Add extern "C" for C++.
31616
31617         2006-05-17  Bruno Haible  <bruno@clisp.org>
31618
31619                 Cygwin portability.
31620                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
31621
31622         2006-04-30  Bruno Haible  <bruno@clisp.org>
31623
31624                 * progreloc.c: Include <mach-o/dyld.h> if available.
31625                 (find_executable): Use _NSGetExecutablePath when possible.
31626
31627         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31628
31629                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
31630                 function.
31631
31632         2005-12-29  Bruno Haible  <bruno@clisp.org>
31633
31634                 * progreloc.c (set_program_name_and_installdir): Fix
31635                 compilation error.
31636
31637         2005-12-04  Bruno Haible  <bruno@clisp.org>
31638
31639                 Cygwin portability.
31640                 * progreloc.c: Include <windows.h> also on Cygwin.
31641                 (find_executable): Add support for Cygwin.
31642                 (set_program_name_and_installdir): Handle also platforms with
31643                 nonempty EXEEXT.
31644
31645         2006-07-11  Bruno Haible  <bruno@clisp.org>
31646
31647                 * javacomp.c: Fix a comment.
31648                 Reported by Jim Meyering.
31649
31650         2006-04-30  Bruno Haible  <bruno@clisp.org>
31651
31652                 * javacomp.h (compile_java_class): Add source_version,
31653                 target_version arguments.
31654                 * javacomp.c: Rewritten to choose only a compiler that
31655                 respects the specified source_version and target_version.
31656
31657         2006-06-27  Bruno Haible  <bruno@clisp.org>
31658
31659                 Assume correct S_ISDIR macro.
31660                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
31661
31662         2006-07-22  Bruno Haible  <bruno@clisp.org>
31663
31664                 * javaversion.h: New file, from GNU gettext.
31665                 * javaversion.c: New file, from GNU gettext.
31666                 * javaversion.java: New file, from GNU gettext.
31667                 * javaversion.class: New file, from GNU gettext.
31668
31669         2006-05-17  Bruno Haible  <bruno@clisp.org>
31670
31671                 Cygwin portability.
31672                 * javaexec.c (execute_java_class): Test for jview program
31673                 also on Cygwin.
31674
31675         2006-04-09  Bruno Haible  <bruno@clisp.org>
31676
31677                 * fatal-signal.c: Don't include string.h.
31678                 (at_fatal_signal): Use a copying loop instead of memcpy.
31679
31680         2005-12-04  Bruno Haible  <bruno@clisp.org>
31681
31682                 * csharpexec.c: Add support for 'clix' launcher (untested).
31683                 (execute_csharp_using_sscli): New function.
31684                 (execute_csharp_program): Call it.
31685
31686         2006-06-21  Bruno Haible  <bruno@clisp.org>
31687
31688                 Avoid warnings from recent versions of mcs.
31689                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
31690                 -o, -L, -r any more. Use options documented since mcs-1.0
31691                 instead. Similarly for -g.
31692
31693         2005-07-09  Bruno Haible  <bruno@clisp.org>
31694
31695                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
31696                 add a .dll suffix.
31697                 Reported by Mark Junker <mjscod@gmx.de>.
31698
31699         2006-06-17  Bruno Haible  <bruno@clisp.org>
31700
31701                 * config.charset: Update for NetBSD 3.0.
31702
31703         2006-05-17  Bruno Haible  <bruno@clisp.org>
31704
31705                 Cygwin portability.
31706                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
31707
31708         2006-05-16  Bruno Haible  <bruno@clisp.org>
31709
31710                 * localcharset.c [CYGWIN]: Include <windows.h>.
31711                 (get_charset_aliases): For Cygwin, return the same CPxxx
31712                 aliases list as under WIN32.
31713                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
31714                 the environment variables. Fall back to GetACP().
31715
31716         2006-04-05  Bruno Haible  <bruno@clisp.org>
31717
31718                 * config.charset: Update Juan Manuel Guerrero's address.
31719
31720         2005-02-12  Bruno Haible  <bruno@clisp.org>
31721
31722                 * allocsa.h: Add extern "C" for C++.
31723
31724         2005-02-10  Bruno Haible  <bruno@clisp.org>
31725
31726                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31727                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31728
31729         2006-07-22  Bruno Haible  <bruno@clisp.org>
31730
31731                 * gettext.h: Update to GNU gettext-0.15.
31732
31733 2006-07-22  Bruno Haible  <bruno@clisp.org>
31734
31735         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31736         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31737         lib-prefix.m4, longdouble.m4, ssize_t.m4.
31738
31739 2006-07-21  Eric Blake  <ebb9@byu.net>
31740
31741         * modules/stdlib-safer: New file.
31742         * MODULES.html.sh (File stream based Input/Output): Add
31743         stdlib-safer.
31744
31745 2006-07-21  Eric Blake  <ebb9@byu.net>
31746
31747         * lib/stdlib-safer.h: New file from coreutils, required by
31748         stdlib--.h.
31749
31750 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31751
31752         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31753
31754 2006-07-20  Bruno Haible  <bruno@clisp.org>
31755
31756         * gnulib-tool: Recognize new option --assume-autoconf.
31757         (autoconf_minversion): New variable.
31758         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31759
31760 2006-07-20  Bruno Haible  <bruno@clisp.org>
31761
31762         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31763
31764 2006-07-19  Derek R. Price  <derek@ximbiot.com>
31765
31766         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31767         Reindent and repaginate.
31768
31769 2006-07-19  Derek Price  <derek@ximbiot.com>
31770
31771         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
31772         Correct grammar.
31773
31774 2006-07-17  Bruno Haible  <bruno@clisp.org>
31775
31776         * modules/list: New file.
31777         * modules/array-list: New file.
31778         * modules/carray-list, modules/carray-list-tests: New files.
31779         * modules/linked-list, modules/linked-list-tests: New files.
31780         * modules/avltree-list, modules/avltree-list-tests: New files.
31781         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31782         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31783         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31784         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31785         * modules/oset: New file.
31786         * modules/array-oset: New file.
31787         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31788         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31789         * tests/test-carray_list.c: New file.
31790         * tests/test-linked_list.c: New file.
31791         * tests/test-avltree_list.c: New file.
31792         * tests/test-rbtree_list.c: New file.
31793         * tests/test-linkedhash_list.c: New file.
31794         * tests/test-avltreehash_list.c: New file.
31795         * tests/test-rbtreehash_list.c: New file.
31796         * tests/test-avltree_oset.c: New file.
31797         * tests/test-rbtree_oset.c: New file.
31798         * MODULES.html.sh (Container data structures): New section.
31799
31800 2006-07-17  Bruno Haible  <bruno@clisp.org>
31801
31802         * m4/gl_list.m4: New file.
31803
31804 2006-07-17  Bruno Haible  <bruno@clisp.org>
31805
31806         * lib/gl_list.h: New file.
31807         * lib/gl_list.c: New file.
31808         * lib/gl_array_list.h: New file.
31809         * lib/gl_array_list.c: New file.
31810         * lib/gl_carray_list.h: New file.
31811         * lib/gl_carray_list.c: New file.
31812         * lib/gl_linked_list.h: New file.
31813         * lib/gl_linked_list.c: New file.
31814         * lib/gl_anylinked_list1.h: New file.
31815         * lib/gl_anylinked_list2.h: New file.
31816         * lib/gl_avltree_list.h: New file.
31817         * lib/gl_avltree_list.c: New file.
31818         * lib/gl_anyavltree_list1.h: New file.
31819         * lib/gl_anyavltree_list2.h: New file.
31820         * lib/gl_rbtree_list.h: New file.
31821         * lib/gl_rbtree_list.c: New file.
31822         * lib/gl_anyrbtree_list1.h: New file.
31823         * lib/gl_anyrbtree_list2.h: New file.
31824         * lib/gl_anytree_list1.h: New file.
31825         * lib/gl_anytree_list2.h: New file.
31826         * lib/gl_linkedhash_list.h: New file.
31827         * lib/gl_linkedhash_list.c: New file.
31828         * lib/gl_anyhash_list1.h: New file.
31829         * lib/gl_anyhash_list2.h: New file.
31830         * lib/gl_avltreehash_list.h: New file.
31831         * lib/gl_avltreehash_list.c: New file.
31832         * lib/gl_rbtreehash_list.h: New file.
31833         * lib/gl_rbtreehash_list.c: New file.
31834         * lib/gl_anytreehash_list1.h: New file.
31835         * lib/gl_anytreehash_list2.h: New file.
31836
31837         * lib/gl_oset.h: New file.
31838         * lib/gl_oset.c: New file.
31839         * lib/gl_array_oset.h: New file.
31840         * lib/gl_array_oset.c: New file.
31841         * lib/gl_avltree_oset.h: New file.
31842         * lib/gl_avltree_oset.c: New file.
31843         * lib/gl_rbtree_oset.h: New file.
31844         * lib/gl_rbtree_oset.c: New file.
31845         * lib/gl_anytree_oset.h: New file.
31846
31847 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31848
31849         * m4/mkancesdirs.m4: New file.
31850         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31851         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31852         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31853         it.
31854
31855 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31856
31857         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31858         * lib/mkancesdirs.h: New files.
31859         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31860         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31861         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31862         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31863         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31864         callers changed.  Revamp internals significantly, by not
31865         attempting to create directories that are temporarily more
31866         permissive than the final results.  Do not attempt to use
31867         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31868         This removes some race conditions, fixes some bugs, and simplifies
31869         things.  Use new dirchownmod function to do owner and mode changes.
31870         * lib/mkdir-p.h: Likewise.
31871         * lib/modechange.c (octal_to_mode): New function.
31872         (struct mode_change): New member mentioned.
31873         (make_node_op_equals): New arg mentioned.  All callers changed.
31874         (mode_compile): Keep track of which mode bits the user has explicitly
31875         mentioned.
31876         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31877         New arg PMODE_BITS, to keep track of which mode bits the user
31878         mentioned; it treats S_ISUID and S_ISGID speciall.
31879         All callers changed.
31880         * lib/modechange.h: Likewise.
31881
31882 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31883
31884         * MODULES.html.sh: Add mkancestors.
31885         * modules/mkancesdirs: New module.
31886         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31887         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31888         The chdir-safer and afs files are now orphans; I'll remove them
31889         unless someone speaks up.
31890         Add lib/dirchownmod.c, lib/dirchownmod.h.
31891         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31892         Add lchown, mkancesdirs.
31893         (Maintainer): Add self.
31894
31895 2006-07-15  Karl Berry  <karl@gnu.org>
31896
31897         * gnulib-tool: help message wording/arrangement.
31898
31899 2006-07-14  Simon Josefsson  <jas@extundo.com>
31900
31901         * doc/gnulib.texi (Libtool and Windows): New section.
31902
31903 2006-07-12  Simon Josefsson  <jas@extundo.com>
31904
31905         * modules/gendocs (License): Fix license, approved by Karl.
31906
31907 2006-07-12  Eric Blake  <ebb9@byu.net>
31908
31909         * MODULES.html.sh: Add gendocs.
31910
31911 2006-07-11  Eric Blake  <ebb9@byu.net>
31912
31913         * modules/fdl: New module, to install doc/fdl.texi.
31914         * MODULES.html.sh: Add new section for documentation modules.
31915         * gnulib-tool: Avoid space-tab.
31916         (--doc-base): New option, to manage files from doc.
31917
31918 2006-07-11  Eric Blake  <ebb9@byu.net>
31919
31920         * m4/absolute-header.m4: Fix comments to match recent change.
31921
31922 2006-07-11  Eric Blake  <ebb9@byu.net>
31923
31924         * gnulib-tool: List --doc-base before --tests-base.
31925
31926 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31927
31928         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31929
31930 2006-07-11  Bruno Haible  <bruno@clisp.org>
31931
31932         * README: Mention where to put documentation.
31933
31934 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31935
31936         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31937
31938 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31939
31940         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31941         to stdint.m4.
31942
31943 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31944
31945         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31946         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31947         "no/such/file/stdint.h" when there is no such file, so that
31948         the resulting C code can be parsed by dodgy compilers.
31949         Problems reported by Bob Proulx.
31950
31951 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31952
31953         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31954         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31955         macros into the GNU _D_EXACT_NAMLEN.
31956         * lib/savedir.c:  Likewise.
31957         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31958
31959 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31960         and Paul Eggert  <eggert@cs.ucla.edu>
31961
31962         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31963         * m4/savedir.m4:
31964         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31965         macros into the GNU _D_EXACT_NAMLEN.
31966
31967 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31968
31969         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31970         around the absolute name, to work around a problem with the HP-UX
31971         11.23 native C compiler, reported by Bob Proulx.
31972
31973 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31974
31975         * doc/maintain.texi, make-stds.texi: Sync from
31976         <http://savannah.gnu.org/projects/gnustandards>.
31977
31978 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31979
31980         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31981
31982 2006-07-09  Jim Meyering  <jim@meyering.net>
31983
31984         * m4/glob.m4: Remove a doubled word in a comment.
31985
31986 2006-07-09  Jim Meyering  <jim@meyering.net>
31987
31988         * lib/argp-pv.c: Remove a doubled word in a comment.
31989         * lib/check-version.c (check_version): Likewise.
31990         * lib/javacomp.c (compile_java_class): Likewise.
31991
31992 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31993
31994         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31995         for the benefit of people using Autoconf 2.60.  If you want to
31996         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31997         (or m4/onceonly.m4, if pre-2.57) manually.
31998
31999 2006-07-08  Jim Meyering  <jim@meyering.net>
32000
32001         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
32002         comment.
32003         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
32004         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
32005         comment.
32006
32007 2006-07-08  Jim Meyering  <jim@meyering.net>
32008
32009         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
32010
32011 2006-07-07  Simon Josefsson  <jas@extundo.com>
32012
32013         * tests/test-crc.c: Change expected crc value, the test vector
32014         were probably computed using the old broken crc.c?
32015
32016 2006-07-06  Simon Josefsson  <jas@extundo.com>
32017
32018         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
32019         now the canonical place for the M4 file).
32020
32021         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
32022         from the sys_socket dependency now.
32023
32024         * modules/inet_pton (Files): Ditto.
32025
32026         * modules/inet_ntop (Files): Ditto.
32027
32028 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32029
32030         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
32031         not gl_PREREQ_GETUSERSHELL.
32032
32033 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32034
32035         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
32036         with only one argument, for Autoconf 2.60.
32037         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
32038         expand to nothing, so add a shell command to avoid syntax error.
32039         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32040
32041 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32042
32043         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
32044
32045 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32046
32047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
32048         no longer needed.  Check for isblank decl.
32049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
32050         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
32051         of existence.
32052
32053 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32054
32055         * lib/getloadavg.c: Use __VMS, not VMS.
32056         * lib/getopt.c: Likewise.
32057         * lib/getpagesize.h: Likewise.
32058         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
32059         and probably does not work.
32060
32061 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32062
32063         * lib/.cppi-disable: Add wcwidth.
32064         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
32065         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
32066         (ISGRAPH): Remove.  All uses changed to isgraph.
32067         (FOLD) [!defined _LIBC]: Remove special case.
32068         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
32069         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
32070         HAVE_ISBLANK.
32071         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
32072         case.
32073
32074 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32075
32076         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
32077         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
32078         brackets.  Other minor changes to suppress some compiler
32079         warnings.
32080
32081 2006-07-06  Derek R. Price  <derek@ximbiot.com>
32082         and Paul Eggert  <eggert@cs.ucla.edu>
32083
32084         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
32085         of invoking obsolescent AC_HEADER_DIRENT macro.
32086         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
32087         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
32088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32090         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
32091         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32092         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
32093         * m4/readdir.m4: Remove; no longer needed.
32094
32095 2006-07-06  Derek R. Price  <derek@ximbiot.com>
32096         and Paul Eggert  <eggert@cs.ucla.edu>
32097
32098         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
32099         Don't worry about this obsolete case any more.
32100         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
32101         directories.
32102         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
32103         worry about this obsolete case any more.
32104         * lib/fts.c: Likewise.
32105         * lib/getcwd.c: Likewise.
32106         * lib/glob.h: Likewise.
32107         * lib/savedir.c: Likewise.
32108
32109 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32110
32111         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
32112         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
32113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
32114         needed.
32115         All uses removed.
32116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32117         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
32118         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
32119         needed.
32120         * m4/getdate.m4 (gl_GETDATE): Likewise.
32121         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
32122         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
32123         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
32124         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32125         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
32126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32127         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
32128         needed.
32129
32130 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32131
32132         * lib/memcasecmp.c: Include <limits.h>.
32133         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
32134         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
32135         Don't assume isdigit succeeds only on '0' through '9'.
32136
32137 2006-07-05  Eric Blake  <ebb9@byu.net>
32138
32139         * modules/getaddrinfo (Depends-on): Add snprintf.
32140
32141 2006-07-05  Eric Blake  <ebb9@byu.net>
32142
32143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
32144         to avoid 'header present but could not be compiled' on cygwin.
32145
32146 2006-07-05  Eric Blake  <ebb9@byu.net>
32147
32148         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
32149         missing from netdb.h.
32150         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
32151
32152 2006-07-05  Derek R. Price  <derek@ximbiot.com>
32153
32154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
32155         no longer needed.
32156         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
32157         * m4/getdate.m4 (gl_GETDATE): Likewise.
32158         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
32159         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
32160         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
32161         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32162         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32163
32164 2006-07-05  Derek R. Price  <derek@ximbiot.com>
32165
32166         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
32167         All uses of is_space replaced by isspace.
32168         * lib/exit.h: Don't talk about STDC_HEADERS.
32169         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
32170         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
32171         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
32172         replaced by isprint etc.
32173         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
32174         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32175         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
32176         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
32177         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
32178         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32179
32180 2006-07-05  Bruno Haible  <bruno@clisp.org>
32181
32182         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
32183         the function exists, before testing against AIX.
32184         Reported by Martin Lambers <marlam@marlam.de>.
32185
32186 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32187
32188         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
32189         From Mark D. Baushke.
32190
32191 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32192
32193         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
32194         to the absolute name, not just one, to bypass Sun C 5.8's
32195         "warning: #include of /usr/include/... may be non-portable".
32196
32197 2006-07-04  Eric Blake  <ebb9@byu.net>
32198
32199         * modules/dirname-tests: New test module.
32200         * tests/test-dirname.c: New file, replacing dirname.c
32201         TEST_DIRNAME section that was recently deleted.
32202
32203 2006-07-04  Bruno Haible  <bruno@clisp.org>
32204
32205         Assume ANSI C header files and <ctype.h> functions.
32206         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
32207         (mbsnwidth): Use isprint, iscntrl instead.
32208
32209 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32210
32211         Merge from coreutils.
32212         * MODULES.html.sh: Add xstrtold.
32213         * modules/xstrtold: New file.
32214         * modules/cycle-check (Files): Add lib/same-inode.h.
32215         * modules/dirname (Files): Add m4/double-slash-root.m4.
32216         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
32217         * modules/mkdir-p (Files): Add lib/same-inode.h.
32218         * modules/same (Files): Add lib/same-inode.h.
32219
32220 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32221
32222         * m4/absolute-header.m4: Renamed from full-header-path.m4.
32223         This is to keep the terminology clean; POSIX talks about
32224         "absolute pathnames", not "full pathnames", but the GNU
32225         Coding Standards say to use "path" for something else;
32226         so use "absolute" to keep both sides happy.
32227         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
32228         Set gl_absolute_header, not gl_full_header_path.
32229         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
32230         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
32231         All uses changed.
32232
32233         Merge from coreutils.
32234
32235         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32236
32237         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
32238         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
32239         want to require the building of c-strtod.o.
32240         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
32241         needs -lm directly.
32242         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
32243
32244         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32245
32246         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
32247         --as-needed option if available.  Problem reported by Albert Chin in
32248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
32249         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
32250         cc merely issues a bunch of annoying warnings for --as-needed
32251         (this problem was reported by Bob Proulx).  Also, try linking with
32252         -lm to detect a bug in binutils 2.16 (this problem was reported
32253         by Ralf Wildenhues).
32254
32255         2006-06-18  Jim Meyering  <jim@meyering.net>
32256
32257         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
32258         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
32259         macro.
32260         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
32261         also check for glibc-2.4's abort-inducing bug.
32262
32263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
32264         Low-probability clean-up should be to use rmdir to get rid of
32265         the just-created directory, not unlink.
32266
32267         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
32268         configure fail, and request a bug report to inform us about it.
32269         Add a comment that, barring reports to the contrary, in 2007 we'll
32270         assume ftruncate is universally available.
32271
32272         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32273
32274         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
32275
32276         2006-03-12  Jim Meyering  <jim@meyering.net>
32277
32278         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
32279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
32280         * m4/same.m4 (gl_SAME): Likewise.
32281         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
32282
32283         2006-03-11  Eric Blake  <ebb9@byu.net>
32284
32285         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
32286         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
32287         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
32288         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
32289
32290 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
32293         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
32294         reported by Mark D. Baushke, one in
32295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
32296
32297         Merge from coreutils.
32298
32299         * lib/.cppi-disable: Add stdint_.h.
32300         * lib/.cvsignore: Add stdint.h.
32301
32302         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32303
32304         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
32305         both double and long double versions.
32306         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
32307         * lib/xstrtold.c: New file.
32308         * lib/xstrtod.h (xstrtold): New decl.
32309
32310         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32311
32312         * lib/filemode.c (setst): Remove.
32313         (strmode): Rewrite to avoid setst.  This makes the code shorter,
32314         (arguably) clearer, and the generated code is a bit smaller on my
32315         Debian GNU/Linux stable x86 host.
32316
32317         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32318
32319         * lib/filemode.c: Include "filemode.h" first, to test the interface.
32320         Assume that filemode.h includes sys/types.h and sys/stat.h.
32321         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
32322         (ftypelet): Reorder to put common cases first, for efficiency.
32323         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
32324         to do 'M'.
32325         (strmode): Renamed from mode_string, and now stores 12 bytes instead
32326         of 10, for compatibility with FreeBSD.  All callers changed.
32327         (filemodestring): Now stores 12 bytes instead of 10, and sets file
32328         types that can't be deduced solely from st_mode.  First arg is now a
32329         const pointer.
32330         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
32331         (strmode): Renamed from mode_string.
32332         (filemodestring): New decl.
32333         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
32334         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
32335         needed.
32336         (S_ISPORT, S_ISWHT): New macros, if not already defined.
32337
32338         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32339
32340         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
32341         fsusage.h now does that.  Include fsusage.h first, to test interface.
32342         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
32343         at most one method (the old code could have generated decls that
32344         didn't conform to C89, not that this was ever exercised).
32345         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
32346
32347         2006-03-19  Jim Meyering  <jim@meyering.net>
32348
32349         Work even in a chroot where d_ino values for entries in "/"
32350         don't match the stat.st_ino values for the same names.
32351         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
32352         number, iterate through all entries again, using lstat instead.
32353         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
32354         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
32355
32356         * lib/getcwd.c (__getcwd): Clarify a comment.
32357         Use memcpy in place of a call to strcpy.
32358
32359         2006-03-12  Jim Meyering  <jim@meyering.net>
32360
32361         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
32362         matches that of the current directory (which we're about to chdir ".."
32363         out of), then save the dev-ino of the parent, instead.
32364
32365         * lib/same-inode.h (SAME_INODE): New file/macro.
32366         * lib/chdir-safer.c (SAME_INODE): Remove definition.
32367         Include "same-inode.h", instead.
32368         * lib/same.c: Likewise.
32369         * lib/cycle-check.h: Include "same-inode.h".
32370         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
32371         * lib/cycle-check.c (SAME_INODE): Remove definition.
32372         * lib/root-dev-ino.h: Include "same-inode.h".
32373
32374         2006-03-11  Eric Blake  <ebb9@byu.net>
32375
32376         * lib/same.c (same_name): s/base_name/last_component/
32377         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
32378         * lib/filenamecat.c (file_name_concat): Likewise.
32379
32380         2006-03-11  Eric Blake  <ebb9@byu.net>,
32381                     Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
32384         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
32385         drive prefix.
32386         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
32387         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
32388         (last_component): New method.
32389         * lib/dirname.c (dir_len): Determine when drive letters need a
32390         subsequent slash.  Preserve // when it is special.
32391         (dir_name): Don't append dot when drive letter is absolute.
32392         [TEST_DIRNAME]: Move into a full-blown gnulib test.
32393         * lib/basename.c (base_name): New semantics - malloc the result.
32394         Preserve // when it is special.  Preserve relative files that look
32395         like drive letters.
32396         (base_len): Preserve // when it is special.
32397         (last_component): New method, similar to old base_name semantics.
32398         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
32399         base_name.  Strip redundant slashes from ///.
32400
32401 2006-07-03  Jim Meyering  <jim@meyering.net>
32402
32403         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
32404         macro is used before the first cycle_check call.
32405
32406 2006-07-03  Eric Blake  <ebb9@byu.net>
32407
32408         * modules/dirname (Depends-on): Add xstrndup.
32409
32410 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32411
32412         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
32413         test cases, so that config.log is a bit easier to follow.
32414
32415 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32416
32417         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
32418         both are 64 bits, since this seems to be the tradition, and this
32419         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
32420         we ever run into a host that prefers long long to long in this
32421         case, we'll need another configure-time test.  Problem reported by
32422         Jim Meyering.
32423
32424 2006-07-02  Eric Blake  <ebb9@byu.net>
32425
32426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
32427
32428 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32429
32430         * modules/inttypes (Depends-on): No longer depends on stdint.
32431         * modules/stdint (Description): Say more about assumptions.
32432         Say that the fast types might differ.  Say macros are used.
32433         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
32434         (Makefile.am): Revise list of substituted symbols to match
32435         new stdint.m4.
32436         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
32437         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
32438         * tests/test-stdint.c (verify_same_types)
32439         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
32440         the code conforms to C99/C89.
32441         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
32442         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
32443
32444 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32445
32446         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
32447         but fix a bug, by requiring at least 64 bits.
32448         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
32449         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
32450         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
32451         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
32452
32453         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
32454         changes.  Make 2.59 a prerequisite.  Check and substitute for
32455         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
32456         inttypes.h.  Do not use special include files; just use the
32457         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
32458         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
32459         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
32460         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
32461         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
32462         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
32463         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
32464         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
32465         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
32466         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
32467         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
32468         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
32469         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
32470         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
32471         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
32472         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
32473         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
32474         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
32475         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
32476         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
32477         WINT_MAX.  Check for C99 conformance more strictly, by detecting
32478         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
32479         not check for things that C99 does not require, e.g., int8_t.  If
32480         a test isn't needed unless <stdint.h> isn't working, and is
32481         unlikely to be needed for any other reason, then don't do it
32482         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
32483         size_t, since we assume C89 freestanding at least.  Do not check
32484         for sig_atomic_t, wchar_t, or wint_t, since the code now does
32485         the right thing even if the types are not defined.  Instead use:
32486         (gl_STDINT_TYPE_PROPERTIES): New macro.
32487         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
32488         testing whether <sys/types.h> clashes, as Autoconf does this for
32489         us now.  All uses removed.
32490         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
32491         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
32492         (gl_CHECK_TYPE_SAME):
32493         Remove; no longer needed.
32494         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
32495         exists, since we'll return 0 anyway in that case.
32496         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
32497
32498 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32499
32500         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
32501         possible collision with system files.
32502         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
32503         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
32504         WCHAR_MIN and WCHAR_MAX in this case.
32505         (<stddef.h>): Do not include; no longer needed.
32506         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
32507         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
32508         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
32509         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
32510         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
32511         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
32512         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
32513         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
32514         !defined(__c99))]: Include in this case too, since it's harmless
32515         now.
32516         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
32517         dangerous to do so.
32518         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
32519         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
32520         (_STDINT_MIN, _STDINT_MAX): New macros.
32521         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
32522         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
32523         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
32524         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
32525         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
32526         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
32527         macros, not typedefs; this simplifies things quite a bit.
32528         Use long int for all types narrower than int64_t.
32529         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
32530         Define in terms of long long int or int64_t or long int,
32531         not int64_t or int32_t.  This saves some compile-time testing.
32532         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
32533         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
32534         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
32535         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
32536         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
32537         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
32538         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
32539         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
32540         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
32541         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
32542         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32543         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32544         undef any previous version and define our own version, for
32545         simplicity and consistency with the new macros for types.
32546         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32547         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32548         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
32549         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
32550         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
32551         @WINT_T_SUFFIX@ to keep things simple here.
32552         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
32553         Simplify by assuming typical 8/16/32/64 host, since we're
32554         already doing that elsewhere anyway.
32555         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
32556         and assume long long int is 64 bits if available.  This
32557         speeds up 'configure'.
32558
32559 2006-07-01  Eric Blake  <ebb9@byu.net>
32560
32561         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
32562         Reported by Andreas Buening.
32563
32564 2006-07-01  Eric Blake  <ebb9@byu.net>
32565
32566         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
32567
32568 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32569
32570         * lib/getaddrinfo.c: fixed typo
32571
32572 2006-06-29  Jim Meyering  <jim@meyering.net>
32573
32574         * modules/strftime (Maintainer): Add my name, since with the
32575         FPRINTFTIME changes strftime.c has forked from glibc.
32576
32577 2006-06-29  Eric Blake  <ebb9@byu.net>
32578
32579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
32580
32581 2006-06-29  Eric Blake  <ebb9@byu.net>
32582
32583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
32584
32585 2006-06-29  Eric Blake  <ebb9@byu.net>
32586
32587         * lib/stat_.h: New file.
32588
32589 2006-06-29  Eric Blake  <ebb9@byu.net>
32590
32591         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
32592         unused static function.
32593
32594 2006-06-29  Eric Blake  <ebb9@byu.net>
32595
32596         * doc/functions.texi (Function Portability): Document missing lstat
32597         on mingw.
32598
32599 2006-06-29  Eric Blake  <ebb9@byu.net>
32600
32601         * MODULES.html.sh: Add sys_stat.
32602         * modules/sys_stat: New module.
32603         * modules/mkstemp (Depends-on): Add sys_stat.
32604
32605 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32606
32607         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
32608
32609 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32610
32611         * m4/c-bs-a.m4: Removed.
32612
32613 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32614
32615         * lib/strftime.c: Assume strftime() exists.
32616
32617 2006-06-29  Derek Price  <derek@ximbiot.com>
32618
32619         * modules/c-bs-a: Removed - \a is C89.
32620         * MODULES.html.sh: Remove c-bs-a.
32621
32622 2006-06-29  Bruno Haible  <bruno@clisp.org>
32623
32624         * modules/wcwidth (License): Change to LGPL.
32625
32626 2006-06-28  Simon Josefsson  <jas@extundo.com>
32627
32628         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
32629         on _WIN32.
32630
32631         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
32632         getnameinfo.
32633
32634 2006-06-28  Simon Josefsson  <jas@extundo.com>
32635
32636         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
32637
32638 2006-06-28  Simon Josefsson  <jas@extundo.com>
32639
32640         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
32641         functions there.  It will succeed on Windows XP, but on Windows
32642         2000 and (presumably) earlier, it will fail, and use the internal
32643         re-implementation.
32644         (use_win32_p): New function.
32645         (getaddrinfo): Use strtoul on servname, to support numeric ports.
32646         Support AI_NUMERICSERV to disable getservbyname.
32647         (getnameinfo): New function, only supports
32648         NI_NUMERICHOST|NI_NUMERICSERV for now.
32649
32650         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
32651         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
32652         getnameinfo.
32653
32654 2006-06-28  Eric Blake  <ebb9@byu.net>
32655
32656         * modules/wcwidth: New file.
32657         * modules/mbchar (Depends-on): Add wcwidth.
32658         * modules/mbswidth (Depends-on): Add wcwidth.
32659         * MODULES.html.sh: Add wcwidth.
32660
32661 2006-06-28  Eric Blake  <ebb9@byu.net>
32662
32663         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
32664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
32665
32666 2006-06-28  Eric Blake  <ebb9@byu.net>
32667
32668         * lib/xvasprintf.h: Fix comments.
32669
32670 2006-06-28  Eric Blake  <ebb9@byu.net>
32671
32672         * lib/mbchar.h (wcwidth): Include wcwidth.h.
32673         * lib/mbswidth.c (wcwidth): Move from here...
32674         * lib/wcwidth.h: ...to this new file.
32675
32676 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32677
32678         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
32679
32680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
32681         it's obsolete.
32682         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
32683
32684 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32685
32686         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
32687         Autoconf 2.60 says this stuff was obsolete.
32688
32689 2006-06-28  Bruno Haible  <bruno@clisp.org>
32690
32691         * modules/wcwidth (Files): Add m4/wchar_t.m4.
32692
32693 2006-06-28  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
32696         gt_TYPE_WCHAR_T.
32697
32698 2006-06-28  Bruno Haible  <bruno@clisp.org>
32699
32700         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
32701         declaration for wcwidth.
32702         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
32703
32704 2006-06-28  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/mkdtemp.c [MINGW]: Include <io.h>.
32707         (mkdir): Define using _mkdir.
32708
32709 2006-06-28  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/getaddrinfo.h: Fix POSIX URL.
32712         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
32713         _WIN32.
32714         (use_win32_p): Make static.
32715         (getaddrinfo): Reject service name if it is empty or does not consist
32716         solely of decimal digits, or if its value is > 65535.
32717         (getnameinfo): Remove useless casts.
32718
32719 2006-06-27  Simon Josefsson  <jas@extundo.com>
32720
32721         * modules/sys_select: New file, suggested by Bruno Haible, Paul
32722         Eggert and Martin Lambers.
32723
32724 2006-06-27  Simon Josefsson  <jas@extundo.com>
32725
32726         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32727         Eggert and Martin Lambers.
32728
32729 2006-06-27  Bruno Haible  <bruno@clisp.org>
32730
32731         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32732         result to 0, not to empty.
32733         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32734
32735 2006-06-27  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32738
32739 2006-06-26  Simon Josefsson  <jas@extundo.com>
32740
32741         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32742         present.
32743
32744 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32745
32746         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32747         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
32748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32749
32750 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
32751
32752         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32753
32754 2006-06-26  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32757
32758 2006-06-26  Bruno Haible  <bruno@clisp.org>
32759
32760         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32761
32762 2006-06-26  Bruno Haible  <bruno@clisp.org>
32763
32764         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32765         SGI C compiler in pre-C99 mode.
32766         Suggested by Mark D. Baushke and Larry Jones.
32767
32768 2006-06-26  Bruno Haible  <bruno@clisp.org>
32769
32770         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32771         WCHAR_MAX.
32772         Reported by Mark D. Baushke and Larry Jones.
32773
32774 2006-06-26  Bruno Haible  <bruno@clisp.org>
32775
32776         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32777         in pre-C99 mode.
32778         Suggested by Mark D. Baushke and Larry Jones.
32779
32780 2006-06-23  Simon Josefsson  <jas@extundo.com>
32781             Bruno Haible  <bruno@clisp.org>
32782
32783         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32784         Emit mostlyclean-local rule.
32785         (func_emit_tests_Makefile_am): Likewise.
32786         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32787
32788 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32789
32790         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32791
32792 2006-06-23  Bruno Haible  <bruno@clisp.org>
32793
32794         * tests/test-stdint.c: Update to match ISO C 99 Technical
32795         Corrigendum 1.
32796
32797 2006-06-23  Bruno Haible  <bruno@clisp.org>
32798
32799         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32800
32801 2006-06-23  Bruno Haible  <bruno@clisp.org>
32802
32803         * lib/stdint_.h: Treat IRIX like OpenBSD.
32804
32805 2006-06-23  Bruno Haible  <bruno@clisp.org>
32806
32807         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32808         ISO C 99 Technical Corrigendum 1.
32809
32810 2006-06-22  Simon Josefsson  <jas@extundo.com>
32811
32812         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32813         MinGW.
32814
32815 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32816
32817         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32818         needed.  Some compiler complained about some of them.  Problem reported
32819         by Larry Jones in
32820         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32821
32822 2006-06-21  Simon Josefsson  <jas@extundo.com>
32823
32824         * tests/test-getaddrinfo.c: New file.
32825
32826         * modules/getaddrinfo-tests: New file.
32827
32828         * MODULES.html.sh: Add inet_pton.
32829
32830         * modules/inet_pton: New file.
32831
32832 2006-06-21  Simon Josefsson  <jas@extundo.com>
32833
32834         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32835         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32836         of using the (limited) gnulib implementation on Windows XP.
32837
32838         * m4/inet_pton.m4: New file.
32839
32840 2006-06-21  Simon Josefsson  <jas@extundo.com>
32841
32842         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32843         variable.
32844
32845         * lib/socket_.h: Don't define WINVER.
32846
32847         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32848         slightly modified to work in gnulib.
32849
32850 2006-06-21  Simon Josefsson  <jas@extundo.com>
32851
32852         * doc/gnulib.texi (Windows sockets): Add.
32853
32854 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32855
32856         * lib/read-file.c (fread_file): Start with buffer allocation of
32857         0 bytes rather than 1 byte; this simplifies the code.
32858         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32859         code to free buffer and save/restore errno.
32860         (internal_read_file): Remove unused local.
32861
32862 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32865         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32866         Problem reported by Denis Excoffier in
32867         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32868
32869 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32870
32871         * modules/sys_socket, modules/socklen: Include sys/types since
32872         FreeBSD 4.x's sys/socket.h needs it.
32873
32874 2006-06-19  Simon Josefsson  <jas@extundo.com>
32875
32876         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32877
32878 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32879
32880         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32881
32882 2006-06-19  Bruno Haible  <bruno@clisp.org>
32883
32884         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32885         and FULL_PATH_INTTYPES_H in angle brackets.
32886         Reported by Mark D. Baushke <mdb@gnu.org>.
32887
32888 2006-06-17  Eric Blake  <ebb9@byu.net>
32889
32890         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32891         errno.
32892
32893 2006-06-17  Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32896         <sys/inttypes.h>.
32897
32898 2006-06-17  Bruno Haible  <bruno@clisp.org>
32899
32900         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32901         whether errno is declared. Assume <errno.h> declares errno.
32902
32903 2006-06-17  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32906
32907 2006-06-17  Bruno Haible  <bruno@clisp.org>
32908
32909         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32910         problem on Solaris 2.5.1.
32911
32912 2006-06-16  Eric Blake  <ebb9@byu.net>
32913
32914         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32915         * lib/unicodeio.c [!defined errno]: Likewise.
32916         * lib/strtol.c [!defined errno]: Likewise.
32917         * lib/strtod.c [!defined errno]: Likewise.
32918
32919 2006-06-15  Eric Blake  <ebb9@byu.net>
32920
32921         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32922
32923 2006-06-15  Eric Blake  <ebb9@byu.net>
32924
32925         * config/srclist.txt (ssize_t.m4): Lose sync.
32926
32927 2006-06-15  Bruno Haible  <bruno@clisp.org>
32928
32929         * modules/stdint (Files): Include m4/full-header-path.m4,
32930         m4/size_max.m4, m4/wchar_t.m4.
32931         (Makefile.am): Many more substitutions.
32932         * modules/stdint-tests: New file.
32933         * tests/test-stdint.c: New file.
32934
32935 2006-06-15  Bruno Haible  <bruno@clisp.org>
32936
32937         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32938         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32939         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32940         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32941         gl_CHECK_TYPE_SAME): New macros.
32942
32943 2006-06-15  Bruno Haible  <bruno@clisp.org>
32944
32945         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32946
32947 2006-06-15  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/stdint_.h: Rewritten to be fully auto-configured.
32950         Fixes bug on HP-UX/IA64.
32951
32952 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32953
32954         * lib/getdate.y (__attribute__): Don't define if already defined.
32955         Problem reported by Larry Jones.
32956         * lib/utimens.c (__attribute__): Likewise.
32957
32958 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32959
32960         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32961         reported by Andreas Schwab.
32962
32963 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32964             Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32967         check for the declaration of strnlen and a run test that exposes the
32968         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32969         rpl_strndup.
32970
32971 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32972             Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32975
32976 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32977
32978         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32979         compile test, for Tru64 4.0D.
32980
32981 2006-05-28  Karl Berry  <karl@gnu.org>
32982
32983         * config/srclist.txt (printf-args.c): lose sync.
32984
32985 2006-05-26  Martin Lambers  <marlam@marlam.de>
32986
32987         * lib/getpass.c: Updates the test for the native W32 API, and adds
32988         missing includes, thus fixing compilation warnings.
32989
32990 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32991
32992         * lib/exclude.c (exclude_fnmatch): New function.
32993         (excluded_file_name): Call exclude_fnmatch.
32994         * lib/exclude.h (excluded_file_name): New prototype
32995
32996 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32997
32998         * lib/tempname.c (small_open, large_open): New macros.
32999         (__open, __open64) [!_LIBC]: Remove.
33000         (__gen_tempname): Use small_open and large_open instead of __open
33001         and __open64.  This fixes a portability bug on HP-UX 11.11i
33002         reported by Simon Wing-Tang in
33003         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
33004
33005 2006-05-24  Bruno Haible  <bruno@clisp.org>
33006
33007         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
33008         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
33009         Reported by Thorsten Maerz <torte@netztorte.de> via
33010         Aaron Stone <aaron@serendipity.cx>.
33011
33012 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33013
33014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
33015         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
33016         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
33017         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
33018         not really conditional on the cache.
33019         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
33020
33021 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33022
33023         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
33024         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
33025         (my_usleep): Don't mishandle maximum value.
33026
33027 2006-05-19  Jim Meyering  <jim@meyering.net>
33028
33029         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
33030
33031 2006-05-17  Bruno Haible  <bruno@clisp.org>
33032
33033         Cygwin portability.
33034         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
33035
33036 2006-05-17  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/stdint_.h: Fix recognition of Cygwin.
33039
33040 2006-05-15  Bruno Haible  <bruno@clisp.org>
33041
33042         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
33043         on libtool patch by Ralf Wildenhues.
33044
33045 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33046
33047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
33048         test for C99 conformance; (bool) 0.5 is an integer constant
33049         expression, but (bool) -0.5 is not.  Problem reported by Fedor
33050         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
33051
33052 2006-05-11  Simon Josefsson  <jas@extundo.com>
33053
33054         * m4/xvasprintf.m4: Fix obvious typo.
33055
33056 2006-05-11  Jim Meyering  <jim@meyering.net>
33057
33058         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
33059         James Lemley.
33060
33061 2006-05-10  Simon Josefsson  <jas@extundo.com>
33062
33063         * lib/md4.c: Typo fix, update copyright years.
33064         (K1, K2): Don't use L because it turn computations into 64-bit on
33065         64-bit platforms.
33066
33067 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
33070         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
33071         unwanted sign propagation, e.g., on hosts with 64-bit int.
33072         There still are some problems with reeelly weird theoretical hosts
33073         (e.g., 33-bit int) but it's not worth worrying about now.
33074         * lib/sha1.c (rol): Likewise.
33075         (K1, K2, K3, K4): Remove unnecessary L suffix.
33076
33077 2006-05-10  Bruno Haible  <bruno@clisp.org>
33078
33079         * lib/des.c: Cast to avoid warnings.
33080
33081 2006-05-09  Bruno Haible  <bruno@clisp.org>
33082
33083         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
33084         (Depends-on): Depend also on xsize, stdarg.
33085         (configure.ac): Add gl_XVASPRINTF.
33086
33087 2006-05-09  Bruno Haible  <bruno@clisp.org>
33088
33089         * m4/xvasprintf.m4: New file.
33090
33091 2006-05-09  Bruno Haible  <bruno@clisp.org>
33092
33093         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
33094         (EOVERFLOW): Define fallback value.
33095         (xstrcat): New function.
33096         (xvasprintf): Recognize the special case of a string concatenation.
33097
33098 2006-05-08  Eric Blake  <ebb9@byu.net>
33099
33100         * gnulib-tool (func_version): Base copyright year on CVS date.
33101         (func_emit_copyright_notice): New function.
33102         (func_emit_lib_Makefile_am): Use it.
33103         (func_emit_tests_Makefile_am): Likewise.
33104         (func_import): Likewise.
33105
33106 2006-05-08  Bruno Haible  <bruno@clisp.org>
33107
33108         * modules/stdarg: New file.
33109         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
33110
33111 2006-05-08  Bruno Haible  <bruno@clisp.org>
33112
33113         * m4/stdarg.m4: New file, from GNU gettext.
33114
33115 2006-05-08  Bruno Haible  <bruno@clisp.org>
33116
33117         * config/srclist.txt (build-aux/config.rpath): different from latest
33118         release.
33119
33120 2006-05-08  Bruno Haible  <bruno@clisp.org>
33121
33122         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
33123
33124 2006-05-05  Jim Meyering  <jim@meyering.net>
33125
33126         * m4/warning.m4: New file, derived from bison's file by the same name.
33127
33128 2006-05-03  Bruno Haible  <bruno@clisp.org>
33129
33130         * lib/stdint_.h: Shorter URL.
33131         * lib/inttypes.h: Likewise.
33132
33133 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33134
33135         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
33136
33137 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         * lib/verify.h: Document the internals better.  Most of this change
33140         was written by Bruno Haible.
33141
33142 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33143
33144         * doc/verify.texi: New file, partly based on a proposal by
33145         Bruno Haible.
33146
33147 2006-05-02  Bruno Haible  <bruno@clisp.org>
33148
33149         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
33150         test from here...
33151         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
33152
33153 2006-04-29  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
33156         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
33157
33158 2006-04-29  Bruno Haible  <bruno@clisp.org>
33159
33160         * gnulib-tool: Make --update option actually work.
33161
33162 2006-04-29  Bruno Haible  <bruno@clisp.org>
33163
33164         * doc/gcd.texi: New file.
33165         * doc/gnulib.texi: Include it.
33166
33167 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
33168
33169         * lib/getdate.y (get_date): When adding relative date, start with the
33170         initial time, not with the result of the first mktime call.
33171
33172 2006-04-25  Bruno Haible  <bruno@clisp.org>
33173
33174         * gnulib-tool (func_import): Output the include directives in three
33175         blocks, sorted separately.
33176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33177
33178 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33179
33180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
33181         to define main with arguments, for C++.  Reported by Eric Blake.
33182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33183         Prefer 'int main ()' to 'int main (void)', for C++.
33184         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
33186         for 'main', for C99 and C++.
33187
33188 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33189
33190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
33191         Don't assume that exit status -1 is valid.
33192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33193         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33194         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33195         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
33196         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
33197         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
33198         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
33199         functions can be used without declaring them, or that you can
33200         exit with status -1.
33201         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33202
33203 2006-04-24  Karl Berry  <karl@gnu.org>
33204
33205         * config/srclist.txt (longdouble.m4): sync lost.
33206
33207 2006-04-24  Eric Blake  <ebb9@byu.net>
33208
33209         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
33210
33211 2006-04-24  Bruno Haible  <bruno@clisp.org>
33212
33213         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
33214         poll() implementation in AIX.
33215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33216
33217 2006-04-24  Bruno Haible  <bruno@clisp.org>
33218
33219         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
33220         assigned exactly once.
33221
33222 2006-04-23  Claudio Fontana  <claudio@gnu.org>
33223             Bruno Haible  <bruno@clisp.org>
33224
33225         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
33226         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
33227         for AM_CPPFLAGS.
33228
33229 2006-04-23  Bruno Haible  <bruno@clisp.org>
33230
33231         * modules/copy-file: Depend on unistd.
33232         * modules/execute: Likewise.
33233         * modules/fatal-signal: Likewise.
33234         * modules/findprog: Likewise.
33235         * modules/mkdtemp : Likewise.
33236         * modules/pipe: Likewise.
33237         * modules/wait-process: Likewise.
33238
33239 2006-04-23  Bruno Haible  <bruno@clisp.org>
33240
33241         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
33242         condition was already detected.
33243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33244
33245 2006-04-23  Bruno Haible  <bruno@clisp.org>
33246
33247         * lib/copy-file.c: Include <unistd.h> unconditionally.
33248         * lib/execute.c: Likewise.
33249         * lib/fatal-signal.c: Likewise.
33250         * lib/findprog.c: Likewise.
33251         * lib/mkdtemp.c: Likewise.
33252         * lib/pipe.h: Likewise.
33253         * lib/pipe.c: Likewise.
33254         * lib/wait-process.h: Likewise.
33255
33256 2006-04-23  Bruno Haible  <bruno@clisp.org>
33257
33258         * gnulib-tool (func_usage): Fix --import description. Document
33259         --update.
33260         (func_import): Create temporary file in a temporary directory, if
33261         --dry-run is specified. Silence errors from 'grep' when there are no
33262         m4 files in $m4dir.
33263         (func_create_testdir): Silence errors from 'grep' when there are no
33264         m4 files in $m4dir.
33265         Reported by Karl Berry <karl@freefriends.org>.
33266
33267 2006-04-20  Bruno Haible  <bruno@clisp.org>
33268
33269         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
33270         one argument, so that the code will be portable to Autoconf 2.60.
33271         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
33272         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33273         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
33274
33275 2006-04-19  Derek Price  <derek@ximbiot.com>
33276             Eric Blake  <ebb9@byu.net>
33277
33278         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
33279         rather than "/full/path.h".  Update comment to match.  Shorten &
33280         generalize m4_translit call via AS_TR_CPP.
33281
33282 2006-04-19  Derek Price  <derek@ximbiot.com>
33283             Eric Blake  <ebb9@byu.net>
33284
33285         * lib/inttypes.h: Correct grammar in comment.
33286
33287 2006-04-18  Derek Price  <derek@ximbiot.com>
33288             Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * modules/inttypes: New file.
33291         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
33292
33293 2006-04-18  Derek Price  <derek@ximbiot.com>
33294             Paul Eggert  <eggert@cs.ucla.edu>
33295
33296         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
33297         New files.
33298
33299 2006-04-18  Derek Price  <derek@ximbiot.com>
33300             Paul Eggert  <eggert@cs.ucla.edu>
33301
33302         * lib/inttypes.h: New file.
33303         * lib/strtoimax.c: Assume <inttypes.h>.
33304
33305 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
33306
33307         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
33308         isn't mounted.  Problem reported by Kir Kolyshkin.
33309
33310 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33311
33312         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
33313         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
33314         Derek R. Price.
33315         * lib/regex.h (RE_DUP_MAX): Update comment to match current
33316         implementation.
33317
33318 2006-04-12  Eric Blake  <ebb9@byu.net>
33319
33320         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
33321         is now done automatically by the corresponding Autoconf macro.
33322
33323 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
33324
33325         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
33326         time_r.h.
33327
33328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33329
33330         Merge regex changes from libc, removing some of our
33331         POSIX-conformance changes that were rejected and redoing them in a
33332         less-intrusive way.
33333
33334         * lib/regcomp.c (re_compile_internal, init_dfa):
33335         Length arg is now size_t, not Idx.  All uses changed.
33336         (peek_token): Forward decl now says internal_function.
33337         (__re_error_msgid, __re_error_msgid_idx):
33338         Now static rather than extern with attribute_hidden.
33339         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
33340         For some reason libc prefers K&R style defns for external functions.
33341         (regerror) [!defined _LIBC]: Likewise.
33342         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
33343         (seek_collating_symbol_entry, lookup_collation_sequence_value):
33344         (build_range_exp, build_collating_symbol):
33345         Use K&R-style defn.
33346         (re_compile_fastmap): Use '\0' to memset, not 0.
33347         (utf8_sb_map): Make the calculations more obvious.
33348         (init_dfa, parse_bracket_exp, build_charclass_op):
33349         Call calloc and cast result, as glibc does.
33350         (init_word_char, fetch_token, peek_token, peek_token_bracket):
33351         (build_range_exp, build_collating_symbol):
33352         Now internal functions.
33353
33354         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
33355
33356         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
33357         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
33358         Don't depend on VMS; depend on __VMS instead, for POSIX
33359         namespace cleanness.
33360         (regoff_t): Define to ssize_t, not long int.
33361
33362         Remove the REG_ macros named below.  Instead, make the old names
33363         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
33364         __USE_GNU_REGEX.
33365         (REG_BACKSLASH_ESCAPE_IN_LISTS):
33366         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
33367         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
33368         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
33369         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
33370         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
33371         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
33372         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
33373         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
33374         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
33375         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
33376         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
33377         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
33378         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
33379         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
33380         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
33381         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
33382         (REG_NREGS):
33383         Remove.  All uses replaced by the old RE_* names.
33384         (RE_BACKSLASH_ESCAPE_IN_LISTS):
33385         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
33386         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
33387         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
33388         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
33389         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
33390         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
33391         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
33392         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
33393         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
33394         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
33395         Don't bother having these macros be independent of each others'
33396         values, since they no longer exist in the POSIX name space.
33397
33398         Rename the following member names back to their old names,
33399         unless !__USE_GNU_REGEX.  All uses changed back.
33400         (buffer): Renamed from re_buffer.
33401         (allocated): Renamed from re_allocated.
33402         (used): Renamed from re_used.
33403         (syntax): Renamed from re_syntax.
33404         (fastmap): Renamed from re_fastmap.
33405         (translate): Renamed from re_translate.
33406         (can_be_null): Renamed from re_can_be_null.
33407         (regs_allocated): Renamed from re_regs_allocated.
33408         (fastmap_accurate): Renamed from re_fastmap_accurate.
33409         (no_sub): Renamed from re_no_sub.
33410         (not_bol): Renamed from re_not_bol.
33411         (not_eol): Renamed from re_not_eol.
33412         (newline_anchor): Renamed from re_newline_anchor.
33413         (num_regs): Renamed from rm_num_regs.
33414         (start): Renamed from rm_start.
33415         (end): Renamed from rm_end.
33416
33417         (free_state): Move up a bit.
33418
33419         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
33420         #define to be empty.
33421         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
33422         when that is what is intended.
33423         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
33424         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
33425         (MAX): New macro.
33426         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
33427         All uses changed back to re_malloc, etc.  It's now the caller's
33428         responsibility to check for overflow; all callers changed.
33429         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
33430         (re_x2nrealloc): Remove.
33431         (free_state): Remove decl.
33432
33433         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
33434         (re_set_registers, re_exec):
33435         Use K&R-style defn.
33436
33437         2006-01-31  Roland McGrath  <roland@redhat.com>
33438
33439         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
33440         Reported by Mike Frysinger <vapier@gentoo.org>.
33441
33442         2006-01-15  Andreas Jaeger  <aj@suse.de>
33443
33444         [BZ #1950]
33445         * lib/regex_internal.c (re_string_reconstruct): Adjust for
33446         build_wcs_upper_buffer change.
33447         (build_wcs_upper_buffer): Change return type.
33448
33449         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
33450
33451         * lib/regex_internal.h: Include <stdint.h> if available.
33452
33453         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
33454
33455         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
33456
33457         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
33458
33459         * lib/regcomp.c: Adjust for changed secondary hash function.
33460
33461         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
33462
33463         * lib/regex.h: Pretty printing.
33464         Clean up namespace a bit.
33465
33466         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
33467
33468         * lib/regexec.c (update_cur_sifted_state, check_arrival,
33469         check_arrival_add_next_nodes): Avoid using uninitialized variable.
33470
33471         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33472                     Ulrich Drepper  <drepper@redhat.com>
33473
33474         [BZ #1302]
33475         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
33476         changed.
33477         (bitset_word_t): Renamed from bitset_word.  All uses changed.
33478
33479         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
33480
33481         [BZ #281]
33482         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
33483         * lib/regcomp.c: Remove unnecessary uses of
33484         unsigned RE_TRANSLATE_TYPE.
33485         * lib/regex_internal.h: Likewise.
33486         * lib/regex_internal.c: Likewise.
33487         * lib/regexec.c: Likewise.
33488         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
33489
33490         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
33491
33492         * lib/regexec.c (find_recover_state): Remove unnecessary
33493         initialization.
33494         (transit_state_bkref): Make DFA a const pointer.
33495         (get_subexp): Likewise.
33496         (check_arrival): Likewise.
33497         (update_cur_sifted_state): Likewise.
33498         (re_search_internal): Likewise.
33499         (prune_impossible_nodes): Likewise.
33500         (acquire_init_state_context): Likewise.
33501         (proceed_next_node): Likewise.
33502         (set_regs): Likewise.
33503         (free_fail_stack_return): Likewise.
33504         (check_arrival_expand_ecl): Mark DFA parameter as const.
33505         (check_arrival_expand_ecl_sub): Likewise.
33506         (check_subexp_limits): Likewise.
33507         (sub_epsilon_src_nodes):  Likewise.
33508         (add_epsilon_src_nodes):  Likewise.
33509         (merge_state_array): Likewise.
33510         (update_regs): Likewise.
33511         (build_trtable): Likewise.
33512         (sift_states_backward): Mark MCTX parameter as const.
33513         (build_sifted_states): Likewise.
33514         (update_cur_sifted_state): Likewise.
33515         (sift_states_mkref): Likewise.
33516         (check_arrival_expand_ecl): Mark eclosure as const.
33517         (check_dst_limits_calc_pos_1): Likewise.
33518         * lib/regex_internal.h (re_match_context_t): Make dfa a const
33519         pointer.
33520
33521         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
33522
33523         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
33524         (transit_state_sb): Likewise.
33525         (transit_state_mb): Likewise.
33526         (sift_states_iter_mb): Likewise.
33527         (check_arrival_add_next_nodes): Likewise.
33528         (check_node_accept_bytes): Change first parameter to pointer-to-const.
33529         [_LIBC] (re_search_2_stub): Use mempcpy.
33530
33531         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
33532         mbrtowc for very simple UTF-8 case.
33533
33534         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
33535         a pointer-to-const.
33536         (re_acquire_state_context): Likewise.
33537         * lib/regex_internal.h: Adjust prototypes.
33538
33539         * lib/regex.c: Prevent using C++ compilers.
33540
33541         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
33542         (re_acquire_state_context): Likewise.
33543
33544 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33545
33546         * modules/regex (Depends-on): Add ssize_t.
33547
33548 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33549
33550         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
33551         translation table.
33552
33553 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33554
33555         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
33556
33557 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
33558             Bruno Haible  <bruno@clisp.org>
33559
33560         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
33561         <sys/types.h> and <inttypes.h>.
33562
33563 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33564
33565         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
33566         `__error_t_defined', so argp.h will not typedef the former.
33567
33568 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
33571         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
33572         glibc names.  Even if glibc is changed to conform to POSIX, the
33573         traditional names will be available anyway, since regex depends on
33574         the extensions module.  Also, fix a longstanding typo in the
33575         implementation of Spencer ERE test #75 from grep 2.3.  Problems
33576         reported by Emanuele Giaquinta.  Also, change sense of cached
33577         variable, so that the message makes sense.
33578
33579 2006-03-24  Simon Josefsson  <jas@extundo.com>
33580
33581         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
33582         including some doc fixes.
33583         (base64_encode_alloc): Fix +1 bug on allocation failures.
33584
33585 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33586
33587         * lib/base64.c (base64_encode): Do not read past end of array with
33588         unsanitized input on systems with CHAR_BIT > 8.
33589
33590 2006-03-24  Eric Blake  <ebb9@byu.net>
33591
33592         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
33593
33594 2006-03-22  Karl Berry  <karl@gnu.org>
33595
33596         * config/srclist.txt (*setenv.[ch]): get from coreutils.
33597         * config/srclistvars.sh (COREUTILS): new var.
33598
33599 2006-03-17  Jim Meyering  <jim@meyering.net>
33600
33601         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
33602         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
33603
33604 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33605
33606         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
33607         no longer needs it.  Instead, check that regoff_t is as least
33608         as wide as ptrdiff_t.
33609
33610         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
33611         so that our regex.h stays compatible with the installed regex.
33612         This is helpful for installers who configure --without-included-regex.
33613         Problem reported by Emanuele Giaquinta.
33614
33615 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33616
33617         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
33618         Typedef to long int, not to off_, as POSIX will likely change
33619         in that direction.
33620
33621 2006-03-15  Eric Blake  <ebb9@byu.net>
33622
33623         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
33624
33625 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33626
33627         * lib/argp-help.c (validate_uparams): Fix typo
33628         * lib/argp-parse.c (argp_default_options): Consistently begin help
33629         messages with a lowercase letter.
33630
33631 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
33632
33633         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
33634         overrun buffers and shouldn't be used (much as gets shouldn't be
33635         used).
33636         * lib/time_r.c (asctime_r, ctime_r): Likewise.
33637
33638 2006-03-08  Simon Josefsson  <jas@extundo.com>
33639
33640         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
33641         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33642
33643 2006-03-08  Simon Josefsson  <jas@extundo.com>
33644
33645         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
33646         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33647
33648 2006-03-08  Simon Josefsson  <jas@extundo.com>
33649
33650         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
33651         signal that configure disabled the device.
33652
33653 2006-03-08  Simon Josefsson  <jas@extundo.com>
33654
33655         * build-aux/maint.mk: Fix refresh-po, to handle no translated
33656         languages.
33657
33658 2006-03-07  Simon Josefsson  <jas@extundo.com>
33659
33660         * modules/getopt (Depends-on): Add unistd.
33661
33662         * modules/unistd: New file.
33663
33664 2006-03-07  Simon Josefsson  <jas@extundo.com>
33665
33666         * modules/gc-random: New file.
33667
33668 2006-03-07  Simon Josefsson  <jas@extundo.com>
33669
33670         * m4/unistd_h.m4: New file.
33671
33672 2006-03-07  Simon Josefsson  <jas@extundo.com>
33673
33674         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
33675         test to be side-effect free by storing the result in the cache
33676         variable gl_cv_lib_readline, and moving the assignment of
33677         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
33678         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33679
33680 2006-03-07  Simon Josefsson  <jas@extundo.com>
33681
33682         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
33683         error on missing devices (the functions will return an error).
33684
33685         * m4/gc.m4: Move random stuff to gc-random.m4
33686
33687 2006-03-07  Simon Josefsson  <jas@extundo.com>
33688
33689         * lib/unistd_.h: New file.
33690
33691 2006-03-07  Simon Josefsson  <jas@extundo.com>
33692
33693         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
33694
33695 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33696
33697         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
33698         Problem reported by Juan Manuel Guerrero.
33699
33700 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33701
33702         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
33703         the unistd module.
33704         * lib/getlogin_r.c: Likewise.
33705         * lib/getlogin_r.h: Likewise.
33706         * lib/glob.c: Likewise.
33707         * lib/pagealign_alloc.c: Likewise.
33708         * lib/unistd_.h: Remove; no longer needed.
33709
33710 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33711
33712         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33713         Add unistd.
33714         * modules/c-stack (Depends-on): Add unistd.
33715         * modules/getlogin_r: Likewise.
33716         * modules/glob: Likewise.
33717         * modules/pagealign_alloc: Likewise.
33718         * modules/unistd (Files): Remove lib/unistd_.h.
33719         (EXTRA_DIST): Remove.
33720         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
33721         need unistd_.h.
33722         (MOSTLYCLEANFILES): Remove unistd.h-t.
33723
33724 2006-03-03  Simon Josefsson  <jas@extundo.com>
33725
33726         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33727
33728 2006-03-03  Simon Josefsson  <jas@extundo.com>
33729
33730         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33731         libidn and bison.
33732
33733 2006-03-03  Simon Josefsson  <jas@extundo.com>
33734
33735         * build-aux/maint.mk: Add indent target.
33736
33737 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
33738
33739         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33740         our replacement poll.h in any case, to avoid a differing
33741         declaration from a system header.  Seen on AIX.
33742
33743 2006-03-01  Simon Josefsson  <jas@extundo.com>
33744
33745         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33746         <kasal@ucw.cz>.
33747
33748 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33749
33750         * modules/gettime (Depends-on): Add extensions module.
33751         * modules/nanosleep (Depends-on): Likewise.
33752         * modules/settime (Depends-on): Likewise.
33753
33754 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33755
33756         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33757         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33758         pedantically.
33759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33760         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33761
33762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33763         not "==".  Reported by Ralf Wildenhues.
33764
33765 2006-03-01  Karl Berry  <karl@gnu.org>
33766
33767         * doc/Copyright/request-*: new files, synced from gnuorg.
33768
33769 2006-03-01  Karl Berry  <karl@gnu.org>
33770
33771         * config/srclist.txt (Copyright/*): new entries.
33772
33773 2006-02-28  Simon Josefsson  <jas@extundo.com>
33774
33775         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33776
33777 2006-02-27  Simon Josefsson  <jas@extundo.com>
33778
33779         * lib/base64.h: Indent #define's.  From Jim Meyering
33780         <jim@meyering.net>.
33781
33782 2006-02-27  Jim Meyering  <jim@meyering.net>
33783
33784         Revert the change of 2006-02-24, so these files can continue
33785         to be sync'd from gettext.
33786         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33787         of `config.h'.
33788
33789 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33790
33791         * modules/intprops: New file.
33792         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33793         Add intprops.
33794         * modules/getloadavg (Files): Remove lib/intprops.h.
33795         (Depends-on): Add intprops.
33796         * modules/human: Likewise.
33797         * modules/inttostr: Likewise.
33798         * modules/openat: Likewise.
33799         * modules/sig2str: Likewise.
33800         * modules/userspec: Likewise.
33801         * modules/utimecmp: Likewise.
33802         * modules/xnanosleep: Likewise.
33803         * modules/xstrtol: Likewise.
33804
33805 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
33806
33807         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33808         * modules/lock-tests (TESTS): Use $(EXEEXT).
33809         * modules/tls-tests: Likewise.
33810         * modules/argp-tests: Likewise.
33811         (check_PROGRAMS): New var, replacing...
33812         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33813
33814 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33815
33816         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33817         `config.h'.
33818
33819 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33820
33821         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33822
33823 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33824
33825         Sync from coreutils.
33826         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33827         gl_CHDIR_SAFER.
33828
33829 2006-02-22  Jim Meyering  <jim@meyering.net>
33830
33831         Sync from coreutils.
33832         * m4/chdir-safer.m4: New file.
33833
33834 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33835
33836         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33837         AT_FDCWD exceeds INT_MAX.
33838         * lib/openat.h (AT_FDCWD): Likewise.
33839
33840 2006-02-17  Eric Blake  <address@hidden>
33841
33842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33843
33844 2006-02-16  Simon Josefsson  <jas@extundo.com>
33845
33846         * modules/getaddrinfo (Depends-on): Add sys_socket.
33847
33848 2006-02-15  Simon Josefsson  <jas@extundo.com>
33849
33850         * build-aux/maint.mk: Add dsyntax-check rule.
33851
33852 2006-02-15  Eric Blake  <ebb9@byu.net>
33853
33854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33855         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33856         'present but cannot compile' warnings on cygwin.
33857         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33858         use ws2tcpip.h if sys/socket.h works.
33859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33860         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33861
33862 2006-02-14  Simon Josefsson  <jas@extundo.com>
33863
33864         * modules/maintainer-makefile (Files): Rename.
33865
33866         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33867         and (the local) Makefile.cfg to maint-cfg.mk.
33868
33869         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33870         to the latter.
33871
33872         * modules/maintainer-makefile: New module.
33873
33874         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33875         severaly stripped to make it possible to build it up from scratch
33876         with reliable tests.
33877
33878         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33879         fixes to permit overriding the default actions when configure and
33880         makefile are not available.
33881
33882 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33883
33884         Sync from coreutils.
33885         * modules/lstat (Depends-on): Don't depend on xalloc.
33886         (License): Change from GPL to LGPL, since this is now simply a
33887         replacement for a libc function.
33888
33889 2006-02-14  Jim Meyering  <jim@meyering.net>
33890
33891         Sync from coreutils.
33892
33893         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33894         failure on deficient systems, and simplify gnulib lgpl dependencies.
33895         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33896         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33897
33898         * lib/xalloc-die.c: Remove unused definition of N_.
33899
33900 2006-02-14  Jim Meyering  <jim@meyering.net>
33901
33902         Sync from coreutils.
33903         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33904         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33905         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33906         double-quote uses of that variable, to accommodate the rare case in
33907         which getmntent is available in none of the libraries checked.  This
33908         happens at least on FreeBSD 5.0.
33909
33910 2006-02-13  Simon Josefsson  <jas@extundo.com>
33911
33912         * gnulib-tool (Usage): Fix --import, from
33913         karl@freefriends.org (Karl Berry).
33914
33915 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33916
33917         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33918
33919 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33920
33921         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33922         "autoupdate" on 2005-12-12.
33923
33924 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33925
33926         * modules/closeout (Depends-on): Remove atexit.
33927
33928 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33931         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33932
33933 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33934
33935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33936         __EXTENSIONS__ if this causes compilation to fail.  Problem
33937         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33938         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33939
33940 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33943         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33945         All uses changed.
33946
33947 2006-01-26  Simon Josefsson  <jas@extundo.com>
33948
33949         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33950         prototype is visible on mingw32.
33951
33952         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33953         for mingw32.
33954
33955         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33956         mingw32).
33957
33958 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33959
33960         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33961         attempt to open for write; this always fails, at least on POSIX
33962         hosts.  This reinstates the 2006-01-09 change, which was
33963         inadvertently removed.
33964
33965 2006-01-26  Bruno Haible  <bruno@clisp.org>
33966
33967         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33968         Reported by Paul Eggert.
33969
33970 2006-01-26  Bruno Haible  <bruno@clisp.org>
33971             Paul Eggert  <eggert@cs.ucla.edu>
33972
33973         * lib/stdbool_.h (_Bool)
33974         [(! (defined __cplusplus || defined __BEOS__)
33975           && !defined __GNUC__
33976           && !(defined __HP_cc || defined __xlc__
33977                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33978                || defined __sgi))]:
33979         #define to signed char in these cases too; this simplifies
33980         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33981         etc., separately) and makes it more conservative.
33982
33983 2006-01-25  Simon Josefsson  <jas@extundo.com>
33984
33985         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33986         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33987         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33988
33989 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33990
33991         * lib/argp-namefrob.h: Bugfix. Remove stray #
33992
33993 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33994
33995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33996         so that we test the test.
33997         Check for yet another HP-UX cc bug involving *bool |= bool.
33998
33999 2006-01-25  Karl Berry  <karl@gnu.org>
34000
34001         * config/srclist.txt (vasnprintf.c): sync lost.
34002
34003 2006-01-25  Jim Meyering  <jim@meyering.net>
34004
34005         Sync from the stable (b5) branch of coreutils:
34006
34007         * lib/fts.c (fts_children): Don't let close() clobber errno from
34008         failed fchdir().
34009
34010         * lib/fts.c (fts_stat): When following a symlink-to-directory,
34011         don't necessarily interpret stat-fails+lstat-succeeds as indicating
34012         a dangling symlink.  That can also happen at least for ELOOP.
34013         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
34014         FYI, this bug predates the inclusion of fts.c in coreutils.
34015
34016         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
34017         in their own block, so pre-c99 compilers don't object.
34018
34019         Avoid the double-free (first in fts_read, second in fts_close) that
34020         would occur when an `active' directory is made inaccessible (e.g.,
34021         via chmod a-x) during a traversal.
34022         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
34023         before returning.  Reproduce this failure by
34024         mkdir -p a/b; cd a; chmod a-x . b
34025         Reported by Stavros Passas.
34026
34027 2006-01-25  Jim Meyering  <jim@meyering.net>
34028
34029         * lib/fileblocks.c: Remove more useless parentheses.
34030         * lib/readutmp.h: Likewise.
34031
34032 2006-01-25  Bruno Haible  <bruno@clisp.org>
34033
34034         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
34035         warnings.
34036         Reported by Paul Eggert.
34037
34038 2006-01-25  Bruno Haible  <bruno@clisp.org>
34039
34040         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
34041         rid of a trap command. For Solaris sh.
34042         Reported by Mark D. Baushke <mdb@gnu.org>.
34043
34044 2006-01-24  Simon Josefsson  <jas@extundo.com>
34045
34046         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
34047         Bruno.
34048
34049 2006-01-24  Karl Berry  <karl@gnu.org>
34050
34051         * config/srclist.txt (argp-namefrob.h): sync lost.
34052
34053 2006-01-24  Jim Meyering  <jim@meyering.net>
34054
34055         * modules/openat (Files): Add lib/intprops.h.
34056         From Mark D. Baushke.
34057
34058 2006-01-24  Jim Meyering  <jim@meyering.net>
34059
34060         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
34061         Reported by Mark D. Baushke.
34062
34063 2006-01-24  Jim Meyering  <jim@meyering.net>
34064
34065         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
34066
34067 2006-01-24  Bruno Haible  <bruno@clisp.org>
34068
34069         * modules/strnlen (Maintainer): Change from glibc to all.
34070
34071 2006-01-24  Bruno Haible  <bruno@clisp.org>
34072
34073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
34074         Patch by Paul Eggert.
34075
34076 2006-01-24  Bruno Haible  <bruno@clisp.org>
34077
34078         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
34079         already has it.
34080         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
34081         2005-11-26.
34082
34083         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
34084         'signed char' to avoid problems with the built-in _Bool type.
34085         Reported by Paul Eggert on 2005-11-26.
34086
34087 2006-01-24  Bruno Haible  <bruno@clisp.org>
34088
34089         * gnulib-tool (func_import): Avoid constructing complicated sed
34090         expressions inside backquote.
34091         Report and solution by Mark D. Baushke <mdb@gnu.org>.
34092
34093 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
34094
34095         These changes imported from libc.
34096         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
34097         test and two separate function calls.
34098         * lib/strndup.c (__strndup): Add libc_hidden_def.
34099
34100 2006-01-23  Simon Josefsson  <jas@extundo.com>
34101
34102         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
34103         Remove the test_*_SOURCES variable: automake infers it by default.
34104         * modules/tls-tests: Likewise.
34105
34106 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34107
34108         Work around porting bugs reported by Dieter in
34109         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
34110         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
34111         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
34112         Include "getopt.h" first, to check interface.
34113         (getenv): Declare only if defined HAVE_DECL_GETENV &&
34114         !HAVE_DECL_GETENV.
34115         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
34116         (__strndup): Revert to K&R-style function dfns, the glibc style.
34117         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
34118         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
34119         Include strnlen.h first, to get prototype properly.
34120         (strnlen): Renamed from __strnlen.
34121         Remove weak alias.
34122
34123 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34124
34125         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
34126
34127 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34128
34129         * config/srclist.txt: Adjust to reflect glibc reorganization.
34130         This affects only comments.
34131
34132 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34133
34134          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
34135          Reported by Bruce Korb <bkorb@gnu.org>.
34136
34137 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34138
34139         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
34140         to pacify gcc -Wswitch-default.
34141
34142 2006-01-22  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
34145         temporary buffer for sprintf, take into account the precision also
34146         for 'd', 'i', 'u', 'o', 'x', 'X'.
34147
34148 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34149
34150         * modules/argp-tests: New module
34151         * tests/test-argp.c: New file
34152         * tests/test-argp-2.sh: New file
34153
34154 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34155
34156         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
34157         (__argp_base_name): Removed
34158         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
34159         typo.
34160         (__argp_base_name): Provide macro definition or extern declaration
34161         depending on the configuration
34162
34163 2006-01-20  Simon Josefsson  <jas@extundo.com>
34164
34165         * modules/inet_ntop (Depends-on): Depend on sys_socket.
34166
34167 2006-01-20  Simon Josefsson  <jas@extundo.com>
34168
34169         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
34170
34171 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34172
34173         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
34174         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
34175         Suggested by Bruno Haible.
34176
34177 2006-01-20  Karl Berry  <karl@gnu.org>
34178
34179         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
34180         until changes propagate, I guess.
34181
34182 2006-01-19  Simon Josefsson  <jas@extundo.com>
34183
34184         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
34185
34186 2006-01-19  Simon Josefsson  <jas@extundo.com>
34187
34188         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
34189
34190 2006-01-19  Simon Josefsson  <jas@extundo.com>
34191
34192         * gnulib-tool: Set check_PROGRAMS.
34193
34194         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34195         modules/des-tests, modules/gc-arcfour-tests,
34196         modules/gc-arctwo-tests, modules/gc-des-tests,
34197         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34198         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34199         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34200         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34201         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34202         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
34203         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
34204         test_*_SOURCES.
34205
34206 2006-01-18  Simon Josefsson  <jas@extundo.com>
34207
34208         * modules/socklen (Depends-on): Depend on sys_socket.
34209
34210 2006-01-18  Simon Josefsson  <jas@extundo.com>
34211
34212         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34213         modules/des-tests, modules/gc-arcfour-tests,
34214         modules/gc-arctwo-tests, modules/gc-des-tests,
34215         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34216         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34217         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34218         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34219         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34220         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
34221         $(EXEEXT) to automake TESTS variable, for mingw32.
34222
34223 2006-01-17  Simon Josefsson  <jas@extundo.com>
34224
34225         * modules/socklen (Include): Need sys/socket.h.
34226
34227 2006-01-17  Bruno Haible  <bruno@clisp.org>
34228
34229         * modules/ssize_t (Include): Add <sys/types.h>.
34230
34231 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34232
34233         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
34234         it's not portable and it doesn't work with cross-compiles.
34235         Problem reported by Bruno Haible.  Fix missing-$ typo in
34236         'test "gl_cv_ignore_unused_libraries" ...' that prevented
34237         -zignore from being used with Sun's C compiler.
34238
34239 2006-01-12  Simon Josefsson  <jas@extundo.com>
34240
34241         * lib/base64.c: Fix warning, reported by Bruno Haible
34242         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
34243
34244 2006-01-12  Bruno Haible  <bruno@clisp.org>
34245
34246         * modules/ldd: New file.
34247         * build-aux/ldd.sh.in: New file.
34248         * MODULES.html.sh (Support for building libraries and executables): Add
34249         ldd.
34250
34251 2006-01-12  Bruno Haible  <bruno@clisp.org>
34252
34253         * m4/ldd.m4: New file.
34254
34255 2006-01-12  Bruno Haible  <bruno@clisp.org>
34256
34257         * gnulib-tool (func_import, func_create_testdir): Don't go into an
34258         endless loop while replacing $auxdir with build-aux.
34259
34260 2006-01-11  Simon Josefsson  <jas@extundo.com>
34261
34262         * lib/stdint_.h (SIZE_MAX): Add missing (.
34263
34264 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         Sync from coreutils.
34267         * lib/md5.c: Fix commentary typos.
34268         (alignof, UNALIGNED_P): No need for a GCC-specific version.
34269         * lib/md5.h (__attribute__): Remove; unused.
34270         * lib/sha1.c: Fix commentary to match md5 better.
34271         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
34272         so that we don't need to worry about alignment.  All uses changed.
34273         This merges the 2005-10-28 md5 change into sha1.
34274
34275 2006-01-11  Jim Meyering  <jim@meyering.net>
34276
34277         Sync from coreutils.
34278         * lib/md5.c (OP): Fix spacing.
34279
34280 2006-01-11  Bruno Haible  <bruno@clisp.org>
34281
34282         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34283         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
34284         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
34285
34286 2006-01-11  Bruno Haible  <bruno@clisp.org>
34287
34288         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34289         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
34290         the "early" section as well.
34291
34292 2006-01-11  Bruno Haible  <bruno@clisp.org>
34293
34294         Avoid "ar: no archive members specified" error on MacOS X.
34295         * gnulib-tool (func_modules_add_dummy): New function.
34296         (func_import, func_create_testdir): Invoke it.
34297
34298 2006-01-11  Bruno Haible  <bruno@clisp.org>
34299
34300         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
34301         with $auxdir in AC_CONFIG_FILES statements.
34302
34303 2006-01-11  Bruno Haible  <bruno@clisp.org>
34304
34305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34306         Initialize also noinst_HEADERS to empty.
34307
34308 2006-01-11  Bruno Haible  <bruno@clisp.org>
34309
34310         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
34311         variables.
34312         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
34313         autoreconf.
34314
34315 2006-01-11  Bruno Haible  <bruno@clisp.org>
34316
34317         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
34318         overridable by the user.
34319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34320
34321 2006-01-10  Simon Josefsson  <jas@extundo.com>
34322
34323         * modules/sys_socket: New file.
34324
34325 2006-01-10  Simon Josefsson  <jas@extundo.com>
34326
34327         * m4/sys_socket_h.m4: New file.
34328
34329 2006-01-10  Simon Josefsson  <jas@extundo.com>
34330
34331         * lib/socket_.h: New file.
34332
34333 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34334
34335         * modules/readutmp (Maintainer): Add myself.
34336
34337 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34338
34339         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
34340         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
34341         People who are still concerned with buggy memcmp implementations
34342         can invoke gl_FUNC_MEMCMP themselves.
34343
34344 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34345
34346         * lib/regex_internal.h (BITSET_WORD_BITS):
34347         Work around a bug in 64-bit PGC (before version 6.1-2), where the
34348         preprocessor mishandles large unsigned values as if they were signed.
34349         Problem reported by Claudio Fontana in
34350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
34351
34352 2006-01-10  Jim Meyering  <jim@meyering.net>
34353
34354         Avoid the double-free (first in fts_read, second in fts_close) that
34355         would occur when an `active' directory is made inaccessible (e.g.,
34356         via chmod a-x) during a traversal.
34357         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
34358         before returning.  Reproduce this failure by
34359         mkdir -p a/b; cd a; chmod a-x . b
34360         Reported by Stavros Passas.
34361
34362         Sync from coreutils.
34363         * lib/sha1.c: Tweak grammar in a comment.
34364
34365 2006-01-10  Jim Meyering  <jim@meyering.net>
34366
34367         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
34368         Patch by Joerg Sonnenberger.
34369
34370 2006-01-10  Bruno Haible  <bruno@clisp.org>
34371
34372         * modules/readutmp: Depend on module free.
34373         * modules/strtok_r: Depend on module restrict.
34374
34375 2006-01-10  Bruno Haible  <bruno@clisp.org>
34376
34377         * modules/gettext (configure.ac): Add an invocation of
34378         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
34379
34380 2006-01-10  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
34383         Reported by Werner Lemberg <wl@gnu.org>.
34384
34385 2006-01-10  Bruno Haible  <bruno@clisp.org>
34386
34387         * lib/localcharset.c: Update from GNU gettext.
34388
34389 2006-01-10  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/argp.h (__const): Remove macro. Use const instead.
34392         * lib/argp-fmtstream.h (__const): Likewise.
34393         * lib/glob_.h (__const): Remove macro.
34394         * lib/glob-libc.h: Use const instead of __const.
34395
34396 2006-01-10  Bruno Haible  <bruno@clisp.org>
34397
34398         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
34399         variable.
34400         Needed to avoid an automake error regarding the 'gettext' module.
34401
34402 2006-01-09  Simon Josefsson  <jas@extundo.com>
34403
34404         * modules/inet_ntop (Depends-on): Add restrict.
34405
34406 2006-01-09  Simon Josefsson  <jas@extundo.com>
34407
34408         * modules/gc-rijndael-tests (License): Put under LGPL.
34409
34410         * modules/gc-des-tests (License): Likewise.
34411
34412         * modules/gc-arcfour-tests (License): Likewise.
34413
34414         * modules/gc-arctwo-tests (License): Likewise.
34415
34416         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
34417
34418         * modules/gc-hmac-sha1-tests (Files): Likewise.
34419
34420         * modules/gc-hmac-md5-tests (License): Likewise.
34421
34422         * modules/gc-sha1-tests (License): Likewise.
34423
34424         * modules/gc-md5-tests (License): Likewise.
34425
34426         * modules/gc-md4-tests (License): Likewise.
34427
34428         * modules/gc-md2-tests (License): Likewise.
34429
34430         * modules/gc-tests (License): Likewise.
34431
34432         * modules/des-tests (License): Likewise.
34433
34434         * modules/md4-tests (License): Likewise.
34435
34436         * modules/md2-tests (License): Likewise.
34437
34438 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34439
34440         Sync from coreutils:
34441
34442         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
34443         * modules/lib-ignore: New file.
34444         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
34445         chdir-safer.m4, lchmod.m4.
34446         * modules/openat: Add mkdirat.c, openat-priv.h.
34447
34448 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34449
34450         Sync from coreutils.
34451         * m4/lib-ignore.m4: New file.
34452         * m4/lchmod.m4: New file.
34453
34454 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34455
34456         Sync from coreutils.
34457         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
34458         for write access: POSIX says that must fail.
34459         * lib/fts.c (diropen): Likewise.
34460         * lib/save-cwd.c (save_cwd): Likewise.
34461         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
34462         well, for minor improvements on hosts that lack O_DIRECTORY.
34463         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
34464         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
34465         Fall back on chown if open failed with EACCES.
34466
34467         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
34468         Report an error at compile-time if only a 1-second nominal clock
34469         resolution is found.
34470
34471         * lib/lchmod.h: New file.
34472         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
34473         (make_dir_parents): Use lchown rather than chown, and
34474         lchmod rather than chmod.
34475
34476         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
34477         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
34478         "proc" reported by n0dalus.
34479
34480         * lib/mountlist.c: Include <limits.h>.
34481         (dev_from_mount_options)
34482         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
34483         New function.  It no longer assumes "dev=" has the System V meaning
34484         on Linux (since it doesn't).  It also parses "dev=" more carefully.
34485         (read_file_system_list)
34486         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
34487         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
34488         dev= in that case.
34489
34490         * lib/posixtm.h (PDS_PRE_2000): New macro.
34491         * lib/posixtm.c (year): Arg is now syntax_bits rather than
34492         allow_century.  All usages changed.  Reject dates outside the range
34493         1969-1999 if PDS_PRE_2000 is used.
34494
34495 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34496
34497         Sync from coreutils.
34498         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
34499         (Time of day items): Mention the possibility of leap seconds.
34500         Problem reported by Dr. David Alan Gilbert.
34501
34502 2006-01-09  Jim Meyering  <jim@meyering.net>
34503
34504         Sync from coreutils.
34505
34506         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
34507
34508         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
34509
34510         * lib/modechange.c (mode_compile): Reject an invalid mode string
34511         that starts with an octal digit.  From Andreas Gruenbacher.
34512
34513         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
34514         and dup to open_safer and dup_safer, respectively.
34515         (openat_permissive): Fix typo in comment.
34516
34517         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
34518         "gettext.h"; either no longer needed or are guaranteed by openat.h.
34519         (_): Remove; no longer needed.
34520         (openat): Renamed from rpl_openat; no need for rpl_openat
34521         since openat.h renames openat for us.
34522         Replace most of the body with a call to openat_permissive,
34523         to avoid duplicate code.
34524         Port to (probably hypothetical) environments were mode_t is
34525         wider than int.
34526         (openat_permissive): Require mode arg, so that we can check
34527         types better.  Put it just after flags.  Change cwd failure
34528         indicator from pointer-to-bool to pointer-to-errno-value.
34529         All callers changed.
34530         Invoke openat_save_fail and/or openat_restore_fail if
34531         cwd_errno is null, so that openat can call us.
34532         (openat_permissive, fdopendir, fstatat, unlinkat):
34533         Simplify errno handling to avoid some duplicate code,
34534         as it's OK to set errno on success.
34535         * lib/openat.h: Revamp code so that function macros depend on
34536         __OPENAT_PREFIX only, not also on AT_FDCWD.
34537         (openat_ro): Remove.  Caller changed to use openat_permissive.
34538         (openat_permissive): Now a macro, if not a function.
34539         (openat_restore_fail, openat_save_fail): Now always functions,
34540         since mkdirat needs them even if __OPENAT_PREFIX is defined.
34541
34542         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
34543         and openat.c.
34544         * lib/mkdirat.c: Include openat-priv.h.
34545         Remove definitions of macros defined therein.
34546         * lib/openat.c: Likewise.
34547
34548         * lib/mkdirat.c (mkdirat): New file and function.
34549         * lib/openat.h (mkdirat): Declare.
34550
34551         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
34552
34553         * lib/openat.h (openat_permissive): Declare.
34554         (openat_ro): Define.
34555
34556         * lib/openat.c (EXPECTED_ERRNO): New macro.
34557         (openat_permissive): New function -- used in remove.c rewrite.
34558         (all functions): Set errno just before returning, only if there
34559         was an actual failure.
34560         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
34561
34562         Emulate openat-family functions using Linux's procfs, if possible.
34563         Idea and some code based on Ulrich Drepper's glibc changes.
34564
34565         * lib/openat.c: (BUILD_PROC_NAME): New macro.
34566         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
34567         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
34568         before falling back on save_cwd and restore_cwd.
34569         (fdopendir, fstatat, unlinkat): Likewise.
34570
34571         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
34572         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
34573
34574         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
34575         as second argument to va_arg.  Otherwise, some versions of gcc
34576         warn that `if this code is reached, the program will abort'.
34577
34578 2006-01-09  Jim Meyering  <jim@meyering.net>
34579
34580         Sync from coreutils.
34581         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
34582         Require openat-priv.h.
34583
34584 2006-01-09  Bruno Haible  <bruno@clisp.org>
34585
34586         * modules/strnlen (Include): Use strnlen.h.
34587
34588 2006-01-09  Bruno Haible  <bruno@clisp.org>
34589
34590         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
34591
34592 2006-01-09  Bruno Haible  <bruno@clisp.org>
34593
34594         * lib/sysexit_.h (EX_OK): New macro.
34595         Suggested by Martin Lambers <marlam@marlam.de>.
34596
34597 2006-01-09  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
34600         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
34601
34602 2006-01-09  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
34605         numbers.
34606
34607 2006-01-09  Bruno Haible  <bruno@clisp.org>
34608
34609         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
34610         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
34611         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
34612         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
34613
34614 2006-01-09  Bruno Haible  <bruno@clisp.org>
34615
34616         * build-aux/javacomp.sh.in: New file, moved from lib/.
34617         * modules/javacomp-script (Files): Update.
34618         (configure.ac): Add AC_CONFIG_FILES invocation.
34619         (EXTRA_DIST): Remove variable.
34620
34621         * build-aux/javaexec.sh.in: New file, moved from lib/.
34622         * modules/javaexec (Files): Update.
34623         (configure.ac): Add AC_CONFIG_FILES invocation.
34624         (EXTRA_DIST): Remove javaexec.sh.in.
34625
34626         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
34627         * modules/csharpcomp-script (Files): Update.
34628         (configure.ac): Add AC_CONFIG_FILES invocation.
34629         (EXTRA_DIST): Remove variable.
34630
34631         * build-aux/csharpexec.sh.in: New file, moved from lib/.
34632         * modules/csharpexec (Files): Update.
34633         (configure.ac): Add AC_CONFIG_FILES invocation.
34634         (EXTRA_DIST): Remove csharpexec.sh.in.
34635
34636 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34637
34638         Sync from coreutils.
34639
34640         Add POSIX ACL support
34641         * lib/acl.h (copy_acl, set_acl): Add declarations.
34642         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
34643         systems other than Linux.
34644         (chmod_or_fchmod): New function: use fchmod when possible,
34645         and chmod otherwise.
34646         (file_has_acl): Add a POSIX ACL implementation, with a
34647         Linux-specific subcase.
34648         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
34649         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
34650         acls are unsupported.
34651         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
34652         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
34653         are unsupported.
34654
34655 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34656
34657         Sync from coreutils.
34658         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
34659
34660 2006-01-07  Bruno Haible  <bruno@clisp.org>
34661
34662         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
34663         gl_EARLY.
34664
34665 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34666
34667         * lib/strftime.c (tzname): Don't declare if it is already #defined.
34668         Problem reported for Mingw by Mark Junker.
34669
34670 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34671
34672         * README: Gnulib normally doesn't generate a tarball.
34673
34674 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34675
34676         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
34677         long int, not int, for nanosecond counts, so that people who are
34678         used to POSIX struct timespec won't be surprised.  Reported by Jim
34679         Meyering.
34680
34681 2005-12-28  Bruno Haible  <bruno@clisp.org>
34682
34683         * build-aux/config.rpath: Update from GNU gettext.
34684
34685 2005-12-16  Jim Meyering  <jim@meyering.net>
34686
34687         * modules/fprintftime: New module.
34688         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
34689
34690 2005-12-16  Jim Meyering  <jim@meyering.net>
34691
34692         * m4/fprintftime.m4: New file.
34693
34694 2005-12-16  Jim Meyering  <jim@meyering.net>
34695
34696         * lib/fprintftime.c, lib/fprintftime.h: New files.
34697
34698 2005-12-15  Simon Josefsson  <jas@extundo.com>
34699
34700         * modules/socklen (configure.ac): Fix M4 macro name, to align with
34701         new m4/socklen.m4.
34702
34703 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34704
34705         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
34706         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
34707
34708 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34709
34710         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
34711         * lib/argp-help.c (fill_in_uparams): Check if the constructed
34712         struct uparams is valid. Fall back to the default values if it is
34713         not.
34714
34715 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34716
34717         * modules/argp (Files): Add argp-pin.c
34718         (Depends-on): dirname
34719         (lib_SOURCES): Add argp-pin.c
34720
34721 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34722
34723         * m4/argp.m4:  Check if program_invocation_name and
34724         program_invocation_short_name are declared and define appropriate
34725         macros if they are not.
34726
34727 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34728
34729         * lib/argp-help.c (__argp_base_name): New function
34730         (__argp_short_program_name): Rewrite using __argp_base_name
34731         * lib/argp-namefrob.h: Define program_invocation_name and
34732         program_invocation_short_name if requested
34733         (__argp_base_name): Add prototype
34734         * lib/argp-parse.c (argp_def): Use gettext wrappers
34735         (argp_default_parser): Use __argp_base_name
34736         * lib/argp-pin.c: New file. Defines program_invocation_name and
34737         program_invocation_short_name on systems that lack them.
34738
34739 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34740
34741         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34742         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34743         porting problem reported by Georg Schwarz in
34744         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34745
34746 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34747
34748         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34749         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34750         porting problem reported by Georg Schwarz in
34751         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34752
34753 2005-12-05  Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34756         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34757         Reported by Mark Junker <mjscod@gmx.de>.
34758
34759 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34760
34761         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34762         Use implementation from Albert Chin, with some
34763         comments/corrections by Stepan Kasal and myself.
34764
34765 2005-12-02  Bruno Haible  <bruno@clisp.org>
34766
34767         * gnulib-tool (func_import): Accept GPLed build tool modules when
34768         --lgpl is given.
34769         * modules/csharpcomp-script: New file.
34770         * modules/csharpcomp: Depend on it.
34771         * modules/javacomp-script: New file.
34772         * modules/javacomp: Depend on it.
34773         Suggested by Simon Josefsson.
34774
34775 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34776
34777         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34778         statement, to work around an HP-UX 10.20 compiler bug reported by
34779         Peter O'Gorman.
34780
34781 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34782
34783         * modules/savedir (Depends-on): Add openat.
34784
34785 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34786
34787         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34788         (uintmax_t) [defined uintmax_t]: Do not declare.
34789         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34790         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34791         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34792         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34793         sake of portability to weird hosts that C allows (though we don't
34794         know of any practical examples).
34795
34796         * lib/savedir.h (fdsavedir): New decl.
34797         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34798         contains most of the former guts of savedir.
34799         (savedir): Use savedirstream.
34800         Include "openat.h".
34801
34802 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34803
34804         * modules/obstack (Files): Add m4/ulonglong.m4.
34805         Problem reported by Davide Angelocola.
34806
34807 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34808
34809         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34810         coreutils no longer futzes with rounding modes.
34811
34812 2005-11-14  Jim Meyering  <jim@meyering.net>
34813
34814         * lib/mkstemp-safer.c: Include <config.h>, required for possible
34815         replacement of mkstemp.
34816
34817 2005-11-10  Simon Josefsson  <jas@extundo.com>
34818
34819         * lib/readline.c: Remove EOL.
34820
34821 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34822
34823         * modules/gethrxtime (Depends-on): Add gettime.
34824
34825 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34828         or gettimeofday; no longer needed.
34829
34830 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34831
34832         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34833         time business.
34834         (gethrxtime) [! (HAVE_NANOUPTIME
34835         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34836         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34837         our own approximation.
34838
34839 2005-11-08  Eric Blake  <ebb9@byu.net>
34840
34841         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34842
34843 2005-11-08  Eric Blake  <ebb9@byu.net>
34844
34845         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34846
34847 2005-11-04  Bruno Haible  <bruno@clisp.org>
34848
34849         * gnulib-tool: Implement --update mode.
34850
34851 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34852
34853         Fix porting problem reported by Theodoros V. Kalamatianos.
34854         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34855         Don't assume that futimes failing means we must fail.
34856
34857 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34858
34859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34860         variables to suggest the intended function of the PATH_MAX check.
34861
34862 2005-10-30  Kean Johnston  <jkj@sco.com>
34863
34864         Trivial changes to support SCO systems.
34865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34866         as PATH_MAX.
34867         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34868         where __ptr is null when no I/O is pending.
34869
34870 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34871
34872         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34873         leave errno alone.  Problem reported by Dmitry V. Levin.
34874
34875 2005-10-28  Simon Josefsson  <jas@extundo.com>
34876
34877         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34878         Test more.
34879
34880         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34881
34882         * modules/md2, modules/md2-tests: New files.
34883
34884 2005-10-28  Simon Josefsson  <jas@extundo.com>
34885
34886         * m4/inet_ntop.m4: More tests.
34887
34888         * m4/gc-md2.m4, md2.m4: New file.
34889
34890 2005-10-28  Simon Josefsson  <jas@extundo.com>
34891
34892         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34893         "restrict" keywords, as per POSIX.  Protect the function
34894         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34895         Don't use K&R prototypes.  Check the sprintf return values.
34896         Re-define EAFNOSUPPORT if not present.  Indent.
34897
34898         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34899         suggested by Bruno Haible <bruno@clisp.org>.
34900
34901         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34902
34903         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34904
34905         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34906         libgcrypt).
34907
34908         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34909
34910         * lib/md2.h, lib/md2.c: New files.
34911
34912 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34913
34914         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34915         errno alone.  Problem reported by Frederic Jolliton.
34916
34917 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34918
34919         * modules/verify (License): Change from GPL to LGPL.  This is a
34920         tiny module and there are apparently near-equivalents that are
34921         under the BSD license.
34922
34923 2005-10-24  Simon Josefsson  <jas@extundo.com>
34924
34925         * modules/sha1: Relicense to LGPL.
34926
34927 2005-10-24  Simon Josefsson  <jas@extundo.com>
34928
34929         * lib/md4.h: Shrink buffer size, now that we changed the type.
34930
34931 2005-10-23  Simon Josefsson  <jas@extundo.com>
34932
34933         * gnulib-tool (func_import): Fix --tests-base.
34934
34935 2005-10-22  Simon Josefsson  <jas@extundo.com>
34936
34937         * modules/arcfour (Depends-on): Need stdint.
34938
34939 2005-10-22  Simon Josefsson  <jas@extundo.com>
34940
34941         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34942         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34943
34944 2005-10-22  Simon Josefsson  <jas@extundo.com>
34945
34946         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34947         suggested by Bruno Haible <bruno@clisp.org>.
34948
34949 2005-10-22  Simon Josefsson  <jas@extundo.com>
34950
34951         * lib/crc.h: Include stddef.h, for size_t.
34952
34953 2005-10-22  Simon Josefsson  <jas@extundo.com>
34954
34955         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34956         arcfour_context struct (simplify test vector testing in GNU
34957         Shishi).
34958
34959 2005-10-21  Simon Josefsson  <jas@extundo.com>
34960
34961         * modules/des, modules/des-tests: New files.
34962
34963         * modules/gc-des, modules/gc-des-tests: New files.
34964
34965         * tests/test-des.c, tests/test-gc-des.c: New file.
34966
34967 2005-10-21  Simon Josefsson  <jas@extundo.com>
34968
34969         * modules/arctwo, modules/arctwo-tests: New files.
34970
34971         * tests/test-arctwo.c: New file.
34972
34973         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34974
34975         * tests/test-gc-arctwo.c: New file.
34976
34977 2005-10-21  Simon Josefsson  <jas@extundo.com>
34978
34979         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34980         Bruno Haible <bruno@clisp.org>.
34981
34982         * m4/gc-des.m4: New file.
34983
34984 2005-10-21  Simon Josefsson  <jas@extundo.com>
34985
34986         * m4/arctwo.m4: New file.
34987
34988         * m4/gc-arctwo.m4: New file.
34989
34990 2005-10-21  Simon Josefsson  <jas@extundo.com>
34991
34992         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34993         block.
34994
34995 2005-10-21  Simon Josefsson  <jas@extundo.com>
34996
34997         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34998         <bruno@clisp.org>.
34999
35000         * lib/hmac-sha1.c (hmac_sha1): Likewise.
35001
35002         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
35003         Bruno Haible <bruno@clisp.org>.
35004
35005         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
35006         <bruno@clisp.org>.
35007
35008 2005-10-21  Simon Josefsson  <jas@extundo.com>
35009
35010         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
35011
35012 2005-10-21  Simon Josefsson  <jas@extundo.com>
35013
35014         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
35015
35016 2005-10-21  Simon Josefsson  <jas@extundo.com>
35017
35018         * lib/des.h, lib/des.c: New files.
35019
35020         * lib/gc-gnulib.c: Support DES.c
35021
35022 2005-10-21  Simon Josefsson  <jas@extundo.com>
35023
35024         * lib/arctwo.h, lib/arctwo.c: New files.
35025
35026         * lib/gc-gnulib.c: Support ARCTWO.
35027
35028 2005-10-21  Simon Josefsson  <jas@extundo.com>
35029
35030         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
35031         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35032
35033 2005-10-21  Simon Josefsson  <jas@extundo.com>
35034
35035         * gnulib-tool (func_import, func_create_testdir): Define automake
35036         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
35037         Makefile.am snippet),
35038         suggested by Bruno Haible <bruno@clisp.org>.
35039
35040         * modules/gc (Makefile.am): Use it.
35041
35042 2005-10-21  Bruno Haible  <bruno@clisp.org>
35043
35044         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
35045         patch.
35046
35047 2005-10-19  Simon Josefsson  <jas@extundo.com>
35048
35049         * tests/test-gc-rijndael.c: New file.
35050
35051         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
35052
35053 2005-10-19  Simon Josefsson  <jas@extundo.com>
35054
35055         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
35056         interface too.
35057
35058 2005-10-19  Simon Josefsson  <jas@extundo.com>
35059
35060         * tests/test-gc-arcfour.c: New file.
35061
35062         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
35063
35064 2005-10-19  Simon Josefsson  <jas@extundo.com>
35065
35066         * modules/gc-md4, modules/gc-md4-tests: New file.
35067
35068         * tests/test-gc-md4.c: New file.
35069
35070 2005-10-19  Simon Josefsson  <jas@extundo.com>
35071
35072         * m4/gc-md4.m4: New file.
35073
35074 2005-10-19  Simon Josefsson  <jas@extundo.com>
35075
35076         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
35077         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
35078         <kasal@ucw.cz>.
35079
35080 2005-10-19  Simon Josefsson  <jas@extundo.com>
35081
35082         * m4/gc-arcfour.m4: New file.
35083
35084         * m4/gc-rijndael.m4: New file.
35085
35086 2005-10-19  Simon Josefsson  <jas@extundo.com>
35087
35088         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
35089
35090 2005-10-19  Simon Josefsson  <jas@extundo.com>
35091
35092         * lib/gc-gnulib.c: Support ARCFOUR.
35093
35094 2005-10-19  Simon Josefsson  <jas@extundo.com>
35095
35096         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
35097         support.
35098
35099         * lib/gc.h: Add ECB enum type.
35100
35101         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
35102
35103 2005-10-18  Simon Josefsson  <jas@extundo.com>
35104
35105         * tests/test-md5.c: New file.
35106
35107         * modules/md5-tests: New file.
35108
35109 2005-10-18  Simon Josefsson  <jas@extundo.com>
35110
35111         * tests/test-md4.c: New file.
35112
35113         * modules/md4, modules/md4-tests: New files.
35114
35115 2005-10-18  Simon Josefsson  <jas@extundo.com>
35116
35117         * m4/md4.m4: New file.
35118
35119 2005-10-18  Simon Josefsson  <jas@extundo.com>
35120
35121         * lib/md4.h, lib/md4.c: New files, based on md5.?.
35122
35123 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
35124
35125         * gnulib-tool (func_create_testdir): Omit the second check whether
35126         BUILT_SOURCES in nonempty.
35127
35128 2005-10-17  Simon Josefsson  <jas@extundo.com>
35129
35130         * tests/test-rijndael.c: New file.
35131
35132 2005-10-17  Simon Josefsson  <jas@extundo.com>
35133
35134         * modules/sha1: Depend on stdint instead of md5.
35135
35136         * modules/md5: Depend on stdint, remove uint32_t.
35137
35138 2005-10-17  Simon Josefsson  <jas@extundo.com>
35139
35140         * modules/gc-sha1-tests: New file.
35141
35142         * tests/test-gc-sha1.c: New file.
35143
35144 2005-10-17  Simon Josefsson  <jas@extundo.com>
35145
35146         * m4/md5.m4: Remove call to uint32_t.m4.
35147
35148 2005-10-17  Simon Josefsson  <jas@extundo.com>
35149
35150         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
35151
35152         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
35153         md5.h.
35154
35155         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
35156
35157         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
35158
35159 2005-10-17  Simon Josefsson  <jas@extundo.com>
35160
35161         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
35162
35163 2005-10-17  Simon Josefsson  <jas@extundo.com>
35164
35165         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
35166
35167 2005-10-17  Simon Josefsson  <jas@extundo.com>
35168
35169         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
35170
35171         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
35172
35173 2005-10-17  Bruno Haible  <bruno@clisp.org>
35174
35175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
35176         that it can also be used in a test.
35177
35178 2005-10-16  Bruno Haible  <bruno@clisp.org>
35179
35180         * gnulib-tool (func_emit_tests_Makefile_am): Also define
35181         TESTS_ENVIRONMENT, so that individual tests can augment it.
35182
35183         * gnulib-tool (func_create_testdir): Use an intermediate target for
35184         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
35185         macros, like $(ALLOCA_H), which cannot be passed through the command
35186         line.
35187
35188 2005-10-15  Simon Josefsson  <jas@extundo.com>
35189
35190         * modules/rijndael-tests: New file.
35191
35192         * modules/rijndael: New file.
35193
35194 2005-10-15  Simon Josefsson  <jas@extundo.com>
35195
35196         * m4/rijndael.m4: New file.
35197
35198 2005-10-15  Simon Josefsson  <jas@extundo.com>
35199
35200         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
35201
35202         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
35203
35204 2005-10-14  Simon Josefsson  <jas@extundo.com>
35205
35206         * tests/test-arcfour.c: New file.
35207
35208         * modules/arcfour, modules/arcfour-tests: New files.
35209
35210 2005-10-14  Simon Josefsson  <jas@extundo.com>
35211
35212         * m4/arcfour.m4: New file.
35213
35214 2005-10-14  Simon Josefsson  <jas@extundo.com>
35215
35216         * lib/arcfour.h, lib/arcfour.c: New files.
35217
35218 2005-10-14  Roland McGrath  <roland@redhat.com>
35219
35220         Import from libc.  [BZ #1331]
35221         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
35222         macro argument.
35223         Reported by Matej Vela <vela@debian.org>.
35224
35225 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35226
35227         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
35228         include <wchar.h>; no longer needed.
35229
35230 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35231
35232         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
35233
35234 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
35235         and  Ulrich Drepper  <drepper@redhat.com>
35236
35237         Import from libc.
35238         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
35239         instead of inline stream orientation test and two separate
35240         function calls.  Pay no attention to USE_IN_LIBIO.
35241
35242 2005-10-13  Simon Josefsson  <jas@extundo.com>
35243
35244         * modules/gc-hmac-md5-tests: New file.
35245
35246         * tests/test-gc-hmac-sha1.c: New file.
35247
35248         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
35249
35250         * modules/gc-hmac-md5-tests: New file.
35251
35252         * tests/test-gc-md5.c: New file.
35253
35254         * modules/gc-md5-tests: New file.
35255
35256 2005-10-13  Simon Josefsson  <jas@extundo.com>
35257
35258         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
35259         Move memory allocation outside of loop.
35260
35261 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
35262
35263         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
35264         intermediate directory is in a read-only file system.  Problem
35265         reported by Eric Blake.
35266
35267 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
35268
35269         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
35270
35271 2005-10-12  Simon Josefsson  <jas@extundo.com>
35272
35273         * tests/test-hmac-sha1.c: New file.
35274
35275         * modules/hmac-sha1-tests: New file.
35276
35277         * modules/hmac-sha1: New file.
35278
35279 2005-10-12  Simon Josefsson  <jas@extundo.com>
35280
35281         * modules/gc-sha1: New file.
35282
35283 2005-10-12  Simon Josefsson  <jas@extundo.com>
35284
35285         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
35286
35287         * tests/test-gc-pbkdf2-sha1.c: New file.
35288
35289 2005-10-12  Simon Josefsson  <jas@extundo.com>
35290
35291         * modules/gc-md5, modules/gc-hmac-md5: New files.
35292
35293         * modules/gc (Files): Remove md5, memxor and hmac files.
35294
35295 2005-10-12  Simon Josefsson  <jas@extundo.com>
35296
35297         * m4/gc-pbkdf2-sha1.m4: New file.
35298
35299         * m4/gc-hmac-sha1.m4: New file.
35300
35301         * m4/gc-sha1: New file.
35302
35303         * m4/hmac-sha1.m4: New file.
35304
35305 2005-10-12  Simon Josefsson  <jas@extundo.com>
35306
35307         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
35308
35309         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
35310
35311 2005-10-12  Simon Josefsson  <jas@extundo.com>
35312
35313         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
35314         suggested by Bruno Haible <bruno@clisp.org>.
35315
35316 2005-10-12  Simon Josefsson  <jas@extundo.com>
35317
35318         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
35319
35320 2005-10-12  Simon Josefsson  <jas@extundo.com>
35321
35322         * lib/gc-pbkdf2-sha1.c: New file.
35323
35324         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
35325
35326 2005-10-12  Simon Josefsson  <jas@extundo.com>
35327
35328         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
35329
35330         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
35331
35332 2005-10-12  Simon Josefsson  <jas@extundo.com>
35333
35334         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
35335         GC_USE_HMAC_MD5, respectively.
35336
35337         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
35338         (gc_md5): Fix typo.
35339
35340         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
35341
35342         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
35343
35344         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
35345
35346 2005-10-12  Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
35349         Reported by Stepan Kasal <kasal@ucw.cz>.
35350
35351 2005-10-11  Simon Josefsson  <jas@extundo.com>
35352
35353         * tests/test-crc.c: New file.
35354
35355         * modules/crc, modules/crc-tests: New files.
35356
35357 2005-10-11  Simon Josefsson  <jas@extundo.com>
35358
35359         * m4/crc.m4: New file.
35360
35361 2005-10-11  Simon Josefsson  <jas@extundo.com>
35362
35363         * lib/gc.h: Add gc_hash and gc_hash_buffer.
35364
35365         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
35366
35367         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
35368
35369 2005-10-11  Simon Josefsson  <jas@extundo.com>
35370
35371         * lib/crc.h, lib/crc.c: New files.
35372
35373         * lib/gc.h (gc_hash_buffer): Add doc.
35374
35375 2005-10-11  Bruno Haible  <bruno@clisp.org>
35376
35377         * modules/c-strcasestr: New file.
35378         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
35379
35380 2005-10-11  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/c-strcase: New file.
35383         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
35384
35385 2005-10-11  Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/strcasecmp.c: Include limits.h.
35388         (strcasecmp): Avoid integer overflow on exotic platforms.
35389         * lib/strncasecmp.c: Include limits.h.
35390         (strncasecmp): Avoid integer overflow on exotic platforms.
35391         Reported by Paul Eggert.
35392
35393 2005-10-11  Bruno Haible  <bruno@clisp.org>
35394
35395         * lib/c-strcasestr.h: New file, from GNU gettext.
35396         * lib/c-strcasestr.c: New file, from GNU gettext.
35397
35398 2005-10-11  Bruno Haible  <bruno@clisp.org>
35399
35400         * lib/c-strcase.h: New file, from GNU gettext.
35401         * lib/c-strcasecmp.c: New file, from GNU gettext.
35402         * lib/c-strncasecmp.c: New file, from GNU gettext.
35403
35404 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35405
35406         * modules/mempcpy (License): GPL -> LGPL.
35407         * modules/strchrnul (License): Likewise.
35408         * modules/sysexits (License): Likewise.
35409
35410 2005-10-08  Simon Josefsson  <jas@extundo.com>
35411
35412         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
35413
35414 2005-10-07  Simon Josefsson  <jas@extundo.com>
35415
35416         * m4/memxor.m4: Remove gl_C_RESTRICT call.
35417
35418 2005-10-06  Simon Josefsson  <jas@extundo.com>
35419
35420         * tests/test-hmac-md5.c: New file.
35421
35422         * modules/hmac-md5-tests: New file.
35423
35424         * modules/hmac-md5: New file.
35425
35426 2005-10-06  Simon Josefsson  <jas@extundo.com>
35427
35428         * m4/hmac-md5.m4: New file.
35429
35430         * m4/memxor.m4: Require gl_C_RESTRICT.
35431
35432 2005-10-06  Simon Josefsson  <jas@extundo.com>
35433
35434         * lib/memxor.c (memxor): Avoid casts and warnings.
35435
35436 2005-10-06  Simon Josefsson  <jas@extundo.com>
35437
35438         * lib/hmac-md5.c: New file.
35439
35440         * lib/hmac.h: New file.
35441
35442 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35443
35444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
35445         promotes to int, not unsigned int, to catch the AIX 5.3
35446         compiler bug.
35447
35448 2005-10-05  Simon Josefsson  <jas@extundo.com>
35449
35450         * modules/memxor: New file.
35451
35452         * modules/iconv (Files): Move config.rpath to havelib, it is used
35453         there.
35454
35455         * modules/havelib (Files): Add config.rpath.
35456
35457 2005-10-05  Simon Josefsson  <jas@extundo.com>
35458
35459         * m4/memxor.m4: New file.
35460
35461 2005-10-05  Simon Josefsson  <jas@extundo.com>
35462
35463         * lib/memxor.c (memxor): Fix compiler error.
35464
35465         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
35466         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
35467
35468         * lib/memxor.h, lib/memxor.c: New files.
35469
35470         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
35471         we assume all systems have it, suggested by Jim Meyering
35472         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
35473         any systems lack sys/socket.h; mingw32 is known to lack it, but we
35474         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
35475         same reasons.
35476
35477 2005-10-05  Simon Josefsson  <jas@extundo.com>
35478
35479         * config/srclist.txt: Add glibc bug 1423 for md5.h.
35480
35481 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
35482
35483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
35484         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
35485         needed, since the source code now assumes these .h files.
35486
35487 2005-10-05  Derek Price  <derek@ximbiot.com>
35488
35489         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
35490
35491 2005-10-05  Bruno Haible  <bruno@clisp.org>
35492
35493         * modules/stdint (License): Change to LGPL.
35494
35495 2005-10-04  Simon Josefsson  <jas@extundo.com>
35496
35497         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
35498         D. Baushke" <mdb@gnu.org>.
35499
35500 2005-10-04  Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/verify.h (verify_true): Provide alternative definition for C++.
35503
35504 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
35505
35506         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
35507         (SSIZE_MAX): New macro, if not already defined.
35508         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
35509         than 2 GiB.
35510
35511 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35512
35513         Sync from coreutils.
35514         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
35515         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
35516         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
35517         ULLONG_MAX doesn't work with 2.7.2.1.
35518
35519 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35520
35521         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
35522         From Ben Pfaff.
35523
35524         * modules/exclude (Depends-on): Depend on verify.
35525         * modules/strtoimax (Depends-on): Likewise.
35526         * modules/utimecmp (Depends-on): Likewise.
35527
35528 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35529
35530         * lib/exclude.c: Include verify.h.
35531         (verify): Remove.  All callers changed to use verify.h's version.
35532         * lib/strtoimax.c: Likewise.
35533         * lib/utimecmp.c: Likewis.e
35534
35535         Sync from coreutils.
35536         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
35537         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
35538         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
35539         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
35540         bother returning ENOSYS if settimeofday or stime fails; just let
35541         them return whatever errno they want to return.
35542         * lib/utimens.c: Include unistd.h, for dup2.
35543         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
35544         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
35545
35546 2005-10-02  Jim Meyering  <jim@meyering.net>
35547
35548         Sync from coreutils.
35549         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
35550         from glibc-2.2.5 that fails for read-only files.
35551
35552 2005-10-02  Jim Meyering  <jim@meyering.net>
35553
35554         Sync from coreutils.
35555         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
35556         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
35557         `#if HAVE_CONFIG_H'.
35558         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
35559         Remove AT_FDCWD test.
35560         Do not consume the fd unless successful.
35561         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
35562         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
35563         block, so that we don't even try to compile it if settimeofday is
35564         available.  This works around a compilation failure on OSF1 V5.1,
35565         due to stime requiring a `long int*' while tv_sec is `int'.
35566
35567 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
35568
35569         Sync from coreutils.
35570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
35571         against `yes', rather than just testing for nonempty.
35572
35573 2005-10-01  Simon Josefsson  <jas@extundo.com>
35574
35575         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
35576         and Darwin.
35577
35578         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
35579         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
35580         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
35581         freeaddrinfo and gai_strerror are declared by the POSIX headers.
35582         Check if struct addrinfo is declared.
35583
35584 2005-10-01  Simon Josefsson  <jas@extundo.com>
35585
35586         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
35587         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
35588         AI_* and EAI_* definitions.  Protect function declarations.
35589
35590 2005-10-01  Jim Meyering  <jim@meyering.net>
35591
35592         Sync from coreutils.
35593
35594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
35595         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
35596         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
35597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35598         in the inet and nsl libraries.  Required on Solaris 5.7.
35599
35600 2005-10-01  Jim Meyering  <jim@meyering.net>
35601
35602         Sync from coreutils.
35603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35604         in the inet and nsl libraries.  Required on Solaris 5.7.
35605
35606 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
35607
35608         * lib/getdelim.c (getdelim): Remove unused variables.
35609
35610 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35611
35612         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
35613         so that the code works even with ancient cpp.  Portability problem
35614         with GCC 2.7.2.1 reported by Thomas M.Ott.
35615
35616 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35617
35618         * modules/regex (Depends-on): Add strcase.
35619
35620         * modules/gethostname (Licence): Change from GPL to LGPL, since
35621         gethostname.c is a trivial implementation of a standard library
35622         function.
35623         * modules/poll (License): Change from GPL to LGPL, since it's
35624         derived from LGPL code.
35625
35626 2005-09-27  Jim Meyering  <jim@meyering.net>
35627
35628         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
35629         HAVE_CONFIG_H.
35630
35631         * lib/intprops.h (signed_type_or_expr__): Define.
35632         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
35633         for unsigned types.
35634
35635 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35636
35637         * lib/verify.h (verify_expr): Remove, replacing with:
35638         (verify_true): New macro that returns true instead of void.
35639         (verify_type__): Remove.
35640         (verify): Use verify_true rather than verify_type__.
35641
35642 2005-09-26  Bruno Haible  <bruno@clisp.org>
35643
35644         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
35645         is necessary.
35646         (lib_SOURCES): Remove mbchar.c.
35647         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
35648         (Files): Add m4/mbrtowc.m4.
35649         * modules/mbiter: Likewise.
35650         * modules/mbuiter: Likewise.
35651
35652 2005-09-26  Bruno Haible  <bruno@clisp.org>
35653
35654         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
35655         compile mbchar.c if they are not both present.
35656         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
35657         * m4/mbiter.m4 (gl_MBITER): Likewise.
35658         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
35659         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
35660         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
35661
35662 2005-09-25  Jim Meyering  <jim@meyering.net>
35663
35664         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
35665         also uses socklen_t.
35666
35667 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35668
35669         * lib/utimens.c (ENOSYS): Define if not already defined.
35670         (futimens): Support having a null PATH if the file descriptor
35671         is nonnegative.
35672
35673         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
35674         Remove.
35675         (__attribute): Define to empty unless GCC 3.1 or later.
35676         This works around a core dump on OpenBSD 3.4, which has GCC
35677         2.95.3, which dumps core when given __attribute__(()).  It also
35678         simplifies other tests, since we really don't want to bother with
35679         worrying about which ancient version of GCC supported what.
35680         Original problem reported by Yoann Vandoorselaere, with part of
35681         the fix suggested by Derek Price.
35682
35683 2005-09-24  Jim Meyering  <jim@meyering.net>
35684
35685         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
35686         so we can once again use a positive bitfield width of 1 -- now we
35687         don't have to explain why we were using a bitfield width of 2.
35688
35689 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35690
35691         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
35692         and similarly for the other external symbols.  Problem reported
35693         by James Gallager.
35694
35695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
35696         bug reported by Jim Meyering.
35697
35698         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
35699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
35700         not needed, since socklen is a prerequisite module.
35701
35702 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35703
35704         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
35705         Problem reported by Eric Blake.
35706         (getaddrinfo): Initialize se so that it's not garbage.
35707         Redo internal storage allocation so that it doesn't make unportable
35708         assumptions about alignment.
35709         Fix a memory leak.
35710
35711         * lib/utimens.c (futimens): Use futimesat if available.
35712         Prefer it to futimes since it doesn't have the futimes bug.
35713
35714         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
35715         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
35716         Instead, declare a function that returns a pointer to an array,
35717         and use verify_type__ to declare the size of the array.
35718         Problem and germ of a solution reported by Bruno Haible.
35719         (verify_type__): Use 2, not 1, for bitfield size, to avoid
35720         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
35721
35722 2005-09-23  Jim Meyering  <jim@meyering.net>
35723
35724         Sync from coreutils.
35725         Correct build failure (socklen_t not defined) on at least
35726         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35728
35729 2005-09-23  Jim Meyering  <jim@meyering.net>
35730
35731         * modules/getaddrinfo (Depends-on): Add socklen.
35732
35733 2005-09-23  Bruno Haible  <bruno@clisp.org>
35734
35735         * tests/test-verify.c: New file.
35736
35737 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35738
35739         Sync from coreutils.
35740
35741         * modules/argmatch (Depends-on): Add verify.
35742         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35743         unistd-safer.
35744         * modules/save-cwd (Depends-on): Likewise.
35745
35746         * modules/openat (Files): Add lib/openat-die.c.
35747         (Depends-on): Remove error, exitfail.
35748         Add dirname.
35749
35750         * modules/verify: New file.
35751         * MODULES.html.sh (Diagnostics <assert.h>): New section,
35752         with "verify" module.
35753
35754 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35755
35756         Sync from coreutils.
35757
35758         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35759         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35760         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35761         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35762         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35763         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35764         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35765         Don't bother checking for string.h, stdlib.h, unistd.h.
35766         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35768         module's job.
35769         * m4/jm-macros.m4 (gl_MACROS): Likewise.
35770         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35771
35772         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35773         (gl_GETDATE): Use it.
35774
35775         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35776
35777 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35778
35779         Sync from coreutils.
35780
35781         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35782         stat-time.h.
35783         * lib/argmatch.h: Include verify.h
35784         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35785         (ARGMATCH_ASSERT): Remove; unused.
35786         * lib/canonicalize.c: Assume STDC_HEADERS.
35787         * lib/exclude.c: Include "strcase.h".
35788         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35789         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35790         and stdio-safer.h.
35791         (getusershell): Call fopen, not fopen_safer.
35792         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35793         Do not include unistd-safer.h.
35794         (save_cwd): Don't call fd_safer; no longer needed
35795         now that we include fcntl--.h.
35796
35797         * lib/getdate.y (relative_time): New type.
35798         (RELATIVE_TIME_0): New constant.
35799         (parser_control): Use relative_time instead of doing it ourselves.
35800         (%union): Add new relative_time rel member.
35801         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35802         Now typeless.
35803         (relunit, relunit_snumber): Now of type rel.
35804         (zone, rel, relunit, get_date): Adjust to above changes.
35805
35806         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35807         Do not include unistd-safer.h.
35808         (getloadavg): Don't call fd_safer; no longer needed
35809         now that we include fcntl--.h.
35810
35811         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35812         (make_dir_parents): Treat ENOSYS like EEXIST.
35813
35814         Improve quality of diagnostics on restore_cwd failure.
35815         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
35816         (make_dir_parents): Last arg is now int * (for errno), not bool *.
35817         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35818         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35819         each time through the loop.  Do not diagnose restore_cwd failure;
35820         that is the caller's job (and perhaps the caller does not care).
35821
35822         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35823         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35824         If the file already exists but is not a directory, don't bother
35825         to try to make its parents.
35826         Close potential file descriptor leak if we can't chdir("/") (!).
35827         Don't always return true if chdir($PWD) fails; return true only
35828         if the requested action was done successfully (except for the
35829         chdir($PWD)).
35830         Don't log final directory unless we actually made it.
35831         Refactor to avoid duplicate code to fix up permissions.
35832         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35833
35834         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35835         to make it a bit faster and (I hope) clearer.
35836         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35837         Fix bug in formats like %2N.
35838
35839         * lib/verify.h: New file.
35840
35841 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35842
35843         Sync from coreutils.
35844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35845
35846 2005-09-22  Jim Meyering  <jim@meyering.net>
35847
35848         Sync from coreutils.
35849
35850         * m4/lstat.m4 (gl_FUNC_LSTAT):
35851         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35852         Remove obsolete comment.
35853         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35854         * m4/xstrtod.m4: Likewise.
35855
35856         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35857
35858 2005-09-22  Jim Meyering  <jim@meyering.net>
35859
35860         Sync from coreutils.
35861
35862         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35863
35864         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35865         the .tm_year member, since otherwise gcc-4.0 would now warn about
35866         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35867
35868         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35869         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35870
35871         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35872         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35873         when run in a time zone for which daylight savings time is in effect
35874         for the starting date.
35875
35876         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35877         stop us from restricting permissions of just-created absolute-named
35878         directories.
35879         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35880         to restore initial working directory.
35881         * lib/mkdir-p.c (make_dir_parents): New parameter:
35882         different_working_dir, to tell caller if/when we change the working
35883         directory and are unable to return to the initial one.
35884         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35885         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35886         `return false'.  This fixes a bug introduced on 2004-07-30.
35887
35888         * lib/openat.c (fdopendir): Be sure to close the supplied
35889         file descriptor before returning.  This makes our replacement
35890         implementation a little closer to Solaris's, where fdopendir
35891         ties the file descriptor to the returned DIR* pointer.
35892         * lib/openat.c (unlinkat): New function.
35893         * lib/openat.h (unlinkat): Add prototype.
35894         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35895         (openat_restore_fail): Rename from openat_restore_die.
35896         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35897
35898         Provide an alternative to exiting immediately upon save_cwd or
35899         restore_cwd failure.  Now, an application can arrange e.g.,
35900         to perform a longjump in that case.
35901         * lib/openat.c: Include dirname.h.
35902         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35903         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35904         and openat_restore_die rather than calling error directly.
35905         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35906
35907         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35908         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35909         define.
35910
35911         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35912         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35913                             int utc, int nanoseconds);
35914         Background:
35915         date should not have to allocate a megabyte of virtual memory to
35916         handle a format argument like +%1048575T.  When implemented with
35917         strftime, it must allocate such a buffer, use strftime to fill it
35918         in, print it, then free it.
35919         With fprintftime, it simply prints everything and exits.
35920         With no need for memory allocation, that's one fewer way to fail.
35921         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35922         optional field width, not before, so we accept %9:z, not %:9z.
35923         (my_strftime): Be sure to use L_('x') for literals.
35924
35925         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35926         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35927         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35928         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35929         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35930         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35931         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35932         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35933         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35934         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35935         * lib/xgethostname.c, lib/xreadlink.c:
35936         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35937
35938         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35939         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35940         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35941         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35942         and don't include <sys/file.h>).
35943
35944 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35945
35946         Sync from coreutils.
35947
35948         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35949         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35950         [!LDAV_DONE]: Avoid unused variable warning.
35951
35952 2005-09-21  Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/unicodeio.h (unicode_to_mb): New declaration.
35955
35956 2005-09-20  Derek Price  <derek@ximbiot.com>
35957
35958         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35959         getaddrinfo.h.
35960
35961 2005-09-20  Bruno Haible  <bruno@clisp.org>
35962
35963         * gnulib-tool: Remove trailing slashes from the values specified for
35964         --source-base, --m4-base, --tests-base, --aux-dir.
35965         Suggested by Simon Josefsson <jas@extundo.com>.
35966
35967 2005-09-20  Bruno Haible  <bruno@clisp.org>
35968
35969         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35970         func_modules_to_filelist, func_import, func_create_testdir): Make all
35971         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35972         change when gnulib-tool is invoked in a different locale.
35973
35974 2005-09-19  Simon Josefsson  <jas@extundo.com>
35975
35976         * m4/socklen.m4: Fix typo.
35977
35978 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35979
35980         Use a consistent style for including <config.h>.
35981         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35982         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35983         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35984         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35985         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35986         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35987         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35988         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35989         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35990         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35991         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35992         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35993         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35994         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35995         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35996         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35997         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35998         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35999         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
36000         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
36001         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
36002         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
36003         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
36004         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
36005         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
36006         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
36007         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
36008         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
36009         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
36010         lib/xstrtoumax.c, lib/yesno.c:
36011         Standardize inclusion of config.h.
36012         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
36013         lib/inttostr.h:  Removed inclusion of config.h from header files.
36014         * lib/inttostr.c:  Adjusted in-tree users.
36015         * lib/timespec.h: Remove superfluous warning to include config.h.
36016         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
36017         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
36018         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
36019         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
36020         config.h with HAVE_CONFIG_H.
36021
36022 2005-09-19  Jim Meyering  <jim@meyering.net>
36023
36024         * modules/pathmax (License): Change to LGPL.
36025
36026 2005-09-19  Derek Price  <derek@ximbiot.com>
36027
36028         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
36029
36030 2005-09-19  Bruno Haible  <bruno@clisp.org>
36031
36032         * gnulib-tool (import): Provide default for --tests-base.
36033
36034 2005-09-19  Bruno Haible  <bruno@clisp.org>
36035
36036         * doc/quote.texi: New file, extracted from gnulib.texi.
36037         * doc/ctime.texi: New file, extracted from gnulib.texi.
36038         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
36039         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
36040         * doc/gnulib.texi: Include them.
36041
36042 2005-09-18  Bruno Haible  <bruno@clisp.org>
36043
36044         Portability fix.
36045         * gnulib-tool (func_readlink): New function.
36046         (func_ln_if_changed): Use it.
36047
36048 2005-09-18  Bruno Haible  <bruno@clisp.org>
36049
36050         * gnulib-tool: Support --with-tests also with --import.
36051         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
36052         (func_import): Use variables $testsbase and $inctests. Emit a
36053         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
36054         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
36055         SUBDIRS += $testsdir.
36056         (func_create_testdir): Update.
36057
36058 2005-09-18  Bruno Haible  <bruno@clisp.org>
36059
36060         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
36061         instead of $dry_run.
36062         (func_cp_if_changed, func_mv_if_changed): Remove functions.
36063         (func_ln_if_changed): Don't handle dry-run here.
36064         (func_import): In dry-run mode, detect more precisely which actions
36065         would be performed, and don't use "...ing" verbs.
36066
36067 2005-09-18  Bruno Haible  <bruno@clisp.org>
36068
36069         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
36070         (func_import): Use join on two temporary files instead of three nested
36071         loops, in order to determine which files are new or old.
36072
36073 2005-09-18  Bruno Haible  <bruno@clisp.org>
36074
36075         * gnulib-tool (func_import): Comment out code that spits out the
36076         new files with --dry-run.
36077
36078 2005-09-18  Bruno Haible  <bruno@clisp.org>
36079
36080         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
36081
36082 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36083
36084         * lib/stat-time.h: New file.
36085         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
36086         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
36087         in a different way.
36088         (timespec_cmp): New function.
36089         * lib/utimecmp.c: Include stat-time.h.
36090         (SYSCALL_RESOLUTION): Depend on whether various struct stat
36091         members exist, not on the obsolescent ST_MTIM_NSEC.
36092         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
36093
36094 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36095
36096         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
36097
36098 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36099
36100         * MODULES.html.sh (File system functions): Add stat-time.
36101         * modules/stat-time: New file.
36102         * modules/timespec (Files): Remove m4/st_mtim.m4; this
36103         is now done in a different way, by the stat-time module.
36104         * modules/utimecmp (Depends-on): Add stat-time.
36105
36106 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36107
36108         * m4/st_mtim.m4: Remove.  Superseded by...
36109         * m4/stat-time.m4: New file.
36110         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
36111         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
36112
36113 2005-09-15  Derek Price  <derek@ximbiot.com>
36114
36115         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
36116
36117 2005-09-15  Derek Price  <derek@ximbiot.com>
36118
36119         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
36120         * lib/regex_internal.c: Ditto, using this...
36121         (__GNUC_PREREQ): ...new macro.
36122         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
36123         using...
36124         (__GNUC_PREREQ): ...this new macro.
36125
36126         * lib/strstr.h: Include string.h. Define strstr as a macro here.
36127
36128 2005-09-15  Derek Price  <derek@ximbiot.com>
36129             Paul Eggert  <eggert@cs.ucla.edu>
36130
36131         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
36132         changes, consolidating in...
36133         * lib/regex_internal.h: ...this file.
36134
36135 2005-09-13  Jim Meyering  <jim@meyering.net>
36136
36137         * lib/canon-host.c: Filter through gnu indent and reword comments
36138         slightly.
36139         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
36140
36141 2005-09-13  Derek Price  <derek@ximbiot.com>
36142
36143         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
36144         failure.
36145         Reported by Jim Meyering  <jim@meyering.net>.
36146
36147 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36148
36149         * lib/base64.c: Typo.
36150         (base64_encode): Put b64str in initialized data section.
36151
36152 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
36153
36154         Merge glibc and coreutils changes into gnulib, plus a few
36155         extra fixes.
36156         * lib/md5.c: Use #error rather than a string.
36157         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
36158         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
36159         (__attribute__): Define to empty for non recent-GCC.
36160         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
36161         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
36162         Renamed from their non-__ counterparts, with new macros replacing
36163         them if not _LIBC.  Add __THROW attribute.
36164         (rol): Remove.
36165         (struct md5_ctx): Align buffer if using GCC.
36166         * lib/sha1.h (struct sha1_ctx): Likewise.
36167         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
36168         The old name was backwards.
36169         (NOTSWAP): Remove; not used.
36170         (rol): New macro, moved here from md5.h.
36171         (sha1_process_block): Remove a FIXME that doesn't make sense.
36172
36173 2005-09-12  Derek Price  <derek@ximbiot.com>
36174
36175         Return usable errors from canon-host.
36176         * lib/canon-host.h: New file.
36177         * lib/canon-host.c (canon_host): Wrap...
36178         (canon_host_r): ...this new function, which now relies exclusively on
36179         getaddrinfo.
36180         (ch_strerror): New function.
36181         (last_cherror): New global.
36182         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
36183         interface.
36184         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
36185         void *.
36186         (freeaddrinfo): Free ai->ai_canonname when set.
36187
36188 2005-09-12  Derek Price  <derek@ximbiot.com>
36189
36190         Make canon-host require getaddrinfo.
36191         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
36192         AC_LIBSOURCE canon-host.h.  Call...
36193         (gl_PREREQ_CANON_HOST): ...this new function, which requires
36194         gl_GETADDRINFO.
36195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
36196
36197 2005-09-12  Derek Price  <derek@ximbiot.com>
36198
36199         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
36200         LGPL.
36201         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
36202
36203 2005-09-12  Derek Price  <derek@ximbiot.com>
36204
36205         * lib/gai_strerror.c: Include config.h when available.  Include
36206         getaddrinfo.h before other headers to test interface.
36207         Reported by Larry Jones <lawrence.jones@ugs.com>.
36208
36209 2005-09-12  Derek Price  <derek@ximbiot.com>
36210             Paul Eggert  <eggert@cs.ucla.edu>
36211
36212         * modules/glob (Files): Add glob-libc.h.
36213
36214 2005-09-12  Derek Price  <derek@ximbiot.com>
36215             Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
36218         glob_.h, glob-libc.h.
36219         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
36220
36221 2005-09-12  Derek Price  <derek@ximbiot.com>
36222             Paul Eggert  <eggert@cs.ucla.edu>
36223
36224         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
36225         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
36226         protecting things that should be done only in gnulib contexts.
36227         * lib/glob_.h: New file, containing only the glob things needed for
36228         gnulib.
36229         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
36230         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
36231         (glob, globfree, glob_pattern_p): Now defined simply in terms of
36232         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
36233         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
36234         and to respect the namespace rules better.
36235
36236 2005-09-08  Simon Josefsson  <jas@extundo.com>
36237
36238         * modules/socklen: New file.
36239
36240 2005-09-08  Simon Josefsson  <jas@extundo.com>
36241
36242         * m4/socklen.m4: New file.
36243
36244 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36245
36246         * modules/utimens (Files): Add m4/utimbuf.m4, since
36247         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
36248         Reported by Sergey Poznyakoff.
36249
36250 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36251
36252         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
36253         definitions, since that's the preferred style in glibc.
36254         Fix a minor spacing issue, and update copyright notice to match
36255         glibc's.
36256
36257 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36258
36259         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
36260
36261 2005-09-06  Simon Josefsson  <jas@extundo.com>
36262
36263         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
36264         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
36265
36266 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36267
36268         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
36269         warning.
36270
36271 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36272
36273         * config/srclist.txt: Add glibc bug 1302.
36274
36275 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
36276
36277         Change bitset word type from unsigned int to unsigned long int,
36278         as this has better performance on typical 64-bit hosts.
36279         Port bitset code to hosts with unusual word sizes.
36280         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
36281         (build_collating_symbol):
36282         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
36283         argument is a bitset.  This is merely a style issue, but it makes
36284         it clearer that an entire array is expected.
36285         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
36286         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
36287         Port to the case where bitset_word is not the same as unsigned int.
36288         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36289         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
36290         Likewise.
36291         * lib/regexec.c (check_dst_limits_calc_pos_1,
36292         check_subexp_matching_top):
36293         (build_trtable, group_nodes_into_DFAstates):
36294         Likewise.
36295         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
36296         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
36297         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
36298         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
36299         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
36300         * lib/regcomp.c (optimize_subexps, lower_subexp):
36301         Work even if bitset_word has holes in its bitwise representation.
36302         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
36303         * lib/regexec.c (check_dst_limits_calc_pos_1,
36304         check_subexp_matching_top):
36305         Likewise.
36306         * lib/regex_internal.c (re_string_reconstruct):
36307         Don't assume UCHAR_MAX == 255.
36308         * lib/regex_internal.h (bitset_set_all): Likewise.
36309         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
36310         All uses changed.
36311         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
36312         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
36313         All uses changed.
36314         (BITSET_WORD_MAX): New macro.
36315         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
36316         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
36317         (bitset_empty, bitset_copy):
36318         Prefer sizeof (bitset) to multiplying it out ourselves.
36319         (bitset_not_merge): Remove; unused.
36320         (bitset_contain): Return bool, not unsigned int with one bit on.
36321         All callers changed.
36322         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
36323         alignment than re_node_set; do this by defining a new internal
36324         type struct dests_alloc and using it to allocate memory.
36325
36326 2005-09-05  Bruno Haible  <bruno@clisp.org>
36327
36328         * gnulib-tool (func_import): Fix comparison in handling of symbolic
36329         links.
36330
36331 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
36332
36333         * modules/size_max (Makefile.am): Add size_max.h
36334
36335 2005-09-04  Derek Price  <derek@ximbiot.com>
36336
36337         * gnulib-tool (func_import): Fix reversed $symbolic logic.
36338
36339 2005-09-03  Simon Josefsson  <jas@extundo.com>
36340
36341         * gnulib-tool: Fix typo.
36342
36343 2005-09-03  Simon Josefsson  <jas@extundo.com>
36344
36345         * config/srclist.txt: Add glibc bug 1293.
36346
36347 2005-09-03  Derek Price  <derek@ximbiot.com>
36348
36349         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
36350         From Larry Jones <lawrence.jones@ugs.com>.
36351
36352 2005-09-02  Simon Josefsson  <jas@extundo.com>
36353
36354         * modules/socklen: New file.
36355
36356 2005-09-02  Simon Josefsson  <jas@extundo.com>
36357
36358         * modules/havelib: New module.
36359
36360         * modules/gettext, modules/iconv, modules/lock, modules/readline:
36361         Use havelib.
36362
36363 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36364
36365         Check for arithmetic overflow when calculating sizes, to prevent
36366         some buffer-overflow issues.  These patches are conservative, in the
36367         sense that when I couldn't determine whether an overflow was possible,
36368         I inserted a run-time check.
36369         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
36370         macros.
36371         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
36372         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
36373         (re_xnrealloc, re_x2nrealloc): New inline functions.
36374         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
36375         parse_bracket_exp):
36376         (build_equiv_class, build_charclass): Check for arithmetic overflow
36377         in size expression calculations.
36378         * lib/regex_internal.c (re_string_realloc_buffers):
36379         (build_wcs_upper_buffer, re_node_set_add_intersect):
36380         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
36381         (re_dfa_add_node, register_state): Likewise.
36382         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
36383         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
36384         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
36385         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
36386
36387 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36388
36389         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
36390         m4/ulonglong.m4.  Problem reported by Martin Lambers.
36391
36392 2005-09-02  Bruno Haible  <bruno@clisp.org>
36393
36394         Support for lib vs. lib64 distinction on biarch platforms.
36395         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
36396         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
36397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
36398
36399 2005-09-02  Bruno Haible  <bruno@clisp.org>
36400
36401         * gnulib-tool (import): In the other first-use case, provide defaults
36402         as well.
36403
36404 2005-09-02  Bruno Haible  <bruno@clisp.org>
36405
36406         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
36407         patches not yet found in the latest gettext release.
36408
36409 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36410
36411         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
36412         to avoid a collision with bits/local_lim.h in glibc.
36413         All uses changed.  Problem reported by Dmitry V. Levin in
36414         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
36415
36416         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
36417         bugs in int versus size_t comparisons.
36418         (re_string_context_at): Fix bug where the code assumed that
36419         Idx is signed.
36420
36421         Use bool where appropriate.
36422         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
36423         All callers changed.
36424         (calc_eclosure_iter): Likewise, for ROOT arg.
36425         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
36426         (build_charclass_op): Likewise, for NON_MATCH arg.
36427         * lib/regex_internal.c (re_string_allocate, re_string_construct):
36428         (re_string_construct_common): Likewise, for ICASE arg.
36429         * lib/regexec.c (re_search_2_stub, re_search_stub):
36430         Likewise, for RET_LEN arg.
36431         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
36432         (set_regs): Likewise, for FL_BACKTRACK arg.
36433         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
36434         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
36435         (calc_eclosure_iter, parse_bracket_exp):
36436         Use bool for internal variables that are booleans.
36437         * lib/regexec.c (re_search_internal, check_matching,
36438         proceed_next_node):
36439         (set_regs, build_sifted_states, sift_states_bkref):
36440         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
36441         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36442         (find_collation_sequence_value):
36443         Likewise.
36444         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
36445         (re_node_set_compare):
36446         Return bool, not int. All callers changed.
36447         * lib/regexec.c (check_halt_node_context, check_dst_limits):
36448         (build_trtable, check_node_accept): Likewise.
36449         * lib/regex_internal.h: Include stdbool.h.
36450
36451         Fix bugs uncovered when converting to bool.
36452         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
36453         failure instead of charging ahead blindly.
36454         * lib/regex_internal.c (register_state): Likewise.
36455         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
36456         for freeing internal storage.
36457         (group_nodes_into_DFA_states): Use unsigned int, not int, for
36458         bitset pieces used as boolean, to avoid undefined behavior
36459         on hosts that do int overflow checking.
36460
36461 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36462
36463         * config/srclist.txt: Add glibc bugs 1285-1287.
36464
36465 2005-09-01  Jim Meyering  <jim@meyering.net>
36466
36467         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
36468         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
36469         Require gl_STAT_MACROS, too.
36470
36471 2005-09-01  Bruno Haible  <bruno@clisp.org>
36472
36473         * gnulib-tool (import): In the first-use case, provide defaults.
36474
36475 2005-09-01  Bruno Haible  <bruno@clisp.org>
36476
36477         * gnulib-tool (func_import): Remove the .tmp files.
36478
36479 2005-09-01  Bruno Haible  <bruno@clisp.org>
36480
36481         * gnulib-tool (func_import): Fix handling of symbolic links.
36482
36483 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36484
36485         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
36486         old glibc regex code mishandles strings longer than 2**31 bytes.
36487         This patch fixes this when the regex code is used in gnulib
36488         (i.e., outside glibc).
36489
36490         This patch should not affect the use of the regex code inside
36491         glibc.  No doubt this problem also needs to be handled for glibc
36492         as well, but the result will be an incompatible change to the
36493         glibc ABI, and the old ABI will have to be supported too.  That
36494         can be the the subject for another patch.
36495
36496         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
36497         governing whether the rest of this patch is active.  By default,
36498         the macro is disabled and the patch has no effect.
36499         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
36500         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
36501         (struct re_pattern_buffer, re_search, re_search_2, re_match):
36502         (re_match_2, re_set_registers): Use the new types.
36503         * lib/regex_internal.h (Idx, re_hashval_t): New types.
36504         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
36505         New macros.
36506         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
36507         (re_string_context_at, bin_tree_t, re_dfastate_t):
36508         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
36509         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
36510         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
36511         (re_string_char_size_at, re_string_wchar_at):
36512         (re_string_elem_size_at):
36513         Use the new types and macros to port to 64-bit hosts.
36514         Use unsigned types for internal values, so that the code
36515         mostly works even for arrays larger than SSIZE_MAX.
36516         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
36517         (search_duplicated_node, calc_eclosure_iter, fetch_number):
36518         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36519         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
36520         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
36521         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
36522         (calc_inveclosure, parse_dup_op, build_range_exp):
36523         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
36524         (fetch_number, create_token_tree, mark_opt_subexp):
36525         Likewise.
36526         * lib/regex_internal.c (re_string_construct_common,
36527         create_ci_newstate):
36528         (create_cd_newstate, re_string_allocate, re_string_construct):
36529         (re_string_realloc_buffers, build_wcs_upper_buffer):
36530         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36531         (re_string_reconstruct, re_string_peek_byte_case):
36532         (re_string_fetch_byte_case, re_string_context_at):
36533         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36534         (re_node_set_init_copy, re_node_set_add_intersect):
36535         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36536         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36537         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36538         (re_acquire_state, re_acquire_state_context, register_state):
36539         Likewise.
36540         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
36541         search_cur_bkref_entry):
36542         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
36543         (re_search_internal, re_search_2_stub, re_search_stub)
36544         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
36545         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
36546         (update_cur_sifted_state, check_dst_limits):
36547         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36548         (check_subexp_limits, sift_states_bkref, merge_state_array):
36549         (check_subexp_matching_top, get_subexp, get_subexp_sub):
36550         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
36551         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36552         (expand_bkref_cache, check_node_accept_bytes):
36553         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
36554         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
36555         (acquire_init_state_context, check_halt_node_context):
36556         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
36557         (sift_states_backward, clean_state_log_if_needed):
36558         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
36559         (find_recover_state, transit_state_sb, transit_state_mb):
36560         (transit_state_bkref, build_trtable, match_ctx_clean):
36561         Likewise.
36562         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
36563         to work around an assumption that REG_MISSING is negative.
36564
36565         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
36566         (seek_collating_symbol_entry) [defined _LIBC]:
36567         (lookup_collation_sequence_value) [defined _LIBC]:
36568         (build_range_exp, build_collating_symbol) [defined _LIBC]:
36569         Use prototypes rather than old-style function definitions.
36570         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
36571         (transit_state_sb) [0]:
36572         (find_collation_sequence_value) [defined _LIBC]: Likewise.
36573
36574         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
36575         rm_eo.
36576
36577         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
36578         (optimize_subexps, lower_subexp):
36579         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
36580         since the signed shift might overflow.  Use 1u<<31 instead.
36581         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36582         Likewise.
36583         * lib/regexec.c (check_dst_limits_calc_pos_1,
36584         check_subexp_matching_top): Likewise.
36585
36586         * lib/regcomp.c (optimize_subexps, lower_subexp):
36587         Use CHAR_BIT rather than 8, for clarity.
36588         * lib/regexec.c (check_dst_limits_calc_pos_1):
36589         (check_subexp_matching_top): Likewise.
36590         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
36591         have to worry about portability issues when shifting it left.
36592         Remove no-longer-needed test for table_size > 0.
36593         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
36594         in a word, as the resulting behavior is undefined.
36595         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
36596         in one case, a <= should have been an <, and in another case the
36597         whole test was missing.
36598         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
36599         the standard name CHAR_BIT.
36600         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
36601         this is not true on one's complement and signed-magnitude hosts.
36602
36603         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
36604         next_last_offset.
36605         (struct re_dfa_t): Remove unused member states_alloc.
36606         * lib/regcomp.c (init_dfa): Don't initialize unused members.
36607
36608 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36609
36610         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
36611         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
36612         and large-file glibc and in 32-bit large-file Solaris.
36613
36614 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36615
36616         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
36617         lengths fit in regoff_t; this isn't true if regoff_t is the same
36618         width as size_t.
36619         * lib/regex.c (re_search_internal): 5th arg is LAST_START
36620         (= START + RANGE) instead of RANGE.  This avoids overflow
36621         problems when regoff_t is the same width as size_t.
36622         All callers changed.
36623         (re_search_2_stub): Check for overflow when adding the
36624         sizes of the two strings.
36625         (re_search_stub): Check for overflow when adding START
36626         to RANGE; if it occurs, substitute the extreme value.
36627
36628 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36629
36630         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
36631
36632 2005-08-31  Jim Meyering  <jim@meyering.net>
36633
36634         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
36635         a pointer-to-const.
36636         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
36637         (register_state): Likewise.
36638         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
36639         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36640         (group_nodes_into_DFAstates): Likewise.
36641
36642 2005-08-31  Jim Meyering  <jim@meyering.net>
36643
36644         * check-module: Add a FIXME comment.
36645
36646 2005-08-31  Eric Blake  <ebb9@byu.net>
36647
36648         * modules/unistd-safer (Files): Add unistd--.h.
36649         * modules/stdio-safer (Files): Add stdio--.h.
36650
36651 2005-08-31  Derek Price  <derek@ximbiot.com>
36652
36653         * lib/getdelim.c (getdelim): Return EOF on EOF.
36654         Reported by Larry Jones <lawrence.jones@ugs.com>.
36655
36656 2005-08-31  Bruno Haible  <bruno@clisp.org>
36657
36658         Avoid unnecessary diffs in the generated lib/Makefile.am.
36659         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
36660         the generated files.
36661         (func_import): Don't set cmd.
36662
36663 2005-08-31  Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/strstr.c: Include <stddef.h>, for NULL.
36666         * lib/strcasestr.c: Likewise.
36667         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36668
36669 2005-08-31  Bruno Haible  <bruno@clisp.org>
36670
36671         * gnulib-tool: New option --macro-prefix.
36672         (func_import): Use macro_prefix.
36673         (import): Handle option --macro-prefix.
36674
36675 2005-08-31  Bruno Haible  <bruno@clisp.org>
36676
36677         * gnulib-tool (import): Rename most ac_* variables to cached_*.
36678         Also use new variables cached_lgpl, cached_libtool.
36679
36680 2005-08-31  Bruno Haible  <bruno@clisp.org>
36681
36682         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
36683         always instantiating them.
36684
36685 2005-08-31  Bruno Haible  <bruno@clisp.org>
36686
36687         * gnulib-tool (func_import): Read the previous cached settings
36688         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
36689         earlier added by gnulib but are now dropped. Warn when a gnulib file
36690         overwrites a non-gnulib file.
36691
36692 2005-08-31  Bruno Haible  <bruno@clisp.org>
36693
36694         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
36695         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
36696         projects that don't keep autogenerated files in CVS. Put into
36697         actioncmd only the specified modules, not the transitive closure.
36698
36699 2005-08-31  Bruno Haible  <bruno@clisp.org>
36700
36701         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
36702         Create directories that shall be filled.
36703         (import): Don't look for gl_* macros in configure.ac. Recurse across
36704         all directories containing a gnulib-cache.m4 files, if meaningful.
36705
36706 2005-08-31  Bruno Haible  <bruno@clisp.org>
36707
36708         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
36709         (import): Set seen_libtool when we see gl_LIBTOOL.
36710
36711 2005-08-31  Bruno Haible  <bruno@clisp.org>
36712
36713         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
36714         declaration macro definitions from generated gnulib.m4.
36715
36716 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
36717
36718         * lib/iconvme.h: Add prototype for iconv_alloc.
36719
36720 2005-08-29  Simon Josefsson  <jas@extundo.com>
36721
36722         * lib/iconvme.c: Fix errno.
36723
36724 2005-08-29  Bruno Haible  <bruno@clisp.org>
36725
36726         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36727         that it works when the directory contains spaces.
36728
36729 2005-08-29  Bruno Haible  <bruno@clisp.org>
36730
36731         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36732
36733 2005-08-29  Bruno Haible  <bruno@clisp.org>
36734
36735         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36736         Emit more advice.
36737
36738 2005-08-29  Bruno Haible  <bruno@clisp.org>
36739         and Stepan Kasal  <kasal@ucw.cz>
36740
36741         * check-module: If more parameters are given, check each of them
36742         separately; add more exceptions, as noted by Jim Meyering.
36743         (check_module): New procedure.
36744         (%exempt_header): Now contains all exceptions.
36745
36746 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
36747
36748         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36749
36750 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
36751
36752         * lib/iconvme.c: Split iconv_string into iconv_alloc.
36753
36754 2005-08-28  Bruno Haible  <bruno@clisp.org>
36755
36756         * m4/gnulib-tool.m4: New file.
36757
36758 2005-08-27  Jim Meyering  <jim@meyering.net>
36759
36760         * modules/unistd-safer (Files): Add pipe-safer.c.
36761         * modules/fcntl-safer (Files): Add creat-safer.c.
36762
36763 2005-08-27  Jim Meyering  <jim@meyering.net>
36764
36765         * m4/stdlib-safer.m4: New file.  From coreutils.
36766         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36767         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36768         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36769         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36770         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36771
36772 2005-08-27  Jim Meyering  <jim@meyering.net>
36773
36774         * lib/fopen-safer.c: Merge minor changes from coreutils.
36775         * lib/dup-safer.c: Likewise.
36776         * lib/fd-safer.c: Likewise.
36777
36778         Merge from coreutils.
36779         * lib/stdio--.h: New file.
36780         * lib/stdlib--.h: New file.
36781         * lib/mkstemp-safer.c: New file.
36782
36783         GNU tar needs these.
36784         * lib/pipe-safer.c: New file.
36785         * lib/creat-safer.c: New file.
36786         * lib/fcntl--.h (creat): Define to creat_safer.
36787         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36788         * lib/unistd--.h (pipe): Define to pipe_safer.
36789         * lib/unistd-safer.h: Declare pipe_safer.
36790
36791 2005-08-26  Simon Josefsson  <jas@extundo.com>
36792
36793         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36794         Haible <bruno@clisp.org>.
36795
36796 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36797
36798         * lib/regex_internal.h: Remove all references to
36799         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36800         or better.
36801         (bitset_not, bitset_merge, bitset_not_merge):
36802         (bitset_mask, re_string_allocate, re_string_construct):
36803         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36804         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36805         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36806         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36807         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36808         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36809         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36810         (re_acquire_state_context):
36811         Remove unnecessary forward decls.
36812         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36813         Put __attribute at function definition,
36814         now that the function decl has been removed.
36815         * lib/regex_internal.c (re_string_peek_byte_case):
36816         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36817         Likewise.
36818
36819 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
36820
36821         * m4/regex.m4: Add AC_PREREQ(2.50).
36822         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36823
36824 2005-08-25  Simon Josefsson  <jas@extundo.com>
36825
36826         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36827         __fsetlocking.
36828
36829 2005-08-25  Simon Josefsson  <jas@extundo.com>
36830
36831         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36832         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36833         GLIBC specific code.
36834
36835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36836
36837         Make regex safe for g++.  This fixes one real bug (an "err"
36838         that should have been "*err").  g++ problem reported by
36839         Sam Steingold.
36840         * lib/regex_internal.h (re_calloc): New macro, consistent with
36841         re_malloc etc.  All callers of calloc changed to use re_calloc.
36842         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36843         not int.  All callers changed.
36844         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36845         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36846         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36847         (find_recover_state): Change "err" to "*err"; this fixes what
36848         appears to be a real bug.
36849         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36850         versus int.
36851
36852 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36853
36854         * modules/regex (Depends-on): Add malloc, since the code
36855         assumes that !malloc(0) means failure.
36856
36857 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36858
36859         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36860
36861         alloca modernization/simplification for regex.
36862         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36863         needs to be at the start of the file, and can be moved into
36864         regex_internal.h and simplified.
36865         * lib/regex_internal.h: Include <alloca.h>.
36866         (__libc_use_alloca) [!defined _LIBC]: New macro.
36867         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36868         now works outside glibc.
36869
36870 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36871
36872         * config/srclist.txt: Add glibc bugs 1241, 1245.
36873
36874 2005-08-25  Jim Meyering  <jim@meyering.net>
36875
36876         * lib/open-safer.c: Include <config.h>.
36877         Otherwise, we'd lose LARGEFILE support in any file using
36878         e.g. "fcntl--.h"
36879
36880 2005-08-25  Bruno Haible  <bruno@clisp.org>
36881
36882         * m4/minmax.m4: Require autoconf 2.52.
36883         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36884         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36885         alternatives of translit over the alphabet.
36886         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36887
36888 2005-08-24  Simon Josefsson  <jas@extundo.com>
36889
36890         * tests/test-getpass.c: New file.
36891
36892 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36893
36894         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36895         for GNU regex features.
36896
36897 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36898
36899         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36900         * lib/regex.h (regerror): Likewise.
36901
36902         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36903         requires this.  (The code never needed it.)
36904
36905         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36906         All uses of recently-renamed identifiers changed to use the new,
36907         POSIX-compliant names.  The code will build and run just fine
36908         without these changes, but it's better to eat our own dog food
36909         and use the standard-conforming names.
36910
36911         * lib/regex.h: Fix a multitude of POSIX name space violations.
36912         These changes have an effect only for programs that define
36913         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36914         do not change anything for programs compiled in the normal way.
36915         Also, there is no effect on the ABI.
36916
36917         (_REGEX_SOURCE): New macro.
36918         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36919         defined and _GNU_SOURCE is not; this fixes a name space violation.
36920
36921         Rename the following macros to obey POSIX requirements.
36922         The old names are still visible as macros if _REGEX_SOURCE is defined.
36923         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36924         RE_BACKSLASH_ESCAPE_IN_LISTS.
36925         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36926         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36927         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36928         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36929         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36930         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36931         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36932         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36933         (REG_INTERVALS): renamed from RE_INTERVALS.
36934         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36935         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36936         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36937         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36938         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36939         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36940         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36941         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36942         RE_UNMATCHED_RIGHT_PAREN_ORD.
36943         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36944         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36945         (REG_DEBUG): renamed from RE_DEBUG.
36946         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36947         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36948         unusual, since we can't clash with the POSIX REG_ICASE.
36949         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36950         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36951         (REG_NO_SUB): renamed from RE_NO_SUB.
36952         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36953         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36954         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36955         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36956         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36957         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36958         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36959         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36960         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36961         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36962         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36963         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36964         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36965         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36966         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36967         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36968         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36969         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36970         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36971         (REG_FIXED): Renamed from REGS_FIXED.
36972         (REG_NREGS): Renamed from RE_NREGS.
36973
36974         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36975         of other REG_* macros, since POSIX says the user is allowed to
36976         #undef these macros selectively.
36977
36978         (reg_errcode_t): Update comment stating what other tables need
36979         to be consistent.
36980
36981         Rename the following enum values to obey POSIX requirements.
36982         The old names are still visible as macros.
36983         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36984         is not defined, since GNU is supposed to be a superset of POSIX as
36985         much as possible, and since we want reg_errcode_t to be a signed
36986         type for implementation consistency.
36987         (_REG_NOERROR): Renamed from REG_NOERROR.
36988         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36989         (_REG_BADPAT): Renamed from REG_BADPAT.
36990         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36991         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36992         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36993         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36994         (_REG_EBRACK): Renamed from REG_EBRACK.
36995         (_REG_EPAREN): Renamed from REG_EPAREN.
36996         (_REG_EBRACE): Renamed from REG_EBRACE.
36997         (_REG_BADBR): Renamed from REG_BADBR.
36998         (_REG_ERANGE): Renamed from REG_ERANGE.
36999         (_REG_ESPACE): Renamed from REG_ESPACE.
37000         (_REG_BADRPT): Renamed from REG_BADRPT.
37001         (_REG_EEND): Renamed from REG_EEND.
37002         (_REG_ESIZE): Renamed from REG_ESIZE.
37003         (_REG_ERPAREN): Renamed from REG_ERPAREN.
37004         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
37005         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
37006         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
37007         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
37008
37009         (_REG_RE_NAME, _REG_RM_NAME): New macros.
37010         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
37011         changed.  But support the old name if the new one is not defined
37012         and if _REGEX_SOURCE.
37013
37014         Change the following member names in struct re_pattern_buffer.
37015         The old names are still supported if !_REGEX_SOURCE.
37016         The new names are always supported, regardless of _REGEX_SOURCE.
37017         (re_buffer): Renamed from buffer.
37018         (re_allocated): Renamed from allocated.
37019         (re_used): Renamed from used.
37020         (re_syntax): Renamed from syntax.
37021         (re_fastmap): Renamed from fastmap.
37022         (re_translate): Renamed from translate.
37023         (re_can_be_null): Renamed from can_be_null.
37024         (re_regs_allocated): Renamed from regs_allocated.
37025         (re_fastmap_accurate): Renamed from fastmap_accurate.
37026         (re_no_sub): Renamed from no_sub.
37027         (re_not_bol): Renamed from not_bol.
37028         (re_not_eol): Renamed from not_eol.
37029         (re_newline_anchor): Renamed from newline_anchor.
37030
37031         Change the following member names in struct re_registers.
37032         The old names are still supported if !_REGEX_SOURCE.
37033         The new names are always supported, regardless of _REGEX_SOURCE.
37034         (rm_num_regs): Renamed from num_regs.
37035         (rm_start): Renamed from start.
37036         (rm_end): Renamed from end.
37037
37038         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
37039         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
37040         Prepend __ to parameter names.
37041
37042         Undo yesterday's changes.
37043
37044 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
37047         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
37048         lib/regex.c.
37049
37050 2005-08-24  Jim Meyering  <jim@meyering.net>
37051
37052         Sync from coreutils.
37053         * m4/fcntl-safer.m4: New file.
37054
37055         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
37056         and object files for this module.
37057
37058 2005-08-24  Jim Meyering  <jim@meyering.net>
37059
37060         Sync from coreutils.
37061         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
37062
37063 2005-08-24  Jim Meyering  <jim@meyering.net>
37064
37065         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
37066         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
37067
37068 2005-08-24  Jim Meyering  <jim@meyering.net>
37069
37070         * modules/fcntl-safer: New module.
37071         * modules/fts (Depends-on): Add fcntl-safer.
37072         * MODULES.html.sh (File descriptor based Input/Output):
37073         Add fcntl-safer.
37074
37075 2005-08-24  Bruno Haible  <bruno@clisp.org>
37076
37077         Support for unit test modules.
37078         * modules/README: Mention tests modules.
37079         * modules/TEMPLATE-TESTS: New file.
37080         * gnulib-tool: New options --extract-tests-module, --with-tests and
37081         --tests-base (unused for the moment).
37082         (testsbase, inctests): New variables.
37083         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
37084         (func_verify_module): Exclude TEMPLATE-TESTS.
37085         (func_verify_nontests_module, func_verify_tests_module): New functions.
37086         (func_get_dependencies): Add implicit dependency for tests modules.
37087         (func_get_tests_module): New function.
37088         (func_modules_transitive_closure): When --with-tests was specified,
37089         include the unit tests as well, unless explicitly avoided.
37090         (func_emit_lib_Makefile_am): Ignore the tests modules here.
37091         (func_emit_tests_Makefile_am): New function.
37092         (func_create_testdir): When --with-tests was specified, emit a
37093         tests/ directory.
37094         * MODULES.html.sh (Future developments): Update.
37095
37096 2005-08-24  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/tls-tests: New file.
37099         * tests/test-tls.c: New file, from GNU gettext.
37100
37101 2005-08-24  Bruno Haible  <bruno@clisp.org>
37102
37103         * modules/lock-tests: New file.
37104         * tests/test-lock.c: New file, from GNU gettext.
37105
37106 2005-08-24  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/lock.h: Add multiple inclusion guard.
37109         * lib/tls.h: Add multiple inclusion guard.
37110
37111 2005-08-24  Bruno Haible  <bruno@clisp.org>
37112
37113         * gnulib-tool: Add support for the --aux-dir option to
37114         --create-testdir, --create-megatestdir, --test, --megatest.
37115         (func_create_testdir, func_create_megatestdir): Optionally emit a
37116         AC_CONFIG_AUX_DIR directive.
37117         (create-testdir, create-megatestdir, test, megatest): Provide a
37118         default value for $auxdir.
37119
37120 2005-08-24  Bruno Haible  <bruno@clisp.org>
37121
37122         * gnulib-tool (import): Use compound statement instead of subshell
37123         where possible.
37124
37125 2005-08-24  Bruno Haible  <bruno@clisp.org>
37126
37127         * gnulib-tool (import): Change --aux-dir default to "build-aux".
37128
37129 2005-08-24  Bruno Haible  <bruno@clisp.org>
37130
37131         * gnulib-tool (func_version): Update.
37132
37133 2005-08-24  Bruno Haible  <bruno@clisp.org>
37134
37135         * gnulib-tool (func_import, func_create_testdir,
37136         func_create_megatestdir): Quote all autoconf macro arguments.
37137
37138 2005-08-24  Bruno Haible  <bruno@clisp.org>
37139
37140         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
37141         option --force, because --force causes the aclocal.m4 of each
37142         subdirectory to be newer than the corresponding config.h.in.
37143
37144 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37145
37146         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
37147         All contents moved to gl_REGEX.
37148         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
37149         assume that it does.
37150
37151 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         * lib/regex.h (REG_NOSYS)
37154         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
37155         Define, since POSIX requires it as of 2001.
37156         (_REG_ENOSYS)
37157         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
37158         New private symbol, used to keep the enum signed in all cases.
37159         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
37160         Youngman in
37161         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
37162
37163         * lib/regex_internal.c (re_string_skip_chars, register_state):
37164         (calc_state_hash):
37165         Remove forward decls; no longer needed now that we use prototypes.
37166         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
37167         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
37168         (clean_state_log_if_needed): Likewise.
37169
37170 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         * config/srclist.txt: Add glibc bugs 1231-1233.
37173
37174 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37175
37176         Fix problems reported by Sam Steingold in
37177         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
37178         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
37179         assumed that reg_errcode_t is a signed type, which is not
37180         necessarily true if _XOPEN_SOURCE is not defined.
37181         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
37182         since some compilers warn about it otherwise.
37183
37184 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37185
37186         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
37187         (init_word_char, create_initial_state, duplicate_node_closure):
37188         (fetch_token, peek_token_bracket, build_range_exp):
37189         (build_collating_symbol): Remove forward decls; no longer needed
37190         now that we use prototypes.
37191
37192         * lib/regcomp.c:
37193         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
37194         (re_compile_fastmap_iter, regcomp, regerror, regfree):
37195         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
37196         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
37197         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
37198         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
37199         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
37200         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
37201         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
37202         (build_range_exp, build_collating_symbol, parse_bracket_exp):
37203         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
37204         (build_charclass, build_charclass_op, fetch_number, create_tree):
37205         (create_token_tree, mark_opt_subexp, duplicate_tree):
37206         Use prototypes rather than old-style definitions.
37207
37208         * lib/regex_internal.c:
37209         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
37210         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
37211         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
37212         (re_string_reconstruct, re_string_peek_byte_case):
37213         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
37214         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
37215         (re_node_set_init_copy, re_node_set_add_intersect):
37216         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
37217         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
37218         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
37219         (re_acquire_state, re_acquire_state_context, register_state):
37220         (create_ci_newstate, create_cd_newstate, free_state):
37221         Likewise.
37222         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
37223         re_search_2):
37224         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
37225         (re_search_internal, prune_impossible_nodes):
37226         (acquire_init_state_context, check_matching, static):
37227         (check_halt_node_context, check_halt_state_context, proceed_next_node):
37228         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
37229         (update_regs, sift_states_backward, build_sifted_states):
37230         (clean_state_log_if_needed, merge_state_array):
37231         (update_cur_sifted_state, add_epsilon_src_nodes):
37232         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
37233         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
37234         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
37235         (find_recover_state, check_subexp_matching_top, transit_state_mb):
37236         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
37237         (check_arrival, check_arrival_add_next_nodes):
37238         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
37239         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
37240         (check_node_accept_bytes, check_node_accept, extend_buffers):
37241         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
37242         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
37243         (sift_ctx_init):
37244         Likewise.
37245
37246         * lib/regex_internal.h:
37247         (re_string_allocate, re_string_construct, re_string_reconstruct):
37248         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
37249         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
37250         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
37251         (re_string_context_at, re_string_peek_byte_case):
37252         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
37253         is defined, since we now use prototypes always.
37254
37255         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
37256         C89 or better.  All uses removed.
37257
37258 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37259
37260         * config/srclist.txt: Add glibc bugs 1220-1227.
37261
37262 2005-08-20  Jim Meyering  <jim@meyering.net>
37263
37264         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
37265         of unused local, dfa.
37266
37267 2005-08-20  Bruno Haible  <bruno@clisp.org>
37268
37269         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
37270
37271 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37272
37273         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
37274         (re_node_set_insert_last, re_dfa_add_node):
37275         Rename local variables to avoid GCC shadowing warnings.
37276
37277 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37278
37279         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
37280         [defined lint]: Suppress bogus uninitialized-variable warnings.
37281
37282         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
37283         and let the caller return REG_ESPACE if out of space.  This
37284         removes an uninitialied-variable warning with GCC 4.0.1, and also
37285         avoids taking the address of a local variable.  All callers
37286         changed.
37287
37288 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37289
37290         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
37291         $LIBCSRC/posix/regexec.c.
37292         Add glibc bug 1217 for regcomp.c.
37293
37294 2005-08-19  Jim Meyering  <jim@meyering.net>
37295
37296         * lib/regexec.c (proceed_next_node): Redo local variables to
37297         avoid GCC shadowing warnings.
37298
37299 2005-08-18  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/strstr.c (strstr): Fix return value in multibyte case.
37302         * lib/strcasestr.c (strcasestr): Likewise.
37303
37304 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37305
37306         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
37307
37308 2005-08-17  Jim Meyering  <jim@meyering.net>
37309
37310         Make the %s format (seconds since the epoch) work for a negative
37311         number and when used with a zero-padded field width, e.g. %015s.
37312
37313         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
37314         label so that it precedes the code to set `digits'.  Otherwise,
37315         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
37316         print `00-22'.  Now, it prints `-0022', as it should.
37317
37318 2005-08-17  Bruno Haible  <bruno@clisp.org>
37319
37320         * modules/strstr (Files): Add m4/mbrtowc.m4.
37321         (Depends-on): Add mbuiter.
37322
37323 2005-08-17  Bruno Haible  <bruno@clisp.org>
37324
37325         * modules/strcasestr: New file.
37326         * MODULES.html.sh (String handling, based on ANSI C 89): Add
37327         strcasestr.
37328
37329 2005-08-17  Bruno Haible  <bruno@clisp.org>
37330
37331         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
37332
37333 2005-08-17  Bruno Haible  <bruno@clisp.org>
37334
37335         * modules/mbuiter: New file.
37336         * MODULES.html.sh (Extended multibyte and wide character utilities):
37337         Add mbuiter.
37338
37339 2005-08-17  Bruno Haible  <bruno@clisp.org>
37340
37341         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
37342         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
37343
37344 2005-08-17  Bruno Haible  <bruno@clisp.org>
37345
37346         * m4/strcasestr.m4: New file.
37347
37348 2005-08-17  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
37351         * lib/strstr.c: Completely rewritten, with multibyte locale support.
37352
37353 2005-08-17  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/strcasestr.h: New file.
37356         * lib/strcasestr.c: New file.
37357
37358 2005-08-17  Bruno Haible  <bruno@clisp.org>
37359
37360         * lib/strcasecmp.c: Use mbuiter.h.
37361
37362 2005-08-17  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/mbuiter.h: New file.
37365
37366 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
37367
37368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
37369         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
37370         and gl_GETOPT are both invoked via different paths (as happens
37371         with GNU tar CVS because it uses both argp and getopt), the former
37372         wins.
37373
37374 2005-08-16  Bruno Haible  <bruno@clisp.org>
37375
37376         * modules/tls: New file.
37377         * MODULES.html.sh (Multithreading): Add tls.
37378
37379 2005-08-16  Bruno Haible  <bruno@clisp.org>
37380
37381         * modules/strnlen1: New file.
37382         * MODULES.html.sh (String handling): Add strnlen1.
37383
37384 2005-08-16  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/strcase (Files): Add m4/mbrtowc.m4.
37387         (Depends-on): Add strnlen1, mbchar.
37388
37389 2005-08-16  Bruno Haible  <bruno@clisp.org>
37390
37391         * modules/mbiter: New file.
37392         * MODULES.html.sh (Extended multibyte and wide character utilities):
37393         Add mbiter.
37394
37395 2005-08-16  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/mbfile: New file.
37398         * MODULES.html.sh (Extended multibyte and wide character utilities):
37399         Add mbfile.
37400
37401 2005-08-16  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/mbchar: New file.
37404         * MODULES.html.sh (Extended multibyte and wide character utilities):
37405         New section.
37406
37407 2005-08-16  Bruno Haible  <bruno@clisp.org>
37408
37409         * m4/tls.m4: New file, from GNU gettext.
37410
37411 2005-08-16  Bruno Haible  <bruno@clisp.org>
37412
37413         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
37414         always.
37415         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
37416
37417 2005-08-16  Bruno Haible  <bruno@clisp.org>
37418
37419         * m4/mbiter.m4: New file.
37420
37421 2005-08-16  Bruno Haible  <bruno@clisp.org>
37422
37423         * m4/mbfile.m4: New file.
37424
37425 2005-08-16  Bruno Haible  <bruno@clisp.org>
37426
37427         * m4/mbchar.m4: New file.
37428
37429 2005-08-16  Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/tls.h: New file, from GNU gettext.
37432         * lib/tls.c: New file, from GNU gettext.
37433
37434 2005-08-16  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/strnlen1.h: New file.
37437         * lib/strnlen1.c: New file.
37438
37439 2005-08-16  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
37442         (mbi_init): Update.
37443         (mbi_avail, mbi_advance): Let the iteration end before the terminating
37444         NUL byte, not after it.
37445
37446 2005-08-16  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/strcase.h (strcasecmp): Add note in comments.
37449         * lib/strncasecmp.c: Use code from strcasecmp.c.
37450         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
37451         (strcasecmp): Work correctly in multibyte locales.
37452
37453 2005-08-16  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/mbiter.h: New file.
37456
37457 2005-08-16  Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/mbfile.h: New file.
37460
37461 2005-08-16  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/mbchar.h: New file.
37464         * lib/mbchar.c: New file.
37465
37466 2005-08-16  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
37469         the valid ones. Makes the comparison operations transitive:
37470         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
37471         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
37472
37473 2005-08-15  Simon Josefsson  <jas@extundo.com>
37474
37475         * modules/ssize_t (License): Change to 'unlimited'.
37476
37477         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
37478
37479 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37480
37481         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
37482         Add comments for each pending glibc patch.
37483
37484 2005-08-15  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/regex.h (__restrict_arr): Don't define to __restrict if
37487         __cplusplus is defined.
37488
37489 2005-08-14  Jim Meyering  <jim@meyering.net>
37490
37491         Sync from coreutils.
37492
37493         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
37494         Use the hash-table-based cycle-detection code not just when
37495         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
37496         Reported by James Youngman in
37497         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
37498         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
37499         FTS_TIGHT_CYCLE_CHECK.
37500         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
37501         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
37502         once again.
37503         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
37504         * lib/fts.c (fd_safer): Remove decl.
37505         Include fcntl--.h rather than unistd-safer.h
37506         (fts_safe_changedir): Don't call fd_safer; no longer needed
37507         now that we include fcntl--.h.
37508
37509 2005-08-12  Simon Josefsson  <jas@extundo.com>
37510
37511         * modules/getndelim2: Use ssize_t module.
37512         * modules/getnline: Likewise.
37513         * modules/safe-read: Likewise.
37514         * modules/xreadlink: Likewise.
37515
37516         * modules/ssize_t: New file.
37517
37518 2005-08-12  Simon Josefsson  <jas@extundo.com>
37519
37520         * m4/readline.m4: Look for termcap, curses or ncurses if required.
37521
37522 2005-08-12  Simon Josefsson  <jas@extundo.com>
37523
37524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37525         ssize_t.
37526
37527 2005-08-12  Simon Josefsson  <jas@extundo.com>
37528
37529         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
37530         readline, getdelim and check_version.
37531         (Support for systems lacking ISO C 99: Sizes of integer types):
37532         Add size_max.
37533
37534 2005-08-12  Bruno Haible  <bruno@clisp.org>
37535
37536         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
37537
37538 2005-08-11  Simon Josefsson  <jas@extundo.com>
37539
37540         * modules/readline: New file.
37541
37542         * modules/strnlen (Files): Add strnlen.h.
37543
37544 2005-08-11  Simon Josefsson  <jas@extundo.com>
37545
37546         * m4/readline.m4: New file.
37547
37548 2005-08-11  Simon Josefsson  <jas@extundo.com>
37549
37550         * lib/readline.h, readline.c: New file.
37551
37552 2005-08-11  Simon Josefsson  <jas@extundo.com>
37553
37554         * doc/gnulib.texi (Initial import, Finishing touches): Mention
37555         gl_AVOID.
37556
37557 2005-08-11  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/strnlen.h (strnlen): Change parameter name to match comment.
37560
37561 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
37562
37563         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
37564
37565 2005-08-10  Simon Josefsson  <jas@extundo.com>
37566
37567         * tests/test-iconvme.c: New file.
37568
37569 2005-08-10  Simon Josefsson  <jas@extundo.com>
37570
37571         * m4/strnlen.m4: New file.
37572
37573         * m4/strndup.m4: Don't check for strnlen declaration, done in
37574         strnlen.m4.
37575
37576 2005-08-10  Simon Josefsson  <jas@extundo.com>
37577
37578         * lib/strndup.c: Use strnlen.h.
37579
37580         * lib/strnlen.h: New file.
37581
37582 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37583
37584         * README: Typos.
37585
37586 2005-08-02  Simon Josefsson  <jas@extundo.com>
37587
37588         * modules/readline: New file.
37589
37590 2005-08-02  Simon Josefsson  <jas@extundo.com>
37591
37592         * modules/getdelim: New file.
37593
37594         * modules/getline: Rewrite, don't use getndelim2.
37595
37596 2005-08-02  Simon Josefsson  <jas@extundo.com>
37597
37598         * m4/getline.m4: Separate out getdelim stuff into separate module.
37599
37600         * m4/getdelim.m4: New file.
37601
37602 2005-08-02  Simon Josefsson  <jas@extundo.com>
37603
37604         * lib/getline.h, getline.c: Rewrite.
37605
37606         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
37607
37608 2005-07-31  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/lock.h (gl_lock_initializer): New macro.
37611         (gl_lock_define_initialized): Use it.
37612         (gl_rwlock_initializer): New macro.
37613         (gl_rwlock_define_initialized): Use it.
37614         (gl_recursive_lock_initializer): New macro.
37615         (gl_recursive_lock_define_initialized): Use it.
37616
37617 2005-07-30  Karl Berry  <karl@gnu.org>
37618
37619         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
37620         Report from Ben Pfaff, regarding getopt.
37621
37622 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
37623
37624         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
37625         normal way.
37626         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
37627         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
37628         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
37629         (gl_GETOPT): Use the new macros.  Most of the implementation
37630         is moved to the new macros.  This is for programs like Emacs
37631         that don't want all the functionality of gl_GETOPT.
37632
37633 2005-07-26  Bruno Haible  <bruno@clisp.org>
37634
37635         * m4/lock.m4: Update from GNU gettext.
37636
37637 2005-07-26  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/lock.h: Update from GNU gettext.
37640         * lib/lock.c: Update from GNU gettext.
37641
37642 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
37643
37644         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
37645         obsolescent AC_TRY_RUN.  Include the default includes files, for
37646         'exit'.
37647
37648 2005-07-24  Bruno Haible  <bruno@clisp.org>
37649
37650         * modules/visibility: New file.
37651         * MODULES.html.sh (Misc): Add visibility.
37652
37653 2005-07-24  Bruno Haible  <bruno@clisp.org>
37654
37655         * m4/visibility.m4: New file.
37656
37657 2005-07-24  Bruno Haible  <bruno@clisp.org>
37658
37659         * doc/visibility.texi: New file.
37660
37661 2005-07-22  Bruno Haible  <bruno@clisp.org>
37662
37663         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
37664         $(ALLOCA_H), redundant through BUILT_SOURCES.
37665         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
37666         redundant through BUILT_SOURCES.
37667         * modules/byteswap (Makefile.am): Remove explicit dependency on
37668         $(BYTESWAP_H), redundant through BUILT_SOURCES.
37669         * modules/fnmatch (Makefile.am): Remove explicit dependency on
37670         $(FNMATCH_H), redundant through BUILT_SOURCES.
37671         * modules/getopt (Makefile.am): Remove explicit dependency on
37672         $(GETOPT_H), redundant through BUILT_SOURCES.
37673         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
37674         redundant through BUILT_SOURCES.
37675         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
37676         redundant through BUILT_SOURCES.
37677         * modules/stdbool (Makefile.am): Remove explicit dependency on
37678         $(STDBOOL_H), redundant through BUILT_SOURCES.
37679         * modules/stdint (Makefile.am): Remove explicit dependency on
37680         $(STDINT_H), redundant through BUILT_SOURCES.
37681         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
37682         Remove explicit dependency on $(SYSEXITS_H).
37683         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
37684
37685 2005-07-18  Simon Josefsson  <jas@extundo.com>
37686
37687         * lib/check-version.c (check_version): Accept identical versions too.
37688
37689 2005-07-18  Bruno Haible  <bruno@clisp.org>
37690
37691         * modules/lock: New file.
37692         * MODULES.html.sh (Multithreading): New section.
37693
37694 2005-07-18  Bruno Haible  <bruno@clisp.org>
37695
37696         * m4/lock.m4: New file, from GNU gettext.
37697
37698 2005-07-18  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/lock.h: New file, from GNU gettext.
37701         * lib/lock.c: New file, from GNU gettext.
37702
37703 2005-07-18  Bruno Haible  <bruno@clisp.org>
37704
37705         * lib/lock.h (gl_once_t): New type.
37706         (gl_once_define, gl_once): New macros.
37707         * lib/lock.c (fresh_once): New variable.
37708         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
37709         functions.
37710
37711 2005-07-16  Simon Josefsson  <jas@extundo.com>
37712
37713         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
37714         workaround, suggested by Bruno.
37715
37716 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37717
37718         * modules/xalloc (Depends-on): Add xalloc-die.
37719         * modules/xvasprintf (Depends-on): Add xalloc-die.
37720
37721 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37722
37723         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37724         with a minor change.
37725
37726 2005-07-15  Bruno Haible  <bruno@clisp.org>
37727
37728         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37729         When using lib/poll.c, define poll as rpl_poll.
37730
37731 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
37732
37733         * modules/argp (Depends-on): Remove unlocked-io.
37734
37735 2005-07-14  Derek Price  <derek@ximbiot.com>
37736
37737         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
37738         for glob symlink bug.
37739
37740 2005-07-14  Bruno Haible  <bruno@clisp.org>
37741
37742         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37743         Instead, test for *_unlocked function declarations directly.
37744
37745 2005-07-11  Simon Josefsson  <jas@extundo.com>
37746
37747         * modules/size_max: New file.
37748
37749         * modules/xsize: Depend on size_max module for size_max.m4.
37750
37751 2005-07-11  Simon Josefsson  <jas@extundo.com>
37752
37753         * lib/size_max.h: New file.
37754
37755 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37756
37757         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37758         copyright symbol and the year.
37759         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37760         (version_etc_va): Use parameterized copyright notice.
37761         Reword to conform to the current GNU coding standards.
37762
37763 2005-07-11  Karl Berry  <karl@gnu.org>
37764
37765         * doc/gnulib.texi (Quoting): new node.
37766         (Initial import): more info, from Patrice.
37767
37768 2005-07-11  Bruno Haible  <bruno@clisp.org>
37769
37770         * gnulib-tool (func_usage): Document option --avoid.
37771         (Command line options): Handle --avoid.
37772         (func_acceptable): New function.
37773         (func_modules_transitive_closure): Use it.
37774
37775 2005-07-11  Bruno Haible  <bruno@clisp.org>
37776
37777         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37778         Reported by Jim Meyering.
37779
37780 2005-07-10  Bruno Haible  <bruno@clisp.org>
37781
37782         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37783         Needed when size_t is smaller than 'unsigned int'.
37784         Reported by Paul Eggert.
37785
37786 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37787
37788         * modules/argp (Depends-on): Add unlocked-io
37789
37790 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37791
37792         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37793         block of defines.
37794
37795 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37796
37797         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37798         fix now.
37799
37800 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37801         and Paul Eggert  <eggert@cs.ucla.edu>
37802
37803         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37804         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37805
37806 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37807
37808         * modules/regex (Files): Add lib/regex_internal.c,
37809         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37810         (Depends-on): Add extensions.
37811         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37812
37813 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37814
37815         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37816         pathconf.
37817         * m4/same.m4 (gl_SAME): Likewise.
37818         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37819
37820         * m4/regex.m4: Adjust to new libc regex implementation.
37821         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37822         all the .c and .h parts of (the new) regex.
37823         Quote the m4 stuff better.
37824         Check for RE_ICASE bug of old gnulib.
37825         Check for REG_STARTEND of recent libc.
37826         Rename local variables from jm_* to gl_*.
37827         Quote operand of "test -f".
37828         Say "recent enough" version of libc, not "version 2".
37829         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37830         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37831         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37832         Remove check for btowc, isascii.
37833         Require AM_LANGINFO_CODESET.
37834
37835 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37836
37837         * lib/regex.c, regex.h: Sync from libc.
37838         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37839         * lib/regexec.c:
37840         New files, synced from libc, except that regex_internal.h
37841         currently has a small porting fix.
37842
37843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37844
37845         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37846         regex_internal.c, regexec.c.
37847         Add regex_internal.h too, but as a comment, since the libc version
37848         is currently broken in gnulib mode.
37849
37850 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37851
37852         Support programs like Emacs that use gnulib but not gettext.
37853         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37854         * modules/gettext-h: New file.
37855         * modules/gettext (Files): Remove lib/gettext.h.
37856         (Depends-on): Add gettext-h.
37857         (Makefile.am): Remove lib_SOURCES.
37858         * modules/argmatch, modules/c-stack, modules/closeout:
37859         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37860         * modules/execute, modules/file-type, modules/getaddrinfo:
37861         * modules/getopt, modules/human, modules/javacomp:
37862         * modules/javaexec, modules/mkdir-p, modules/obstack:
37863         * modules/openat, modules/pagealign_alloc, modules/pipe:
37864         * modules/quotearg, modules/regex, modules/rpmatch:
37865         * modules/unicodeio, modules/userspec, modules/version-etc:
37866         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37867         * modules/xsetenv:
37868         Depend on gettext-h, not gettext.
37869
37870 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37871
37872         * gnulib-tool (func_import): Add support for 'public domain' license.
37873         * modules/alloca, modules/atexit, modules/memmove:
37874         Now public domain, not GPL.
37875         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37876         * modules/realloc, modules/strerror, modules/strtod:
37877         Now LGPL, not GPL.
37878
37879 2005-07-05  Bruno Haible  <bruno@clisp.org>
37880
37881         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37882         autoconf CVS. Needed for mingw.
37883
37884 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37885
37886         Remove the dependency of the strftime module on the tzset module.
37887         * modules/strftime (Depends-on): Remove dependency on tzset.
37888
37889 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37890
37891         Remove the dependency of the strftime module on the tzset module.
37892         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37893         gl_FUNC_TZSET_CLOBBER.
37894
37895 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37896
37897         Remove the dependency of the strftime module on the tzset module.
37898         * lib/strftime.c (my_strftime)
37899         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37900         Copy the input structure, to work around some of the bug with
37901         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37902         Solaris releases, you should also use the tzset module, but we won't
37903         require it as a dependency any more since we don't want LGPLed code
37904         to depend on GPLed code.
37905
37906 2005-07-02  Jim Meyering  <jim@meyering.net>
37907
37908         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37909         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37910         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37911         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37912
37913 2005-07-02  Jim Meyering  <jim@meyering.net>
37914
37915         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37916
37917 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37918
37919         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37920         declares only 'struct timespec;' (!).
37921
37922 2005-07-01  Jim Meyering  <jim@meyering.net>
37923
37924         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37925         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37926         * lib/save-cwd.c, tempname.c:
37927         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37928         and don't include <sys/file.h>).
37929
37930 2005-06-29  Jim Meyering  <jim@meyering.net>
37931
37932         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37933         type name.  Use the variable name instead.
37934         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37935         Likewise.
37936
37937 2005-06-28  Simon Josefsson  <jas@extundo.com>
37938
37939         * modules/check-version (Files): Add check-version.m4.
37940
37941 2005-06-28  Simon Josefsson  <jas@extundo.com>
37942
37943         * m4/check-version.m4: New file, suggested by Jim Meyering
37944         <jim@meyering.net>.
37945
37946 2005-06-28  Simon Josefsson  <jas@extundo.com>
37947
37948         * lib/check-version.h, lib/check-version.c: New files.
37949
37950 2005-06-28  Simon Josefsson  <jas@extundo.com>
37951
37952         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37953         collision with global variable.  Better indentation.  Don't
37954         increment buffer pointer beyond buffer end.  Based on comments
37955         from Paul Eggert <eggert@cs.ucla.edu>.
37956
37957         * lib/base64.h: Indent.
37958
37959 2005-06-28  Simon Josefsson  <jas@extundo.com>
37960
37961         * doc/gnulib.texi (Library version handling): New section.
37962
37963 2005-06-28  Jim Meyering  <jim@meyering.net>
37964
37965         * check-module (find_included_lib_files): Hard-code another
37966         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37967         but modules/fts-lgpl (correctly) does not list those files.
37968
37969         * modules/canonicalize (Files): Add lib/pathmax.h.
37970
37971 2005-06-25  Simon Josefsson  <jas@extundo.com>
37972
37973         * modules/check-version: New file.
37974
37975 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37978         initializer of struct addrinfo, as an indication that we don't
37979         care how many members the structure has.
37980
37981 2005-06-24  Derek Price  <derek@ximbiot.com>
37982         and Bruno Haible  <bruno@clisp.org>
37983
37984         Remove stat module & update lstat.
37985         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37986         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37987         * m4/stat.m4: Remove this file.
37988
37989 2005-06-24  Derek Price  <derek@ximbiot.com>
37990         and Bruno Haible  <bruno@clisp.org>
37991
37992         Remove stat module & update lstat.
37993         * lib/stat.c: Remove this file...
37994         (slash_aware_lstat): ...moving this content and its support...
37995         * lib/lstat.c (rpl_lstat): ...into here.
37996         * lib/lstat.h: New file.
37997
37998 2005-06-24  Derek Price  <derek@ximbiot.com>
37999         and Bruno Haible  <bruno@clisp.org>
38000
38001         Remove stat module & update lstat.
38002         * config/srclist.txt (libc sources): Remove stat.
38003
38004 2005-06-24  Derek Price  <derek@ximbiot.com>
38005         and Bruno Haible  <bruno@clisp.org>
38006
38007         Remove stat module & update lstat.
38008         * MODULES.html.sh (stat): Remove.
38009         * MODULES.html: Regenerated.
38010         * modules/lstat (Description): Correct function name.
38011         (Files): Add "lstat.h".
38012         (Depends-on): Remove stat, add xalloc, stat-macros.
38013         * modules/stat: Remove this file.
38014         (Include): Add "lstat.h", remove <sys/stat.h>.
38015
38016 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
38019         (ranged_convert): Don't save conversion in a temporary struct.
38020         This causes a warning with GCC 4.0.0, and anyway in the typical
38021         case it's not worth the extra 100 bytes or so of code.
38022         (ranged_convert, __mktime_internal): When calling a function via a
38023         pointer P, use P () rather than (*P) (), as we now assume C89 or
38024         better.
38025
38026 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38027
38028         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
38029         "who -r" failed to give output.  Problem reported by Tim Waugh.
38030
38031         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
38032         (xcalloc): Use it to avoid needless tests.
38033         Problem reported by Jim Meyering.
38034
38035 2005-06-20  Derek Price  <derek@ximbiot.com>
38036
38037         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
38038         unnecessary for Autoconfs > 2.59c.
38039
38040 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38041
38042         * lib/argp.h (__option_is_short): Check upper limit of
38043         __key. Isprint() requires its argument to have the value
38044         of an unsigned char or EOF.
38045
38046 2005-06-16  Jim Meyering  <jim@meyering.net>
38047
38048         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
38049         when either N or S is zero.
38050
38051 2005-06-16  Derek Price  <derek@ximbiot.com>
38052
38053         * m4/bison.m4: Declare YACC & YFLAGS precious.
38054
38055 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
38056
38057         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
38058         multibyte string or pattern, fall back on unibyte matching.
38059         Problem reported by James Youngman.
38060
38061 2005-06-08  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/csharpcomp: New file.
38064         * MODULES.html.sh (C#): Add csharpcomp.
38065
38066 2005-06-08  Bruno Haible  <bruno@clisp.org>
38067
38068         * m4/csharpcomp.m4: New file, from GNU gettext.
38069
38070 2005-06-08  Bruno Haible  <bruno@clisp.org>
38071
38072         * lib/csharpcomp.h: New file, from GNU gettext.
38073         * lib/csharpcomp.c: New file, from GNU gettext.
38074         * lib/csharpcomp.sh.in: New file, from GNU gettext.
38075
38076 2005-06-08  Bruno Haible  <bruno@clisp.org>
38077
38078         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
38079         warning on mingw.
38080
38081 2005-06-07  Derek Price  <derek@ximbiot.com>
38082
38083         Sync from CVS.
38084         * lib/glob_.h: Indent nested #ifdef.
38085
38086 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38087
38088         Sync from coreutils.
38089         Use "file name" when talking about file names, instead of "filename"
38090         or "path", as per the GNU coding standards.
38091         * lib/mkdir-p.c: Renamed from makepath.c.
38092         (make_dir_parents): Renamed from make_path.  All callers changed.
38093         * lib/mkdir-p.h: Likewise.  All includers changed.
38094         * lib/filenamecat.c: Renamed from path-concat.c.
38095         (file_name_concat): Renamed from path_concat.  All callers changed.
38096         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
38097         * lib/filenamecat.h: Likewise.  All includers changed.
38098         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
38099         in comments or local variable names.
38100         * lib/basename.c: Likewise.
38101         * lib/canonicalize.c, canonicalize.h: Likewise.
38102         * lib/dirname.c, dirname.h: Likewise.
38103         * lib/euidaccess.c: Likewise.
38104         * lib/exclude.c: Likewise
38105         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
38106         * lib/fsusage.c, fsuage.h: Likewise.
38107         * lib/fts.c, fts_.h: Likewise.
38108         * lib/getcwd.c: Likewise.
38109         * lib/getloadavg.c: Likewise.
38110         * lib/mkstemp.c: Likewise.
38111         * lib/mountlist.c, mountlist.h: Likewise.
38112         * lib/openat.c, openat.h: Likewise.
38113         * lib/readlink-stub.c: Likewise.
38114         * lib/readutmp.c, readutmp.h: Likewise.
38115         * lib/rename.c: Likewise.
38116         * lib/rmdir.c: Likewise.
38117         * lib/same.c: Likewise.
38118         * lib/savedir.c: Likewise.
38119         * lib/stripslash.c: Likewise.
38120         * lib/tempname.c: Likewise.
38121         * lib/xreadlink.c: Likewise.
38122         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
38123         All uses changed.
38124         * lib/exclude.h: Likewise.
38125
38126         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
38127         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38128         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
38129         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38130         * lib/pathmax.h: Include <limits.h> unconditionally, since other
38131         files have been getting away with it for years (MORE/BSD 4.3
38132         is extinct now).
38133         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
38134         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38135
38136         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
38137         Define to 256, not 255, as per modern POSIX.
38138
38139 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38140
38141         Sync from coreutils.
38142         Use "file name" when talking about file names, instead of "filename"
38143         or "path", as per the GNU coding standards.
38144         * MODULES.html.sh: mkdir-p renamed from makepath.
38145         filenamecat renamed from path-concat.
38146         * modules/filenamecat: Renamed from modules/path-concat.
38147         (Files): filenamecat.h and filenamecat.c renamed from
38148         path-concat.h and path-concat.c.
38149         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
38150         (Include): filenamecat.h, not path-concat.h.
38151         * modules/mkdir-p: Renamed from modules/makepath.
38152         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
38153         makepath.c.
38154         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
38155         (Include): mkdir-p.h, not makepath.h.
38156
38157 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38158
38159         Sync from coreutils.
38160         * m4/mkdir-p.m4: Renamed from makepath.m4.
38161         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
38162         Rename files from makepath.c to mkdir-p.c, and from
38163         makepath.h to mkdir-p.h.
38164         * m4/filenamecat.m4: Renamed from path-concat.m4.
38165         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
38166         Rename files from path-concat.c to filenamecat.c,
38167         and from path-concat.h to filenamecat.h.
38168         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
38169         "file name" in local variables or comments.
38170         * m4/rename.m4: Likewise.
38171
38172 2005-06-01  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/csharpexec: New file.
38175         * MODULES.html.sh (C#): New section.
38176
38177 2005-06-01  Bruno Haible  <bruno@clisp.org>
38178
38179         * m4/csharp.m4: New file, from GNU gettext.
38180         * m4/csharpexec.m4: New file, from GNU gettext.
38181
38182 2005-06-01  Bruno Haible  <bruno@clisp.org>
38183
38184         * lib/csharpexec.h: New file, from GNU gettext.
38185         * lib/csharpexec.c: New file, from GNU gettext.
38186         * lib/csharpexec.sh.in: New file, from GNU gettext.
38187
38188 2005-05-31  Derek Price  <derek@ximbiot.com>
38189             Paul Eggert  <eggert@cs.ucla.edu>
38190
38191         Sync from cvs.
38192         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38193
38194 2005-05-31  Derek Price  <derek@ximbiot.com>
38195             Paul Eggert  <eggert@cs.ucla.edu>
38196
38197         Sync from cvs.
38198         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38199
38200 2005-05-29  Derek Price  <derek@ximbiot.com>
38201
38202         * config/srclist.txt (glob_.h, glob.c): Add these files.
38203
38204 2005-05-29  Derek Price  <derek@ximbiot.com>
38205
38206         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
38207         * modules/glob: New file.
38208         * modules/getlogin_r: Add link to POSIX spec in description.
38209
38210 2005-05-29  Derek Price  <derek@ximbiot.com>
38211             Paul Eggert  <eggert@cs.ucla.edu>
38212
38213         * m4/glob.m4: New file.
38214
38215 2005-05-29  Derek Price  <derek@ximbiot.com>
38216             Paul Eggert  <eggert@cs.ucla.edu>
38217
38218         * lib/glob_.h, lib/glob.c: New files.
38219
38220 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         * modules/fts (Files): Remove m4/inttypes-pri.m4.
38223         * modules/fts-lgpl (Depends-on): Remove gettext.
38224
38225 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38226
38227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
38228         and don't require gt_INTTYPES_PRI.
38229
38230 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38231
38232         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
38233
38234         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
38235         the configuration hassle isn't worth it.
38236         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
38237         (LONGEST_MODIFIER, PRIuMAX): Remove.
38238
38239 2005-05-27  Bruno Haible  <bruno@clisp.org>
38240
38241         * lib/getlogin_r.h: Remove second include of <stddef.h>.
38242
38243 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38244
38245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
38246         _POSIX_PTHREAD_SEMANTICS for Solaris.
38247
38248 2005-05-25  Derek Price  <derek@ximbiot.com>
38249
38250         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
38251
38252 2005-05-25  Derek Price  <derek@ximbiot.com>
38253             Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         * modules/getlogin_r, m4/getlogin_r.m4: New files.
38256         * lib/getlogin_r.c, getlogin_r.h: New files.
38257
38258 2005-05-25  Bruno Haible  <bruno@clisp.org>
38259             Derek Price  <derek@ximbiot.com>
38260
38261         * lib/getlogin_r.h: Simplify API documentation.
38262
38263 2005-05-23  Derek Price  <derek@ximbiot.com>
38264
38265         * modules/minmax (Files): Add m4/minmax.m4.
38266         (configure.ac): Add gl_MINMAX.
38267
38268 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38269
38270         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
38271         so that unistd-safer.h (GPL'ed code) need not be included.
38272
38273 2005-05-22  Bruno Haible  <bruno@clisp.org>
38274
38275         * m4/minmax.m4: New file.
38276         Based on a patch by Derek Price <derek@ximbiot.com>.
38277
38278 2005-05-22  Bruno Haible  <bruno@clisp.org>
38279
38280         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
38281         (INT64_MIN): Fix definition.
38282         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
38283
38284         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
38285         NEED_SIGNED_INT_TYPES.
38286
38287         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
38288         HAVE_SYSTEM_INTTYPES.
38289
38290 2005-05-22  Bruno Haible  <bruno@clisp.org>
38291
38292         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
38293         Also include <sys/param.h> if it defines MIN, MAX.
38294         Based on a patch by Derek Price <derek@ximbiot.com>.
38295
38296 2005-05-21  Jim Meyering  <jim@meyering.net>
38297
38298         * modules/fts (Files): Add m4/inttypes-pri.m4.
38299         (Depends-on): Add lstat and remove gettext.  Alphabetize.
38300
38301 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38302
38303         New fts module.
38304         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
38305         (setup_dir, free_dir): New functions.
38306         (enter_dir, leave_dir): Define trivial
38307         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
38308         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
38309         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
38310         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
38311         Move to fts-cycle.c.
38312         (fts_open): Use setup_dir.
38313         (fts_close): Use free_dir.
38314         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
38315         This adds a label and some gotos, but the alternatives were messier.
38316         Check for memory allocation failure when entering a dir.
38317         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
38318         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
38319         (FTS): New member fts_cycle, that is a union that contains the
38320         old active_dir_ht and cycle_state.  All uses changed to mention
38321         fts_cycle.ht and fts_cycle.state.
38322         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
38323         fts.c, with the following changes:
38324         (setup_dir, free_dir): New functions.
38325         (enter_dir): Now returns bool.  Return true if successful, false
38326         if memory exhausted.  All callers changed.
38327         Do not bother partly cleaning up on
38328         memory allocation failure; that is free_dir's job.
38329         However, free ad if hash_insert fails, to avoid memory leak.
38330         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
38331         fts->fts_options to see which union member to use.
38332
38333 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38334
38335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
38336         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
38337
38338 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38339
38340         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
38341
38342 2005-05-20  Jim Meyering  <jim@meyering.net>
38343
38344         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
38345         Now a macro, to pacify GCC.
38346
38347 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38348
38349         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
38350         of -1.
38351
38352 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38353
38354         * lib/chown.c (rpl_chown): Return -1 on failure.
38355
38356 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38357
38358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
38359         Don't check for stddef.h.
38360         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
38361         don't use its results.
38362         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
38363         since we include them unconditionally.  Don't require
38364         AM_STDBOOL_H, since stdbool is a prerequisite.
38365         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
38366         since we assume C89 or better.
38367         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
38368         as we don't use their results.
38369         Don't check for fchdir, memmove, memset, strrchr, as we use
38370         them unconditionally.
38371         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
38372         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
38373
38374 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38375
38376         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
38377         Include <stddef.h> unconditionally, since we assume C89 now.
38378         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
38379         * lib/fts.c: Include fts_.h first, to check interface.
38380         Do not include intprops.h; no longer needed.
38381         Include cycle-check.h and hash.h, since fts_.h no longer does.
38382         Remove unnecessary casts of closedir to void.
38383         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
38384         decide whether to decrement nlinks.
38385         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
38386         (FTS): Use struct hash_table * instead of Hash_table, so that
38387         we no longer need to include hash.h here.
38388
38389 2005-05-18  Jim Meyering  <jim@meyering.net>
38390
38391         * modules/dirfd (License): Change to LGPL.  Most of the code
38392         is already in the public domain.
38393
38394 2005-05-18  Jim Meyering  <jim@meyering.net>
38395
38396         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
38397         Reported by Yoann Vandoorselaere.
38398
38399 2005-05-17  Jim Meyering  <jim@meyering.net>
38400
38401         * m4/fts.m4: New file, from coreutils.
38402
38403 2005-05-17  Jim Meyering  <jim@meyering.net>
38404
38405         * lib/fts.c, lib/fts_.h: New files, from coreutils.
38406
38407 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38408
38409         Sync from coreutils.
38410         * m4/unlinkdir.m4: New file.
38411
38412 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38413
38414         Sync from coreutils.
38415         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
38416         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
38417         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
38418         White space changes only.
38419         * lib/makepath.c (make_path): Port to hosts where leading "//" is
38420         special.
38421         * lib/yesno.c: Include getline.h, not ctype.h.
38422         (yesno): Don't remove leading white space; POSIX doesn't allow it.
38423         Use getline to remove arbitrary restriction on response length.
38424
38425 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38426
38427         * config/srclist-update: Spell out "Street" in FSF postal
38428         mail address; this is the style the FSF seems to prefer.
38429
38430         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
38431         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
38432         this updates FSF postal mail address.
38433
38434         Sync from coreutils.
38435         * modules/unlinkdir: New file.
38436         * modules/yesno (Depends-on): Add getline.
38437         * MODULES.html.sh (File system functions): Add unlinkdir.
38438
38439 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38440
38441         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
38442         lib/strsep.h:
38443         Change the initial comment to refer to GPL, not LGPL.
38444         gnulib-tool will change it to LGPL as needed.
38445
38446         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
38447         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
38448         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
38449         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
38450         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
38451         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
38452         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
38453         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
38454         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
38455         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
38456         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
38457         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
38458         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
38459         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
38460         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
38461         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
38462         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
38463         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
38464         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
38465         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
38466         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
38467         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
38468         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
38469         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
38470         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
38471         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
38472         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
38473         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
38474         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
38475         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
38476         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
38477         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
38478         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
38479         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
38480         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
38481         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
38482         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
38483         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
38484         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
38485         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
38486         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
38487         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
38488         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
38489         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
38490         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
38491         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
38492         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
38493         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
38494         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
38495         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
38496         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
38497         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
38498         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
38499         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
38500         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
38501         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
38502         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
38503         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
38504         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
38505         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
38506         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
38507         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
38508         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
38509         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
38510         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
38511         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
38512         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
38513         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
38514         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
38515         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
38516         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
38517         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
38518         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
38519         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
38520         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
38521         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
38522         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
38523         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
38524         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
38525         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
38526         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
38527         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
38528         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
38529         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
38530         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
38531         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
38532         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
38533         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
38534         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
38535         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
38536         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
38537         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
38538         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
38539         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
38540         lib/yesno.c, lib/yesno.h:
38541         Update FSF postal mail address.
38542
38543 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38544
38545         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
38546         tests/test-memmem.c, tests/test-stpncpy.c:
38547         Update FSF postal mail address.
38548
38549 2005-05-13  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
38552         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
38553         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
38554         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
38555         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
38556         Add support for 64-bit integers in the MSVC compiler.
38557
38558 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38559
38560         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
38561
38562 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
38563
38564         * gnulib-tool (func_import): Sort and uniquify recommended includes.
38565
38566 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38567
38568         * doc/getdate.texi (General date syntax): Don't say that date
38569         date --iso-8601=ns generates acceptable dates; it doesn't yet.
38570         Problem reported by Nic Ferrier.
38571
38572 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38573
38574         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
38575         specified in ai_socktype. Fix invalid ai_protocol
38576         check. ai_protocol is usually set to 0 or depending on
38577         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
38578         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
38579         ai_socktype / ai_protocol in the returned addrinfo structure.
38580
38581 2005-05-10  Simon Josefsson  <jas@extundo.com>
38582
38583         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
38584         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38585
38586 2005-05-10  Karl Berry  <karl@gnu.org>
38587
38588         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
38589         (from http://www.gnu.org/licenses).
38590         * doc/COPYING.LIB: also rename to COPYING.LESSER.
38591         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
38592         fdl.texi suffices.
38593
38594 2005-05-10  Karl Berry  <karl@gnu.org>
38595
38596         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
38597         (COPYING.DOC): remove.
38598
38599         * config/srclist-update: new FSF address.
38600
38601 2005-05-10  Derek Price  <derek@ximbiot.com>
38602
38603         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
38604         possible.
38605
38606 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38607             Bruno Haible  <bruno@clisp.org>
38608
38609         * modules/inet_ntop: New file.
38610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38611         inet_ntop.
38612
38613 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38614             Bruno Haible  <bruno@clisp.org>
38615
38616         * m4/inet_ntop.m4: New file.
38617
38618 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38619             Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/inet_ntop.h: New file.
38622         * lib/inet_ntop.c: New file, from glibc with modifications.
38623
38624 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
38625
38626         * modules/time_r (License): Change to LGPL.
38627         * modules/extensions (License): Change to LGPL.  Actually,
38628         the license is more permissive than that, but currently gnulib-tool
38629         doesn't know how to handle more-permissive licenses.
38630
38631         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
38632         Problem reported by Dave Love.
38633
38634 2005-05-08  Jim Meyering  <jim@meyering.net>
38635
38636         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
38637         blank.
38638
38639 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38640
38641         * modules/argmatch (Depends-on): Add stdbool.
38642         * modules/backupfile (Depends-on): Likewise.
38643         * modules/chdir-long (Depends-on): Likewise.
38644         * modules/closeout (Depends-on): Likewise.
38645         * modules/cycle-check (Depends-on): Likewise.
38646         * modules/dirname (Depends-on): Likewise.
38647         * modules/fnmatch (Depends-on): Likewise.
38648         * modules/fsusage (Depends-on): Likewise.
38649         * modules/fwriteerror (Depends-on): Likewise.
38650         * modules/getcwd (Depends-on): Likewise.
38651         * modules/getloadavg (Depends-on): Likewise.
38652         * modules/hard-locale (Depends-on): Likewise.
38653         * modules/makepath (Depends-on): Likewise.
38654         * modules/mountlist (Depends-on): Likewise.
38655         * modules/nanosleep (Depends-on): Likewise.
38656         * modules/posixtm (Depends-on): Likewise.
38657         * modules/quotearg (Depends-on): Likewise.
38658         * modules/readtokens (Depends-on): Likewise.
38659         * modules/readtokens0 (Depends-on): Likewise.
38660         * modules/readutmp (Depends-on): Likewise.
38661         * modules/save-cwd (Depends-on): Likewise.
38662         * modules/strftime (Depends-on): Likewise.
38663         * modules/userspec (Depends-on): Likewise.
38664         * modules/utimecmp (Depends-on): Likewise.
38665         * modules/xgetcwd (Depends-on): Likewise.
38666         * modules/xnanosleep (Depends-on): Likewise.
38667         * modules/xstrtod (Depends-on): Likewise.
38668         * modules/yesno (Depends-on): Likewise.
38669
38670 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
38673         needless checks.
38674
38675 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38676
38677         Merge from coreutils.  Among other things,
38678         add bulletproofing for cases where stdin, stdout, or stderr are closed.
38679         * lib/fd-safer.c: New file.
38680         * lib/fcntl-safer.h, open-safer.c: Remove.
38681         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
38682         * lib/dup-safer.c: Include unistd-safer.h first.
38683         Don't include errno.h.
38684         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
38685         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
38686         * lib/file-type.c: Rely on file-type.h change.
38687         * lib/getloadavg.c: Include unistd-safer.h.
38688         (getloadavg): Use safer open.
38689         * lib/getusershell.c: Include "stdio-safer.h".
38690         (getusershell): Use safer fopen.
38691         * lib/long-options.c (long_options): Use NULL rather than 0.
38692         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
38693         'free'.
38694         * lib/modechange.c: Likewise.
38695         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
38696         (MODE_DONE): New constant.
38697         (struct mode_change): Remove 'next' member.
38698         (make_node_op_equals): New function; like the old one of the
38699         same name, except it allocates an array.
38700         (mode_compile, mode_create_from_ref): Use it.
38701         (mode_compile): Allocate result as an array, not a linked list.
38702         Parse octal string ourself, so that we catch mistakes like "+0".
38703         (mode_adjust): Arg is an array, not a linked list.
38704         * lib/modechange.c: Include stat-macros.h, xalloc.h.
38705         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
38706         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
38707         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
38708         Remove.  This is now stat-macros.h's job.
38709         (talloc): Remove.  All callers replaced by xalloc, so that
38710         our invokers don't have to worry about reporting memory failures.
38711         (make_node_op_equals): Remove.
38712         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38713         New constants.
38714         (struct mode_change): Moved here from modechange.h.
38715         (mode_append_entry): Remove.
38716         (mode_compile): Remove MASKED_OPS arg, since it encouraged
38717         apps to have incorrect behavior.  Use simpler algorithm for head
38718         and tail.  Don't futz with umask; that's now the job of mode_adjust.
38719         Detect more invalid usages rather than having somewhat-random behavior.
38720         Don't insert an "a=" action, as that leads to incorrect behavior.
38721         (mode_compile, mode_create_from_ref): Return NULL on error instead
38722         of an enum, since now there's only one way to have an error.  All
38723         callers changed.
38724         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38725         at the correct time.  Simplify calculation of "+u" and its ilk.
38726         Don't mishandle "+X".
38727         (mode_free): Remove "register" and localize decls.
38728         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38729         (struct mode_change): Move to modechange.c; callers don't
38730         need to see this stuff.
38731         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38732         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38733         (mode_change, mode_adjust): Reflect the new signatures noted above.
38734         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38735         that might redefine system include files.
38736         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38737         (my_usleep): Use NULL rather than (void *) 0.
38738         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38739         Use siginterrupt to specify that system calls should be interrupted.
38740         (rpl_nanosleep): Move initialization of suspended closer to call of
38741         my_usleep.
38742         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
38743         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
38744         (desirable_utmp_entry): New function.
38745         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38746         using x2nrealloc, to simplify logic.
38747         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38748         size calculation.  Do not assume utmp file is a regular file.
38749         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38750         (READ_UTMP_CHECK_PIDS): New constant.
38751         * lib/save-cwd.c: Include unistd-safer.h.
38752         (save_cwd): Use fd_safer.
38753         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38754         [!_LIBC] Include "stat-macros.h" instead.
38755         * lib/unistd-safer.h (fd_safer): New decl.
38756
38757 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38758
38759         * modules/getloadavg (Depends-on): Add unistd-safer.
38760         * modules/getusershell (Depends-on): Add stdio-safer.
38761         * modules/lstat (Depends-on): Remove xalloc.
38762         * modules/mkstemp (Depends-on): Add stat-macros.
38763         * modules/modechange (Depends-on): Remove xstrtol.
38764         Add stat-macros, xalloc.
38765         * modules/save-cwd (Depends-on): Add unistd-safer.
38766         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38767         * modules/unistd-safer (Files): Add lib/fd-safer.c
38768         (Makefile.am): Remove lib_SOURCES.
38769
38770         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38771         Remove fcntl-safer; unistd-safer supersedes it.
38772
38773 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38774
38775         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38776         AC_HEADER_STAT.
38777         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38778         (gl_PREREQ_CHOWN): Remove.
38779         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38780         it.  Don't require AC_HEADER_STAT.
38781         (gl_PREREQ_LSTAT): Remove.
38782         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38783         Don't require AC_HEADER_STAT.
38784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38785         (gl_PREREQ_RMDIR): Remove.
38786         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38787         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38788         the stat-macros module a prerequisite.
38789         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38790         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38791         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38792         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38793         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38794         variable names.
38795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38796         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38797         variable prefixes.
38798         * m4/fcntl-safer.m4: Remove.
38799         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38801         Invoke gl_PREREQ_FD_SAFER.
38802         (gl_PREREQ_FD_SAFER): New macro.
38803         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38804         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38805         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38806         Remove duplicate call to AC_LIBOBJ(readutmp).
38807         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
38808
38809         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38810         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
38811
38812 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         * MODULES.html.sh (Misc): Add byteswap.
38815
38816 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38817
38818         * modules/getcwd (Depends-on): Add extensions.
38819         * modules/openat (Depends-on): Likewise.
38820
38821 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38822
38823         * modules/byteswap: New file.
38824
38825 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38826
38827         * m4/byteswap.m4: New file.
38828
38829 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38830
38831         * lib/byteswap_.h: New file.
38832
38833 2005-04-25  Karl Berry  <karl@gnu.org>
38834
38835         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38836
38837 2005-04-25  Albert Chin  <china@thewrittenword.com>
38838
38839         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38840         Toolkit C bug.
38841
38842 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38843
38844         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38845         (func_ln_if_changed) Remove forcibly for no error message
38846         in case file does not exist.
38847
38848 2005-04-19  Simon Josefsson  <jas@extundo.com>
38849
38850         * gnulib-tool (Options): Make --symlink mean --symbolic.
38851
38852 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38853
38854         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38855
38856 2005-04-16  Simon Josefsson  <jas@extundo.com>
38857
38858         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38859
38860 2005-04-15  Simon Josefsson  <jas@extundo.com>
38861
38862         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38863
38864 2005-04-15  Simon Josefsson  <jas@extundo.com>
38865
38866         * gnulib-tool: Rename --symlink to --symbolic.
38867
38868 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38869
38870         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38871         symbolic links to files instead of copying/moving.  Add --aux-dir,
38872         specifying directory relative --dir where auxiliary build tools
38873         are placed.
38874
38875 2005-04-14  Bruno Haible  <bruno@clisp.org>
38876
38877         * modules/allocsa (License): Change to LGPL.
38878         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38879
38880 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38881
38882         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38883         that "UTC +1 second" continues to work.  Problem reported
38884         by Dmitry V. Levin.
38885         (relunit_snumber): New rule.
38886         (relunit): Use it.
38887
38888 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38889
38890         * lib/getdate.y (universal_time_zone_table): New constant.
38891         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38892         universal_time_zone_table.
38893         (lookup_zone): Prefer universal_time_zone_table to
38894         local_time_zone_table, so that "GMT" time stamps are allowed in
38895         London during the summer.  Problem reported by Ian Abbott.
38896
38897 2005-04-12  Jim Meyering  <jim@meyering.net>
38898
38899         * lib/human.c (humblock): Set *options even when returning due to
38900         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38901         warning from gcc-4.
38902
38903 2005-04-09  Jim Meyering  <jim@meyering.net>
38904
38905         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38906         -Wuninitialized: initialize tm0.tm_year.
38907
38908 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38909
38910         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38911         count, since there's no maximum.  All uses changed.
38912         Add member dsts_seen.
38913         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38914         not being INT_MAX.
38915         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38916         Use pc_rels_seen to decide whther a date is absolute.
38917
38918         * lib/getdate.y (number): Don't overwrite year.
38919         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38920         check.
38921
38922 2005-04-02  Simon Josefsson  <jas@extundo.com>
38923
38924         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38925         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38926
38927 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38928
38929         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38930         where no absolute path name can be longer than PATH_MAX.
38931
38932 2005-03-27  Jim Meyering  <jim@meyering.net>
38933
38934         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38935
38936 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38937
38938         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38939         "one's complement" -> "ones' complement" in comment, as per Knuth.
38940         "value of type" -> "type or expression" in comment.
38941         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38942
38943 2005-03-26  Jim Meyering  <jim@meyering.net>
38944
38945         Comment nits.
38946         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38947         Correct typos: s/or/of/.
38948
38949 2005-03-26  Jim Meyering  <jim@meyering.net>
38950
38951         * modules/check-include-files: Move to ../ and rename to...
38952         * check-module: ...this.
38953
38954 2005-03-25  Jim Meyering  <jim@meyering.net>
38955
38956         * modules/xvasprintf (Files): Add xalloc.h.
38957
38958 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38959
38960         * modules/gettext (Files): config/config.rpath ->
38961         build-aux/config.rpath
38962         * modules/iconv (Files): Likewise.
38963         Problem reported by Oskar Liljeblad.
38964
38965 2005-03-23  Jim Meyering  <jim@meyering.net>
38966
38967         * modules/check-include-files: New script to check for
38968         missing dependencies, multiple includes, etc.
38969
38970         * modules/c-strtold (Depends-on): Add xalloc.
38971         * modules/c-strtod (Depends-on): Add xalloc.
38972         * modules/hash (Depends-on): Add xalloc.
38973         (Files): Remove lib/xalloc.h.
38974
38975         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38976         * modules/userspec (Files): Add lib/inttostr.h.
38977
38978 2005-03-23  Jim Meyering  <jim@meyering.net>
38979
38980         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38981
38982 2005-03-22  Jim Meyering  <jim@meyering.net>
38983
38984         * modules/stat-macros: New module.
38985         * modules/canonicalize, modules/euidaccess, modules/file-type,
38986         * modules/filemode, modules/lchown, modules/makepath,
38987         * modules/rmdir, modules/stat: Depend on new stat-macros module
38988         rather than listing lib/stat-macros.h manually.
38989         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38990
38991 2005-03-22  Jim Meyering  <jim@meyering.net>
38992
38993         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38994
38995 2005-03-22  Bruno Haible  <bruno@clisp.org>
38996
38997         * config/srclist.txt: Replace target directory 'config' with
38998         'build-aux'.
38999         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
39000         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
39001         ../build-aux/.
39002
39003 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
39004
39005         * modules/chdir-long (Depends-on): Add mempcpy.
39006
39007         * modules/acl, modules/backupfile, modules/c-strtod,
39008         modules/c-strtold, modules/canon-host, modules/canonicalize,
39009         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
39010         modules/exclude, modules/exitfail, modules/file-type,
39011         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
39012         modules/getdate, modules/getline, modules/getpagesize,
39013         modules/getpass, modules/getugroups, modules/group-member,
39014         modules/hard-locale, modules/hash, modules/human, modules/idcache,
39015         modules/inttostr, modules/long-options, modules/makepath,
39016         modules/md5, modules/memcasecmp, modules/memcoll,
39017         modules/modechange, modules/mountlist, modules/path-concat,
39018         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
39019         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
39020         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
39021         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
39022         modules/strftime, modules/strndup, modules/strverscmp,
39023         modules/timespec, modules/unlocked-io, modules/userspec,
39024         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
39025         modules/yesno:
39026         Remove lib_SOURCES line from Makefile.am section, as this is now
39027         done automatically by the corresponding Autoconf macro.
39028
39029 2005-03-21  Jim Meyering  <jim@meyering.net>
39030
39031         Changes imported from coreutils.
39032
39033         * lib/cycle-check.c: Don't include xalloc.h.
39034
39035         * lib/path-concat.c: Don't include assert.h.
39036         (path_concat): Remove assertion that would have triggered
39037         for ABASE starting with more than one slash.
39038         Reported by Andreas Schwab.
39039
39040         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
39041         properly when ABASE is an absolute file name.
39042         Correct the description of this function.
39043         Include <assert.h>.
39044         Add an assertion and a test driver.
39045         This fixes a bug introduced on 2004-07-02.
39046         Andreas Schwab reported the resulting failure of cp --parents:
39047         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
39048
39049 2005-03-21  Jim Meyering  <jim@meyering.net>
39050
39051         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
39052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
39053
39054 2005-03-21  Jim Meyering  <jim@meyering.net>
39055         and  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
39058         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
39059         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
39060         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
39061         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
39062         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
39063         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
39064         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
39065         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
39066         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
39067         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
39068         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
39069         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
39070         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
39071         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
39072         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
39073         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
39074         for these modules.
39075
39076 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
39077
39078         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
39079         (which shouldn't happen), generate nothing instead of returning 0
39080         immediately, so that nstrftime (NULL, ...) doesn't return 0.
39081
39082 2005-03-16  Bruno Haible  <bruno@clisp.org>
39083
39084         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
39085         HAVE_LONGLONG_64BIT.
39086
39087 2005-03-16  Bruno Haible  <bruno@clisp.org>
39088
39089         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
39090         HAVE_LONGLONG_64BIT.
39091
39092 2005-03-16  Bruno Haible  <bruno@clisp.org>
39093
39094         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
39095         HAVE_LONGLONG_64BIT.
39096
39097 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
39098
39099         * lib/strftime.c (my_strftime): Prepend space to format so that we can
39100         reliably distinguish strftime failure from empty output on POSIX
39101         hosts.
39102
39103 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
39104
39105         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
39106         (iconv_string): Don't guess a size-zero buffer, as that might cause
39107         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
39108         result would be 'too large', where 'too large' is (heuristically)
39109         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
39110         overflow concerns.  This will prevent some unwanted malloc failures
39111         when the inputs are very large.
39112
39113 2005-03-15  Karl Berry  <karl@gnu.org>
39114
39115         * config/srclist.txt (config.rpath): from gettext.
39116         * config/config.rpath: update.
39117
39118 2005-03-15  Bruno Haible  <bruno@clisp.org>
39119
39120         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
39121         to 'negate'.
39122
39123         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
39124         variable.
39125
39126         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
39127         results.
39128
39129 2005-03-14  Simon Josefsson  <jas@extundo.com>
39130
39131         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
39132         <fx@gnu.org>.
39133
39134 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
39135
39136         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
39137         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
39138         intprops.h.
39139         * lib/strtol.c: Likewise.
39140
39141 2005-03-14  Jim Meyering  <jim@meyering.net>
39142
39143         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
39144         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
39145         to be nonzero so that we (and caller) can detect the difference
39146         between a valid zero-length expansion and an error return, even
39147         when the underlying strftime fails before writing anything into
39148         that location.
39149
39150 2005-03-14  Bruno Haible  <bruno@clisp.org>
39151
39152         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
39153         Update from GNU gettext 0.14.3.
39154
39155 2005-03-10  Jim Meyering  <jim@meyering.net>
39156
39157         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
39158
39159 2005-03-10  Jim Meyering  <jim@meyering.net>
39160
39161         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
39162         so that this module works on systems without fchdir.
39163
39164 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
39165
39166         Factor int-properties macros into a single file, except for
39167         glibc-related files.
39168         * lib/intprops.h: New file.
39169         * lib/getloadavg.c: Include it instead of limits.h.
39170         (INT_STRLEN_BOUND): Remove.
39171         * lib/human.c: Include intprops.h.
39172         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
39173         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
39174         302/1000.
39175         * lib/inttostr.h: Include intprops.h instead of limits.h.
39176         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
39177         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
39178         for consistency with intprops.h.
39179         (time_t_is_integer, twos_complement_arithmetic): Use them.
39180         * lib/sig2str.h: Include <signal.h>, intprops.h.
39181         (INT_STRLEN_BOUND): Remove.
39182         * lib/strftime.c (TYPE_SIGNED): Remove.
39183         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
39184         * lib/strtol.c: Adjust comments to match intprops.h.
39185         * lib/userspec.c: Include intprops.h.
39186         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
39187         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
39188         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
39189         instead of rolling our own expressions.
39190         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
39191
39192         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
39193         instead of int.
39194         (my_strftime): Do not mishandle years close to INT_MAX, by doing
39195         the right thing even if adding 1900 would overflow.  Similarly
39196         for tm_mon + 1 and tm_yday + 1.
39197         Make %Y always equivalent to %C%y, and similarly for %G and %g.
39198         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
39199         (DO_SIGNED_NUMBER): New macro.
39200         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
39201
39202 2005-03-07  Bruno Haible  <bruno@clisp.org>
39203
39204         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
39205
39206 2005-03-07  Bruno Haible  <bruno@clisp.org>
39207
39208         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
39209
39210 2005-03-04  Derek R. Price  <derek@ximbiot.com>
39211
39212         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
39213         (func_import): Only replace files via --import when they have actually
39214         changed.
39215
39216 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39217
39218         * m4/mmap-anon.m4: New file.
39219         * m4/pagealign_alloc.m4: New file.
39220
39221 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39222             Bruno Haible  <bruno@clisp.org>
39223
39224         * modules/pagealign_alloc: New file.
39225         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
39226
39227 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39228             Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/pagealign_alloc.h: New file.
39231         * lib/pagealign_alloc.c: New file.
39232
39233 2005-03-03  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
39236         Use an all-permissive copyright notice, recommended by RMS.
39237
39238 2005-03-02  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
39241         of AIX, the replacement has to be done only after <string.h> is
39242         included, therefore not in config.h. stpncpy.h does the replacement,
39243         and stpncpy.c uses it.
39244
39245 2005-03-02  Bruno Haible  <bruno@clisp.org>
39246
39247         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
39248         stpncpy.c uses it.
39249
39250 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39251
39252         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
39253         The workaround isn't strictly needed for POSIX conformance, and
39254         it's too much of a pain to configure and maintain.  We'll ask
39255         people to fix their kernels instead.
39256         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
39257         (NANOSLEEP_BUG_WORKAROUND): Remove.
39258         (xnanosleep): Remove the workaround.
39259
39260 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39261
39262         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
39263         Reported by Derek Price.
39264         (Include): Add "timespec.h".
39265
39266         * modules/xnanosleep (Depends-on): Remove gethrxtime.
39267
39268 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39269
39270         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
39271         to detect nanosleep bug.
39272
39273 2005-03-01  Bruno Haible  <bruno@clisp.org>
39274
39275         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
39276
39277 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39278
39279         * modules/gethrxtime: New file.
39280         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
39281         (Depends-on): Add gethrxtime.
39282         (configure.ac): Add gl_XNANOSLEEP.
39283         (Makefile.am): Remove lib_SOURCES line.
39284
39285 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39286
39287         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
39288         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
39289
39290 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39291
39292         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
39293         * lib/timespec.h (gettime): Return void, since it always
39294         succeeds now.  All uses changed.
39295         * lib/gettime.c (gettime) Likewise.
39296         [HAVE_NANOTIME]: Prefer nanotime.
39297         Assume gettimeofday succeeds, as POSIX requires.
39298         Assime time () succeeds, since other code already does.
39299         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
39300         (timespec_subtract): Remove.
39301         (NANOSLEEP_BUG_WORKAROUND): New constant.
39302         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
39303         things considerably.  Use it only on GNU/Linux hosts, since the
39304         workaround shouldn't be needed elsewhere.
39305
39306 2005-02-24  Bruno Haible  <bruno@clisp.org>
39307
39308         * modules/gettext (Files): Add m4/glibc2.m4.
39309
39310 2005-02-24  Bruno Haible  <bruno@clisp.org>
39311
39312         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
39313         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
39314         * m4/progtest.m4:
39315         Update from GNU gettext 0.14.2.
39316         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
39317
39318 2005-02-24  Bruno Haible  <bruno@clisp.org>
39319
39320         * lib/localcharset.c: Update from GNU gettext 0.14.2.
39321         * lib/config.charset: Update from GNU gettext 0.14.2.
39322
39323 2005-02-24  Bruno Haible  <bruno@clisp.org>
39324
39325         * lib/gettext.h: Update from GNU gettext 0.14.2.
39326
39327 2005-02-23  Simon Josefsson  <jas@extundo.com>
39328
39329         * m4/iconvme.m4: New file.
39330
39331 2005-02-23  Jim Meyering  <jim@meyering.net>
39332
39333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
39334         change.
39335         Thanks to Bruno Haible for catching it.
39336
39337 2005-02-22  Simon Josefsson  <jas@extundo.com>
39338
39339         * modules/iconvme: New file.
39340
39341         * MODULES.html.sh: Add iconvme.
39342
39343 2005-02-22  Simon Josefsson  <jas@extundo.com>
39344
39345         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
39346
39347 2005-02-22  Simon Josefsson  <jas@extundo.com>
39348
39349         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
39350
39351 2005-02-22  Jim Meyering  <jim@meyering.net>
39352
39353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
39354         s/ifndef/ifdef/.
39355
39356 2005-02-20  Neil Conway  <neilc@samurai.com>
39357
39358         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
39359         returned by OSX/Darwin if the specified buffer is not large
39360         enough for the hostname.
39361
39362 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39363
39364         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
39365         pass it to _help, otherwise the latter coredumps trying to
39366         dereference state.root_argp.
39367
39368 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39369
39370         * modules/chdir-long (Depends-on): Add memrchr.
39371         * modules/memrchr (Files): Add lib/memrchr.h.
39372         (Include): "memrchr.h".
39373
39374 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39375
39376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
39377
39378 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39379
39380         * lib/memrchr.h: New file.
39381         * lib/chdir-long.c: Include it.
39382         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
39383         Don't bother including stddef.h.
39384
39385 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39386
39387         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
39388         inclusion.
39389         Include <sys/types.h>, for dev_t.
39390         (ME_DUMMY, ME_REMOTE): Move from here....
39391         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
39392         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
39393         Dmitry V. Levin.
39394         Include mountlist.h first, to test the interface.
39395
39396 2005-01-29  Bruno Haible  <bruno@clisp.org>
39397
39398         * lib/progname.c (program_name): Initialize.
39399         Needed when linking statically on MacOS X.
39400
39401 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39402
39403         Sync from coreutils.
39404         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
39405         (Depends-on): Add c-strtod.
39406         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
39407
39408 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39409
39410         Sync from coreutils.
39411         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
39412
39413         Remove files that are specific to coreutils.
39414         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
39415
39416 2005-01-28  Bruno Haible  <bruno@clisp.org>
39417
39418         * modules/javacomp: New file.
39419         * MODULES.html.sh (Java): Add javacomp.
39420
39421 2005-01-28  Bruno Haible  <bruno@clisp.org>
39422
39423         * m4/javacomp.m4: New file, from GNU gettext.
39424
39425 2005-01-28  Bruno Haible  <bruno@clisp.org>
39426
39427         * lib/javacomp.sh.in: New file, from GNU gettext.
39428         * lib/javacomp.h: New file, from GNU gettext.
39429         * lib/javacomp.c: New file, from GNU gettext.
39430
39431 2005-01-26  Simon Josefsson  <jas@extundo.com>
39432
39433         * lib/gai_strerror.c: Use GPL in header.
39434
39435 2005-01-26  Bruno Haible  <bruno@clisp.org>
39436
39437         * modules/javaexec: New file.
39438         * MODULES.html.sh (Java): Add javaexec.
39439
39440 2005-01-26  Bruno Haible  <bruno@clisp.org>
39441
39442         * m4/javaexec.m4: New file, from GNU gettext.
39443
39444 2005-01-26  Bruno Haible  <bruno@clisp.org>
39445
39446         * lib/javaexec.sh.in: New file, from GNU gettext.
39447         * lib/javaexec.h: New file, from GNU gettext.
39448         * lib/javaexec.c: New file, from GNU gettext.
39449
39450 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39451
39452         * modules/lchown (Depends-on): Remove lchown.h
39453
39454 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39455
39456         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
39457         must be defined if the header file was not found, in order
39458         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
39459
39460 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39461
39462         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
39463         initializers for struct pentry_state.
39464         (__argp_error): Check return value of __asprintf
39465         (__argp_failure): Translate error message
39466
39467         * lib/argp-parse.c: Removed braces around the expansion of N_()
39468
39469 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39470
39471         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
39472         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
39473         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
39474         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
39475         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
39476         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
39477         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
39478         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
39479         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
39480         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
39481         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
39482         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
39483         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
39484         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
39485         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
39486         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
39487         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
39488         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
39489         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
39490         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
39491         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
39492         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
39493         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
39494         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
39495         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
39496         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
39497         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
39498         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
39499         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
39500         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
39501         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
39502         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
39503         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
39504         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
39505         xstrtol.m4, xstrtoumax.m4, yesno.m4:
39506         Use an all-permissive copyright notice, recommended by RMS.
39507
39508 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         * modules/chdir-long (Depends-on): Remove mempcpy.
39511
39512 2005-01-21  Jim Meyering  <jim@meyering.net>
39513
39514         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
39515         same value as for Solaris 9.
39516
39517         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
39518         component length.  This included changing the parameter to be
39519         of type `char *' rather than `char const *'.
39520         * lib/chdir-long.h (chdir_long): Update prototype.
39521
39522         * lib/openat.c (fdopendir, fstatat): New functions.
39523         * lib/openat.h: Include headers required for use of DIR and struct
39524         stat.
39525         [AT_SYMLINK_NOFOLLOW]: Define.
39526         (fdopendir, fstatat): Add prototypes.
39527
39528 2005-01-21  Bruno Haible  <bruno@clisp.org>
39529
39530         * modules/classpath: New file.
39531         * MODULES.html.sh (Java): Add classpath.
39532
39533 2005-01-21  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/classpath.h: New file, from GNU gettext.
39536         * lib/classpath.c: New file, from GNU gettext.
39537
39538 2005-01-20  Simon Josefsson  <jas@extundo.com>
39539
39540         * modules/version-etc-fsf: New file.
39541
39542 2005-01-20  Simon Josefsson  <jas@extundo.com>
39543
39544         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
39545         * lib/version-etc.c: Remove version_etc_copyright.
39546         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
39547         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
39548
39549 2005-01-20  Simon Josefsson  <jas@extundo.com>
39550
39551         * lib/base64.h (isbase64): Add.
39552
39553         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
39554         using a unsigned prototype, don't inline.
39555         (base64_decode): Use it.
39556
39557 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
39560         it.
39561
39562 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39563
39564         * lib/save-cwd.c (save_cwd): Remove code to support the case
39565         where fchdir is missing or flaky.
39566
39567 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39568
39569         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
39570
39571 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39572
39573         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
39574         AC_LIBSOURCES now does this.
39575         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
39576         with new ullong_max module.
39577
39578 2005-01-19  Bruno Haible  <bruno@clisp.org>
39579
39580         * modules/sh-quote: New file.
39581         * MODULES.html.sh (Executing programs): Add sh-quote.
39582
39583 2005-01-19  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/sh-quote.h: New file, from GNU gettext.
39586         * lib/sh-quote.c: New file, from GNU gettext.
39587
39588 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39589
39590         Merge from coreutils.
39591         * m4/ullong_max.m4: New file.
39592         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
39593         (gl_MACROS): Assume localeconv exists.
39594
39595 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39596
39597         Merge changes from coreutils, as described below in several
39598         changelogs dated today.
39599
39600         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
39601         (O_DIRECTORY): Remove; not needed here, since "." must be
39602         a directory.  All uses removed.
39603         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
39604         universal on Suns, and we also need to test for IRIX.
39605         Revamp code to use 'if' rather than '#if'.
39606         Avoid unnecessary comparison of cwd->desc to 0.
39607
39608         * lib/utimens.c (futimens): Robustify the previous patch, by checking
39609         for known valid error numbers rather than observed invalid ones.
39610
39611 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39612
39613         * modules/ullong_max: New file.
39614
39615         * modules/chdir-long, modules/openat: New files.
39616         * modules/save-cwd (Depends-on): Depend on chdir-long.
39617         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
39618
39619 2005-01-18  Jim Meyering  <jim@meyering.net>
39620
39621         Merge from coreutils.
39622         * m4/chdir-long.m4, m4/openat.m4: New files.
39623         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
39624         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
39625         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
39626         is sane and DOES follow symlinks.  Besides, testing 20 different
39627         systems found no broken chown implementations.
39628         Prompted by a change in rsync's copy of this macro.
39629         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
39630
39631         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
39632
39633         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
39634         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
39635         NULL-means-set-to-current-time semantics.
39636         Remove temporary file immediately, rather than waiting
39637         for configure's at-exit trap code to do it.
39638
39639 2005-01-18  Jim Meyering  <jim@meyering.net>
39640
39641         * lib/version-etc.c (version_etc_copyright): Update copyright date.
39642
39643         * lib/utimens.c (futimens): Account for the fact that futimes
39644         can also fail with errno == ENOSYS or errno == ENOENT.
39645         Patch from Dmitry V. Levin.
39646
39647         Change the name of the robust chdir function from chdir to chdir_long.
39648         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
39649         (restore_cwd): Use chdir_long, not chdir.
39650         * lib/chdir-long.c: Renamed from chdir.c.
39651         * lib/chdir-long.h: Renamed from chdir.h.
39652         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
39653         Hurd.
39654
39655 2005-01-18  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
39658         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
39659         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
39660         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
39661         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
39662         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
39663         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
39664         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
39665         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
39666         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
39667         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
39668         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
39669         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
39670         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
39671         Use an all-permissive copyright notice, recommended by RMS.
39672
39673 2005-01-18  Bob Proulx  <bob@proulx.com>
39674
39675         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
39676         simplify offsetof() macro construct to avoid compile failure with
39677         native HP-UX 11.0 ANSI C compiler.
39678
39679 2005-01-17  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
39682         redundant because stpncpy.m4 takes care of it.
39683
39684 2005-01-17  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
39687
39688 2005-01-17  Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
39691         used.
39692
39693 2005-01-17  Bruno Haible  <bruno@clisp.org>
39694
39695         * lib/fwriteerror.h (fwriteerror): Change specification to include
39696         fclose.
39697         * lib/fwriteerror.c: Include <stdbool.h>.
39698         (fwriteerror): At the end, close the file stream. Record whether
39699         stdout was already closed.
39700
39701 2005-01-17  Bruno Haible  <bruno@clisp.org>
39702
39703         * lib/execute.c (environ): Declare if needed.
39704         * lib/pipe.c (environ): Likewise.
39705         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
39706
39707 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39708
39709         * modules/argp: Depend on vsnprintf
39710
39711 2005-01-10  Jim Meyering  <jim@meyering.net>
39712
39713         * modules/closeout (Depends-on): Add atexit.
39714
39715 2005-01-06  Bruno Haible  <bruno@clisp.org>
39716
39717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
39718
39719 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39720
39721         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
39722         definitions to be after all include files, to avoid collisions.
39723         Problem reported by Bob Proulx.
39724
39725 2005-01-04  Jim Meyering  <jim@meyering.net>
39726
39727         Changes imported from coreutils.
39728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39729         as the mkstemp template, use a temporary directory and an
39730         8.3-friendly template to avoid trouble on systems like DJGPP.
39731         Reported by Juan M. Guerrero via Stepan Kasal.
39732         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39733         close. Remove the temporary directory right away, rather than waiting
39734         for configure's at-exit trap code to do it.
39735         Suggestion from Stepan Kasal.
39736
39737 2005-01-01  Simon Josefsson  <jas@extundo.com>
39738
39739         * gnulib-tool: Print #include directives when --import'ing.
39740
39741 2004-12-28  Simon Josefsson  <jas@extundo.com>
39742
39743         * tests/test-base64.c: Include required header files.  Remove
39744         unused variables.
39745
39746 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39747
39748         * modules/error (Depends-on): Remove gettext.
39749
39750 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39751
39752         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39753         not needed.  This removes a dependency on the gettext module.
39754         [defined _LIBC]: Do not include <libintl.h>; not needed.
39755
39756 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39759         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39760
39761 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39764         HAVE_DECL_STRTOLD.
39765
39766 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39767
39768         * modules/getdate (Depends-on): Remove alloca-opt.
39769
39770 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39773
39774 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39775
39776         * lib/argp-parse.c: Include <stddef.h>.
39777         (alignof, alignto): New macros.
39778         (parser_init): Don't assume that void * is aligned sufficiently
39779         for struct option.
39780
39781         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39782         need to extend the stack.
39783         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39784         large.
39785
39786 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39787
39788         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39789
39790 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39791
39792         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39793         (2004-10-24) change.  Apparently this was a false alarm.
39794
39795         * modules/getdate: Depend on alloca-opt, not alloca.
39796
39797 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39798
39799         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39800         Remove now-obsolete comment about AIX.
39801         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39802         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39803         (YYMAXDEPTH): New macro.
39804
39805 2004-12-18  Simon Josefsson  <jas@extundo.com>
39806
39807         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39808
39809 2004-12-18  Bruno Haible  <bruno@clisp.org>
39810
39811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39812
39813 2004-12-18  Bruno Haible  <bruno@clisp.org>
39814
39815         * lib/fatal-signal.c (fatal_signals): Make non-const.
39816         (init_fatal_signals): New function.
39817         (uninstall_handlers, install_handlers): Ignore signals that were set to
39818         SIG_IGN.
39819         (at_fatal_signal): Call init_fatal_signals.
39820         (init_fatal_signal_set): Likewise. Ignore signals that were set to
39821         SIG_IGN.
39822         Reported by Paul Eggert.
39823
39824 2004-12-18  Bruno Haible  <bruno@clisp.org>
39825
39826         * doc/alloca.texi: New file.
39827         * doc/alloca-opt.texi: New file.
39828
39829 2004-12-17  Jim Meyering  <jim@meyering.net>
39830
39831         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39832         Otherwise, install-sh could exit with improper exit status when
39833         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39834
39835 2004-12-16  Simon Josefsson  <jas@extundo.com>
39836
39837         * tests/test-base64.c: Add license.
39838
39839 2004-12-15  Stepan Kasal  <address@hidden>
39840
39841         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39842
39843 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39844
39845         * modules/getcwd (Files): Add m4/d-ino.m4.
39846         Suggested by Mark D. Baushke.
39847
39848 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39849
39850         * lib/getdate.y (textint): New member "negative".
39851         (time_zone_hhmm): New function.
39852         Expect 14 shift-reduce conflicts, not 13.
39853         (o_colon_minutes): New rule.
39854         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39855         (yylex): Set the "negative" member of signed numbers.
39856
39857 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39858
39859         * doc/getdate.texi (Time of day items, Time zone items):
39860         Describe new formats +00:00, UTC+00:00.
39861
39862 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39863
39864         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39865         spurious "-l"s.  Problem reported by Stepan Kasal.
39866
39867 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39868
39869         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39870         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39871
39872 2004-12-04  Simon Josefsson  <jas@extundo.com>
39873
39874         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39875         Vandoorselaere <yoann@prelude-ids.org>.
39876
39877 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39878
39879         Changes imported from coreutils.
39880         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39881         exist.
39882         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39883
39884 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39885
39886         Changes imported from coreutils.
39887         * lib/hard-locale.c: Assume <locale.h> exists.
39888         Include "strdup.h".
39889         (GLIBC_VERSION): New macro.
39890         (hard_locale): Assume setlocale exists.
39891         Rewrite to avoid #ifdef.
39892         Use strdup rather than malloc + strcpy.
39893         * lib/human.c: Assume <locale.h> exists.
39894         (human_readable): Assume localeconv exists.
39895
39896 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39897
39898         * modules/hard-locale (Depends-on): Add strdup.
39899
39900 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39901
39902         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39903         convert T2, not T.  (Imported from libc.)
39904
39905 2004-11-30  Simon Josefsson  <jas@extundo.com>
39906
39907         * modules/restrict (License): Change to LGPL.
39908
39909 2004-11-30  Simon Josefsson  <jas@extundo.com>
39910
39911         * m4/restrict.m4: Add copyright and copying conditions.
39912
39913 2004-11-30  Simon Josefsson  <jas@extundo.com>
39914
39915         * m4/base64.m4: New file.
39916
39917 2004-11-30  Simon Josefsson  <jas@extundo.com>
39918
39919         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39920         base64.
39921
39922         * tests/test-base64.c: New file.
39923
39924         * modules/base64: New file.
39925
39926 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39927
39928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39929         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39930
39931         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39932
39933 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39934
39935         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39936         (__getcwd.c): Don't restore errno; glibc doesn't.
39937         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39938         first, falling back to our code only if its results look suspicious.
39939         Ensure that the resulting buffer is only as large as necessary.
39940
39941         * lib/readutmp.c: Include readutmp.h first.
39942         Include <errno.h>, since readutmp.h no longer does that.
39943         * lib/readutmp.h: Don't include <errno.h>,
39944         <sys/param.h>, <time.h>; not needed to establish interface.
39945         (errno): Remove decl.
39946         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39947         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39948         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39949
39950 2004-11-28  Simon Josefsson  <jas@extundo.com>
39951
39952         * lib/base64.h, base64.c: New file.
39953
39954 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39955
39956         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39957
39958 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39959
39960         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39961         (Depends-on): Remove pathmax, same.  Add mempcpy.
39962         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39963         (Makefile.am): Append getcwd.h to lib_SOURCES.
39964         (Include): Add getcwd.h.
39965         (Maintainer): Change from Jim Meyering to "all, glibc",
39966         since getdate now uses intended-for-glibc code.
39967         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39968         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39969
39970 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39973         HP's ANSI C compiler.
39974         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39975         Declaring int functions causes warnings on some modern systems and
39976         shouldn't be needed to compile on ancient ones.
39977         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39978         defined.
39979
39980         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39981         with the following changes.
39982         (__set_errno): Parenthesize properly.
39983         Include <stdbool.h>.
39984         (MIN, MAX, MATCHING_INO): New macros.
39985         (__getcwd): Define with prototype, not K&R form.
39986         Use heuristics to allocate default buffer on stack if possible.
39987         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39988         behavior, and to avoid the PATH_MAX limit when computing
39989         ../../../../...
39990         Use MATCHING_INO to compare inode number to file.
39991         Check for arithmetic overflow in size calculations.
39992         Fix bug in reallocation of dot array that caused getcwd to fail
39993         on directories nested deeper than 75.
39994         Be more careful about saving errno on error.
39995         Do not use realloc; use only free+malloc, as this is a bit
39996         more flexible and avoids a needless copy operation.
39997         Do not inspect st_dev and st_ino for symbolic links; POSIX
39998         doesn't specify the latter.
39999         Check for closedir errors.
40000         Avoid needless casts.
40001         Use "#ifdef weak_alias" around weak_alias, to be like other
40002         glibc code.
40003         The following changes to getcwd.c have effect only when used in
40004         gnulib; they have no effect inside glibc proper.
40005         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
40006         as alloca isn't used.
40007         (alloca, __alloca): Likewise.
40008         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
40009         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
40010         unconditionally, as gnulib assumes C89 or better.
40011         Do not include <sys/param.h>.
40012         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
40013         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
40014         better.
40015         (NULL) [!defined NULL]: Remove; we assume C89 or better.
40016         Include <dirent.h> in a way that is compatible with modern Autoconf.
40017         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
40018         New macros, if not already defined.
40019         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
40020         Use "_LIBC", not "defined _LIBC", for consistency.
40021         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
40022         a mempcpy module.
40023         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
40024         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
40025         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
40026         credit only to Jim Meyering and adjust the copyright dates.
40027         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
40028         <stdlib.h>, <unistd.h>, "pathmax.h".
40029         Instead, include "xgetcwd.h" (first) and "getcwd.h".
40030         (INITIAL_BUFFER_SIZE): Remove.
40031         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
40032
40033 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40034
40035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
40036         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
40037         Use the _ONCE methods, for efficiency.
40038         Check for fcntl.h.  In test program, include <errno.h>
40039         and <fcntl.h> if available.  Remove old K&R cruft from
40040         test program.  Check for common errors in GNU/Linux,
40041         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
40042         don't do AC_LIBOBJ, as that's getcwd.m4's job.
40043         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
40044         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
40045         name accordingly.
40046         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
40047         accommodate new getcwd.c.
40048         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
40049         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
40050         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
40051         that's all we need now.
40052
40053 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40054
40055         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
40056         argp-parse.c depends on getopt internals, that means we should
40057         always use our getopt, to be on the safe side.
40058         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
40059         order not to spoil the result of an eventual previous invocation
40060         of gl_GETOPT_SUBSTITUTE.
40061
40062 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40063
40064         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
40065         redefinition warnings. To avoid them, include the defines
40066         in `#if !defined __need_getopt ... #endif'. The only place
40067         where __getopt_argv_const is used is in definitions
40068         of getopt_long and getopt_long_only below, which are as well
40069         protected by `#ifndef __need_getopt'.
40070         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
40071         __need_getopt after including <stdio.h> and <unistd.h> These
40072         headers might have defined it.
40073
40074 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
40075
40076         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
40077
40078 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
40079
40080         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
40081         (futimens): New function, which uses futimes if available.
40082         (futimens, utimens): Support timespec==NULL, with same semantics
40083         as utime and utimens.
40084         * lib/utimens.h (futimens): New decl.
40085
40086 2004-11-23  Jim Meyering  <jim@meyering.net>
40087
40088         * lib/getopt_.h: Remove trailing blanks.
40089
40090 2004-11-23  Jim Meyering  <jim@meyering.net>
40091
40092         * lib/__fpending.c: Add comment.
40093
40094 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
40095
40096         * modules/canonicalize (Depends-on): Add xreadlink.
40097         Problem reported by James Youngman.
40098
40099 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40100
40101         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
40102         New macros.
40103         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
40104         optopt): Use them instead of invoking ## directly; otherwise, the
40105         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
40106
40107 2004-11-19  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/strtok_r.c: Move comments from here...
40110         * lib/strtok_r.h: ... to here.
40111
40112 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40113
40114         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
40115         implementations that mishandle size_t overflow.
40116
40117 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40118
40119         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
40120         might fail.  Problem reported by Yoann Vandoorselaere.
40121         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
40122         implementations that mishandle size_t overflow.
40123
40124 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40125
40126         * modules/canon-host (Depends-on): Add strdup.
40127
40128 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40129
40130         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
40131
40132 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40133
40134         * lib/canon-host.c: Include "strdup.h".
40135         (canon_host): Use getaddrinfo if available, so that IPv6 works.
40136         Use strdup instead of malloc/strcpy to duplicate strings.
40137
40138         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
40139         (human_space_before_unit): New constant.
40140         * lib/human.c (human_readable): Support it.
40141
40142         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
40143         (xgetcwd): Set errno correctly when failing.
40144         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
40145         the failure is actually due to a PATH_MAX problem.
40146
40147         Further getopt changes to make it more likely that glibc will
40148         buy the changes back.
40149         * lib/getopt.c (POSIXLY_CORRECT): New constant.
40150         (getopt): Use it, so to preserve glibc semantic
40151         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
40152         when compiling for libc.
40153         * lib/getopt_.h (__getopt_argv_const): Bring it back.
40154         (getopt_long, getopt_long_only): Use it.
40155
40156         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
40157         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
40158         (getopt): Argv is now char * const *, as per standard.
40159         (_getopt_internal_r, _getopt_internal): Argv is now char **,
40160         not char *__getopt_argv_const *.
40161         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
40162         _getopt_long_only_r): Likewise.
40163         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
40164         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
40165         _getopt_long_r, _getopt_long_only_r): Likewise.
40166         * lib/getopt_.h (__getopt_argv_const): Remove.
40167         (getopt): Argv is now char * const *, as per standard.
40168
40169         * lib/getdate.y (tORDINAL): New token.
40170         (day, relunit): Allow it for relative times.
40171         (relative_time_table): Use tORDINAL for ordinals.
40172
40173 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40174
40175         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
40176         Document that "second" isn't allowed as an ordinal number.
40177
40178 2004-11-16  Jim Meyering  <jim@meyering.net>
40179
40180         * modules/closeout (Depends-on): Add fpending.
40181
40182 2004-11-15  Jim Meyering  <jim@meyering.net>
40183
40184         * lib/closeout.c: Include "__fpending.h" once again.
40185         Include <stdbool.h>.
40186         (close_stdout): Don't fail just because stdout was closed initially,
40187         since some programs don't write to stdout in the normal course of
40188         operation (other than --version and --help), and we don't want this
40189         function to make e.g. `touch file >&-' fail.
40190         But do fail if it was closed and someone has tried to write to it.
40191         E.g., `printf foo >&-' must fail.
40192
40193 2004-11-13  Jim Meyering  <jim@meyering.net>
40194
40195         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
40196
40197 2004-11-12  Simon Josefsson  <jas@extundo.com>
40198
40199         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
40200         small doc fix is still pending.
40201
40202 2004-11-11  Simon Josefsson  <jas@extundo.com>
40203
40204         * modules/strtok_r: New file.
40205
40206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40207         strtok_r.
40208
40209 2004-11-11  Simon Josefsson  <jas@extundo.com>
40210
40211         * m4/strtok_r.m4: New file.
40212
40213         * m4/getopt.m4: Replace opterr.
40214
40215 2004-11-11  Simon Josefsson  <jas@extundo.com>
40216
40217         * lib/strtok_r.h, strtok_r.c: New file.
40218
40219 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40220
40221         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
40222         of replacing opterr, getopt, etc.  This should handle the
40223         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
40224
40225 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40226
40227         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
40228         we can stop lying to compilers about the constness of argv when we
40229         are compiled outside glibc.
40230         (getopt, getopt_long, getopt_long_only): Use it.
40231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
40232         _getopt_internal, getopt): Likewise.
40233         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
40234         _getopt_long_only_r): Likewise.
40235         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
40236         _getopt_long_r, _getopt_long_only_r): Likewise.
40237
40238         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
40239         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
40240         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
40241         the other external symbols.
40242         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
40243         declaration, since the above renaming now works around collisions.
40244
40245 2004-11-11  Jim Meyering  <jim@meyering.net>
40246
40247         * lib/linebreak.c: Remove trailing blanks.
40248         * lib/alloca_.h: Likewise.
40249         * lib/acosl.c: Likewise.
40250         * lib/euidaccess.c: Likewise.
40251         * lib/allocsa.h: Likewise.
40252
40253 2004-11-10  Simon Josefsson  <jas@extundo.com>
40254
40255         * m4/getaddrinfo.m4: New file.
40256
40257 2004-11-10  Simon Josefsson  <jas@extundo.com>
40258
40259         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
40260
40261 2004-11-10  Simon Josefsson  <jas@extundo.com>
40262
40263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40264         getaddrinfo.
40265
40266         * modules/getaddrinfo: New file.
40267
40268 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
40271
40272 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40273
40274         * lib/mktime.c (SHR): New macro, which is a portable
40275         substitute for >> that should work even on Crays.
40276         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
40277         Problem reported by Mark D. Baushke in
40278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
40279         * lib/getdate.y (SHR): Likewise.
40280         (tm_diff): Use it.
40281         * lib/strftime.c (SHR): Likewise.
40282         (tm_diff): Use it.
40283         * lib/quotearg.c (struct quoting_options): Use unsigned int for
40284         quote_these_too, so that right shifts are well defined.  All uses
40285         changed.
40286
40287 2004-11-10  Jim Meyering  <jim@meyering.net>
40288
40289         Ensure that no close failure goes unreported.
40290         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
40291         return early when it seems there's nothing to flush.
40292         Don't include __fpending.h.
40293
40294 2004-11-10  Jim Meyering  <jim@meyering.net>
40295
40296         * modules/closeout (Depends-on): Remove fpending.
40297
40298 2004-11-10  Jim Meyering  <jim@meyering.net>
40299
40300         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
40301
40302 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
40305         gl_FUNC_STRFTIME.
40306         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
40307         and AC_REQUIRE when possible, to avoid duplicate checks.
40308         Check for <wchar.h>.
40309
40310 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40311
40312         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
40313
40314 2004-11-09  Bruno Haible  <bruno@clisp.org>
40315
40316         * m4/sockpfaf.m4: New file.
40317
40318 2004-11-05  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
40321         Reported by Mark D. Baushke <mdb@cvshome.org>.
40322
40323 2004-11-04  Bruno Haible  <bruno@clisp.org>
40324
40325         2004-09-11  Bruno Haible  <bruno@clisp.org>
40326                 * allocsa.valgrind: New file.
40327         2004-02-06  Bruno Haible  <bruno@clisp.org>
40328                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
40329                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
40330                 Reported by Christopher Seip <chris.seip@hp.com>.
40331
40332 2004-11-04  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/allocsa (Files): Add lib/allocsa.valgrind.
40335         (Makefile.am): Distribute it.
40336
40337 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40338
40339         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
40340         with errno == ERANGE if the buffer is too small.
40341         Problem reported by Mark D. Baushke.
40342
40343 2004-11-03  Albert Chin  <china@thewrittenword.com>
40344             Paul Eggert  <eggert@cs.ucla.edu>
40345
40346         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
40347         equivalent, substitute $ac_type for equivalent type rather than
40348         blindly using uint32_t *always* which won't work if uint32_t is not
40349         available.  Define _UINT32_T to work around typedef of uint32_t if
40350         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
40351         2.5.1.
40352
40353 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40354
40355         * m4/jm-macros.m4: Sync from coreutils.
40356         (gl_MACROS): Check for mbrlen, for pathchk.
40357         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
40358
40359 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40360
40361         * lib/xreadlink.c (MAXSIZE): New macro.
40362         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
40363         size does not exceed MAXSIZE.  Avoid cast.
40364         As suggested by Mark D. Baushke in
40365         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
40366         if readlink fails with buffer size just under MAXSIZE, try again
40367         with MAXSIZE.
40368
40369 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40370
40371         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
40372
40373 2004-11-02  Derek R. Price  <derek@ximbiot.com>
40374         and  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
40377         (get_date): Overparenthesize to avoid GCC warning.
40378
40379 2004-11-02  Bruno Haible  <bruno@clisp.org>
40380
40381         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
40382         returns void.
40383
40384 2004-11-02  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
40387         function returns void.
40388
40389 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40390
40391         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
40392         fflush_unlocked, flockfile, funlockfile, funlockfile,
40393         fputs_unlocked, putc_unlocked.
40394
40395 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40398         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
40399         already declared.
40400
40401 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         * modules/getdate (Files): Add doc/getdate.texi.
40404         (Depends-on): Add setenv, xalloc.
40405
40406 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40407
40408         * lib/getdate.y: Add support for TZ="foo" within a date string.
40409         Fix some bugs near time_t boundaries.  Reject dates with
40410         out-of-range components, e.g., "Sept 31".
40411         Include <stdlib.h>, "setenv.h", "xalloc.h".
40412         (ISDIGIT_LOCALE): Remove; unused.
40413         Note that the TZ and time functions used here are not reentrant.
40414         (mktime_ok, get_tz): New functions.
40415         (TZBUFSIZE): New constant.
40416         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
40417         This requires that we sometimes generate our own TZ="XXX..." setting.
40418
40419 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40420
40421         * doc/getdate.texi: New file, from coreutils with modifications for
40422         the new TZ parsing.
40423
40424 2004-10-27  Derek R. Price  <derek@ximbiot.com>
40425
40426         * lib/mktime.c (not_equal_tm): Remove redundant check.
40427
40428 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40429
40430         * modules/regex (lib_SOURCES): Add regex.c.
40431         Reported by James Youngman in
40432         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
40433
40434 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40435
40436         * lib/getdate.y: Use Bison 1.875 features, and some minor
40437         code cleanups.  This change does not affect semantics.
40438         Don't include <stdlib.h>; no longer needed.
40439         Don't include unlocked-io.h; only the "#if TEST" code uses
40440         stdio, and performance isn't crucial there.
40441         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
40442         Bison 1.875 features as described below.
40443         All uses of "PC." replaced by "pc->".
40444         (YYSTYPE): Add a forward declaration.
40445         (yylex, yyerror): Use full prototypes in forward decls.
40446         Use "%pure-parser" rather than obsolescent "%pure_parser".
40447         Use %parse-param and %lex-param instead of obsolescent
40448         YYPARSE_PARAM and YYLEX_PARAM.
40449         (meridian_table, month_and_day_table, time_units_table,
40450         relative_time_table, time_zone_table, military_table,
40451         lookup_zone, lookup_word, get_date):
40452         Use NULL instead of 0 where appropriate.
40453         (to_hour): Avoid abort (), to avoid a dependency on
40454         stdlib.h.
40455         (yyerror, yylex): Now accepts parser_control * arg.
40456         (main) [TEST]: Use '\0' rather than 0 for char.
40457
40458 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40459
40460         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
40461
40462 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
40465         It's now the caller's responsibility to handle the case where
40466         !HAVE_GETPAGESIZE && !defined getpagesize.
40467
40468         * lib/mktime.c (leapyear): Arg is long int, not int.
40469
40470 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
40471
40472         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
40473
40474 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40475
40476         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
40477         missing.  Problem reported by James Youngman.
40478
40479 2004-10-16  Simon Josefsson  <jas@extundo.com>
40480
40481         * gnulib-tool: Fix comments.  Fix parse problem.
40482         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
40483
40484 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
40485
40486         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
40487         implementation of getopt_long.  Problem reported by Alexander Taler in:
40488         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
40489
40490 2004-10-15  Bruno Haible  <bruno@clisp.org>
40491
40492         * gnulib-tool: Untabify. Initialize supplied_libname.
40493         (func_usage): More homogenous output.
40494         (func_modules_transitive_closure, func_modules_to_filelist,
40495         func_emit_lib_Makefile_am): New functions.
40496         (func_import): New function, extracted from big case statement. Use
40497         func_get_license, func_modules_transitive_closure,
40498         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
40499         opt_lgpl. Don't use test -a, as it's not portable.
40500         (func_create_testdir): Use func_modules_transitive_closure,
40501         func_modules_to_filelist, func_emit_lib_Makefile_am.
40502
40503 2004-10-15  Bruno Haible  <bruno@clisp.org>
40504
40505         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
40506
40507 2004-10-15  Bruno Haible  <bruno@clisp.org>
40508
40509         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
40510         the portions belonging to each module.
40511         Suggested by Derek Robert Price <derek@ximbiot.com>.
40512
40513 2004-10-12  Simon Josefsson  <jas@extundo.com>
40514
40515         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40516         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
40517         to real functions.
40518
40519 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40520
40521         * modules/vsnprintf: New file.
40522
40523 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40524
40525         * m4/vsnprintf.m4: New file.
40526
40527 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40528
40529         * lib/vsnprintf.h: New file.
40530         * lib/vsnprintf.c: New file.
40531
40532 2004-10-11  Bruno Haible  <bruno@clisp.org>
40533
40534         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
40535         vsnprintf.
40536
40537 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40538
40539         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
40540
40541 2004-10-07  Bruno Haible  <bruno@clisp.org>
40542
40543         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
40544         fits into the provided buffer.
40545
40546 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40547
40548         * lib/diacrit.c, diacrit.h: Add GPL notice.
40549
40550         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
40551         notice.
40552         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
40553         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
40554         This avoids a potential constant-folding bug.
40555
40556 2004-10-05  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
40559         for the declaration of strsep.
40560
40561 2004-10-05  Bruno Haible  <bruno@clisp.org>
40562
40563         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
40564
40565 2004-10-04  Simon Josefsson  <jas@extundo.com>
40566
40567         * modules/memmem: New file.
40568         * tests/test-memmem.c: New file.
40569         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
40570
40571 2004-10-04  Simon Josefsson  <jas@extundo.com>
40572
40573         * m4/memmem.m4: New file.
40574
40575 2004-10-04  Simon Josefsson  <jas@extundo.com>
40576
40577         * lib/memmem.h: New file.
40578         * lib/memmem.c: New file, taken from glibc.
40579
40580 2004-10-04  Simon Josefsson  <jas@extundo.com>
40581
40582         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
40583         '#ifdef USE_UNLOCKED_IO'.
40584
40585 2004-10-04  Simon Josefsson  <jas@extundo.com>
40586
40587         * config/srclist.txt: Add memmem from glibc.
40588
40589 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40590
40591         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
40592
40593         * modules/argmatch, modules/argp, modules/closeout, modules/error,
40594         modules/exclude, modules/getdate, modules/getline,
40595         modules/getndelim2, modules/getpass, modules/getpass-gnu,
40596         modules/getusershell, modules/linebuffer, modules/md5,
40597         modules/mountlist, modules/posixtm, modules/readtokens,
40598         modules/readutmp, modules/regex, modules/sha1,
40599         modules/version-etc, modules/yesno:
40600         Remove dependency on unlocked-io.
40601
40602 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40603
40604         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
40605
40606         * m4/unlocked-io.m4: Add copyright notice.
40607         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
40608
40609 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40610
40611         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
40612         * lib/xmalloc.c (xmemdup): Likewise.
40613         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
40614         XFREE): Remove these long-obsolescent macros.
40615         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
40616         * lib/xstrdup.c: Remove.
40617
40618         * lib/regex.c (re_comp): Cast gettext return value to char *,
40619         Problem reported by Martin Neitzel via Mark D. Baushke.
40620
40621 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40622
40623         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
40624         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
40625         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
40626         regex.c, sha1.c, version-etc.c, yesno.c:
40627         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
40628         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
40629         the includer's responsibility.
40630
40631         Sync from coreutils.
40632
40633         * lib/modechange.c (mode_compile): Don't decrement a pointer that
40634         points to the start of a string, as the C Standard says the
40635         resulting behavior is undefined.
40636
40637         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
40638         simple -> simple_backups, numbered_existing ->
40639         numbered_existing_backups, numbered -> numbered_backups
40640         to avoid shadowing problems.  All uses changed.
40641         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
40642         * lib/backupfile.c (check_extension, numbered_backup):
40643         Rename locals to avoid shadowing 'basename'.
40644         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
40645         once.
40646
40647         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
40648         * lib/.cvsignore: Add getopt.h.
40649
40650 2004-10-04  Bruno Haible  <bruno@clisp.org>
40651
40652         * modules/README: New file.
40653         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
40654         not a module.
40655
40656 2004-10-02  Jim Meyering  <jim@meyering.net>
40657
40658         * lib/dirfd.h, getpagesize.h: Add copyright notice.
40659
40660 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40661
40662         * modules/strsep: New file.
40663
40664 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40665
40666         * m4/strsep.m4: New file.
40667
40668 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40669
40670         * lib/strsep.h: New file.
40671         * lib/strsep.c: New file.
40672
40673 2004-10-01  Simon Josefsson  <jas@extundo.com>
40674
40675         * lib/snprintf.c (snprintf): Handle size==0.
40676
40677 2004-10-01  Simon Josefsson  <jas@extundo.com>
40678             Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
40681         (snprintf): Declare 'args'.
40682
40683 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
40684
40685         * lib/snprintf.c: Remove comments as to why each header is needed.
40686
40687 2004-10-01  Bruno Haible  <bruno@clisp.org>
40688
40689         * MODULES.html.sh: Add strsep.
40690
40691 2004-09-30  Simon Josefsson  <jas@extundo.com>
40692
40693         * modules/snprintf: New file.
40694
40695 2004-09-30  Simon Josefsson  <jas@extundo.com>
40696
40697         * m4/snprintf.m4: New file.
40698
40699 2004-09-30  Simon Josefsson  <jas@extundo.com>
40700
40701         * lib/snprintf.h, lib/snprintf.c: New files.
40702
40703 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40704
40705         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
40706         (hol_entry_help): Never translate an empty string.
40707         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
40708         * lib/argp.h (OPTION_NO_TRANS): New option.
40709
40710 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         * modules/argp (Maintainer): Replace Simon Josefsson
40713         by Sergey Poznyakoff.
40714
40715 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40716
40717         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
40718         changes merged back into glibc.
40719
40720 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40721
40722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40723
40724 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40725
40726         * lib/xvasprintf.c: Include xalloc.h.
40727         (xvasprintf): Use xalloc_die, not xmalloc_die.
40728
40729 2004-09-29  Bruno Haible  <bruno@clisp.org>
40730
40731         * modules/alloca-opt: New file, derived from modules/alloca.
40732         * modules/allocsa: Depend on alloca-opt instead of alloca.
40733         * modules/setenv: Likewise.
40734         * modules/vasnprintf: Likewise.
40735         * MODULES.html.sh: Add alloca-opt.
40736
40737 2004-09-28  Simon Josefsson  <jas@extundo.com>
40738
40739         * gnulib-tool: New parameter --lgpl, to asseert that modules are
40740         LGPL, and to replace license template from GPL to LGPL.
40741
40742 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40743
40744         * modules/dummy: Change license to LGPL.
40745
40746 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40747
40748         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40749
40750 2004-09-24  Simon Josefsson  <jas@extundo.com>
40751
40752         * modules/minmax (License): Change from GPL to LGPL.
40753
40754 2004-09-23  Simon Josefsson  <jas@extundo.com>
40755
40756         * gnulib-tool (--import): Typo.
40757
40758 2004-09-23  Simon Josefsson  <jas@extundo.com>
40759
40760         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40761
40762 2004-09-22  Bruno Haible  <bruno@clisp.org>
40763
40764         * modules/*: Add 'License' field.
40765         * gnulib-tool: Accept --extract-license option.
40766         (func_get_license): New function.
40767
40768 2004-09-21  Bruno Haible  <bruno@clisp.org>
40769
40770         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40771         Reported by Simon Josefsson.
40772
40773 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40774
40775         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40776         gl_AC_TYPE_LONG_LONG.
40777
40778 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40779
40780         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40781
40782 2004-09-18  Simon Josefsson  <jas@extundo.com>
40783         and  Paul Eggert  <eggert@cs.ucla.edu>
40784
40785         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40786         calls with autoreconf.  Define GL_LIB.
40787
40788 2004-09-14  Karl Berry  <karl@gnu.org>
40789
40790         * config/srclist.txt: unsync setenv.c, sigh.
40791
40792 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40793
40794         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40795         Problem reported by Bruno Haible in:
40796         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40797
40798 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40799
40800         * config/srclist.txt: Comment out argp-pvh.c.
40801
40802 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40803
40804         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40805         in case some system header has #define'd it.  Problem reported by
40806         Soeren D. Schulze in
40807         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40808
40809 2004-09-09  Karl Berry  <karl@gnu.org>
40810
40811         * regex.[ch]: delete from the root.  These were supposed to be
40812                 synced with emacs cvs, but this has not happened for about
40813                 a year, and anyway nothing else uses emacs regex.[ch].
40814                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40815                 lib/regex[.ch] is untouched.
40816
40817 2004-09-09  Bruno Haible  <bruno@clisp.org>
40818
40819         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40820
40821 2004-09-09  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40824         modifications.
40825         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40826
40827 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40828
40829         * modules/xvasprintf: New file.
40830         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40831
40832 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40833
40834         * lib/xvasprintf.h: New file.
40835         * lib/xvasprintf.c: New file.
40836         * lib/xasprintf.c: New file.
40837
40838 2004-09-08  Bruno Haible  <bruno@clisp.org>
40839
40840         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40841
40842 2004-09-08  Bruno Haible  <bruno@clisp.org>
40843
40844         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40845         length is > INT_MAX.
40846         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40847         more.
40848
40849 2004-09-08  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/stdint_.h: New file, taken from GNU clisp.
40852
40853 2004-09-08  Bruno Haible  <bruno@clisp.org>
40854             Oskar Liljeblad  <oskar@osk.mine.nu>
40855
40856         * modules/stdint: New file.
40857         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40858
40859 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40860
40861         Import from coreutils.
40862         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40863         strings on unbounded length.  alloca's performance benefits aren't
40864         that important here.
40865         (V_STRDUP): Remove.
40866         (parse_with_separator): New function, with most of the internals
40867         of the old parse_user_spec.  Allow user to omit both user and group,
40868         for compatibility with FreeBSD.
40869         Clone only the user name, not the entire spec.
40870         Do not set *uid, *gid unless entirely successful.
40871         Avoid memory leak in some failing cases.
40872         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40873         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40874         (parse_user_spec): Rewrite to use parse_with_separator.
40875
40876 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40877
40878         * modules/userspec: Don't depend on alloca.
40879
40880 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40881
40882         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40883
40884 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40887         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40888         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40889
40890 2004-08-16  Simon Josefsson  <jas@extundo.com>
40891
40892         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40893         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40894         Add --dry-run for --import.
40895         Let user provided command line parameters override configure.ac
40896         settings.
40897
40898 2004-08-12  Simon Josefsson  <jas@extundo.com>
40899
40900         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40901         as discussed with Paul Eggert in threads rooted at
40902         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40903         and
40904         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40905         Before, the test was empty, and relied on ELIDE_CODE in source
40906         code.)
40907         (gl_PREREQ_GETOPT): New macro.
40908         (gl_GETOPT): Use them.
40909
40910 2004-08-12  Simon Josefsson  <jas@extundo.com>
40911
40912         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40913         * lib/getopt_.h: Renamed from getopt.h.
40914
40915 2004-08-12  Simon Josefsson  <jas@extundo.com>
40916
40917         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40918         Change default library name from libfoo to libgnu.
40919         Now, if you have a configure.ac that says:
40920                 gl_SOURCE_BASE(gl)
40921                 gl_M4_BASE(gl/m4)
40922                 gl_MODULES(error getopt etcetera)
40923                 gl_INIT
40924         you can import all you need by running:
40925                 ../gnulib/gnulib-tool --import
40926
40927         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40928         (Makefile.am): Rewrite, use logic from argz.
40929         (Include): Use <getopt.h> instead of "getopt.h".
40930
40931 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40932
40933         * modules/argp (Files): Add m4/unlocked-io.m4.
40934         (Depends-on): Add extensions.
40935
40936 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40937
40938         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40939         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40940         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40941         Check for program_invocation_name, program_invocation_short_name,
40942         flockfile, funlockfile, features.h, _getopt_long_only_r.
40943
40944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40945
40946         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40947         its complicated substitute.
40948         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40949         and program_invocation_name.
40950         (__argp_basename) [!_LIBC]: Remove; the only use was
40951         replaced by its body.
40952         (__argp_short_program_name): Change condition from
40953         !defined __argp_short_program_name to
40954         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40955         to match argp-namefrob.h.
40956         (__argp_failure): Don't assume strerror_r returns char *.
40957         * lib/argp-parse.c (N_): Define unconditionally.
40958         (argp_default_options): Fill out initializers with 0 to avoid
40959         gcc warnings.
40960
40961 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40962
40963         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40964         getopt1.c.
40965
40966 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40967
40968         Merge from coreutils.
40969
40970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40971
40972         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40973         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40974
40975 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40976
40977         Merge from coreutils.
40978
40979         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40980         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40981         for Reliant Unix 5.43.
40982
40983         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40984         (union fooround): Use uintmax_t, not long int.
40985         The rest is a merge from libc:
40986         [defined _LIBC]: Include <shlib-compat.h>.
40987         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40988
40989         * lib/settime.c (settime): Recode to avoid warning with
40990         Sun Forte C 6U2.
40991
40992         * lib/strverscmp.c: Convert to UTF-8.
40993
40994 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40995
40996         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40997         m4/uintmax_t.m4.
40998
40999 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41000
41001         * modules/xalloc-die: New file.
41002         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
41003
41004         * modules/md5 (Files): Add m4/uint32_t.m4.
41005         * modules/sha1: Renamed from modules/sha.
41006         (Files):
41007         Rename lib/sha.h to lib/sha1.h.
41008         Rename lib/sha.c to lib/sha1.c.
41009         Rename m4/sha.m4 to m4/sha1.m4.
41010         (lib_SOURCES): Likewise.
41011         (configure.ac): Rename gl_SHA to gl_SHA1.
41012         (Include): sha.h -> sha1.h.
41013
41014 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
41017         * m4/sha1.m4: Renamed from sha.m4.
41018         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
41019
41020 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41021
41022         * lib/obstack.h (obstack_empty_p):
41023         Don't assume that chunk->contents is suitably aligned.
41024         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
41025         Likewise. Problem reported by Benno in
41026         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
41027
41028         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
41029         readable.  This could be improved further but it'd take some work.
41030
41031 2004-08-08  Simon Josefsson  <jas@extundo.com>
41032
41033         * modules/xgethostname (Depends-on): Remove exit and error (not
41034         used).
41035
41036         * modules/getpass-gnu: Add getpass.h.
41037         (Depends-on): Add stdbool.
41038         * modules/getpass: Add getpass.h.
41039
41040 2004-08-08  Simon Josefsson  <jas@extundo.com>
41041
41042         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
41043         Check getpass declaration.
41044
41045 2004-08-08  Simon Josefsson  <jas@extundo.com>
41046
41047         * lib/xgethostname.c: Don't include error.h (not used).
41048
41049         * lib/getpass.h: Add.
41050         * lib/getpass.c: Include getpass.h first.
41051
41052 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
41053
41054         * lib/xalloc-die.c: New file.
41055         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
41056         All uses removed.
41057         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
41058         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
41059         xalloc-die.c.
41060         (_, N_, xalloc_die): Move to xalloc-die.c.
41061         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
41062         so that we needn't mess with xalloc_msg_memory_exhausted.
41063
41064         * lib/sha1.h: Renamed from sha.h.
41065         (SHA1_H): Renamed from _SHA_H.
41066         (sha1_ctx): Renamed from sha_ctx.
41067         (sha1_init_ctx): Renamed from sha_init_ctx.
41068         (sha1_process_block): Renamed from sha_process_block.
41069         (sha1_process_bytes): Renamed from sha_process_bytes.
41070         (sha1_finish_ctx): Renamed from sha_finish_ctx.
41071         (sha1_read_ctx): Renamed from sha_read_ctx.
41072         (sha1_stream): Renamed from sha_stream.
41073         (sha1_buffer): Renamed from sha_buffer.
41074         * lib/sha1.c: Likewise; renamed from sha.c.
41075         Do not include <sys/types.h>.
41076         Include <stddef.h> rather than <stdlib.h>.
41077
41078 2004-08-08  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
41081         FILESYSTEM_PREFIX_LEN.
41082         * lib/progreloc.c: Likewise.
41083         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
41084
41085 2004-08-06  Simon Josefsson  <jas@extundo.com>
41086
41087         * modules/progname (Depends-on): Don't depend on stdbool.
41088
41089 2004-08-06  Simon Josefsson  <jas@extundo.com>
41090
41091         * modules/getsubopt: New file.
41092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41093         getsubopt.
41094
41095 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41096
41097         More merge from coreutils.
41098
41099         * m4/utimens.m4, m4/utimecmp.m4: New files.
41100         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
41101         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
41102         prereq.m4, sha.m4: Import changes from coreutils.
41103
41104 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41105
41106         More merge from coreutils.
41107         * modules/raise, modules/readtokens0, modules/utimens:
41108         * modules/utimecmp, module/xnanosleep: New files.
41109         * modules/strftime: Add lib/strftime.h.
41110         Change include from <time.h> to "strftime.h".
41111         * modules/yesno: Add lib/yesno.h.
41112         * modules/backupfile: Remove lib/addext.c.
41113         * modules/euidaccess: Add stat-macros.h.
41114         * modules/canonicalize, modules/euidaccess,
41115         modules/filemode, modules/lchown, modules/makepath,
41116         modules/rmdir, modules/stat: Likewise.
41117
41118 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41119
41120         Merge from tar.
41121         * lib/argp-help.c (make_hol, hol_append): Don't assume that
41122         SIZE_MAX is a valid preprocessor constant.
41123         (__argp_basename): Change from "#ifndef _LIBC"
41124         to "#ifndef __argp_short_program_name", so that
41125         we don't compile these functions for tar.
41126
41127         More merges from coreutils.
41128         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
41129         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
41130         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
41131         * lib/addext.c: Remove; no longer needed.
41132         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
41133         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
41134         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
41135         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
41136         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
41137         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
41138         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
41139         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
41140         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
41141         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41142         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
41143         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
41144         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
41145         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
41146         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
41147         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
41148         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
41149         Import changes from coreutils.
41150
41151 2004-08-05  Simon Josefsson  <jas@extundo.com>
41152
41153         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
41154
41155 2004-08-05  Simon Josefsson  <jas@extundo.com>
41156
41157         * m4/getsubopt.m4: New file.
41158
41159 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41160
41161         Merge from coreutils.
41162
41163         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
41164         * m4/getcwd-path-max.m4: New files.
41165
41166         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
41167         FILESYSTEM_PREFIX_LEN ->
41168         FILE_SYSTEM_PREFIX_LEN.
41169         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
41170         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
41171         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
41172         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
41173
41174         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
41175         prerequisite modules now handle the DOS stuff.
41176         Don't check for unistd.h.
41177
41178 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41179
41180         Merge from coreutils.
41181
41182         * lib/.gdb-history: Remove; this doesn't belong here.
41183
41184         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
41185         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
41186         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
41187         * lib/getcwd.c: New files.
41188
41189         * lib/dirname.h: Include <stdbool.h>.
41190         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
41191         for consistency with POSIX terminology.  All uses changed.
41192         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
41193         (strip_trailing_slashes): Use bool for booleans.
41194         * lib/stripslash.c (strip_trailing_slashes): Likewise.
41195
41196         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
41197         sometimes returns a positive errno value even when it succeeds.
41198         (print_errno_message) [!LIBC]: Fall back on strerror if
41199         __strerror_r fails.
41200
41201         * lib/path-concat.c (mempcpy): Don't define if a system header defines
41202         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
41203         (longest_relative_suffix): New function.
41204         (path_concat): Use it.  Assume first argument is not NULL.
41205         Port to DOS.  Omit redundant separators.
41206         Report an error instead of returning NULL.
41207         Use mempcpy instead of memcpy.
41208         (xpath_concat): Remove: not declared or used.
41209
41210         * lib/same.h: Include <stdbool.h>
41211         (same_name): Return bool, not int.
41212         * lib/same.c (same_name): Likewise.
41213         (errno): Don't declare; we assume C89 or better now.
41214
41215         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
41216         if not already defined.
41217
41218         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
41219         * lib/dup-safer.c (errno): Likewise.
41220
41221 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41222
41223         Merge from coreutils.
41224         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
41225         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
41226         * modules/path-concat: Don't depend on strdup.
41227
41228 2004-08-03  Simon Josefsson  <jas@extundo.com>
41229
41230         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
41231         * lib/progname.h: Don't include stdbool.h.
41232
41233 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41234
41235         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
41236         * MODULES.html.sh (func_all_modules): Remove fatal.
41237
41238 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41239
41240         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
41241
41242 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41243
41244         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
41245         working.
41246
41247 2004-08-02  Simon Josefsson  <jas@extundo.com>
41248
41249         * lib/getsubopt.h: New file, with comments from Bruno Haible.
41250         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
41251         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
41252
41253 2004-08-01  Simon Josefsson  <jas@extundo.com>
41254
41255         * lib/xgetdomainname.c: Include stdlib.h, for free().
41256
41257 2004-07-19  Bruno Haible  <bruno@clisp.org>
41258
41259         * MODULES.html.sh (func_all_modules): Add dummy.
41260
41261 2004-07-16  Simon Josefsson  <jas@extundo.com>
41262
41263         * modules/dummy: New file.
41264
41265 2004-07-16  Simon Josefsson  <jas@extundo.com>
41266
41267         * lib/dummy.c: New file.
41268
41269 2004-07-16  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/backupfile.h: Add extern "C" for C++.
41272         * lib/closeout.h: Likewise.
41273         * lib/copy-file.h: Likewise.
41274         * lib/findprog.h: Likewise.
41275         * lib/full-write.h: Likewise.
41276         * lib/pathname.h: Likewise.
41277         * lib/progname.h: Likewise.
41278         * lib/stpcpy.h: Likewise.
41279         * lib/stpncpy.h: Likewise.
41280         * lib/strcase.h: Likewise.
41281         * lib/strstr.h: Likewise.
41282         * lib/xalloc.h: Likewise.
41283
41284         * lib/mbswidth.h: Add extern "C" for C++.
41285         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
41286
41287 2004-07-13  Robert Millan  <robertmh@gnu.org>
41288
41289         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
41290
41291 2004-07-09  Simon Josefsson  <jas@extundo.com>
41292
41293         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
41294         failed without this.)
41295
41296 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41297
41298         * modules/chown (Files): Add lib/fchown-stub.c, since
41299         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
41300
41301 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         * lib/fchown-stub.c: New file.
41304
41305 2004-06-24  Jim Meyering  <jim@meyering.net>
41306
41307         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
41308
41309 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41310
41311         * modules/argz: Omit "#include".
41312
41313         * MODULES.html.sh (func_all_modules): Add calloc, to match
41314         2004-06-01 addition of calloc module.
41315
41316 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41317
41318         * m4/argz.m4: New file, which is autoupdated from libtool.
41319
41320 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41321
41322         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
41323         libtool.
41324
41325 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41326
41327         * config/srclist-update: Don't insist on "USA." before the
41328         close-comment, as libtool omits the period and puts the */ on a
41329         separate line.
41330         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
41331         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
41332
41333 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
41334
41335         * modules/argz: New file.
41336         * MODULES.html.sh (func_all_modules): Add argz.
41337
41338 2004-06-12  Jim Meyering  <jim@meyering.net>
41339         and  Paul Eggert  <eggert@cs.ucla.edu>
41340
41341         * modules/hash (Files): Add lib/xalloc.h.
41342         * modules/pipe (Depends-on): Add wait-process.
41343         * modules/stat (Depends-on): Add xalloc.
41344         * modules/userspec (Files): Add lib/userspec.h.
41345         * modules/xstrto
41346
41347         Upgrade from gettext-0.13.
41348         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
41349         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
41350         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
41351
41352 2004-06-10  Jim Meyering  <jim@meyering.net>
41353
41354         * lib/calloc.c: New file.
41355
41356 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41357
41358         * lib/getdate.y (yylex): Allow space between sign and number.
41359         Problem reported by Dan Jacobson.
41360
41361 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41362
41363         Merge from coreutils CVS.
41364
41365         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
41366         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
41367         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
41368         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
41369         xstrtol.m4: Fix copyright date and/or serial number.
41370
41371         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
41372         See if we need an fchown replacement.
41373         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
41374         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
41375         and use the replacement function if we detect either defect.
41376
41377         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
41378         gl_UTIMECMP.
41379
41380 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41381         and  Jim Meyering  <jim@meyering.net>
41382
41383         Merge from coreutils CVS.
41384
41385         * lib/stat-macros.h: New file, with contents from file-type.h
41386         and coreutils' system.h.
41387         * lib/file-type.c: Include "stat-macros.h".
41388         * lib/file-type.h (file_type): Move all macro definitions to new file,
41389         stat-macros.h.
41390
41391         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
41392         Wrap old code with this conditional.
41393         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
41394         function that does not dereference symlinks.
41395         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
41396
41397         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
41398         dependency problems.
41399         (xreadlink): Accept new arg SIZE, for efficiency.
41400         All decls and uses changed.
41401         * lib/xreadlink.h: Include <stddef.h>, for size_t.
41402
41403         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
41404         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
41405
41406         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
41407         sysexits.h.
41408
41409 2004-06-01  Jim Meyering  <jim@meyering.net>
41410
41411         * m4/calloc.m4: New file.
41412
41413 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
41414
41415         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
41416         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
41417         Also, fix a typo in a diagnostic.
41418
41419 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41420
41421         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
41422         or AC_FUNC_REALLOC.
41423
41424 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41425
41426         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
41427         macros to be defined.
41428         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
41429         the allocator returns NULL because the requested size is zero.
41430
41431 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41432
41433         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
41434         var.  Add comment explaining why libc still defines it.  This
41435         merges the following patch from glibc:
41436         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
41437
41438 2004-05-20  Andreas Schwab  <schwab@suse.de>
41439
41440         * m4/free.m4: Replace free if it not known to work, not the other
41441         way round.
41442
41443 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
41446         present in glibc since revision 1.1 of this file.
41447         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
41448         obstack_alignment_mask, obstack_alloc, obstack_base,
41449         obstack_blank, obstack_blank_fast, obstack_chunk_size,
41450         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
41451         obstack_grow0, obstack_init, obstack_int_grow,
41452         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
41453         obstack_next_free, obstack_object_size, obstack_ptr_grow,
41454         obstack_ptr_grow_fast, obstack_room): Remove declarations of
41455         nonexistent functions.
41456
41457 2004-05-18  Karl Berry  <karl@gnu.org>
41458
41459         * config/srclist.txt: break link for vasnprintf.c.
41460
41461 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41462
41463         Port obstack to the AS/400, where pointers are 16 bytes wide and
41464         you cannot cast an integer to a valid pointer.  This patch is
41465         currently waiting to be integrated into glibc; see
41466         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
41467
41468         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
41469         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
41470         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
41471         (struct obstack): temp member is now a union of a pointer and
41472         an integer, instead of an integer.  All integer uses changed.
41473         This does not affect the physical layout of struct obstack,
41474         except on hosts (like the AS/400) where the size or alignment of
41475         void * is greater than that of ptrdiff_t.
41476         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
41477         __STDC__)]: Store temporary in pointer member of union, not
41478         integer member.
41479         * lib/obstack.c: Include <stddef.h>, for offsetof.
41480         (struct fooalign): Remove; it doesn't need a name.
41481         (union fooround): Change double to long double, and add void *.
41482         (DEFAULT_ALIGNMENT): Use offsetof to compute.
41483         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
41484         not a macro.  Hence the values are always int; so remove all
41485         casts-to-int in uses.
41486
41487 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41488
41489         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
41490         we can get this patch merged into glibc.
41491
41492 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41493             Paul Eggert  <eggert@cs.ucla.edu>
41494
41495         * m4/argp: Depend on alloca.
41496
41497 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41498             Paul Eggert  <eggert@cs.ucla.edu>
41499
41500         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
41501         freecoding.
41502
41503 2004-05-17  Bruno Haible  <bruno@clisp.org>
41504
41505         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
41506         precision that consists of a '.' followed by an empty digit string.
41507         Patch by Tor Lillqvist <tml@iki.fi>.
41508
41509 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41510
41511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
41512         for backward compatibility with older code.  We need our own
41513         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
41514         it under some other name, and our alloca.h will define it.
41515
41516 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41517             Derek Price  <derek@ximbiot.com>
41518
41519         * lib/alloca.c: Include <alloca.h>, to get our interface.
41520         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
41521         include <alloca.h> first.  Use C89 prototype for alloca; this
41522         requires including <stddef.h> for size_t.  Use extern "C" if C++.
41523         Use #elif for simplicity, since we can assume C89 now.
41524         Don't try to source the system alloca.h since it will not be found
41525         and to prevent recursively including its replacement.
41526         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
41527         * lib/regex.c: Likewise.
41528
41529 2004-05-16  Derek Price  <derek@ximbiot.com>
41530             Paul Eggert  <eggert@cs.ucla.edu>
41531
41532         getline cleanup.  This changes the getndelim2 API: both order of
41533         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
41534         no delimiter).
41535
41536         * lib/getline.c: Don't include stddef.h or stdio.h, since our
41537         interface does that.
41538         (getline): Always use getdelim, so that we don't have two
41539         copies of this code.
41540         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
41541         if available.
41542         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
41543         (GETNDELIM2_MAXIMUM): New macro.
41544         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
41545         instead of the old practice of delim2==0.  All callers changed.
41546         Return -1 on overflow, instead of returning junk.
41547         Do not set *linesize unless allocation succeeds.
41548         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
41549         that we include sys/types.h.
41550         * lib/getnline.h: Likewise.
41551         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
41552         (getndelim2): Reorder arguments.
41553         * lib/getnline.c (getnline, getndelim):
41554         Don't discard the NMAX argument.
41555         (getnline): Invoke getndelim, to avoid code duplication.
41556         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
41557         of (size_t) -1 by callers of the getnline family.
41558
41559 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41560
41561         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
41562         Check for gettimeofday.
41563         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
41564         Check for settimeofday, stime.
41565
41566 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41567
41568         * lib/nanosleep.c (suspended): Change its type from int to
41569         sig_atomic_t volatile.
41570         (first_call): Make it private to rpl_nanosleep, and have it
41571         be zero initially as that's a bit faster.
41572         (my_usleep): Round up fractional times instead of truncating them,
41573         as this is the usual meaning for 'sleep'.
41574
41575         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
41576         doesn't work.
41577         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
41578         (ENOSYS): Define if not defined.
41579         (settime): Fall back on stime if it exists and settimeofday fails.
41580         But don't bother with fallbacks if a method fails with errno == EPERM.
41581
41582 2004-05-11  Jim Meyering  <jim@meyering.net>
41583
41584         Prior to this change, the save_cwd caller required read access to the
41585         current directory on most systems (ones with the fchdir function).
41586
41587         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
41588         fails, try write-only, and finally, resort to using xgetcwd.
41589
41590 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41591
41592         * lib/obstack.c, obstack.h: Import changes from libc.
41593
41594 2004-04-28  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
41597         also implicitly appends .exe to executables.
41598         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
41599         accepts Windows pathnames.
41600         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41601         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41602         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41603         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41604         Reported by Derek Robert Price <derek@ximbiot.com>.
41605
41606 2004-04-21  Karl Berry  <karl@gnu.org>
41607
41608         * config/srclist.txt (localcharset.c): break sync.
41609
41610 2004-04-20  Paul Eggert  <eggert@twinsun.com>
41611
41612         * m4/host-os.m4: Add a copyright notice.
41613
41614 2004-04-20  Jim Meyering  <jim@meyering.net>
41615
41616         Change UTILS_ to gl_ in AC_DEFINE'd names.
41617         Change utils_- and jm_-prefixed variables, too.
41618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
41619         UTILS_FUNC_MKDIR_TRAILING_SLASH.
41620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
41621
41622         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
41623         Don't emit trailing blanks.
41624         Also rename jm_-prefixed variables to have gl_ prefix.
41625
41626         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
41627         Also rename jm_-prefixed variables to have gl_ prefix.
41628
41629         * m4/jm-macros.m4: Reflect the renamings.
41630         * m4/prereq.m4: Likewise.
41631
41632 2004-04-20  Jim Meyering  <jim@meyering.net>
41633
41634         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
41635         memory.
41636
41637 2004-04-20  Jim Meyering  <jim@meyering.net>
41638             Bruno Haible  <bruno@clisp.org>
41639
41640         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
41641         memory when realloc fails.
41642
41643 2004-04-19  Jim Meyering  <jim@meyering.net>
41644
41645         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
41646         now that readutmp.c may call `free (0)'.
41647
41648 2004-04-19  Bruno Haible  <bruno@clisp.org>
41649
41650         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
41651         * m4/inttypes_h.m4: Likewise.
41652         * m4/stdint_h.m4: Likewise.
41653         * m4/intmax_t.m4: Likewise.
41654         * m4/uintmax_t.m4: Likewise.
41655
41656 2004-04-18  Jim Meyering  <jim@meyering.net>
41657
41658         * m4/prereq.m4: Don't forbid jm_ prefix.
41659
41660         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
41661         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
41662         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
41663         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
41664         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
41665         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
41666         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
41667         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
41668         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
41669         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
41670         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
41671         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
41672         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
41673         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
41674         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
41675         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
41676         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
41677         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
41678         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
41679
41680 2004-04-18  Jim Meyering  <jim@meyering.net>
41681
41682         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
41683         failure, don't leak memory and do call END_UTMP_ENT.
41684
41685 2004-04-16  Jim Meyering  <jim@meyering.net>
41686
41687         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
41688         coreutils' stat program.
41689         (gl_PREREQ): Don't require jm_PREREQ_STAT.
41690
41691 2004-04-11  Paul Eggert  <eggert@twinsun.com>
41692
41693         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
41694         C89.
41695         (CHAR_BIT): Remove, since we assume C89.
41696         Include <stdint.h> if available, as per current Autoconf CVS advice.
41697
41698 2004-03-31  Jim Meyering  <jim@meyering.net>
41699
41700         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
41701         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
41702         * m4/xalloc.m4: Likewise.
41703
41704 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41705
41706         Merge from coreutils.
41707
41708         * m4/inttostr.m4: New file.
41709         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
41710         Require AM_STDBOOL_H and gl_TIMESPEC instead.
41711         Require gl_CLOCK_TIME.
41712         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
41713
41714 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41715
41716         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
41717         not bool, to be more consistent with Unix conventions.
41718         Suggested by Bruno Haible.
41719
41720         Merge from coreutils.
41721
41722         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
41723         * lib/umaxtostr.c: New files.
41724
41725         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41726         the usual <time.h> dance.
41727         (get_date): Change signature to support fractional time stamps.
41728         All callers changed.
41729         * lib/getdate.y: Include "getdate.h" first, as we can now
41730         assume C89 and don't need to worry about 'const'.
41731         Similarly, include "unlocked-io.h" near start, not in middle.
41732         Include <limits.h>.
41733         (textint.value): Use long int rather than int.
41734         (textint.digits): Use size_t rather than int.
41735         (BILLION, LOG10_BILLION): New constants.
41736         (parser_control): New member rel_ns.  Members day_ordinal,
41737         time_zone, month, day, hour, minutes, rel_year, rel_month,
41738         rel_day, rel_hour, rel_minutes, rel_seconds
41739         are now long int, not int.  Member seconds is now struct timespec,
41740         not int.  New member timespec_seen.  Members dates_seen, days_seen,
41741         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41742         not int.
41743         (%union.intval): Now long int, not int.
41744         New member timespec.
41745         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41746         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41747         (spec): Now is a timespec or an item list.
41748         (timespec, items): New nonterminals.
41749         (time, rel, relunit, number, get_date):
41750         Add support for fractional seconds.
41751         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41752         (gmtime, localtime, mktime): Remove decls; not needed with C89.
41753         (to_hour): First arg is now long int, not int.
41754         (to_year): Returns long int, not int.
41755         Don't treat year -70 like 70.
41756         (tm_diff): Returns long int, not int.
41757         (lookup_word): Use bool instead of int when appropriate.
41758         (yylex): Use size_t for count, not int.
41759         Detect overflow when parsing large integer constants.
41760         Add support for fractions.
41761         (get_date): Make pointers 'const' if possible.
41762         Use more-portable code to detect integer overflow.
41763         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
41764         Don't use ctime; it's not reliable if the year has >4 digits.
41765
41766         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41767         This is for compatibility with BSD.
41768
41769         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41770         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41771         From coreutils' system.h.
41772
41773         * lib/userspec.c: Don't include "posixver.h".
41774         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41775         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41776         compatible extension.  Simplify code by removing a boolean int
41777         that was always nonzero if a string was nonnull.
41778
41779 2004-03-30  Jim Meyering  <jim@meyering.net>
41780
41781         Merge from coreutils.
41782
41783         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41784         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41785         on some systems one must include <grp.h> before it.
41786         Reported by Christian Krackowizer.
41787
41788 2004-03-30  Jim Meyering  <jim@meyering.net>
41789
41790         Merge from coreutils.
41791
41792         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41793
41794         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41795         an empty input stream.
41796
41797         * lib/readtokens.c: Include <stdbool.h>.
41798         (readtoken): Use `size_t' rather than int/long.
41799         All callers adjusted.
41800         Use `bool' rather than `int' where appropriate.
41801         Use memset rather than an explicit loop.
41802         Use x2nrealloc rather than xrealloc.
41803         Allow the use of `\0' as a delimiter.
41804         (readtokens): Likewise.
41805         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41806
41807 2004-03-30  Jim Meyering  <jim@meyering.net>
41808
41809         * m4/realloc.m4: Remove file, since now it does no more than
41810         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41811         the `configure.ac' section of module/realloc.
41812         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41813
41814 2004-03-30  Bruno Haible  <bruno@clisp.org>
41815
41816         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41817         nonnull.
41818
41819 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41820
41821         Merge changes to getloadavg.c from coreutils and Emacs.
41822
41823         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41824         Define to an expression, not to the empty string.
41825         Include cloexec.h and xalloc.h.
41826         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41827         Use set_cloexec_flag rather than rolling our own.
41828         * lib/cloexec.c, lib/cloexec.h: New files.
41829
41830 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41831
41832         * m4/cloexec.m4: New file.
41833
41834 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41835
41836         * lib/getopt.h: Sync with libc CVS.
41837
41838 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41839             Bruno Haible  <bruno@clisp.org>
41840
41841         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41842         mbswidth.
41843
41844 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41845             Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/mbswidth.h: Include <wchar.h> only if
41848         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41849         <wchar.h>.
41850         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41851
41852 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41853
41854         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41855         Sync with libc CVS.
41856         * lib/getopt_int.h: New file, also synced from libc.
41857
41858 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41859
41860         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41861         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41862         Bring back getopt.c, getopt.h, getopt1.c.
41863
41864 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41865
41866         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41867         All uses changed.  Check for sa_sigaction member; this fixes
41868         a bug first reported by Jason Andrade in
41869         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41870
41871 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41872
41873         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41874         '#if' expressions.  Unlike the code it replaces, it does not
41875         depend on (defined _SC_PAGESIZE).  However, it does depend on
41876         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41877         first reported by Jason Andrade in
41878         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41879
41880 2004-02-25  Simon Josefsson  <jas@extundo.com>
41881
41882         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41883
41884 2004-02-25  Simon Josefsson  <jas@extundo.com>
41885
41886         * lib/strdup.h: New file.
41887         * lib/strdup.c: Include it.
41888         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41889         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41890
41891 2004-02-23  Karl Berry  <karl@gnu.org>
41892
41893         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41894         (from fencepost.gnu.org:/gd/gnuorg).
41895
41896 2004-02-23  Karl Berry  <karl@gnu.org>
41897
41898         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41899         * config/srclist.txt: add maintain/standards documents.
41900
41901 2004-02-18  Bruno Haible  <bruno@clisp.org>
41902
41903         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41904         Reported by Derek Robert Price <derek@ximbiot.com>.
41905
41906 2004-02-16  Karl Berry  <karl@gnu.org>
41907
41908         * config/mkinstalldirs, install-sh: update from automake.
41909
41910 2004-02-06  Karl Berry  <karl@gnu.org>
41911
41912         * m4/po.m4: update from gettext 0.14.1.
41913
41914 2004-02-06  Karl Berry  <karl@gnu.org>
41915
41916         * lib/config.charset: update from gettext 0.14.1.
41917
41918 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41919
41920         Add comments and code, prompted by suggestions from Bruno Haible
41921         for sh-quote.
41922         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41923         describing the enum quoting_style values.
41924         * lib/quotearg.c (quotearg_alloc): New function.
41925         (quotearg_buffer_restyled): Treat lone { and } as special.
41926         Treat = as special.  Work around bug with older shells
41927         that "see" a '\' that is really the 2nd byte of a multibyte char.
41928         Quote empty string with shell_quoting_style.
41929
41930 2004-02-03  Bruno Haible  <bruno@clisp.org>
41931
41932         * m4/pipe.m4: New file, from GNU gettext.
41933
41934 2004-02-03  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/pipe.h: New file, from GNU gettext.
41937         * lib/pipe.c: New file, from GNU gettext.
41938
41939 2004-01-27  Bruno Haible  <bruno@clisp.org>
41940
41941         * m4/execute.m4: New file, from GNU gettext.
41942
41943 2004-01-27  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/execute.h: New file, from GNU gettext.
41946         * lib/execute.c: New file, from GNU gettext.
41947         * lib/w32spawn.h: New file, from GNU gettext.
41948
41949 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41950
41951         Merge from diffutils.
41952
41953         * lib/file-type.c (file_type): Add typed memory objects.
41954         * lib/file-type.h (S_TYPEISTMO): New macro.
41955
41956         * lib/c-stack.h (c_stack_action): Remove argv argument.
41957         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41958         (die): Don't calculate message unless segv_action returns.
41959         (get_stack_location, min_address_from_argv, max_address_from_argv,
41960         volatile stack_base, volatile_stack_size): Remove.
41961         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41962         that every segmentation violation is a stack overflow.  (Ouch!)
41963         See Debian bug 136249 (still outstanding) for more info about why
41964         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41965
41966 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41967
41968         Exit-status fix from coreutils.
41969
41970         Use exit_failure consistently in place of EXIT_FAILURE,
41971         so that program exit statuses are consistent on failure.
41972
41973         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41974         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41975         * lib/argmatch.h: Comment fix to match the above.
41976         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41977         Now a macro referring to exit_failure, instead of a separate
41978         variable.  Include "exitfail.h" to get it.
41979         * lib/xstrtol.h: Include "exitfail.h".
41980         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41981
41982         * lib/long-options.c (parse_long_options): Use prototype
41983         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41984         for clarity.
41985
41986 2004-01-21  Jim Meyering  <jim@meyering.net>
41987
41988         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41989         so as not to conflict with a different-sized __mktime_internal
41990         function in GNU libc.
41991         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41992         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41993
41994 2004-01-20  Karl Berry  <karl@gnu.org>
41995
41996         * config/config.guess: update from config.
41997
41998         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41999
42000 2004-01-20  Bruno Haible  <bruno@clisp.org>
42001
42002         Safer stack allocation.
42003         * lib/setenv.c: Include allocsa.h.
42004         (alloca): Remove fallback definition.
42005         (freea): Remove macro.
42006         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
42007         instead of freea.
42008
42009 2004-01-20  Bruno Haible  <bruno@clisp.org>
42010
42011         * m4/eealloc.m4: New file, from GNU gettext.
42012
42013 2004-01-20  Bruno Haible  <bruno@clisp.org>
42014
42015         * m4/allocsa.m4: New file, from GNU gettext.
42016
42017 2004-01-20  Bruno Haible  <bruno@clisp.org>
42018
42019         * lib/xallocsa.h: New file, from GNU gettext.
42020         * lib/xallocsa.c: New file, from GNU gettext.
42021
42022 2004-01-20  Bruno Haible  <bruno@clisp.org>
42023
42024         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
42025
42026 2004-01-20  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
42029         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
42030         specially.
42031
42032 2004-01-20  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
42035         patch.
42036
42037 2004-01-20  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
42040
42041 2004-01-20  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/eealloc.h: New file.
42044
42045 2004-01-20  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/binary-io.h: Avoid warnings on Cygwin.
42048
42049 2004-01-20  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/allocsa.h: New file, from GNU gettext.
42052         * lib/allocsa.c: New file, from GNU gettext.
42053
42054 2004-01-18  Karl Berry  <karl@gnu.org>
42055
42056         * doc/gpl.texi, doc/lgpl.texi: new files.
42057
42058 2004-01-18  Karl Berry  <karl@gnu.org>
42059
42060         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
42061         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
42062
42063 2004-01-15  Paul Eggert  <eggert@twinsun.com>
42064
42065         Merge from coreutils.
42066
42067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
42068         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
42069         (gl_DEFAULT_POSIX2_VERSION): Move
42070         the documentation from 'configure' into 'config.hin',
42071         so that 'configure --help' isn't burdened by it and
42072         we don't have to worry about its formatting there.
42073         Reword the documentation so that it's more succinct
42074         and can be run together into a single paragraph.
42075         * m4/same.m4 (gl_SAME): Check for pathconf.
42076
42077 2004-01-15  Paul Eggert  <eggert@twinsun.com>
42078
42079         Merge from coreutils.
42080
42081         * lib/posixver.c: Include posixver.h.
42082
42083         * lib/same.c: Include <stdbool.h>, <limits.h>.
42084         (_POSIX_NAME_MAX): Define if not defined.
42085         (MIN): New macro.
42086         (same_name): If file names are silently truncated, report
42087         that the file names are the same if they are the same after
42088         the silent truncation.
42089
42090         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
42091         conversion function.
42092         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
42093         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
42094         longer needed.
42095
42096 2004-01-15  Jim Meyering  <jim@meyering.net>
42097
42098         Merge from coreutils.
42099
42100         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
42101         if no library is required.
42102         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
42103         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
42104         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
42105         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
42106         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
42107         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
42108         value, $ac_cv_search_crypt, if it's "none required".
42109         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
42110         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
42111         not gl_FUNC_GETLOADAVG.
42112         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
42113         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
42114
42115 2004-01-15  Jim Meyering  <jim@meyering.net>
42116
42117         Merge from coreutils.
42118
42119         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
42120         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
42121         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
42122
42123         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
42124         optional configure-time default.
42125
42126         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42127
42128         * lib/xreadlink.c (xreadlink): Correct outdated comment.
42129
42130 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
42131
42132         Merge from coreutils.
42133
42134         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
42135         value, $ac_cv_search_nanosleep, if it's "none required".
42136
42137 2004-01-14  Paul Eggert  <eggert@twinsun.com>
42138
42139         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
42140         with like-named macro in fnmatch.c.
42141         (EXT): Use an internal constant instead.
42142
42143         Merge fnmatch patches from glibc.
42144         * lib/fnmatch.c (mbsinit): Remove define.
42145         Add libc_hidden_ver (__fnmatch, fnmatch).
42146         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
42147         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
42148
42149 2004-01-14  Karl Berry  <karl@gnu.org>
42150
42151         * config/install-sh: update from automake.
42152
42153 2004-01-13  Karl Berry  <karl@gnu.org>
42154
42155         * config/install-sh: update from automake.
42156
42157 2004-01-09  Karl Berry  <karl@gnu.org>
42158
42159         * config/install-sh: update from automake.
42160
42161 2004-01-05  Karl Berry  <karl@gnu.org>
42162
42163         * config/config.{sub,guess}: update from config.
42164
42165 2003-12-31  Karl Berry  <karl@gnu.org>
42166
42167         * config/depcomp: update from automake.
42168
42169 2003-12-14  Karl Berry  <karl@gnu.org>
42170
42171         * lib/config.charset: update from gettext-runtime.
42172
42173 2003-12-03  Paul Eggert  <eggert@twinsun.com>
42174
42175         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
42176         Bug reported by Alfred M. Szmidt.
42177
42178 2003-12-03  Bruno Haible  <bruno@clisp.org>
42179
42180         * m4/gettext.m4: Upgrade from gettext-0.13.
42181         * m4/po.m4: Upgrade from gettext-0.13.
42182         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
42183         * m4/intmax.m4: New file, from gettext-0.13.
42184         * m4/printf-posix.m4: New file, from gettext-0.13.
42185
42186 2003-11-29  Karl Berry  <karl@gnu.org>
42187
42188         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
42189
42190 2003-11-25  Paul Eggert  <eggert@twinsun.com>
42191             Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/printf-parse.h: Don't include sys/types.h.
42194         (ARG_NONE): New macro.
42195         (char_directive): Change type of *arg_index fields to size_t.
42196         * lib/printf-parse.c: Don't include sys/types.h.
42197         (SSIZE_MAX): Remove macro.
42198         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
42199         Remove unnecessary overflow check.
42200         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
42201         fields.
42202
42203 2003-11-25  Bruno Haible  <bruno@clisp.org>
42204
42205         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
42206
42207 2003-11-25  Bruno Haible  <bruno@clisp.org>
42208
42209         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
42210         gt_TYPE_SSIZE_T.
42211
42212 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42213
42214         * modules/alloca: Remove dependency on xalloc.
42215
42216 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42217
42218         * lib/alloca.c: Remove dependency on xalloc module.
42219         (xalloc_die): Remove.
42220         (memory_full) [!defined emacs]: New macro.
42221         [!defined emacs]: Don't include xalloc.h.
42222         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
42223         address arithmetic overflows.  Change datatypes a bit to avoid
42224         unnecessary casts.
42225
42226 2003-11-22  Jim Meyering  <jim@meyering.net>
42227
42228         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
42229         s/size/size_t/.
42230
42231 2003-11-21  Karl Berry  <karl@gnu.org>
42232
42233         * config/config.{sub,guess}: update from config.
42234
42235 2003-11-18  Karl Berry  <karl@gnu.org>
42236
42237         * config/config.{sub,guess}: update from config.
42238
42239         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
42240
42241 2003-11-17  Paul Eggert  <eggert@twinsun.com>
42242
42243         * README: Mention that S+T cannot overflow if S is the size of
42244         an existing object and T is sufficiently small.
42245
42246 2003-11-17  Jim Meyering  <jim@meyering.net>
42247
42248         On systems without utime and without a utimes function capable of
42249         dealing with a NULL struct utimbuf* argument, this utime replacement
42250         could -- in unusual circumstances -- leak a file descriptor.
42251         * lib/utime.c: Include <unistd.h> and <errno.h>.
42252         (utime_null): Be sure to close `fd' and to preserve errno.
42253         Reported by Geoff Collyer via Arnold Robbins.
42254
42255 2003-11-17  Bruno Haible  <bruno@clisp.org>
42256
42257         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
42258         (Depends-on): Add xsize.
42259
42260 2003-11-17  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
42263
42264 2003-11-17  Bruno Haible  <bruno@clisp.org>
42265
42266         * lib/vasnprintf.c (alloca): Remove fallback definition.
42267         (freea): Remove definition.
42268         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
42269         Reported by Paul Eggert.
42270
42271 2003-11-16  Paul Eggert  <eggert@twinsun.com>
42272             Bruno Haible  <bruno@clisp.org>
42273
42274         Protect against address arithmetic overflow.
42275         * lib/printf-args.h: Include stddef.h.
42276         (arguments): Change type of field 'count' to size_t.
42277         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
42278         'unsigned int' where appropriate.
42279         * lib/printf-parse.h: Include sys/types.h.
42280         (char_directive): Change type of *arg_index fields to ssize_t.
42281         (char_directives): Change type of fields 'count', max_*_length to
42282         size_t.
42283         * lib/printf-parse.c: Include sys/types.h and xsize.h.
42284         (SSIZE_MAX): Define fallback value.
42285         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
42286         instead of 'int' where appropriate. Check a_allocated, d_allocated
42287         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
42288         * lib/vasnprintf.c: Include xsize.h.
42289         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
42290         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
42291         overflow. Avoid wraparound when converting a width or precision from
42292         decimal to binary.
42293
42294 2003-11-16  Bruno Haible  <bruno@clisp.org>
42295
42296         Update from GNU gettext.
42297         * lib/printf-parse.c: Generalize to it can be compiled for wide
42298         strings.
42299         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
42300         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
42301         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
42302         SNPRINTF): New macros.
42303         Don't include <alloca.h> if the file is used inside libintl.
42304         (local_wcslen): New function, for Solaris 2.5.1.
42305         (VASNPRINTF): Use it instead of wcslen.
42306
42307 2003-11-16  Bruno Haible  <bruno@clisp.org>
42308
42309         * lib/xsize.h (xmax): New function.
42310         (xsum, xsum3, xsum4): Declare as "pure" functions.
42311
42312 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42313
42314         * modules/xalloc (Files): Undo latest change, since xalloc.h
42315         no longer needs SIZE_MAX or PTRDIFF_MAX.
42316
42317 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42318
42319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
42320         gl_PTRDIFF_MAX.
42321
42322 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42323
42324         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
42325         "return", to pacify some unknown compiler.  Problem reported
42326         by Joerg Schilling.
42327
42328 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42329
42330         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
42331         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
42332         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
42333         heuristic is just as accurate as far as we know, and it removes a
42334         dependency on size_max.m4 and ptrdiff_max.m4.
42335
42336 2003-11-11  Bruno Haible  <bruno@clisp.org>
42337
42338         * modules/xsize (Files): Add m4/size_max.m4.
42339         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
42340
42341 2003-11-11  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/size_max.m4: New file.
42344         * m4/ptrdiff_max.m4: New file.
42345         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
42346         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
42347         (gl_XALLOC): Invoke it.
42348
42349 2003-11-11  Bruno Haible  <bruno@clisp.org>
42350
42351         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
42352         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
42353         defined.
42354
42355 2003-11-10  Paul Eggert  <eggert@twinsun.com>
42356
42357         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
42358         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
42359         rejected some allocations of exactly SIZE_MAX - 2 bytes.
42360         From Bruno Haible.
42361         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
42362         not (size_t) -1, since it's defined here.
42363
42364 2003-11-09  Karl Berry  <karl@gnu.org>
42365
42366         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
42367
42368 2003-11-06  Paul Eggert  <eggert@twinsun.com>
42369
42370         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
42371         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
42372         Reject sizes of exactly SIZE_MAX bytes.
42373         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
42374         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
42375
42376 2003-11-05  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/xsize.h: Include limits.h, to avoid a possible collision with
42379         SIZE_MAX defined in <limits.h> on Solaris.
42380
42381 2003-11-04  Jim Meyering  <jim@meyering.net>
42382
42383         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
42384         variable names, rather than @VAR@.
42385         * modules/poll: Likewise.
42386
42387 2003-11-04  Bruno Haible  <bruno@clisp.org>
42388
42389         * modules/xsize: New file.
42390         * modules/linebreak: Depend on xsize.
42391         * MODULES.html.sh (func_all_modules): Add xsize.
42392
42393 2003-11-04  Bruno Haible  <bruno@clisp.org>
42394
42395         * m4/xsize.m4: New file.
42396
42397 2003-11-04  Bruno Haible  <bruno@clisp.org>
42398
42399         * lib/xsize.h: New file.
42400         * lib/linebreak.c: Include xsize.h.
42401         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
42402         argument for overflow.
42403         Suggested by Paul Eggert.
42404
42405 2003-11-03  Karl Berry  <karl@gnu.org>
42406
42407         * config/config.{guess,sub}: update from config.
42408
42409 2003-11-03  Jim Meyering  <jim@meyering.net>
42410
42411         * modules/userspec (lib_SOURCES): Add userspec.h.
42412         (Include): Add "userspec.h".
42413         Improve description.
42414
42415 2003-11-03  Jim Meyering  <jim@meyering.net>
42416
42417         * lib/userspec.c: Include "userspec.h".
42418         * lib/userspec.h: New file.
42419
42420 2003-11-03  Bruno Haible  <bruno@clisp.org>
42421
42422         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
42423
42424 2003-11-03  Bruno Haible  <bruno@clisp.org>
42425
42426         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
42427         available, to avoid (extremely rare) race condition.
42428         Suggested by Paul Eggert.
42429
42430 2003-11-02  Karl Berry  <karl@gnu.org>
42431
42432         * config/srclist.txt (vasprintf.c): sync broken, sigh.
42433
42434 2003-10-31  Paul Eggert  <eggert@twinsun.com>
42435
42436         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
42437         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
42438         (read_filesystem_list): Set and use me_type_malloced.
42439         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
42440         whatever the type happens to be), for brevity and consistency.
42441         Check for size calculation overflow on Alphas running OSF/1.
42442
42443 2003-10-31  Jim Meyering  <jim@meyering.net>
42444
42445         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
42446
42447         * lib/linebuffer.c: Include <string.h> for declaration of memset.
42448
42449 2003-10-30  Paul Eggert  <eggert@twinsun.com>
42450             Bruno Haible  <bruno@clisp.org>
42451
42452         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
42453         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
42454
42455 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42456
42457         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
42458         netbsd*-gnu*.  Suggested by Robert Millan.
42459
42460 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42461
42462         * modules/group-member: Depend on stdbool.
42463
42464 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42465
42466         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
42467
42468 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42469
42470         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
42471         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
42472         after the 'gnu' in these cases.  This fixes some bugs in the
42473         previous change, and is based on suggestions by Robert Millan.
42474
42475 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42476
42477         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
42478         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
42479         no longer needed.
42480         * lib/quotearg.c (quotearg_n_options): Use it.
42481         * lib/group-member.c: Include <stdbool.h>.
42482         (free_group_info): Arg is now const *; don't free arg.
42483         (get_group_info): Now returns bool and accepts struct group_info *,
42484         rather than returning a malloc'ed struct group_info *.
42485         All uses changed.  Check for overflow in internal size calculation.
42486
42487         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
42488         rather than xmalloc/xrealloc.
42489         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
42490         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
42491         conformance bug: the old code used a pointer after freeing the
42492         storage that it addressed.
42493         * lib/hash.c (hash_initialize): Simplify the code by using
42494         xalloc_oversized rather than doing it by hand.
42495         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
42496         the buffer preserved.  Use free and xmalloc instead.
42497         * lib/quotearg.c (quotearg_n_options): Likewise.
42498         Use a simpler test for size overflow.  Don't use xalloc_oversized
42499         because unsigned int might be wider than size_t (!); this suggests
42500         that we should switch from unsigned int to size_t for slot numbers.
42501
42502 2003-10-28  Paul Eggert  <eggert@twinsun.com>
42503
42504         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
42505         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
42506         NetBSD kernels.  Requested by Richard Stallman.
42507
42508 2003-10-27  Paul Eggert  <eggert@twinsun.com>
42509
42510         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
42511         to allocate the returned structure.  Do not allocate a subarray,
42512         as x2nrealloc will do that.
42513         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
42514         instead of xnrealloc.
42515         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
42516
42517 2003-10-27  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/stdbool_.h: Better support for BeOS.
42520
42521 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42522
42523         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
42524         now uses inline.
42525
42526 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42527
42528         * lib/xalloc.h (xalloc_oversized): New static inline function, for
42529         callers that want to do their own size-overflow checking.  Include
42530         <stdbool.h>, since xalloc_oversized returns bool.
42531         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
42532         to use xalloc_oversized.
42533
42534         Add two functions x2realloc, x2nrealloc, for programs that grow
42535         arrays dynamically by doubling their sizes.
42536         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
42537         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
42538         New functions.
42539
42540         Port to C99 semantics for 'inline' of external functions.
42541         Bug reported by Bruno Haible.
42542         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
42543         with the old contents of xnmalloc.
42544         (xnmalloc, xmalloc): Use it.
42545         (xnrealloc_inline): New static inline function,
42546         with the old contents of xnrealloc.
42547         (xnrealloc, xrealloc): Use it.
42548
42549         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
42550         that.
42551
42552 2003-10-26  Karl Berry  <karl@gnu.org>
42553
42554         * config/srclist.txt (COPYING.DOC): no longer available from
42555         /gd/gnuorg; don't know where the ultimate source is.
42556
42557 2003-10-25  Paul Eggert  <eggert@twinsun.com>
42558
42559         Fix several address-calculation bugs in the hash modules,
42560         plus some minor code cleanup.
42561
42562         * lib/hash.h: Include <stdbool.h>, for bool.
42563         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
42564         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
42565         hash_get_n_entries, hash_get_max_bucket_length,
42566         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
42567         hash_rehash): Use size_t rather than unsigned.
42568         * lib/hash.c (struct hash_table, hash_get_n_buckets,
42569         hash_get_n_buckets_used, hash_get_n_entries,
42570         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
42571         hash_get_entries, hash_do_for_each, hash_string, is_prime,
42572         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
42573         Likewise.
42574         (SIZE_MAX): Define if not defined.
42575         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
42576         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
42577         hash_print):
42578         Use const * when possible.
42579         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
42580         (check_tuning): Fix bug: if tuning parameters were very close to
42581         0 or 1, rounding errors could have caused subscript violations.
42582         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
42583         (hash_initialize): Add 'fail:' label
42584         to free table and return NULL, and use it to simplify code.
42585         Use calloc rather than clearing the storage ourself.
42586         (hash_initialize, hash_rehash): Check for arithmetic overflow in
42587         buffer size calculations.
42588         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
42589         Include <stddef.h>, for size_t.
42590         * lib/hash-pjw.c (hash_pjw): Likewise.
42591         Switch to method described by Bruno Haible.
42592         Include <limits.h>, for CHAR_BIT.
42593         (SIZE_BITS): New macro.
42594
42595 2003-10-23  Paul Eggert  <eggert@twinsun.com>
42596
42597         * m4/getline.m4 (AM_FUNC_GETLINE):
42598         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
42599         hosts.  Problem reported by Derek Robert Price in
42600         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
42601         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
42602         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
42603
42604 2003-10-21  Paul Eggert  <eggert@twinsun.com>
42605
42606         * lib/getndelim2.c (getndelim2): When size calculation overflows,
42607         ceiling the allocation at NMAX bytes rather than silently
42608         discarding input bytes before NMAX is reached.  This makes
42609         a difference only if NMAX exceeds SIZE_MAX / 2.
42610
42611         * lib/obstack.c: Merge from glibc.
42612         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
42613         Add libc_hidden_def (_obstack_newchunk).
42614         (_obstack_free) [! defined _LIBC]: Remove.
42615         [defined _LIBC]: Make a strong alias from obstack_free, rather than
42616         a clone of the function body.
42617         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
42618         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
42619
42620         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
42621         glibc.
42622         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
42623         arg to memcpy.
42624
42625         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
42626         (obstack_ptr_grow_fast, obstack_int_grow_fast):
42627         Don't use lvalue casts, as GCC plans to remove support for them
42628         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
42629         was also present in the non-GCC version, indicating that this
42630         code had always been buggy and had never been widely used.
42631         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
42632         Use the fast variant of each macro, rather than copying the
42633         definiens of the fast variant; that way, we'll be more likely to
42634         catch future bugs in the fast variants.
42635
42636 2003-10-20  Bruno Haible  <bruno@clisp.org>
42637
42638         * modules/wait-process: New file.
42639         * MODULES.html.sh (func_all_modules): Add wait-process.
42640
42641 2003-10-20  Bruno Haible  <bruno@clisp.org>
42642
42643         * m4/wait-process.m4: New file.
42644
42645 2003-10-20  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/wait-process.h: New file, from GNU gettext.
42648         * lib/wait-process.c: New file, from GNU gettext.
42649
42650 2003-10-19  Jim Meyering  <jim@meyering.net>
42651
42652         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
42653         HPUX 10.20.
42654
42655 2003-10-18  Karl Berry  <karl@gnu.org>
42656
42657         * config/config.guess: update from config.
42658
42659 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42660
42661         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
42662         (getgroups): First arg is int, not size_t.
42663         Don't let 'free' mangle errno.
42664
42665 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42666
42667         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
42668
42669 2003-10-16  Karl Berry  <karl@gnu.org>
42670
42671         * config/config.{guess,sub}: update from config.
42672
42673 2003-10-16  Jim Meyering  <jim@meyering.net>
42674
42675         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
42676         memcpy.
42677
42678 2003-10-15  Paul Eggert  <eggert@twinsun.com>
42679
42680         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
42681         (SIZE_MAX): Remove.
42682         (new_exclude, add_exclude_file): Initial size no longer needs to
42683         be a power of 2.
42684         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
42685         our own address arithmetic overflow checking.
42686
42687         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
42688         (fnmatch): Do not alloca more than 2000 wide characters;
42689         instead, use malloc for large buffers.
42690         Check for address arithmetic overflow, and return -1
42691         with errno set to ENOMEM in that case.
42692         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
42693         (NEW_PATTERN): Do not alloca more than 8000 bytes;
42694         instead, return -1.  Check for address arithmetic overflow.
42695
42696 2003-10-14  Paul Eggert  <eggert@twinsun.com>
42697
42698         Handle invalid suffixes and overflow independently, so that
42699         callers can treat them independently as needed.  Fix some bugs in
42700         suffix handling, e.g., "100k@" was not diagnosed as an invalid
42701         suffix for a human-readable blocksize.  The major caller-visible
42702         change is the addition of a new
42703         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
42704         that both overflow and suffix chars were found.
42705
42706         * lib/human.c (humblock): Don't check separately for invalid suffix
42707         char; that is xstrtoumax's job (now that its bug is fixed).
42708         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
42709         INTMAX_MAX]: New macros.
42710         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
42711         TYPE_MAXIMUM): New macros.
42712         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
42713         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
42714         if overflow occurs, as it's what __strtol does and it's more useful
42715         in practice.
42716         (__xstrtol): If __strtol reports some error other than ERANGE,
42717         reflect it to the caller as LONGINT_INVALID.  If it reports
42718         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
42719         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
42720         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
42721         value.
42722         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
42723         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42724         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42725         [defined UINTMAX_MAX]: New macros.
42726
42727 2003-10-14  Bruno Haible  <bruno@clisp.org>
42728
42729         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42730
42731 2003-10-14  Bruno Haible  <bruno@clisp.org>
42732
42733         * m4/sig_atomic_t: New file, from GNU gettext.
42734         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42735
42736 2003-10-14  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42739         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42740         Also use volatile where needed.
42741
42742 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42743
42744         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
42745         Change maintainer from Bruno Haible to 'all'.
42746
42747 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42748
42749         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42750
42751 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42752
42753         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42754         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42755         and define in terms of the other primitives.
42756         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42757         (SIZE_MAX): Define if not already defined.
42758         (array_size_overflow): New function.
42759         (xalloc_die): Abort instead of exiting if 'error' returns.
42760         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42761         (xmalloc, xrealloc): Use them.
42762         (xcalloc): Check for address arithmetic overflow.
42763         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42764         a bit faster than strcpy.
42765
42766 2003-10-10  Simon Josefsson  <jas@extundo.com>
42767
42768         * modules/argp (Depends-on): Add restrict and strcase.
42769
42770 2003-10-10  Simon Josefsson  <jas@extundo.com>
42771
42772         * m4/argp.m4: Add AC_C_INLINE.
42773
42774 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42775
42776         Merge getpass from libc, plus a few fixes.
42777
42778         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42779         Include <stdbool.h>.
42780         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42781         __fsetlocking to empty.
42782         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42783         do include <bits/libc-lock.h>.
42784         Do not include <fcntl.h>; not needed.
42785         [_LIBC]: Include <wchar.h>.
42786         (NOTCANCEL_MODE): New macro.
42787         (flockfile, funlockfile) [_LIBC]: New macros.
42788         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42789         [!_LIBC]: New macros.
42790         (call_fclose): New function.
42791         (getpass): Use it.  Save tty stream separately; this simplifies the
42792         code and makes it more reliable if stdin happens to equal stdout.
42793         Invoke __fsetlocking on tty.
42794         Handle thread cancellation if needed.
42795         Namespace cleanup (use __tcgetattr, __getline).
42796         Use bool for Booleans.
42797         [USE_IN_LIBIO]: Handle wide streams.
42798         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42799         stream might go where.
42800
42801         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42802         doesn't have to include <stdio.h> before us.
42803         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42804         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42805         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42806         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42807         if not declared, so that we can use getpass.c code from libc without
42808         rewriting it.
42809         (flockfile, ftrylockfile, funlockfile): New macros.
42810
42811 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42812
42813         * modules/getpass: Depend on stdbool.
42814
42815 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42816
42817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42818
42819 2003-10-07  Karl Berry  <karl@gnu.org>
42820
42821         * config/config.{guess,sub}: update from config.
42822
42823 2003-10-06  Jim Meyering  <jim@meyering.net>
42824             Bruno Haible  <bruno@clisp.org>
42825
42826         This lets translators provide better translations for the
42827         "Written by ..." part of --version output.
42828         * lib/version-etc.h: Include stdarg.h.
42829         (version_etc_copyright): Declare as readonly.
42830         (version_etc): Make this function variadic with a NULL-terminated list
42831         of author name strings.
42832         (version_etc_va): New declaration.
42833         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42834         (version_etc_copyright): Declare as readonly.
42835         (version_etc_va): New function. Provide a different translatable string
42836         for each possible number of authors < 10. Abbreviate when there are 10
42837         authors or more.
42838         (version_etc): Make this function variadic. Call version_etc_va.
42839         Suggestion from Gary V. Vaughan.
42840
42841         * lib/long-options.h (parse_long_options): Change prototype: the
42842         authors string is moved to the end and becomes variadic.
42843         * lib/long-options.c: Include stdarg.h.
42844         (parse_long_options): Make this function variadic, too.
42845         Call version_etc_va, not version_etc.
42846
42847 2003-10-06  Bruno Haible  <bruno@clisp.org>
42848
42849         * modules/version-etc-2: Remove file.
42850         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42851
42852 2003-10-06  Bruno Haible  <bruno@clisp.org>
42853
42854         * modules/fatal-signal: New file.
42855         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42856
42857 2003-10-06  Bruno Haible  <bruno@clisp.org>
42858
42859         * m4/fatal-signal.m4: New file.
42860         * m4/signalblocking.m4: New file, from GNU gettext.
42861
42862 2003-10-06  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/version-etc-2.h: Remove file.
42865         * lib/version-etc-2.c: Remove file.
42866
42867 2003-10-06  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/fatal-signal.h: New file, from GNU gettext.
42870         * lib/fatal-signal.c: New file, from GNU gettext.
42871
42872 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42873
42874         * README: Rework advice for preventing empty .o files.
42875         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42876         not <sys/types.h>.
42877
42878 2003-10-04  Karl Berry  <karl@gnu.org>
42879
42880         * lib/argp*: update from libc.
42881
42882 2003-10-04  Karl Berry  <karl@gnu.org>
42883
42884         * config/config.{guess,sub}: update from config.
42885
42886 2003-10-02  Bruno Haible  <bruno@clisp.org>
42887
42888         * modules/lchown (Include): Add lchown.h.
42889         * modules/time_r (Include): Use "..." syntax.
42890         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42891
42892 2003-10-01  Simon Josefsson  <jas@extundo.com>
42893
42894         * MODULES.html.sh (func_all_modules): Move gethostname from section
42895         'based on' to section 'lacking' POSIX:2001.
42896
42897 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42898
42899         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42900         to output mode on the same stream.
42901
42902 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42903
42904         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42905         Fix arg typo in previous patch.
42906
42907 2003-09-28  Jim Meyering  <jim@meyering.net>
42908
42909         * lib/error.c: Correct cpp indentation.
42910
42911 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42912
42913         * modules/free: New file.
42914
42915 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42916
42917         * m4/free.m4: New file.
42918
42919 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42920
42921         * lib/minmax.h (MIN, MAX)
42922         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42923         Omit the special code that used __typeof__, since we worry that
42924         it could be more trouble than it's worth.  See:
42925         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42926         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42927
42928         * lib/free.c: New file.
42929
42930 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42931
42932         Trivial fixes to Makefile.am parts of module listings.
42933         * modules/strstr: Append strstr.h to lib_SOURCES.
42934         * modules/strcase: Likewise, for strcase.h.
42935
42936 2003-09-27  Karl Berry  <karl@gnu.org>
42937
42938         * config/mkinstalldirs: update from automake.
42939
42940 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42941
42942         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42943         (error_tail): Do not loop, reallocating temporary buffer, since
42944         the output cannot contain more wide characters than the input
42945         contains bytes, the size must be big enough already.  This avoids
42946         one potential size overflow calculation.  Check for size overflow
42947         when calculating temporary buffer size.  Free temporary buffer
42948         when done, if it was allocated with malloc; this plugs a memory
42949         leak.  Remove casts from void * to pointers, that are no longer
42950         needed now that we're assuming C89 or better.
42951
42952         Merge error changes from glibc.
42953
42954         * lib/error.c, error.h: Update copyright notice header to match glibc.
42955         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42956         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42957         Disable cancellation while printing error.
42958         * lib/error.h: Prepend __ to parameter names.
42959
42960 2003-09-26  Jim Meyering  <jim@meyering.net>
42961
42962         * lib/error.c (error_tail): Move some declarations
42963         into inner scope where the local variables are used.
42964
42965 2003-09-26  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42968         stpncpy().
42969         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42970
42971 2003-09-26  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42974         (stpncpy): Define as alias for gnu_stpncpy.
42975         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42976
42977 2003-09-25  Simon Josefsson  <jas@extundo.com>
42978
42979         * lib/xgetdomainname.h: New file.
42980         * lib/xgetdomainname.c: New file.
42981
42982 2003-09-25  Simon Josefsson  <jas@extundo.com>
42983             Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/getdomainname: New file.
42986         * modules/xgetdomainname: New file.
42987         * MODULES.html.sh (func_all_modules): Add getdomainname,
42988         xgetdomainname.
42989
42990 2003-09-25  Simon Josefsson  <jas@extundo.com>
42991             Bruno Haible  <bruno@clisp.org>
42992
42993         * m4/getdomainname.m4: New file.
42994
42995 2003-09-25  Simon Josefsson  <jas@extundo.com>
42996             Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/getdomainname.h: New file.
42999         * lib/getdomainname.c: New file.
43000
43001 2003-09-25  Karl Berry  <karl@gnu.org>
43002
43003         * lib/argp-fmtstream.c, argp-help.c: update from libc.
43004
43005 2003-09-25  Karl Berry  <karl@gnu.org>
43006
43007         * config/install-sh: update from automake.
43008
43009 2003-09-25  Bruno Haible  <bruno@clisp.org>
43010
43011         * modules/version-etc-2: New file, from modules/version-etc with
43012         modifications.
43013         * MODULES.html.sh (func_all_modules): Add version-etc-2.
43014
43015 2003-09-25  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
43018         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
43019
43020 2003-09-24  Simon Josefsson  <jas@extundo.com>
43021
43022         * modules/xgethostname: Add xgethostname.h.
43023
43024 2003-09-24  Paul Eggert  <eggert@twinsun.com>
43025
43026         * lib/linebuffer.c (freebuffer): Don't free the argument, just
43027         the buffer associated with the argument.  Bug reported by
43028         Simon Josefsson.
43029
43030 2003-09-24  Paul Eggert  <eggert@twinsun.com>
43031
43032         * README: Document assumptions that 'int' is at least 32 bits
43033         wide, that integer arithmetic is 2's complement without overflow,
43034         that there are no holes in integer values, that adding sizes of
43035         two nonoverlapping objects can't overflow, and that all-bits-zero
43036         yields scalar zero.  Fix spelling and capitalization typos.
43037
43038 2003-09-19  Karl Berry  <karl@gnu.org>
43039
43040         * lib/argp.h: update from libc.
43041
43042 2003-09-17  Paul Eggert  <eggert@twinsun.com>
43043
43044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
43045         to avoid spurious warnings like "AC_RUN_IFELSE was called before
43046         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
43047
43048 2003-09-17  Paul Eggert  <eggert@twinsun.com>
43049
43050         * gnulib-tool: Use "test -h", not "test -L", for portability
43051         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
43052         (tags_regexp): Remove, since \| doesn't conform to POSIX.
43053         (sed_extract_prog): Issue s commands one-by-one, rather than
43054         using \| in one s command.
43055
43056 2003-09-16  Paul Eggert  <eggert@twinsun.com>
43057
43058         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
43059         input error, instead of returning NULL the next time we are called
43060         (and therefore losing track of errno).
43061
43062 2003-09-16  Bruno Haible  <bruno@clisp.org>
43063
43064         * gnulib-tool (func_create_testdir): Warn about duplicated
43065         dependencies.
43066
43067 2003-09-15  Paul Eggert  <eggert@twinsun.com>
43068
43069         * modules/argmatch, modules/fatal, modules/obstack,
43070         modules/xalloc, modules/xgethostname: Sort dependencies by
43071         importance, not alphabetically.
43072
43073 2003-09-15  Paul Eggert  <eggert@twinsun.com>
43074
43075         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
43076         fails, so that the caller gets the proper errno.
43077
43078         * lib/readutmp.c (read_utmp): Likewise.
43079         Check for fstat error.  Close stream and free storage
43080         when failing.
43081
43082 2003-09-14  Karl Berry  <karl@gnu.org>
43083
43084         * config/srclist.txt (strdup.c): disable for c89 changes.
43085
43086 2003-09-14  Jim Meyering  <jim@meyering.net>
43087
43088         * lib/getloadavg.c: Correct cpp indentation.
43089         * lib/strdup.c: Likewise.
43090         * lib/vasnprintf.c: Likewise.
43091
43092 2003-09-14  Bruno Haible  <bruno@clisp.org>
43093
43094         * modules/fwriteerror: New file.
43095         * MODULES.html.sh (func_all_modules): Add fwriteerror.
43096
43097 2003-09-14  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/fwriteerror.h: New file.
43100         * lib/fwriteerror.c: New file.
43101
43102 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43103
43104         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
43105         modules/xgethostname, modules/xalloc: Depend on exit.
43106
43107 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43108
43109         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
43110
43111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
43112         and AC_MINIX, too, so that their extensions are available.
43113
43114         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
43115         This macro has been superseded by gl_BACKUPFILE.
43116
43117         More patches to assume C89 or better.
43118
43119         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
43120
43121         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
43122         unconditionally.
43123         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
43124         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
43125         Include <string.h>, <stdlib.h> unconditionally.
43126         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
43127         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
43128         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
43129         headers or for string.h.
43130         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
43131         or strtoul.
43132
43133         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
43134         headers.
43135         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
43136         * m4/userspec.m4 (gl_USERSPEC): Likewise.
43137         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
43138         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
43139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43140         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
43141         memcpy, memset.
43142         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
43143         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
43144         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
43145         strtol.
43146         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
43147         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
43148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
43149         strtoul.
43150
43151 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43152
43153         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
43154         * lib/obstack.c [!defined _LIBC]: Likewise.
43155         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
43156         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
43157         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
43158
43159         More changes to assume C89 or better.
43160
43161         * lib/error.c (error_tail): Assume vprintf.
43162
43163         * lib/argmatch.c (getenv): Remove decl.
43164         * lib/progreloc.c (get_full_program_name): Define via prototype.
43165         * lib/setenv.c (clearenv): Likewise.
43166         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
43167         needed.
43168         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
43169         (malloc, memcpy): Remove decls.
43170         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
43171         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
43172         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43173         (memcpy): Remove macro.
43174         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
43175         (__P): Remove.  All uses removed.
43176         (PTR): Remove.  All uses changed to void *.
43177         (CHAR_BIT, NULL): Remove.
43178         (spaces, zeros, memset_space, memset_zero)
43179         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
43180         Remove.
43181         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
43182         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
43183         Define with prototype.
43184         Remove now-unnecessary prototype decl.
43185         (extra_args_spec): Assume ANSI C.  All uses changed.
43186         (extra_args_spec_iso): Remove.
43187         (my_strftime, emacs_strftimeu): Define via prototype.
43188         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
43189         unconditionally.
43190         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
43191         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
43192         (strtoul, strtol): Remove decls.
43193         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
43194         LONG_MAX): Remove.
43195         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43196         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
43197         (LOCALE_PARAM_PROTO): New macro.
43198         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
43199         (INTERNAL (strtol), strtol): Define with a prototype.
43200         (PARAMS): Remove.  All uses removed.
43201         * lib/tempname.c: Include <string.h> unconditionally.
43202         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
43203         * lib/xgethostname.c (main): Define with a prototype.
43204         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
43205         Include <stdlib.h> unconditionally.
43206         (calloc, malloc, realloc, free): Remove decls.
43207         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
43208         Include <stdlib.h> unconditionally.  Sort include file names.
43209         (strtod): Remove.
43210         (xstrtod): Define with a prototype.
43211         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
43212         (strtol, strtoul): Remove decls.
43213
43214 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43215
43216         More patches to assume C89 or better.
43217         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
43218         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
43219         string.h, memchr, STDC_HEADERS.
43220
43221 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43222
43223         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
43224         Include <stdlib.h>, <string.h> unconditionally.
43225         Remove now-unnecessary cast to char *.
43226         * lib/strnlen.c: Include <string.h> unconditionally.
43227         * lib/yesno.c (yesno): Define with a prototype.
43228
43229 2003-09-11  Bruno Haible  <bruno@clisp.org>
43230
43231         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
43232
43233 2003-09-10  Jim Meyering  <jim@meyering.net>
43234
43235         * lib/error.c: Correct indentation of cpp directives.
43236
43237 2003-09-10  Bruno Haible  <bruno@clisp.org>
43238
43239         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
43240         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
43241         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
43242         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
43243         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
43244         <stdlib.h> and <string.h> checks.
43245         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
43246         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
43247
43248 2003-09-10  Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/strcspn.c: Include <string.h> unconditionally.
43251         * lib/strpbrk.c: Include <string.h> unconditionally.
43252         * lib/strstr.c: Include <string.h> unconditionally.
43253         * lib/unicodeio.c: Include <string.h> unconditionally.
43254         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
43255         * lib/unsetenv.c: Likewise.
43256         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
43257         * lib/yesno.c: Include <stdlib.h> unconditionally.
43258         (rpmatch): Add prototype.
43259
43260 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43261
43262         More patches to assume C89 or better.
43263         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
43264         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
43265         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
43266         or for string.h.
43267         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
43268         stdlib.h.
43269         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
43270         C headers.
43271         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
43272         string.h.
43273         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
43274         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
43275         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
43276         or for string.h.
43277         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
43278         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
43279         C headers.
43280         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
43281         memcpy.
43282         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
43283         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
43284         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
43285         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
43286         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
43287         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
43288         string.h, free.
43289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
43290         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
43291         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
43292         C headers, or for string.h.
43293         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
43294         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
43295         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
43296         headers, memory.h, stdlib.h, string.h, strings.h.
43297         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
43298         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
43299         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
43300         strchr.
43301         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
43302         headers, memory.h, string.h.
43303         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
43304         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
43305         free.
43306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
43307         headers.
43308         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
43309         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
43310         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
43311         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
43312         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
43313
43314 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43315
43316         More K&R removal.
43317
43318         * lib/acosl.c (main): Use a prototype.
43319         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
43320         tanl.c: Likewise.
43321
43322         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
43323
43324         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
43325         (getopt, etopt_long, getopt_long_only, _getopt_internal)
43326         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
43327         with a prototype.
43328         * lib/getopt.c (const): Remove macro.
43329         Include <string.h> unconditionally.
43330         (my_index): Remove; all uses changed to strchr.
43331         (strlen): Remove decl.
43332         (exchange): Remove forward decl; no longer needed.
43333         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
43334         Define with prototype.
43335         * lib/getopt1.c (const): Remove macro.
43336         (getopt_long, getopt_long_only, main): Define with prototype.
43337
43338         * lib/getugroups.c: Include <string.h> unconditionally.
43339
43340         * lib/getusershell.c: Include <stdlib.h> unconditionally.
43341         (getusershell, setusershell, endusershell, readname, main):
43342         Define with prototypes.
43343
43344         * lib/group-member.c: Include group-member.h first.
43345         Include <stdlib.h> unconditionally.
43346
43347         * lib/hard-locale.c: Include hard-locale.h first.
43348         Include <stdlib.h>, <string.h> unconditionally.
43349
43350         * lib/hash.c (free, malloc): Remove decls.
43351         Include <stdlib.h> unconditionally.
43352
43353         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
43354         (getenv): Do not declare.
43355
43356         * lib/idcache.c: Include <string.h> unconditionally.
43357
43358         * lib/long-options.c: Include long-options.h first, to test interface.
43359         Include <stdlib.h> unconditionally.
43360
43361         * lib/makepath.c: Include makepath.h first, to test interface.
43362         Include <stdlib.h> and <string.h> unconditionally.
43363
43364         * lib/linebuffer.c: Include <stdlib.h>.
43365         (free): Remove decl.
43366
43367         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
43368         stddef.h. rpl_malloc returns void *, not char *.
43369         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
43370         prototype.
43371
43372         * lib/md5.h: Include <limits.h> unconditionally.
43373         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
43374         (__P): Remove; all uses removed.
43375         * lib/md5.c: Include "md5.h" first.
43376         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
43377         md5_buffer, md5_process_bytes, md5_process_block):
43378         Define with prototypes.
43379         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
43380         * lib/sha.c: Include "sha.h" first.
43381         Include <stdlib.h>, <string.h> unconditionally.
43382
43383         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
43384         * lib/memcmp.c (__ptr_t): Likewise.
43385         * lib/memrchr.c (__ptr_t): Likewise.
43386         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
43387         Include <string.h> unconditionally.
43388         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
43389         * lib/memchr.c: Include <stdlib.h> unconditionally.
43390         * lib/memchr.c (LONG_MAX): Remove.
43391         * lib/memrchr.c (LONG_MAX): Likewise.
43392         * lib/memchr.c (__memchr): Define via a prototype.
43393         * lib/memrchr.c (__memrchr): Likewise.
43394         * lib/memcmp.c (__P): Remove, and remove all uses.
43395         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
43396         Remove forward decls; no longer needed.
43397         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
43398         Use types required by C89 in prototype.
43399
43400         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
43401         * lib/savedir.c: Likewise.
43402         * lib/mkdir.c (free): Remove decl.
43403         * lib/rmdir.c (rmdir): Define with a prototype.
43404         * lib/savedir.c: Include savedir.h first, to test interface.
43405
43406         * lib/mktime.c (STDC_HEADERS): Remove.
43407         Include <stdlib.h>, <string.h> unconditionally.
43408
43409         * lib/modechange.c: Include <stdlib.h> unconditionally.
43410         (malloc): Remove decl.
43411
43412         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
43413         (free): Remove decl.
43414
43415         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
43416         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
43417         (This type really should be intptr_t, but that's a C99ism.)
43418         (_obstack_memcpy): Remove: all uses changed to memcpy.
43419         Include <string.h> unconditionally.
43420         (struct obstack): Assume __STDC__ for types of members
43421         chunkfun, freefun, extra_arg.
43422         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
43423         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
43424         obstack_begin, obstack_specify_allocation,
43425         obstack_specify_allocation_with_arg, obstack_chunkfun,
43426         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
43427         Remove unprototyped decls and the macros that use them.
43428         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
43429         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
43430         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
43431         (defined __STDC__ && __STDC__)]:
43432         Remove nonprototyped code.
43433         Include <stdlib.h> unconditionally.
43434         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
43435         _obstack_allocated_p, _obstack_free, obstack_free,
43436         _obstack_memory_used, print_and_abort):
43437         Define using prototypes.
43438         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
43439         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
43440         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
43441         obstack_next_free, obstack_object_size, obstack_room) [0]:
43442         Remove unused, unprototyped code.
43443
43444         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
43445
43446         * lib/physmem.c (physmem_total, physmem_available, main): Define
43447         with prototypes.
43448
43449         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
43450         (main): Define with a prototype.
43451
43452         * lib/posixver.c (getenv): Remove decl.
43453
43454         * lib/putenv.c (malloc): Returns void *, not char *.
43455         Include <string.h> unconditionally.
43456         (strchr, memcpy, NULL): Do not define.
43457
43458         * lib/readtokens.c: Include readtokens.h first, to test interface.
43459         Include <stdlib.h>, <string.h> unconditionally.
43460         (init_tokenbuffer): Define with a prototype.
43461
43462         * lib/regex.c (PARAMS): Remove.  All uses removed.
43463         All uses of _RE_ARGS removed, too.
43464         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43465         unconditionally.
43466         (bzero): Assume memset exists.
43467         (memcmp, memcpy, NULL): Remove.
43468         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
43469         char, or assignments to local vars of type signed char.
43470         (init_syntax_once, PREFIX(extract_number_and_incr),
43471         PREFIX(print_partial_compiled_pattern),
43472         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
43473         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
43474         PREFIX(regex_grow_registers), PREFIX(regex_compile),
43475         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
43476         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
43477         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
43478         wcs_compile_range, byte_compile_range, truncate_wchar,
43479         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
43480         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
43481         count_mbs_length, wcs_re_match_2_internal,
43482         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
43483         PREFIX(alt_match_null_string_p),
43484         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
43485         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
43486         regfree, PREFIX(extract_number)): Define with prototype.  Remove
43487         now-unnecessary declaration, if any.
43488         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
43489         regcomp, regexec):
43490         Remove now-unnecessary casts among pointer types.
43491         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
43492
43493         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
43494         (free): Remove decl.
43495
43496         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
43497
43498         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
43499         (free): Remove decl.
43500
43501         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
43502         * lib/xgetcwd.c: Likewise.
43503
43504         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
43505         (free): Remove decl.
43506
43507         * lib/strchrnul.c (strchrnul): Define with a prototype.
43508         Fix bug: c_in was not converted to char before searching.
43509
43510         The following changes are not K&R related:
43511
43512         * lib/group-member.h: Include <sys/types.h>, so that this file is
43513         self-contained.
43514         * lib/makepath.h: Likewise.
43515
43516         * lib/getusershell.c (readname, default_index, line_size, readname):
43517         Use size_t, not int, for sizes.
43518         (readname): If the size overflows, report an error instead of
43519         looping forever.
43520
43521 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43522
43523         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
43524         libc.
43525
43526 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43527
43528         * README: New section: portability guidelines.
43529
43530 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43531
43532         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
43533         C89 spec.
43534
43535 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43536
43537         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
43538
43539 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43540
43541         Assume C89 or better; remove K&R cruft.
43542         A few of these changes were first proposed by Derek Robert Price
43543         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
43544
43545         * lib/addext.c: Include <string.h> unconditionally.
43546         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
43547         Don't declare getenv or malloc.
43548
43549         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
43550         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
43551         (NULL): Remove.
43552         (find_stack_direction, alloca): Use prototypes.
43553
43554         * lib/atexit.c (atexit): Define using a prototype.
43555
43556         * lib/basename.c, dirname.c, stripslash.c:
43557         Include <string.h> unconditionally.
43558
43559         * lib/bcopy.c: Include <stddef.h>.
43560         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
43561
43562         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
43563
43564         * lib/error.h (error, error_at_line, error_print_progname)
43565         [! (defined (__STDC__) && __STDC__)]: Remove decls.
43566         * lib/error.c: Include error.h first, to check interface.
43567         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43568         (VA_START): Remove; all uses changeed to va_start.
43569         (exit, strerror): Remove decls.
43570         (error_print_progname): Prototype uncondionally.
43571         Don't include <errno.h>; no longer needed.
43572         (private_strerror): Remove.
43573         (error_tail): Always define.
43574         (error, error_at_line): Assume C89 or better; always use prototypes.
43575         * lib/fatal.c: Include "fatal.h" first, to test interface.
43576         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43577         (VA_START): Remove; all uses changed to va_start.
43578         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
43579         this case.
43580         (exit): Remove decl.
43581         (fatal): Prototype unconditionally.  Assume va_start works.
43582         Abort at end, to pacify gcc.
43583
43584         * lib/euidaccess.c (main): Define with a prototype.
43585
43586         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
43587
43588         * lib/exitfail.c: Include <stdlib.h> unconditionally.
43589
43590         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
43591         prototypes.
43592         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
43593         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
43594         (getenv): Remove decl.
43595         (fnmatch): Define using a prototype.
43596         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
43597         (FCT): Define using a prototype.
43598
43599         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
43600
43601         * lib/gethostname.c: Include <stddef.h>.
43602         (gethostname): Define with prototype.  Length is size_t, not int.
43603
43604 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43605
43606         Assume C89 or better; remove K&R cruft.
43607         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
43608         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
43609         string.h, getenv, malloc.
43610         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
43611         headers.
43612         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
43613         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
43614         do not check for strerror.
43615         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
43616         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
43617         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
43618         do not check for doprnt or vprintf.
43619         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
43620         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
43621
43622 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43623
43624         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
43625         getversion.c should have been removed then, but was accidentally
43626         preserved.
43627
43628         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
43629         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
43630
43631 2003-09-08  Karl Berry  <karl@gnu.org>
43632
43633         * config/config.sub, config.guess, srclistvars.sh: update from savannah
43634                 config, forget about prep.
43635
43636         * config/depcomp, missing: update from automake.
43637
43638 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43639
43640         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
43641         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43642
43643 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43644
43645         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
43646         copy_tm_result.  Bug reported by Simon Josefsson in
43647         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43648
43649 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43650
43651         * m4/time_r.m4: New file.
43652         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
43653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
43654         is. Check for timegm declaration.
43655         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
43656         Do not check for gmtime_r.
43657         Replace mktime if __mktime_internal does not exist and if mktime
43658         hasn't been replaced already.
43659
43660 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43661
43662         * lib/time_r.c, lib/time_r.h: New files.
43663
43664         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
43665         __localtime_r.
43666         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
43667         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
43668
43669         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
43670         __gmtime_r.
43671         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
43672         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
43673         Include <time_r.h>.
43674
43675         * lib/timegm.c: Switch to glibc implementation, with the following
43676         changes:
43677         [defined HAVE_CONFIG_H]: Include <config.h>.
43678         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
43679         (__mktime_internal) [!defined _LIBC]: New decl.
43680         (__gmtime_r) [!defined _LIBC]: New macro and function.
43681         (timegm): Use a prototype, since gnulib assumes C89.
43682         Do not bother declaring tmp to be const, as it's not really usefu.
43683         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
43684         (timegm): Declare only if HAVE_DECL_TIMEGM.
43685
43686 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43687
43688         * MODULES.html.sh (func_all_modules): Add time_r.
43689         * modules/time_r: New file.
43690         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
43691         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
43692
43693 2003-09-03  Paul Eggert  <eggert@twinsun.com>
43694
43695         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
43696         Bug reported by Lute Kamstra in
43697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
43698
43699         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
43700         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
43701         course with correspondingly smaller numbers for tomorrow and
43702         yesterday.  From Tadayoshi Funaba.  Originally installed into
43703         sh-utils on 1999-08-07, but the patch got lost (I guess during the
43704         coreutils merge?).
43705
43706 2003-08-31  Simon Josefsson  <jas@extundo.com>
43707
43708         * modules/timegm: New file.
43709         * MODULES.html.sh (func_all_modules): Add timegm.
43710
43711 2003-08-31  Simon Josefsson  <jas@extundo.com>
43712
43713         * m4/timegm.m4: New file.
43714
43715 2003-08-31  Simon Josefsson  <jas@extundo.com>
43716
43717         * lib/timegm.h: New file.
43718         * lib/timegm.c: New file.  Based on
43719         wget-1.8.2/src/http.c:mktime_from_utc.
43720
43721 2003-08-31  Karl Berry  <karl@gnu.org>
43722
43723         * lib/argp.h: update from libc.
43724
43725 2003-08-28  Bruno Haible  <bruno@clisp.org>
43726
43727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43728         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43729         followed by '#define fnmatch fnmatch_posix' gives an error.
43730
43731 2003-08-28  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43734         warning on QNX, which defines O_BINARY to 000000.
43735
43736 2003-08-27  Jim Meyering  <jim@meyering.net>
43737
43738         * m4/mkstemp.m4: Require that the system mkstemp be able to create
43739         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
43740         would fail after 32.  Reported by Danny Levinson.  Details here:
43741         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43742
43743 2003-08-24  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43746         MSVC7 <stdio.h> is included later.
43747
43748 2003-08-22  Simon Josefsson  <jas@extundo.com>
43749
43750         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43751
43752 2003-08-20  Karl Berry  <karl@gnu.org>
43753
43754         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43755
43756 2003-08-20  Bruno Haible  <bruno@clisp.org>
43757
43758         * modules/progname: New file.
43759         * MODULES.html.sh (func_all_modules): Add progname.
43760
43761 2003-08-20  Bruno Haible  <bruno@clisp.org>
43762
43763         * lib/progname.h: New file, from GNU gettext.
43764         * lib/progname.c: New file, from GNU gettext.
43765         * lib/progreloc.c: New file, from GNU gettext.
43766
43767 2003-08-19  Jim Meyering  <jim@meyering.net>
43768
43769         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43770         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43771
43772 2003-08-19  Bruno Haible  <bruno@clisp.org>
43773
43774         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43775         more.
43776
43777 2003-08-19  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/xstrdup.c: Assume <string.h> exists.
43780
43781 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43782
43783         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43784         in makefile rules.
43785
43786 2003-08-18  Jim Meyering  <jim@meyering.net>
43787
43788         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43789         * m4/lib-ld.m4: Likewise.
43790
43791 2003-08-18  Jim Meyering  <jim@meyering.net>
43792
43793         * lib/setenv.h: Indent nested cpp directive.
43794         * lib/vasnprintf.c: Remove trailing blanks.
43795
43796 2003-08-17  Simon Josefsson  <jas@extundo.com>
43797
43798         * modules/xstrndup: New file.
43799         * MODULES.html.sh (func_all_modules): Add xstrndup.
43800
43801 2003-08-17  Simon Josefsson  <jas@extundo.com>
43802
43803         * modules/argp: Fix autoconf macro name. Add more dependencies.
43804
43805 2003-08-17  Simon Josefsson  <jas@extundo.com>
43806
43807         * m4/xstrndup.m4: New file.
43808
43809 2003-08-17  Simon Josefsson  <jas@extundo.com>
43810
43811         * m4/argp.m4: New file.
43812
43813 2003-08-17  Simon Josefsson  <jas@extundo.com>
43814             Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/xstrndup.h: New file.
43817         * lib/xstrndup.c: New file.
43818
43819 2003-08-17  Bruno Haible  <bruno@clisp.org>
43820
43821         * modules/strndup (Files, Include): Add lib/strndup.h.
43822
43823 2003-08-17  Bruno Haible  <bruno@clisp.org>
43824
43825         * modules/euidaccess (Files): Add lib/euidaccess.h.
43826
43827 2003-08-17  Bruno Haible  <bruno@clisp.org>
43828
43829         * lib/strndup.h: New file.
43830
43831 2003-08-17  Bruno Haible  <bruno@clisp.org>
43832
43833         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43834         like AC_GNU_SOURCE.
43835         * modules/extensions (configure.ac): Comment out the invocation of
43836         gl_USE_SYSTEM_EXTENSIONS.
43837
43838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43839
43840         Merges from coreutils, etc.
43841         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43842         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43843         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43844         fixing a typo.
43845         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43846         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43847
43848 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43849
43850         Document merge from coreutils.
43851         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43852         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43853         * modules/utime: Add m4/utimes-null.m4.
43854
43855 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43856
43857         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43858         space, undoing this 2003-08-12 change:
43859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43860
43861 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43862
43863         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43864         strtoul.c from libc, undoing this 2003-08-12 change:
43865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43866
43867 2003-08-16  Jim Meyering  <jim@meyering.net>
43868
43869         Merges from coreutils.
43870         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43871         prefix.  Adjust cache variables similarly.  Create 500 rather than
43872         just 300 files, to exercise bug on Darwin6.5, too.
43873         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43874         $missing_dir.
43875         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43876         AM_SYS_POSIX_TERMIOS.
43877         Reported by mkc@mathdogs.com.
43878         Also change use of $am_cv_sys_posix_termios
43879         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43880         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43881         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43882         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43883         in /proc/mounts until it finds one with matching device number.  This
43884         is unnecessary when the FILE argument *is* a mount point.  No stat call
43885         is necessary in that case.  So, disable the statvfs-testing code on
43886         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43887         as RedHat bug# 84846.
43888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43889         to 1MB, so as not to render systems with no stack size limit (e.g.,
43890         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43891         Include <unistd.h>.  On some systems,
43892         it is required for the definition of _SC_PAGESIZE.
43893
43894 2003-08-16  Jim Meyering  <jim@meyering.net>
43895
43896         Merge from coreutils.
43897         * lib/xstrtoimax.c: #else #if -> #elif.
43898         * lib/xstrtoumax.c: Likewise.
43899
43900 2003-08-16  Jim Meyering  <jim@meyering.net>
43901
43902         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43903         * m4/utimes.m4: Removed.
43904         * m4/utimes-null.m4: Renamed from utimes.m4.
43905
43906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43907         to 1MB, so as not to render systems with no stack size limit (e.g.,
43908         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43909         Include <unistd.h>.  On some systems,
43910         it is required for the definition of _SC_PAGESIZE.
43911
43912 2003-08-16  Jim Meyering  <jim@meyering.net>
43913         and Paul Eggert  <eggert@cs.ucla.edu>
43914
43915         Merges from coreutils, etc.
43916
43917         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43918         using the latest version from cvs.  This avoids problems with #line
43919         directives using a vendor (Sun) compiler.
43920         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43921         Don't set GETGROUPS_LIB here; now it's
43922         done via getgroups.m4's wrapper function.
43923         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43924         rather than just in sh-util/configure.in, so that the
43925         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43926         same.
43927         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43928         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43929         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43930         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43931         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43932         Remove code that is now done by the newly-required macros.
43933         Append $(EXEEXT) to DF_PROG.
43934         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43935         Do not invoke or require the following here,
43936         since prereq.m4 or some gnulib .m4 now does this for us:
43937         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43938         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43939         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43940         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43941         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43942         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43943         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43944         AC_FUNC_OBSTACK.
43945         Do not replace the following functions, as this is now the job
43946         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43947         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43948         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43949         atexit getpass, strdup, getpagesize.
43950         Replace 'raise'.
43951         Do not check for the following functions, as this is now the job
43952         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43953         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43954         setregid.
43955         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43956         Check for sys/sysctl.h.
43957         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43959         of checking for ssize_t ourselves.
43960
43961         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43962         Require every macro that gnulib/modules/* suggests for us.
43963         (jm_PREREQ_ADDEXT): New macro.
43964         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43965         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43966
43967         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43968         (gl_PHYSMEM): Use it.
43969         Also check for `table' function.
43970         Check for new headers and functions.
43971         Add check for sys/sysmp.h.
43972         With suggestions from Kaveh Ghazi.
43973         Ignore headers that are present but cannot be compiled.  This
43974         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43975         C 5.4.
43976
43977 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43978
43979         Document merge from coreutils.
43980         * modules/userspec: Depend on posixver.
43981         * modules/strftime: Depend on tzset.
43982
43983 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43984
43985         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43986         rather than tab, after '#' in shell-script copyright notices.
43987         Suggested by Bruno Haible.
43988
43989 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43990
43991         * config/srclist-update: Use three spaces, rather than tab, after '#'
43992         in shell-script copyright notices.  Suggested by Bruno Haible.
43993         Remove unnecessary parenthesization in regular expression.
43994
43995 2003-08-15  Jim Meyering  <jim@meyering.net>
43996
43997         Merge from coreutils.
43998         * lib/xgethostname.c: Include <stdlib.h>.
43999         (xghostname): Don't exit for anything other than memory-related
44000         failure; just return NULL.
44001         * lib/userspec.c: Include "posixver.h".
44002         (parse_user_spec): Accept `.' as a separator only
44003         in pre-POSIX-200112 mode.
44004         * lib/strtoimax.c: Use #elif rather than #else #if.
44005         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
44006         Remove function, now that we can rely on a working tzset function.
44007         [!_LIBC]: Ensure that the required autoconf test has been run.
44008         [!defined _NL_CURRENT && HAVE_STRFTIME]:
44009         Use underlying_strftime for %r.
44010         * lib/sha.c: Merge in some clean-up and optimization changes from
44011         glibc.
44012         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
44013         Ensure that it is a multiple of 64.
44014         Rearrange loop exit tests so as to avoid performing an
44015         additional fread after encountering an error or EOF.
44016         * lib/realloc.c: Update copyright date.
44017
44018 2003-08-15  Jim Meyering  <jim@meyering.net>
44019         and Paul Eggert  <eggert@twinsun.com>
44020
44021         Merge from coreutils.
44022         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
44023         member but strut utmpx does not.  Needed for AIX 4.3.3.
44024         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
44025
44026 2003-08-15  Jim Meyering  <jim@meyering.net>
44027         and Paul Eggert  <eggert@cs.ucla.edu>
44028
44029         Merges from coreutils, etc.
44030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
44031         Require gl_FUNC_TZSET_CLOBBER.
44032         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
44033         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
44034         members.
44035
44036 2003-08-14  Paul Eggert  <eggert@twinsun.com>
44037
44038         Help the merge from coreutils.
44039         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
44040         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
44041         * m4/tzset.m4: Use it too.
44042
44043 2003-08-14  Paul Eggert  <eggert@twinsun.com>
44044
44045         * modules/tzset: New file.
44046
44047 2003-08-14  Jim Meyering  <jim@meyering.net>
44048
44049         Merges from coreutils.
44050         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
44051         variable names, rather than @FNMATCH_H@.
44052         * modules/alloca: Likewise for $(ALLOCA_H).
44053
44054         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
44055         the three copies of the literal target, `fnmatch.h'.
44056         * modules/alloca (alloca.h): Likewise.
44057
44058 2003-08-14  Jim Meyering  <jim@meyering.net>
44059
44060         Merge from coreutils.
44061         * m4/tzset.m4: New file.
44062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
44063         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
44064         otherwise, AIX 5.1 systems would end up using the latter.
44065         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
44066         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
44067         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
44068         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
44069
44070 2003-08-14  Jim Meyering  <jim@meyering.net>
44071
44072         Merge from coreutils.
44073         * lib/obstack.h: Whitespace changes.
44074         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
44075         and xcalloc return values.
44076         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
44077         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
44078         hang on OSF/1 5.1 for DIR on both local and remote file systems.
44079         Reported by (and fix confirmed by) Nelson H. F. Beebe.
44080         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44081         error from mntctl.
44082         Use mntctl's return value to drive the entry-processing loop, since
44083         we can't rely on the value of the vmt_length member in the last
44084         entry.  On some systems doing so could result in exhausting
44085         virtual memory.  Based in part on a patch from Mike Jetzer.
44086
44087 2003-08-14  Jim Meyering  <jim@meyering.net>
44088         and Paul Eggert  <eggert@twinsun.com>
44089
44090         Merges from coreutils, plus other fixes.
44091         * lib/physmem.c: Merge in portability changes from gcc/libiberty
44092         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
44093         for credits and details.  Thanks to Kaveh Ghazi for helping
44094         to keep these files in sync.
44095         (ARRAY_SIZE): Define it.
44096         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
44097         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
44098         (memcasecmp): Don't assume size_t fits in unsigned int.
44099         Remove casts and duplicate code.
44100         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
44101         (memcpy): Remove definition.
44102         Merge in some clean-up and optimization changes from glibc.
44103         [BLOCKSIZE]: Move definition to top of file.
44104         Ensure that it is a multiple of 64.
44105         Rearrange loop exit tests so as to avoid performing an
44106         additional fread after encountering an error or EOF.
44107         * lib/md5.h (md5_uintptr): Define.
44108         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
44109         return to the initial working directory.  Preserve errno
44110         for caller.
44111         * lib/idcache.c: Include "xalloc.h".
44112         (xmalloc, xrealloc): Remove decls.
44113         (getuser): Remove casts no longer required in C89.
44114         * lib/human.c: Include stdio.h, for sprintf.
44115         * lib/group-member.c: Include "xalloc.h".
44116         (xmalloc, xrealloc): Remove decls.
44117         (get_group_info): Remove casts no longer required in C89.
44118         * lib/getusershell.c (readname): Remove casts no longer required in
44119         C89.
44120         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
44121         * lib/getline.c: Whitespace fix, from coreutils.
44122
44123 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44124
44125         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
44126         Check for isascii.
44127
44128         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
44129         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
44130         Undo previous (whitespace-only) change.
44131
44132 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44133
44134         * lib/exclude.c: Include <ctype.h>
44135         (IN_CTYPE_DOMAIN): New macro.
44136         (is_space): New fn.
44137         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
44138         and empty lines.
44139
44140         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
44141         Undo previous (whitespace-only) change.
44142
44143 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44144
44145         * config/srclist-update: Change update back to the old behavior,
44146         leaving whitespace alone.  Use one 'sed' command rather than a
44147         pipeline.
44148         (fixlicense): Now a variable, not a function.
44149         (remove_trailing_blanks): Remove.
44150         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
44151         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
44152         Undo previous (whitespace-only) change.
44153
44154 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44155
44156         Merge from coreutils.
44157         * modules/euidaccess: Add lib_SOURCES, include for new
44158         file euidaccess.h
44159
44160 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44161
44162         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
44163         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
44164         Normalize leading white space and remove trailing white space.
44165
44166         Merge from coreutils
44167         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
44168
44169         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
44170         0.12.1.  These files are now being upgraded automatically by
44171         ../config/srclist-update.
44172
44173 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44174
44175         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
44176         Normalize leading white space and remove trailing white space.
44177         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
44178         notice, as per ../config/srclist-update.
44179
44180         Merge from coreutils.
44181         * lib/euidaccess.h: New file.
44182         * lib/euidaccess.c: Include it.
44183         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
44184         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
44185         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
44186
44187 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44188
44189         * config/srclist-update: Add copyright notice.
44190         (remove_id_lines, remove_trailing_blanks): New constants.
44191         (fixfile): Use them to normalize spacing a bit in copied files.
44192         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
44193         Normalize leading white space and remove trailing white space.
44194
44195         * config/texinfo.tex: Sync with texinfo.
44196
44197         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
44198         strtoul.c from libc, to merge coreutils whitespace changes.
44199
44200         * config/srclist.txt: Get the following m4 files from gettext:
44201         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
44202         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
44203         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
44204         wint_t.m4.
44205
44206 2003-08-12  Karl Berry  <karl@gnu.org>
44207
44208         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
44209         been made.
44210
44211 2003-08-11  Paul Eggert  <eggert@twinsun.com>
44212
44213         * modules/gnu-source, m4/gnu-source.m4:
44214         Remove; we're assuming Autoconf 2.54 or later now.
44215         Suggested by Bruno Haible.
44216         * MODULES.html.sh (func_all_modules): Remove gnu-source.
44217
44218 2003-08-11  Bruno Haible  <bruno@clisp.org>
44219
44220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
44221
44222 2003-08-11  Bruno Haible  <bruno@clisp.org>
44223
44224         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
44225         (vasnprintf): Use it instead of wcslen.
44226
44227 2003-08-11  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
44230         value to ensure that _Bool promotes to int. Use #define for _Bool when
44231         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
44232
44233 2003-08-10  Karl Berry  <karl@gnu.org>
44234
44235         * lib/regex.h: update from libc (whitespace fix).
44236
44237 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44238
44239         Merge some files from coreutils.  These changes were
44240         originally made by Jim Meyering.
44241         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
44242         many older Unixes require this.
44243         * lib/alloca.c (alloca): Remove cast to argument of free;
44244         no longer needed in C89.
44245         * lib/alloca_.h, regex.h: Fix white space to match
44246         what GNU indent does.
44247
44248 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44249
44250         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
44251         apparently Emacs's Unicode mode got confused before my 2003-08-05
44252         checkin.
44253
44254 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44255
44256         * m4/extensions.m4: New file.
44257         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
44258         Require gl_USE_SYSTEM_EXTENSIONS.
44259         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
44260         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
44261
44262 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44263
44264         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
44265         * modules/extensions, modules/gnu-source: New files.
44266         * modules/timespec, modules/unlocked-io: Depend on extensions.
44267
44268 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44269
44270         * modules/restrict: New file.
44271         * MODULES.html.sh (func_all_modules): Add restrict.
44272         * modules/regex: Depend on restrict.
44273
44274 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44275
44276         * m4/restrict.m4: New file.
44277         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
44278
44279 2003-08-07  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
44282         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
44283
44284 2003-08-07  Bruno Haible  <bruno@clisp.org>
44285
44286         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
44287         makes the module 'getndelim2' compatible with the module 'getline'.
44288
44289 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44290
44291         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
44292         byte with "\201" to avoid glitches when editing that source file
44293         with multi-gnome-terminal.
44294
44295 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44296
44297         * lib/bumpalloc.h: Remove.
44298
44299 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44300
44301         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
44302         * modules/bumpalloc: Remove.
44303
44304 2003-08-04  Paul Eggert  <eggert@twinsun.com>
44305
44306         * lib/getloadavg.c: Change copyright notice and spacing to conform to
44307         GNU coding style.
44308
44309         Merge from coreutils.
44310         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
44311         1. From glibc.
44312         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
44313         from Karl Berry, implemented by Jim Meyering.
44314         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
44315         from Dmitry V. Levin.
44316         Remove anachronistic cast of xrealloc.
44317         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
44318         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
44319         type. Otherwise, it wouldn't compile with at least /bin/cc on
44320         ymp-cray-unicos9.0.2.X.
44321         Combine two mostly-identical uses of alloca into one.
44322         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
44323
44324 2003-08-04  Dave Love  <d.love@dl.ac.uk>
44325
44326         [From Emacs.]
44327
44328         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
44329         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
44330         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
44331         obsolete NLIST_NAME_UNION.
44332         [__GNU__]: Undef BSD and FSCALE.
44333         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
44334
44335 2003-08-03  Paul Eggert  <eggert@twinsun.com>
44336
44337         * lib/stdbool_.h (_Bool): Make it signed char, instead of
44338         an enum type, so that it's guaranteed to promote to int.  See:
44339         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
44340
44341 2003-08-03  Karl Berry  <karl@gnu.org>
44342
44343         * config/depcomp: update from automake.
44344
44345 2003-07-31  Paul Eggert  <eggert@twinsun.com>
44346
44347         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
44348         (strerror): Don't assume that a printable int fits in 14 bytes.
44349
44350 2003-07-31  Bruno Haible  <bruno@clisp.org>
44351
44352         * modules/getpass-gnu: New file.
44353         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
44354
44355 2003-07-31  Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
44358
44359 2003-07-24  Karl Berry  <karl@gnu.org>
44360
44361         * config/missing: update from automake.
44362
44363 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
44364             Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
44367         * lib/getline.c (getline, getdelim): Likewise.
44368         Remove _GNU_SOURCE define; now it's defined in config.h through
44369         m4/getline.m4.
44370
44371 2003-07-23  Karl Berry  <karl@gnu.org>
44372
44373         * config/config.sub: update from prep.
44374
44375 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44376
44377         * modules/xalloc (Depends-on): Add exitfail.
44378         * modules/xmemcoll: Likewise.
44379
44380 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44381
44382         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
44383         over-parenthesization in macros.
44384
44385         Sync with coreutils.
44386
44387         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
44388         required by C99.
44389
44390         Use `exit_failure' for xalloc and xmemcoll instead of their own
44391         private exit-failure variables.
44392         * lib/xalloc.h (xalloc_exit_failure): Remove.
44393         * lib/xmalloc.c: Likewise.  Include exitfail.h.
44394         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
44395         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
44396         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
44397         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
44398
44399 2003-07-20  Jim Meyering  <jim@meyering.net>
44400
44401         * modules/closeout (Depends-on): Add exitfail.
44402         Suggestion from Bruno Haible.
44403
44404 2003-07-19  Karl Berry  <karl@gnu.org>
44405
44406         * config/config.sub: update from prep.
44407
44408 2003-07-18  Paul Eggert  <eggert@twinsun.com>
44409
44410         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
44411         Remove.
44412         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
44413         to test that it can stand by itself.  Include "exitfail.h".
44414         Clients should set exit_failure instead.
44415         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
44416
44417 2003-07-18  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/getndelim2: New file.
44420         * modules/getline: Share files with module getndelim2.
44421         * modules/getnline: Depend on getndelim2 instead of sharing files with
44422         it. Add getnline.c to lib_SOURCES.
44423         * MODULES.html.sh (func_all_modules): Add getndelim2.
44424
44425 2003-07-18  Bruno Haible  <bruno@clisp.org>
44426
44427         * m4/getndelim2.m4: New file.
44428         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
44429         invoke gl_PREREQ_GETNDELIM2.
44430         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
44431         gl_PREREQ_GETNDELIM2.
44432         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
44433         gl_GETNDELIM2.
44434
44435 2003-07-18  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/getndelim2.h: New file.
44438         * lib/getndelim2.c: Make into a module of its own. Include config.h,
44439         getndelim2.h.
44440         (getndelim2): Make non-static. Change return type to ssize_t.
44441         * lib/getline.h: Change argument names.
44442         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
44443         * lib/getnline.c: Include getndelim2.h.
44444
44445 2003-07-18  Andreas Schwab  <schwab@suse.de>
44446
44447         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
44448
44449 2003-07-17  Karl Berry  <karl@gnu.org>
44450
44451         * config/config.sub: update from prep.
44452
44453 2003-07-17  Bruno Haible  <bruno@clisp.org>
44454
44455         * modules/getnline: New file.
44456         * modules/getline: Add lib/getndelim2.c to source file list.
44457         * MODULES.html.sh (func_all_modules): Add getnline.
44458
44459 2003-07-17  Bruno Haible  <bruno@clisp.org>
44460
44461         * m4/getnline.m4: New file.
44462
44463 2003-07-17  Bruno Haible  <bruno@clisp.org>
44464
44465         * m4/Makefile.am.in: Remove file.
44466         * m4/Makefile.am: Remove file.
44467         * m4/Makefile.in: Remove file.
44468
44469 2003-07-17  Bruno Haible  <bruno@clisp.org>
44470
44471         * lib/getnline.h: New file.
44472         * lib/getnline.c: New file.
44473         * lib/getndelim2.c: New file, extracted from getline.c.
44474         (getndelim2): Renamed from getdelim2, with added nmax argument.
44475         * lib/getline.c: Include getndelim2.c.
44476         (getdelim2): Moved out to getndelim2.c.
44477         (getline, getdelim): Update.
44478
44479 2003-07-17  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/Makefile.am: Remove file.
44482         * lib/Makefile.in: Remove file.
44483
44484 2003-07-17  Bruno Haible  <bruno@clisp.org>
44485
44486         * configure.in: Remove file.
44487         * Makefile.in: Remove file.
44488
44489 2003-07-17  Bruno Haible  <bruno@clisp.org>
44490
44491         * MODULES.html.sh: Put the </BODY> right before </HTML>.
44492
44493 2003-07-16  Karl Berry  <karl@gnu.org>
44494
44495         * config/srclist-update: was running fixlicense twice, which caused
44496                 texinfo.tex to be nullified for some reason.  Simplify,
44497                 $gplsrc is no longer needed as far as I can see?
44498
44499 2003-07-16  Jim Meyering  <jim@meyering.net>
44500
44501         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
44502
44503 2003-07-15  Paul Eggert  <eggert@twinsun.com>
44504
44505         * config/srclist.txt: Get the following files from gettext-runtime/intl
44506         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
44507         ref-del.sin.  From Bruno Haible.
44508         * config/srclist-update (fixfile): Change grep pattern again, since the
44509         previous fix didn't work (there was another trailing $).  Use
44510         '[$]' to escape the $s.
44511
44512 2003-07-15  Karl Berry  <karl@gnu.org>
44513
44514         * lib/vasnprintf.c: update from gettext.
44515
44516 2003-07-15  Karl Berry  <karl@gnu.org>
44517
44518         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
44519         gets expanded when surrounded by '$'.
44520
44521 2003-07-15  Jim Meyering  <jim@meyering.net>
44522
44523         * modules/save-cwd: Don't depend on error.  From Derek Price.
44524
44525 2003-07-15  Jim Meyering  <jim@meyering.net>
44526
44527         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
44528
44529 2003-07-14  Simon Josefsson  <jas@extundo.com>
44530
44531         * modules/mempcpy: New file.
44532         * MODULES.html.sh (func_all_modules): Add mempcpy.
44533
44534 2003-07-14  Simon Josefsson  <jas@extundo.com>
44535
44536         * m4/mempcpy.m4: New file.
44537
44538 2003-07-14  Simon Josefsson  <jas@extundo.com>
44539
44540         * lib/mempcpy.h: New file.
44541         * lib/mempcpy.c: New file.
44542
44543 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44544
44545         * modules/getdate, modules/posixtm: Depend on mktime.
44546
44547 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44548
44549         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
44550         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
44551         unicodeio.c, unicodeio.h, unlocked-io.h:
44552         Switch from LGPL to GPL.
44553
44554 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44555
44556         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
44557         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
44558         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
44559         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
44560         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
44561         updated automatically by ../config/srclist-update.  This changes
44562         their license from LPGL to GPL.
44563
44564 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44565
44566         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
44567         assumed to refer to the root of the most recent stable gettext version.
44568         * config/srclistvars.sh: Add defaults for eggert.
44569         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
44570         Match "This program" as well as "The program".  This is needed
44571         for gettext.
44572
44573 2003-07-14  Jim Meyering  <jim@meyering.net>
44574
44575         Don't emit diagnostics.  Let callers do that.
44576         * lib/save-cwd.c: Don't include "error.h".
44577         (save_cwd): Don't call error.  Ensure that errno is valid
44578         when returning nonzero.
44579
44580         * lib/save-cwd.h (restore_cwd): Update prototype.
44581         * lib/save-cwd.c (restore_cwd): Remove two parameters.
44582         Simplify.  Don't call error upon failure.  Let callers do that.
44583         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
44584         when auditing is enabled.  But don't bother updating the #if.
44585
44586 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
44587
44588         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
44589         it breaks C++ compilation.
44590         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
44591
44592 2003-07-10  Simon Josefsson  <jas@extundo.com>
44593
44594         * modules/strchrnul (Makefile.am): Add strchrnul.h.
44595
44596 2003-07-10  Jim Meyering  <jim@meyering.net>
44597
44598         * m4/clock_time.m4: Remove trailing blank.
44599         * m4/intmax_t.m4: Likewise.
44600
44601 2003-07-10  Jim Meyering  <jim@meyering.net>
44602
44603         * lib/vasnprintf.c: Remove trailing blanks.
44604         Make cpp indentation consistent.
44605
44606 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44607
44608         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
44609         posixver.c, strftime.c, strnlen.c, strverscmp.c:
44610         Switch from LGPL to GPL.
44611
44612 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44613
44614         * config/srclist.txt: Sort sublists.  Add
44615         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
44616         that differ from gnulib for one reason or another; we'd like this list
44617         to be smaller but for now let's document what we have.
44618
44619 2003-07-08  Paul Eggert  <eggert@twinsun.com>
44620
44621         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
44622         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
44623         and sweeter "eval x=$x".
44624         * config/srclist.txt: Get lib/argp* from glibc.
44625
44626 2003-07-07  Paul Eggert  <eggert@twinsun.com>
44627
44628         * lib/mktime.c: Fix some boundary cases and remove need for floating
44629         point.
44630
44631         Issue a compile-time diagnostic if time_t is floating point, or if
44632         two's complement arithmetic is not in effect, or if arithmetic
44633         right shift does not propagate the sign.  These assumptions were
44634         all in the original code but they weren't checked.
44635
44636         (TIME_T_MIDPOINT, verify): New macros.
44637         (__isleap): Remove; it has integer overflow problems.
44638         (leapyear): New function, without those problems.
44639         (ydhms_tm_diff): Remove; splitting into two parts.
44640         (ydhms_diff): New function, containing the arithmetic part of
44641         the old ydhms_tm_diff function.  Issue a compile-time
44642         diagnostic if we are not using C99 integer division.
44643         Avoid casts when possible.
44644         (guess_time_tm): New function, containing the checking part of
44645         the old ydhms_tm_diff function.  Return the new value, rather than
44646         the difference between it and the old.  Accept a new argument T
44647         so that *T specifies the old value.  Check for overflow in the result.
44648
44649         (__mktime_internal): Use a time_t offset, not a long int offset.
44650         This undoes the 2003-06-04 change, which is no longer needed now
44651         that we have better overflow checking.
44652         (localtime_offset): Likewise.
44653
44654         (__mktime_internal): Avoid harmful overflow on hosts where time_t
44655         and long are 64-bit but int is only 32-bit.
44656         (ydhms_diff): Use long int to store year1 and yday1.
44657         Issue a compile-time diagnostic if long int is not wide enough.
44658
44659         (__mktime_internal): Use long int to store adjusted year and yday.
44660         Use plain C rather than preprocessor commands, if that doesn't
44661         affect efficiency.
44662         Check for overflow (and try to repair) after each probe
44663         rather than checking only at the very end.  This avoids some bugs
44664         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
44665         does not equal GMT offset at maximum time).
44666         Use integer to check for overflow rather than floating point; this
44667         is more portable to non-IEEE hosts, and is a tad faster.
44668         When we detect that we are oscillating between two values,
44669         don't check whether tm_isdst has the requested value, since
44670         we already know the answer.  When tm_isdst has the wrong value,
44671         use a different heuristic to find the right one, based on the
44672         extreme values actually observed in practice in tz2003a,
44673         rather than the (overly optimistic) "previous 3 calendar quarters".
44674
44675         (not_equal_tm, print_tm, check_result): Use "const T" rather than
44676         "T const" to accommodate glibc style.
44677         (check_result): Use less-confusing report format.  "long" -> "long int.
44678         (main): Likewise.
44679         Don't loop if the iteration overflows time_t.
44680         Allow a negative step in the iteration.
44681
44682 2003-07-06  Karl Berry  <karl@gnu.org>
44683
44684         * config/depcomp: update from automake.
44685         * config/config.sub: update from prep.
44686
44687 2003-07-03  Karl Berry  <karl@gnu.org>
44688
44689         * config/config.guess: update from prep.
44690
44691 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44692
44693         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
44694         xreadlink.c now includes it unconditionally.
44695
44696 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44697
44698         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
44699         having it depend on HAVE_SYS_TYPES_H.
44700
44701 2003-07-01  Bruno Haible  <bruno@clisp.org>
44702
44703         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
44704         <sys/types.h> should be sufficient.
44705         Reported by Paul Eggert.
44706
44707 2003-06-26  Karl Berry  <karl@gnu.org>
44708
44709         * config/depcomp: update from automake.
44710
44711 2003-06-26  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/human: Depend on module stdbool.
44714
44715 2003-06-25  Bruno Haible  <bruno@clisp.org>
44716
44717         * modules/readlink: New file.
44718         * modules/xreadlink: Depend on it.
44719         * MODULES.html.sh (func_all_modules): Add readlink.
44720
44721 2003-06-25  Bruno Haible  <bruno@clisp.org>
44722
44723         * m4/readlink.m4: New file.
44724
44725 2003-06-25  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/readlink.c: New file.
44728
44729 2003-06-22  Karl Berry  <karl@gnu.org>
44730
44731         * config/srclist.txt: update mkinstalldirs from automake.
44732         * config/mkinstalldirs: update.
44733
44734 2003-06-22  Bruno Haible  <bruno@clisp.org>
44735
44736         Portability to mingw32.
44737         * m4/ssize_t.m4: New file, from GNU gettext.
44738         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44739         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44740
44741 2003-06-22  Bruno Haible  <bruno@clisp.org>
44742
44743         * modules/safe-read: Add m4/ssize_t.m4.
44744         * modules/xreadlink: Add m4/ssize_t.m4.
44745
44746 2003-06-20  Bruno Haible  <bruno@clisp.org>
44747
44748         Assume C89, so PARAMS isn't needed.
44749         * lib/unicodeio.h (PARAMS): Remove.
44750         * lib/unicodeio.c: Don't use PARAMS.
44751
44752 2003-06-18  Karl Berry  <karl@gnu.org>
44753
44754         * config/config.{guess,sub}: update from prep.
44755
44756 2003-06-18  Jim Meyering  <jim@meyering.net>
44757
44758         Merge changes from coreutils.
44759         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44760         Remove explicit declarations of xmalloc and realloc.
44761         Include xalloc.h.
44762         (read_utmp): Remove anachronistic cast of xmalloc.
44763
44764 2003-06-17  Paul Eggert  <eggert@twinsun.com>
44765
44766         Assume C89, so PARAMS isn't needed.
44767         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
44768         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44769         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44770         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44771         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44772         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44773         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44774         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44775         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44776         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44777         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44778         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44779         no longer needed. Anyway, config.h should always be included before any
44780         other file.
44781
44782 2003-06-11  Simon Josefsson  <jas@extundo.com>
44783
44784         * modules/sysexits: New file.
44785         * MODULES.html.sh (func_all_modules): Add sysexits.
44786
44787 2003-06-11  Simon Josefsson  <jas@extundo.com>
44788
44789         * lib/sysexit_.h: New file.
44790
44791 2003-06-11  Derek Price  <derek@ximbiot.com>
44792
44793         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44794         necessary.
44795
44796 2003-06-11  Bruno Haible  <bruno@clisp.org>
44797
44798         * m4/sysexits.m4: New file.
44799
44800 2003-06-10  Simon Josefsson  <jas@extundo.com>
44801
44802         * lib/argp.h: New file, from glibc.
44803         * lib/argp-ba.c: New file, from glibc.
44804         * lib/argp-eexst.c: New file, from glibc.
44805         * lib/argp-fmtstream.c: New file, from glibc.
44806         * lib/argp-fmtstream.h: New file, from glibc.
44807         * lib/argp-fs-xinl.c: New file, from glibc.
44808         * lib/argp-help.c: New file, from glibc.
44809         * lib/argp-namefrob.h: New file, from glibc.
44810         * lib/argp-parse.c: New file, from glibc.
44811         * lib/argp-pv.c: New file, from glibc.
44812         * lib/argp-pvh.c: New file, from glibc.
44813         * lib/argp-xinl.c: New file, from glibc.
44814
44815 2003-06-10  Simon Josefsson  <jas@extundo.com>
44816
44817         * modules/strchrnul: New file.
44818
44819 2003-06-10  Simon Josefsson  <jas@extundo.com>
44820
44821         * modules/argp: New file.
44822
44823 2003-06-10  Simon Josefsson  <jas@extundo.com>
44824
44825         * m4/strchrnul.m4: New file.
44826
44827 2003-06-10  Simon Josefsson  <jas@extundo.com>
44828
44829         * lib/strchrnul.h: New file.
44830         * lib/strchrnul.c: New file.
44831
44832 2003-06-10  Bruno Haible  <bruno@clisp.org>
44833
44834         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44835
44836 2003-06-07  Karl Berry  <karl@gnu.org>
44837
44838         * config/config.{guess,sub}: update from prep.
44839
44840 2003-06-07  Jim Meyering  <jim@meyering.net>
44841
44842         * modules/strtod: Use $(...) notation, not @...@ for
44843         AC_REPLACE'd variables.
44844         * modules/localcharset: Likewise.
44845
44846 2003-06-07  Jim Meyering  <jim@meyering.net>
44847
44848         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44849         in place of my name in the copyright comment.
44850         Remove definition and uses of __P.
44851
44852         From coreutils.
44853         * lib/stat.c: Don't declare xmalloc explicitly.
44854         Instead, include "xalloc.h".
44855         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44856         xrealloc, and xcalloc return values.
44857         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44858         Improve comment.
44859         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44860
44861 2003-06-07  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44864         avoid AC_CONFIG_LINKS.
44865         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44866         fnmatch.h, to avoid AC_CONFIG_LINKS.
44867         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44868
44869 2003-06-07  Bruno Haible  <bruno@clisp.org>
44870
44871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44872         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44873         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44874         directory.
44875         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44876         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44877         directory.
44878
44879 2003-06-06  Jim Meyering  <jim@meyering.net>
44880
44881         Merge from coreutils.
44882         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44883         Consolidate declarations and initializations of *_base* locals.
44884
44885         Merge from coreutils.
44886         This avoids a core dump on systems without GNU putenv,
44887         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44888         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44889         (unsetenv): New static function, from GNU libc.
44890         (rpl_putenv): Use it.
44891
44892         * lib/modechange.c: Remove trailing blanks.
44893
44894         Merge from coreutils.
44895         * lib/fsusage.c: Remove declaration of statfs.
44896         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44897
44898         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44899
44900 2003-06-06  Jim Meyering  <jim@meyering.net>
44901
44902         * lib/stdbool_.h: Renamed from stdbool.h.in.
44903
44904 2003-06-06  Jim Meyering  <jim@meyering.net>
44905             Bruno Haible  <bruno@clisp.org>
44906
44907         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44908         Adjust Makefile.am snippet not to redirect directly to target.
44909         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44910
44911 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44912
44913         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44914         mismatch, look in future quarters as well as past.  This fixes a
44915         bug when processing fall-backwards gaps immediately after a long
44916         period of daylight-saving time.
44917
44918         * lib/mktime.c: Assume freestanding C89 or better.
44919         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44920         (__P): Remove; not used.
44921         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44922         (mktime, not_equal_tm, print_tm, check_result,
44923         main): Use prototypes.  Use const * where appropriate.
44924         (main): Fix typo in testing code that uncovered by above changes.
44925         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44926
44927 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44928
44929         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44930         locale.h, localeconv.  This merges changes from coreutils.
44931
44932         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44933         It can be removed after the next Autoconf is released.
44934         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44935         needed.
44936
44937 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44938
44939         * lib/mktime.c: Fix Debian bug 177940
44940         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44941         (localtime_offset): Now long int, not time_t, because we want it
44942         to be guaranteed to be signed.  All uses changed.
44943         (__mktime_internal): If overflow would occur when adding offset,
44944         don't add it.
44945
44946         Merge 'human' changes from coreutils.  Rewrite to support
44947         locale-specific notations like thousands separators.
44948         * lib/human.c: Simplify authorship notice.
44949         Include human.h immediately after config.h.
44950         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44951         <limits.h>: Do not include, since human.h does.
44952         (SIZE_MAX, UINTMAX_MAX): New macros.
44953         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44954         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44955         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44956         (power_letter): Renamed from suffixes.
44957         (generate_suffix_backwards): Remove.
44958         (adjust_value): Now takes int style (because of human.h changes)
44959         and long double value (for greater precision on some platforms).
44960         (group_number): New function.
44961         (human_readable): Use it.  Use integer options, not enum.
44962         Put the options before the sizes in the arg list.
44963         Support all the new options.
44964         The old human_readable function has been removed;
44965         use inttostr.h instead.
44966         (human_readable, default_block_size, humblock):
44967         Use uintmax_t, not int, for block sizes.
44968         (human_readable_inexact, block_size_types): Remove.
44969         (block_size_opts): New constant.
44970         (human_options): Renamed from human_block_size, with new signature
44971         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44972         * lib/human.h: Add copyright and authorship notice.
44973         Include <limits.h> and <stdbool.h> unconditionally.
44974         (PARAMS): Remove.  All uses removed.
44975         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44976         (enum human_inexact_style): Remove tag; now a nameless enum.
44977         (human_floor, human_ceiling, human_round_to_even): Now have
44978         values 2, 0, 1 rather than -1, 1, 0.
44979         (human_group_digits, human_suppress_point_zero, human_autoscale,
44980         human_base_1024, human_SI, human_B): New constants.
44981         (human_readable_inexact, human_block_size): Remove.
44982         (human_readable): Size args are now uintmax_t, not int.
44983         (human_options): New decl.
44984
44985         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44986         unnecessary now that we assume C89 or better.  This change
44987         imported from coreutils.
44988
44989         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44990         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44991         in the 2003-05-30 sync from glibc.
44992
44993         .h files should stand alone, but we shouldn't include <sys/types.h>
44994         if we can get away with just <stddef.h>.
44995
44996         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44997         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44998         rather than <sys/types.h>, as we merely need size_t.
44999         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
45000         to get size_t.
45001         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
45002         Include <stdio.h>, to get FILE.
45003         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
45004         memcasecmp.h has included <stddef.h> and all we need is size_t.
45005         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
45006         our interface, instead of including <sys/types.h>
45007
45008 2003-06-04  Paul Eggert  <eggert@twinsun.com>
45009
45010         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
45011         now, as glibc mktime is buggy on non-glibc systems.
45012
45013 2003-06-03  Karl Berry  <karl@gnu.org>
45014
45015         * config/config.sub: update from prep.
45016
45017 2003-06-02  Paul Eggert  <eggert@twinsun.com>
45018
45019         [from coreutils]
45020         Fix some minor time-related bugs with POSIX time arguments.
45021         Some valid time stamps were being rejected (notably -1, and
45022         time stamps before 1900 on 64-bit hosts).  And some invalid
45023         time stamps were being accepted, e.g. September 31.
45024
45025         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
45026         that we can return (time_t) -1 successfully.
45027         * lib/posixtm.c: Likewise.
45028         [HAVE_STDBOOL_H]: Include <stdbool.h>.
45029         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
45030         (t): Remove static var.
45031         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
45032         of static var.  All uses changed.
45033         (year): Do not reject years before 1900; they can occur with
45034         64-bit time_t.
45035         (posix_time_parse): Do not check for out-of-range components;
45036         that is now the caller's responsibility, since our checks were
45037         only approximations.
45038         (posixtime): Use mktime to check for out-of-range components,
45039         since it knows them exactly.
45040         If mktime returns (time_t) -1, check whether an error actually occurred
45041         by invoking localtime on -1.
45042         (main) [TEST_POSIXTIME]: Check for input data errors, and report
45043         posixtime failures better.
45044         Improve the test data (in comments only).
45045
45046 2003-06-02  Karl Berry  <karl@gnu.org>
45047
45048         * config/mkinstalldirs (version): new variable.
45049         (--version): new option.
45050         (usage): improve message.
45051
45052 2003-05-30  Karl Berry  <karl@gnu.org>
45053
45054         * lib/mktime.c: update from libc.
45055
45056 2003-05-30  Bruno Haible  <bruno@clisp.org>
45057
45058         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
45059         * config/config.rpath: Upgrade to gettext-0.12.1.
45060
45061 2003-05-30  Bruno Haible  <bruno@clisp.org>
45062
45063         * m4/gettext.m4: Upgrade to gettext-0.12.1.
45064         * m4/nls.m4: New file, from gettext-0.12.1.
45065         * m4/po.m4: New file, from gettext-0.12.1.
45066         * m4/progtest.m4: Upgrade to gettext-0.12.1.
45067
45068 2003-05-30  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
45071         * lib/localcharset.h: Likewise.
45072         * lib/localcharset.c: Likewise.
45073
45074 2003-05-29  Karl Berry  <karl@gnu.org>
45075
45076         * config/config.rpath: update from gettext.
45077
45078 2003-05-28  Paul Eggert  <eggert@twinsun.com>
45079
45080         Assume the headers required for C89 freestanding compilers.
45081         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
45082         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
45083         * m4/human.m4 (gl_HUMAN): Likewise.
45084         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
45085         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
45086         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45087         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
45088         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45089         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
45090
45091 2003-05-28  Paul Eggert  <eggert@twinsun.com>
45092
45093         Assume the headers required for C89 freestanding compilers.
45094         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
45095         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
45096         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
45097         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
45098         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
45099         define, since <limits.h> is guaranteed to do that.
45100         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
45101         * lib/exclude.c: Include <stdbool.h> unconditionally.
45102         * lib/tempname.c: Include <stddef.h> unconditionally.
45103         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
45104         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
45105         <stddef.h> does that.
45106         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
45107         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
45108         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
45109         needed.
45110         * lib/xstrtol.c: Likewise.
45111         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
45112         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
45113
45114         * lib/addext.c (addext): Use assignment rather than cast, to avoid
45115         warnings on some platforms.
45116
45117         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
45118         arbitrarily.
45119
45120 2003-05-26  Jim Meyering  <jim@meyering.net>
45121
45122         Merge in a change from coreutils:
45123         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
45124         that is guaranteed to be `no'.  Use `no_such_member' to indicate
45125         that condition, rather than `-1' which is slightly misleading.
45126         Change the name of the cache variable to have the gl_ prefix.
45127         Prompted by a patch from Richard Dawe for DJGPP.
45128
45129 2003-05-24  Karl Berry  <karl@gnu.org>
45130
45131         * config/config.guess: update from prep.
45132
45133 2003-05-22  Karl Berry  <karl@gnu.org>
45134
45135         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
45136
45137 2003-05-20  Karl Berry  <karl@gnu.org>
45138
45139         * config/config.guess: update from prep.
45140
45141 2003-05-18  Karl Berry  <karl@gnu.org>
45142
45143         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
45144         might actually be set by the user.
45145
45146         * config/depcomp, install-sh, mdate-sh: update from automake.
45147
45148 2003-05-17  Bruno Haible  <bruno@clisp.org>
45149
45150         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
45151         invalid expansion for AC_EGREP_CPP.
45152         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45153         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45154         Suggested by Akim Demaille <akim@epita.fr> in
45155         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
45156
45157 2003-05-12  Jim Meyering  <jim@meyering.net>
45158
45159         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
45160         the space-padded-by-default conversion specifiers, %e, %k, %l.
45161
45162 2003-05-12  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
45165         the string is longer than 4 KB.
45166
45167 2003-05-11  Karl Berry  <karl@gnu.org>
45168
45169         * config/config.{guess,sub}: update from prep.
45170
45171 2003-05-09  Bruno Haible  <bruno@clisp.org>
45172
45173         * modules/error: Add m4/strerror_r.m4 to file list.
45174
45175 2003-05-03  Bruno Haible  <bruno@clisp.org>
45176
45177         Upgrade to Unicode-4.0.
45178         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
45179         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
45180         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
45181         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
45182         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
45183         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
45184         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
45185         Change width of U+E0100..U+E01EF from 1 to 0.
45186
45187 2003-04-25  Jim Meyering  <jim@meyering.net>
45188
45189         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
45190         of type size_t, not int.
45191
45192 2003-04-25  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/copy-file.c: Include <stddef.h>, for size_t.
45195
45196 2003-04-21  Paul Eggert  <eggert@twinsun.com>
45197
45198         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
45199         code which expansion is under static control.  Patch imported from
45200         Akim Demaille's patch to Bison; see
45201         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
45202
45203 2003-04-14  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
45206
45207 2003-04-11  Jim Meyering  <jim@meyering.net>
45208
45209         Merge changes from Coreutils.
45210
45211         2003-03-22  Jim Meyering  <jim@meyering.net>
45212
45213         * lib/strftime.c (widen): Cast alloca return value to proper type.
45214
45215         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
45216
45217         From GNU libc.
45218         * lib/strftime.c (my_strftime): Handle very large width
45219         specifications for numeric values correctly.  Improve checks for
45220         overflow.
45221
45222         2003-01-19  Jim Meyering  <jim@meyering.net>
45223
45224         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
45225         definitions.
45226         (nl_get_alt_digit) [! defined my_strftime]: Define.
45227         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
45228         _nl_get_alt_digit and _nl_get_walt_digit.
45229
45230         * lib/strftime.c (my_strftime): Merge in locale-related changes from
45231         libc. These changes have no effect outside of _LIBC.
45232
45233 2003-04-10  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/findprog: New file.
45236         * MODULES.html.sh (func_all_modules): Add it.
45237
45238 2003-04-10  Bruno Haible  <bruno@clisp.org>
45239
45240         * m4/findprog.m4: New file.
45241         * m4/eaccess.m4: New file.
45242
45243 2003-04-10  Bruno Haible  <bruno@clisp.org>
45244
45245         * lib/findprog.h: New file, from GNU gettext.
45246         * lib/findprog.c: New file, from GNU gettext.
45247
45248 2003-04-05  Jim Meyering  <jim@meyering.net>
45249
45250         Merge changes from Coreutils.
45251
45252         * lib/exclude.h (PARAMS): Remove definition and uses.
45253         * lib/exclude.c: Remove uses of `PARAMS'.
45254
45255         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
45256         Add test-cases for DOS filenames. Declare program_name.
45257         (main): Set up program_name.  Patch by Rich Dawe.
45258
45259         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45260         error from mntctl.
45261         Use mntctl's return value to drive the entry-processing loop, since
45262         we can't rely on the value of the vmt_length member in the last
45263         entry.  On some systems doing so could result in exhausting
45264         virtual memory.  Based in part on a patch from Mike Jetzer.
45265
45266 2003-04-04  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/linebreak: New file.
45269         * MODULES.html.sh (func_all_modules): Add it.
45270
45271 2003-04-04  Bruno Haible  <bruno@clisp.org>
45272
45273         * m4/linebreak.m4: New file.
45274
45275 2003-04-04  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/linebreak.h: New file, from GNU gettext.
45278         * lib/linebreak.c: New file, from GNU gettext with slight
45279         modifications.
45280         * lib/lbrkprop.h: New file, from GNU gettext.
45281
45282 2003-04-03  Bruno Haible  <bruno@clisp.org>
45283
45284         * modules/utf8-ucs4: New file.
45285         * modules/utf16-ucs4: New file.
45286         * modules/ucs4-utf8: New file.
45287         * modules/ucs4-utf16: New file.
45288         * MODULES.html.sh (func_all_modules): Add them.
45289
45290 2003-04-03  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/utf-ucs4.m4: New file.
45293         * m4/ucs4-utf.m4: New file.
45294
45295 2003-04-03  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/utf8-ucs4.h: New file, from GNU gettext.
45298         * lib/utf16-ucs4.h: New file, from GNU gettext.
45299         * lib/ucs4-utf8.h: New file, from GNU gettext.
45300         * lib/ucs4-utf16.h: New file, from GNU gettext.
45301
45302 2003-04-02  Bruno Haible  <bruno@clisp.org>
45303
45304         * modules/binary-io: New file.
45305         * MODULES.html.sh (func_all_modules): Add it.
45306
45307 2003-04-02  Bruno Haible  <bruno@clisp.org>
45308
45309         * lib/binary-io.h: New file, from GNU gettext.
45310
45311 2003-04-01  Bruno Haible  <bruno@clisp.org>
45312
45313         * modules/pathname: New file.
45314         * MODULES.html.sh (func_all_modules): Add it.
45315
45316 2003-04-01  Bruno Haible  <bruno@clisp.org>
45317
45318         * lib/pathname.h: New file, from GNU gettext.
45319         * lib/concatpath.c: New file, from GNU gettext.
45320
45321 2003-03-30  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
45324
45325 2003-03-30  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
45328         function chown() doesn't exist.
45329
45330 2003-03-28  Bruno Haible  <bruno@clisp.org>
45331
45332         * modules/copy-file: New file.
45333         * MODULES.html.sh (func_all_modules): Add it.
45334
45335 2003-03-28  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/copy-file.m4: New file.
45338
45339 2003-03-28  Bruno Haible  <bruno@clisp.org>
45340
45341         * lib/copy-file.h: New file, from GNU gettext.
45342         * lib/copy-file.c: New file, from GNU gettext.
45343
45344 2003-03-18  Jim Meyering  <jim@meyering.net>
45345
45346         * lib/quote.c (quote_n): Fix typo in comment.
45347
45348 2003-03-18  Bruno Haible  <bruno@clisp.org>
45349
45350         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
45351         checking.
45352         * m4/onceonly_2_57.m4: Likewise.
45353
45354 2003-03-17  Bruno Haible  <bruno@clisp.org>
45355
45356         * m4/onceonly.m4: Require autoconf 2.54 or newer.
45357         (m4_quote): Remove macro.
45358         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
45359
45360 2003-03-14  Jim Meyering  <jim@meyering.net>
45361
45362         Merge changes from Coreutils.
45363         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
45364         to be const, in order to avoid warnings.
45365         (obstack_room): Likewise.
45366         (obstack_empty_p): Likewise.
45367
45368 2003-03-14  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
45371         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
45372
45373 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45374
45375         Merge changes from Bison.
45376         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
45377         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
45378         when compiling Bison 1.875's `bitset bset = obstack_alloc
45379         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
45380         * lib/hash.c: Include <stdbool.h> unconditionally.
45381
45382 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45383
45384         * m4/onceonly.m4 (m4_quote): New macro.
45385         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
45386         Quote AC_FOREACH variable-expansions properly.
45387
45388 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45389
45390         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
45391
45392 2003-03-09  Paul Eggert  <eggert@twinsun.com>
45393
45394         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
45395         Reported by Bruce Becker; see:
45396         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
45397
45398 2003-03-03  Paul Eggert  <eggert@twinsun.com>
45399             Bruno Haible  <bruno@clisp.org>
45400
45401         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
45402         Reported by John Hughes, see
45403         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
45404
45405 2003-02-20  Bruno Haible  <bruno@clisp.org>
45406
45407         * MODULES.html.sh (func_all_modules): Add poll.
45408
45409 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45410
45411         * modules/poll: New file.
45412
45413 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45414
45415         * lib/poll_.h: New file.
45416         * lib/poll.c: New file.
45417
45418 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45419
45420         * m4/poll.m4: New file.
45421
45422 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45423
45424         * modules/mathl: New file.
45425
45426 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45427
45428         * lib/mathl.h: New file.
45429         * lib/acosl.c: New file.
45430         * lib/asinl.c: New file.
45431         * lib/atanl.c: New file.
45432         * lib/ceill.c: New file.
45433         * lib/cosl.c: New file.
45434         * lib/expl.c: New file.
45435         * lib/floorl.c: New file.
45436         * lib/frexpl.c: New file.
45437         * lib/ldexpl.c: New file.
45438         * lib/logl.c: New file.
45439         * lib/sincosl.c: New file.
45440         * lib/sinl.c: New file.
45441         * lib/sqrtl.c: New file.
45442         * lib/tanl.c: New file.
45443         * lib/trigl.c: New file.
45444         * lib/trigl.h: New file.
45445
45446 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45447
45448         * m4/mathl.m4: New file.
45449
45450 2003-02-18  Bruno Haible  <bruno@clisp.org>
45451
45452         * MODULES.html.sh (func_all_modules): Add mathl.
45453
45454 2003-02-17  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/mkdtemp: New module.
45457         * MODULES.html.sh (func_all_modules): Add it.
45458
45459 2003-02-17  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
45462
45463 2003-02-17  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/mkdtemp.h: New file, from GNU gettext.
45466         * lib/mkdtemp.c: New file, from GNU gettext.
45467
45468 2003-02-02  Jim Meyering  <jim@meyering.net>
45469
45470         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
45471         e.g. glibc-2.2.93.
45472
45473 2003-01-31  Bruno Haible  <bruno@clisp.org>
45474
45475         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
45476         'rpl_rename'.
45477         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
45478         'rpl_strnlen'.
45479         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
45480         'rpl_strtod'.
45481         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
45482         'rpl_utime'.
45483
45484 2003-01-31  Bruno Haible  <bruno@clisp.org>
45485
45486         * lib/rename.c: #undef rename before defining rpl_rename.
45487         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
45488
45489 2003-01-30  Bruno Haible  <bruno@clisp.org>
45490
45491         * modules/vasnprintf, modules/vasprintf: New modules.
45492         * MODULES.html.sh (func_all_modules): Add them.
45493
45494 2003-01-30  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/signed.m4: New file, from GNU gettext.
45497         * m4/longdouble.m4: New file, from GNU gettext.
45498         * m4/wchar_t.m4: New file, from GNU gettext.
45499         * m4/wint_t.m4: New file, from GNU gettext.
45500         * m4/vasnprintf.m4: New file.
45501         * m4/vasprintf.m4: New file.
45502
45503 2003-01-30  Bruno Haible  <bruno@clisp.org>
45504
45505         * lib/printf-args.h: New file, from GNU gettext.
45506         * lib/printf-args.c: New file, from GNU gettext.
45507         * lib/printf-parse.h: New file, from GNU gettext.
45508         * lib/printf-parse.c: New file, from GNU gettext.
45509         * lib/vasnprintf.h: New file, from GNU gettext.
45510         * lib/vasnprintf.c: New file, from GNU gettext.
45511         * lib/asnprintf.c: New file, from GNU gettext.
45512         * lib/vasprintf.h: New file, from GNU gettext with modifications.
45513         * lib/vasprintf.c: New file, from GNU gettext.
45514         * lib/asprintf.c: New file, from GNU gettext.
45515
45516 2003-01-29  Bruno Haible  <bruno@clisp.org>
45517
45518         * modules/stpncpy: New module.
45519         * MODULES.html.sh (func_all_modules): Add it.
45520
45521 2003-01-29  Bruno Haible  <bruno@clisp.org>
45522
45523         * m4/stpncpy.m4: New file.
45524
45525 2003-01-29  Bruno Haible  <bruno@clisp.org>
45526
45527         * lib/stpncpy.h: New file, from GNU gettext with modifications.
45528         * lib/stpncpy.c: New file, from GNU gettext with modifications.
45529
45530 2003-01-28  Bruno Haible  <bruno@clisp.org>
45531
45532         * modules/c-ctype: New module.
45533         * MODULES.html.sh (func_all_modules): Add it.
45534
45535 2003-01-28  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
45538         Paul Eggert.
45539         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
45540         Paul Eggert.
45541
45542 2003-01-27  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/xsetenv: New module.
45545         * MODULES.html.sh (func_all_modules): Add it.
45546
45547 2003-01-27  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/xsetenv.h: New file, from GNU gettext.
45550         * lib/xsetenv.c: New file, from GNU gettext.
45551
45552 2003-01-23  Jim Meyering  <jim@meyering.net>
45553
45554         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
45555         from working on systems without dirfd (at least Irix and OSF1/Tru64).
45556
45557 2003-01-23  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/minmax: New module.
45560         * MODULES.html.sh (func_all_modules): Add it.
45561
45562 2003-01-23  Bruno Haible  <bruno@clisp.org>
45563
45564         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
45565         Eggert.
45566
45567 2003-01-22  Bruno Haible  <bruno@clisp.org>
45568
45569         * modules/exit: New module.
45570         * MODULES.html.sh (func_all_modules): Add it.
45571
45572 2003-01-22  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/exit.h: New file, from GNU gettext.
45575
45576 2003-01-19  Bruno Haible  <bruno@clisp.org>
45577
45578         * gnulib-tool: Recognize option --extract-maintainer.
45579         (func_get_maintainer): New function.
45580         * modules/*: Add Maintainer entry.
45581
45582 2003-01-16  Jim Meyering  <jim@meyering.net>
45583
45584         * m4/regex.m4: The `regex' struct is both input and output.
45585         Initialize it before each use.  Patch by Tim Waugh.
45586
45587 2003-01-16  Bruno Haible  <bruno@clisp.org>
45588
45589         * MODULES.html.sh: Add a table of contents. Add the module name as
45590         leftmost column. Add hyperlinks.
45591
45592 2003-01-15  Bruno Haible  <bruno@clisp.org>
45593
45594         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
45595
45596 2003-01-15  Bruno Haible  <bruno@clisp.org>
45597
45598         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
45599         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
45600         suffix.
45601
45602 2003-01-15  Bruno Haible  <bruno@clisp.org>
45603
45604         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
45605
45606 2003-01-15  Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
45609         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
45610
45611 2003-01-14  Jim Meyering  <jim@meyering.net>
45612
45613         * lib/same.c (same_name): Tweak a comment.
45614
45615 2003-01-14  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
45618         when a string comparison is sufficient.
45619
45620 2003-01-14  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
45623         'unsigned int'.
45624
45625 2003-01-14  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/hash-pjw.c: Add comment about low quality of this function.
45628
45629 2003-01-13  Bruno Haible  <bruno@clisp.org>
45630
45631         * modules/stpcpy: Distribute lib/stpcpy.h.
45632         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
45633
45634 2003-01-13  Bruno Haible  <bruno@clisp.org>
45635
45636         * modules/*: Add a description.
45637         * modules/strpbrk: Fix Makefile.am snippet.
45638         * modules/strtoimax: Fix dependencies.
45639         * modules/strtoumax: Likewise.
45640
45641 2003-01-13  Bruno Haible  <bruno@clisp.org>
45642
45643         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
45644         * modules/alloca (Makefile.am): All object files depend on alloca.h.
45645         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
45646
45647 2003-01-13  Bruno Haible  <bruno@clisp.org>
45648
45649         * gnulib-tool (func_create_testdir): Store config/* files in the main
45650         directory.
45651         * config.rpath: Move to ...
45652         * config/config.rpath: ... here.
45653         * modules/gettext: Contains config/config.rpath, not config.rpath.
45654         * modules/iconv: Likewise.
45655
45656 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45657
45658         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45659         to avoid collisions with libcurses and libreadline.
45660
45661         * m4/getstr.m4: Remove.
45662         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
45663
45664 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45665
45666         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45667         to avoid collisions with libcurses and libreadline.
45668
45669         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
45670         * lib/getstr.h, getstr.c: Remove.
45671         * lib/getline.c: Include "getline.h", to check interface.
45672         Move body of old getstr.c here: this defines MIN_CHUNK and
45673         declares getdelim2, which is renamed from getstr.
45674         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
45675
45676         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
45677         All uses changed.
45678         * lib/linebuffer.h: Likewise.
45679         (readline): Remove backward-compatibility macro.
45680
45681 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45682
45683         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45684         to avoid collisions with libcurses and libreadline.
45685         * getstr: Remove.
45686         * MODULES.html.sh: Remove getstr.
45687         * modules/getline: Depend on unlocked-io, not getstr.
45688
45689 2003-01-12  Jim Meyering  <jim@meyering.net>
45690
45691         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
45692
45693 2003-01-10  Bruno Haible  <bruno@clisp.org>
45694
45695         * modules/alloca: Change Makefile.am requirements. Simplify Include
45696         requirements. Add lib/alloca_.h to file list.
45697
45698 2003-01-10  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
45701
45702 2003-01-10  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/alloca_.h: New file.
45705         * lib/getdate.y: Unconditionally include alloca.h.
45706         * lib/makepath.c: Likewise.
45707         * lib/setenv.c: Likewise.
45708         * lib/userspec.c: Likewise.
45709
45710 2003-01-09  Karl Berry  <karl@gnu.org>
45711
45712         * MODULES.html.sh: include `dirname $0` in PATH, to find
45713         gnulib-tool.
45714
45715 2003-01-09  Bruno Haible  <bruno@clisp.org>
45716
45717         * modules/stdbool: Change configure.ac, Makefile.am requirements.
45718         Simplify Include requirements. Add lib/stdbool.h.in to file list.
45719
45720 2003-01-09  Bruno Haible  <bruno@clisp.org>
45721
45722         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45723
45724 2003-01-09  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/stdbool.h.in: New file.
45727
45728 2003-01-09  Bruno Haible  <bruno@clisp.org>
45729
45730         * gnulib-tool (func_all_modules): Ignore files ending in ~.
45731         * MODULES.html.sh: Likewise.
45732
45733 2003-01-08  Jim Meyering  <jim@meyering.net>
45734
45735         * lib/full-write.c: Undefine and define-away `const' after inclusion
45736         of errno.h, not before.  Suggestion from Bruno Haible.
45737
45738 2003-01-08  Bruno Haible  <bruno@clisp.org>
45739
45740         * modules/full-read: Depend on full-write.
45741
45742 2003-01-08  Bruno Haible  <bruno@clisp.org>
45743
45744         * lib/safe-read.c: Include specification header first, to ensure its
45745         selfcontainedness.
45746         * lib/full-write.c: Likewise.
45747
45748 2003-01-07  Jim Meyering  <jim@meyering.net>
45749
45750         * lib/full-write.c: Rework so that it may serve to define full_read,
45751         too.
45752         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45753
45754 2003-01-07  Bruno Haible  <bruno@clisp.org>
45755
45756         * lib/strtoimax.c: Include <stdint.h> as an alternative to
45757         <inttypes.h>.
45758         * lib/xstrtol.h: Likewise.
45759         * lib/xstrtoimax.c: Likewise.
45760         * lib/xstrtoumax.c: Likewise.
45761         * lib/human.h: Likewise.
45762
45763         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45764         on systems that have <inttypes.h> but not <stdint.h>.
45765
45766 2003-01-07  Bruno Haible  <bruno@clisp.org>
45767
45768         * MODULES.html.sh: Add copyright notice.
45769         (missed_files): Omit CVS directory entries.
45770         (func_module): Make it work with sed-3.02.
45771         * MODULES.txt: Remove file.
45772
45773 2003-01-06  Jim Meyering  <jim@meyering.net>
45774
45775         * lib/version-etc.c: Update year in translatable copyright string.
45776
45777 2003-01-03  Karl Berry  <karl@gnu.org>
45778
45779         * config/config.{guess,sub}: update from prep.
45780
45781 2003-01-02  Karl Berry  <karl@gnu.org>
45782
45783         * doc/COPYING.DOC: belatedly updated to 1.2.
45784
45785 2003-01-01  Karl Berry  <karl@gnu.org>
45786
45787         * gnulib-tool (func_verify_module): report module name $module in
45788         error message, not $1.
45789         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45790         be created, only if it doesn't exist.
45791         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45792
45793 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45794
45795         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45796
45797 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45798
45799         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45800         memcmp if strcoll doesn't work.
45801
45802 2002-12-31  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45805         nonempty.
45806
45807 2002-12-31  Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/memcoll.c (STRCOLL): New macro.
45810         (memcoll): Use it.
45811
45812 2002-12-31  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/localcharset.h: New file.
45815         * lib/localcharset.c: Include it.
45816         * lib/unicodeio.c: Likewise.
45817
45818 2002-12-31  Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45821         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45822
45823 2002-12-31  Bruno Haible  <bruno@clisp.org>
45824
45825         * lib/getline.h: Include <stddef.h>, for size_t.
45826
45827         * lib/unicodeio.h: Include <stddef.h>, for size_t.
45828         * lib/unicodeio.c: Don't include <stddef.h>.
45829
45830 2002-12-31  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45833         HAVE_TM_ZONE.
45834
45835 2002-12-24  Karl Berry  <karl@gnu.org>
45836
45837         * config/config.guess: update from prep.
45838
45839 2002-12-24  Bruno Haible  <bruno@clisp.org>
45840
45841         General infrasructure.
45842         * m4/README: Rewritten.
45843         * m4/onceonly.m4: New file.
45844         * m4/onceonly_2_57.m4: New file.
45845
45846         Module atexit.
45847         * m4/atexit.m4: New file.
45848
45849         Module strtod.
45850         * m4/strtod.m4: New file.
45851
45852         Module strtol.
45853         * m4/strtol.m4: New file.
45854
45855         Module strtoul.
45856         * m4/strtoul.m4: New file.
45857
45858         Module memchr.
45859         * m4/memchr.m4: New file.
45860
45861         Module memcmp.
45862         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45863         (jm_FUNC_MEMCMP): Invoke it.
45864
45865         Module memcpy.
45866         * m4/memcpy.m4: New file.
45867
45868         Module memmove.
45869         * m4/memmove.m4: New file.
45870
45871         Module memset.
45872         * m4/memset.m4: New file.
45873
45874         Module strcspn.
45875         * m4/strcspn.m4: New file.
45876
45877         Module strpbrk.
45878         * m4/strpbrk.m4: New file.
45879
45880         Module strstr.
45881         * m4/strstr.m4: New file.
45882
45883         Module strerror.
45884         * m4/strerror.m4: New file.
45885
45886         Module mktime.
45887         * m4/mktime.m4: Renamed from jm-mktime.m4.
45888         (gl_PREREQ_MKTIME): New macro.
45889         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45890
45891         Module malloc.
45892         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45893         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45894         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45895
45896         Module realloc.
45897         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45898         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45899         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45900
45901         Module strftime.
45902         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45903         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45904         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45905         gl_TM_GMTOFF.
45906         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45907
45908         Module xalloc.
45909         * m4/xalloc.m4: New file.
45910
45911         Module alloca.
45912         * m4/alloca.m4: New file.
45913
45914         Module putenv.
45915         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45916         (jm_FUNC_PUTENV): Invoke it.
45917
45918         Module setenv.
45919         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45920         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45921         when invoked twice.
45922         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45923         gt_FUNC_SETENV.
45924
45925         Module memrchr.
45926         * m4/memrchr.m4: New file.
45927
45928         Module stpcpy.
45929         * m4/stpcpy.m4: New file.
45930
45931         Module strcase.
45932         * m4/strcase.m4: New file.
45933
45934         Module strdup.
45935         * m4/strdup.m4: New file.
45936
45937         Module strnlen.
45938         * m4/strnlen.m4: New file.
45939
45940         Module strndup.
45941         * m4/strndup.m4: New file.
45942
45943         Module xstrtod.
45944         * m4/xstrtod.m4: New file.
45945
45946         Module xstrtol.
45947         * m4/xstrtol.m4: New file.
45948
45949         Module getdate.
45950         * m4/getdate.m4: New file.
45951
45952         Module unlocked-io.
45953         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45954         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45955         * m4/jm-glibc-io.m4n: Remove file.
45956
45957         Module long-options.
45958         * m4/long-options.m4: New file.
45959
45960         Module md5.
45961         * m4/md5.m4: New file.
45962
45963         Module sha.
45964         * m4/sha.m4: New file.
45965
45966         Module getstr.
45967         * m4/getstr.m4: New file.
45968
45969         Module getline.
45970         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45971         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45972         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45973         simply getline. Infoke gl_PREREQ_GETLINE.
45974
45975         Module obstack.
45976         * m4/obstack.m4: New file.
45977
45978         Module hash.
45979         * m4/hash.m4: New file.
45980
45981         Module readtokens.
45982         * m4/readtokens.m4: New file.
45983
45984         Module strverscmp.
45985         * m4/strverscmp.m4: New file.
45986
45987         Module stdbool.
45988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45989         OSF/1.
45990
45991         Module strtoll.
45992         * m4/strtoll.m4: New file.
45993
45994         Module strtoull.
45995         * m4/strtoull.m4: New file.
45996
45997         Module strtoimax.
45998         * m4/strtoimax.m4: New file.
45999
46000         Module strtoumax.
46001         * m4/strtoumax.m4: New file.
46002
46003         Module xstrtoimax.
46004         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
46005         jm_AC_PREREQ_XSTRTOIMAX.
46006         Moved the strtol prerequisites to strtol.m4.
46007         Moved the strtoll prerequisites to strtoll.m4.
46008         Moved the strtoimax prerequisites to strtoimax.m4.
46009
46010         Module xstrtoumax.
46011         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
46012         jm_AC_PREREQ_XSTRTOUMAX.
46013         Moved the strtoul prerequisites to strtoul.m4.
46014         Moved the strtoull prerequisites to strtoull.m4.
46015         Moved the strtoumax prerequisites to strtoumax.m4.
46016
46017         Module chown.
46018         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
46019         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
46020
46021         Module dup2.
46022         * m4/dup2.m4: New file.
46023
46024         Module ftruncate.
46025         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
46026         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
46027
46028         Module getgroups.
46029         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
46030         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
46031
46032         Module gettimeofday.
46033         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
46034         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
46035         gl_PREREQ_GETTIMEOFDAY.
46036
46037         Module mkdir.
46038         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
46039         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
46040
46041         Module mkstemp.
46042         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
46043         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
46044         jm_AC_TYPE_UINTMAX_T.
46045         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
46046
46047         Module stat.
46048         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
46049         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
46050
46051         Module lstat.
46052         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
46053         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
46054
46055         Module timespec.
46056         * m4/timespec.m4 (gl_TIMESPEC): New macro.
46057         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
46058         * m4/st_mtim.m4: Indentation.
46059
46060         Module nanosleep.
46061         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
46062         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
46063         gl_PREREQ_NANOSLEEP.
46064
46065         Module regex.
46066         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
46067         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
46068         (gl_REGEX): New macro.
46069
46070         Module rename.
46071         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
46072         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
46073
46074         Module rmdir.
46075         * m4/rmdir.m4: New file.
46076
46077         Module utime.
46078         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
46079         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
46080         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
46081
46082         Module dirname.
46083         * m4/dirname.m4: New file.
46084
46085         Module getopt.
46086         * m4/getopt.m4: New file.
46087
46088         Module unistd-safer.
46089         * m4/unistd-safer.m4: New file.
46090
46091         Module fnmatch.
46092         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
46093         declaration.
46094         (gl_PREREQ_FNMATCH_EXTRA): New macro.
46095         (gl_FUNC_FNMATCH_POSIX): New macro.
46096         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
46097         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
46098         simply fnmatch.
46099
46100         Module exclude.
46101         * m4/exclude.m4: New file.
46102
46103         Module human.
46104         * m4/human.m4: New file.
46105
46106         Module acl.
46107         * m4/acl.m4: Nop.
46108
46109         Module backupfile.
46110         * m4/backupfile.m4: New file.
46111         * m4/d-ino.m4: Indentation.
46112
46113         Module fsusage.
46114         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
46115         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
46116         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
46117
46118         Module dirfd.
46119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
46120         requirements.
46121
46122         Module euidaccess.
46123         * m4/euidaccess.m4: New file.
46124
46125         Module file-type.
46126         * m4/file-type.m4: New file.
46127
46128         Module fileblocks.
46129         * m4/fileblocks.m4: New file.
46130
46131         Module filemode.
46132         * m4/filemode.m4: New file.
46133
46134         Module isdir.
46135         * m4/isdir.m4: New file.
46136
46137         Module lchown.
46138         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
46139         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
46140
46141         Module makepath.
46142         * m4/makepath.m4: New file.
46143
46144         Module modechange.
46145         * m4/modechange.m4: New file.
46146
46147         Module mountlist.
46148         * m4/mountlist.m4: New file.
46149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
46150         Indentation.
46151
46152         Module path-concat.
46153         * m4/path-concat.m4: New file.
46154
46155         Module pathmax.
46156         * m4/pathmax.m4: New file.
46157
46158         Module same.
46159         * m4/same.m4: New file.
46160
46161         Module save-cwd.
46162         * m4/save-cwd.m4: New file.
46163
46164         Module savedir.
46165         * m4/savedir.m4: New file.
46166
46167         Module xgetcwd.
46168         * m4/xgetcwd.m4: New file.
46169         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
46170
46171         Module xreadlink.
46172         * m4/xreadlink.m4: New file.
46173
46174         Module safe-read.
46175         * m4/safe-read.m4: New file.
46176
46177         Module safe-write.
46178         * m4/safe-write.m4: New file.
46179
46180         Module closeout.
46181         * m4/closeout.m4: New file.
46182
46183         Module stdio-safer.
46184         * m4/stdio-safer.m4: New file.
46185
46186         Module getpass.
46187         * m4/getpass.m4: New file.
46188
46189         Module getugroups.
46190         * m4/getugroups.m4: New file.
46191
46192         Module group-member.
46193         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
46194         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
46195
46196         Module idcache.
46197         * m4/idcache.m4: New file.
46198
46199         Module userspec.
46200         * m4/userspec.m4: New file.
46201
46202         Module gettime.
46203         * m4/clock_time.m4: New file.
46204         * m4/gettime.m4: New file.
46205
46206         Module settime.
46207         * m4/settime.m4: New file.
46208
46209         Module posixtm.
46210         * m4/posixtm.m4: New file.
46211
46212         Module gethostname.
46213         * m4/gethostname.m4: New file.
46214
46215         Module canon-host.
46216         * m4/canon-host.m4: New file.
46217
46218         Module gettext.
46219         * m4/codeset.m4: New file, from gettext-0.11.5.
46220         * m4/gettext.m4: New file, from gettext-0.11.5.
46221         * m4/glibc21.m4: New file, from gettext-0.11.5.
46222         * m4/iconv.m4: New file, from gettext-0.11.5.
46223         * m4/intdiv0.m4: New file, from gettext-0.11.5.
46224         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
46225         * m4/inttypes.m4: New file, from gettext-0.11.5.
46226         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
46227         * m4/isc-posix.m4: New file, from gettext-0.11.5.
46228         * m4/lcmessage.m4: New file, from gettext-0.11.5.
46229         * m4/lib-ld.m4: New file, from gettext-0.11.5.
46230         * m4/lib-link.m4: New file, from gettext-0.11.5.
46231         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
46232         * m4/progtest.m4: New file, from gettext-0.11.5.
46233         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
46234         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
46235         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
46236
46237         Module localcharset.
46238         * m4/localcharset.m4: New file.
46239
46240         Module hard-locale.
46241         * m4/hard-locale.m4: New file.
46242
46243         Module mbswidth.
46244         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
46245         onceonly macros.
46246         * m4/mbrtowc.m4: Add comment.
46247
46248         Module memcasecmp.
46249         * m4/memcasecmp.m4: New file.
46250
46251         Module memcoll.
46252         * m4/memcoll.m4: New file.
46253
46254         Module unicodeio.
46255         * m4/unicodeio.m4: New file.
46256
46257         Module rpmatch.
46258         * m4/rpmatch.m4: New file.
46259
46260         Module yesno.
46261         * m4/yesno.m4: New file.
46262
46263         Module exitfail.
46264         * m4/exitfail.m4: New file.
46265
46266         Module c-stack.
46267         * m4/c-stack.m4 (gl_C_STACK): New macro.
46268         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
46269
46270         Module error.
46271         * m4/error.m4 (gl_ERROR): New macro.
46272         (jm_PREREQ_ERROR): Use onceonly macros.
46273
46274         Module fatal.
46275         * m4/fatal.m4: New file.
46276
46277         Module getloadavg.
46278         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
46279         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
46280
46281         Module getpagesize.
46282         * m4/getpagesize.m4: New file.
46283
46284         Module getusershell.
46285         * m4/getusershell.m4: New file.
46286
46287         Module physmem.
46288         * m4/physmem.m4: New file.
46289
46290         Module posixver.
46291         * m4/posixver.m4: New file.
46292
46293         Module quotearg.
46294         * m4/quotearg.m4: New file.
46295
46296         Module quote.
46297         * m4/quote.m4: New file.
46298
46299         Module readutmp.
46300         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
46301
46302         Module sig2str.
46303         * m4/sig2str.m4: New file.
46304
46305         Other.
46306         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
46307         ulonglong.m4.
46308         * m4/intmax_t.m4: New file.
46309         * m4/d-type.m4: Indentation.
46310         * m4/jm-macros.m4: Update.
46311         * m4/prereq.m4 (jm_PREREQ): Update.
46312         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
46313         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
46314         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
46315         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
46316         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
46317         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
46318         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
46319         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
46320         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
46321         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
46322         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
46323         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
46324         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
46325         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
46326         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
46327         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
46328         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
46329         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
46330         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
46331
46332 2002-12-24  Bruno Haible  <bruno@clisp.org>
46333
46334         * MODULES.txt: Update according to m4/ changes.
46335
46336         Module gettext.
46337         * config.rpath: New file, from gettext-0.11.5.
46338
46339         * modules/*: New module descriptions.
46340         * gnulib-tool: New file.
46341         * MODULES.html.sh: New file.
46342
46343 2002-12-21  Karl Berry  <karl@gnu.org>
46344
46345         * doc/fdl.texi: update to version 1.2.
46346
46347 2002-12-19  Karl Berry  <karl@gnu.org>
46348
46349         * config/config.guess: update from prep.
46350
46351 2002-12-18  Bruno Haible  <bruno@clisp.org>
46352
46353         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
46354         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
46355
46356 2002-12-17  Bruno Haible  <bruno@clisp.org>
46357
46358         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
46359         stdlib.h, string.h.
46360
46361 2002-12-17  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/canon-host.c (strdup): Remove unused declaration.
46364
46365         * lib/fsusage.c: Include full_read.h.
46366         (get_fs_usage): Use full_read instead of safe_read.
46367
46368         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
46369
46370 2002-12-12  Karl Berry  <karl@gnu.org>
46371
46372         * config/config.guess: update from prep.
46373
46374 2002-12-11  Bruno Haible  <bruno@clisp.org>
46375
46376         * m4/setenv.m4: New file, from gettext-0.11.5.
46377
46378 2002-12-11  Bruno Haible  <bruno@clisp.org>
46379
46380         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
46381         not unsetenv().
46382         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
46383         modifications:
46384
46385         2002-12-11  Bruno Haible  <bruno@clisp.org>
46386
46387                 * setenv.c (alloca): Fall back to malloc.
46388                 (freea): New macro.
46389                 (setenv): Use freea() to free memory allocated with alloca().
46390
46391         2002-11-13  Bruno Haible  <bruno@clisp.org>
46392
46393                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
46394                 function declarations.
46395                 * unsetenv.c (unsetenv): Likewise.
46396
46397         2002-03-04  Bruno Haible  <bruno@clisp.org>
46398
46399                 Portability to AIX 4.3.3.
46400                 * unsetenv.c: New file, extracted from setenv.c.
46401                 * setenv.c: Move the unsetenv() function to unsetenv.c.
46402
46403         2001-12-20  Bruno Haible  <bruno@clisp.org>
46404
46405                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
46406                 use malloc instead. For SunOS 4.
46407
46408         2001-12-11  Bruno Haible  <bruno@clisp.org>
46409
46410                 * setenv.c: Declare alloca.
46411                 (compar_fn_t): New typedef.
46412                 (KNOWN_VALUE, STORE_VALUE): Use it.
46413
46414         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
46415         setenv.h.
46416
46417 2002-12-10  Paul Eggert  <eggert@twinsun.com>
46418
46419         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
46420         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
46421         Choose values that are less likely to collide with system fnmatch
46422         options.
46423         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
46424         defined (e.g., a pure POSIX system).
46425         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
46426         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
46427
46428 2002-12-06  Paul Eggert  <eggert@twinsun.com>
46429
46430         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
46431         a pain in practice to deal with generated m4 files.  This change
46432         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
46433
46434         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
46435         and jm-glibc-io.m4, as they are no longer a special case.
46436         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
46437         kludge and the auto-generation stuff.  Check only whether the
46438         functions are declared, not whether they exist, since older hosts
46439         that don't declare the functions can't use the optimization anyway.
46440
46441 2002-12-06  Jim Meyering  <jim@meyering.net>
46442
46443         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
46444
46445         Merge in changes from libc's misc/error.c, in preparation
46446         for the merge of gnulib's changes back into libc.
46447
46448         * lib/error.c (_): Define only if not already defined.
46449         Move definition to follow all #include directives.
46450         Include unlocked-io.h only if !_LIBC.
46451         [_LIBC]: Include <libio/libioP.h>.
46452         [USE_IN_LIBIO]: Include <libio/iolibio.h>
46453         (fflush): Tweak definition to use INTUSE.
46454         (putc): Define.
46455
46456 2002-12-05  Paul Eggert  <eggert@twinsun.com>
46457
46458         * lib/alloca.c [defined emacs]: Include "lisp.h".
46459         (xalloc_die) [defined emacs]: New macro.
46460         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
46461         [! defined emacs]: Include <xalloc.h>.
46462         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
46463         (pointer): Typedef to POINTER_TYPE *.
46464         (malloc): Remove decl; we now always use xmalloc.
46465         (alloca): Use old-style definition, since Emacs needs this.
46466         Check for arithmetic overflow when computing combined size.
46467
46468 2002-12-04  Paul Eggert  <eggert@twinsun.com>
46469
46470         Do not generate unlocked-io.h automatically, since it's easier to
46471         maintain it by hand.
46472
46473         * lib/unlocked-io.h: New file, from GNU diffutils,
46474         but with proper copyright notice and attribution.
46475         * lib/gen-uio: Remove.
46476         * lib/Makefile.am: Add copyright notice.
46477         (libfetish_a_SOURCES): Add unlocked-io.h.
46478         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
46479         (DISTCLEANFILES, io_functions): Remove macros.
46480         (EXTRA_DIST): Remove gen_uio.
46481         (unlocked-io.h): Remove rule.
46482
46483 2002-12-04  Jim Meyering  <jim@meyering.net>
46484
46485         Reflect the fact that stat.c and lstat.c are no longer generated.
46486         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
46487         (DISTCLEANFILES): Likewise.
46488         (EXTRA_DIST): Likewise.
46489         (all_local): Don't depend on stat.c or lstat.c.
46490         (stat.c, lstat.c): Remove rules.
46491         (EXTRA_DIST): Remove xstat.in.
46492
46493         * lib/xstat.in: Remove file.  Contents moved into stat.c.
46494         * lib/stat.c: New file.  Contents mostly from xstat.in.
46495         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
46496         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
46497
46498         * lib/safe-read.c: Rework so that it may serve to define safe_write,
46499         too.
46500         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
46501
46502 2002-12-03  Jim Meyering  <jim@meyering.net>
46503
46504         * lib/safe-read.c, safe-write.c: Change variable names and comments,
46505         but not semantics, to minimize the differences between these two files.
46506         (safe_read): Change comment to mention SAFE_READ_ERROR.
46507
46508         * lib/safe-read.c (IS_EINTR): Define.
46509         (safe_read): Use IS_EINTR in place of in-function cpp directives.
46510
46511 2002-12-02  Jim Meyering  <jim@meyering.net>
46512
46513         * lib/safe-read.c (EINTR): Define.
46514         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
46515         (INT_MAX): Provide fallback.
46516         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
46517
46518         * lib/safe-read.h (SAFE_READ_ERROR): Define.
46519
46520 2002-12-02  Bruno Haible  <bruno@clisp.org>
46521
46522         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
46523         Define, taken from safe-read.c.
46524         (INT_MAX): Provide fallback.
46525         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
46526         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
46527
46528         * lib/safe-read.c (EINTR): Remove definition.
46529         (safe_read): Don't use EINTR if it is absent.
46530
46531 2002-12-01  Jim Meyering  <jim@meyering.net>
46532
46533         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
46534         zero.
46535         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
46536
46537 2002-11-27  Paul Eggert  <eggert@twinsun.com>
46538
46539         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
46540         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
46541         with `if (! (value < limit)) abort ();', for readability.
46542
46543 2002-11-26  Karl Berry  <karl@gnu.org>
46544
46545         * lib/strdup.c: copy from libc again, with jim's ok.
46546         * lib/.cppi-disable: re-add strdup.c
46547
46548 2002-11-25  Karl Berry  <karl@gnu.org>
46549
46550         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
46551         instead of "strtol.c".
46552
46553 2002-11-25  Karl Berry  <karl@gnu.org>
46554
46555         * config/install-sh: update from automake for variable quoting, $0 in
46556         error msgs, etc.
46557
46558         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
46559         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
46560         entry.
46561
46562 2002-11-25  Jim Meyering  <jim@meyering.net>
46563
46564         * lib/mktime.c: Sync from libc, now that it has the latest fix.
46565
46566 2002-11-24  Karl Berry  <karl@gnu.org>
46567
46568         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
46569         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
46570
46571 2002-11-24  Jim Meyering  <jim@meyering.net>
46572
46573         Update from coreutils:
46574
46575         * lib/mktime.c: Merge in changes from libc.
46576
46577         Avoid a link-time failure on some Linux systems.
46578         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
46579         (otherwise).
46580         (__mon_yday): Declare with the STATIC attribute.
46581         (__mktime_internal): Likewise.
46582         Based on a report from Greg Schafer.
46583
46584 2002-11-23  Jim Meyering  <jim@meyering.net>
46585
46586         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
46587         Use `unsigned', not `int', as type of index.
46588
46589         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
46590
46591         * lib/fsusage.c: Remove unneeded parentheses around operands of
46592         `defined'.
46593
46594 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46595
46596         * lib/quotearg.h: Allow multiple inclusion by surrounding with
46597         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
46598         so that we can be included first.
46599         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
46600         * lib/quotearg.c: Include quotearg.h immediately after config.h.
46601         No need to include stddef.h or sys/types.h any more.
46602         Surround local include files with "", not "<>".
46603         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
46604         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
46605         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
46606         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
46607         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
46608         (ISPRINT): Remove; no longer needed now that we assume C89.
46609
46610         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
46611         Preserve errno.
46612
46613         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
46614         quotearg_char): Use SIZE_MAX rather than
46615         (size_t) -1 when we are talking about "infinity".
46616
46617         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
46618
46619 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46620
46621         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
46622         hint that one should use `if (! x) abort ();' rather than `assert
46623         (x);', and anyway it's one less thing to worry about configuring.
46624         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
46625         hash_rehash, hash_insert): Use abort rather than assert.
46626
46627 2002-11-22  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/safe-read.h: Assume C89. Add comments.
46630         (safe_read): Change return type to size_t.
46631         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
46632         byte counts > SSIZE_MAX correctly.
46633         * lib/safe-write.h: New file.
46634         * lib/safe-write.c: New file.
46635         * lib/full-read.h: New file.
46636         * lib/full-read.c: New file.
46637         * lib/full-write.h: Assume C89. Add comments.
46638         * lib/full-write.c: Include safe-write.h.
46639         (full_write): Rewritten to use safe_write.
46640         Suggested by Jim Meyering and Paul Eggert.
46641
46642 2002-11-21  Jim Meyering  <jim@meyering.net>
46643
46644         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
46645
46646         Merge in changes from the coreutils.
46647
46648         2002-09-25  Paul Eggert  <eggert@twinsun.com>
46649         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
46650         <stdint.h>.
46651         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
46652         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
46653         int.  Work more efficiently if X is the same width as uintmax_t.
46654         Do not compare X to -1, to avoid bogus compiler warning.
46655         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
46656         Don't assume that f_frsize and f_bsize are the same type.
46657
46658         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
46659         warning on FreeBSD.
46660
46661         * lib/makepath.c (make_path): Restore umask *before* creating the final
46662         component.
46663         (make_path): Minor reformatting.
46664
46665         * lib/xmalloc.c: Adjust to work with new autoconf macros,
46666         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
46667         HAVE_MALLOC/HAVE_REALLOC.
46668
46669         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
46670         dummy ones.  At least on GNU/Linux systems, `auto' means something
46671         else.
46672         From Michael Stone.
46673
46674 2002-11-21  Bruno Haible  <bruno@clisp.org>
46675
46676         Remove case insensitive option matching.
46677         * lib/argmatch.h (argcasematch): Remove declaration.
46678         (ARGCASEMATCH): Remove macro.
46679         (__xargmatch_internal): Remove case_sensitive argument.
46680         (XARGMATCH): Update.
46681         (XARGCASEMATCH): Remove macro.
46682         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
46683         case_sensitive argument.
46684         (argcasematch): Remove function.
46685         (__xargmatch_internal): Remove case_sensitive argument.
46686         (main): Use XARGMATCH instead of XARGCASEMATCH.
46687
46688         * lib/xmalloc.c: Change compile-time error message. Add comment about
46689         required autoconf version.
46690
46691 2002-11-20  Paul Eggert  <eggert@twinsun.com>
46692
46693         Merge argmatch cleanups from Bison.  Assume C89.
46694
46695         * lib/argmatch.c: Include config.h here, not in argmatch.h.
46696         Include stdlib.h, for EXIT_FAILURE.
46697         Always include <string.h>, since we assume C89.
46698         (EXIT_FAILURE): Remove pre-C89 bug workaround.
46699         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
46700         Include <stddef.h> instead, since it's all we need for size_t.
46701         (PARAMS): Remove.  All uses removed.
46702         (ARRAY_CARDINALITY): Do not bother to #undef.
46703         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
46704         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46705         Remove unnecessary parentheses.
46706         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46707         Insert necessary parentheses.
46708         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
46709         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
46710
46711 2002-11-19  Bruno Haible  <bruno@clisp.org>
46712
46713         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
46714         * lib/mbswidth.h: Include <stddef.h>, for size_t.
46715
46716         * lib/mbswidth.h (PARAMS): Remove macro.
46717         (mbswidth, mbsnwidth): Use ANSI C function declarations.
46718         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
46719
46720         * lib/gcd.h (PARAMS): Remove macro.
46721         (gcd): Use ANSI C function declarations.
46722         * lib/gcd.c (gcd): Likewise.
46723
46724 2002-11-15  Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/strcspn.c: Include <stddef.h>.
46727         (strcspn): Use ANSI C function declaration. Change return type to
46728         size_t. Use NULL.
46729         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46730         (strpbrk): Use NULL.
46731         * lib/strpbrk.h (PARAMS): Remove macro.
46732         (strpbrk): Use ANSI C function declaration.
46733         * lib/strstr.c: Don't include <sys/types.h>.
46734         * lib/strstr.h (PARAMS): Remove macro.
46735         (strstr): Use ANSI C function declarations.
46736
46737 2002-11-14  Karl Berry  <karl@gnu.org>
46738
46739         * config/mkinstalldirs: `do' on separate line, instead of
46740         `for var; do'.
46741
46742 2002-11-06  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46745         * lib/gcd.c (gcd): Likewise.
46746
46747 2002-11-05  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/gcd.h: New file, from gettext-0.11.5.
46750         * lib/gcd.c: New file, from gettext-0.11.5.
46751
46752 2002-11-05  Bruno Haible  <bruno@clisp.org>
46753
46754         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46755         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46756         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46757         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46758
46759         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46760         <libintl.h>.
46761         * lib/makepath.c: Include gettext.h instead of <locale.h> and
46762         <libintl.h>.
46763
46764         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46765         * lib/human.c: Include gettext.h instead of <libintl.h>.
46766         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46767         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46768         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46769         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46770         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46771         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46772         (textdomain): Remove definition.
46773         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46774
46775         * lib/long-options.c: Remove include of <libintl.h> and definition of
46776         _.
46777         * lib/same.c: Remove include of <libintl.h> and definition of _.
46778
46779 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46780
46781         * lib/config.charset: A few additions for Solaris.
46782
46783 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46784
46785         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46786         * lib/localcharset.c (locale_charset): Declare as extern "C".
46787
46788 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46789
46790         * lib/config.charset: msdos in uk_UA uses CP1125.
46791
46792 2002-11-04  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46795         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46796         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46797         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46798         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46799
46800 2002-11-04  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/localcharset.c (locale_charset): Don't return an empty string.
46803
46804 2002-11-04  Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46807         aliases.
46808
46809 2002-11-04  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/config.charset: Update for newest glibc. Add canonical names
46812         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46813
46814 2002-11-04  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/config.charset: Add support for NetBSD.
46817
46818 2002-11-04  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46821
46822 2002-11-01  Bruno Haible  <bruno@clisp.org>
46823
46824         * configure.in: Add AC_CONFIG_AUX_DIR call.
46825         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46826         test/Makefile.
46827         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46828
46829 2002-09-28  Karl Berry  <karl@gnu.org>
46830
46831         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46832         installed automake until the next release, since changes have been
46833         made.
46834
46835 2002-09-25  Karl Berry  <karl@gnu.org>
46836
46837         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46838         * lib/getopt*: copy from libc/posix.
46839         * lib/gettext.h: copy from gettext.
46840         * lib/.cppi-disable: add strdup.c, gettext.h.
46841
46842 2002-09-25  Karl Berry  <karl@gnu.org>
46843
46844         * config/srclist.txt: enable gettext.h check.
46845         * config/config.{guess,sub}: update from prep.
46846         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46847                 from automake 1.6.3.
46848         See srclist*.
46849
46850 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46851
46852         * regex.c (PATFETCH): Remove the translating fetch.
46853         (PATFETCH_RAW): Rename to PATFETCH.
46854         (set_image_of_range): New fun.
46855         (SET_RANGE_TABLE_WORK_AREA): Use it.
46856         (regex_compile): Don't translate the pattern chars so eagerly.
46857         Only do it when inserting an `exactn' bytecode or when handling
46858         a char-range.
46859         (mutually_exclusive_p): Avoid empty statement.
46860
46861 2002-07-06  Jim Meyering  <meyering@lucent.com>
46862
46863         * m4/README: Don't mention Makefile.am.in.
46864         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46865
46866 2002-07-01  Jim Meyering  <meyering@lucent.com>
46867
46868         * lib/c-stack.c: Include sys/time.h.
46869         From Volker Borchert.
46870
46871 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46872
46873         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46874
46875 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46876
46877         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46878         New macro.  Use it uniformly instead of
46879         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46880         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46881         reported by Vin Shelton.
46882
46883 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46884
46885         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46886         Do not assume SA_SIGINFO behavior.
46887         Bug reported by Jim Meyering on NetBSD 1.5.2.
46888
46889 2002-06-22  Jim Meyering  <meyering@lucent.com>
46890
46891         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46893
46894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46895         now that configure.ac uses AC_GNU_SOURCE.
46896         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46897         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46898
46899         Update to latest tools.  Suggestions from Paul Eggert.
46900         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46901         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46902         * m4/fnmatch.m4: Likewise.
46903         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46904         to AC_HEADER_STDBOOL
46905
46906 2002-06-22  Jim Meyering  <meyering@lucent.com>
46907
46908         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46909         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46910
46911 2002-06-22  Jim Meyering  <meyering@lucent.com>
46912
46913         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46914
46915         * lib/exitfail.c, exitfail.h: Likewise.
46916         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46917
46918         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46919         of fnmatch.h.
46920         (EXTRA_DIST): Add fnmatch_loop.c.
46921         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46922
46923         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46924         * lib/fnmatch.c: Update from diffutils-2.8.2.
46925         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46926         * lib/fnmatch.h: Remove file.
46927
46928 2002-06-21  Jim Meyering  <meyering@lucent.com>
46929
46930         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46931         * m4/mbrtowc.m4: Likewise.
46932
46933         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46934         * m4/mbswidth.m4: Reflect name change:
46935         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46937
46938         * m4/lib-link.m4: Update from gettext-0.11.2.
46939         * m4/gettext.m4: Likewise.
46940
46941         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46942         From Alfred M. Szmidt.
46943
46944 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46945
46946         * lib/file-type.h: Report an error if neither S_ISREG nor
46947         S_IFREG is defined, instead of using a test specific to glibc
46948         2.2.  This should be safe, since POSIX requires S_ISREG and
46949         Unix Version 7 had S_IFREG.  We don't need to check for
46950         <sys/types.h> since we don't use any symbols that it defines.
46951
46952 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46953
46954         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46955         $@-t, so that each temporary file name is unique and valid in the first
46956         8 characters, for operation under DOS.
46957
46958 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46959
46960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46961
46962 2002-06-15  Jim Meyering  <meyering@lucent.com>
46963
46964         Work even with DJGPP 2.03, which lacks support for symlinks.
46965         From Richard Dawe.
46966         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46967         is defined.
46968         * lib/lchown.c (S_ISLNK): Likewise.
46969
46970 2002-06-15  Jim Meyering  <meyering@lucent.com>
46971
46972         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46973         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46974         have been included before this file.
46975
46976 2002-06-14  Jim Meyering  <meyering@lucent.com>
46977
46978         * lib/file-type.h: Use the version from diffutils-2.8.2.
46979         * lib/file-type.c: Likewise.
46980
46981 2002-06-07  Jim Meyering  <meyering@lucent.com>
46982
46983         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46984         They're needed at least for NetBSD 1.5.2.
46985         ($statxfs_includes): Include those same headers.
46986         ($statxfs_includes): Include sys/vfs.h if available.
46987         ($statxfs_includes): Likewise for sys/statvfs.h.
46988         Check for the following members in both structs statfs and statvfs:
46989         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46990
46991 2002-06-01  Jim Meyering  <meyering@lucent.com>
46992
46993         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46994         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46995
46996 2002-05-28  Jim Meyering  <meyering@lucent.com>
46997
46998         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46999         Reported by Volker Borchert.
47000
47001 2002-05-27  Jim Meyering  <meyering@lucent.com>
47002
47003         Fix a problem seen only on nonconforming systems whereby ls.c's
47004         use of localtime, and then of gettimeofday would cause trouble:
47005         the localtime call used to initialize rpl_gettimeofday's save
47006         mechanism would clobber ls's current local time information so
47007         that in any long listing the first file would always be listed
47008         with date 1970-01-01.  Analysis by Volker Borchert.
47009
47010         * lib/gettimeofday.c (localtime): Undefine.
47011         (rpl_localtime): New function.
47012
47013 2002-05-27  Jim Meyering  <meyering@lucent.com>
47014
47015         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
47016         localtime.
47017
47018         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
47019         use the replacement function; it wouldn't resolve at link time.
47020         Reported by Volker Borchert.
47021
47022 2002-05-22  Jim Meyering  <meyering@lucent.com>
47023
47024         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
47025         file-type.h.
47026         * lib/file-type.h: New file.
47027         * lib/file-type.c (file_type): New file/function.  Extracted from
47028         diffutils.
47029
47030 2002-04-30  Jim Meyering  <meyering@lucent.com>
47031
47032         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
47033
47034 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47035
47036         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
47037
47038 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47039
47040         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
47041         Do not check for alloca.h (no longer used) or stdbool.h (was never
47042         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
47043
47044 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47045
47046         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
47047
47048 2002-04-29  Jim Meyering  <meyering@lucent.com>
47049
47050         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
47051         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
47052         Use AC_FUNC_STRNLEN here instead.
47053
47054         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
47055         With autoconf-2.53a, it's part of AC_PROG_CC.
47056
47057 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47058
47059         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
47060         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
47061
47062 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47063
47064         * lib/sig2str.h, lib/sig2str.c: New files.
47065         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
47066
47067 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47068
47069         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
47070         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
47071         of 127, since 64 is the largest conceivable number for ancient
47072         nonstandard hosts.
47073         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
47074
47075 2002-04-28  Jim Meyering  <meyering@lucent.com>
47076
47077         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
47078
47079 2002-04-24  Jim Meyering  <meyering@lucent.com>
47080
47081         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
47082         (jm_PREREQ): Use it.
47083
47084         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
47085         mach/mach.h fcntl.h.
47086         Check for this function: setlocale.
47087
47088 2002-04-24  Jim Meyering  <meyering@lucent.com>
47089
47090         * lib/gettext.h: New file, from Gettext.
47091         * lib/Makefile.am (INCLUDES): Remove -I../intl.
47092         (libfetish_a_SOURCES): Add gettext.h.
47093
47094 2002-04-16  Jim Meyering  <meyering@lucent.com>
47095
47096         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
47097         ut_pid, ut_id, ut_exit.
47098
47099 2002-04-16  Jim Meyering  <meyering@lucent.com>
47100
47101         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
47102         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
47103         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
47104
47105 2002-04-12  Jim Meyering  <meyering@lucent.com>
47106
47107         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
47108         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
47109         existence of the getmntinfo function.  Needed for Darwin 5.3.
47110
47111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
47112         This is necessary at least on Darwin 5.3.
47113
47114         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
47115         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
47116         strnlen.o in the library, and that makes some versions of ranlib
47117         object.
47118
47119 2002-04-12  Jim Meyering  <meyering@lucent.com>
47120
47121         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
47122
47123 2002-04-09  Jim Meyering  <meyering@lucent.com>
47124
47125         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
47126         to be more precise.  Rather than saying we're checking whether the
47127         function `works', say what we're testing.
47128         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
47129         Reported by Bruno Haible.
47130
47131 2002-03-10  Jim Meyering  <meyering@lucent.com>
47132
47133         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
47134         Suggestion from Santiago Vila.
47135
47136 2002-03-08  Jim Meyering  <meyering@lucent.com>
47137
47138         * lib/rename.c: Mention that this wrapper is needed also on
47139         mips-dec-ultrix4.4 systems.
47140
47141 2002-03-02  Jim Meyering  <meyering@lucent.com>
47142
47143         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
47144         not HAVE_CLOCK_SETTIME.
47145
47146 2002-02-27  Paul Eggert  <eggert@twinsun.com>
47147
47148         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
47149         Check for clock_settime.
47150
47151 2002-02-27  Paul Eggert  <eggert@twinsun.com>
47152
47153         * lib/nanosleep.h: Rename to....
47154         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
47155
47156         * lib/gettime.c: New file.
47157         * lib/settime.c: New file.
47158         * lib/stime.c: Remove.
47159
47160         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
47161         timespec.h.  Remove nanosleep.h.
47162
47163 2002-02-25  Paul Eggert  <eggert@twinsun.com>
47164
47165         * m4/acl.m4: New file.
47166         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
47167         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
47168
47169 2002-02-25  Paul Eggert  <eggert@twinsun.com>
47170
47171         * lib/acl.c, lib/acl.h: New files.
47172         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
47173
47174 2002-02-24  Jim Meyering  <meyering@lucent.com>
47175
47176         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
47177         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
47178         cause trouble.  Reported by Nelson Beebe.
47179
47180 2002-02-23  Paul Eggert  <eggert@twinsun.com>
47181
47182         * lib/path-concat.c (xpath_concat): Reorder code to pacify
47183         compilers that don't know that xalloc_die never returns.
47184
47185 2002-02-20  Jim Meyering  <meyering@lucent.com>
47186
47187         * lib/getdate.c: Regenerate using bison-1.33.
47188
47189 2002-02-17  Jim Meyering  <meyering@lucent.com>
47190
47191         * config/config.guess (main): Don't use `head -1'; it's no longer
47192         portable. Use `sed 1q' instead.
47193
47194 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
47195
47196         * m4/codeset.m4: Upgrade to gettext-0.11.
47197         * m4/gettext.m4: Upgrade to gettext-0.11.
47198         * m4/glibc21.m4: Upgrade to gettext-0.11.
47199         * m4/iconv.m4: Upgrade to gettext-0.11.
47200         * m4/isc-posix.m4: Upgrade to gettext-0.11.
47201         * m4/lcmessage.m4: Upgrade to gettext-0.11.
47202         * m4/lib-ld.m4: New file, from gettext-0.11.
47203         * m4/lib-link.m4: New file, from gettext-0.11.
47204         * m4/lib-prefix.m4: New file, from gettext-0.11.
47205         * m4/progtest.m4: Upgrade to gettext-0.11.
47206
47207 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47208
47209         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
47210         (jm_PREREQ): Use it.
47211
47212 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47213
47214         * lib/posixver.c, lib/posixver.h: New files.
47215         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47216
47217 2002-02-02  Paul Eggert  <eggert@twinsun.com>
47218             Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
47221         (fwrite_success_callback): New declaration.
47222         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
47223         print_unicode_char. Call failure callback instead of error.
47224         (fwrite_success_callback): New function.
47225         (exit_failure_callback): New function.
47226         (fallback_failure_callback): New function.
47227         (print_unicode_char): Call unicode_to_mb.
47228
47229 2002-01-26  Jim Meyering  <meyering@lucent.com>
47230
47231         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
47232         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
47233
47234 2002-01-26  Jim Meyering  <meyering@lucent.com>
47235
47236         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
47237
47238 2002-01-22  Paul Eggert  <eggert@twinsun.com>
47239
47240         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
47241
47242 2002-01-22  Jim Meyering  <meyering@lucent.com>
47243
47244         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
47245         Otherwise, some versions of automake would omit the rule that makes
47246         Makefile from Makefile.in.
47247
47248 2002-01-21  Paul Eggert  <eggert@twinsun.com>
47249
47250         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
47251         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47252         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
47253         (memcoll): Set errno to zero if there is no error.
47254
47255         * lib/quotearg.c (quotearg_buffer_restyled):
47256         Fix bug with quoting buffers containing NUL when backslashing escapes.
47257         This bug was exposed by the other changes in this patch.
47258         (quotearg_n_options): New arg ARGSIZE.
47259         All callers changed.
47260         (quoting_options_from_style): New function.
47261         (quotearg_n_style): Use it.
47262         (quotearg_n_style_mem): New function.
47263
47264         * lib/quotearg.h (quotearg_n_style_mem): New function.
47265
47266 2002-01-19  Jim Meyering  <meyering@lucent.com>
47267
47268         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
47269         Remove useless quotes: DF_PROG="df".
47270         * m4/strnlen.m4: New file.
47271
47272 2002-01-16  Paul Eggert  <eggert@twinsun.com>
47273
47274         * lib/backupfile.c (ISDIGIT): Comment fix.
47275         * lib/getdate.y (ISDIGIT): Likewise.
47276         * lib/posixtm.c (ISDIGIT, year): Likewise.
47277         * lib/strverscmp.c (ISDIGIT): Likewise.
47278         * lib/userspec.c (ISDIGIT): Likewise.
47279
47280 2002-01-16  Jim Meyering  <meyering@lucent.com>
47281
47282         * lib/getdate.y: Add three semicolons, each just before a closing
47283         brace. Bison (as of version 1.31) no longer papers over that mistake.
47284
47285 2002-01-05  Jim Meyering  <meyering@lucent.com>
47286
47287         * lib/version-etc.c (version_etc_copyright): Update copyright year.
47288
47289 2001-12-19  Paul Eggert  <eggert@twinsun.com>
47290
47291         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
47292         not silently exit merely because the output buffer happens to
47293         have nothing pending.
47294
47295 2001-12-18  Paul Eggert  <eggert@twinsun.com>
47296
47297         See the big note in ../ChangeLog.
47298         * lib/human.c (suffixes): Prefer K to k for 1024.
47299         (generate_suffix_backwards): New function.
47300         (human_readable_inexact): Use it.
47301         * lib/xstrtol.c (__xstrtol): If there is no number but there
47302         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
47303         Accept 'K' as well as 'k'.
47304
47305 2001-12-15  Jim Meyering  <meyering@lucent.com>
47306
47307         * lib/regex.h (__restrict_arr): Update from libc.
47308
47309         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
47310         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
47311         (STREQ): Define.
47312
47313 2001-12-14  Jim Meyering  <meyering@lucent.com>
47314
47315         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
47316         Suggestion from Bruno Haible.
47317
47318 2001-12-10  Jim Meyering  <meyering@lucent.com>
47319
47320         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
47321         xrealloc, Instead, include "xalloc.h".
47322         (initbuffer): Don't cast xmalloc return value to char*.
47323         (readline): Reword comment.
47324         Don't cast xrealloc return value to char*
47325         Return NULL, not 0.
47326
47327 2001-12-09  Jim Meyering  <meyering@lucent.com>
47328
47329         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
47330         about `signed and unsigned type in conditional expression'.
47331         * lib/posixtm.c (posix_time_parse): Likewise.
47332
47333         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
47334
47335         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
47336         to avoid a pedantic warning.
47337
47338         * lib/getstr.c: Don't include assert.h.
47339         (getstr): Remove warning-evoking assertions.
47340         Return -1 if offset parameter is out of bounds.
47341         Change the type of a local from int to size_t.
47342
47343         * lib/strftime.c (my_strftime_localtime_r): Include this function
47344         definition in the `#if ! HAVE_TM_GMTOFF' block.
47345
47346         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
47347         Include xalloc.h instead.
47348
47349 2001-12-02  Jim Meyering  <meyering@lucent.com>
47350
47351         * lib/tempname.c: Don't declare getenv, thus reverting the change of
47352         2001-11-18.  It's no longer necessary, now that stdlib.h is always
47353         included.
47354
47355         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
47356         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
47357
47358 2001-11-30  Akim Demaille  <akim@epita.fr>
47359
47360         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
47361         before being defined.
47362
47363 2001-11-27  Paul Eggert  <eggert@twinsun.com>
47364
47365         * lib/quotearg.h (quotearg_n, quotearg_n_style):
47366         First arg is int, not unsigned.
47367         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
47368         (SIZE_MAX, UINT_MAX): New macros.
47369         (quotearg_n_options): Abort if N is negative.
47370         Avoid overflow check on hosts where size_t is 64 bits and int
47371         is 32 bits, as overflow is impossible there.
47372         Fix off-by-one typo that caused unnecessary reallocation.
47373
47374 2001-11-27  Jim Meyering  <meyering@lucent.com>
47375
47376         * lib/tempname.c: Merge with version from libc.
47377         * lib/regex.c: Likewise.
47378
47379         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
47380         systems for which STDC_HEADERS is 0, it was not included, resulting in
47381         a warning about an integer-to-pointer conversion problem with getenv.
47382         Reported by Volker Borchert.
47383
47384 2001-11-26  Jim Meyering  <meyering@lucent.com>
47385
47386         * lib/gtod.h: Remove file.
47387         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
47388         * lib/gettimeofday.c: Don't include gtod.h.
47389         (GTOD_init): Remove function.
47390         (rpl_gettimeofday): Do its job here instead, rather than aborting.
47391         Suggestion from Volker Borchert.
47392
47393 2001-11-23  Jim Meyering  <meyering@lucent.com>
47394
47395         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
47396         it.
47397         * lib/hash.c (struct hash_table): Define it here instead.
47398
47399 2001-11-22  Jim Meyering  <meyering@lucent.com>
47400
47401         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
47402
47403 2001-11-20  Jim Meyering  <meyering@lucent.com>
47404
47405         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
47406         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
47407
47408 2001-11-19  Jim Meyering  <meyering@lucent.com>
47409
47410         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
47411         directory.  Use "conftestXXXXXX" as the template.
47412         Suggestion from Paul Eggert.
47413
47414         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
47415         immediately, so the test doesn't mistakenly hit the max-open-files
47416         limit.
47417
47418 2001-11-18  Paul Eggert  <eggert@twinsun.com>
47419
47420         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
47421         (TEMPORARIES): New macro.
47422         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
47423         removes an artificial limitation (e.g. HP-UX 10.20, where
47424         TMP_MAX is 17576).
47425
47426 2001-11-18  Jim Meyering  <meyering@lucent.com>
47427
47428         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
47429
47430 2001-11-18  Jim Meyering  <meyering@lucent.com>
47431
47432         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
47433         on SunOS 4.
47434
47435         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
47436         files will be created before anything else.
47437
47438 2001-11-17  Paul Eggert  <eggert@twinsun.com>
47439
47440         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
47441         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
47442
47443 2001-11-17  Jim Meyering  <meyering@lucent.com>
47444
47445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
47446         Prompted by a report from Bob Proulx.
47447
47448         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
47449         Instead, require UTILS_FUNC_MKSTEMP.
47450
47451 2001-11-17  Jim Meyering  <meyering@lucent.com>
47452
47453         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
47454         Now, that's done as part of AC_FUNC_STRTOD.
47455
47456 2001-11-17  Jim Meyering  <meyering@lucent.com>
47457
47458         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
47459         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
47460         rather than group writable.  Patch by Juan F. Codagnone.
47461
47462         * lib/readtokens.c: Remove explicit declarations of xmalloc and
47463         xrealloc, Instead, include "xalloc.h".
47464
47465         * lib/mountlist.c: Include unlocked-io.h after all system headers.
47466         Remove explicit declarations of xmalloc, xrealloc,
47467         and xstrdup.  Instead, include "xalloc.h".
47468
47469         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
47470         unlocked-io.h.
47471         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
47472         Likewise.
47473         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
47474
47475         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
47476         Reported by Padraig Brady.
47477
47478         * lib/mkstemp.c: #undef mkstemp.
47479         Include config.h.
47480         (rpl_mkstemp): Rename from mkstemp.
47481         Protoize.
47482
47483 2001-11-16  Jim Meyering  <meyering@lucent.com>
47484
47485         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
47486         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
47487         determine the amount of total physical memory, use pstat_getstatic.
47488         HPUX-11 doesn't define _SC_PHYS_PAGES.
47489         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
47490         If sysconf couldn't be used to determine the amount of available
47491         physical memory, use both pstat_getstatic and pstat_getdynamic.
47492         Based on a patch from Bob Proulx.
47493
47494 2001-11-10  Jim Meyering  <meyering@lucent.com>
47495
47496         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
47497         (jm_PREREQ): Use it.
47498
47499 2001-11-09  Jim Meyering  <meyering@lucent.com>
47500
47501         * m4/jm-macros.m4: Require autoconf-2.52f.
47502         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
47503         Use these AC_-prefixed names, not the AM_-prefixed ones.
47504
47505         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
47506
47507 2001-11-05  Jim Meyering  <meyering@lucent.com>
47508
47509         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
47510
47511 2001-11-04  Jim Meyering  <meyering@lucent.com>
47512
47513         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
47514         $DEFS.
47515
47516 2001-11-03  Jim Meyering  <meyering@lucent.com>
47517
47518         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
47519         of AC_DEFUN.
47520
47521         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
47522         know the name of the variable in the macro definition.
47523
47524 2001-11-03  Jim Meyering  <meyering@lucent.com>
47525
47526         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
47527         in argmatch_to_argument call.
47528
47529         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
47530         argument.
47531
47532         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
47533         e.g., a fault due to an attempt to free a NULL pointer.
47534
47535 2001-11-01  Jim Meyering  <meyering@lucent.com>
47536
47537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
47538         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
47539
47540 2001-11-01  Jim Meyering  <meyering@lucent.com>
47541
47542         * lib/dirfd.c, lib/dirfd.h: New files.
47543         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
47544
47545         * lib/hash.c (hash_print) [TESTING]: Clean up.
47546
47547 2001-10-22  Paul Eggert  <eggert@twinsun.com>
47548
47549         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
47550         to avoid a warning if -Wall.
47551
47552 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
47553
47554         * README: New file
47555         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
47556         (per RMS's instructions, this is now the canonical source)
47557         * lgpl/, gpl/: New directories.
47558
47559 2001-10-21  Paul Eggert  <eggert@twinsun.com>
47560
47561         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
47562
47563 2001-10-21  Jim Meyering  <meyering@lucent.com>
47564
47565         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
47566         this code would end up calling gettext even in packages built
47567         with --disable-nls.
47568         * lib/getopt.c (_): Likewise.
47569         * lib/regex.c (_): Likewise.
47570
47571 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47572
47573         * m4/error.m4 (jm_PREREQ_ERROR):
47574         Do not invoke AC_CHECK_FUNCS with strerror_r, as
47575         AC_FUNC_STRERROR_R does that.
47576         Check for strerror declaration.
47577
47578         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
47579         are supposed to have them these days.
47580         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
47581         Merge changes from latest Autoconf CVS.
47582         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
47583         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
47584         POSIX decided to standardize on the int flavor of strerror_r.
47585
47586 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47587
47588         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
47589         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
47590         Use strerror_r that is only a macro, even if it is not a function.
47591         (strerror): Check for HAVE_DECL_STRERROR before declaring.
47592         (private_strerror): Use prototypes, not old-style function definition.
47593         (print_errno_message): New function.
47594         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
47595         char*-flavored one.
47596         (error_tail, error, error_at_line): Use it.
47597
47598 2001-10-11  Jim Meyering  <meyering@lucent.com>
47599
47600         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
47601         and quote_n (1, ... to avoid clobbering a buffer.
47602
47603 2001-10-05  Jim Meyering  <meyering@lucent.com>
47604
47605         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
47606         hash-pjw.h.
47607         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
47608         * lib/hash-pjw.h: New file.
47609
47610 2001-09-30  Jim Meyering  <meyering@lucent.com>
47611
47612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
47613         `struct fsstat' has the `f_fstypename' member.
47614         Use that to define FS_TYPE, which is now used to make
47615         the getfsstat link test tighter.
47616
47617 2001-09-30  Jim Meyering  <meyering@lucent.com>
47618
47619         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
47620         Include <sys/ucred.h>, for Apple Darwin.
47621         Include sys/mount.h and sys/fs_types.h only if available.
47622         (FS_TYPE): Define.
47623         (read_filesystem_list): Use FS_TYPE.
47624
47625 2001-09-29  Paul Eggert  <eggert@twinsun.com>
47626
47627         * lib/exclude.c (excluded_filename): 0 -> false, since it's
47628         a boolean context.
47629
47630 2001-09-29  Jim Meyering  <meyering@lucent.com>
47631
47632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47633         [one-argument getmntent function]): Include stdio.h before mntent.h.
47634         SunOS 4.1.x needs it for the declaration of `FILE'.
47635         Patch by Volker Borchert.
47636
47637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47638         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
47639         sys/fs_types.h, and make the link-test for getfsstat guard #include
47640         directives with appropriate #if HAVE_*_H tests so that we can
47641         detect getfsstat on Apple Darwin1.3.7 systems.
47642         Reported by Nelson Beebe.
47643         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
47644
47645 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47646
47647         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47648         #defines strtoimax.  Also treat the other strto* functions
47649         like strtoimax.
47650
47651         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47652         Check for strtoul and strtoumax,
47653         as those declarations are made even in the signed case.
47654         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
47655         Likewise, for strtol and strtoimax.
47656
47657 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47658
47659         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47660         #defines strtoimax.  Also treat the other strto* functions
47661         like strtoimax.
47662
47663         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
47664         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
47665         (strtoimax, strtoumax): Do not declare if already defined as a macro.
47666
47667 2001-09-26  Jim Meyering  <meyering@lucent.com>
47668
47669         Most macros in unlocked-io.h had the wrong number of arguments.
47670         * lib/gen-uio: New script.
47671         (USE_UNLOCKED_IO): Define to 1 if not already defined.
47672         * lib/unlocked-io.hin: Remove file.
47673         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
47674         rather than trying to embed it here.
47675         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
47676         Reported by Padraig Brady.
47677
47678 2001-09-25  Volker Borchert  <bt@teknon.de>
47679
47680         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
47681         `result'.
47682
47683 2001-09-24  Jim Meyering  <meyering@lucent.com>
47684
47685         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
47686
47687 2001-09-23  Jim Meyering  <meyering@lucent.com>
47688
47689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
47690         instead of the mere test for existence of mntent.h.  The latter
47691         would get a false-positive on AIX 3.4 systems.
47692         In the outer getmntent if-block, don't die if neither of the getmntent
47693         tests succeeds.  Instead, just fall through and continue with the
47694         remaining tests.
47695
47696 2001-09-23  Jim Meyering  <meyering@lucent.com>
47697
47698         * lib/mountlist.c: Remove useless parentheses in #if directives.
47699         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
47700         the deprecated MOUNTED symbol is no longer defined in mntent.h.
47701
47702 2001-09-22  Jim Meyering  <meyering@lucent.com>
47703
47704         * m4/gettext.m4: New file.  From gettext.
47705         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
47706         * m4/progtest.m4: Likewise
47707         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
47708         * m4/glibc21.m4: Likewise.
47709
47710         * m4/libintl.m4: Remove.  No longer used.
47711
47712 2001-09-22  Jim Meyering  <meyering@lucent.com>
47713
47714         * lib/localcharset.c: Update from latest gettext.
47715         * lib/config.charset: Likewise.
47716
47717 2001-09-20  Jim Meyering  <meyering@lucent.com>
47718
47719         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
47720         strtoimax.
47721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47722         strtoumax.
47723
47724 2001-09-20  Jim Meyering  <meyering@lucent.com>
47725
47726         * lib/xstrtol.c (strtoimax): Guard declaration with
47727         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47728         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47729         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47730         (strtoumax): Likewise, for completeness (it wasn't necessary).
47731
47732 2001-09-17  Paul Eggert  <eggert@twinsun.com>
47733
47734         * lib/strtoimax.c (HAVE_LONG_LONG):
47735         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47736         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47737         to work around bug in IBM C compiler.
47738
47739 2001-09-17  Jim Meyering  <meyering@lucent.com>
47740
47741         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47742         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47743         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47744         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47745         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47746         whenever the right hand side need not be expanded by the shell.
47747
47748 2001-09-16  Paul Eggert  <eggert@twinsun.com>
47749
47750         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47751         library.  It's not correct, as some older glibcs are buggy.
47752         fnmatch wasn't fixed until glibc 2.2.
47753
47754         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47755         special shell magic here.
47756
47757 2001-09-16  Jim Meyering  <meyering@lucent.com>
47758
47759         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47760         * m4/jm-macros.m4: Require it.
47761
47762 2001-09-16  Jim Meyering  <meyering@lucent.com>
47763
47764         * lib/mkdir.c: New file.
47765
47766 2001-09-15  Jim Meyering  <meyering@lucent.com>
47767
47768         * m4/jm-macros.m4: Check for help2man.
47769
47770 2001-09-11  Jim Meyering  <meyering@lucent.com>
47771
47772         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47773         The body, by Paul Eggert, was moved here from configure.in.
47774         * m4/jm-macros.m4: Require UTILS_HOST_OS.
47775
47776 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47777
47778         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47779         (jm_PREREQ): Use it.
47780
47781 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47782
47783         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47784         Use ssize_t, not int, to store result of readlink.
47785         Check for ssize_t overflow as well as size_t overflow,
47786         as POSIX says the result of readlink is implementation-defined
47787         when ssize_t overflows.
47788         Remove unnecessary cast to char*.
47789         Use free+malloc instead of realloc, as the storage doesn't need
47790         to be preserved and it's clearer and can be more efficient that way.
47791         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47792         * lib/xreadlink.h (xreadlink): Update prototype.
47793
47794 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47795
47796         * lib/xgetcwd.c: Revert some of the previous change; intead,
47797         fix the HAVE_GETCWD_NULL code to behave more like the
47798         !HAVE_GETCWD_NULL code used to.
47799
47800         Include "xalloc.h".
47801         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47802         invoke xalloc_die.
47803
47804 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47805
47806         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47807         sys/param.h, as pathmax.h includes them.
47808
47809 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47810
47811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47812         (jm_PREREQ_XGETCWD): New macro.
47813
47814         * m4/getcwd.m4: New file.
47815
47816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47817
47818         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47819         like the HAVE_GETCWD_NULL code.
47820         Include pathmax.h if not HAVE_GETCWD.
47821         Do not include xalloc.h.
47822         (INITIAL_BUFFER_SIZE): New symbol.
47823         Do not use xmalloc / xrealloc, since the caller is responsible for
47824         handling errors.  Preserve errno around `free' during failure.
47825         Do not overrun buffer when using getwd.
47826
47827 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47828
47829         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47830         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47831         getcwd (NULL, 0).
47832
47833 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47834
47835         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47836         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47837         spotted by Jim Meyering.
47838
47839 2001-09-03  Jim Meyering  <meyering@lucent.com>
47840
47841         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47842         failure.
47843
47844 2001-09-02  Jim Meyering  <meyering@lucent.com>
47845
47846         * lib/error.c: Update from GNU libc.
47847
47848 2001-09-01  Jim Meyering  <meyering@lucent.com>
47849
47850         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47851         Used by df.
47852
47853 2001-09-01  Jim Meyering  <meyering@lucent.com>
47854
47855         * lib/xreadlink.c: New file.
47856         * lib/xreadlink.h: New file.
47857         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47858         xreadlink.h.
47859
47860         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47861         doesn't conflict with sparc Solaris 7's definition in
47862         /usr/include/sys/int_types.h.
47863
47864         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47865         files.
47866         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47867         and strncasecmp as r-values.  Unixware didn't have declarations.
47868
47869 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47870
47871         * lib/xstrtol.h: Add copyright notice.
47872         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47873         LONGINT_INVALID_SUFFIX_CHAR.
47874
47875 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47876
47877         * lib/xstrtol.c (strtoimax): New decl.
47878
47879 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47880
47881         * lib/xgetcwd.c: Don't include pathmax.h.
47882         Include stdlib.h and unistd.h if available.
47883         Include xalloc.h.
47884         (xmalloc, xstrdup, free): Remove decls.
47885         (xgetcwd): Don't assume sizes fit in unsigned.
47886         Check for overflow when computing sizes.
47887         Simplify reallocation code.
47888
47889 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47890
47891         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47892         a directory's st_size can have an arbitrary value, so the old
47893         usage could waste an arbitrary amount of memory.  All uses
47894         changed.
47895         * lib/savedir.h: Update prototype.
47896
47897 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47898
47899         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47900
47901         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47902         old strtoimax.c.
47903
47904         Also, make the following further changes to make this file's
47905         configuration more similar to that of strtol.c:
47906         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47907         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47908         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47909         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47910         changed to signed values.
47911
47912         And make the following changes as well:
47913         Fix copyright notice, as 1999 was missing.
47914         (verify): New macro.
47915         (strtoimax): Check sizes at compile-time, not run-time.
47916         Prefer strtol to strtoll if both work.
47917         (main): Remove; it was not that useful and was a pain to maintain.
47918
47919         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47920
47921 2001-08-31  Jim Meyering  <meyering@lucent.com>
47922
47923         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47924         Use an initial, malloc'd, buffer of length 128 rather than
47925         a statically allocated one of length 1024.
47926
47927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47928
47929         Simplify code, partly by assuming autoconf 2.52 semantics.
47930
47931         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47932
47933         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47934         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47935         All uses removed.
47936         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47937         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47938         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47939         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47940         jm_AC_HEADER_INTTYPES_H.
47941         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47942
47943         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47944
47945         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47946         Quote first arg of AC_DEFUN.
47947         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47948         since they are needed to parse the include file even if we need
47949         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47951         but with opposite signedness.
47952
47953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47954
47955         Merge 'exclude' changes from tar 1.13.22.
47956         This fixes one or two unlikely storage allocation overflow bugs,
47957         but doesn't change user-visible behavior otherwise.
47958
47959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47960
47961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47962         (jm_PREREQ_EXCLUDE): New macro.
47963
47964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47965
47966         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47967         tm to be declared.
47968
47969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47970
47971         * lib/hash.c: Remove '2001' from copyright notice.
47972
47973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47974
47975         * lib/full-write.h: New file.
47976         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47977         * lib/full-write.c: Correct credits, as cccp.c no longer
47978         exists and anyway it was so heavily changed from the old cccp
47979         code as to be unrecognizable.  Include full-write.h.
47980         (full_write) Return size_t, with short writes meaning failure.
47981         All callers changed.  This fixes a bug with large buffers
47982         on 64-bit hosts.
47983         * lib/utime.c: Include full-write.h.
47984
47985 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47986
47987         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47988         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47989         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47990         Include if available.
47991         (<xalloc.h>): Include
47992         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47993         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47994         collide with FNM macros.
47995         (struct patopts): New struct.
47996         (struct exclude): Use it, as exclude patterns now come with options.
47997         (new_exclude): Support above changes.
47998         (new_exclude, add_exclude_file):
47999         Initial size must now be a power of two to simplify overflow checking.
48000         (free_exclude, fnmatch_no_wildcards): New function.
48001         (excluded_filename): No longer requires options arg, as the options
48002         are determined by add_exclude.  Now returns bool, not int.
48003         (excluded_filename, add_exclude):
48004         Add support for the fancy new exclusion options.
48005         (add_exclude, add_exclude_file): Now takes int options arg.
48006         Check for arithmetic overflow when computing sizes.
48007         (add_exclude_file): xrealloc might modify errno, so don't
48008         realloc until after errno might be used.
48009
48010         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
48011         New macros.
48012         (free_exclude): New decl.
48013         (add_exclude, add_exclude_file): Now takes int options arg.
48014         (excluded_filename): No longer requires options arg, as the options
48015         are determined by add_exclude.  Now returns bool, not int.
48016
48017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48018
48019         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
48020
48021 2001-08-27  Jim Meyering  <meyering@lucent.com>
48022
48023         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
48024
48025         * lib/version-etc.c (N_): Remove definition.
48026         Revert most of last change.
48027         Instead, simply don't mark the `Copyright...' string for translation.
48028         Based on advice from Paul Eggert.
48029
48030         * lib/strtoxmax.c: Tweak comment.
48031
48032 2001-08-26  Jim Meyering  <meyering@lucent.com>
48033
48034         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
48035
48036         * m4/xstrtoimax.m4: New file.
48037         * m4/xstrtoumax.m4: Add comments explaining why we
48038         AC_REPLACE_FUNCS(strtol).
48039
48040 2001-08-26  Jim Meyering  <meyering@lucent.com>
48041
48042         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
48043         of copyright with `%s' so translators don't get an untranslated
48044         message in 2002.
48045         (COPYRIGHT_YEAR): Define.
48046         (version_etc): Use fprintf rather than fputs.
48047         Suggestion from Ulrich Drepper.
48048
48049         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
48050
48051         * lib/strtoll.c: New file, from GNU libc.
48052         * lib/xstrtoimax.c: New file.
48053
48054         * lib/xstrtol.h: Add xstrtoimax.
48055         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
48056         * lib/strtoimax.c: New file.  Likewise, but first define
48057         STRTOUXMAX_SIGNED.
48058
48059         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
48060         ...
48061         * lib/strtoxmax.c: ... then renamed to this.
48062
48063 2001-08-18  Paul Eggert  <eggert@twinsun.com>
48064
48065         * m4/inttypes.m4: Add AC_PREREQ(2.13).
48066         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
48067         (jm_AC_TYPE_INTMAX_T): New macro.
48068         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
48069
48070         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
48071
48072         * m4/longlong.m4: Renamed from ulonglong.m4.
48073         * m4/inttypes.m4: Renamed from inttypes_h.m4.
48074         * m4/uintmax_t.m4: Removed.
48075
48076 2001-08-13  Paul Eggert  <eggert@twinsun.com>
48077
48078         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
48079         Port to Solaris 8, where 'sed' requires a space after the 'r'
48080         command, and where sh dislikes "$/".  Clean up the spacing a bit.
48081         Redirect output to $tmp just once.
48082
48083 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
48084
48085         * lib/addext.c (<errno.h>): Include.
48086         (errno): Declare if not defined.
48087         (addext): Work correctly when pathconf returns -1 and leaves
48088         errno alone because there is no limit.  Also, work even if
48089         pathconf returns a value greater than SIZE_MAX.
48090
48091 2001-08-12  Jim Meyering  <meyering@lucent.com>
48092
48093         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
48094         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
48095         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
48096         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
48097         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
48098         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
48099         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
48100         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
48101         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
48102         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
48103         utime.m4, utimes.m4, xstrtoumax.m4:
48104         Quote the first argument in each use of AC_DEFUN.
48105
48106 2001-08-12  Jim Meyering  <meyering@lucent.com>
48107
48108         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
48109         Simply `return getcwd (NULL, 0);'.
48110         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
48111         Use 1300 as initial value for length, not PATH_MAX.
48112
48113         * lib/pathmax.h: Clean up cpp syntax.
48114
48115 2001-08-12  Jim Meyering  <meyering@lucent.com>
48116
48117         * lib/gettimeofday.c: New file.
48118         * lib/gtod.h: New file.
48119         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
48120
48121 2001-08-05  Jim Meyering  <meyering@lucent.com>
48122
48123         * m4/jm-macros.m4: Require autoconf-2.52.
48124
48125 2001-08-04  Jim Meyering  <meyering@lucent.com>
48126
48127         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
48128         stmt, to get in sync with glibc.
48129
48130 2001-08-03  Paul Eggert  <eggert@twinsun.com>
48131
48132         The following changes are from gettext 0.10.39 as maintained by
48133         Bruno Haible.
48134
48135         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
48136         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
48137         with inverted sense.  All uses changed.
48138
48139         * lib/mbswidth.c: Don't include <limits.h>.
48140         Include <stdlib.h> and <string.h> unconditionally.
48141         (iswcntrl, mbsinit, ISCNTRL): New macros.
48142         (mbsnwidth): Use K&R style function declarations.
48143         Don't bother checking for MB_LEN_MAX == 1, since the compiler
48144         can optimize it when MB_CUR_MAX == 1.
48145         The width of control characters is zero, not 1.
48146
48147 2001-08-03  Paul Eggert  <eggert@twinsun.com>
48148
48149         The following changes are from gettext 0.10.39 as maintained by
48150         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
48151
48152         * m4/codeset.m4: Upgrade to serial AM1.
48153         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
48154         all uses changed.  Quote first arg of AC_DEFUN.
48155         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
48156
48157         * m4/iconv.m4: Upgrade to serial AM2.
48158         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
48159         Add --with-libconv-prefix.
48160         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
48161         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
48162         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
48163         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
48164         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
48165
48166         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
48167         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
48168         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
48169         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
48170         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
48171         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
48172         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48173         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
48174         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
48175
48176         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
48177         string.h any more.
48178
48179         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
48180         not the default value.
48181
48182         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
48183         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
48184         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
48185         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
48186         Also check for iswcntrl, used for wcwidth fallback.
48187         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
48188         to Autoconf 2.13.
48189
48190 2001-08-03  Jim Meyering  <meyering@lucent.com>
48191
48192         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
48193         as it was in the original.  Reported by Paul Eggert.
48194
48195 2001-07-16  Jim Meyering  <meyering@lucent.com>
48196
48197         * m4/gettimeofday.m4: New file.
48198         Prompted by a report from Bernhard Baehr.
48199
48200 2001-07-15  Jim Meyering  <meyering@lucent.com>
48201
48202         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
48203         stuff. Now it's in ../Makefile.cfg.
48204
48205 2001-07-15  Jim Meyering  <meyering@lucent.com>
48206
48207         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
48208         (BUILT_SOURCES): Add unlocked-io.h.
48209         (io_functions): Define.
48210         (unlocked-io.h): New rule.
48211         (DISTCLEANFILES): Add unlocked-io.h.
48212         (all-local): Depend on unlocked-io.h, to ensure it is created.
48213
48214         * lib/unlocked-io.hin: New file
48215
48216         * lib/regex.c: Update from glibc.
48217
48218 2001-07-05  Jim Meyering  <meyering@lucent.com>
48219
48220         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
48221         recommendation.
48222         (libfetish_a_SOURCES): Put all .h files here instead.
48223         Remove a thus-exposed (better checks in automake) duplicate and
48224         two unnecessary .h files.
48225
48226 2001-07-04  Jim Meyering  <meyering@lucent.com>
48227
48228         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
48229         that generates jm-glibc-io.m4 so that it doesn't trigger any make
48230         distcheck failure.
48231
48232 2001-07-02  Jim Meyering  <meyering@lucent.com>
48233
48234         The following changes were prompted by suggestions from Bruno Haible.
48235
48236         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
48237         is now generated.
48238         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
48239         definition of EXTRA_DIST.
48240         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
48241         ensure that the generated file is created/updated whenever the list
48242         of $(unlocked_functions) is changed.
48243         (jm-glibc-io.m4): New rule.
48244         (unlocked-io.h): New rule -- currently unused.
48245
48246 2001-06-24  Jim Meyering  <meyering@lucent.com>
48247
48248         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
48249         unmatched right bracket, rather than kludging it with an extra,
48250         falsely-matching quote in a comment.  Patch by Akim Demaille.
48251
48252 2001-06-11  Jim Meyering  <meyering@lucent.com>
48253
48254         * lib/regex.c: Update from GNU libc.
48255
48256 2001-05-27  Jim Meyering  <meyering@lucent.com>
48257
48258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
48259         Check for ut_type in struct utmp.
48260
48261 2001-05-27  Jim Meyering  <meyering@lucent.com>
48262
48263         * lib/readutmp.h (UT_TYPE): Define.
48264
48265 2001-05-24  Jim Meyering  <meyering@lucent.com>
48266
48267         * lib/argmatch.c: Include "quote.h".
48268         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
48269         quote function.  Reported by Göran Uddeborg.
48270
48271 2001-05-22  Jim Meyering  <meyering@lucent.com>
48272
48273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
48274         now that we use the package-supplied version unconditionally.
48275         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
48276
48277 2001-05-21  Jim Meyering  <meyering@lucent.com>
48278
48279         * m4/regex.m4: Change a couple backticks to single quotes to avoid
48280         shell syntax errors.
48281
48282 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48283
48284         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
48285
48286 2001-05-20  Paul Eggert  <eggert@twinsun.com>
48287
48288         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
48289         Don't bother to check library strftime, since
48290         we'll be using our own my_strftime function anyway.
48291         Define my_strftime instead of strftime.
48292
48293 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
48294
48295         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
48296         which is not yet declared.
48297
48298 2001-05-15  Jim Meyering  <meyering@lucent.com>
48299
48300         * m4/regex.m4: Use proper quoting so brackets appear in the test
48301         program.
48302         Reported by, and with help from, Bruno Haible.
48303
48304 2001-05-13  Jim Meyering  <meyering@lucent.com>
48305
48306         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
48307         undefined.
48308
48309 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48310
48311         dirname code cleanup.  base_name now behaves more compatibly
48312         with POSIX basename when given file names that have trailing
48313         slashes, and similarly for dir_name.  Add new primitives
48314         base_len and dir_len.  Put the directory-name-related decls
48315         into dirname.h.
48316
48317         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
48318         * lib/backupfile.c (base_name): Likewise.
48319         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
48320         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
48321         * lib/makepath.c (strip_trailing_slashes): Likewise.
48322         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
48323         ISSLASH): Likewise.
48324         * lib/rename.c (strip_trailing_slashes): Likewise.
48325         * lib/same.c (base_name): Likewise.
48326         * lib/stripslash.c (ISSLASH): Likewise.
48327
48328         * lib/addext.c: Include <dirname.h> after size_t is defined.
48329         * lib/backupfile.c: Likewise.
48330
48331         * lib/addext.c (addext): Use base_len to trim redundant
48332         trailing slashes instead of doing it ourselves.
48333         But do not trim the last slash if it is not redundant.
48334
48335         * lib/backupfile.c (find_backup_file_name,
48336         max_backup_version): Use base_len instead of rolling it ourselves.
48337         Handle the case of "" and (on DOS) "C:" correctly.
48338
48339         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
48340         needed. Include <string.h>, <dirname.h>.
48341         (base_name): Allow file names ending in slashes, other than names
48342         that are all slashes.  In this case, return the basename followed
48343         by the slashes.  This is more general, and can be used in places
48344         where the original base_name purposely had an assertion failure.
48345         (base_len): New function.
48346
48347         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
48348         Do not include <assert.h>; no longer needed.
48349         Include xalloc.h.
48350         (memrchr): Remove decl.
48351         (dir_name_r): Remove.
48352         (dir_len): Renamed from dirlen.  All callers changed.
48353         Rewrite in terms of base_name, for simplicity and consistency.
48354         (dir_name): Never return NULL.  All callers changed.
48355         Do not include <stdlib.h> in test program; no longer needed.
48356         return 0; is fine for test program.
48357
48358         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
48359         New macros.
48360         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
48361
48362         * lib/path-concat.c (path_concat): Use base_len to compute
48363         base length, not strlen; this means we cannot rely on memcpy
48364         to null-terminate.
48365
48366         * lib/same.c (STREQ): Remove.
48367         (same_name): Handle the case where the basename ends in trailing '/'.
48368
48369         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
48370         a slash was stripped.  Do not strip the last slash after a
48371         file system prefix.
48372
48373 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48374
48375         * lib/Makefile.am (libfetish_a_SOURCES):
48376         Add strftime.c, since we now compile it on all hosts.
48377
48378         * lib/strftime.c (my_strftime):
48379         Define to nstrftime if emacs, but only if my_strftime is not defined.
48380         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
48381         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
48382         Add one more extra argument: a nanoseconds value.
48383         All uses changed.
48384         (ns): New macro.
48385         (my_strftime function): Add %N format.
48386         (emacs_strftimeu): Renamed from emacs_strftime,
48387         with extra ut argument.
48388
48389 2001-05-09  Paul Eggert  <eggert@twinsun.com>
48390
48391         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
48392
48393 2001-04-21  Jim Meyering  <meyering@lucent.com>
48394
48395         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
48396         doesn't interfere.
48397
48398 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48399
48400         * m4/ftruncate.m4: Check for chsize.
48401         Link with ftruncate.o unconditionally if ftruncate is missing.
48402         This was required when cross-compiling to i586-mingw32msvc.
48403
48404 2001-04-08  Jim Meyering  <meyering@lucent.com>
48405
48406         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
48407         recomputed; that's necessary when the offset spans a DST transition.
48408         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
48409
48410 2001-04-02  Jim Meyering  <meyering@lucent.com>
48411
48412         * lib/regex.h, regex.c: Update from GNU libc.
48413
48414 2001-03-24  Jim Meyering  <meyering@lucent.com>
48415
48416         * m4/jm-macros.m4: Require autoconf-2.49d.
48417
48418 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
48419
48420         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
48421
48422 2001-03-19  Paul Eggert  <eggert@twinsun.com>
48423
48424         * lib/version-etc.c (version_etc_copyright): Update to 2001.
48425
48426 2001-03-17  Jim Meyering  <meyering@lucent.com>
48427
48428         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
48429         now that the version in autoconf is equivalent.
48430         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
48431
48432         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
48433         Suggestion from Akim Demaille.
48434
48435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
48436         (jm_PREREQ_TEMPNAME): New function.
48437
48438 2001-03-16  Paul Eggert  <eggert@twinsun.com>
48439
48440         * lib/tempname.c (uint64_t): Define to uintmax_t if
48441         not defined, and if UINT64_MAX is not defined.
48442         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
48443         Reported by John David Anglin.
48444
48445 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
48446
48447         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
48448         resolve alias if codeset is empty.
48449         * lib/config.charset (BeOS): Use wildcard syntax.
48450
48451 2001-03-13  Jim Meyering  <meyering@lucent.com>
48452
48453         * lib/path-concat.c (path_concat)
48454         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
48455         concatenating e.g., `C:' and `foo'.
48456         From Bruno Haible.
48457
48458 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48459
48460         * lib/localcharset.c (locale_charset): Don't use
48461         setlocale(LC_CTYPE,NULL). Don't return NULL.
48462         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
48463
48464 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48465
48466         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
48467         support for DOS/DJGPP.
48468
48469 2001-03-01  Paul Eggert  <eggert@twinsun.com>
48470
48471         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
48472         lacks mkstemp.  Compile our own tempname.c if we compile our own
48473         mkstemp.c, as mkstemp relies on tempname.
48474
48475 2001-03-01  Jim Meyering  <meyering@lucent.com>
48476
48477         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
48478         AH_VERBATIM really does output its argument verbatim.
48479
48480 2001-02-28  Paul Eggert  <eggert@twinsun.com>
48481
48482         * lib/Makefile.am (libfetish_a_SOURCES):
48483         Add dup-safer.c, fopen-safer.c.
48484         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
48485
48486         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
48487         * lib/unistd-safer.h: New files.
48488
48489 2001-02-25  Paul Eggert  <eggert@twinsun.com>
48490
48491         The mkstemp replacement is taken from glibc 2.2.2, with some
48492         portability fixes for use outside glibc, as follows:
48493
48494         * lib/tempname.c (struct_stat64): New macro.
48495         (direxists, __gen_tempname): Use it.
48496         This avoids a portability problem with Solaris 8.
48497
48498         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
48499         (<stddef.h>, <stdint.h>, <string.h>):
48500         Include only if STDC_HEADERS || _LIBC.
48501         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
48502         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
48503         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
48504         (__set_errno): Define this macro if <errno.h> doesn't.
48505         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
48506         Define these macros if <stdio.h> doesn't.
48507         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
48508         Define these macros if <sys/stat.h>
48509         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
48510         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
48511         __xstat64): Define if not _LIBC.
48512         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
48513         (__gen_tempname): Invoke gettimeofday only if
48514         HAVE_GETTIMEOFDAY || _LIBC;
48515         otherwise, fall back on plain "time".
48516         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
48517
48518         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
48519
48520         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
48521
48522 2001-02-18  Paul Eggert  <eggert@twinsun.com>
48523
48524         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
48525
48526 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48527
48528         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
48529         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
48530         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
48531         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48532
48533 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48534
48535         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
48536         Remove workaround macros for hosts that have mbrtowc but not
48537         mbstate_t, as we now insist on proper declarations for both
48538         before using mbrtowc.
48539
48540 2001-02-17  Jim Meyering  <meyering@lucent.com>
48541
48542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
48543         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
48544         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
48545         UnixWare 7.1.1.
48546
48547         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
48548         rather than AC_CACHE_VAL.
48549
48550 2001-02-17  Jim Meyering  <meyering@lucent.com>
48551
48552         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
48553         around included file name.
48554
48555         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
48556
48557         * lib/strftime.c: Update from GNU libc (the only changes were to
48558         comments).
48559
48560 2001-02-17  Jim Meyering  <meyering@lucent.com>
48561
48562         * lib/regex.c: Update from libc.
48563
48564 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
48565
48566         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
48567         clash.
48568
48569 2001-02-16  Paul Eggert  <eggert@twinsun.com>
48570
48571         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
48572         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
48573         Reported by Mark Hounschell via Paul Eggert.
48574
48575 2001-02-07  Jim Meyering  <meyering@lucent.com>
48576
48577         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
48578
48579 2001-02-05  Jim Meyering  <meyering@lucent.com>
48580
48581         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
48582         it includes the patch required for `large file' support with at least
48583         HP-UX's 10.20 /bin/cc.
48584
48585 2001-02-03  Jim Meyering  <meyering@lucent.com>
48586
48587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
48588         AS_IF, now that it works once again (mysteriously).
48589         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48590
48591 2001-01-30  Jim Meyering  <meyering@lucent.com>
48592
48593         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
48594         * m4/chown.m4: Rename conftestchown to conftest.chown.
48595         * m4/rename.m4: s/conftestdir/conftest.d1/ and
48596         s/conftestdir2/conftest.d2/.
48597         * m4/utimes.m4: s/conftestdata/conftest.data/
48598         Inspired by Pavel Roskin's change in autoconf.
48599
48600 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
48601
48602         * lib/config.charset: Update for FreeBSD 4.2.
48603
48604 2001-01-27  Jim Meyering  <meyering@lucent.com>
48605
48606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
48607         a use of AS_IF.
48608         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48609
48610 2001-01-26  Jim Meyering  <meyering@lucent.com>
48611
48612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
48613         quotearg.c includes it.
48614
48615 2001-01-26  Jim Meyering  <meyering@lucent.com>
48616
48617         * lib/quotearg.c: Include stddef.h.
48618         * lib/quote.c: Include stddef.h.
48619         Reported by Axel Kittenberger.
48620
48621         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
48622         line in double quotes so that it evokes a better diagnostic.
48623         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
48624         Reported by Axel Kittenberger.
48625
48626 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
48627
48628         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
48629         as if it was a `charset'.
48630
48631 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48632
48633         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
48634         has const.
48635
48636 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48637
48638         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
48639         to avoid a warning.  Add back 'const' to inptr.
48640
48641 2001-01-20  Jim Meyering  <meyering@lucent.com>
48642
48643         Be sure that headers are checked before used in code compiled
48644         for the type checks.
48645         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
48646         In place of that, invoke jm_CHECK_ALL_TYPES.
48647         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
48648         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
48649         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
48650         The check for ssize_t was mistakenly run before the test for unistd.h.
48651
48652         The configure-time check for stdbool.h was missing.
48653         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
48654         (jm_PREREQ_HASH): New function.
48655
48656 2001-01-17  Jim Meyering  <meyering@lucent.com>
48657
48658         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
48659         for autoconf-2.49c.
48660         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
48661
48662 2001-01-16  Jim Meyering  <meyering@lucent.com>
48663
48664         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
48665         From Bruno Haible.
48666
48667 2001-01-14  Jim Meyering  <meyering@lucent.com>
48668
48669         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
48670         foo and bar.  Create conftestdir/ in the script, not in the C code.
48671         Remove directories in the script, not in the C code.
48672         Remove conftestdir{,2} before trying to create the directory.
48673         Make the entire configure script fail if the mkdir fails.
48674
48675 2001-01-14  Jim Meyering  <meyering@lucent.com>
48676
48677         * lib/rename.c: New file.  From Volker Borchert.
48678         Include stdlib.h, string.h or strings.h, and xalloc.h.
48679         Use strip_trailing_slashes rather than open-coding it.
48680
48681 2001-01-03  Paul Eggert  <eggert@twinsun.com>
48682
48683         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
48684
48685 2001-01-03  Jim Meyering  <meyering@lucent.com>
48686
48687         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
48688         of local `inptr' to avoid warning with some system declarations of
48689         iconv.
48690
48691 2001-01-02  Volker Borchert  <bt@teknon.de>
48692
48693         * m4/rename.m4: New file.
48694         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
48695
48696 2001-01-01  Jim Meyering  <meyering@lucent.com>
48697
48698         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
48699         even on systems with utmpx.h.  It's necessary for the declaration of
48700         utmp's ut_user member.  Reported by Andreas Jaeger.
48701
48702         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
48703         available. They are required for the declarations of getgrgid and
48704         getpwuid resp.
48705         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
48706         Reported by Andreas Jaeger.
48707
48708 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
48709
48710         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
48711         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
48712         so `make install' also works in VPATH builds.
48713
48714 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
48715
48716         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
48717         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
48718         can be used in subdirectories.
48719
48720 2000-12-29  Paul Eggert  <eggert@twinsun.com>
48721
48722         * lib/modechange.c: Do not assume that mode_t uses the
48723         traditional octal encoding.  E.g. "chmod 1 FOO" should set
48724         the other-execute bit of FOO even if S_IXOTH != 1.
48725
48726         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48727         WOTH, XOTH, ALLM): New macros.
48728         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48729          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48730         Use them.
48731         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48732         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48733         (mode_compile):
48734         No need to use uintmax_t; unsigned long is long enough.
48735         Don't bother to get suffix since we don't use it.
48736
48737 2000-12-26  Jim Meyering  <meyering@lucent.com>
48738
48739         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48740         better with autoheader.
48741
48742 2000-12-24  Jim Meyering  <meyering@lucent.com>
48743
48744         * lib/hash.c (is_prime): Return explicit boolean values.
48745         (hash_get_first): Return NULL to appease Irix5.6's 89.
48746         Reported by Nelson Beebe.
48747
48748 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
48749
48750         * lib/localcharset.c (locale_charset): Add support for Win32.
48751
48752 2000-12-18  Paul Eggert  <eggert@twinsun.com>
48753
48754         * lib/physmem.h, lib/physmem.c: New files.
48755
48756         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48757         (noinst_HEADERS): Add physmem.h.
48758
48759         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48760         't' for compatibility with Solaris 8 sort.
48761
48762 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
48763
48764         * lib/config.charset: Add support for BeOS.
48765
48766 2000-12-17  Jim Meyering  <meyering@lucent.com>
48767
48768         * m4/dos.m4 (jm_AC_DOS): New file and macro.
48769         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48770
48771 2000-12-16  Jim Meyering  <meyering@lucent.com>
48772
48773         This bug had a serious impact on chown: `chown N:M FILE' (for integer
48774         N and M) would have treated it like `chown N:N FILE'.
48775
48776         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48777
48778 2000-12-16  Jim Meyering  <meyering@lucent.com>
48779
48780         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48781         SHELLS_FILE to a file name that's useful on djgpp systems.
48782         Include stdlib.h.
48783         (ADDITIONAL_DEFAULT_SHELLS): Define.
48784         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48785         Based mostly on a patch from Prashant TR.
48786
48787 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48788
48789         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48790         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48791         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48792
48793 2000-12-08  Andreas Schwab  <schwab@suse.de>
48794
48795         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48796         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48797
48798 2000-12-07  Jim Meyering  <meyering@lucent.com>
48799
48800         * lib/stripslash.c (ISSLASH): Define.
48801         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48802         `/'.
48803         From Prashant TR.
48804
48805         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48806         (dir_name_r): Declare this function as static.
48807         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48808         manifest itself on a name containing a mix of slashes and
48809         backslashes.
48810         Make this function work with names starting with a DOS-style
48811         drive letter and colon prefix.
48812         (dir_name): Append `.' if necessary.
48813         Based mostly on patches from Prashant TR and Eli Zaretskii.
48814
48815         * lib/dirname.h (dir_name_r): Remove prototype.
48816
48817 2000-12-06  Paul Eggert  <eggert@twinsun.com>
48818
48819         * m4/off_t-format.m4: Remove this file.
48820         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48821
48822 2000-12-06  Jim Meyering  <meyering@lucent.com>
48823
48824         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48825         replacement strtoull, we may well need the replacement strtoul, too.
48826         Check for declarations of strtoul and strtoull.
48827         Check for strtol.  Mainly as a cue to cause automake to include
48828         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48829         Check for limits.h -- strtol.c needs it.
48830
48831 2000-12-05  Jim Meyering  <meyering@lucent.com>
48832
48833         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48834
48835 2000-12-04  Jim Meyering  <meyering@lucent.com>
48836
48837         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48838         Also include memory.h, stdlib.h, unistd.h if appropriate.
48839         Reported by Andreas Jaeger (conflicting declaration of malloc).
48840
48841 2000-12-02  Jim Meyering  <meyering@lucent.com>
48842
48843         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48844         * m4/jm-macros.m4 (jm_MACROS): require it.
48845
48846 2000-12-02  Jim Meyering  <meyering@lucent.com>
48847
48848         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48849
48850 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48851
48852         * lib/memrchr.c: Include <config.h> before any system include file.
48853
48854 2000-11-30  Jim Meyering  <meyering@lucent.com>
48855
48856         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48857
48858 2000-11-30  Jim Meyering  <meyering@lucent.com>
48859
48860         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48861
48862 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48863
48864         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48865
48866 2000-11-26  Jim Meyering  <meyering@lucent.com>
48867
48868         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48869
48870 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48871
48872         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48873         size of (size_t) -1; it's not portable.
48874
48875 2000-11-17  Jim Meyering  <meyering@lucent.com>
48876
48877         * lib/strstr.c: Update from GNU libc.
48878
48879 2000-11-17  Akim Demaille  <akim@epita.fr>
48880
48881         * lib/obstack.h: Formatting changes.
48882         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48883         prevent type checking.
48884         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48885         cast the value to (void *): assigning a `foo *' to a `void *'
48886         variable is valid.
48887         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48888
48889 2000-11-16  Jim Meyering  <meyering@lucent.com>
48890
48891         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48892
48893 2000-11-11  Jim Meyering  <meyering@lucent.com>
48894
48895         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48896
48897 2000-11-10  Jim Meyering  <meyering@lucent.com>
48898
48899         * lib/obstack.h: Update from GNU libc.
48900         * lib/obstack.c: Likewise.
48901
48902 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48903
48904         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48905
48906 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48907
48908         * lib/getusershell.c (setusershell): Use rewind rather than
48909         fseek/fseeko, to avoid configuration hassles with fseeko.
48910         Don't bother opening SHELLS_FILE if shellstream is NULL;
48911         it's not necessary.
48912
48913 2000-11-05  Jim Meyering  <meyering@lucent.com>
48914
48915         * lib/makepath.h (make_dir): Declare.
48916         * lib/makepath.c (make_dir): Remove `static' attribute.
48917         Tweak a comment.
48918
48919 2000-11-04  Jim Meyering  <meyering@lucent.com>
48920
48921         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48922
48923 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48924
48925         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48926         last one in a bucket, advance to the next bucket.
48927
48928 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48929
48930         * lib/fnmatch.c: Do not comment out all the code if we are using
48931         the GNU C library, because in some cases we are replacing buggy
48932         code in the GNU C library itself.
48933
48934 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48935
48936         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48937         (regex_compile): Catch bogus \(\1\).
48938
48939 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48940
48941         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48942         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48943         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48944
48945 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48946
48947         * lib/error.h, getline.h, modechange.h:
48948         Remove "2000" from Copyright line, as the file hasn't been
48949         changed this year other than in the copyright notice.
48950
48951         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48952         was changed this year.
48953
48954 2000-10-29  Jim Meyering  <meyering@lucent.com>
48955
48956         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48957         renaming.
48958         * m4/ls-mntd-fs.m4: Likewise
48959
48960 2000-10-29  Jim Meyering  <meyering@lucent.com>
48961
48962         * lib/xstat.in: Fix grammar in comment.
48963
48964 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48965
48966         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48967         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48968         doesn't define __restrict_arr.
48969
48970 2000-10-28  Jim Meyering  <meyering@lucent.com>
48971
48972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48973         (jm_PREREQ_MEMCHR): New function.
48974
48975 2000-10-28  Jim Meyering  <meyering@lucent.com>
48976
48977         * lib/memchr.c: Update from libc.
48978         Adjust for portability:
48979         [HAVE_STDLIB_H]: Include stdlib.h.
48980         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48981         Undef __memchr, too.
48982         [!weak_alias]: Define __memchr to memchr.
48983
48984         * lib/regex.c: Update from libc.
48985         * lib/regex.h: Likewise.
48986         * lib/getopt1.c: Likewise.
48987         * lib/memcmp.c: Likewise.
48988
48989         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48990         Avoid using fseek, when possible -- it's broken by design.
48991         Patch by Ulrich Drepper.
48992
48993 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48994
48995         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48996         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48997         Giving in to popular pressure to shut up the compiler with casts.
48998
48999 2000-10-26  Jim Meyering  <meyering@lucent.com>
49000
49001         * lib/strftime.c: Update from libc.
49002
49003 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
49004
49005         * regex.c: More `unsigned char' -> `re_char' changes.
49006         Also change several `int' into `re_wchar_t'.
49007         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
49008         (PUSH_FAILURE_POINTER): Don't cast any more.
49009         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
49010         We want GCC to complain, since this piece of code makes
49011         re_match non-reentrant, which *should* be fixed.
49012         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
49013         (EXTEND_BUFFER): Use RETALLOC.
49014         (SET_LIST_BIT): Don't cast.
49015         (re_wchar_t): New type.
49016         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
49017         that those two functions will always properly return.
49018         (IMMEDIATE_QUIT_CHECK): Cast to void.
49019         (analyse_first): Use recursion rather than an explicit stack.
49020         (re_compile_fastmap): Can't fail anymore.
49021         (re_search_2): Don't check re_compile_fastmap for failure.
49022         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
49023         Now also sets the new value (passed in a new argument).
49024         (re_match_2_internal): Use it.
49025         Also, use a new var `reg' of type size_t when looping through regs
49026         rather than reuse the inappropriate `mcnt'.
49027
49028 2000-10-25  Jim Meyering  <meyering@lucent.com>
49029
49030         * lib/obstack.c: Update from libc.
49031
49032 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
49033
49034         * regex.c (regex_compile): Change the way of handling a range from
49035         a char less than 256 to a char not less than 256.
49036
49037 2000-10-24  Andrew Innes  <andrewi@gnu.org>
49038
49039         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
49040         NT-Emacs only.
49041         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
49042         so that re_search functions only quit when callers expect them to.
49043
49044 2000-10-23  Jim Meyering  <meyering@lucent.com>
49045
49046         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
49047         wrong.  That set_locale call must not have any side effects.
49048         From Paul Eggert.
49049
49050 2000-10-22  Jim Meyering  <meyering@lucent.com>
49051
49052         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
49053         [CYCLIC]: Remove now-unused definition.
49054
49055         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
49056         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
49057         Suggestion from Ulrich Drepper.
49058
49059 2000-10-21  Jim Meyering  <meyering@lucent.com>
49060
49061         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
49062         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
49063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
49064
49065 2000-10-21  Jim Meyering  <meyering@lucent.com>
49066
49067         * lib/dirname.c (memrchr): Declare if necessary.
49068         (dir_name): Remove the restriction that there be no
49069         trailing slashes.  Now, this code skips past them, effectively
49070         ignoring them.
49071         [TEST_DIRNAME] (main): New unit tests.
49072
49073         * lib/memrchr.c: New file from GNU libc.
49074         Undef __memrchr, too.
49075         [!weak_alias]: Define __memrchr to memrchr.
49076         Guard weak_alias use with `#ifdef weak_alias'.
49077
49078 2000-10-21  Jim Meyering  <meyering@lucent.com>
49079
49080         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
49081         (dir_name): Use dir_name_r.
49082         * lib/dirname.h (dir_name_r): Declare it.
49083
49084 2000-10-17  Jim Meyering  <meyering@lucent.com>
49085
49086         * lib/quote.h (PARAMS): Define and use.
49087         Reported by Akim Demaille.
49088
49089         * lib/getopt.c: Update from libc.
49090
49091 2000-10-16  Jim Meyering  <meyering@lucent.com>
49092
49093         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
49094         setlocale.
49095         From Jan Fedak.
49096
49097 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
49098
49099         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
49100
49101 2000-09-25  Jim Meyering  <meyering@lucent.com>
49102
49103         * lib/md5.h (rol): Define (from GnuPG).
49104
49105         * lib/sha.c: Give credit (GnuPG) where due.
49106         (M): Use rol rather than open-coding it.
49107         Add a FIXME comment.
49108
49109 2000-09-21  Jim Meyering  <meyering@lucent.com>
49110
49111         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
49112         Reported by Michael Stone.
49113
49114 2000-09-20  Jim Meyering  <meyering@lucent.com>
49115
49116         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
49117         (noinst_HEADERS): Add sha.h.
49118         Based on code from Scott G. Miller and from GnuPG.
49119
49120 2000-09-18  Jim Meyering  <meyering@lucent.com>
49121
49122         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
49123         LIBS. Otherwise, everyone ends up linking with -lelf for some
49124         configurations.
49125         Reported by Mike Stone.
49126
49127 2000-09-15  Jim Meyering  <meyering@lucent.com>
49128
49129         * lib/regex.c: Update from libc.
49130
49131 2000-09-10  Jim Meyering  <meyering@lucent.com>
49132
49133         * lib/getopt.c (_getopt_internal): Update from glibc.
49134
49135 2000-09-09  Jim Meyering  <meyering@lucent.com>
49136
49137         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
49138         think it should be used as a general replacement for isascii.
49139         * lib/fnmatch.c: Likewise.
49140         * lib/mbswidth.c: Likewise
49141         * lib/regex.c: Likewise.
49142
49143         Don't use atoi.
49144         * lib/userspec.c: Include sys/param.h and limits.h.
49145         Include xstrtol.h.
49146         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49147         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
49148         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
49149         UID, GID.  Check range.
49150
49151 2000-09-06  Jim Meyering  <meyering@lucent.com>
49152
49153         * lib/getopt.c (_getopt_internal): Update from glibc.
49154
49155 2000-08-30  Jim Meyering  <meyering@lucent.com>
49156
49157         * lib/strftime.c: Merge in changes from GNU libc.
49158
49159 2000-08-26  Jim Meyering  <meyering@lucent.com>
49160
49161         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
49162         * m4/fpending.m4: New file.
49163
49164 2000-08-26  Jim Meyering  <meyering@lucent.com>
49165
49166         * lib/closeout.c: Include "__fpending.h".
49167         (close_stdout_status): Return right away if there's nothing to flush.
49168
49169         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
49170         * lib/__fpending.c: New file.
49171         * lib/__fpending.h: New file.
49172
49173 2000-08-20  Jim Meyering  <meyering@lucent.com>
49174
49175         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
49176         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
49177         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
49178
49179 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
49180
49181         Improve fileutils installation on systems where running
49182         programs (like install) can't be unlinked.
49183         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
49184         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
49185
49186 2000-08-07  Paul Eggert  <eggert@twinsun.com>
49187
49188         Standardize on "memory exhausted" instead of "Memory exhausted"
49189         or "virtual memory exhausted".
49190         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
49191         "virtual memory exhausted".
49192         * lib/same.c (same_name): Invoke xalloc_die instead of printing
49193         our own message.
49194         * lib/userspec.c (parse_user_spec): Likewise.
49195         * lib/bumpalloc.h: comment fix
49196         * lib/same.c, userspec.c: Include xalloc.h.
49197
49198         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
49199         not char *const and pointing to a constant array.
49200         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
49201         (xrealloc): Comment fix.
49202
49203         * lib/userspec.c (parse_user_spec):
49204         Don't translate a message until just before returning,
49205         to avoid unnecessary translation.
49206
49207 2000-08-07  Jim Meyering  <meyering@lucent.com>
49208
49209         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
49210         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
49211         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
49212         getgroups.c, gethostname.c, getopt.h, group-member.c,
49213         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
49214         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
49215         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
49216         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
49217         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
49218         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
49219         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
49220         yesno.c: Back out Copyright date changes for each file with no change
49221         this year.  This eases coordination with other programs using the same
49222         source code modules.  From Paul Eggert.
49223
49224 2000-08-06  Paul Eggert  <eggert@twinsun.com>
49225
49226         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
49227         not char, for compatibility with glibc 2.1.3 strftime.c.
49228
49229 2000-08-03  Greg McGary  <greg@mcgary.org>
49230
49231         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
49232         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
49233         (EXTEND_BUFFER): Use them.
49234
49235 2000-08-01  Jim Meyering  <meyering@lucent.com>
49236
49237         * lib/dirname.c (ISSLASH): Define.
49238         (BACKSLASH_IS_PATH_SEPARATOR): Define.
49239         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
49240         both `\' and `/' may be use as path separators.
49241         Based on a patch from Prashant TR.
49242
49243 2000-07-31  Paul Eggert  <eggert@twinsun.com>
49244
49245         * lib/quotearg.c (quotearg_n_options): Don't make the initial
49246         slot vector a constant, since it might get modified.
49247
49248 2000-07-31  Jim Meyering  <meyering@lucent.com>
49249
49250         * lib/xmalloc.c: Use `virtual memory exhausted', not
49251         `Memory exhausted'.
49252         * lib/obstack.c (print_and_abort): Likewise.
49253
49254 2000-07-30  Paul Eggert  <eggert@twinsun.com>
49255
49256         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
49257         buffer, so that the caller can always quote one small
49258         component of a "memory exhausted" message in slot 0.
49259         From a suggestion by Jim Meyering.
49260
49261 2000-07-30  Jim Meyering  <meyering@lucent.com>
49262
49263         * lib/makepath.c (make_path): Quote the other instance, too.
49264
49265         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
49266         (STATIC_BUF_SIZE): Define.
49267         (quotearg_n_options): Use only statically allocated storage when
49268         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
49269         than STATIC_BUF_SIZE.
49270
49271 2000-07-29  Jim Meyering  <meyering@lucent.com>
49272
49273         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
49274         * lib/dirname.c (dir_name): Likewise.
49275
49276         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
49277         `/'.
49278
49279         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
49280         (dir_name): Assert that there are no trailing slashes.
49281
49282 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
49283
49284         * lib/mbswidth.h (mbswidth): Add a flags argument.
49285         (mbswidth): New declaration.
49286         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
49287         * lib/mbswidth.c (mbswidth): Add a flags argument.
49288         (mbsnwidth): New function.
49289
49290 2000-07-24  Jim Meyering  <meyering@lucent.com>
49291
49292         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
49293
49294 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49295
49296         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
49297
49298 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49299
49300         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
49301         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
49302         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
49303         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
49304         invoke multibyte primitives.
49305
49306 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49307
49308         * lib/quotearg.c:
49309         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
49310         so that mbstate_t is always defined.
49311
49312         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
49313         be 1 in at least one GCC installation, and this configuration
49314         error is likely to be common.  Ignoring MB_LEN_MAX hurts
49315         performance on hosts that have mbrtowc but have only unibyte
49316         locales, but I assume these hosts are rare.
49317
49318 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49319
49320         * lib/mbswidth.c (_XOPEN_SOURCE):
49321         Don't define; this causes problems on Solaris 7.
49322         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
49323
49324 2000-07-23  Jim Meyering  <meyering@lucent.com>
49325
49326         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
49327         too: getgrgid, getpwuid, getuid.
49328
49329 2000-07-23  Jim Meyering  <meyering@lucent.com>
49330
49331         * lib/basename.c (base_name): Add an assertion.
49332
49333 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
49334
49335         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
49336         shadow its mbsinit function.
49337
49338 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49339
49340         * lib/mbswidth.h: New file.
49341         * lib/mbswidth.c: New file.
49342         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
49343         (noinst_HEADERS): Add mbswidth.h.
49344
49345 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49346
49347         * lib/config.charset: Add support for FreeBSD. Improve support for
49348         HP-UX and IRIX 6.
49349
49350 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
49351
49352         * m4/mbswidth.m4: New file.
49353         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
49354
49355 2000-07-15  Jim Meyering  <meyering@lucent.com>
49356
49357         * lib/makepath.c: Include quote.h.
49358         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
49359         corresponding argument in a `quote (...)' call.
49360         Give better diagnostics.
49361
49362         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
49363         (noinst_HEADERS): Add quote.h.
49364
49365         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
49366         from tar's src/misc.c.
49367         * lib/quote.h: New file.  Prototypes for same.
49368
49369 2000-07-14  Paul Eggert  <eggert@twinsun.com>
49370
49371         From a suggestion by Bruno Haible.
49372         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
49373         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
49374         to decide whether to define the BeOS workaround macro;
49375         this adjusts to the change to AC_MBSTATE_T.
49376
49377 2000-07-14  Jim Meyering  <meyering@lucent.com>
49378
49379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
49380         jm_AC_TYPE_UINTMAX_T.
49381
49382 2000-07-13  Paul Eggert  <eggert@twinsun.com>
49383
49384         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
49385
49386         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
49387         quotearg_buffer_restyled): Add support for
49388         clocale_quoting_style.  Undo previous change to
49389         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
49390         and "{RIGHT QUOTATION MARK}" msgids.
49391
49392 2000-07-10  Paul Eggert  <eggert@twinsun.com>
49393
49394         From a suggestion by Bruno Haible.
49395         * m4/mbstate_t.m4 (AC_MBSTATE_T):
49396         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
49397         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
49398         and mbstate_t, to a single-part test that simply defines mbstate_t.
49399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
49400         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
49401
49402 2000-07-10  Jim Meyering  <meyering@lucent.com>
49403
49404         * m4/strerror_r.m4: Mirror the correction made in autoconf.
49405
49406         * m4/gnu-source.m4: Output to confdefs.h directly.
49407         Suggestion from Akim Demaille.
49408
49409 2000-07-09  Paul Eggert  <eggert@twinsun.com>
49410
49411         The old behavior of quoting `like this' doesn't look good with
49412         newer, ISO-style fonts.  See:
49413         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
49414
49415         Instead, quote "like this" by default.  Let the translator
49416         tailor the locale-specific quoting behavior by providing
49417         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
49418
49419         * lib/quotearg.c (N_): New macro.
49420         (gettext_default): New function.
49421         (quotearg_buffer_restyled): Use
49422         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
49423         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
49424
49425 2000-07-09  Jim Meyering  <meyering@lucent.com>
49426
49427         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
49428         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
49429
49430         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
49431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
49432
49433 2000-07-09  Jim Meyering  <meyering@lucent.com>
49434
49435         * lib/Most files: Update copyright dates to include 2000.
49436
49437 2000-07-08  Jim Meyering  <meyering@lucent.com>
49438
49439         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
49440         if not defined.
49441         (xgethostname): Remove now-unnecessary #ifdef.
49442         Move declaration of `err' into loop where it's used.
49443
49444 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49445         and Bruno Haible  <haible@clisp.cons.org>
49446
49447         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
49448         only if the test for an object-type mbstate_t fails.  This
49449         prevents us from mistakenly reporting that mbstate_t is a
49450         system object type after we "#define mbstate_t int" to work
49451         around its lack.
49452
49453 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49454         and Bruno Haible  <haible@clisp.cons.org>
49455
49456         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
49457
49458 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49459
49460         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
49461         to strerror_r.
49462         Include <ctype.h> for use of isalpha.
49463
49464 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49465
49466         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
49467         by allocating a larger buffer. Test the gethostname return value for
49468         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
49469         returns an error and ENAMETOOLONG isn't defined.
49470
49471 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49472
49473         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
49474         dimension.
49475
49476 2000-07-04  Jim Meyering  <meyering@lucent.com>
49477
49478         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
49479         of the deprecated AC_CHECKING.
49480
49481 2000-07-04  Jim Meyering  <meyering@lucent.com>
49482
49483         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
49484         Reported by Bruno Haible.
49485
49486 2000-07-04  Jim Meyering  <meyering@lucent.com>
49487
49488         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
49489         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
49490         lacks mbrtowc.
49491
49492 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49493
49494         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
49495         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
49496
49497 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49498         and Bruno Haible  <haible@clisp.cons.org>
49499
49500         * lib/quotearg.c (mbrtowc):
49501         Assign to *pwc, and return 1 only if result is nonzero.
49502         (iswprint): Use ISPRINT when substituting our own mbrtowc.
49503
49504 2000-07-03  Jim Meyering  <meyering@lucent.com>
49505
49506         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
49507
49508 2000-07-03  Jim Meyering  <meyering@lucent.com>
49509
49510         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
49511         This is necessary to get a definition of e.g., UTMP_FILE on
49512         HP-UX 10.20.
49513         From Bob Proulx.
49514
49515 2000-07-02  Jim Meyering  <meyering@lucent.com>
49516
49517         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
49518
49519         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
49520         AC_LIBOBJ(function_name).
49521         * m4/chown.m4: Likewise.
49522         * m4/fnmatch.m4: Likewise.
49523         * m4/ftruncate.m4: Likewise.
49524         * m4/getgroups.m4: Likewise.
49525         * m4/getline.m4: Likewise.
49526         * m4/group-member.m4: Likewise.
49527         * m4/jm-macros.m4: Likewise.
49528         * m4/lstat.m4: Likewise.
49529         * m4/malloc.m4: Likewise.
49530         * m4/memcmp.m4: Likewise.
49531         * m4/nanosleep.m4: Likewise.
49532         * m4/putenv.m4: Likewise.
49533         * m4/realloc.m4: Likewise.
49534         * m4/regex.m4: Likewise.
49535         * m4/stat.m4: Likewise.
49536         * m4/strftime.m4: Likewise.
49537
49538 2000-07-02  Jim Meyering  <meyering@lucent.com>
49539
49540         * lib/quotearg.c (mbstate_t): Don't define here.
49541
49542 2000-07-02  Jim Meyering  <meyering@lucent.com>
49543
49544         * lib/nanosleep.c (SIGCONT): Define if not already defined.
49545
49546 2000-07-01  Jim Meyering  <meyering@lucent.com>
49547
49548         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
49549
49550 2000-07-01  Jim Meyering  <meyering@lucent.com>
49551
49552         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
49553         problem.
49554
49555 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49556
49557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
49558         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
49559
49560 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49561
49562         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
49563         per change in ../m4/ls-mntd-fs.m4.
49564         (read_filesystem_list): Ignore symbolic links.
49565
49566 2000-06-29  Jim Meyering  <meyering@lucent.com>
49567
49568         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
49569         for declaration of strcmp.
49570
49571         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
49572
49573         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
49574         Avoid warning by casting result to `char *' to remove `const'.
49575
49576 2000-06-28  Jim Meyering  <meyering@lucent.com>
49577
49578         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
49579         included by quotearg.c, for which we perform this test.  From
49580         Bruno Haible.
49581
49582 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49583
49584         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
49585         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
49586         <utmpx.h> exists, put readutmp.o into LIBOBJS.
49587
49588 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49589
49590         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
49591
49592 2000-06-26  Paul Eggert  <eggert@twinsun.com>
49593
49594         savedir now sets errno on failure and invokes xmalloc to get memory.
49595         Fix a couple of other minor bugs while we're at it.
49596
49597         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
49598         (NAMLEN): Remove macro.
49599         (malloc, realloc): Remove decls.
49600         (stpcpy): Likewise.
49601         ("xalloc.h"): Include.
49602         (NAME_SIZE_DEFAULT): New macro.
49603         (savedir): Use xmalloc / xrealloc to allocate memory.
49604         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
49605         Skip "" directory entries.
49606         Use strlen to calculate directory entry length, since the old method
49607         is rarely used these days and isn't worth supporting.
49608         Don't use a pointer after freeing it.
49609         Check for integer overflow when calculating allocation size.
49610         Use memcpy to copy entries, instead of stpcpy.
49611         Set errno properly when returning NULL.
49612         Check for readdir error.
49613
49614 2000-06-26  Jim Meyering  <meyering@lucent.com>
49615
49616         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
49617
49618 2000-06-25  Jim Meyering  <meyering@lucent.com>
49619
49620         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
49621         Linux header bug when _XOPEN_SOURCE is defined to 500.
49622
49623 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49624
49625         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
49626         deficiency.
49627
49628 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49629
49630         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
49631         Include xalloc.h.
49632         Don't include <stdlib.h>.  Don't declare malloc, realloc.
49633
49634 2000-06-24  Jim Meyering  <meyering@lucent.com>
49635
49636         * m4/strerror_r.m4: Revive this file -- to try out an experimental
49637         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
49638         for which strerror does return char*, but which lacks a conveniently
49639         accessible declaration of the function.  If the compile-test says
49640         strerror_r doesn't work, then resort to a `run'-test that works on
49641         BeOS and segfaults on DEC Unix.
49642
49643 2000-06-24  Jim Meyering  <meyering@lucent.com>
49644
49645         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
49646
49647 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49648
49649         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
49650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
49651
49652 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49653
49654         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
49655         (mbrtowc, mbstate_t): Define substitutes if
49656         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
49657         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
49658         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
49659
49660 2000-06-23  Jim Meyering  <meyering@lucent.com>
49661
49662         * m4/afs.m4: Add missing AC_MSG_RESULT.
49663         Reported by Bruno Haible.
49664
49665         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
49666         Suggestion from Bruno Haible.
49667
49668 2000-06-23  Jim Meyering  <meyering@lucent.com>
49669
49670         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
49671
49672 2000-06-21  Jim Meyering  <meyering@lucent.com>
49673
49674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
49675
49676 2000-06-21  Jim Meyering  <meyering@lucent.com>
49677
49678         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
49679         (noinst_HEADERS): Add getstr.h.
49680
49681         * lib/getline.c (getstr): Move into a separate file.
49682         * lib/getstr.c (getstr): New file, extracted from getline.c, with
49683         the following changes: new parameter, delim2; both delim[12]
49684         parameters have type `int', not `char'.  The latter would lose
49685         with 8-bit delimiters.
49686         * lib/getstr.h: New file.
49687
49688 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49689
49690         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
49691         than 1024, return a memory chunk of least possible size, instead
49692         of size PATH_MAX + 2. In the loop, increment the size proportionally.
49693         Use free/xmalloc instead of xrealloc to avoid copying for very long
49694         paths.
49695
49696 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49697
49698         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
49699         the empty string.
49700
49701 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49702
49703         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
49704         address, not strdup.  Include <stdlib.h> and don't declare free().
49705
49706 2000-06-19  Jim Meyering  <meyering@lucent.com>
49707
49708         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
49709
49710 2000-06-18  Jim Meyering  <meyering@lucent.com>
49711
49712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
49713
49714         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
49715         `checking whether...' message to be consistent with that of the
49716         lstat test.
49717
49718 2000-06-18  Jim Meyering  <meyering@lucent.com>
49719
49720         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
49721         Besides, these days every porting target provides a mkdir function.
49722
49723         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49724         needed. (this snippet comes from src/system.h).
49725
49726 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
49727
49728         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49729
49730 2000-06-15  Paul Eggert  <eggert@twinsun.com>
49731
49732         * lib/human.c (adjust_value): New function.
49733         (human_readable_inexact): Apply rounding style even when
49734         printing approximate values.
49735
49736 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49737
49738         * lib/human.c (human_readable_inexact): Allow an input block
49739         size that is not a multiple of the output block size, and vice versa.
49740         Reported by Piergiorgio Sartor.
49741
49742 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49743
49744         * lib/getdate.y (get_date): Apply relative times after time
49745         zone indicator, not before.  Reported by Todd A. Jacobs.
49746
49747 2000-06-13  Jim Meyering  <meyering@lucent.com>
49748
49749         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49750
49751         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49752
49753 2000-06-12  Paul Eggert  <eggert@twinsun.com>
49754
49755         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49756
49757 2000-06-12  Jim Meyering  <meyering@lucent.com>
49758
49759         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49760         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49761         optional argument.
49762         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49763         the optional argument, `lib'.
49764
49765 2000-06-08  Jim Meyering  <meyering@lucent.com>
49766
49767         * m4/largefile.m4: Remove file (now that it's part of autoconf).
49768
49769 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49770
49771         Rewrite largefile configuration so that we don't need to run
49772         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
49773         AC_CANONICAL_HOST in configure.in -- jmm]
49774
49775         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49776         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49777         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49778         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49779         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49780         All uses changed.
49781         Instead of inspecting the output of getconf, try to compile the
49782         test program without and with the macro definition.
49783         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49784         for getconf.  Instead, check for the needed flags by compiling
49785         test programs.
49786
49787 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49788
49789         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49790
49791 2000-06-04  Jim Meyering  <meyering@lucent.com>
49792
49793         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49794         SunOS 4.1.4 for which gid_t is an unsigned type.
49795
49796 2000-06-03  Jim Meyering  <meyering@lucent.com>
49797
49798         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49799         now that autoconf requires that.
49800
49801         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49802         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49803         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49804
49805 2000-06-03  Jim Meyering  <meyering@lucent.com>
49806
49807         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49808
49809 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49810
49811         * m4/glibc21.m4: New file.
49812         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49813
49814 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49815
49816         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49817         newer, don't install charset.alias.
49818         * lib/config.charset: Change the Linux/glibc rules so they become empty
49819         on glibc-2.1 or newer.
49820
49821 2000-06-02  Jim Meyering  <meyering@lucent.com>
49822
49823         * lib/mountlist.c: Back out last change.  Instead, do this...
49824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49825         me_dummy member using the same `ignore'-testing code.
49826         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49827         fs_type strings.
49828         From Mark D. Roth.
49829
49830 2000-05-29  Jim Meyering  <meyering@lucent.com>
49831
49832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49833         mounts with the `ignore' attribute.  Based on a patch from
49834         Mark D. Roth.
49835
49836 2000-05-28  Jim Meyering  <meyering@lucent.com>
49837
49838         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49839         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49840         * m4/stat.m4: Likewise.
49841         * m4/lstat.m4: Likewise.
49842         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49843
49844         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49845         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49846
49847 2000-05-26  Jim Meyering  <meyering@lucent.com>
49848
49849         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49850
49851 2000-05-24  Jim Meyering  <meyering@lucent.com>
49852
49853         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49854         autoconf requires that.
49855         * m4/lib-check.m4: Likewise.
49856         * m4/jm-macros.m4: Likewise.
49857         * m4/strftime.m4: Likewise.
49858
49859         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49860         AC_CHECK_DECLS, now that autoconf requires that.
49861
49862 2000-05-22  Jim Meyering  <meyering@lucent.com>
49863
49864         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49865         * m4/lstat.m4: Likewise.
49866
49867 2000-05-22  Jim Meyering  <meyering@lucent.com>
49868
49869         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49870
49871 2000-05-20  Jim Meyering  <meyering@lucent.com>
49872
49873         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49874         (jm_PREREQ): Use it.
49875
49876 2000-05-18  Jim Meyering  <meyering@lucent.com>
49877
49878         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49879         back, too, since it may have been modified by allocate_entry.
49880         (hash_delete): Rewrite to use neither the assignment operator
49881         nor the comma operator in an if-expression.
49882
49883 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49884
49885         * lib/closeout.c:
49886         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49887         Remove; no longer needed.
49888         "quotearg.h": Add include.
49889         (file_name): Do not bother to explicitly initialize to NULL; it's less
49890         efficient on some hosts.
49891         (close_stdout_status): Remove test as to whether stdout was already
49892         closed; it breaks for the case "echo x | sort >&-".
49893         Quote file name colons.
49894         Do not assume that _("write error") lacks format strings.
49895
49896 2000-05-15  Jim Meyering  <meyering@lucent.com>
49897
49898         * lib/version-etc.c (version_etc_copyright): Update the copyright
49899         string used in all --version output.
49900
49901 2000-05-14  Jim Meyering  <meyering@lucent.com>
49902
49903         * lib/closeout.c (close_stdout_set_file_name): New function.
49904         (close_stdout_status): Use new file-scoped global.
49905         Return right away if fstat says the stdout file descriptor is invalid.
49906         * lib/closeout.h (close_stdout_set_file_name): Declare.
49907
49908 2000-05-10  Jim Meyering  <meyering@lucent.com>
49909
49910         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49911         (close_stdout_set_status): New function.
49912         * lib/closeout.h (close_stdout_set_status): Declare.
49913
49914 2000-05-09  Jim Meyering  <meyering@lucent.com>
49915
49916         * m4/gettext.m4: Rename this...
49917         * m4/libintl.m4: ...to this.
49918
49919 2000-05-08  Jim Meyering  <meyering@lucent.com>
49920
49921         * lib/long-options.c: Don't include closeout.h.
49922         (parse_long_options): Don't call close_stdout for --version.
49923
49924 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49925
49926         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49927         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49928         2.1.3 bug.  This avoids a clash when files like regex.c define
49929         _GNU_SOURCE.
49930
49931 2000-05-06  Jim Meyering  <meyering@lucent.com>
49932
49933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49934         (AC_REPLACE_FUNCS): Add strnlen.
49935
49936         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49937         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49938
49939         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49940         AC_SEARCH_LIBS call for nanosleep.
49941         (LIB_NANOSLEEP): Set and AC_SUBST.
49942
49943 2000-05-06  Jim Meyering  <meyering@lucent.com>
49944
49945         * lib/strnlen.c: Undefine __strnlen and strnlen.
49946         [!weak_alias]: Define __strnlen to strnlen.
49947
49948         * lib/atexit.c: New file, from libiberty.
49949
49950 2000-05-06  Jim Meyering  <meyering@lucent.com>
49951
49952         * lib/closeout.c (close_stdout_status): Also check for errors on the
49953         stderr stream.
49954
49955 2000-05-05  Jim Meyering  <meyering@lucent.com>
49956
49957         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49958         AC_SEARCH_LIBS call for clock_gettime.
49959         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49960
49961         * m4/search-libs.m4: Update from autoconf.
49962
49963         su doesn't work on Solaris 2.6.
49964         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49965         <shadow.h>.  Reported by Dragos Harabor.
49966
49967 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49968
49969         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49970         memcpy instead of xmalloc, xrealloc, path_concat.
49971         (locale_charset): Treat empty environment variables as absent.
49972         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49973
49974 2000-05-04  Jim Meyering  <meyering@lucent.com>
49975
49976         * lib/getopt.c: Update from glibc.
49977         * lib/obstack.c: Likewise.
49978         * lib/obstack.h: Likewise.
49979         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49980         file
49981
49982         * lib/regex.h: Likewise.
49983         * lib/strndup.c: Likewise.
49984         * lib/strnlen.c: New file, from glibc.
49985
49986 2000-05-03  Jim Meyering  <meyering@lucent.com>
49987
49988         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49989
49990 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49991
49992         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49993         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49994         compile-time test, rather than inspecting host and OS, to
49995         decide whether to define _LARGEFILE_SOURCE.
49996
49997 2000-05-01  Jim Meyering  <meyering@lucent.com>
49998
49999         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
50000
50001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
50002         Based on a patch from Bruno Haible.
50003
50004 2000-05-01  Jim Meyering  <meyering@lucent.com>
50005
50006         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
50007
50008 2000-04-29  Jim Meyering  <meyering@lucent.com>
50009
50010         * lib/path-concat.c: Declare strdup only if it's not defined.
50011         * lib/canon-host.c: Likewise.
50012
50013 2000-04-28  Jim Meyering  <meyering@lucent.com>
50014
50015         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
50016         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
50017         is included first, then limits.h is included by locale.h by libintl.h.
50018         From John David Anglin.
50019
50020 2000-04-25  Jim Meyering  <meyering@lucent.com>
50021
50022         * lib/makepath.c (S_IRWXUGO): Define.
50023         (make_path): Always perform explicit chmod if MODE specifies any
50024         of the `special' permission bits.  Prompted by a bug report against
50025         install from Mate Wierdl and Joost van Baal.
50026
50027 2000-04-18  Jim Meyering  <meyering@lucent.com>
50028
50029         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
50030         (jm_PREREQ): Use it.
50031
50032 2000-04-18  Jim Meyering  <meyering@lucent.com>
50033
50034         * lib/README: New file.
50035
50036         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
50037         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
50038
50039 2000-04-17  Jim Meyering  <meyering@lucent.com>
50040
50041         Get it right :-)
50042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
50043         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
50044         Suggestion from Akim Demaille.
50045
50046 2000-04-17  Jim Meyering  <meyering@lucent.com>
50047
50048         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
50049         the definition of it to rpl_strftime also defined-away the system's
50050         declaration.
50051
50052 2000-04-15  Jim Meyering  <meyering@lucent.com>
50053
50054         Use `C' to denote so-called `contiguous' files, the same way
50055         that tar does.
50056         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
50057         (ftypelet): Use S_ISCTG.
50058         From Michael Deutschmann.
50059
50060 2000-04-14  Jim Meyering  <meyering@lucent.com>
50061
50062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
50063         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
50064         clobbered.
50065
50066 2000-04-14  Jim Meyering  <meyering@lucent.com>
50067
50068         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
50069
50070 2000-04-13  Jim Meyering  <meyering@lucent.com>
50071
50072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
50073         AH_VERBATIM to insert required #ifndef into config.h.in.
50074         Suggestion from Akim Demaille.
50075
50076 2000-04-12  Jim Meyering  <meyering@lucent.com>
50077
50078         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
50079         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
50080         Christian Krackowizer.
50081
50082         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
50083         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
50084         (AC_SYS_LARGEFILE): Require.
50085         (AM_C_PROTOTYPES): Require.
50086
50087 2000-04-08  Jim Meyering  <meyering@lucent.com>
50088
50089         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
50090         names don't conflict.  Reported by Eli Zaretskii.
50091
50092 2000-04-07  Jim Meyering  <meyering@lucent.com>
50093
50094         * lib/putenv.c: Move inclusion of errno.h so it follows that of
50095         sys/types.h, to work around system header problems on AIX 3.2.5.
50096         From Bruno Haible.
50097
50098 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
50099
50100         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
50101         bug.  Deal with the different error behavior of Irix iconv.
50102
50103 2000-04-05  Paul Eggert  <eggert@twinsun.com>
50104
50105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
50106         IRIX if the installer said otherwise.
50107
50108 2000-04-05  Jim Meyering  <meyering@lucent.com>
50109
50110         Portability tweaks required for ultrix4.3.
50111         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
50112         (jm_CHECK_DECLS): Add getutent to the list of functions.
50113         (_jm_DECL_HEADERS): Add utmpx.h.
50114         From John David Anglin.
50115
50116         * m4/strftime.m4: Back out the 2000-04-02 change.
50117         Instead of that change, simply undefine putenv in the test program.
50118
50119 2000-04-05  Jim Meyering  <meyering@lucent.com>
50120
50121         Portability tweaks required for ultrix4.3.
50122         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
50123         getutent.
50124         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
50125         * lib/canon-host.c: Declare strdup.
50126         * lib/path-concat.c: Likewise.
50127         From John David Anglin.
50128
50129 2000-04-04  Jim Meyering  <meyering@lucent.com>
50130
50131         Be more DOS 8.3-friendly.
50132         * lib/ref-add.sin: Renamed from ref-add.sed.in.
50133         * lib/ref-del.sin: Renamed from ref-del.sed.in.
50134         * lib/Makefile.am: Reflect renaming.
50135         Reported by Eli Zaretskii.
50136
50137         Use a temporary file name that won't clash with `charset.alias'
50138         in the DOS 8.3 name space.
50139         * lib/Makefile.am (charset_tmp): Define.
50140         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
50141         (uninstall-local): Likewise.
50142         Reported by Eli Zaretskii.
50143
50144 2000-04-03  Jim Meyering  <meyering@lucent.com>
50145
50146         * m4/gettext.m4: Fix typo in comment.
50147
50148         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
50149         textutils/configure.in).  Suggestion from Paul Eggert.
50150         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
50151
50152 2000-04-02  Paul Eggert  <eggert@twinsun.com>
50153
50154         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
50155         variable in the shell rather than using putenv, which isn't
50156         portable.  This avoids the configure-time inter-test dependency
50157         on the potentially-renamed putenv function.
50158
50159 2000-03-30  Paul Eggert  <eggert@twinsun.com>
50160
50161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
50162         before checking struct stat.st_blksize, so that
50163         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
50164
50165 2000-03-29  Paul Eggert  <eggert@twinsun.com>
50166
50167         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
50168         since strftime.c uses HAVE_STRFTIME to decide whether to use
50169         the underlying strftime.
50170
50171 2000-03-29  Paul Eggert  <eggert@twinsun.com>
50172
50173         * lib/time/strftime.c (my_strftime): Make sure we call the system
50174         strftime, not ourselves, when invoking the underlying strftime.
50175
50176 2000-03-24  Jim Meyering  <meyering@lucent.com>
50177
50178         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
50179         (charset_alias): Define.
50180         (install-exec-local): Factor out common code.
50181         (uninstall-local): Split lines longer than 80.
50182         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
50183         (SUFFIXES): Define.
50184         (.sed.in.sed): New rule.  Don't redirect directly to $@.
50185         (CLEANFILES): Add ref-add.sed and ref-del.sed.
50186
50187 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
50188
50189         * lib/config.charset: Output a line containing "Packages using this
50190         file".
50191         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
50192         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
50193         ref-del.sed): New rules.
50194
50195 2000-03-17  Jim Meyering  <meyering@lucent.com>
50196
50197         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
50198         Otherwise, include <strings.h>
50199
50200 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
50201
50202         * lib/unicodeio.c (utf8_wctomb): New function.
50203         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
50204         format instead of in UCS-4 with platform dependent endianness.
50205
50206 2000-03-10  Jim Meyering  <meyering@lucent.com>
50207
50208         * m4/lib-check.m4: Look for getspnam in -lgen, too.
50209         From Marco Franzen.
50210
50211 2000-03-07  Paul Eggert  <eggert@twinsun.com>
50212
50213         * lib/savedir.c (savedir): Work even if directory size is
50214         negative; this can happen with some screwy NFS configurations.
50215
50216 2000-03-06  Jim Meyering  <meyering@lucent.com>
50217
50218         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
50219         if it's NULL (because we ran out of memory).  From Bruno Haible.
50220
50221 2000-03-05  Jim Meyering  <meyering@lucent.com>
50222
50223         * lib/localcharset.c ("path-concat.h"): Include.
50224         (get_charset_aliases): Use path_concat instead of ANSI string
50225         concatenation.
50226
50227         * lib/unicodeio.h (PARAMS): Define.
50228         Use it to guard prototype.
50229
50230 2000-03-04  Jim Meyering  <meyering@lucent.com>
50231
50232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
50233         for lib/localcharset.c.
50234
50235 2000-03-04  Jim Meyering  <meyering@lucent.com>
50236
50237         * lib/Makefile.am (install-exec-local): Create $(libdir) before
50238         installing into it.
50239         (uninstall-local): Uncomment this rule so `make distcheck' works
50240         once again.
50241
50242         * lib/unicodeio.c (<errno.h>): Include it.
50243         (errno): Declare if not defined.
50244
50245         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
50246
50247         * lib/config.charset: New version, incorporating remarks from a linux
50248         i18n mailing list.  From Bruno Haible.
50249
50250 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
50251
50252         * m4/codeset.m4: New file.
50253         * m4/iconv.m4: New file.
50254         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
50255
50256 2000-03-03  Jim Meyering  <meyering@lucent.com>
50257
50258         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
50259
50260 2000-03-02  Jim Meyering  <meyering@lucent.com>
50261
50262         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
50263         the messages come out on separate lines.
50264
50265         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
50266         rather than jm_CHECK_DECLARATIONS.
50267         * m4/decl.m4: Remove now-unused file.
50268
50269         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
50270         geteuid.
50271
50272 2000-03-02  Jim Meyering  <meyering@lucent.com>
50273
50274         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
50275
50276 2000-03-01  Jim Meyering  <meyering@lucent.com>
50277
50278         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
50279         * lib/unicodeio.c: Likewise.
50280
50281 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
50282
50283         * lib/config.charset: New file.
50284         * lib/localcharset.c: New file.
50285         * lib/unicodeio.h, lib/unicodeio.c: New files.
50286         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
50287         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
50288         (noinst_HEADERS): Add unicodeio.h.
50289         (all-local, install-exec-local, charset.alias): New targets.
50290
50291 2000-02-28  Paul Eggert  <eggert@twinsun.com>
50292
50293         * lib/quotearg.c (ALERT_CHAR): New macro.
50294         (quotearg_buffer_restyled): Use it.
50295
50296 2000-02-27  Jim Meyering  <meyering@lucent.com>
50297
50298         * m4/check-decl.m4: Add getenv to the list.
50299
50300 2000-02-27  Jim Meyering  <meyering@lucent.com>
50301
50302         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
50303         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
50304
50305         * lib/backupfile.c: Guard inclusion of stdlib.h with
50306         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
50307         Declare malloc if needed.
50308
50309         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
50310         `#ifndef HAVE_DECL..'
50311         now that autoconf always defines the HAVE_DECL_ symbols.
50312         * lib/human.c: Likewise.
50313         * lib/same.c: Likewise.
50314         * lib/strtoumax.c: Likewise.
50315
50316         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
50317         declaration check was not run.
50318         * lib/hash.c: Likewise.
50319         * lib/human.c: Likewise.
50320         * lib/same.c: Likewise.
50321         * lib/strtoumax.c: Likewise.
50322
50323         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
50324         `.', then first look up the entire `.'-containing string as a login
50325         name.
50326
50327 2000-02-23  Jim Meyering  <meyering@lucent.com>
50328
50329         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
50330         in place of my hack.
50331
50332 2000-02-18  Paul Eggert  <eggert@twinsun.com>
50333
50334         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
50335         (textint): New typedef.
50336         (parser_control): Member year changed from int to textint.
50337         All uses changed.
50338         (YYSTYPE): Removed; replaced by %union with int and textint members.
50339         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
50340         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
50341         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
50342         (tSNUMBER, tUNUMBER): Now of type <textintval>.
50343         (date, number, to_year): Use width of number in digits, not its value,
50344         to determine whether it's a 2-digit year, or a 2-digit time.
50345         (yylex): Store number of digits of numeric tokens.
50346         Reported by John Kendall.
50347
50348         (parser_control): Changed from struct parser_control to typedef (for
50349         consistency).  All uses changed.
50350
50351         (tID): Removed; not used.
50352         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
50353
50354 2000-02-14  Paul Eggert  <eggert@twinsun.com>
50355
50356         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
50357         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
50358
50359 2000-02-12  Jim Meyering  <meyering@lucent.com>
50360
50361         * lib/userspec.c (ISDIGIT): Define it.
50362         (isdigit): Remove definition.
50363         (is_number): Use ISDIGIT, not isdigit.
50364         <libintl.h>: Include.
50365         (_ and N_): Define.
50366         (parse_user_spec): Mark translatable strings.
50367
50368 2000-02-10  Jim Meyering  <meyering@lucent.com>
50369
50370         With these changes, nanosleep.[ch] are finally enough like the other
50371         lib/* replacement files to compile on a few more losing systems.
50372
50373         * lib/nanosleep.h: Don't include config.h.
50374         Remove prototype from declaration of nanosleep.
50375         (PARAMS): Remove now-unneeded definition.
50376         * lib/nanosleep.c: #undef nanosleep.
50377         (rpl_nanosleep): Rename from nanosleep.
50378
50379 2000-02-10  Jim Meyering  <meyering@lucent.com>
50380
50381         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
50382         gnu_nanosleep to rpl_nanosleep.
50383
50384 2000-02-09  Jim Meyering  <meyering@lucent.com>
50385
50386         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
50387         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
50388
50389 2000-02-08  Akim Demaille  <akim@epita.fr>
50390
50391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
50392         `[' and `]' and remove uses of `changequote'.
50393         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
50394         (AC_SYS_LARGEFILE): Likewise.
50395         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50396         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
50397         of changequote.
50398         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
50399         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
50400         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
50401         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
50402
50403 2000-02-05  Jim Meyering  <meyering@lucent.com>
50404
50405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
50406         Remove explicit use of AC_HEADER_TIME.  It is required by
50407         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
50408         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
50409         in autoconf whereby the expansion of the latter ended up preceding
50410         the expansion of its prerequisite, AC_HEADER_TIME.
50411         Reported by Volker Borchert.
50412
50413 2000-02-03  Jim Meyering  <meyering@lucent.com>
50414
50415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
50416
50417 2000-02-03  Jim Meyering  <meyering@lucent.com>
50418
50419         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
50420         rather than with `#if HAVE_UTMPNAME'.
50421
50422 2000-02-02  Jim Meyering  <meyering@lucent.com>
50423
50424         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
50425         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
50426         Reported by Eli Zaretskii.
50427
50428 2000-02-01  Jim Meyering  <meyering@lucent.com>
50429
50430         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
50431
50432 2000-01-31  Jim Meyering  <meyering@lucent.com>
50433
50434         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
50435         functions.  Add the time.h and sys/time.h headers along with the
50436         AC_REQUIRE'ment of AC_HEADER_TIME.
50437
50438 2000-01-31  Jim Meyering  <meyering@lucent.com>
50439
50440         * lib/nanosleep.h (nanosleep): Guard declaration with
50441         `#if ! HAVE_DECL_NANOSLEEP'.
50442         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
50443         the declaration in that vendor's sys/timers.h.
50444         Reported by Christian Krackowizer.
50445
50446         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
50447         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
50448         (ISPRINT): Likewise.
50449         Reported by Tom Tromey.
50450
50451 2000-01-30  Jim Meyering  <meyering@lucent.com>
50452
50453         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
50454
50455         * m4/prereq.m4 (utmp_includes): Define.
50456         Check for ut_user and ut_name members in both struct utmpx
50457         and struct utmp.
50458
50459 2000-01-30  Jim Meyering  <meyering@lucent.com>
50460
50461         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
50462         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
50463         header files where only utmpx.ut_user is declared.
50464
50465         * lib/readutmp.h (UT_USER): Define.
50466
50467 2000-01-29  Jim Meyering  <meyering@lucent.com>
50468
50469         * m4/lib-check.m4: New file containing library-related checks from
50470         fileutils and sh-utils (textutils had none).
50471
50472 2000-01-28  Jim Meyering  <meyering@lucent.com>
50473
50474         * m4/perl.m4: Change format of warning message to look more like that
50475         from the missing script.  Suggestion from François Pinard.
50476
50477 2000-01-25  Jim Meyering  <meyering@lucent.com>
50478
50479         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
50480         well as time.h in the compile check.
50481         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
50482         Fix typo in cross-compiling case: s/yes/no/.
50483
50484 2000-01-23  Jim Meyering  <meyering@lucent.com>
50485
50486         * m4/jm-macros.m4: Move df-related tests here from
50487         fileutils/configure.in
50488
50489         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
50490         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
50491
50492         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
50493         s/space/ac_fsusage_space/.
50494         (jm_FILE_SYSTEM_USAGE): Take two parameters.
50495
50496         * m4/ftruncate.m4: New file (derived from part of
50497         fileutils/configure.in).
50498         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
50499         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
50500
50501         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
50502         AC_SUBST these here, rather than just in sh-util/configure.in, so
50503         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
50504         all the same.
50505         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
50506         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
50507         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
50508         (AC_SUBST(POW_LIBM)): Likewise.
50509         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
50510
50511 2000-01-23  Jim Meyering  <meyering@lucent.com>
50512
50513         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
50514         obstack.c.
50515
50516 2000-01-22  Jim Meyering  <meyering@lucent.com>
50517
50518         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
50519
50520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
50521
50522         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
50523         configure.in
50524         (AC_CHECK_HEADERS): Likewise for sh-utils.
50525         (AC_CHECK_HEADERS): Likewise for textutils.
50526         Merge the three lists of headers.
50527
50528         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
50529         from fileutils' configure.in.
50530
50531         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
50532         code. Moved tests into their own function (_jm_DECL_HEADERS) in
50533         check-decl.m4.
50534
50535         * m4/check-decl.m4: Use #if rather than #ifdef.
50536         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
50537         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
50538         (_jm_DECL_HEADERS): Define new function.
50539         (jm_CHECK_DECLARATIONS): Require it.
50540
50541 2000-01-22  Jim Meyering  <meyering@lucent.com>
50542
50543         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
50544         [! HAVE_DECL_STRTOULL]: Declare strtoull.
50545         Required for some AIX systems.  Reported by Christian Krackowizer.
50546         [TESTING] (main): New function.
50547
50548         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
50549         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
50550         letters.
50551
50552         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
50553         iswprint.
50554
50555         * lib/strverscmp.c (ISDIGIT): Define.
50556         (strverscmp): Use ISDIGIT, not isdigit.
50557
50558 2000-01-19  Jim Meyering  <meyering@lucent.com>
50559
50560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
50561         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
50562         defines `struct timespec' in <sys/time.h>
50563
50564         * m4/c-bs-a.m4: Remove uses of changequote altogether.
50565         Thanks to Akim for explaining.
50566
50567 2000-01-17  Paul Eggert  <eggert@twinsun.com>
50568
50569         * lib/nanosleep.c (nanosleep):
50570         Don't use SA_INTERRUPT to decide whether to call sigaction, as
50571         POSIX.1 doesn't require SA_INTERRUPT and some systems
50572         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
50573         it's been part of POSIX.1 since day 1 (in 1988).
50574
50575 2000-01-17  Jim Meyering  <meyering@lucent.com>
50576
50577         * lib/interlock: Remove unused file.  Reported by François Pinard.
50578
50579 2000-01-16  Paul Eggert  <eggert@twinsun.com>
50580
50581         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
50582         alert, backslash, formfeed, and vertical tab unnecessarily in
50583         shell quoting style.
50584
50585 2000-01-16  Jim Meyering  <meyering@lucent.com>
50586
50587         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
50588         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
50589         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
50590         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
50591
50592 2000-01-16  Jim Meyering  <meyering@lucent.com>
50593
50594         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
50595         because the latter didn't work.
50596
50597 2000-01-15  Jim Meyering  <meyering@lucent.com>
50598
50599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
50600         (AC_REPLACE_FUNCS): Add memcpy and memset.
50601         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
50602         Add strpbrk.
50603         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
50604
50605 2000-01-12  Jim Meyering  <meyering@lucent.com>
50606
50607         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
50608         (jm_PREREQ): Use it.
50609         (jm_PREREQ_READUTMP): New macro.
50610         (jm_PREREQ): Use it.
50611
50612 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50613
50614         Quote multibyte characters correctly.
50615         * m4/c-bs-a.m4: New file.
50616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
50617         (jm_PREREQ): Use it.
50618
50619 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50620
50621         * m4/uintmax_t.m4: Port to autoconf 2.13.
50622
50623 2000-01-08  Jim Meyering  <meyering@ascend.com>
50624
50625         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
50626         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
50627
50628 2000-01-04  Jim Meyering  <meyering@ascend.com>
50629
50630         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
50631         jm_STRUCT_DIRENT_D_TYPE.
50632         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
50633         jm_STRUCT_DIRENT_D_INO.
50634         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
50635         jm_STRUCT_UTIMBUF.
50636         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
50637         renamings.
50638         * m4/utime.m4: Likewise.
50639
50640         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
50641         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
50642
50643 2000-01-03  Paul Eggert  <eggert@twinsun.com>
50644
50645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
50646         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
50647
50648 2000-01-02  Jim Meyering  <meyering@ascend.com>
50649
50650         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
50651         remember if this is necessary.
50652
50653 1999-12-26  Jim Meyering  <meyering@ascend.com>
50654
50655         * m4/jm-macros.m4: Use it here.
50656         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
50657
50658 1999-12-23  Jim Meyering  <meyering@ascend.com>
50659
50660         * m4/jm-macros.m4: Check for clock_gettime (moved from
50661         fileutils/configure.in)
50662         Check for gettimeofday.
50663
50664 1999-12-20  Jim Meyering  <meyering@ascend.com>
50665
50666         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
50667         autoconf-2.14a-1999-12-20.
50668
50669 1999-12-19  Jim Meyering  <meyering@ascend.com>
50670
50671         * m4/lstat-slash.m4: New file.
50672         * m4/jm-macros.m4: Use the new macro:
50673         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50674
50675 1999-12-07  Jim Meyering  <meyering@ascend.com>
50676
50677         * m4/perl.m4: Require that File::Compare be available, too.
50678         Too many systems seem to lack it.
50679
50680         * m4/strftime.m4: Add checks for most of the cpp macros tested in
50681         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
50682
50683 1999-11-18  Paul Eggert  <eggert@twinsun.com>
50684
50685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
50686         problem with the QNX 4.25 shell, which doesn't propagate exit
50687         status of failed commands inside shell assignments.
50688
50689 1999-11-17  Jim Meyering  <meyering@ascend.com>
50690
50691         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
50692
50693 1999-11-07  Jim Meyering  <meyering@ascend.com>
50694
50695         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
50696
50697 1999-11-06  Jim Meyering  <meyering@ascend.com>
50698
50699         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
50700         * m4/jm-macros.m4 (jm_MACROS): Use it here.
50701
50702 1999-11-05  Jim Meyering  <meyering@ascend.com>
50703
50704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
50705         configure.in of textutils, fileutils, and sh-utils into this one
50706         (shared between those packages) file.
50707         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
50708         AC_STRUCT_ST_BLKSIZE.
50709
50710 1999-11-03  Jim Meyering  <meyering@ascend.com>
50711
50712         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
50713         of AC_CHECK_TYPE checks includes unistd.h.
50714         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
50715         Suggestion from Akim Demaille.
50716
50717 1999-10-30  Jim Meyering  <meyering@ascend.com>
50718
50719         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
50720         m4-quoted string.
50721         * m4/ls-mntd-fs.m4: Likewise.
50722         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
50723         * m4/jm-winsz1.m4: Likewise.
50724
50725         * m4/const.m4: Remove file, since the fix made it into the experimental
50726         version of autoconf.
50727         * m4/mktime.m4: Likewise.
50728
50729         * m4/check-type.m4: Remove file, now that the latest version of
50730         AC_CHECK_TYPE takes a third arg to specify additional #includes.
50731
50732         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50733         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50734         AC_CHECK_TYPE.
50735
50736 1999-10-04  Jim Meyering  <meyering@ascend.com>
50737
50738         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50739
50740 1999-09-22  Paul Eggert  <eggert@twinsun.com>
50741
50742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50743         2.95.1 bug with HP-UX 10.20.
50744
50745 1999-09-17  Jim Meyering  <meyering@ascend.com>
50746
50747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50748         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50749         due to missing strdup (against sh-utils-2.0).
50750
50751 1999-08-29  Jim Meyering  <meyering@ascend.com>
50752
50753         * m4/jm-macros.m4: Require jm_BISON.
50754         * m4/bison.m4: New file.
50755
50756 1999-08-17  Paul Eggert  <eggert@twinsun.com>
50757
50758         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50759         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50760
50761 1999-08-05  Jim Meyering  <meyering@ascend.com>
50762
50763         * m4/getline.m4: Rename test file from conftestdata to conftest.data
50764         to avoid conflicts with `conftest' on 8+3 filesystems.
50765         Suggestion from Eli Zaretskii.
50766
50767 1999-08-04  Jim Meyering  <meyering@ascend.com>
50768
50769         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50770         fileutils and sh-utils (textutils's getline test was inadequate).
50771         (AM_FUNC_GETLINE): Run this test.
50772         (AC_CHECK_FUNCS): Check for getdelim.
50773         Reported by Bob Proulx.
50774
50775 1999-08-02  Jim Meyering  <meyering@ascend.com>
50776
50777         * m4/jm-macros.m4: Add a comment.
50778
50779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50780
50781         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50782         <inttypes.h> defines strtoumax as a macro (and not as a
50783         function).
50784
50785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50786
50787         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50788         that we can shift, multiply and divide unsigned long long
50789         values; Ultrix cc can't do it.
50790
50791 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50792
50793         * m4/mktime.m4: New file, which is a preview of what should appear
50794         in the next public autoconf release.
50795
50796 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50797
50798         * m4/lfs.m4: Remove this file.
50799         * m4/largefile.m4: New file.  It contains the old contents of
50800         lfs.m4, except that all names with prefix AC_LFS have been
50801         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50802         compatible with future autoconf versions.  Also, some minor m4
50803         quoting problems have been fixed.
50804
50805 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50806
50807         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50808         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50809         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50810         and simplify the shell code.
50811
50812 1999-08-01  Jim Meyering  <meyering@ascend.com>
50813
50814         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50815         m4.
50816
50817 1999-07-20  Jim Meyering  <meyering@ascend.com>
50818
50819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50820
50821 1999-07-15  Jim Meyering  <meyering@ascend.com>
50822
50823         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50824
50825 1999-05-22  Jim Meyering  <meyering@ascend.com>
50826
50827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50828
50829 1999-05-20  Jim Meyering  <meyering@ascend.com>
50830
50831         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50832         Add a colon after each `then' in case $4 is empty.
50833
50834 1999-05-16  Jim Meyering  <meyering@ascend.com>
50835
50836         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50837
50838 1999-05-10  Jim Meyering  <meyering@ascend.com>
50839
50840         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50841
50842         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50843         AC_FUNC_MKTIME.
50844
50845 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50846
50847         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50848
50849 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50850
50851         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50852         not CPPFLAGS, so that linking works correctly in IRIX.
50853
50854 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50855
50856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50857
50858 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50859
50860         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50861         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50863         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50864         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50865
50866         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50867
50868 1999-04-20  Jim Meyering  <meyering@ascend.com>
50869
50870         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50871         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50872         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50873
50874 1999-04-18  Jim Meyering  <meyering@ascend.com>
50875
50876         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50877         * m4/jm-macros.m4: Use it.
50878
50879 1999-04-06  Jim Meyering  <meyering@ascend.com>
50880
50881         * m4/strftime.m4: Remove test for %f.
50882
50883 1999-03-29  Jim Meyering  <meyering@ascend.com>
50884
50885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50886         superset of the AC_TYPE_* checks in the textutils, fileutils,
50887         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50888         AC_TYPE_PID_T.
50889
50890 1999-03-28  Jim Meyering  <meyering@ascend.com>
50891
50892         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50893         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50894         replaced e.g., in the *.sh files of the sh-utils.
50895
50896 1999-03-20  Jim Meyering  <meyering@ascend.com>
50897
50898         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50899         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50900         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50901
50902 1999-03-19  Jim Meyering  <meyering@ascend.com>
50903
50904         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50905
50906 1999-03-12  Jim Meyering  <meyering@ascend.com>
50907
50908         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50909
50910 1999-03-07  Jim Meyering  <meyering@ascend.com>
50911
50912         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50913         declared.
50914
50915 1999-02-17  Jim Meyering  <meyering@ascend.com>
50916
50917         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50918         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50919
50920 1999-02-07  Jim Meyering  <meyering@ascend.com>
50921
50922         * m4/group-member.m4: New file -- extracted from sh-utils'
50923         configure.in.
50924
50925         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50926         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50927
50928 1999-02-06  Jim Meyering  <meyering@ascend.com>
50929
50930         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50931         * m4/fnmatch.m4: Likewise.
50932         * m4/getgroups.m4: Likewise.
50933         * m4/lstat.m4: Likewise.
50934         * m4/malloc.m4: Likewise.
50935         * m4/putenv.m4: Likewise.
50936         * m4/realloc.m4: Likewise.
50937         * m4/regex.m4: Likewise.
50938         * m4/stat.m4: Likewise.
50939         * m4/strftime.m4: Likewise.
50940         Suggestion from Alain Magloire.
50941
50942         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50943         * m4/fnmatch.m4: Likewise.
50944         * m4/getgroups.m4: Likewise.
50945         * m4/getline.m4: Likewise.
50946         * m4/lstat.m4: Likewise.
50947         * m4/malloc.m4: Likewise.
50948         * m4/memcmp.m4: Likewise.
50949         * m4/putenv.m4: Likewise.
50950         * m4/realloc.m4: Likewise.
50951         * m4/regex.m4: Likewise.
50952         * m4/stat.m4: Likewise.
50953         * m4/strftime.m4: Likewise.
50954         Suggestion from Alain Magloire.
50955
50956         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50957         an argument.
50958
50959         * m4/regex.m4: Add a run-time Test for proper operation of
50960         re_compile_pattern.
50961
50962 1999-01-31  Jim Meyering  <meyering@ascend.com>
50963
50964         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50965
50966 1999-01-30  Jim Meyering  <meyering@ascend.com>
50967
50968         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50969
50970         * m4/jm-mktime.m4: Make this a wrapper around the official
50971         AM_FUNC_MKTIME rather than my private copy, now that the official one
50972         is up to date.
50973         * m4/mktime.m4: Remove file.
50974
50975         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50976         * m4/uptime.m4: Likewise.
50977         * m4/uintmax_t.m4: Likewise.
50978
50979 1999-01-28  Jim Meyering  <meyering@ascend.com>
50980
50981         * m4/jm-macros.m4: Use jm_AFS.
50982         * m4/afs.m4: New file (from fileutils' configure.in).
50983
50984         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50985         * m4/chown.m4: Likewise.
50986         * m4/d-ino.m4: Likewise.
50987         * m4/d-type.m4: Likewise.
50988         * m4/fnmatch.m4: Likewise.
50989         * m4/getgroups.m4: Likewise.
50990         * m4/gettext.m4: Likewise.
50991         * m4/jm-mktime.m4: Likewise.
50992         * m4/jm-winsz2.m4: Likewise.
50993         * m4/lcmessage.m4: Likewise.
50994         * m4/ls-mntd-fs.m4: Likewise.
50995         * m4/malloc.m4: Likewise.
50996         * m4/memcmp.m4: Likewise.
50997         * m4/putenv.m4: Likewise.
50998         * m4/realloc.m4: Likewise.
50999         * m4/st_mtim.m4: Likewise.
51000         * m4/strftime.m4: Likewise.
51001
51002 1999-01-16  Jim Meyering  <meyering@ascend.com>
51003
51004         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
51005         (ARGMATCH_DIE_DECL): Define.
51006
51007 1999-01-12  Jim Meyering  <meyering@ascend.com>
51008
51009         * m4/Makefile.am.in: Rewrite to avoid using fmt.
51010         Reported by Lars Hecking.
51011
51012 1999-01-10  Jim Meyering  <meyering@ascend.com>
51013
51014         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
51015         gross kludge.
51016         * m4/inttypes_h.m4: Likewise.
51017         * m4/lstat.m4: Likewise.
51018         * m4/malloc.m4: Likewise.
51019         * m4/readdir.m4: Likewise.
51020         * m4/realloc.m4: Likewise.
51021         * m4/st_dm_mode.m4: Likewise.
51022         * m4/stat.m4: Likewise.
51023         * m4/utimbuf.m4: Likewise.
51024         * m4/utimes.m4: Likewise.
51025
51026         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
51027         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
51028         comments in config.h.in are meaningful.
51029
51030         * m4/jm-macros.m4: Require autoconf-2.13 here.
51031
51032         * m4/regex.m4: By default, don't use the included regex.c on systems
51033         with glibc 2.  Suggestion from Uli Drepper.
51034
51035 1999-01-02  Jim Meyering  <meyering@ascend.com>
51036
51037         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
51038
51039 1998-12-18  Jim Meyering  <meyering@ascend.com>
51040
51041         * m4/Makefile.am.in (Makefile.am): Simplify rule.
51042         Based on a suggestion from Lars Hecking.
51043
51044 1998-11-16  Paul Eggert  <eggert@twinsun.com>
51045
51046         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
51047
51048 1998-11-16  Jim Meyering  <meyering@ascend.com>
51049
51050         * m4/lfs.m4: Double-quote the `uname...` expression.
51051
51052 1998-11-14  Jim Meyering  <meyering@ascend.com>
51053
51054         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
51055         * m4/stat.m4: Likewise.
51056
51057 1998-11-03  Jim Meyering  <meyering@ascend.com>
51058
51059         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
51060         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
51061
51062 1998-10-18  Jim Meyering  <meyering@ascend.com>
51063
51064         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
51065
51066 1998-10-17  Jim Meyering  <meyering@ascend.com>
51067
51068         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
51069         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
51070         calls for those previously hard-coded headers.  Instead, take a new
51071         parameter.
51072         (jm_CHECK_DECLARATIONS): Reflect interface change.
51073         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
51074         (jm_CHECK_DECL_LOCALTIME_R): New macro.
51075
51076         * m4/mktime.m4: Test for spring-forward gap before long-running test.
51077
51078 1998-10-14  Jim Meyering  <meyering@ascend.com>
51079
51080         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
51081         instead of "TZ=America/Vancouver".  From Paul Eggert.
51082
51083 1998-10-11  Jim Meyering  <meyering@ascend.com>
51084
51085         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
51086         This adds a test for a recently added compatibility fix for mktime.c.
51087         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
51088
51089 1998-09-27  Jim Meyering  <meyering@ascend.com>
51090
51091         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
51092
51093         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
51094         ../configure.in, including a change from Gordon Matzigkeit to allow
51095         cross-compiling for the Hurd.
51096
51097         * m4/glibc.m4: New file/macro to test for the GNU C Library
51098         versions 1 and 2.  From Gordon Matzigkeit.
51099         Indent.
51100
51101 1998-09-21  Jim Meyering  <meyering@ascend.com>
51102
51103         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
51104
51105 1998-08-18  Paul Eggert  <eggert@twinsun.com>
51106
51107         Port nanosecond-resolution times to UnixWare 2.1.2 and
51108         pedantic Solaris 2.6.
51109
51110         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
51111         AC_STRUCT_ST_MTIM.
51112         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
51113         Generate name of ns member, instead of just 1 or undef.
51114         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
51115
51116 1998-08-15  Jim Meyering  <meyering@ascend.com>
51117
51118         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
51119         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
51120         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
51121         instead of jm_TYPE_SSIZE_T.
51122
51123 1998-08-12  Jim Meyering  <meyering@ascend.com>
51124
51125         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
51126
51127 1998-08-02  Jim Meyering  <meyering@ascend.com>
51128
51129         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
51130         in acconfig.h manually.
51131
51132 1998-07-31  Paul Eggert  <eggert@twinsun.com>
51133
51134         * m4/st_mtim.m4: New file.
51135
51136 1998-07-28  Jim Meyering  <meyering@ascend.com>
51137
51138         * m4/utimes.m4: Undef stat.
51139
51140 1998-07-25  Jim Meyering  <meyering@ascend.com>
51141
51142         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
51143         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
51144
51145 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
51146
51147         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
51148         uid and gid actually remain unchanged.
51149
51150 1998-07-07  Jim Meyering  <meyering@ascend.com>
51151
51152         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
51153
51154 1998-07-04  Jim Meyering  <meyering@ascend.com>
51155
51156         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
51157         to prove that this macro can be used in packages without regex.c.
51158
51159 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
51160
51161         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
51162         is to be used.
51163
51164 1998-07-03  Jim Meyering  <meyering@ascend.com>
51165
51166         * m4/gettext.m4: Add -lintl if it's found to be necessary.
51167
51168         * m4/gettext.m4: New file -- from gettext-0.10.35.
51169         * m4/lcmessage.m4: Likewise.
51170         * m4/progtest.m4: Likewise.
51171
51172         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
51173         * m4/jm-macros.m4: Require the new macro.
51174
51175 1998-06-29  Jim Meyering  <meyering@ascend.com>
51176
51177         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
51178         for the definition of NGROUPS (used in a system header included
51179         by sys/mount.h).
51180
51181 1998-06-28  Jim Meyering  <meyering@ascend.com>
51182
51183         * m4/ls-mntd-fs.m4: New file.
51184         * m4/fstypename.m4: New file.
51185
51186         * m4/jm-macros.m4: Require the new macro.
51187         * m4/jm-glibc-io.m4: New file.
51188
51189 1998-05-19  Jim Meyering  <meyering@ascend.com>
51190
51191         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
51192         * m4/lchown.m4: New file.
51193
51194         * m4/Makefile.am.in: New file.
51195         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
51196
51197 1998-05-14  Jim Meyering  <meyering@ascend.com>
51198
51199         * m4/Makefile.am (EXTRA_DIST): Add them.
51200         * m4/jm-macros.m4: New file.
51201         * m4/utimbuf.m4: New file.
51202
51203 1998-05-12  Jim Meyering  <meyering@ascend.com>
51204
51205         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
51206
51207 1998-05-11  Jim Meyering  <meyering@ascend.com>
51208
51209         * m4/isc-posix.m4: New file.
51210
51211 1998-05-10  Jim Meyering  <meyering@ascend.com>
51212
51213         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
51214
51215 1998-05-09  Jim Meyering  <meyering@ascend.com>
51216
51217         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
51218         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
51219         with automake.
51220
51221         * m4/ssize_t.m4: New file.
51222         * m4/mktime.m4: Remove file -- the new automake has this now.
51223
51224 1998-04-26  Jim Meyering  <meyering@ascend.com>
51225
51226         * m4/assert.m4: New file.
51227         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
51228
51229 1998-04-05  Jim Meyering  <meyering@ascend.com>
51230
51231         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
51232         (jm_PREREQ): Use it here.
51233
51234 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
51235
51236         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
51237         in acconfig.h.
51238
51239 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
51240
51241         * m4/prereq.m4: New file.
51242         * m4/error.m4: New file.
51243         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
51244
51245 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
51246
51247         * m4/getline.m4: Don't set am_cv_func_working_getline before the
51248         cache-check for the same variable -- that defeated the purpose of
51249         the test; the test program was never run.  This was a problem only
51250         on systems with losing getline functions -- HP-UX 10.20 is one.
51251         Reported by Bjorn Helgaas.
51252
51253 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
51254
51255         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
51256
51257 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
51258
51259         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
51260
51261         * m4/const.m4: New file.  Use an initializer in this declaration
51262         typedef int charset[2]; const charset x;
51263         Reported by Bob Glickstein.
51264
51265 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
51266
51267         * m4/chown.m4: Fix reversed types on -1 args to chown.
51268         From Kaveh Ghazi.
51269
51270 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
51271
51272         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
51273         Add lseek and memchr.
51274
51275         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
51276         T.E.Dickey <dickey@clark.net> said that some older preprocessors
51277         have a 20-character limit on names.
51278
51279 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
51280
51281         * m4/inttypes_h.m4: New file.
51282         * m4/uintmax_t.m4: New file.
51283         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
51284
51285
51286         -----
51287
51288         Local Variables:
51289         coding: utf-8
51290         End:
51291
51292         Copyright (C) 1997-2009 Free Software Foundation, Inc.
51293
51294         Copying and distribution of this file, with or without
51295         modification, are permitted provided the copyright notice
51296         and this notice are preserved.