Avoid redefinition warnings for SIZE_MAX.
[gnulib.git] / ChangeLog
1 2009-05-21  Bruno Haible  <bruno@clisp.org>
2
3         Avoid redefinition warnings for SIZE_MAX.
4         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
5         Reported by Simon Josefsson.
6
7 2009-05-21  Bruno Haible  <bruno@clisp.org>
8
9         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10         AC_CACHE_VAL.
11
12 2009-05-20  Bruno Haible  <bruno@clisp.org>
13
14         Make zeroptr.h work on mingw.
15         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16         mprotect.
17         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18         * modules/memchr2-tests (configure.ac): Likewise.
19         * modules/memcmp-tests (configure.ac): Likewise.
20         * modules/memmem-tests (configure.ac): Likewise.
21         * modules/memrchr-tests (configure.ac): Likewise.
22         Reported by Simon Josefsson.
23
24 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25
26         * tests/test-glob.c: Include string.h for strcmp prototype.
27
28 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29
30         * modules/getdelim (Depends-on): Add explicit stdint, although it
31         was implicitly already pulled in via realloc-posix.
32         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33
34 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35
36         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37         G. Christensen" <tgc@jupiterrise.com>.
38         * m4/sys_socket_h.m4: Check for sa_family_t.
39         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41         * tests/test-sys_socket.c: Check that sa_family_t works.
42
43 2009-05-18  Eric Blake  <ebb9@byu.net>
44
45         maint.mk: allow gnulib_dir in VPATH build
46         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47
48 2009-05-15  Jim Meyering  <meyering@redhat.com>
49
50         maint.mk: Give gnulib_dir a default definition.
51         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
52         Thus, most packages no longer need to specify this variable in cfg.mk
53
54 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
55
56         rename.m4: fix typos that would make non-mingw cross-configure fail
57         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
58
59 2009-05-13  Eric Blake  <ebb9@byu.net>
60
61         mmap-anon: avoid out-of-order autoconf expansion
62         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
63         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64         * modules/memchr-tests (Depends-on): Add extensions.
65         * modules/memchr2-tests (Depends-on): Add extensions.
66         * modules/memcmp-tests (Depends-on): Add extensions.
67         * modules/memmem-tests (Depends-on): Add extensions.
68         * modules/memrchr-tests (Depends-on): Add extensions.
69
70 2009-05-13  Bruno Haible  <bruno@clisp.org>
71
72         Make some tests ISO C 99 compliant.
73         * tests/zerosize-ptr.h: New file.
74         * tests/test-memchr.c: Include zerosize-ptr.h.
75         (main): Use a zero-size object pointer instead of NULL.
76         * tests/test-memchr2.c: Include zerosize-ptr.h.
77         (main): Use a zero-size object pointer instead of NULL.
78         * tests/test-memcmp.c: Include zerosize-ptr.h.
79         (main): Use a zero-size object pointer instead of NULL.
80         * tests/test-memmem.c: Include zerosize-ptr.h.
81         (main): Use a zero-size object pointer instead of NULL.
82         * tests/test-memrchr.c: Include zerosize-ptr.h.
83         (main): Use a zero-size object pointer instead of NULL.
84         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
85         m4/mmap-anon.m4.
86         (Depends-on): Add getpagesize.
87         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
88         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
89         m4/mmap-anon.m4.
90         (Depends-on): Add getpagesize.
91         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
92         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
93         m4/mmap-anon.m4.
94         (Depends-on): Add getpagesize.
95         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
96         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
97         m4/mmap-anon.m4.
98         (Depends-on): Add getpagesize.
99         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
100         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
101         m4/mmap-anon.m4.
102         (Depends-on): Add getpagesize.
103         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
104
105 2009-05-12  Bruno Haible  <bruno@clisp.org>
106
107         Tests for module 'alignof'.
108         * modules/alignof-tests: New file.
109         * tests/test-alignof.c: New file.
110
111 2009-05-12  Bruno Haible  <bruno@clisp.org>
112
113         Fix alignof macro.
114         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
115         vendor compilers that are always correct.
116
117 2009-05-12  Bruno Haible  <bruno@clisp.org>
118
119         Make the MAP_ANONYMOUS detection work on HP-UX 11.
120         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
121         not whether its fully works.
122
123 2009-05-12  Bruno Haible  <bruno@clisp.org>
124
125         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
126
127 2009-05-12  Jim Meyering  <meyering@redhat.com>
128
129         * top/maint.mk: Adjust backslash alignment.
130
131 2009-05-11  Simon Josefsson  <simon@josefsson.org>
132
133         * top/maint.mk: Make $(srcdir)/build-aux configurable.
134
135 2009-05-11  Eric Blake  <ebb9@byu.net>
136
137         argp: avoid undefined behavior
138         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
139         macros.
140
141 2009-05-08  Simon Josefsson  <simon@josefsson.org>
142
143         * tests/test-vc-list-files-git.sh: Do git config of user.email and
144         user.name to prevent git commit from complaining.
145
146 2009-05-10  Bruno Haible  <bruno@clisp.org>
147
148         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
149         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
150         it rewrites every file name only once.
151         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
152
153 2009-05-08  Bruno Haible  <bruno@clisp.org>
154
155         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
156         instead of 'max'.
157
158 2009-05-08  Simon Josefsson  <simon@josefsson.org>
159
160         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
161         sockaddr_storage test.
162
163 2009-05-07  Simon Josefsson  <simon@josefsson.org>
164
165         * modules/sys_socket (Makefile.am): Substitute
166         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
167         * m4/sys_socket_h.m4: Check for sockaddr_storage.
168         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
169         * tests/test-sys_socket.c: Check sockaddr_storage.
170
171 2009-05-08  Bruno Haible  <bruno@clisp.org>
172
173         New module 'alignof'.
174         * lib/alignof.h: New file.
175         * modules/alignof: New file.
176
177 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
178             Bruno Haible  <bruno@clisp.org>
179
180         Fix test-file-has-acl on FreeBSD.
181         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
182         mask is implicitly added.
183         * tests/test-file-has-acl.c: Include <signal.h>.
184         (main): Terminate the test after 5 seconds.
185         * modules/acl-tests (configure.ac): Check for alarm function.
186
187 2009-05-04  Bruno Haible  <bruno@clisp.org>
188
189         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
190         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
191         * modules/errno (configure.ac): Drop AC_REQUIRE.
192         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
193         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
194
195 2009-05-04  Simon Josefsson  <simon@josefsson.org>
196
197         * modules/glob-tests: New module.
198         * tests/test-glob.c: Add.
199
200 2009-05-04  Simon Josefsson  <simon@josefsson.org>
201
202         * modules/fnmatch-tests: New module.
203         * tests/test-fnmatch.c: Add.
204
205 2009-05-04  Eric Blake  <ebb9@byu.net>
206
207         maint: make the new no-submodule-changes rule VPATH-safe
208         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
209
210 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
211             Bruno Haible  <bruno@clisp.org>
212
213         acl: Fix infinite loop on FreeBSD.
214         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
215         of return value from acl_get_entry.
216         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
217         Likewise.
218
219 2009-05-03  Bruno Haible  <bruno@clisp.org>
220
221         * lib/acl-internal.h (acl_entries): Clarify return value.
222         * lib/acl_entries.c (acl_entries): Likewise.
223
224 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
225
226         Bug fix in acl module.
227         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
228
229 2009-05-03  Bruno Haible  <bruno@clisp.org>
230
231         Create gperf-generated file in the source dir, not in the build dir.
232         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
233         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
234         * modules/unicase/locale-language (unicase/locale-languages.h):
235         Likewise.
236         * modules/unicase/special-casing (unicase/special-casing-table.h):
237         Likewise.
238         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
239         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
240         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
241         Reported by Ralf Wildenhues.
242
243 2009-05-03  Bruno Haible  <bruno@clisp.org>
244
245         * modules/fnmatch (Description, configure.ac): Taken from
246         fnmatch-posix.
247         * modules/fnmatch-posix: Turn into a symbolic reference to the
248         'fnmatch' module, and deprecate.
249         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
250
251 2009-05-03  Bruno Haible  <bruno@clisp.org>
252
253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
254         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
255         Reported by Ralf Wildenhues.
256
257 2009-05-04  Simon Josefsson  <simon@josefsson.org>
258
259         * m4/fnmatch.m4: Fix fnmatch re-define.
260
261 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
262
263         priv-set: new module and tests; adapt write-any-file
264         * lib/priv-set.c: New file.
265         * lib/priv-set.h: New file.
266         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
267         * lib/write-any-file.c: Simplify by using priv-set module.
268         * m4/priv-set.m4: New file.
269         * modules/priv-set: New file.
270         * modules/unlinkdir: Add dependency on priv-set module.
271         * modules/write-any-file: Likewise.
272
273         Tests for module 'priv-set'.
274         * modules/priv-set-tests: New file.
275         * tests/test-priv-set.c: New file.
276
277 2009-05-03  Jim Meyering  <meyering@redhat.com>
278             Bruno Haible  <bruno@clisp.org>
279
280         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
281         use the converted UTF-8 variant of the name instead.
282
283 2009-05-03  Jim Meyering  <meyering@redhat.com>
284
285         tests: tighten some getdate tests
286         * tests/test-getdate.c (main): Tighten tests: require equality,
287         not just greater than.  Set TZ envvar to UTC0.
288
289 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
290
291         getdate: correctly interpret "next monday" when run on a Monday
292         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
293         that e.g., "next tues" (when run on a tuesday) results in a date
294         that is one week in the future, and not today's date.
295         I.e., add a week when the wday is the same as the current one.
296         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
297         and earlier by Martin Bernreuther and Jan Minář.
298         * tests/test-getdate.c (main): Check that "next DAY" is always in
299         the future and that "last DAY" is always in the past.
300
301 2009-05-02  Jim Meyering  <meyering@redhat.com>
302
303         build: ensure that a release build fails when a submodule is unclean
304         * top/maint.mk (no-submodule-changes): New rule.
305         (alpha beta major): Depend on it.
306
307 2009-05-02  Bruno Haible  <bruno@clisp.org>
308
309         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
311         shell variable gl_fnmatch_required to detect which variant is
312         requested.
313         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
314         gl_FUNC_FNMATCH_POSIX.
315         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
316         exclude fnmatch-posix.
317
318 2009-05-02  Bruno Haible  <bruno@clisp.org>
319
320         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
321         * modules/mbsrtowcs (License): Change to LGPLv2+.
322         * modules/strnlen1 (License): Likewise.
323         Reported by Simon Josefsson.
324
325 2009-05-02  Bruno Haible  <bruno@clisp.org>
326
327         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
328         "cross".
329         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
330         gnulib-tool was called with option --source-base=lib.
331
332 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
333
334         Use automake *-local hooks without commands, for extensibility.
335         * modules/localcharset (Makefile.am): Rename install-exec-local
336         rule to install-exec-localcharset, and make it a prerequisite of
337         install-exec-local.  Likewise, rename the uninstall-local rule to
338         uninstall-localcharset, and make it a prerequisite of the former.
339
340 2009-05-01  Bruno Haible  <bruno@clisp.org>
341
342         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
343         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
344         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
346         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
347         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
348         m4/locale-zh.m4, m4/codeset.m4.
349
350         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
351         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
352         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
353         m4/locale-zh.m4.
354
355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
356         REPLACE_WCRTOMB if mbstate_t must be replaced.
357         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
358         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
359
360 2009-05-01  Bruno Haible  <bruno@clisp.org>
361
362         Avoid compiler warnings when redefining macros defined by <libintl.h>.
363         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
364         dngettext, dcngettext, textdomain, bindtextdomain,
365         bind_textdomain_codeset): Undefine before redefining.
366
367 2009-04-30  Bruno Haible  <bruno@clisp.org>
368
369         Fix bug introduced on 2009-04-25.
370         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
371         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
372         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
373         is defined.
374         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
375         is defined.
376         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
377         is defined.
378         Reported by Elbert_Pol <elbert.pol@gmail.com>.
379
380 2009-04-28  Bruno Haible  <bruno@clisp.org>
381
382         Comment tweaks.
383         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
384         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
385         * lib/unicase.h (u*_casexfrm): Likewise.
386         Reported by Paolo Bonzini.
387
388 2009-04-28  Bruno Haible  <bruno@clisp.org>
389
390         Fix a compilation error.
391         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
392         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
393         Reported by Jim Meyering.
394
395 2009-04-27  Bruno Haible  <bruno@clisp.org>
396
397         New module 'libunistring'.
398         * modules/libunistring: New file.
399         * m4/libunistring.m4: New file.
400         * MODULES.html.sh (Unicode string functions): Add it.
401
402 2009-04-27  Eric Blake  <ebb9@byu.net>
403
404         maint.mk: allow package-specific header to provide <config.h>
405         * top/maint.mk (sc_require_config_h): New variable.
406         (sc_require_config_h, sc_require_config_h_first): Use it.
407
408 2009-04-27  Simon Josefsson  <simon@josefsson.org>
409
410         * top/maint.mk (sc_avoid_if_before_free): Except
411         useless-if-before-free script.
412
413 2009-04-27  Eric Blake  <ebb9@byu.net>
414
415         maintainer-makefile: depend on all required helper scripts
416         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
417         useless-if-before-free.
418         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
419         version, rather than assuming gnulib checkout is available.
420         Reported by Simen Josefsson.
421
422 2009-04-26  Bruno Haible  <bruno@clisp.org>
423
424         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
425         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
426         "../" or "..".
427
428 2009-04-26  Bruno Haible  <bruno@clisp.org>
429
430         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
431         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
432         AC_LIB_HAVE_LINKFLAGS.
433
434 2009-04-26  Bruno Haible  <bruno@clisp.org>
435
436         Simplify calling convention of u*_conv_from_encoding.
437         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
438         u32_conv_from_encoding): Expect a resultbuf argument and return the
439         result directly as a pointer.
440         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
441         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
442         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
443         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
444         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
445         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
446         Update.
447         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
448         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
449         * lib/vasnprintf.c (VASNPRINTF): Update.
450         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
451         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
452         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
453         * NEWS: Mention the change.
454
455 2009-04-26  Bruno Haible  <bruno@clisp.org>
456
457         Simplify calling convention of u*_conv_to_encoding.
458         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
459         u32_conv_to_encoding): Expect a resultbuf argument and return the
460         result directly as a pointer.
461         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
462         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
463         freeing scaled_offsets if mem_iconveha failed.
464         * lib/unicase/u-casexfrm.h (FUNC): Update.
465         * lib/uninorm/u-normxfrm.h (FUNC): Update.
466         * lib/vasnprintf.c (VASNPRINTF): Update.
467         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
468         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
469         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
470         * NEWS: Mention the change.
471
472 2009-04-26  Bruno Haible  <bruno@clisp.org>
473
474         Avoid test failures on AIX and OSF/1.
475         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
476         malloc(0).
477         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
478         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
479         Likewise.
480         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
481         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
482         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
483         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
484         * doc/posix-functions/malloc.texi: Document the portability problem
485         related to malloc(0).
486
487 2009-04-26  Bruno Haible  <bruno@clisp.org>
488
489         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
490         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
491         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
492
493 2009-04-25  Bruno Haible  <bruno@clisp.org>
494
495         Avoid link error when creating a namespace clean library.
496         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
497         as macro with arguments if already defined as an alias.
498         * lib/signbitf.c (gl_signbitf): Don't undefine.
499         * lib/signbitd.c (gl_signbitd): Don't undefine.
500         * lib/signbitl.c (gl_signbitl): Don't undefine.
501
502 2009-04-25  Jim Meyering  <meyering@redhat.com>
503
504         vc-list-files: fix another quoting bug
505         * build-aux/vc-list-files: Avoid sed backslash expansion
506         of pathological directory names.
507
508 2009-04-25  Eric Blake  <ebb9@byu.net>
509
510         vc-list-files: fix shell quoting error
511         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
512         timestamp.
513
514 2009-04-25  Jim Meyering  <meyering@redhat.com>
515
516         vc-list-files: restore lost functionality with subdir argument
517         * build-aux/vc-list-files: When given a non-"." sub-directory
518         argument, substitute the $dir/ prefix back onto each resulting name.
519         Otherwise, coreutils' root_tests check would fail.
520
521 2009-04-24  Eric Blake  <ebb9@byu.net>
522
523         vc-list-files: ignore git symlinks
524         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
525         than ls-files, to ignore git symlinks.
526
527         maint.mk: import improvements from m4
528         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
529         (move_if_change): Delete unused macro.
530         (news-date-check, vc-diff-check): Support VPATH builds.
531         (announcement): Likewise.  Split --bootstrap-tools list...
532         (boostrap-tools): ...into separate list, which can be overridden
533         in cfg.mk.
534         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
535         requiring dependency on useless-if-before-free module.
536         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
537         Support VPATH builds.
538
539 2009-04-24  Jim Meyering  <meyering@redhat.com>
540
541         maint.mk: remove coreutils-specific rules and variables
542         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
543         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
544         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
545
546         maint.mk: remove obsolete rule
547         * top/maint.mk (rel-check): Remove rule.
548         (WGET, WGETFLAGS): Remove now-unused variables.
549
550 2009-04-24  Simon Josefsson  <simon@josefsson.org>
551
552         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
553         consistency.
554
555         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
556         '$(PATH_SEPARATOR)' instead of ':'.
557
558 2009-04-24  Simon Josefsson  <simon@josefsson.org>
559
560         * lib/getopt1.c (main): Use 'const' for static array.
561
562 2009-04-24  Simon Josefsson  <simon@josefsson.org>
563
564         * top/maint.mk: Sync with coreutils.
565         * NEWS: Explain incompatibilities.
566
567 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
568             Bruno Haible  <bruno@clisp.org>
569
570         Fix cross-compilation results.
571         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
572         statement, as third argument of AC_TRY_RUN.
573         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
574         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
575         Likewise.
576         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
577         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
578         Likewise.
579         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
581         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
582
583 2009-04-20  Bruno Haible  <bruno@clisp.org>
584
585         Avoid test failure on mingw.
586         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
587
588 2009-04-20  Bruno Haible  <bruno@clisp.org>
589
590         Avoid compilation error on mingw.
591         * modules/localename-tests (Depends-on): Add locale.
592
593 2009-04-19  Bruno Haible  <bruno@clisp.org>
594
595         Support for building a shared library on Windows platforms.
596         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
597         (main): Test the presence of UNINORM_NFC here.
598         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
599         (main): Test the presence of UNINORM_NFD here.
600         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
601         (main): Test the presence of UNINORM_NFKC here.
602         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
603         (main): Test the presence of UNINORM_NFKD here.
604
605 2009-04-19  Bruno Haible  <bruno@clisp.org>
606
607         Avoid a compiler warning.
608         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
609         Change type of variable 'sequence'.
610
611 2009-04-19  Bruno Haible  <bruno@clisp.org>
612
613         * modules/configmake (Makefile.am): When the contents of configmake.h
614         does not change, arrange to preserve its modification time.
615
616 2009-04-17  Simon Josefsson  <simon@josefsson.org>
617
618         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
619         gettext domain.
620
621 2009-04-16  Jim Meyering  <meyering@redhat.com>
622
623         useless-if-before-free: improve conversion code
624         * build-aux/useless-if-before-free: Adjust code-in-comment to match
625         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
626
627 2009-04-14  Bruno Haible  <bruno@clisp.org>
628
629         * modules/fcntl (Depends-on): Add extensions.
630         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
631
632 2009-04-12  Ben Pfaff  <blp@gnu.org>
633
634         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
635         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
636
637 2009-03-20  Ben Pfaff  <blp@gnu.org>
638
639         Make rename replace existing destinations on Windows.
640         * m4/rename.m4: Add test for Mingw.
641         * lib/rename.c: Add rename replacement that uses MoveFileEx with
642         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
643         * doc/posix-functions/rename.texi: Document.
644
645 2009-04-10  Bruno Haible  <bruno@clisp.org>
646
647         New include file "iconveh.h".
648         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
649         * lib/striconveh.h: Include it.
650         (enum iconv_ilseq_handler): Remove definition.
651         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
652         striconveh.h.
653         * lib/striconveha.c: Include striconveh.h.
654         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
655         * modules/striconveh (Files): Add lib/iconveh.h.
656         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
657         lib/striconveh.h.
658
659 2009-04-10  Bruno Haible  <bruno@clisp.org>
660
661         * lib/uniconv.h: Update comment.
662
663 2009-04-10  Bruno Haible  <bruno@clisp.org>
664
665         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
666         always.
667         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
668         * lib/unistr/u16-mbtouc-aux.c: Likewise.
669         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
670         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
671         "unistring-notinline.h", so that the function gets defined always.
672         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
673         * lib/unistr/u8-uctomb.c: Likewise.
674         * lib/unistr/u16-mbtouc.c: Likewise.
675         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
676         * lib/unistr/u16-uctomb.c: Likewise.
677         * lib/unistr/u32-mbtouc.c: Likewise.
678         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
679         * lib/unistr/u32-uctomb.c: Likewise.
680
681 2009-04-10  Bruno Haible  <bruno@clisp.org>
682
683         Mark 'utime' obsolete.
684         * modules/utime (Status, Notice): New sections.
685         Suggested by Jim Meyering.
686
687         Fix cross-compile guess for utime test.
688         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
689         autoconf.
690         * doc/posix-functions/utime.texi: Give more precisions.
691         Reported by Jan <ipif@ymail.com>.
692
693 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
694
695         filevercmp: correct today's change
696         * lib/filevercmp.c: Also handle coreutils' test inputs.
697         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
698
699         Fix regression in 'filevercmp' module. Thanks Sven Joachim
700         for reporting it.
701         * lib/filevercmp.c: Special handle for "", "." and "..".
702         * tests/test-filevercmp.c: Enlarge the set suite.
703
704 2009-04-07  Jim Meyering  <meyering@redhat.com>
705
706         useless-if-before-free: show how to remove braced useless free, too
707         * build-aux/useless-if-before-free: still only in a comment, though.
708
709 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
710
711         maint.mk: import changes to syntax-check macros from coreutils
712         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
713         Use them in the relevant macros.
714
715 2009-04-06  Bruno Haible  <bruno@clisp.org>
716
717         Fix unportable use of bit-fields.
718         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
719         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
720         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
721
722 2009-04-06  Bruno Haible  <bruno@clisp.org>
723
724         Avoid test failures on AIX and OSF/1.
725         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
726         that malloc(0) = NULL.
727         * tests/unicase/test-u8-tolower.c (check): Likewise.
728         * tests/unicase/test-u8-totitle.c (check): Likewise.
729         * tests/unicase/test-u8-toupper.c (check): Likewise.
730         * tests/unicase/test-u16-casefold.c (check): Likewise.
731         * tests/unicase/test-u16-tolower.c (check): Likewise.
732         * tests/unicase/test-u16-totitle.c (check): Likewise.
733         * tests/unicase/test-u16-toupper.c (check): Likewise.
734         * tests/unicase/test-u32-casefold.c (check): Likewise.
735         * tests/unicase/test-u32-tolower.c (check): Likewise.
736         * tests/unicase/test-u32-totitle.c (check): Likewise.
737         * tests/unicase/test-u32-toupper.c (check): Likewise.
738         * tests/uninorm/test-u8-nfc.c (check): Likewise.
739         * tests/uninorm/test-u8-nfd.c (check): Likewise.
740         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
741         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
742         * tests/uninorm/test-u16-nfc.c (check): Likewise.
743         * tests/uninorm/test-u16-nfd.c (check): Likewise.
744         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
745         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
746         * tests/uninorm/test-u32-nfc.c (check): Likewise.
747         * tests/uninorm/test-u32-nfd.c (check): Likewise.
748         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
749         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
750
751 2009-04-05  Bruno Haible  <bruno@clisp.org>
752
753         Work around an autoconf limitation.
754         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
755         comment line if it would be longer than 3 KB.
756
757 2009-04-05  Bruno Haible  <bruno@clisp.org>
758
759         Avoid test failure with libiconv-1.13.
760         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
761         of the expected test results.
762
763 2009-04-05  Bruno Haible  <bruno@clisp.org>
764
765         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
766         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
767         that it should be installed.
768
769 2009-04-05  Bruno Haible  <bruno@clisp.org>
770
771         * gnulib-tool: New option --copy-file.
772         (func_usage): Document it.
773         (func_dest_tmpfilename): Moved out of func_import.
774         (func_add_file, func_update_file): New functions, extracted from
775         func_import.
776         (func_import): Update.
777
778 2009-04-05  Karl Berry  <karl@gnu.org>
779
780         * README: prominently mention gnulib-tool.
781         Rearrange sections so getting the code is near the top.
782
783 2009-04-05  Bruno Haible  <bruno@clisp.org>
784
785         * lib/unicase.h: Mention u*_cmp2.
786         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
787         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
788         * lib/unicase/ulc-casecmp.c: Likewise.
789         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
790         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
791         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
792         unistr/u8-cmp.
793         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
794         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
795         unistr/u16-cmp.
796         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
797         unistr/u32-cmp.
798
799         * lib/uninorm.h: Mention u*_cmp2.
800         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
801         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
802         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
803         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
804         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
805         unistr/u8-cmp.
806         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
807         unistr/u16-cmp.
808         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
809         unistr/u32-cmp.
810
811         New module 'unistr/u32-cmp2'.
812         * lib/unistr/u32-cmp2.c: New file.
813         * modules/unistr/u32-cmp2: New file.
814
815         New module 'unistr/u16-cmp2'.
816         * lib/unistr/u16-cmp2.c: New file.
817         * modules/unistr/u16-cmp2: New file.
818
819         New module 'unistr/u8-cmp2'.
820         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
821         * lib/unistr/u8-cmp2.c: New file.
822         * lib/unistr/u-cmp2.h: New file.
823         * modules/unistr/u8-cmp2: New file.
824
825 2009-04-05  Bruno Haible  <bruno@clisp.org>
826
827         * lib/unictype.h (uc_property_is_valid): New macro.
828         * tests/unictype/test-pr_byname.c (main): Use it.
829
830         * lib/unistr.h: Doc fixes.
831         * lib/uniconv.h: Doc fixes.
832         * lib/unictype.h: Doc fixes.
833
834 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
835
836         Port coreutils 7.2 to Solaris 8.
837
838         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
839         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
840         for Solaris 8.  This is a bit of a hack, as it means it's the
841         caller's responsibility to add -lnsl if needed, but most likely it
842         won't be needed since only getaddrinfo uses this and getaddrinfo
843         isn't needed on Solaris 8.
844
845         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
846         problem to Solaris 8 encountered with coreutils 7.2, which
847         resulted in a message "fnmatch.c:292: warning: passing argument 4
848         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
849         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
850
851 2009-04-03  Simon Josefsson  <simon@josefsson.org>
852
853         * m4/ld-version-script.m4: Add FIXME comment.
854
855 2009-04-02  Simon Josefsson  <simon@josefsson.org>
856
857         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
858         SOVERSION variable.
859
860 2009-04-02  Bruno Haible  <bruno@clisp.org>
861
862         * Makefile (info, html, dvi, pdf): Combine the rules.
863         Suggested by Jim Meyering.
864
865 2009-04-01  Bruno Haible  <bruno@clisp.org>
866
867         * Makefile (info, html, dvi, pdf): New targets.
868         Reported by Reuben Thomas <rrt@sc3d.org>.
869
870 2009-04-01  Bruno Haible  <bruno@clisp.org>
871
872         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
873         can be put into PATH.
874         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
875
876 2009-04-01  Bruno Haible  <bruno@clisp.org>
877
878         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
879
880 2009-04-01  Bruno Haible  <bruno@clisp.org>
881
882         Rename module 'visibility'.
883         * modules/lib-symbol-visibility: Renamed from modules/visibility.
884         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
885         * doc/gnulib.texi: Update.
886         * MODULES.html.sh (Misc): Update.
887         * NEWS: Mention the change.
888
889 2009-04-01  Simon Josefsson  <simon@josefsson.org>
890
891         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
892         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
893         Eric Blake <ebb9@byu.net> for review.
894         * MODULES.html.sh: Add lib-msvc-compat.
895         * doc/gnulib.texi: Link to new section.
896         * m4/ld-output-def.m4: New file.
897         * doc/ld-output-def.texi: New file.
898
899 2009-04-01  Simon Josefsson  <simon@josefsson.org>
900
901         Rename ld-version-script to lib-symbol-versions.  Suggested by
902         Bruno Haible <bruno@clisp.org>.
903         * modules/ld-version-script: Renamed to lib-symbol-versions.
904         * doc/ld-version-script.texi: Fix module name.
905         * MODULES.html.sh: Add lib-symbol-versions.
906
907 2009-03-31  Simon Josefsson  <simon@josefsson.org>
908
909         * modules/u64-tests: New file.
910         * tests/test-u64.c: New file.
911
912 2009-03-04  Simon Josefsson  <simon@josefsson.org>
913
914         * MODULES.html.sh: Mention u64.
915         * modules/u64: New module.
916         * modules/crypto/sha512: Depend on u64 module instead of providing
917         u64.h.
918
919 2009-03-27  Eric Blake  <ebb9@byu.net>
920
921         test-strerror: make debugging EAI_SYSTEM easier
922         * modules/getaddrinfo-tests (Depends-on): Add strerror.
923         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
924         failure was EAI_SYSTEM.
925
926 2009-03-25  Bruno Haible  <bruno@clisp.org>
927
928         Fix a problem with --enable-relocatable on Solaris 7.
929         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
930         since 2008-02-24.
931
932 2009-03-25  Eric Blake  <ebb9@byu.net>
933
934         test-sockets: avoid gcc warning
935         * tests/test-sockets.c (main): Silence compiler warning.
936
937 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
938
939         New modules nproc, pthread, contributed by Glen Lenker.
940
941         * MODULES.html.sh: Add pthread, nproc.
942         * lib/nproc.c: New file.
943         * lib/nproc.h: New file.
944         * lib/pthread.in.h: New file.
945         * m4/pthread.m4: New file.
946         * modules/nproc: New file.
947         * modules/pthread: New file.
948
949 2009-03-24  Simon Josefsson  <simon@josefsson.org>
950
951         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
952         New variable.
953
954 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
955
956         filevercmp: handle simple~ and numbered.~3~ backup suffixes
957         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
958         * tests/test-filevercmp.c: Add tests for backup suffixes.
959
960 2009-03-24  Simon Josefsson  <simon@josefsson.org>
961
962         * modules/stdlib (Depends-on): Add stdint, needed when defining
963         struct random_data on, for example, HP-UX 10.20.  Reported by
964         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
965
966 2009-03-24  Simon Josefsson  <simon@josefsson.org>
967
968         * lib/readline.c (readline): Call fflush on stdout after printing
969         prompt.
970
971 2009-03-20  Bruno Haible  <bruno@clisp.org>
972
973         Remove dependency from 'close' module to -lws2_32 on native Windows.
974         * lib/close-hook.h: New file.
975         * lib/close-hook.c: New file.
976         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
977         w32sock.h.
978         (_gl_close_fd_maybe_socket): Remove function.
979         (rpl_close): Invoke execute_all_close_hooks instead of
980         _gl_close_fd_maybe_socket.
981         * lib/sockets.c: Include close-hook.h, w32sock.h.
982         (close_fd_maybe_socket): New function, essentially from lib/close.c.
983         (close_sockets_hook): New variable.
984         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
985         (gl_sockets_cleanup): Unregister it.
986         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
987         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
988         * modules/close-hook: New file.
989         * modules/close (Files): Remove lib/w32sock.h.
990         (Depends-on): Add close-hook.
991         (Link): Remove section.
992         * modules/sockets (Files): Add lib/w32sock.h.
993         (Depends-on): Add close-hook.
994         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
995         invocation.
996         * NEWS: Mention that LIB_CLOSE is gone.
997
998 2009-03-23  Eric Blake  <ebb9@byu.net>
999
1000         signal-tests: test previous patch
1001         * tests/test-signal.c: New file.
1002         * modules/signal-tests: Likewise.
1003
1004         signal.h: always support 'volatile sig_atomic_t'
1005         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
1006         (gl_SIGNAL_H_DEFAULTS): Add a default.
1007         * modules/signal (Makefile.am): Substitute if needed.
1008         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
1009         users can blindly add volatile.
1010         * doc/posix-headers/signal.texi (signal.h): Document it.
1011         Reported by Matthew Woehlke.
1012
1013 2009-03-23  Jim Meyering  <meyering@redhat.com>
1014
1015         pathmax: PATH_MAX: use pathconf only when available
1016         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
1017         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
1018         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
1019         This avoids a link failure in a PSP cross-compilation environment
1020         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
1021
1022         * lib/vasnprintf.c (divide): Fix typo in comment.
1023
1024 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1025
1026         * gnulib-tool (func_filter_filelist): Fix comment.
1027
1028 2009-03-20  Bruno Haible  <bruno@clisp.org>
1029
1030         Make sockets.h self-contained.
1031         * lib/sockets.c: Include sockets.h first.
1032         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
1033
1034 2009-03-19  Eric Blake  <ebb9@byu.net>
1035
1036         doc: mention more functions added in cygwin 1.7.0
1037         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
1038         addition.
1039         * doc/posix-functions/log2f.texi: Likewise.
1040
1041 2009-03-19  Jim Meyering  <meyering@redhat.com>
1042
1043         fsusage: avoid syntax error due to statement-before-declaration
1044         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
1045         after all declarations.  Reported by Matthew Woehlke in
1046         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
1047
1048 2009-03-18  Eric Blake  <ebb9@byu.net>
1049
1050         build-aux/compile: sync from automake
1051         * build-aux/compile: New file, from automake.
1052         * config/srclist.txt: Mention build-aux/compile.
1053
1054 2009-03-17  Bruno Haible  <bruno@clisp.org>
1055
1056         * lib/git-merge-changelog.c: Fix typo in comment.
1057         Reported by Reuben Thomas <rrt@sc3d.org>.
1058
1059 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
1060
1061         * m4/regex.m4: update and improve help for
1062         --without-included-regex.
1063
1064 2009-03-17  Simon Josefsson  <simon@josefsson.org>
1065
1066         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
1067         failure on missing include files.
1068
1069 2009-03-17  Eric Blake  <ebb9@byu.net>
1070
1071         doc: mention more functions added in cygwin 1.7.0
1072         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
1073         addition.
1074         * doc/posix-functions/fwscanf.texi: Likewise.
1075         * doc/posix-functions/swprintf.texi: Likewise.
1076         * doc/posix-functions/swscanf.texi: Likewise.
1077         * doc/posix-functions/vfwprintf.texi: Likewise.
1078         * doc/posix-functions/vfwscanf.texi: Likewise.
1079         * doc/posix-functions/vswprintf.texi: Likewise.
1080         * doc/posix-functions/vswscanf.texi: Likewise.
1081         * doc/posix-functions/vwprintf.texi: Likewise.
1082         * doc/posix-functions/vwscanf.texi: Likewise.
1083         * doc/posix-functions/wcscasecmp.texi: Likewise.
1084         * doc/posix-functions/wcsdup.texi: Likewise.
1085         * doc/posix-functions/wcsftime.texi: Likewise.
1086         * doc/posix-functions/wcsncasecmp.texi: Likewise.
1087         * doc/posix-functions/wprintf.texi: Likewise.
1088         * doc/posix-functions/wscanf.texi: Likewise.
1089         * doc/glibc-functions/gethostbyname2.texi: Likewise.
1090
1091 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1092
1093         maint.mk: really add $(AM_MAKEFLAGS)
1094         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
1095         was inadvertently omitted in the last commit.
1096         Spotted by Bruno Haible.
1097
1098         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
1099         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
1100         $(AM_MAKEFLAGS)' rather than plain `make'.
1101
1102         gnulib-tool: execute $MAKE not make
1103         * gnulib-tool: Default $MAKE to 'make'.
1104         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
1105         than make.  Initialize $MAKE in the do-autobuild script.
1106
1107         gnulib-tool: use $MAKE not make in generated files
1108         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
1109         make, in generated files.  Initialize $MAKE in the do-autobuild
1110         script.
1111
1112         * top/GNUmakefile (_have-git-version-gen): Fix typo.
1113
1114         GNUmakefile: disable parallelism only for multiple, recursive targets
1115         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
1116         additions in the Makefile.
1117         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
1118         by Automake.
1119         (.NOTPARALLEL): Only disable parallel builds if multiple targets
1120         are listed on the command line and at least one of them is
1121         listed in $(ALL_RECURSIVE_TARGETS).
1122
1123 2009-03-14  Bruno Haible  <bruno@clisp.org>
1124
1125         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
1126         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
1127         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
1128         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
1129         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
1130         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
1131         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
1132         unistr/u8-uctomb.
1133         * modules/unistr/u8-strchr (Depends-on): Likewise.
1134         * modules/unistr/u8-strrchr (Depends-on): Likewise.
1135         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
1136         unistr/u16-uctomb.
1137         * modules/unistr/u16-strchr (Depends-on): Likewise.
1138         * modules/unistr/u16-strrchr (Depends-on): Likewise.
1139
1140 2009-03-12  Bruno Haible  <bruno@clisp.org>
1141
1142         Work around select() bug on Interix 3.5.
1143         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
1144         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
1145         * m4/select.m4: New file.
1146         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
1147         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
1148         * modules/select (Files): Add m4/select.m4.
1149         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
1150         * modules/nanosleep (Depends-on): Add select.
1151         * modules/poll (Depends-on): Likewise.
1152         * doc/posix-functions/select.texi: Mention the Interix bug.
1153         Reported by Markus Duft <mduft@gentoo.org>.
1154
1155         * lib/select.c: Renamed from lib/winsock-select.c.
1156         * modules/select (Files): Add lib/select.c, remove
1157         lib/winsock-select.c.
1158         (configure.ac): Update.
1159
1160 2009-03-12  Jim Meyering  <meyering@redhat.com>
1161
1162         avoid gcc warnings about unused macro definitions
1163         * lib/readtokens.c (STREQ): Remove unused definition.
1164         * lib/xmalloc.c (SIZE_MAX): Likewise.
1165         * lib/openat-die.c (N_): Likewise.
1166         * lib/mountlist.c (SIZE_MAX): Remove definition.
1167         Instead, include <stdint.h>.
1168         * lib/readutmp.c: Likewise.
1169         * modules/readutmp (Depends-on): Add stdint.
1170         * modules/mountlist (Depends-on): Add stdint.
1171         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
1172
1173 2009-03-10  Bruno Haible  <bruno@clisp.org>
1174
1175         Tests for module 'mbmemcasecoll'.
1176         * modules/mbmemcasecoll-tests: New file.
1177         * tests/test-mbmemcasecoll1.sh: New file.
1178         * tests/test-mbmemcasecoll2.sh: New file.
1179         * tests/test-mbmemcasecoll3.sh: New file.
1180         * tests/test-mbmemcasecoll.c: New file.
1181
1182         New module 'mbmemcasecoll'.
1183         * lib/mbmemcasecoll.h: New file.
1184         * lib/mbmemcasecoll.c: New file.
1185         * modules/mbmemcasecoll: New file.
1186
1187         * tests/test-mbmemcasecmp.h: New file, extracted from
1188         tests/test-mbmemcasecmp.c.
1189         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
1190         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
1191         (main): Update.
1192         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
1193
1194 2009-03-09  Bruno Haible  <bruno@clisp.org>
1195
1196         Tests for module 'mbmemcasecmp'.
1197         * modules/mbmemcasecmp-tests: New file.
1198         * tests/test-mbmemcasecmp1.sh: New file.
1199         * tests/test-mbmemcasecmp2.sh: New file.
1200         * tests/test-mbmemcasecmp3.sh: New file.
1201         * tests/test-mbmemcasecmp.c: New file.
1202
1203         New module 'mbmemcasecmp'.
1204         * lib/mbmemcasecmp.h: New file.
1205         * lib/mbmemcasecmp.c: New file.
1206         * modules/mbmemcasecmp: New file.
1207
1208 2009-03-09  Bruno Haible  <bruno@clisp.org>
1209
1210         Tests for module 'unicase/ulc-casecoll'.
1211         * modules/unicase/ulc-casecoll-tests: New file.
1212         * tests/unicase/test-ulc-casecoll1.sh: New file.
1213         * tests/unicase/test-ulc-casecoll2.sh: New file.
1214         * tests/unicase/test-ulc-casecoll.c: New file.
1215
1216         New module 'unicase/ulc-casecoll'.
1217         * lib/unicase.h (ulc_casecoll): New declaration.
1218         * lib/unicase/ulc-casecoll.c: New file.
1219         * modules/unicase/ulc-casecoll: New file.
1220
1221         New module 'unicase/ulc-casexfrm'.
1222         * lib/unicase.h (ulc_casexfrm): New declaration.
1223         * lib/unicase/ulc-casexfrm.c: New file.
1224         * modules/unicase/ulc-casexfrm: New file.
1225
1226 2009-03-09  Bruno Haible  <bruno@clisp.org>
1227
1228         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
1229         invocations.
1230
1231         * m4/mbscasecmp.m4: Remove file.
1232         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
1233         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
1234
1235         * m4/mbscasestr.m4: Remove file.
1236         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
1237         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
1238
1239         * m4/mbschr.m4: Remove file.
1240         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
1241         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
1242
1243         * m4/mbscspn.m4: Remove file.
1244         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
1245         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
1246
1247         * m4/mbslen.m4: Remove file.
1248         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
1249         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
1250
1251         * m4/mbsncasecmp.m4: Remove file.
1252         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
1253         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
1254
1255         * m4/mbsnlen.m4: Remove file.
1256         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
1257         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
1258
1259         * m4/mbspbrk.m4: Remove file.
1260         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
1261         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
1262
1263         * m4/mbspcasecmp.m4: Remove file.
1264         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
1265         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
1266
1267         * m4/mbsrchr.m4: Remove file.
1268         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
1269         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
1270
1271         * m4/mbssep.m4: Remove file.
1272         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
1273         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
1274
1275         * m4/mbsspn.m4: Remove file.
1276         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
1277         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
1278
1279         * m4/mbsstr.m4: Remove file.
1280         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
1281         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
1282
1283         * m4/mbstok_r.m4: Remove file.
1284         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
1285         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
1286
1287         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
1288
1289         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
1290         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
1291
1292         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
1293
1294 2009-03-08  Bruno Haible  <bruno@clisp.org>
1295
1296         Tests for module 'unicase/ulc-casecmp'.
1297         * modules/unicase/ulc-casecmp-tests: New file.
1298         * tests/unicase/test-ulc-casecmp1.sh: New file.
1299         * tests/unicase/test-ulc-casecmp2.sh: New file.
1300         * tests/unicase/test-ulc-casecmp.c: New file.
1301
1302         New module 'unicase/ulc-casecmp'.
1303         * lib/unicase.h (ulc_casecmp): New declaration.
1304         * lib/unicase/ulc-casecmp.c: New file.
1305         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
1306         'const SRC_UNIT *'.
1307         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
1308         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
1309         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
1310         * modules/unicase/ulc-casecmp: New file.
1311
1312         Tests for module 'unicase/u32-is-cased'.
1313         * modules/unicase/u32-is-cased-tests: New file.
1314         * tests/unicase/test-u32-is-cased.c: New file.
1315
1316         Tests for module 'unicase/u16-is-cased'.
1317         * modules/unicase/u16-is-cased-tests: New file.
1318         * tests/unicase/test-u16-is-cased.c: New file.
1319
1320         Tests for module 'unicase/u8-is-cased'.
1321         * modules/unicase/u8-is-cased-tests: New file.
1322         * tests/unicase/test-u8-is-cased.c: New file.
1323         * tests/unicase/test-is-cased.h: New file.
1324
1325         New module 'unicase/u32-is-cased'.
1326         * lib/unicase/u32-is-cased.c: New file.
1327         * modules/unicase/u32-is-cased: New file.
1328
1329         New module 'unicase/u16-is-cased'.
1330         * lib/unicase/u16-is-cased.c: New file.
1331         * modules/unicase/u16-is-cased: New file.
1332
1333         New module 'unicase/u8-is-cased'.
1334         * lib/unicase/u8-is-cased.c: New file.
1335         * lib/unicase/u-is-cased.h: New file.
1336         * modules/unicase/u8-is-cased: New file.
1337
1338         Tests for module 'unicase/u32-is-casefolded'.
1339         * modules/unicase/u32-is-casefolded-tests: New file.
1340         * tests/unicase/test-u32-is-casefolded.c: New file.
1341
1342         Tests for module 'unicase/u16-is-casefolded'.
1343         * modules/unicase/u16-is-casefolded-tests: New file.
1344         * tests/unicase/test-u16-is-casefolded.c: New file.
1345
1346         Tests for module 'unicase/u8-is-casefolded'.
1347         * modules/unicase/u8-is-casefolded-tests: New file.
1348         * tests/unicase/test-u8-is-casefolded.c: New file.
1349         * tests/unicase/test-is-casefolded.h: New file.
1350
1351         New module 'unicase/u32-is-casefolded'.
1352         * lib/unicase/u32-is-casefolded.c: New file.
1353         * modules/unicase/u32-is-casefolded: New file.
1354
1355         New module 'unicase/u16-is-casefolded'.
1356         * lib/unicase/u16-is-casefolded.c: New file.
1357         * modules/unicase/u16-is-casefolded: New file.
1358
1359         New module 'unicase/u8-is-casefolded'.
1360         * lib/unicase/u8-is-casefolded.c: New file.
1361         * modules/unicase/u8-is-casefolded: New file.
1362
1363         Tests for module 'unicase/u32-is-titlecase'.
1364         * modules/unicase/u32-is-titlecase-tests: New file.
1365         * tests/unicase/test-u32-is-titlecase.c: New file.
1366
1367         Tests for module 'unicase/u16-is-titlecase'.
1368         * modules/unicase/u16-is-titlecase-tests: New file.
1369         * tests/unicase/test-u16-is-titlecase.c: New file.
1370
1371         Tests for module 'unicase/u8-is-titlecase'.
1372         * modules/unicase/u8-is-titlecase-tests: New file.
1373         * tests/unicase/test-u8-is-titlecase.c: New file.
1374         * tests/unicase/test-is-titlecase.h: New file.
1375
1376         New module 'unicase/u32-is-titlecase'.
1377         * lib/unicase/u32-is-titlecase.c: New file.
1378         * modules/unicase/u32-is-titlecase: New file.
1379
1380         New module 'unicase/u16-is-titlecase'.
1381         * lib/unicase/u16-is-titlecase.c: New file.
1382         * modules/unicase/u16-is-titlecase: New file.
1383
1384         New module 'unicase/u8-is-titlecase'.
1385         * lib/unicase/u8-is-titlecase.c: New file.
1386         * modules/unicase/u8-is-titlecase: New file.
1387
1388         Tests for module 'unicase/u32-is-lowercase'.
1389         * modules/unicase/u32-is-lowercase-tests: New file.
1390         * tests/unicase/test-u32-is-lowercase.c: New file.
1391
1392         Tests for module 'unicase/u16-is-lowercase'.
1393         * modules/unicase/u16-is-lowercase-tests: New file.
1394         * tests/unicase/test-u16-is-lowercase.c: New file.
1395
1396         Tests for module 'unicase/u8-is-lowercase'.
1397         * modules/unicase/u8-is-lowercase-tests: New file.
1398         * tests/unicase/test-u8-is-lowercase.c: New file.
1399         * tests/unicase/test-is-lowercase.h: New file.
1400
1401         New module 'unicase/u32-is-lowercase'.
1402         * lib/unicase/u32-is-lowercase.c: New file.
1403         * modules/unicase/u32-is-lowercase: New file.
1404
1405         New module 'unicase/u16-is-lowercase'.
1406         * lib/unicase/u16-is-lowercase.c: New file.
1407         * modules/unicase/u16-is-lowercase: New file.
1408
1409         New module 'unicase/u8-is-lowercase'.
1410         * lib/unicase/u8-is-lowercase.c: New file.
1411         * modules/unicase/u8-is-lowercase: New file.
1412
1413         Tests for module 'unicase/u32-is-uppercase'.
1414         * modules/unicase/u32-is-uppercase-tests: New file.
1415         * tests/unicase/test-u32-is-uppercase.c: New file.
1416
1417         Tests for module 'unicase/u16-is-uppercase'.
1418         * modules/unicase/u16-is-uppercase-tests: New file.
1419         * tests/unicase/test-u16-is-uppercase.c: New file.
1420
1421         Tests for module 'unicase/u8-is-uppercase'.
1422         * modules/unicase/u8-is-uppercase-tests: New file.
1423         * tests/unicase/test-u8-is-uppercase.c: New file.
1424         * tests/unicase/test-is-uppercase.h: New file.
1425
1426         New module 'unicase/u32-is-uppercase'.
1427         * lib/unicase/u32-is-uppercase.c: New file.
1428         * modules/unicase/u32-is-uppercase: New file.
1429
1430         New module 'unicase/u16-is-uppercase'.
1431         * lib/unicase/u16-is-uppercase.c: New file.
1432         * modules/unicase/u16-is-uppercase: New file.
1433
1434         New module 'unicase/u8-is-uppercase'.
1435         * lib/unicase/u8-is-uppercase.c: New file.
1436         * modules/unicase/u8-is-uppercase: New file.
1437
1438         New module 'unicase/u32-is-invariant'.
1439         * lib/unicase/u32-is-invariant.c: New file.
1440         * modules/unicase/u32-is-invariant: New file.
1441
1442         New module 'unicase/u16-is-invariant'.
1443         * lib/unicase/u16-is-invariant.c: New file.
1444         * modules/unicase/u16-is-invariant: New file.
1445
1446         New module 'unicase/u8-is-invariant'.
1447         * lib/unicase/u8-is-invariant.c: New file.
1448         * lib/unicase/invariant.h: New file.
1449         * lib/unicase/u-is-invariant.h: New file.
1450         * modules/unicase/u8-is-invariant: New file.
1451
1452         Tests for module 'unicase/u32-casecoll'.
1453         * modules/unicase/u32-casecoll-tests: New file.
1454         * tests/unicase/test-u32-casecoll.c: New file.
1455
1456         Tests for module 'unicase/u16-casecoll'.
1457         * modules/unicase/u16-casecoll-tests: New file.
1458         * tests/unicase/test-u16-casecoll.c: New file.
1459
1460         Tests for module 'unicase/u8-casecoll'.
1461         * modules/unicase/u8-casecoll-tests: New file.
1462         * tests/unicase/test-u8-casecoll.c: New file.
1463
1464         New module 'unicase/u32-casecoll'.
1465         * lib/unicase/u32-casecoll.c: New file.
1466         * modules/unicase/u32-casecoll: New file.
1467
1468         New module 'unicase/u16-casecoll'.
1469         * lib/unicase/u16-casecoll.c: New file.
1470         * modules/unicase/u16-casecoll: New file.
1471
1472         New module 'unicase/u8-casecoll'.
1473         * lib/unicase/u8-casecoll.c: New file.
1474         * lib/unicase/u-casecoll.h: New file.
1475         * modules/unicase/u8-casecoll: New file.
1476
1477         New module 'unicase/u32-casexfrm'.
1478         * lib/unicase/u32-casexfrm.c: New file.
1479         * modules/unicase/u32-casexfrm: New file.
1480
1481         New module 'unicase/u16-casexfrm'.
1482         * lib/unicase/u16-casexfrm.c: New file.
1483         * modules/unicase/u16-casexfrm: New file.
1484
1485         New module 'unicase/u8-casexfrm'.
1486         * lib/unicase/u8-casexfrm.c: New file.
1487         * lib/unicase/u-casexfrm.h: New file.
1488         * modules/unicase/u8-casexfrm: New file.
1489
1490         Tests for module 'unicase/u32-casecmp'.
1491         * modules/unicase/u32-casecmp-tests: New file.
1492         * tests/unicase/test-u32-casecmp.c: New file.
1493
1494         Tests for module 'unicase/u16-casecmp'.
1495         * modules/unicase/u16-casecmp-tests: New file.
1496         * tests/unicase/test-u16-casecmp.c: New file.
1497
1498         Tests for module 'unicase/u8-casecmp'.
1499         * modules/unicase/u8-casecmp-tests: New file.
1500         * tests/unicase/test-u8-casecmp.c: New file.
1501         * tests/unicase/test-casecmp.h: New file.
1502
1503         New module 'unicase/u32-casecmp'.
1504         * lib/unicase/u32-casecmp.c: New file.
1505         * modules/unicase/u32-casecmp: New file.
1506
1507         New module 'unicase/u16-casecmp'.
1508         * lib/unicase/u16-casecmp.c: New file.
1509         * modules/unicase/u16-casecmp: New file.
1510
1511         New module 'unicase/u8-casecmp'.
1512         * lib/unicase/u8-casecmp.c: New file.
1513         * lib/unicase/u-casecmp.h: New file.
1514         * modules/unicase/u8-casecmp: New file.
1515
1516         Tests for module 'unicase/u32-casefold'.
1517         * modules/unicase/u32-casefold-tests: New file.
1518         * tests/unicase/test-u32-casefold.c: New file.
1519
1520         Tests for module 'unicase/u16-casefold'.
1521         * modules/unicase/u16-casefold-tests: New file.
1522         * tests/unicase/test-u16-casefold.c: New file.
1523
1524         Tests for module 'unicase/u8-casefold'.
1525         * modules/unicase/u8-casefold-tests: New file.
1526         * tests/unicase/test-u8-casefold.c: New file.
1527
1528         New module 'unicase/u32-casefold'.
1529         * lib/unicase/u32-casefold.c: New file.
1530         * modules/unicase/u32-casefold: New file.
1531
1532         New module 'unicase/u16-casefold'.
1533         * lib/unicase/u16-casefold.c: New file.
1534         * modules/unicase/u16-casefold: New file.
1535
1536         New module 'unicase/u8-casefold'.
1537         * lib/unicase/u8-casefold.c: New file.
1538         * lib/unicase/u-casefold.h: New file.
1539         * modules/unicase/u8-casefold: New file.
1540
1541         New module 'unicase/tocasefold'.
1542         * lib/unicase/casefold.h: New file.
1543         * lib/unicase/tocasefold.c: New file.
1544         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
1545         * modules/unicase/tocasefold: New file.
1546
1547         Tests for module 'unicase/u32-totitle'.
1548         * modules/unicase/u32-totitle-tests: New file.
1549         * tests/unicase/test-u32-totitle.c: New file.
1550
1551         Tests for module 'unicase/u16-totitle'.
1552         * modules/unicase/u16-totitle-tests: New file.
1553         * tests/unicase/test-u16-totitle.c: New file.
1554
1555         Tests for module 'unicase/u8-totitle'.
1556         * modules/unicase/u8-totitle-tests: New file.
1557         * tests/unicase/test-u8-totitle.c: New file.
1558
1559         New module 'unicase/u32-totitle'.
1560         * lib/unicase/u32-totitle.c: New file.
1561         * modules/unicase/u32-totitle: New file.
1562
1563         New module 'unicase/u16-totitle'.
1564         * lib/unicase/u16-totitle.c: New file.
1565         * modules/unicase/u16-totitle: New file.
1566
1567         New module 'unicase/u8-totitle'.
1568         * lib/unicase/u8-totitle.c: New file.
1569         * lib/unicase/u-totitle.h: New file.
1570         * modules/unicase/u8-totitle: New file.
1571
1572         Tests for module 'unicase/u32-tolower'.
1573         * modules/unicase/u32-tolower-tests: New file.
1574         * tests/unicase/test-u32-tolower.c: New file.
1575
1576         Tests for module 'unicase/u16-tolower'.
1577         * modules/unicase/u16-tolower-tests: New file.
1578         * tests/unicase/test-u16-tolower.c: New file.
1579
1580         Tests for module 'unicase/u8-tolower'.
1581         * modules/unicase/u8-tolower-tests: New file.
1582         * tests/unicase/test-u8-tolower.c: New file.
1583
1584         New module 'unicase/u32-tolower'.
1585         * lib/unicase/u32-tolower.c: New file.
1586         * modules/unicase/u32-tolower: New file.
1587
1588         New module 'unicase/u16-tolower'.
1589         * lib/unicase/u16-tolower.c: New file.
1590         * modules/unicase/u16-tolower: New file.
1591
1592         New module 'unicase/u8-tolower'.
1593         * lib/unicase/u8-tolower.c: New file.
1594         * modules/unicase/u8-tolower: New file.
1595
1596         Tests for module 'unicase/u32-toupper'.
1597         * modules/unicase/u32-toupper-tests: New file.
1598         * tests/unicase/test-u32-toupper.c: New file.
1599
1600         Tests for module 'unicase/u16-toupper'.
1601         * modules/unicase/u16-toupper-tests: New file.
1602         * tests/unicase/test-u16-toupper.c: New file.
1603
1604         Tests for module 'unicase/u8-toupper'.
1605         * modules/unicase/u8-toupper-tests: New file.
1606         * tests/unicase/test-u8-toupper.c: New file.
1607
1608         New module 'unicase/u32-toupper'.
1609         * lib/unicase/u32-toupper.c: New file.
1610         * modules/unicase/u32-toupper: New file.
1611
1612         New module 'unicase/u16-toupper'.
1613         * lib/unicase/u16-toupper.c: New file.
1614         * modules/unicase/u16-toupper: New file.
1615
1616         New module 'unicase/u8-toupper'.
1617         * lib/unicase/u8-toupper.c: New file.
1618         * modules/unicase/u8-toupper: New file.
1619
1620         New module 'unicase/u32-casemap'.
1621         * lib/unicase/u32-casemap.c: New file.
1622         * modules/unicase/u32-casemap: New file.
1623
1624         New module 'unicase/u16-casemap'.
1625         * lib/unicase/u16-casemap.c: New file.
1626         * modules/unicase/u16-casemap: New file.
1627
1628         New module 'unicase/u8-casemap'.
1629         * lib/unicase/unicasemap.h: New file.
1630         * lib/unicase/u8-casemap.c: New file.
1631         * lib/unicase/u-casemap.h: New file.
1632         * modules/unicase/u8-casemap: New file.
1633
1634         New module 'unicase/special-casing'.
1635         * lib/unicase/special-casing.h: New file.
1636         * lib/unicase/special-casing.c: New file.
1637         * lib/unicase/special-casing-table.gperf: New file, generated by
1638         gen-uni-tables.c.
1639         * modules/unicase/special-casing: New file.
1640
1641         Tests for module 'unicase/locale-language'.
1642         * modules/unicase/locale-language-tests: New file.
1643         * tests/unicase/test-locale-language.sh: New file.
1644         * tests/unicase/test-locale-language.c: New file.
1645
1646         New module 'unicase/locale-language'.
1647         * lib/unicase/locale-language.c: New file.
1648         * lib/unicase/locale-languages.gperf: New file.
1649         * modules/unicase/locale-language: New file.
1650
1651         Generate more tables for case conversion and case folding.
1652         * lib/gen-uni-tables.c (SCC_*): New enum items.
1653         (struct special_casing_rule): New type.
1654         (casing_rules, num_casing_rules, allocated_casing_rules): New
1655         variables.
1656         (add_casing_rule, fill_casing_rules): New functions.
1657         (struct casefold_rule): New type.
1658         (casefolding_rules, num_casefolding_rules,
1659         allocated_casefolding_rules): New variables.
1660         (fill_casefolding_rules): New function.
1661         (unicode_casefold): New variable.
1662         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
1663         sort_casing_rules, output_casing_rules): New functions.
1664         (main): Accept to more arguments: SpecialCasing.txt and
1665         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
1666         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
1667         Output mapping for casefolding.
1668
1669         * lib/unicase.h: Include stdbool.h, uninorm.h.
1670         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
1671         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
1672         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
1673         arguments.
1674         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
1675         resultp arguments.
1676         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
1677         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
1678         resultp arguments.
1679         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
1680         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
1681         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
1682         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
1683         declarations.
1684         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
1685
1686 2009-03-08  Bruno Haible  <bruno@clisp.org>
1687
1688         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1689         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
1690         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
1691         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1692
1693 2009-03-07  Bruno Haible  <bruno@clisp.org>
1694
1695         Adjust u*_normcmp, u*_normcoll API.
1696         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1697         u16_normcoll, u32_normcoll): Change failure conventions.
1698         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
1699         errno and return -1.
1700         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1701
1702 2009-03-07  Bruno Haible  <bruno@clisp.org>
1703
1704         Tests for module 'uninorm/u32-normcoll'.
1705         * modules/uninorm/u32-normcoll-tests: New file.
1706         * tests/uninorm/test-u32-normcoll.c: New file.
1707
1708         Tests for module 'uninorm/u16-normcoll'.
1709         * modules/uninorm/u16-normcoll-tests: New file.
1710         * tests/uninorm/test-u16-normcoll.c: New file.
1711
1712         Tests for module 'uninorm/u8-normcoll'.
1713         * modules/uninorm/u8-normcoll-tests: New file.
1714         * tests/uninorm/test-u8-normcoll.c: New file.
1715
1716 2009-03-07  Bruno Haible  <bruno@clisp.org>
1717
1718         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
1719         tests/uninorm/test-u32-normcmp.c.
1720         * tests/uninorm/test-u32-normcmp.c: Include it.
1721         (test_nonascii): New function, extracted from main. Add some more
1722         tests.
1723         (main): Invoke test_ascii and test_nonascii.
1724         * modules/uninorm/u32-normcmp-tests (Files): Add
1725         tests/uninorm/test-u32-normcmp.h.
1726         (Depends-on): Remove uninorm/u32-normcmp.
1727
1728         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
1729         tests/uninorm/test-u16-normcmp.c.
1730         * tests/uninorm/test-u16-normcmp.c: Include it.
1731         (test_nonascii): New function, extracted from main. Add some more
1732         tests.
1733         (main): Invoke test_ascii and test_nonascii.
1734         * modules/uninorm/u16-normcmp-tests (Files): Add
1735         tests/uninorm/test-u16-normcmp.h.
1736         (Depends-on): Remove uninorm/u16-normcmp.
1737
1738         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
1739         tests/uninorm/test-u8-normcmp.c.
1740         * tests/uninorm/test-u8-normcmp.c: Include it.
1741         (test_nonascii): New function, extracted from main. Add some more
1742         tests.
1743         (main): Invoke test_ascii and test_nonascii.
1744         * modules/uninorm/u8-normcmp-tests (Files): Add
1745         tests/uninorm/test-u8-normcmp.h.
1746         (Depends-on): Remove uninorm/u8-normcmp.
1747
1748 2009-03-07  Bruno Haible  <bruno@clisp.org>
1749
1750         New module 'uninorm/u32-normcoll'.
1751         * lib/uninorm/u32-normcoll.c: New file.
1752         * modules/uninorm/u32-normcoll: New file.
1753
1754         New module 'uninorm/u16-normcoll'.
1755         * lib/uninorm/u16-normcoll.c: New file.
1756         * modules/uninorm/u16-normcoll: New file.
1757
1758         New module 'uninorm/u8-normcoll'.
1759         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
1760         declarations.
1761         * lib/uninorm/u8-normcoll.c: New file.
1762         * lib/uninorm/u-normcoll.h: New file.
1763         * modules/uninorm/u8-normcoll: New file.
1764
1765         New module 'uninorm/u32-normxfrm'.
1766         * lib/uninorm/u32-normxfrm.c: New file.
1767         * modules/uninorm/u32-normxfrm: New file.
1768
1769         New module 'uninorm/u16-normxfrm'.
1770         * lib/uninorm/u16-normxfrm.c: New file.
1771         * modules/uninorm/u16-normxfrm: New file.
1772
1773         New module 'uninorm/u8-normxfrm'.
1774         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
1775         declarations.
1776         * lib/uninorm/u8-normxfrm.c: New file.
1777         * lib/uninorm/u-normxfrm.h: New file.
1778         * modules/uninorm/u8-normxfrm: New file.
1779
1780 2009-03-07  Bruno Haible  <bruno@clisp.org>
1781
1782         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
1783         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
1784         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
1785
1786 2009-03-07  Bruno Haible  <bruno@clisp.org>
1787
1788         New module 'memxfrm'.
1789         * lib/memxfrm.h: New file.
1790         * lib/memxfrm.c: New file.
1791         * modules/memxfrm: New file.
1792
1793 2009-03-07  Bruno Haible  <bruno@clisp.org>
1794
1795         New module 'memcmp2'.
1796         * lib/memcmp2.h: New file.
1797         * lib/memcmp2.c: New file.
1798         * modules/memcmp2: New file.
1799
1800 2009-03-07  Bruno Haible  <bruno@clisp.org>
1801
1802         Tests for module 'uninorm/decomposing-form'.
1803         * modules/uninorm/decomposing-form-tests: New file.
1804         * tests/uninorm/test-decomposing-form.c: New file.
1805
1806         New module 'uninorm/decomposing-form'.
1807         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
1808         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
1809         Add 'decomposing_variant' field.
1810         * lib/uninorm/decomposing-form.c: New file.
1811         * lib/uninorm/nfc.c (uninorm_nfc): Update.
1812         * lib/uninorm/nfd.c (uninorm_nfd): Update.
1813         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
1814         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
1815         * modules/uninorm/decomposing-form: New file.
1816         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
1817         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
1818
1819 2009-03-07  Bruno Haible  <bruno@clisp.org>
1820
1821         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
1822         strings.
1823
1824 2009-03-06  Bruno Haible  <bruno@clisp.org>
1825
1826         Tests for module 'uninorm/u32-normcmp'.
1827         * tests/uninorm/test-u32-normcmp.c: New file.
1828         * modules/uninorm/u32-normcmp-tests: New file.
1829
1830         Tests for module 'uninorm/u16-normcmp'.
1831         * tests/uninorm/test-u16-normcmp.c: New file.
1832         * modules/uninorm/u16-normcmp-tests: New file.
1833
1834         Tests for module 'uninorm/u8-normcmp'.
1835         * tests/uninorm/test-u8-normcmp.c: New file.
1836         * modules/uninorm/u8-normcmp-tests: New file.
1837
1838         New module 'uninorm/u32-normcmp'.
1839         * lib/uninorm/u32-normcmp.c: New file.
1840         * modules/uninorm/u32-normcmp: New file.
1841
1842         New module 'uninorm/u16-normcmp'.
1843         * lib/uninorm/u16-normcmp.c: New file.
1844         * modules/uninorm/u16-normcmp: New file.
1845
1846         New module 'uninorm/u8-normcmp'.
1847         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
1848         declarations.
1849         * lib/uninorm/u8-normcmp.c: New file.
1850         * lib/uninorm/u-normcmp.h: New file.
1851         * modules/uninorm/u8-normcmp: New file.
1852
1853 2009-03-06  Bruno Haible  <bruno@clisp.org>
1854
1855         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
1856         Reported by Eric Blake.
1857
1858 2009-03-06  Eric Blake  <ebb9@byu.net>
1859             Bruno Haible  <bruno@clisp.org>
1860
1861         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
1862         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
1863         condition.
1864         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1865         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
1866         condition.
1867         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1868
1869 2009-03-06  Eric Blake  <ebb9@byu.net>
1870
1871         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
1872         to avoid compiler warnings.
1873         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
1874
1875 2009-03-05  Bruno Haible  <bruno@clisp.org>
1876
1877         * tests/test-ftell.c (main): Disable test beyond end of file on
1878         FreeMiNT.
1879         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1880
1881 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
1882
1883         * lib/filevercmp.c: Move hidden files up in ordering.
1884         * tests/test-filevercmp.c: Add tests for hidden files.
1885
1886 2009-03-04  Bruno Haible  <bruno@clisp.org>
1887
1888         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
1889         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
1890         AM_CFLAGS.
1891         Reported by Simon Josefsson.
1892
1893 2009-03-03  Bruno Haible  <bruno@clisp.org>
1894
1895         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
1896         Reported by Simon Josefsson.
1897
1898         * doc/ld-version-script.texi: Update node reference.
1899
1900 2009-03-03  Bruno Haible  <bruno@clisp.org>
1901
1902         * modules/visibility (License): Change to 'unlimited'.
1903         Suggested by Simon Josefsson.
1904
1905 2009-03-03  Jim Meyering  <meyering@redhat.com>
1906
1907         unlinkdir: cannot_unlink_dir may modify process state
1908         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
1909         it's neither thread-safe nor appropriate for use in a library.
1910
1911 2009-03-03  Eric Blake  <ebb9@byu.net>
1912
1913         test-closein: silence test under Darwin
1914         * tests/test-closein.sh: Ignore stderr from cat, since we don't
1915         care if it dies from EPIPE or EBADF.
1916
1917 2009-03-03  Bruno Haible  <bruno@clisp.org>
1918
1919         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1920         earlier.
1921         * doc/visibility.texi: Fix @node and @section.
1922
1923 2009-03-03  Simon Josefsson  <simon@josefsson.org>
1924
1925         * doc/gnulib.texi: Link to sections for ld version script and
1926         visibility.
1927         * doc/visibility.texi: Add @node and @section.
1928         * modules/ld-version-script: New module.
1929         * m4/ld-version-script.m4: New file.
1930         * doc/ld-version-script.texi: New file.
1931
1932 2009-03-02  David Lutterkort  <lutter@redhat.com>
1933
1934         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1936
1937 2009-03-02  Bruno Haible  <bruno@clisp.org>
1938
1939         * doc/visibility.texi: Mention libtool's -export-symbols option.
1940
1941 2009-03-02  Jim Meyering  <meyering@redhat.com>
1942
1943         announce-gen: new option: --no-print-checksums
1944         * build-aux/announce-gen (usage): Describe it.
1945         (print_checksums): Print a newline here, not in the [*] footnote.
1946         (main): Honor it.
1947
1948 2009-03-01  Bruno Haible  <bruno@clisp.org>
1949
1950         Use socklen_t in the native Windows replacements prototypes.
1951         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1952         instead of 'int'.
1953         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1954         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1955         * modules/getsockopt (Depends-on): Add socklen.
1956         * modules/setsockopt (Depends-on): Add socklen.
1957
1958 2009-03-01  Bruno Haible  <bruno@clisp.org>
1959
1960         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1961         least 4.2.
1962
1963 2009-03-01  Eric Blake  <ebb9@byu.net>
1964             Bruno Haible  <bruno@clisp.org>
1965
1966         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1967         error messages.
1968         * lib/wait-process.c (wait_subprocess): Omit error message about
1969         deadly signal sent to the child of termsigp != NULL.
1970
1971 2009-03-01  Eric Blake  <ebb9@byu.net>
1972
1973         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1974
1975 2009-03-01  Bruno Haible  <bruno@clisp.org>
1976
1977         Avoid a gcc warning.
1978         * tests/test-sched.c (b): Make global.
1979         Reported by Eric Blake.
1980
1981 2009-01-19  Martin Lambers  <marlam@marlam.de>
1982
1983         Provide POSIX semantics for socket timeout options on W32.
1984         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1985         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1986         * modules/setsockopt: Depend on sys_time module for struct timeval.
1987         * modules/getsockopt: Depend on sys_time module for struct timeval.
1988
1989 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1990
1991         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1992         __USE_GNU, for consistency with netdb.in.h.
1993         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1994
1995 2009-03-01  Bruno Haible  <bruno@clisp.org>
1996
1997         More support for FreeMiNT.
1998         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1999         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
2000
2001 2009-03-01  Bruno Haible  <bruno@clisp.org>
2002
2003         More support for FreeMiNT.
2004         * lib/fpurge.c (fpurge): Correct last commit.
2005         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
2006
2007 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2008
2009         Fix unportable awk script in vc-list-files.
2010         * build-aux/vc-list-files: In the replacement awk script, use
2011         substr with a second argument of 1, not zero.
2012         Report by Simon Josefsson.
2013
2014 2009-02-28  Bruno Haible  <bruno@clisp.org>
2015
2016         More support for FreeMiNT.
2017         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
2018         to FreeMiNT today.
2019         * lib/fwriting.c (fwriting): Likewise.
2020         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
2021
2022 2009-02-28  Bruno Haible  <bruno@clisp.org>
2023
2024         * tests/test-freadseek.c (main): Disable test beyond end of file on
2025         FreeMiNT.
2026         * tests/test-ftello.c (main): Likewise.
2027         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
2028
2029 2009-02-28  Bruno Haible  <bruno@clisp.org>
2030
2031         Add tentative support for FreeMiNT.
2032         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
2033         * lib/fpurge.c (fpurge): Likewise.
2034         * lib/freadable.c (freadable): Likewise.
2035         * lib/freading.c (freading): Likewise.
2036         * lib/freadptr.c (freadptr): Likewise.
2037         * lib/freadseek.c (freadptrinc): Likewise.
2038         * lib/fseeko.c (rpl_fseeko): Likewise.
2039         * lib/fseterr.c (fseterr): Likewise.
2040         * lib/fwritable.c (fwritable): Likewise.
2041         * lib/fwriting.c (fwriting): Likewise.
2042         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
2043         Hourihane.
2044         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
2045
2046 2009-02-28  Bruno Haible  <bruno@clisp.org>
2047
2048         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
2049         SIGCHLD.
2050         Reported by Jim Meyering.
2051
2052 2009-02-28  Bruno Haible  <bruno@clisp.org>
2053
2054         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
2055         Mention the results of these tests on various platforms.
2056         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
2057         order.
2058         * doc/posix-functions/printf.texi: Likewise.
2059         * doc/posix-functions/snprintf.texi: Likewise.
2060         * doc/posix-functions/sprintf.texi: Likewise.
2061         * doc/posix-functions/vfprintf.texi: Likewise.
2062         * doc/posix-functions/vprintf.texi: Likewise.
2063         * doc/posix-functions/vsnprintf.texi: Likewise.
2064         * doc/posix-functions/vsprintf.texi: Likewise.
2065         * doc/glibc-functions/obstack_printf.texi: Likewise.
2066         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2067
2068 2009-02-28  Bruno Haible  <bruno@clisp.org>
2069
2070         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
2071         Reported by Loïc Minier <lool@dooz.org>.
2072
2073 2009-02-27  Bruno Haible  <bruno@clisp.org>
2074
2075         * gnulib-tool (func_import): Make the sed expression used to create the
2076         sed script for updating the .gitignore file POSIX compliant.
2077         Reported by Eric Blake.
2078
2079 2009-02-27  Bruno Haible  <bruno@clisp.org>
2080
2081         * gnulib-tool (sed): Don't alias as "sed --posix".
2082         Reported by Eric Blake.
2083
2084 2009-02-27  Bruno Haible  <bruno@clisp.org>
2085
2086         Avoid test link errors.
2087         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
2088         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
2089         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
2090         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
2091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2092
2093 2009-02-27  Bruno Haible  <bruno@clisp.org>
2094
2095         Avoid spurious "(cached)" in configure output.
2096         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
2097         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
2098         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2099         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2100         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2101         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2102         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2103         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2104         Reported by Eric Blake.
2105
2106 2009-02-27  Eric Blake  <ebb9@byu.net>
2107
2108         printf: fix regression in previous patch
2109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
2110
2111 2009-02-27  Bruno Haible  <bruno@clisp.org>
2112
2113         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
2114         value.
2115         * lib/stdint.in.h: Likewise.
2116         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
2117
2118 2009-02-27  Eric Blake  <ebb9@byu.net>
2119
2120         doc: mention more functions added in cygwin 1.7.0
2121         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
2122         addition.
2123         * doc/posix-functions/open_wmemstream.texi: Likewise.
2124         * doc/posix-functions/wcsnlen.texi: Likewise.
2125         * doc/posix-functions/wcsnrtombs.texi: Likewise.
2126         * doc/posix-functions/wcstod.texi: Likewise.
2127         * doc/posix-functions/wcstof.texi: Likewise.
2128         * doc/posix-functions/wcstoimax.texi: Likewise.
2129         * doc/posix-functions/wcstok.texi: Likewise.
2130         * doc/posix-functions/wcstoumax.texi: Likewise.
2131
2132         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
2133         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
2134         * doc/posix-functions/fprintf.texi: Update.
2135         * doc/posix-functions/printf.texi: Update.
2136         * doc/posix-functions/snprintf.texi: Update.
2137         * doc/posix-functions/sprintf.texi: Update.
2138         * doc/posix-functions/vfprintf.texi: Update.
2139         * doc/posix-functions/vprintf.texi: Update.
2140         * doc/posix-functions/vsnprintf.texi: Update.
2141         * doc/posix-functions/vsprintf.texi: Update.
2142         * doc/glibc-functions/obstack_printf.texi: Update.
2143         * doc/glibc-functions/obstack_vprintf.texi: Update.
2144
2145 2009-02-26  Eric Blake  <ebb9@byu.net>
2146
2147         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
2148         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
2149         compilation bug by using runtime conversion.
2150         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2151         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
2152         * modules/ceill-tests (Files): Use nan.h.
2153         * modules/floorl-tests (Files): Likewise.
2154         * modules/frexpl-tests (Files): Likewise.
2155         * modules/isnanl-tests (Files): Likewise.
2156         * modules/ldexpl-tests (Files): Likewise.
2157         * modules/roundl-tests (Files): Likewise.
2158         * modules/truncl-tests (Files): Likewise.
2159         * tests/test-ceill.c (main): Use a working NaN.
2160         * tests/test-floorl.c (main): Likewise.
2161         * tests/test-frexpl.c (main): Likewise.
2162         * tests/test-isnan.c (test_long_double): Likewise.
2163         * tests/test-isnanl.h (main): Likewise.
2164         * tests/test-ldexpl.h (main): Likewise.
2165         * tests/test-roundl.h (main): Likewise.
2166         * tests/test-truncl.h (main): Likewise.
2167         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
2168
2169 2009-02-26  Eric Blake  <ebb9@byu.net>
2170             Bruno Haible  <bruno@clisp.org>
2171
2172         Work around a *printf bug with %ls on Solaris.
2173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
2174         precision is specified, sprintf stops converting the wide string
2175         argument when the number of bytes that have been produced by this
2176         conversion equals or exceeds the precision.
2177         * doc/posix-functions/fprintf.texi: Update.
2178         * doc/posix-functions/printf.texi: Update.
2179         * doc/posix-functions/snprintf.texi: Update.
2180         * doc/posix-functions/sprintf.texi: Update.
2181         * doc/posix-functions/vfprintf.texi: Update.
2182         * doc/posix-functions/vprintf.texi: Update.
2183         * doc/posix-functions/vsnprintf.texi: Update.
2184         * doc/posix-functions/vsprintf.texi: Update.
2185         * doc/glibc-functions/obstack_printf.texi: Update.
2186         * doc/glibc-functions/obstack_vprintf.texi: Update.
2187
2188 2009-02-26  Eric Blake  <ebb9@byu.net>
2189
2190         stdlib: favor compiler check of random.h
2191         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
2192         to avoid an ObjC random.h installed by Swarm.
2193
2194 2009-02-26  Bruno Haible  <bruno@clisp.org>
2195
2196         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
2197         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
2198         Reported by Gary V. Vaughan <gary@gnu.org>.
2199
2200 2009-02-26  Bruno Haible  <bruno@clisp.org>
2201
2202         Fix *printf behaviour regarding the %ls directive.
2203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
2204         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
2205         NEED_PRINTF_DIRECTIVE_LS.
2206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
2207         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2209         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
2210         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
2211         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
2212         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2217         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
2218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2221         * doc/posix-functions/fprintf.texi: Update.
2222         * doc/posix-functions/printf.texi: Update.
2223         * doc/posix-functions/snprintf.texi: Update.
2224         * doc/posix-functions/sprintf.texi: Update.
2225         * doc/posix-functions/vfprintf.texi: Update.
2226         * doc/posix-functions/vprintf.texi: Update.
2227         * doc/posix-functions/vsnprintf.texi: Update.
2228         * doc/posix-functions/vsprintf.texi: Update.
2229         * doc/glibc-functions/obstack_printf.texi: Update.
2230         * doc/glibc-functions/obstack_vprintf.texi: Update.
2231         Reported by Eric Blake.
2232
2233 2009-02-25  Bruno Haible  <bruno@clisp.org>
2234
2235         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
2236         with known value.
2237         Reported by Gary V. Vaughan <gary@gnu.org>.
2238
2239 2009-02-25  Bruno Haible  <bruno@clisp.org>
2240
2241         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
2242         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
2243         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
2244         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
2245         Reported by Gary V. Vaughan <gary@gnu.org>.
2246
2247 2009-02-25  Bruno Haible  <bruno@clisp.org>
2248
2249         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
2250         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
2251         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
2252         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
2253         Reported by Gary V. Vaughan <gary@gnu.org>.
2254
2255 2009-02-25  Eric Blake  <ebb9@byu.net>
2256
2257         tests: skip fseek/ftell tests if ungetc is broken
2258         * m4/ungetc.m4: New file.
2259         * modules/fseek-tests: Split test, so ungetc dependency is
2260         separate from rest of test.
2261         * modules/fseeko-tests: Likewise.
2262         * modules/ftell-tests: Likewise.
2263         * modules/ftello-tests: Likewise.
2264         * tests/test-fseek.c (main): Isolate ungetc dependency.
2265         * tests/test-fseeko.c (main): Likewise.
2266         * tests/test-ftell.c (main): Likewise.
2267         * tests/test-ftello.c (main): Likewise.
2268         * tests/test-fseek2.sh: New file.
2269         * tests/test-fseeko2.sh: Likewise.
2270         * tests/test-ftell2.sh: Likewise.
2271         * tests/test-ftello2.sh: Likewise.
2272
2273 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
2274
2275         test-getaddrinfo: fix usage of skip return code 77
2276         * tests/test-gettaddrinfo.c: Return skip code 77 only
2277         for first occurance of skip (4x77 is not 77)
2278
2279 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
2280
2281         strtod: avoid C99 decl-after-statement
2282         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
2283
2284 2009-02-24  Eric Blake  <ebb9@byu.net>
2285
2286         strtod: detect HP-UX 11.31 bug
2287         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
2288         Reported by Gary V. Vaughan.
2289
2290 2009-02-23  Bruno Haible  <bruno@clisp.org>
2291
2292         Fix invalid read past end of memory block.
2293         * lib/vasnprintf.c (DCHAR_SET): Define.
2294         (local_wcslen): Define only when needed.
2295         (local_strnlen, local_wcsnlen): New functions.
2296         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
2297         directives that involve a conversion ourselves.
2298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
2299         wcsnlen, mbrtowc, wcrtomb.
2300         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
2301         * tests/test-vasprintf-posix.c (test_function): Likewise.
2302         * tests/test-snprintf-posix.h (test_function): Likewise.
2303         * tests/test-sprintf-posix.h (test_function): Likewise.
2304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2305
2306 2009-02-22  Bruno Haible  <bruno@clisp.org>
2307
2308         Implement new clarified decomposition of Hangul syllables.
2309         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
2310         of type LTV, return only a pairwise decomposition.
2311         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
2312         Likewise.
2313         * tests/uninorm/test-decomposition.c (main): Updated expected result.
2314         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
2315         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
2316
2317 2009-02-22  Bruno Haible  <bruno@clisp.org>
2318
2319         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
2320         zero-length results and shrink excess allocated memory.
2321         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
2322         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
2323         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
2324         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
2325         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
2326         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
2327         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
2328         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
2329         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
2330         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
2331         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
2332         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
2333
2334 2009-02-21  Bruno Haible  <bruno@clisp.org>
2335
2336         * doc/gnulib.texi: Include safe-alloc.texi earlier.
2337         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
2338         spaces after a period. Put a space between a macro name and its
2339         argument list. Trivial rewordings.
2340         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
2341         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
2342         (main): Return 0 explicitly.
2343
2344 2009-02-21  Bruno Haible  <bruno@clisp.org>
2345
2346         Tests for module 'uninorm/filter'.
2347         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
2348         * modules/uninorm/filter-tests: New file.
2349
2350         New module 'uninorm/filter'.
2351         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
2352         uninorm_filter_flush, uninorm_filter_free): New declarations.
2353         * lib/uninorm/uninorm-filter.c: New file.
2354         * modules/uninorm/filter: New file.
2355
2356 2009-02-21  Bruno Haible  <bruno@clisp.org>
2357
2358         Tests for module 'uninorm/nfkc'.
2359         * tests/uninorm/test-nfkc.c: New file.
2360         * tests/uninorm/test-u8-nfkc.c: New file.
2361         * tests/uninorm/test-u16-nfkc.c: New file.
2362         * tests/uninorm/test-u32-nfkc.c: New file.
2363         * tests/uninorm/test-u32-nfkc-big.sh: New file.
2364         * tests/uninorm/test-u32-nfkc-big.c: New file.
2365         * modules/uninorm/nfkc-tests: New file.
2366
2367         New module 'uninorm/nfkc'.
2368         * lib/uninorm/nfkc.c: New file.
2369         * modules/uninorm/nfkc: New file.
2370
2371         Tests for module 'uninorm/nfkd'.
2372         * tests/uninorm/test-nfkd.c: New file.
2373         * tests/uninorm/test-u8-nfkd.c: New file.
2374         * tests/uninorm/test-u16-nfkd.c: New file.
2375         * tests/uninorm/test-u32-nfkd.c: New file.
2376         * tests/uninorm/test-u32-nfkd-big.sh: New file.
2377         * tests/uninorm/test-u32-nfkd-big.c: New file.
2378         * modules/uninorm/nfkd-tests: New file.
2379
2380         New module 'uninorm/nfkd'.
2381         * lib/uninorm/nfkd.c: New file.
2382         * modules/uninorm/nfkd: New file.
2383
2384         Tests for module 'uninorm/nfc'.
2385         * tests/uninorm/test-nfc.c: New file.
2386         * tests/uninorm/test-u8-nfc.c: New file.
2387         * tests/uninorm/test-u16-nfc.c: New file.
2388         * tests/uninorm/test-u32-nfc.c: New file.
2389         * tests/uninorm/test-u32-nfc-big.sh: New file.
2390         * tests/uninorm/test-u32-nfc-big.c: New file.
2391         * modules/uninorm/nfc-tests: New file.
2392
2393         New module 'uninorm/nfc'.
2394         * lib/uninorm/nfc.c: New file.
2395         * modules/uninorm/nfc: New file.
2396
2397         Tests for module 'uninorm/nfd'.
2398         * tests/uninorm/test-nfd.c: New file.
2399         * tests/uninorm/test-u8-nfd.c: New file.
2400         * tests/uninorm/test-u16-nfd.c: New file.
2401         * tests/uninorm/test-u32-nfd.c: New file.
2402         * tests/uninorm/test-u32-nfd-big.sh: New file.
2403         * tests/uninorm/test-u32-nfd-big.c: New file.
2404         * tests/uninorm/test-u32-normalize-big.h: New file.
2405         * tests/uninorm/test-u32-normalize-big.c: New file.
2406         * tests/uninorm/NormalizationTest.txt: New file, created from
2407         Unicode 5.1.0 NormalizationTest.txt.
2408         * modules/uninorm/nfd-tests: New file.
2409
2410         New module 'uninorm/nfd'.
2411         * lib/uninorm/nfd.c: New file.
2412         * modules/uninorm/nfd: New file.
2413
2414         New module 'uninorm/u32-normalize'.
2415         * lib/uninorm/u32-normalize.c: New file.
2416         * modules/uninorm/u32-normalize: New file.
2417
2418         New module 'uninorm/u16-normalize'.
2419         * lib/uninorm/u16-normalize.c: New file.
2420         * modules/uninorm/u16-normalize: New file.
2421
2422         New module 'uninorm/u8-normalize'.
2423         * lib/uninorm/u8-normalize.c: New file.
2424         * lib/uninorm/normalize-internal.h: New file.
2425         * lib/uninorm/u-normalize-internal.h: New file.
2426         * modules/uninorm/u8-normalize: New file.
2427
2428         New module 'uninorm/decompose-internal'.
2429         * lib/uninorm/decompose-internal.c: New file.
2430         * modules/uninorm/decompose-internal: New file.
2431
2432         Tests for module 'uninorm/composition'.
2433         * tests/uninorm/test-composition.c: New file.
2434         * modules/uninorm/composition-tests: New file.
2435
2436         New module 'uninorm/composition'.
2437         * lib/uninorm/composition.c: New file.
2438         * lib/uninorm/composition-table.gperf: New file, generated by
2439         gen-uni-tables.
2440         * modules/uninorm/composition: New file.
2441
2442         Tests for module 'uninorm/compat-decomposition'.
2443         * tests/uninorm/test-compat-decomposition.c: New file.
2444         * modules/uninorm/compat-decomposition-tests: New file.
2445
2446         New module 'uninorm/compat-decomposition'.
2447         * lib/uninorm/decompose-internal.h: New file.
2448         * lib/uninorm/compat-decomposition.c: New file.
2449         * modules/uninorm/compat-decomposition: New file.
2450
2451         Tests for module 'uninorm/canonical-decomposition'.
2452         * tests/uninorm/test-canonical-decomposition.c: New file.
2453         * modules/uninorm/canonical-decomposition-tests: New file.
2454
2455         New module 'uninorm/canonical-decomposition'.
2456         * lib/uninorm/canonical-decomposition.c: New file.
2457         * modules/uninorm/canonical-decomposition: New file.
2458
2459         Tests for module 'uninorm/decomposition'.
2460         * tests/uninorm/test-decomposition.c: New file.
2461         * modules/uninorm/decomposition-tests: New file.
2462
2463         New module 'uninorm/decomposition'.
2464         * lib/uninorm/decomposition.c: New file.
2465         * modules/uninorm/decomposition: New file.
2466
2467         New module 'uninorm/decomposition-table'.
2468         * lib/uninorm/decomposition-table.h: New file.
2469         * lib/uninorm/decomposition-table.c: New file.
2470         * lib/uninorm/decomposition-table1.h: New file, generated by
2471         gen-uni-tables.
2472         * lib/uninorm/decomposition-table2.h: New file, generated by
2473         gen-uni-tables.
2474         * modules/uninorm/decomposition-table: New file.
2475
2476         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
2477         (UC_DECOMP_*): New enumeration items.
2478         (get_decomposition): New function.
2479         (struct decomp_table): New type.
2480         (output_decomposition, output_decomposition_tables): New functions.
2481         (unicode_composition_exclusions): New variable.
2482         (fill_composition_exclusions, debug_output_composition_tables): New
2483         functions.
2484         (main): Accept one more argument. Invoke fill_composition_exclusions.
2485         Output decomposition and composition tables.
2486
2487         New module 'uninorm/base'.
2488         * lib/uninorm.h: New file.
2489         * lib/unictype.h: Update comment.
2490         * modules/uninorm/base: New file.
2491
2492 2009-02-21  David Lutterkort  <lutter@redhat.com>
2493
2494         Tests for module 'safe-alloc'.
2495         * tests/test-safe-alloc.c: New file.
2496         * modules/safe-alloc-tests: New file.
2497
2498         New module 'safe-alloc'.
2499         * lib/safe-alloc.h: New file.
2500         * lib/safe-alloc.c: New file.
2501         * m4/safe-alloc.m4: New file.
2502         * modules/safe-alloc: New file.
2503         * doc/safe-alloc.texi: New file.
2504         * doc/gnulib.texi: Include it.
2505         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2506         safe-alloc.
2507
2508 2009-02-18  Bruno Haible  <bruno@clisp.org>
2509
2510         Fix link error on non-glibc systems.
2511         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
2512         variable.
2513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2514
2515 2009-02-18  Jim Meyering  <meyering@redhat.com>
2516
2517         fts: avoid used-uninitialized error due to recent change
2518         * lib/fts.c (fts_read): Guard uses of the new member,
2519         parent->fts_n_dirs_remaining, since it's not relevant for
2520         the parent of a directory specified on the command-line.
2521
2522 2009-02-17  James Youngman  <jay@gnu.org>
2523             Bruno Haible  <bruno@clisp.org>
2524
2525         * m4/include_next.m4: Reformulate comment.
2526
2527 2009-02-16  Jim Meyering  <meyering@redhat.com>
2528
2529         fts: add #if guards so that the fts_lgpl module still builds
2530         * lib/fts.c: Guard just-added hash-table-using parts with
2531         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
2532         Reported by Simon Josefsson.
2533
2534 2009-02-15  Bruno Haible  <bruno@clisp.org>
2535
2536         * modules/array-mergesort-tests: New file.
2537         * tests/test-array-mergesort.c: New file.
2538
2539         New module 'array-mergesort'.
2540         * modules/array-mergesort: New file.
2541         * lib/array-mergesort.h: New file.
2542
2543 2009-02-15  Bruno Haible  <bruno@clisp.org>
2544
2545         Fix 2009-02-07 commit.
2546         * lib/gen-uni-tables.c (output_predicate, output_category,
2547         output_combclass, output_bidi_category, output_decimal_digit,
2548         output_digit, output_numeric, output_mirror, output_scripts,
2549         output_ident_category, output_simple_mapping): Fix format directives.
2550         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
2551
2552 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
2553
2554         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
2555         fixes are available from IBM.
2556
2557 2009-02-13  Jim Meyering  <meyering@redhat.com>
2558
2559         fts: arrange not to stat non-directories in more cases
2560         This makes GNU find (when it doesn't need to stat each file)
2561         *much* more efficient at traversing reiserfs file systems.
2562         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
2563         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
2564         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
2565         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
2566         (leaf_optimization_applies): New function.
2567         (LCO_hash, LCO_compare): New helper functions.
2568         (link_count_optimize_ok): New function.
2569         (fts_stat): Initialize new member (if dir).
2570         (fts_read): Decrement parent's fts_n_dirs_remaining count if
2571         we've just stat'ed a directory.  Skip the stat call when possible.
2572         ---
2573         Note this AFS-related exchange:
2574         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
2575         and note find's pioctl call in find/fstype.c.
2576         But that is necessary only if you want to enable the
2577         optimization for AFS, and for now, I don't.
2578
2579         fts: move a function definition "up" (no semantic change)
2580         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
2581         "up" to precede upcoming use of a related function.
2582
2583 2009-02-11  Jim Meyering  <meyering@redhat.com>
2584
2585         fts: correct internal computation of nlinks (optimization-related)
2586         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
2587         whether the current entry is a directory, so don't test it.
2588
2589 2009-02-10  Bruno Haible  <bruno@clisp.org>
2590
2591         Tests for module 'uniwbrk/ulc-wordbreaks'.
2592         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
2593         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
2594         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
2595
2596         Tests for module 'uniwbrk/u32-wordbreaks'.
2597         * modules/uniwbrk/u32-wordbreaks-tests: New file.
2598         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
2599
2600         Tests for module 'uniwbrk/u16-wordbreaks'.
2601         * modules/uniwbrk/u16-wordbreaks-tests: New file.
2602         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
2603
2604         Tests for module 'uniwbrk/u8-wordbreaks'.
2605         * modules/uniwbrk/u8-wordbreaks-tests: New file.
2606         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
2607
2608 2009-02-10  Bruno Haible  <bruno@clisp.org>
2609
2610         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
2611         property.
2612         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
2613         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
2614         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
2615
2616 2009-02-10  Simon Josefsson  <simon@josefsson.org>
2617
2618         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
2619         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
2620
2621 2009-02-10  Bruno Haible  <bruno@clisp.org>
2622
2623         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
2624         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
2625         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
2626         * lib/unilbrk/u8-possible-linebreaks.c: Update.
2627         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
2628         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
2629
2630 2009-02-09  Simon Josefsson  <simon@josefsson.org>
2631
2632         * lib/sockets.h (gl_fd_to_handle): New function.
2633
2634         * tests/test-sockets.c: Call gl_fd_to_handle.
2635
2636 2009-02-09  Bruno Haible  <bruno@clisp.org>
2637
2638         * doc/havelib.texi: Document the conventions on bi-arch systems.
2639
2640 2009-02-08  Bruno Haible  <bruno@clisp.org>
2641
2642         Document the AC_LIB_LINKFLAGS macro.
2643         * doc/havelib.texi: New file, mostly written on 2005-05-24.
2644         * doc/gnulib.texi: Include it.
2645
2646 2009-02-08  Bruno Haible  <bruno@clisp.org>
2647
2648         Fix wrong order of sections, compared to TOC.
2649         * doc/gnulib.texi: Include relocatable-maint.texi after the
2650         "Regular expressions" node, not before.
2651
2652 2009-02-08  Bruno Haible  <bruno@clisp.org>
2653
2654         Tests for module 'unicase/totitle'.
2655         * modules/unicase/totitle-tests: New file.
2656
2657         Tests for module 'unicase/tolower'.
2658         * modules/unicase/tolower-tests: New file.
2659
2660         Tests for module 'unicase/toupper'.
2661         * modules/unicase/toupper-tests: New file.
2662         * tests/unicase/test-mapping-part1.h: New file.
2663         * tests/unicase/test-mapping-part2.h: New file.
2664
2665         New module 'unicase/totitle'.
2666         * modules/unicase/totitle: New file.
2667         * lib/unicase/totitle.c: New file.
2668
2669         New module 'unicase/tolower'.
2670         * modules/unicase/tolower: New file.
2671         * lib/unicase/tolower.c: New file.
2672
2673         New module 'unicase/toupper'.
2674         * modules/unicase/toupper: New file.
2675         * lib/unicase/toupper.c: New file.
2676         * lib/unicase/simple-mapping.h: New file.
2677
2678         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
2679         (mapping_table): New structure.
2680         (output_simple_mapping): New function.
2681         (main): Invoke output_simple_mapping_test and output_simple_mapping.
2682         * modules/gen-uni-tables (Description): Update.
2683         * lib/unicase/toupper.h: New file, automatically generated by
2684         gen-uni-tables.
2685         * lib/unicase/tolower.h: New file, automatically generated by
2686         gen-uni-tables.
2687         * lib/unicase/totitle.h: New file, automatically generated by
2688         gen-uni-tables.
2689         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
2690         gen-uni-tables.
2691         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
2692         gen-uni-tables.
2693         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
2694         gen-uni-tables.
2695
2696         New module 'unicase/base'.
2697         * modules/unicase/base: New file.
2698         * lib/unicase.h: New file.
2699
2700 2009-02-08  Bruno Haible  <bruno@clisp.org>
2701
2702         New module 'uniwbrk/ulc-wordbreaks'.
2703         * modules/uniwbrk/ulc-wordbreaks: New file.
2704         * lib/uniwbrk/ulc-wordbreaks.c: New file.
2705
2706         New module 'uniwbrk/u32-wordbreaks'.
2707         * modules/uniwbrk/u32-wordbreaks: New file.
2708         * lib/uniwbrk/u32-wordbreaks.c: New file.
2709
2710         New module 'uniwbrk/u16-wordbreaks'.
2711         * modules/uniwbrk/u16-wordbreaks: New file.
2712         * lib/uniwbrk/u16-wordbreaks.c: New file.
2713
2714         New module 'uniwbrk/u8-wordbreaks'.
2715         * modules/uniwbrk/u8-wordbreaks: New file.
2716         * lib/uniwbrk/u8-wordbreaks.c: New file.
2717         * lib/uniwbrk/u-wordbreaks.h: New file.
2718
2719         New module 'uniwbrk/table'.
2720         * modules/uniwbrk/table: New file.
2721         * lib/uniwbrk/wbrktable.h: New file.
2722         * lib/uniwbrk/wbrktable.c: New file.
2723
2724         New module 'uniwbrk/wordbreak-property'.
2725         * modules/uniwbrk/wordbreak-property: New file.
2726         * lib/uniwbrk/wordbreak-property.c: New file.
2727
2728         * lib/gen-uni-tables.c (WBP_*): New enum items.
2729         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
2730         (unicode_org_wbp): New variable.
2731         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
2732         New functions.
2733         (wbp_table): New structure.
2734         (output_wbp, output_wbrk_tables): New functions.
2735         (main): Accept additional argument. Invoke fill_org_wbp,
2736         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
2737         output_wbrk_tables.
2738         * modules/gen-uni-tables (Description): Update.
2739         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
2740         gen-uni-tables.
2741
2742         New module 'uniwbrk/base'.
2743         * modules/uniwbrk/base: New file.
2744         * lib/uniwbrk.h: New file.
2745
2746 2009-02-08  Bruno Haible  <bruno@clisp.org>
2747
2748         Update to Unicode 5.1.0.
2749         * lib/gen-uni-tables.c (is_property_alphabetic): Include
2750         U+2185..U+2188.
2751         (is_property_default_ignorable_code_point): Don't include characters
2752         of category Cc or Cs and not-a-characters.
2753         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
2754         U+0D79, U+109E, U+109F, U+A60C.
2755         * lib/unictype/bidi_of.h: Regenerated.
2756         * lib/unictype/blocks.h: Regenerated.
2757         * lib/unictype/categ_C.h: Regenerated.
2758         * lib/unictype/categ_Cf.h: Regenerated.
2759         * lib/unictype/categ_Cn.h: Regenerated.
2760         * lib/unictype/categ_L.h: Regenerated.
2761         * lib/unictype/categ_Ll.h: Regenerated.
2762         * lib/unictype/categ_Lm.h: Regenerated.
2763         * lib/unictype/categ_Lo.h: Regenerated.
2764         * lib/unictype/categ_Lu.h: Regenerated.
2765         * lib/unictype/categ_M.h: Regenerated.
2766         * lib/unictype/categ_Mc.h: Regenerated.
2767         * lib/unictype/categ_Me.h: Regenerated.
2768         * lib/unictype/categ_Mn.h: Regenerated.
2769         * lib/unictype/categ_N.h: Regenerated.
2770         * lib/unictype/categ_Nd.h: Regenerated.
2771         * lib/unictype/categ_Nl.h: Regenerated.
2772         * lib/unictype/categ_No.h: Regenerated.
2773         * lib/unictype/categ_P.h: Regenerated.
2774         * lib/unictype/categ_Pd.h: Regenerated.
2775         * lib/unictype/categ_Pe.h: Regenerated.
2776         * lib/unictype/categ_Pf.h: Regenerated.
2777         * lib/unictype/categ_Pi.h: Regenerated.
2778         * lib/unictype/categ_Po.h: Regenerated.
2779         * lib/unictype/categ_Ps.h: Regenerated.
2780         * lib/unictype/categ_S.h: Regenerated.
2781         * lib/unictype/categ_Sk.h: Regenerated.
2782         * lib/unictype/categ_Sm.h: Regenerated.
2783         * lib/unictype/categ_So.h: Regenerated.
2784         * lib/unictype/categ_of.h: Regenerated.
2785         * lib/unictype/combining.h: Regenerated.
2786         * lib/unictype/ctype_alnum.h: Regenerated.
2787         * lib/unictype/ctype_alpha.h: Regenerated.
2788         * lib/unictype/ctype_graph.h: Regenerated.
2789         * lib/unictype/ctype_lower.h: Regenerated.
2790         * lib/unictype/ctype_print.h: Regenerated.
2791         * lib/unictype/ctype_punct.h: Regenerated.
2792         * lib/unictype/ctype_upper.h: Regenerated.
2793         * lib/unictype/decdigit.h: Regenerated.
2794         * lib/unictype/digit.h: Regenerated.
2795         * lib/unictype/mirror.h: Regenerated.
2796         * lib/unictype/numeric.h: Regenerated.
2797         * lib/unictype/pr_alphabetic.h: Regenerated.
2798         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
2799         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
2800         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
2801         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
2802         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
2803         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
2804         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
2805         * lib/unictype/pr_combining.h: Regenerated.
2806         * lib/unictype/pr_dash.h: Regenerated.
2807         * lib/unictype/pr_decimal_digit.h: Regenerated.
2808         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
2809         * lib/unictype/pr_deprecated.h: Regenerated.
2810         * lib/unictype/pr_diacritic.h: Regenerated.
2811         * lib/unictype/pr_extender.h: Regenerated.
2812         * lib/unictype/pr_format_control.h: Regenerated.
2813         * lib/unictype/pr_grapheme_base.h: Regenerated.
2814         * lib/unictype/pr_grapheme_extend.h: Regenerated.
2815         * lib/unictype/pr_grapheme_link.h: Regenerated.
2816         * lib/unictype/pr_id_continue.h: Regenerated.
2817         * lib/unictype/pr_id_start.h: Regenerated.
2818         * lib/unictype/pr_ideographic.h: Regenerated.
2819         * lib/unictype/pr_ignorable_control.h: Regenerated.
2820         * lib/unictype/pr_lowercase.h: Regenerated.
2821         * lib/unictype/pr_math.h: Regenerated.
2822         * lib/unictype/pr_numeric.h: Regenerated.
2823         * lib/unictype/pr_other_alphabetic.h: Regenerated.
2824         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
2825         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
2826         * lib/unictype/pr_other_id_continue.h: Regenerated.
2827         * lib/unictype/pr_other_lowercase.h: Regenerated.
2828         * lib/unictype/pr_other_math.h: Regenerated.
2829         * lib/unictype/pr_punctuation.h: Regenerated.
2830         * lib/unictype/pr_sentence_terminal.h: Regenerated.
2831         * lib/unictype/pr_soft_dotted.h: Regenerated.
2832         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
2833         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
2834         * lib/unictype/pr_unified_ideograph.h: Regenerated.
2835         * lib/unictype/pr_uppercase.h: Regenerated.
2836         * lib/unictype/pr_xid_continue.h: Regenerated.
2837         * lib/unictype/pr_xid_start.h: Regenerated.
2838         * lib/unictype/pr_zero_width.h: Regenerated.
2839         * lib/unictype/scripts.h: Regenerated.
2840         * lib/unictype/scripts_byname.gperf: Regenerated.
2841         * lib/unictype/sy_java_ident.h: Regenerated.
2842         * lib/unilbrk/lbrkprop1.h: Regenerated.
2843         * lib/unilbrk/lbrkprop2.h: Regenerated.
2844         * tests/unictype/test-categ_C.c: Regenerated.
2845         * tests/unictype/test-categ_Cf.c: Regenerated.
2846         * tests/unictype/test-categ_Cn.c: Regenerated.
2847         * tests/unictype/test-categ_L.c: Regenerated.
2848         * tests/unictype/test-categ_Ll.c: Regenerated.
2849         * tests/unictype/test-categ_Lm.c: Regenerated.
2850         * tests/unictype/test-categ_Lo.c: Regenerated.
2851         * tests/unictype/test-categ_Lu.c: Regenerated.
2852         * tests/unictype/test-categ_M.c: Regenerated.
2853         * tests/unictype/test-categ_Mc.c: Regenerated.
2854         * tests/unictype/test-categ_Me.c: Regenerated.
2855         * tests/unictype/test-categ_Mn.c: Regenerated.
2856         * tests/unictype/test-categ_N.c: Regenerated.
2857         * tests/unictype/test-categ_Nd.c: Regenerated.
2858         * tests/unictype/test-categ_Nl.c: Regenerated.
2859         * tests/unictype/test-categ_No.c: Regenerated.
2860         * tests/unictype/test-categ_P.c: Regenerated.
2861         * tests/unictype/test-categ_Pd.c: Regenerated.
2862         * tests/unictype/test-categ_Pe.c: Regenerated.
2863         * tests/unictype/test-categ_Pf.c: Regenerated.
2864         * tests/unictype/test-categ_Pi.c: Regenerated.
2865         * tests/unictype/test-categ_Po.c: Regenerated.
2866         * tests/unictype/test-categ_Ps.c: Regenerated.
2867         * tests/unictype/test-categ_S.c: Regenerated.
2868         * tests/unictype/test-categ_Sk.c: Regenerated.
2869         * tests/unictype/test-categ_Sm.c: Regenerated.
2870         * tests/unictype/test-categ_So.c: Regenerated.
2871         * tests/unictype/test-ctype_alnum.c: Regenerated.
2872         * tests/unictype/test-ctype_alpha.c: Regenerated.
2873         * tests/unictype/test-ctype_graph.c: Regenerated.
2874         * tests/unictype/test-ctype_lower.c: Regenerated.
2875         * tests/unictype/test-ctype_print.c: Regenerated.
2876         * tests/unictype/test-ctype_punct.c: Regenerated.
2877         * tests/unictype/test-ctype_upper.c: Regenerated.
2878         * tests/unictype/test-decdigit.h: Regenerated.
2879         * tests/unictype/test-digit.h: Regenerated.
2880         * tests/unictype/test-numeric.h: Regenerated.
2881         * tests/unictype/test-pr_alphabetic.c: Regenerated.
2882         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
2883         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
2884         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
2885         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
2886         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
2887         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
2888         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
2889         * tests/unictype/test-pr_combining.c: Regenerated.
2890         * tests/unictype/test-pr_dash.c: Regenerated.
2891         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
2892         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
2893         * tests/unictype/test-pr_deprecated.c: Regenerated.
2894         * tests/unictype/test-pr_diacritic.c: Regenerated.
2895         * tests/unictype/test-pr_extender.c: Regenerated.
2896         * tests/unictype/test-pr_format_control.c: Regenerated.
2897         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
2898         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
2899         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
2900         * tests/unictype/test-pr_id_continue.c: Regenerated.
2901         * tests/unictype/test-pr_id_start.c: Regenerated.
2902         * tests/unictype/test-pr_ideographic.c: Regenerated.
2903         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
2904         * tests/unictype/test-pr_lowercase.c: Regenerated.
2905         * tests/unictype/test-pr_math.c: Regenerated.
2906         * tests/unictype/test-pr_numeric.c: Regenerated.
2907         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
2908         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
2909         Regenerated.
2910         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
2911         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
2912         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
2913         * tests/unictype/test-pr_other_math.c: Regenerated.
2914         * tests/unictype/test-pr_punctuation.c: Regenerated.
2915         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
2916         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
2917         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2918         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2919         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2920         * tests/unictype/test-pr_uppercase.c: Regenerated.
2921         * tests/unictype/test-pr_xid_continue.c: Regenerated.
2922         * tests/unictype/test-pr_xid_start.c: Regenerated.
2923         * tests/unictype/test-pr_zero_width.c: Regenerated.
2924
2925         Update to Unicode 5.1.0.
2926         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2927         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2928         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2929         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2930         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2931         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2932         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2933         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2934         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2935         (nonspacing_table_ind): Update.
2936         * tests/uniwidth/test-uc_width2.sh: Update expected result.
2937
2938         Update to Unicode 5.1.0.
2939         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2940         code transform.
2941         * lib/uniname/uniname.c (unicode_character_name,
2942         unicode_name_character): Add the range 0x1Fxxx to the code transform.
2943         * lib/uniname/uninames.h: Regenerated.
2944         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2945
2946 2009-02-07  Bruno Haible  <bruno@clisp.org>
2947
2948         Merge gen-ctype and gen-lbrk into a single program.
2949         * lib/gen-uni-tables.c: New file, incorporating
2950         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2951         Add directory prefixes to the names of the generated files.
2952         * lib/unictype/gen-ctype.c: Remove file.
2953         * lib/unilbrk/gen-lbrk.c: Remove file.
2954         * modules/gen-uni-tables: New file.
2955         * modules/unictype/gen-ctype: Remove file.
2956         * modules/unilbrk/gen-lbrk: Remove file.
2957
2958 2009-02-07  Bruno Haible  <bruno@clisp.org>
2959
2960         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2961
2962         New module 'unistr/u32-strcoll'.
2963         * modules/unistr/u32-strcoll: New file.
2964         * lib/unistr/u32-strcoll.c: New file.
2965
2966         New module 'unistr/u16-strcoll'.
2967         * modules/unistr/u16-strcoll: New file.
2968         * lib/unistr/u16-strcoll.c: New file.
2969
2970         New module 'unistr/u8-strcoll'.
2971         * modules/unistr/u8-strcoll: New file.
2972         * lib/unistr/u8-strcoll.c: New file.
2973         * lib/unistr/u-strcoll.h: New file.
2974
2975 2009-02-07  Bruno Haible  <bruno@clisp.org>
2976
2977         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2978         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2979         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2980         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2981         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2982         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2983
2984 2009-02-07  Bruno Haible  <bruno@clisp.org>
2985
2986         Make 64-bit clean.
2987         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2988         output_combclass, output_bidi_category, output_decimal_digit,
2989         output_digit, output_numeric, output_mirror, output_scripts,
2990         output_ident_category): Use proper width specifier in format strings.
2991
2992 2009-02-07  Bruno Haible  <bruno@clisp.org>
2993
2994         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2995         failure behaviour.
2996
2997 2009-02-07  Jim Meyering  <meyering@redhat.com>
2998
2999         regex: avoid compilation failure with upcoming gcc-4.4
3000         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
3001         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
3002         "... error: integer overflow in preprocessor expression".
3003
3004 2009-02-05  Ben Pfaff  <blp@gnu.org>
3005
3006         Fix link errors on Windows when close module is used.
3007         * modules/close: Add $(LIB_CLOSE) to Link section.
3008         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
3009         $(LIB_CLOSE) on Windows.
3010
3011 2009-02-05  Jim Meyering  <meyering@redhat.com>
3012
3013         still avoid unused-parameter warnings, but do it cleanly
3014         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
3015         (get_fs_usage): Cast to void instead.
3016         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
3017         (dev_from_mount_options, read_file_system_list): Cast to void.
3018         Prompted by Bruno Haible.
3019
3020 2009-02-04  Jim Meyering  <meyering@redhat.com>
3021
3022         fsusage.c: correct copyright year
3023         * lib/fsusage.c: Reflect year in which the change is pushed into
3024
3025         avoid misc. warnings
3026         * lib/fsusage.c (UNUSED_PARAM): Define.
3027         (get_fs_usage): Mark parameter "disk" as unused.
3028         * lib/getugroups.c (getgrent): Use "void" in prototype.
3029         * lib/mountlist.c: Mark unused parameters.
3030         (read_file_system_list): Declare a local with "const".
3031         * lib/nanosleep.c (getnow): Declare static.
3032         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
3033
3034         dirfd: set errno upon failure
3035         * lib/dirfd.c: Include <errno.h>.
3036         Set errno to ENOTSUP when returning -1.
3037         * modules/dirfd (Depends-on): Add errno.
3038         Suggested by John Kodis <kodis@comcast.net>.
3039
3040 2009-02-01  Bruno Haible  <bruno@clisp.org>
3041
3042         Don't assume sizeof (long) >= sizeof (void *).
3043         * lib/memcmp.c: Include stdint.h.
3044         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
3045         srcp2 to 'const byte *'.
3046         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
3047         types to uintptr_t.
3048         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
3049         * modules/memcmp (Depends-on): Add stdint.
3050         Reported by Ozkan Sezer <sezeroz@gmail.com>.
3051
3052 2009-01-30  Eric Blake  <ebb9@byu.net>
3053
3054         fix more require-before-expand issues
3055         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
3056         expand, AC_PROG_AWK.
3057         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
3058
3059 2009-01-28  Eric Blake  <ebb9@byu.net>
3060
3061         version-etc: use consistent URL formatting
3062         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
3063         Improve formatting.  Use fputs for string without %.
3064
3065 2009-01-28  Jim Meyering  <meyering@redhat.com>
3066
3067         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
3068         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
3069         "underquoted definition of NAME" from autoconf-2.59.
3070
3071 2009-01-28  Bruno Haible  <bruno@clisp.org>
3072
3073         * doc/gnulib.texi: Add "Obsolete modules" to index.
3074
3075 2009-01-28  Jim Meyering  <meyering@redhat.com>
3076
3077         useless-if-before-free: recognize more variants
3078         * build-aux/useless-if-before-free: Also recognize e.g.,
3079         if (NULL != p) free (p);
3080
3081 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
3082
3083         test-getaddrinfo: skip (don't fail) this test when there's no network
3084         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
3085         on the presumption that it means you lack network access.
3086
3087 2009-01-26  Jim Meyering  <meyering@redhat.com>
3088
3089         fflush: avoid warnings on modern systems
3090         * lib/fflush.c (rpl_fflush): Move declarations of locals,
3091         pos and result, into scopes where they're used.
3092
3093 2009-01-26  Eric Blake  <ebb9@byu.net>
3094
3095         Silence warning reintroduced by recent extensions patch.
3096         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
3097         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
3098         autoconf.
3099
3100         Backport improved autoconf semantics of AC_DEFUN_ONCE.
3101         * m4/00gnulib.m4: New file.
3102         * gnulib-tool (func_get_filelist): Always use it.
3103         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
3104         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
3105
3106 2009-01-25  Bruno Haible  <bruno@clisp.org>
3107
3108         Make test-quotearg work on MacOS X and AIX.
3109         * tests/test-quotearg.sh: New file.
3110         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
3111         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
3112         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
3113         include <libintl.h>.
3114         (fake_locale): Remove variable.
3115         (gettext, dgettext, dcgettext): Remove functions.
3116         (main): Instead of setting a fake locale, set a real locale. Call
3117         textdomain and bindtextdomain.
3118         * modules/quotearg-tests (Files): Add the new files.
3119         (Depends-on): Add gettext, setenv, unsetenv.
3120         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3121         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
3122         Augment TESTS_ENVIRONMENT.
3123
3124 2009-01-25  Bruno Haible  <bruno@clisp.org>
3125
3126         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
3127         fr_FR.ISO8859-1 locale on MacOS X.
3128         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
3129         ja_JP.eucJP locale on MacOS X.
3130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
3131         zh_CN.GB18030 locale on MacOS X.
3132
3133 2009-01-25  Bruno Haible  <bruno@clisp.org>
3134
3135         Avoid link errors on MacOS X 10.3.
3136         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
3137         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
3138
3139 2009-01-25  Bruno Haible  <bruno@clisp.org>
3140
3141         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
3142         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
3143         * modules/pipe (Files): Remove m4/posix_spawn.m4.
3144         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
3145         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
3146         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
3147         posix_spawnattr_init, posix_spawnattr_setsigmask,
3148         posix_spawnattr_setflags, posix_spawnattr_destroy.
3149
3150         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
3151         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
3152         * modules/execute (Files): Remove m4/posix_spawn.m4.
3153         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
3154         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
3155         posix_spawnattr_init, posix_spawnattr_setsigmask,
3156         posix_spawnattr_setflags, posix_spawnattr_destroy.
3157
3158 2009-01-25  Bruno Haible  <bruno@clisp.org>
3159
3160         * lib/glthread/threadlib.c: Include <stdlib.h>.
3161
3162 2009-01-25  Bruno Haible  <bruno@clisp.org>
3163
3164         * lib/glthread/threadlib.c (dummy): New declaration.
3165
3166 2009-01-25  Bruno Haible  <bruno@clisp.org>
3167
3168         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
3169         multibyte characters also for the GB18030 encoding. Don't crash when
3170         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
3171
3172 2009-01-25  Bruno Haible  <bruno@clisp.org>
3173
3174         Avoid redefining 'struct random_data' on OSF/1 5.1.
3175         * lib/stdlib.in.h: Include <random.h> if it exists.
3176         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
3177         HAVE_RANDOM_H. Include <random.h> when testing whether
3178         'struct random_data' exists.
3179         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
3180
3181 2009-01-25  Bruno Haible  <bruno@clisp.org>
3182
3183         Don't install charset.alias on MacOS X >= 10.3.
3184         * lib/localcharset.c (DARWIN7): New macro.
3185         (get_charset_aliases): Hardcode the result for Darwin7.
3186         * modules/localcharset (install-exec-local): Don't install
3187         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
3188
3189 2009-01-25  Bruno Haible  <bruno@clisp.org>
3190
3191         Don't install charset.alias on mingw and Cygwin.
3192         * modules/localcharset (install-exec-local): Don't install
3193         charset.alias on mingw and Cygwin, if the file does not yet exist.
3194         The result for these platforms is hardcoded in localcharset.c.
3195
3196 2009-01-25  Bruno Haible  <bruno@clisp.org>
3197
3198         Make it possible again to use AC_GNU_SOURCE together with gnulib.
3199         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
3200         before requiring AC_USE_SYSTEM_EXTENSIONS.
3201
3202 2009-01-25  Jim Meyering  <meyering@redhat.com>
3203
3204         c-strtod: avoid warnings
3205         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
3206         "assignment discards qualifiers from pointer target type" warnings.
3207
3208 2009-01-24  Bruno Haible  <bruno@clisp.org>
3209
3210         Add support for non-UTF-8 locales on MacOS X.
3211         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
3212         canonical encodings. For Darwin 7 and newer, don't map traditional
3213         encodings to UTF-8.
3214         Reported by Vincent Lefevre <vincent@vinc17.org>
3215         at <http://savannah.gnu.org/bugs/?25235>.
3216
3217 2009-01-24  Bruno Haible  <bruno@clisp.org>
3218
3219         * doc/gnulib.texi (Obsolete modules): New section.
3220         Reported by Mike Frysinger <vapier@gentoo.org>.
3221
3222 2009-01-24  Bruno Haible  <bruno@clisp.org>
3223
3224         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
3225         (%.dvi): New rule.
3226
3227 2009-01-24  Bruno Haible  <bruno@clisp.org>
3228
3229         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
3230         Reported by Eric Blake.
3231
3232 2009-01-24  Bruno Haible  <bruno@clisp.org>
3233
3234         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
3235         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
3236         Reported by Gary V. Vaughan <gary@gnu.org>.
3237
3238 2009-01-24  Bruno Haible  <bruno@clisp.org>
3239
3240         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
3241
3242 2009-01-23  Bruno Haible  <bruno@clisp.org>
3243
3244         Make c-strtod, c-strtold usable in libraries.
3245         * lib/c-strtod.c: Include string.h instead of xalloc.h.
3246         (C_STRTOD): Call strdup instead of xstrdup.
3247         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
3248         * modules/c-strtold (Depends-on): Likewise.
3249         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
3250         * NEWS: Mention the change.
3251         Reported by Michael Gold <mgold@ncf.ca>.
3252
3253 2009-01-23  Jim Meyering  <meyering@redhat.com>
3254
3255         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
3256         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
3257         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
3258
3259 2009-01-23  Simon Josefsson  <simon@josefsson.org>
3260
3261         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
3262         GNU CoreUtils.
3263         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
3264         * modules/version-etc (Description): Update.
3265
3266 2009-01-22  Bruno Haible  <bruno@clisp.org>
3267
3268         Cache the C locale object.
3269         * lib/c-strtod.c (c_locale_cache): New variable.
3270         (c_locale): New function.
3271         (C_STRTOD): Use it, and don't call freelocale.
3272         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
3273         Suggested by Paolo Bonzini.
3274
3275 2009-01-21  Bruno Haible  <bruno@clisp.org>
3276
3277         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
3278         conditions other than overflow.
3279
3280 2009-01-21  Bruno Haible  <bruno@clisp.org>
3281
3282         * lib/c-strtod.c: Include errno.h.
3283         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
3284         value from STRTOD_L and STRTOD.
3285
3286 2009-01-21  Bruno Haible  <bruno@clisp.org>
3287         and Jim Meyering  <meyering@redhat.com>
3288
3289         nanosleep: skip configure test (fail it) for apple universal builds
3290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
3291         universal builds, assume that nanosleep does not work.
3292         * modules/nanosleep (Depends-on): Add multiarch.
3293
3294         mktime: skip configure test (fail it) for apple universal builds
3295         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
3296         universal builds, assume that mktime does not work.
3297         * modules/mktime (Depends-on): Add multiarch.
3298
3299 2009-01-21  Eric Blake  <ebb9@byu.net>
3300
3301         multiarch: avoid expand-before-require warning
3302         * modules/multiarch (configure.ac): Require, rather than expand,
3303         gl_MULTIARCH.
3304         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
3305         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
3306         enforce that all clients require it.  Partial reversion of
3307         2008-12-29 patch.
3308
3309         error: avoid expand-before-require warning
3310         * modules/errno (configure.ac): Require, rather than expand,
3311         gl_HEADER_ERRNO_H.
3312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
3313         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
3314         enforce that all clients require it.
3315
3316         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
3317         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
3318         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
3319         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
3320
3321 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
3322
3323         Revert:
3324         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
3325
3326         regex: do not depend on obsolete modules.
3327         * modules/regex: Remove memcmp and memmove.
3328
3329 2009-01-20  Bruno Haible  <bruno@clisp.org>
3330
3331         Make the 'link' module link on Windows NT 4.
3332         * lib/link.c (_WIN32_WINNT): Don't define.
3333         (CreateHardLinkFuncType): New type.
3334         (CreateHardLinkFunc, initialized): New variables.
3335         (initialize): New function.
3336         (link): Invoke CreateHardLink indirectly through the function pointer.
3337
3338 2009-01-20  Bruno Haible  <bruno@clisp.org>
3339
3340         Fix compilation failure on mingw.
3341         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
3342
3343 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
3344
3345         * doc/c-strtod.texi: Mention a couple of restrictions.
3346
3347 2009-01-20  Jim Meyering  <meyering@redhat.com>
3348
3349         gettimeofday: move more declarations out of functions
3350         * lib/gettimeofday.c: Move extern declarations of tzset and
3351         gmtime out of containing functions.  Prompted by Bruno Haible.
3352
3353 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
3354
3355         regex: do not depend on obsolete modules.
3356         * modules/regex: Remove memcmp and memmove.
3357
3358 2009-01-19  Bruno Haible  <bruno@clisp.org>
3359
3360         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
3361         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
3362         gl_BIGENDIAN, not AC_C_BIGENDIAN.
3363         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
3364         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
3365
3366 2009-01-19  Bruno Haible  <bruno@clisp.org>
3367
3368         * tests/test-link.c: Include <errno.h>.
3369         (main): Exit with code 77 when a hard link cannot be created due to
3370         the file system.
3371         * tests/test-link.sh: Skip test when a hard link cannot be created due
3372         to the file system.
3373         Suggested by Eric Blake.
3374
3375 2009-01-19  Martin Lambers  <marlam@marlam.de>
3376
3377         * modules/link-tests: New file.
3378         * tests/test-link.sh: New file.
3379         * tests/test-link.c: New file.
3380
3381 2009-01-19  Eric Blake  <ebb9@byu.net>
3382
3383         doc: mention another function added in cygwin 1.7.0
3384         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
3385         Another new function in cygwin 1.7.
3386
3387 2009-01-19  Bruno Haible  <bruno@clisp.org>
3388
3389         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
3390         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
3391         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
3392         gl_BIGENDIAN, not AC_C_BIGENDIAN.
3393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3394         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3396         * m4/md4.m4 (gl_MD4): Likewise.
3397         * m4/md5.m4 (gl_MD5): Likewise.
3398         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
3399         * m4/sha1.m4 (gl_SHA1): Likewise.
3400         * m4/sha256.m4 (gl_SHA256): Likewise.
3401         * m4/sha512.m4 (gl_SHA512): Likewise.
3402
3403 2009-01-19  Bruno Haible  <bruno@clisp.org>
3404
3405         * modules/uniname/uniname-tests (Depends-on): Add progname.
3406         * tests/uniname/test-uninames.c: Include progname.h.
3407         (main): Call set_program_name.
3408
3409         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
3410         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
3411         (main): Call set_program_name.
3412
3413         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
3414         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
3415         (main): Call set_program_name.
3416
3417         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
3418         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
3419         (main): Call set_program_name.
3420
3421         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
3422         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
3423         (main): Call set_program_name.
3424
3425         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
3426         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
3427         (main): Call set_program_name.
3428
3429         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
3430         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
3431         (main): Call set_program_name.
3432
3433         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
3434         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
3435         (main): Call set_program_name.
3436
3437         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
3438         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
3439         (main): Call set_program_name.
3440
3441 2009-01-19  Eric Blake  <ebb9@byu.net>
3442
3443         test-unistd: test previous patch
3444         * tests/test-unistd.c: Test *_FILENO macros.
3445
3446         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
3447         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3448         Guarantee a definition.
3449         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
3450         * modules/unistd-safer (Depends-on): Add dependency on unistd.
3451         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
3452         * lib/dup-safer.c (STDERR_FILENO): Likewise.
3453         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3454         Likewise.
3455         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
3456         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
3457         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3458         Likewise.
3459         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
3460         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
3461         (STDERR_FILENO): Likewise.
3462         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
3463         (STDERR_FILENO): Likewise.
3464         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
3465         (STDERR_FILENO): Likewise.
3466         Reported by Elbert Pol.
3467
3468 2009-01-19  Eric Blake  <ebb9@byu.net>
3469
3470         doc: mention more functions added in cygwin 1.7.0
3471         * doc/posix-functions/abort.texi (abort): Update wording related
3472         to cygwin.
3473         * doc/posix-functions/daylight.texi (daylight): Likewise.
3474         * doc/posix-functions/optarg.texi (optarg): Likewise.
3475         * doc/posix-functions/optarg.texi (opterr): Likewise.
3476         * doc/posix-functions/optarg.texi (optind): Likewise.
3477         * doc/posix-functions/optarg.texi (optopt): Likewise.
3478         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
3479         worked in 1.5.x, and was withdrawn in 1.7.
3480         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3481         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
3482         cygwin versions.
3483         * doc/posix-functions/perror.texi (perror): Likewise.
3484         * doc/posix-functions/printf.texi (printf): Likewise.
3485         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
3486         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
3487         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3488         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3489         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3490         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
3491         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3492         Likewise.
3493         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3494         Likewise.
3495         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
3496         this function.
3497         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
3498         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
3499         Likewise.
3500         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
3501         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
3502         * doc/posix-functions/confstr.texi (confstr): Likewise.
3503         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
3504         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
3505         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
3506         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
3507         * doc/posix-functions/fputws.texi (fputws): Likewise.
3508         * doc/posix-functions/fwide.texi (fwide): Likewise.
3509         * doc/posix-functions/getwc.texi (getwc): Likewise.
3510         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
3511         * doc/posix-functions/putwc.texi (putwc): Likewise.
3512         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3513         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
3514         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
3515         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3516         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
3517         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
3518         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
3519         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
3520         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
3521         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
3522         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
3523
3524 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3525
3526         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
3527         * lib/ioctl.c: Include <sys/ioctl.h>.
3528
3529 2009-01-19  Simon Josefsson  <simon@josefsson.org>
3530
3531         * modules/getdate-tests (Depends-on): Add progname.
3532         * tests/test-getdate.c: Use progname module, to avoid link errors
3533         on non-glibc systems.
3534
3535 2009-01-18  Simon Josefsson  <simon@josefsson.org>
3536
3537         * modules/filenamecat-tests (Depends-on): Add progname.
3538         * modules/fstrcmp-tests (Depends-on): Likewise.
3539
3540         * tests/test-filenamecat.c: Use progname module, to avoid link
3541         errors on non-glibc systems.
3542         * tests/test-fstrcmp.c: Likewise.
3543
3544 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
3545
3546         gettimeofday: avoid warning: nested extern declaration of 'localtime'
3547         * lib/gettimeofday.c: Move extern declaration out of function.
3548
3549 2009-01-18  Bruno Haible  <bruno@clisp.org>
3550
3551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
3552         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
3553         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
3554
3555 2009-01-18  Bruno Haible  <bruno@clisp.org>
3556
3557         * lib/strftime.c (MEMPCPY): Remove unused macro.
3558         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
3559
3560 2009-01-18  Martin Lambers  <marlam@marlam.de>
3561
3562         New module 'link'.
3563         * lib/unistd.in.h (link): New declaration.
3564         * lib/link.c: New file.
3565         * m4/link.m4: New file.
3566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
3567         HAVE_LINK.
3568         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
3569         * modules/link: New file.
3570         * doc/posix-functions/link.texi: Mention the new module.
3571
3572 2009-01-18  Bruno Haible  <bruno@clisp.org>
3573
3574         * tests/test-avltree_list.c (main): Call set_program_name.
3575         * tests/test-avltree_oset.c (main): Likewise.
3576         * tests/test-obstack-printf.c: Include progname.h.
3577         (main): Call set_program_name.
3578         * tests/test-quotearg.c: Include progname.h.
3579         (main): Call set_program_name.
3580         * tests/test-xmemdup0.c: Include progname.h.
3581         (main): Call set_program_name.
3582
3583 2009-01-18  Bruno Haible  <bruno@clisp.org>
3584
3585         New module 'alphasort'.
3586         * lib/dirent.in.h (alphasort): New declaration.
3587         * lib/alphasort.c: New file, from glibc with modifications.
3588         * m4/alphasort.m4: New file.
3589         * modules/alphasort: New file.
3590         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
3591         HAVE_ALPHASORT.
3592         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
3593         HAVE_ALPHASORT.
3594         * doc/posix-functions/alphasort.texi: Mention the new module and the
3595         portability problems.
3596
3597 2009-01-18  Bruno Haible  <bruno@clisp.org>
3598
3599         New module 'scandir'.
3600         * lib/dirent.in.h (scandir): New declaration.
3601         * lib/scandir.c: New file, from glibc with modifications.
3602         * m4/scandir.m4: New file.
3603         * modules/scandir: New file.
3604         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
3605         HAVE_SCANDIR.
3606         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
3607         HAVE_SCANDIR.
3608         * doc/posix-functions/scandir.texi: Mention the new module and the
3609         portability problems.
3610
3611 2009-01-17  Bruno Haible  <bruno@clisp.org>
3612
3613         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
3614         Update documentation.
3615         (func_remove_suffix): Escape all dots in the suffix. Update
3616         documentation.
3617         (func_filter_filelist): Update documentation.
3618         Reported by Ralf Wildenhues.
3619
3620 2009-01-17  Bruno Haible  <bruno@clisp.org>
3621
3622         * modules/dprintf-posix-tests: New file.
3623         * tests/test-dprintf-posix.sh: New file.
3624         * tests/test-dprintf-posix.c: New file.
3625
3626         New modules 'dprintf', 'dprintf-posix'.
3627         * lib/stdio.in.h (dprintf): New declaration.
3628         * lib/dprintf.c: New file.
3629         * m4/dprintf.m4: New file.
3630         * m4/dprintf-posix.m4: New file.
3631         * modules/dprintf: New file.
3632         * modules/dprintf-posix: New file.
3633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
3634         HAVE_DPRINTF, REPLACE_DPRINTF.
3635         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
3636         HAVE_DPRINTF, REPLACE_DPRINTF.
3637         * doc/posix-functions/dprintf.texi: Mention the new modules.
3638
3639 2009-01-17  Bruno Haible  <bruno@clisp.org>
3640
3641         * modules/vdprintf-posix-tests: New file.
3642         * tests/test-vdprintf-posix.sh: New file.
3643         * tests/test-vdprintf-posix.c: New file.
3644
3645         New modules 'vdprintf', 'vdprintf-posix'.
3646         * lib/stdio.in.h (vdprintf): New declaration.
3647         * lib/vdprintf.c: New file.
3648         * m4/vdprintf.m4: New file.
3649         * m4/vdprintf-posix.m4: New file.
3650         * modules/vdprintf: New file.
3651         * modules/vdprintf-posix: New file.
3652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
3653         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3654         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
3655         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3656         * doc/posix-functions/vdprintf.texi: Mention the new modules.
3657
3658 2009-01-17  Bruno Haible  <bruno@clisp.org>
3659
3660         Fix replacement of fopen on mingw.
3661         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
3662         mingw.
3663
3664 2009-01-17  Bruno Haible  <bruno@clisp.org>
3665
3666         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
3667         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
3668
3669 2009-01-17  Bruno Haible  <bruno@clisp.org>
3670
3671         Avoid test-fflush2.sh failure on mingw.
3672         * tests/test-fflush2.c: Include binary-io.h.
3673         (main): Put standard input into binary mode.
3674         * modules/fflush-tests (Depends-on): Add binary-io.
3675
3676 2009-01-17  Bruno Haible  <bruno@clisp.org>
3677
3678         * lib/wchar.in.h: In another particular situation, include only the
3679         system's <wchar.h> file.
3680         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
3681         Reported by Albert Chin-A-Young <china@thewrittenword.com>
3682         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
3683
3684 2009-01-17  Bruno Haible  <bruno@clisp.org>
3685
3686         Support for stripping executables in --enable-relocatable.
3687         * build-aux/install-reloc: Expect one more argument, or an environment
3688         variable RELOC_STRIP_PROG. If set, strip the destination program and
3689         its wrapper.
3690         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
3691         RELOC_STRIP_PROG.
3692         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
3693         to set RELOCATABLE_STRIP.
3694         * NEWS: Mention the new Makefile requirement.
3695
3696 2009-01-17  Bruno Haible  <bruno@clisp.org>
3697
3698         * build-aux/install-reloc: Remove debugging information left over by
3699         C compiler on MacOS X.
3700
3701 2009-01-17  Bruno Haible  <bruno@clisp.org>
3702
3703         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
3704         * lib/progreloc.c (find_executable): Fix type of pointer passed to
3705         _NSGetExecutablePath.
3706
3707 2009-01-16  Jim Meyering  <meyering@redhat.com>
3708
3709         strerror: avoid warnings about discarding "const"
3710         * lib/strerror.c (rpl_strerror): Instead of returning a const
3711         string from each and every "case", use a variable, and add a single
3712         cast after the switch.
3713
3714 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
3715
3716         * lib/arpa_inet.in.h: Add extern "C" block for C++.
3717
3718 2009-01-16  Bruno Haible  <bruno@clisp.org>
3719
3720         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
3721         array initializer syntax that also works in C++ mode.
3722         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3723
3724 2009-01-16  Jim Meyering  <meyering@redhat.com>
3725
3726         poll: suppress a warning
3727         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
3728         to ignore "...unsigned expression < 0 is always false" warnings.
3729
3730 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
3731
3732         poll: remove declarations of unused variables
3733         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
3734         sockbuf and optlen.
3735
3736 2009-01-15  Bruno Haible  <bruno@clisp.org>
3737
3738         Make fflush-after-ungetc POSIX compliant on BSD systems.
3739         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
3740         (clear_ungetc_buffer): Implement also for other systems.
3741         (rpl_fflush): On glibc systems, invoke
3742         clear_ungetc_buffer_preserving_position. Otherwise, invoke
3743         clear_ungetc_buffer after fetching the stream's position, not before.
3744
3745 2009-01-15  Bruno Haible  <bruno@clisp.org>
3746
3747         Make fflush-after-ungetc POSIX compliant on glibc systems.
3748         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
3749         after ungetc.
3750         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
3751         (rpl_fflush): On glibc systems, simply call the system's fflush
3752         function after clearing the ungetc buffer.
3753         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
3754         Instead, lseek only to the end of file, then use the system's fseeko
3755         for the rest. On glibc systems, reset the EOF indicator bit.
3756
3757 2009-01-15  Jim Meyering  <meyering@redhat.com>
3758
3759         openmp.m4: revert quote-adding change, for portability to older autoconf
3760         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
3761         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
3762         Simon Josefsson noticed the problem when using autoconf-2.61.
3763
3764 2009-01-15  Bruno Haible  <bruno@clisp.org>
3765
3766         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
3767         * tests/test-fflush2.c (ASSERT): Always fail.
3768         (main): Add two tests for fflush() after ungetc(), taking into account
3769         the Austin Group's clarification.
3770         Suggested by Eric Blake.
3771
3772 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
3773
3774         mktime.m4: remove K&R-style function prototypes
3775         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
3776         for the Sun C++ compiler.
3777
3778 2009-01-14  Bruno Haible  <bruno@clisp.org>
3779
3780         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
3781         while including <wchar.h>.
3782         * lib/wchar.in.h: In two particular situations on HP-UX, include only
3783         the system's <wchar.h> file.
3784         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3785
3786 2009-01-14  Bruno Haible  <bruno@clisp.org>
3787
3788         * m4/csharp.m4: Don't mention gettext on the serial number line.
3789         * m4/csharpexec.m4: Likewise.
3790         * m4/eaccess.m4: Likewise.
3791         * m4/javaexec.m4: Likewise.
3792         * m4/sig_atomic_t.m4: Likewise.
3793         * m4/tmpdir.m4: Likewise.
3794         * m4/intldir.m4: Bump gettext version.
3795         * m4/lib-ld.m4: Likewise.
3796
3797 2009-01-14  Bruno Haible  <bruno@clisp.org>
3798
3799         * lib/progname.c (set_program_name): Add more comments.
3800         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3801
3802 2009-01-14  Simon Josefsson  <simon@josefsson.org>
3803
3804         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
3805         were sys/stat.h does not define it.
3806
3807 2009-01-14  Jim Meyering  <meyering@redhat.com>
3808
3809         many *.m4 files: improve m4 quoting
3810         99% of this change was performed by running the following commands:
3811         git ls-files | grep '\.m4$' | xargs perl -pi \
3812           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
3813           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3814           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3815           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
3816         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
3817         The remainder were to add Copyright dates, increment serial numbers,
3818         undo some changes in comments, exclude m4/intl.m4, and add quotes
3819         around the "1" in ",1" where the unusual spacing prohibited the
3820         above regexps from doing the job.  For more details, see
3821         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
3822         * m4/acl.m4: Modified.
3823         * m4/afs.m4: Likewise.
3824         * m4/alloca.m4: Likewise.
3825         * m4/argp.m4: Likewise.
3826         * m4/argz.m4: Likewise.
3827         * m4/atexit.m4: Likewise.
3828         * m4/bison-i18n.m4: Likewise.
3829         * m4/bison.m4: Likewise.
3830         * m4/byteswap.m4: Likewise.
3831         * m4/c-stack.m4: Likewise.
3832         * m4/c-strtod.m4: Likewise.
3833         * m4/calloc.m4: Likewise.
3834         * m4/canonicalize-lgpl.m4: Likewise.
3835         * m4/chown.m4: Likewise.
3836         * m4/clock_time.m4: Likewise.
3837         * m4/codeset.m4: Likewise.
3838         * m4/copy-file.m4: Likewise.
3839         * m4/csharp.m4: Likewise.
3840         * m4/csharpcomp.m4: Likewise.
3841         * m4/csharpexec.m4: Likewise.
3842         * m4/d-ino.m4: Likewise.
3843         * m4/d-type.m4: Likewise.
3844         * m4/dirfd.m4: Likewise.
3845         * m4/double-slash-root.m4: Likewise.
3846         * m4/eaccess.m4: Likewise.
3847         * m4/eealloc.m4: Likewise.
3848         * m4/environ.m4: Likewise.
3849         * m4/errno_h.m4: Likewise.
3850         * m4/euidaccess.m4: Likewise.
3851         * m4/execute.m4: Likewise.
3852         * m4/fatal-signal.m4: Likewise.
3853         * m4/fchdir.m4: Likewise.
3854         * m4/fcntl_h.m4: Likewise.
3855         * m4/fileblocks.m4: Likewise.
3856         * m4/filenamecat.m4: Likewise.
3857         * m4/findprog.m4: Likewise.
3858         * m4/flexmember.m4: Likewise.
3859         * m4/fnmatch.m4: Likewise.
3860         * m4/fopen.m4: Likewise.
3861         * m4/fpending.m4: Likewise.
3862         * m4/fprintf-posix.m4: Likewise.
3863         * m4/free.m4: Likewise.
3864         * m4/frexp.m4: Likewise.
3865         * m4/frexpl.m4: Likewise.
3866         * m4/fsusage.m4: Likewise.
3867         * m4/ftruncate.m4: Likewise.
3868         * m4/gc-camellia.m4: Likewise.
3869         * m4/gc-random.m4: Likewise.
3870         * m4/gc.m4: Likewise.
3871         * m4/getaddrinfo.m4: Likewise.
3872         * m4/getcwd-abort-bug.m4: Likewise.
3873         * m4/getcwd-path-max.m4: Likewise.
3874         * m4/getdate.m4: Likewise.
3875         * m4/getdomainname.m4: Likewise.
3876         * m4/getgroups.m4: Likewise.
3877         * m4/gethostname.m4: Likewise.
3878         * m4/gethrxtime.m4: Likewise.
3879         * m4/getline.m4: Likewise.
3880         * m4/getloadavg.m4: Likewise.
3881         * m4/getndelim2.m4: Likewise.
3882         * m4/getpass.m4: Likewise.
3883         * m4/gettext.m4: Likewise.
3884         * m4/gettime.m4: Likewise.
3885         * m4/gettimeofday.m4: Likewise.
3886         * m4/gnulib-common.m4: Likewise.
3887         * m4/group-member.m4: Likewise.
3888         * m4/host-os.m4: Likewise.
3889         * m4/iconv.m4: Likewise.
3890         * m4/iconv_open.m4: Likewise.
3891         * m4/inet_ntop.m4: Likewise.
3892         * m4/inet_pton.m4: Likewise.
3893         * m4/inline.m4: Likewise.
3894         * m4/intldir.m4: Likewise.
3895         * m4/intlmacosx.m4: Likewise.
3896         * m4/intmax.m4: Likewise.
3897         * m4/intmax_t.m4: Likewise.
3898         * m4/inttypes.m4: Likewise.
3899         * m4/inttypes_h.m4: Likewise.
3900         * m4/inttypes-pri.m4: Likewise.
3901         * m4/isapipe.m4: Likewise.
3902         * m4/isnand.m4: Likewise.
3903         * m4/isnanf.m4: Likewise.
3904         * m4/isnanl.m4: Likewise.
3905         * m4/javacomp.m4: Likewise.
3906         * m4/javaexec.m4: Likewise.
3907         * m4/jm-winsz1.m4: Likewise.
3908         * m4/jm-winsz2.m4: Likewise.
3909         * m4/lchown.m4: Likewise.
3910         * m4/lcmessage.m4: Likewise.
3911         * m4/ldexpl.m4: Likewise.
3912         * m4/lib-ld.m4: Likewise.
3913         * m4/lib-link.m4: Likewise.
3914         * m4/libsigsegv.m4: Likewise.
3915         * m4/link-follow.m4: Likewise.
3916         * m4/localcharset.m4: Likewise.
3917         * m4/locale-fr.m4: Likewise.
3918         * m4/locale-ja.m4: Likewise.
3919         * m4/locale-tr.m4: Likewise.
3920         * m4/locale-zh.m4: Likewise.
3921         * m4/lock.m4: Likewise.
3922         * m4/longlong.m4: Likewise.
3923         * m4/ls-mntd-fs.m4: Likewise.
3924         * m4/lstat.m4: Likewise.
3925         * m4/malloc.m4: Likewise.
3926         * m4/mathl.m4: Likewise.
3927         * m4/mbrtowc.m4: Likewise.
3928         * m4/mbstate_t.m4: Likewise.
3929         * m4/mbswidth.m4: Likewise.
3930         * m4/memchr.m4: Likewise.
3931         * m4/memcmp.m4: Likewise.
3932         * m4/memcpy.m4: Likewise.
3933         * m4/memmem.m4: Likewise.
3934         * m4/memmove.m4: Likewise.
3935         * m4/mempcpy.m4: Likewise.
3936         * m4/memrchr.m4: Likewise.
3937         * m4/memset.m4: Likewise.
3938         * m4/minmax.m4: Likewise.
3939         * m4/mkdir-slash.m4: Likewise.
3940         * m4/mkdtemp.m4: Likewise.
3941         * m4/mktime.m4: Likewise.
3942         * m4/mmap-anon.m4: Likewise.
3943         * m4/mountlist.m4: Likewise.
3944         * m4/nanosleep.m4: Likewise.
3945         * m4/nls.m4: Likewise.
3946         * m4/nocrash.m4: Likewise.
3947         * m4/open.m4: Likewise.
3948         * m4/openat.m4: Likewise.
3949         * m4/openmp.m4: Likewise.
3950         * m4/pathmax.m4: Likewise.
3951         * m4/perl.m4: Likewise.
3952         * m4/physmem.m4: Likewise.
3953         * m4/pipe.m4: Likewise.
3954         * m4/po.m4: Likewise.
3955         * m4/poll.m4: Likewise.
3956         * m4/posixtm.m4: Likewise.
3957         * m4/posixver.m4: Likewise.
3958         * m4/printf-frexp.m4: Likewise.
3959         * m4/printf-frexpl.m4: Likewise.
3960         * m4/printf-posix.m4: Likewise.
3961         * m4/printf-posix-rpl.m4: Likewise.
3962         * m4/printf.m4: Likewise.
3963         * m4/progtest.m4: Likewise.
3964         * m4/putenv.m4: Likewise.
3965         * m4/readline.m4: Likewise.
3966         * m4/readlink.m4: Likewise.
3967         * m4/readutmp.m4: Likewise.
3968         * m4/realloc.m4: Likewise.
3969         * m4/regex.m4: Likewise.
3970         * m4/relocatable.m4: Likewise.
3971         * m4/relocatable-lib.m4: Likewise.
3972         * m4/rename-dest-slash.m4: Likewise.
3973         * m4/rename.m4: Likewise.
3974         * m4/rmdir-errno.m4: Likewise.
3975         * m4/rmdir.m4: Likewise.
3976         * m4/roundf.m4: Likewise.
3977         * m4/roundl.m4: Likewise.
3978         * m4/rpmatch.m4: Likewise.
3979         * m4/save-cwd.m4: Likewise.
3980         * m4/selinux-selinux-h.m4: Likewise.
3981         * m4/setenv.m4: Likewise.
3982         * m4/settime.m4: Likewise.
3983         * m4/sig2str.m4: Likewise.
3984         * m4/sig_atomic_t.m4: Likewise.
3985         * m4/signalblocking.m4: Likewise.
3986         * m4/signbit.m4: Likewise.
3987         * m4/sigpipe.m4: Likewise.
3988         * m4/sockets.m4: Likewise.
3989         * m4/sockpfaf.m4: Likewise.
3990         * m4/st_dm_mode.m4: Likewise.
3991         * m4/stat-time.m4: Likewise.
3992         * m4/stdbool.m4: Likewise.
3993         * m4/stdint.m4: Likewise.
3994         * m4/stdint_h.m4: Likewise.
3995         * m4/stpcpy.m4: Likewise.
3996         * m4/stpncpy.m4: Likewise.
3997         * m4/strcase.m4: Likewise.
3998         * m4/strchrnul.m4: Likewise.
3999         * m4/strcspn.m4: Likewise.
4000         * m4/strdup.m4: Likewise.
4001         * m4/strftime.m4: Likewise.
4002         * m4/strndup.m4: Likewise.
4003         * m4/strnlen.m4: Likewise.
4004         * m4/strpbrk.m4: Likewise.
4005         * m4/strptime.m4: Likewise.
4006         * m4/strsep.m4: Likewise.
4007         * m4/strtod.m4: Likewise.
4008         * m4/strtoimax.m4: Likewise.
4009         * m4/strtok_r.m4: Likewise.
4010         * m4/strtol.m4: Likewise.
4011         * m4/strtoll.m4: Likewise.
4012         * m4/strtoul.m4: Likewise.
4013         * m4/strtoull.m4: Likewise.
4014         * m4/strtoumax.m4: Likewise.
4015         * m4/strverscmp.m4: Likewise.
4016         * m4/threadlib.m4: Likewise.
4017         * m4/timegm.m4: Likewise.
4018         * m4/tm_gmtoff.m4: Likewise.
4019         * m4/tmpdir.m4: Likewise.
4020         * m4/tmpfile.m4: Likewise.
4021         * m4/tzset.m4: Likewise.
4022         * m4/uintmax_t.m4: Likewise.
4023         * m4/unlinkdir.m4: Likewise.
4024         * m4/unlocked-io.m4: Likewise.
4025         * m4/uptime.m4: Likewise.
4026         * m4/userspec.m4: Likewise.
4027         * m4/utimbuf.m4: Likewise.
4028         * m4/utime.m4: Likewise.
4029         * m4/utimes-null.m4: Likewise.
4030         * m4/utimes.m4: Likewise.
4031         * m4/vararrays.m4: Likewise.
4032         * m4/vasnprintf.m4: Likewise.
4033         * m4/vfprintf-posix.m4: Likewise.
4034         * m4/vprintf-posix.m4: Likewise.
4035         * m4/wait-process.m4: Likewise.
4036         * m4/wchar_t.m4: Likewise.
4037         * m4/wint_t.m4: Likewise.
4038         * m4/write-any-file.m4: Likewise.
4039         * m4/yield.m4: Likewise.
4040
4041 2009-01-13  Bruno Haible  <bruno@clisp.org>
4042
4043         Avoid test-copy-file.sh failures when ACL support insufficient.
4044         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
4045         TESTS_ENVIRONMENT.
4046         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
4047         Reported by Jim Meyering.
4048
4049 2009-01-13  Bruno Haible  <bruno@clisp.org>
4050
4051         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
4052         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
4053         * modules/unistdio/u8-printf-parse (Files): Likewise.
4054         * modules/unistdio/u32-printf-parse (Files): Likewise.
4055         * modules/unistdio/ulc-printf-parse (Files): Likewise.
4056
4057 2009-01-13  Simon Josefsson  <simon@josefsson.org>
4058
4059         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
4060         and m4/inttypes_h.m4 too.
4061
4062 2009-01-12  Eric Blake  <ebb9@byu.net>
4063
4064         tests: IRIX 6.2 cc can't compile -0.0 into .data
4065         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
4066         rather than at compile-time.
4067         * tests/test-floorl.c (minus_zero): Likewise.
4068         * tests/test-frexpl.c (minus_zero): Likewise.
4069         * tests/test-isnan.c (minus_zerol): Likewise.
4070         * tests/test-isnanl.h (minus_zero): Likewise.
4071         * tests/test-ldexpl.c (minus_zero): Likewise.
4072         * tests/test-roundl.c (minus_zero): Likewise.
4073         * tests/test-signbit.c (minus_zerol): Likewise.
4074         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
4075         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
4076         * tests/test-truncl.c (minus_zero): Likewise.
4077         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
4078         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
4079         Reported by Tom G. Christensen and Nelson H. F. Beebe.
4080
4081 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
4082
4083         regex: fix glibc bug 9697
4084         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4085         handling.
4086
4087 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
4088
4089         regex: fix glibc bug 697
4090         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4091         being NULL also if there are no backreferences.
4092
4093 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
4094
4095         regex: merge glibc changes
4096         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4097         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4098         re_string_skip_chars, re_string_reconstruct): Likewise.
4099         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4100
4101 2009-01-07  Jim Meyering  <meyering@redhat.com>
4102
4103         poll: filter through cppi
4104         * lib/poll.c: Indent cpp directives to reflect nesting.
4105
4106 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
4107
4108         poll: don't return uninitialized
4109         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
4110
4111 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
4112
4113         avoid compile failure on AIX 6.1
4114         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
4115         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
4116
4117 2009-01-04  Jim Meyering  <meyering@redhat.com>
4118
4119         remove duplicate inclusion of <stdio.h>
4120         * tests/test-fprintf-posix.c: Likewise.
4121         * tests/test-printf-posix.c: Likewise.
4122         * tests/test-snprintf-posix.c: Likewise.
4123         * tests/test-sprintf-posix.c: Likewise.
4124         * tests/test-vasprintf-posix.c: Likewise.
4125         * tests/test-vfprintf-posix.c: Likewise.
4126         * tests/test-vprintf-posix.c: Likewise.
4127         * tests/test-vsnprintf-posix.c: Likewise.
4128         * tests/test-vsprintf-posix.c: Likewise.
4129
4130 2009-01-03  Jim Meyering  <meyering@redhat.com>
4131
4132         gnulib-tool: fix sed-based filtering
4133         * gnulib-tool (func_filter_filelist): Remove extra backslash
4134         in sed_fff_filter definition.
4135
4136 2009-01-02  Jim Meyering  <meyering@redhat.com>
4137
4138         strftime: avoid compilation failure on Solaris 2.6
4139         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
4140         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
4141         Don't #define mbrlen or mbsinit, since now they're guaranteed to
4142         be available.  Reported by Tom G. Christensen.  Details in
4143         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
4144
4145 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4146             Bruno Haible  <bruno@clisp.org>
4147
4148         Speed up gnulib-tool by doing more string processing through shell
4149         built-ins.
4150         * gnulib-tool (fast_func_append): New variable.
4151         (func_remove_prefix, func_remove_suffix): New functions.
4152         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
4153         (func_filter_filelist): New function.
4154         (func_get_dependencies): Use func_remove_suffix instead of sed.
4155         (func_get_automake_snippet): Use func_filter_filelist instead of a
4156         subshell and sed invocation.
4157
4158 2009-01-01  Bruno Haible  <bruno@clisp.org>
4159
4160         Fix a security bug.
4161         * gnulib-tool (func_import, import, update): Don't allow the characters
4162         '"', '$', '`', '\' in macro arguments that become part of commands that
4163         are evaluated.
4164
4165 2009-01-01  Bruno Haible  <bruno@clisp.org>
4166
4167         * gnulib-tool (func_reset_sigpipe): Add more comments.
4168
4169 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4170
4171         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
4172         func_emit_tests_Makefile_am, func_import): Abort loops early if we
4173         already know the answer.
4174
4175 2009-01-01  Jim Meyering  <meyering@redhat.com>
4176
4177         * lib/version-etc.c (version_etc_va): Update copyright year.
4178
4179 2008-12-30  Bruno Haible  <bruno@clisp.org>
4180
4181         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
4182         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
4183         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
4184
4185 2008-12-29  Eric Blake  <ebb9@byu.net>
4186
4187         multiarch: avoid autoconf AC_REQUIRE bug
4188         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
4189         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
4190         2.63 and older.
4191         Reported by Bruno Haible, and analyzed in
4192         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
4193
4194 2008-12-29  Bruno Haible  <bruno@clisp.org>
4195
4196         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
4197         files in subdirectories correctly.
4198         Reported by Ralf Wildenhues.
4199
4200 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4201
4202         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
4203         rather than 'join FILE -', for Solaris join.
4204
4205 2008-12-29  Bruno Haible  <bruno@clisp.org>
4206
4207         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
4208         quoting.
4209         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
4210         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4211         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4212         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
4213         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4214         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
4215         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4216         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4217         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4218         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
4219         * m4/nls.m4 (AM_NLS): Likewise.
4220         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
4221         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
4222         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4223         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4224         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4225         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4226         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
4227         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4228         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4229         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4230         * m4/xsize.m4 (gl_XSIZE): Likewise.
4231         Suggested by Jim Meyering.
4232
4233 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4234
4235         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
4236         * lib/parse-duration.c: use a switch instead of cascading if's.
4237
4238 2008-12-29  Eric Blake  <ebb9@byu.net>
4239
4240         wchar.h: supply WEOF on Irix 5.3
4241         * lib/wchar.in.h (wint_t): Also supply WEOF.
4242         * lib/wctype.in.h (wint_t): Likewise.
4243         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
4244         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
4245         Reported by Tom G. Christensen.
4246
4247 2008-12-26  Bruno Haible  <bruno@clisp.org>
4248
4249         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
4250         i486, i586, i686.
4251
4252 2008-12-26  Bruno Haible  <bruno@clisp.org>
4253
4254         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
4255
4256 2008-12-26  Bruno Haible  <bruno@clisp.org>
4257
4258         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
4259         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
4260         not __STDC_CONSTANT_MACROS.
4261         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
4262
4263 2008-12-25  Bruno Haible  <bruno@clisp.org>
4264
4265         Add support for universal builds to vasnprintf.
4266         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
4267         universal builds, guess no.
4268         * modules/vasnprintf-posix (Depends-on): Add multiarch.
4269         * modules/vasprintf-posix (Depends-on): Likewise.
4270         * modules/fprintf-posix (Depends-on): Likewise.
4271         * modules/vfprintf-posix (Depends-on): Likewise.
4272         * modules/snprintf-posix (Depends-on): Likewise.
4273         * modules/vsnprintf-posix (Depends-on): Likewise.
4274         * modules/sprintf-posix (Depends-on): Likewise.
4275         * modules/vsprintf-posix (Depends-on): Likewise.
4276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4283
4284         Add support for universal builds to <inttypes.h>.
4285         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
4286         _SCNu64_PREFIX): In Apple
4287         universal builds, define directly, using _LP64.
4288         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
4289         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
4290         * modules/inttypes (Depends-on): Add multiarch.
4291         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
4292
4293         Add support for universal builds to <stdint.h>.
4294         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
4295         universal builds, define directly, using _LP64.
4296         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
4297         Apple universal builds, don't test for the size and suffix of ptrdiff_t
4298         and size_t.
4299         * modules/stdint (Depends-on): Add multiarch.
4300         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
4301
4302         New module 'multiarch'.
4303         * modules/multiarch: New file.
4304         * m4/multiarch.m4: New file.
4305
4306 2008-12-25  Bruno Haible  <bruno@clisp.org>
4307
4308         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
4309
4310 2008-12-25  Bruno Haible  <bruno@clisp.org>
4311
4312         * modules/btowc (License): Relicense under LGPLv2+.
4313         * modules/mbsinit (License): Likewise.
4314         * modules/mbrtowc (License): Likewise.
4315         * modules/wcrtomb (License): Likewise.
4316         * modules/streq (License): Likewise.
4317         Reported by David Lutterkort <lutter@redhat.com>.
4318
4319 2008-12-23  Bruno Haible  <bruno@clisp.org>
4320
4321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
4322
4323 2008-12-23  Bruno Haible  <bruno@clisp.org>
4324
4325         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
4326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
4327         GETADDRINFO_LIB, not in LIBS.
4328         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
4329         * modules/canon-host (Link): Likewise.
4330         * NEWS: Mention the change.
4331         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
4332         GETADDRINFO_LIB.
4333
4334 2008-12-22  Bruno Haible  <bruno@clisp.org>
4335
4336         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
4337         * doc/posix-functions/iswalpha_l.texi: Likewise.
4338         * doc/posix-functions/iswblank_l.texi: Likewise.
4339         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4340         * doc/posix-functions/iswctype_l.texi: Likewise.
4341         * doc/posix-functions/iswdigit_l.texi: Likewise.
4342         * doc/posix-functions/iswgraph_l.texi: Likewise.
4343         * doc/posix-functions/iswlower_l.texi: Likewise.
4344         * doc/posix-functions/iswprint_l.texi: Likewise.
4345         * doc/posix-functions/iswpunct_l.texi: Likewise.
4346         * doc/posix-functions/iswspace_l.texi: Likewise.
4347         * doc/posix-functions/iswupper_l.texi: Likewise.
4348         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4349         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
4350         * doc/posix-functions/open_wmemstream.texi: Likewise.
4351         * doc/posix-functions/swscanf.texi: Likewise.
4352         * doc/posix-functions/towctrans_l.texi: Likewise.
4353         * doc/posix-functions/towlower.texi: Likewise.
4354         * doc/posix-functions/towlower_l.texi: Likewise.
4355         * doc/posix-functions/towupper.texi: Likewise.
4356         * doc/posix-functions/towupper_l.texi: Likewise.
4357         * doc/posix-functions/vfwprintf.texi: Likewise.
4358         * doc/posix-functions/vfwscanf.texi: Likewise.
4359         * doc/posix-functions/vswscanf.texi: Likewise.
4360         * doc/posix-functions/vwprintf.texi: Likewise.
4361         * doc/posix-functions/vwscanf.texi: Likewise.
4362         * doc/posix-functions/wcpcpy.texi: Likewise.
4363         * doc/posix-functions/wcpncpy.texi: Likewise.
4364         * doc/posix-functions/wcscasecmp.texi: Likewise.
4365         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
4366         * doc/posix-functions/wcscoll_l.texi: Likewise.
4367         * doc/posix-functions/wcsdup.texi: Likewise.
4368         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4369         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
4370         * doc/posix-functions/wcsnlen.texi: Likewise.
4371         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4372         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4373         * doc/posix-functions/wctrans_l.texi: Likewise.
4374         * doc/posix-functions/wctype_l.texi: Likewise.
4375         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
4376         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
4377         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
4378         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
4379         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
4380         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
4381         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
4382         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
4383         * doc/glibc-functions/wcschrnul.texi: Likewise.
4384         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4385         * doc/glibc-functions/wcstod_l.texi: Likewise.
4386         * doc/glibc-functions/wcstof_l.texi: Likewise.
4387         * doc/glibc-functions/wcstol_l.texi: Likewise.
4388         * doc/glibc-functions/wcstold_l.texi: Likewise.
4389         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4390         * doc/glibc-functions/wcstoq.texi: Likewise.
4391         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4392         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4393         * doc/glibc-functions/wcstouq.texi: Likewise.
4394         * doc/glibc-functions/wmempcpy.texi: Likewise.
4395
4396 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
4397             Eric Blake  <ebb9@byu.net>
4398             Paolo Bonzini  <bonzini@gnu.org>
4399             Bruno Haible  <bruno@clisp.org>
4400
4401         Make c-stack work on Haiku.
4402         * lib/c-stack.c (SA_ONSTACK): Define fallback.
4403         (c_stack_action): Use SA_ONSTACK flag.
4404
4405 2008-12-22  Bruno Haible  <bruno@clisp.org>
4406
4407         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
4408
4409 2008-12-22  Bruno Haible  <bruno@clisp.org>
4410
4411         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
4412         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
4413         being overridden.
4414         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
4415         New macros.
4416         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
4417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
4418         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
4419         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
4420
4421 2008-12-22  Bruno Haible  <bruno@clisp.org>
4422
4423         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
4424         from test code.
4425
4426 2008-12-22  Eric Blake  <ebb9@byu.net>
4427
4428         Avoid gcc warnings on cygwin.
4429         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
4430         Avoid unused variable.
4431         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
4432         Likewise.
4433
4434 2008-12-22  Bruno Haible  <bruno@clisp.org>
4435
4436         Remove HAVE_MBRTOWC conditionals.
4437         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
4438         (mbscasecmp): Assume mbrtowc function.
4439         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
4440         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
4441         * lib/mbschr.c: Include mbuiter.h unconditionally.
4442         (mbschr): Assume mbrtowc function.
4443         * lib/mbscspn.c: Include mbuiter.h unconditionally.
4444         (mbscspn): Assume mbrtowc function.
4445         * lib/mbslen.c: Include mbuiter.h unconditionally.
4446         (mbslen): Assume mbrtowc function.
4447         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
4448         (mbsncasecmp): Assume mbrtowc function.
4449         * lib/mbsnlen.c: Include mbiter.h unconditionally.
4450         (mbsnlen): Assume mbrtowc function.
4451         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
4452         (mbspbrk): Assume mbrtowc function.
4453         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
4454         (mbspcasecmp): Assume mbrtowc function.
4455         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
4456         (mbsrchr): Assume mbrtowc function.
4457         * lib/mbssep.c: Include mbuiter.h unconditionally.
4458         (mbssep): Assume mbrtowc function.
4459         * lib/mbsspn.c: Include mbuiter.h unconditionally.
4460         (mbsspn): Assume mbrtowc function.
4461         * lib/mbsstr.c: Include mbuiter.h unconditionally.
4462         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
4463         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
4464         (mbstok_r): Assume mbrtowc function.
4465         * lib/propername.c: Include mbuiter.h unconditionally.
4466         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
4467         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
4468         (trim2): Assume mbrtowc function.
4469         * lib/mbswidth.c (mbsinit): Remove fallback definition.
4470         (mbsnwidth): Assume mbrtowc function.
4471         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
4472         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
4473         fallback definitions.
4474         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
4475
4476 2008-12-22  Bruno Haible  <bruno@clisp.org>
4477
4478         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
4479
4480 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
4481
4482         * modules/regex: Request emulations for the mb*/wc* functions we need.
4483         * m4/regex.m4: Don't look for those functions here.
4484         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
4485
4486 2008-12-22  Bruno Haible  <bruno@clisp.org>
4487
4488         * modules/fnmatch (Depends-on): Remove duplicated dependency.
4489
4490 2008-12-21  Bruno Haible  <bruno@clisp.org>
4491
4492         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
4493         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
4494         (Include): Remove conditionalization.
4495         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
4496         (Include): Remove conditionalization.
4497         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
4498         (Include): Remove conditionalization.
4499         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
4500         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4501         * NEWS: Mention the change.
4502         Reported by Alan Hourihane <alanh@fairlite.co.uk>
4503         via Sergey Poznyakoff <gray@gnu.org.ua>.
4504
4505 2008-12-21  Bruno Haible  <bruno@clisp.org>
4506
4507         * MODULES.html.sh (Extended multibyte and wide character utilities
4508         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
4509         wcrtomb, wcsrtombs.
4510         (Support for systems lacking POSIX:2008): Add accept, bind, close,
4511         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
4512         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
4513         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
4514
4515 2008-12-21  Bruno Haible  <bruno@clisp.org>
4516
4517         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
4518
4519 2008-12-21  Bruno Haible  <bruno@clisp.org>
4520
4521         * modules/wcsnrtombs-tests: New file.
4522         * tests/test-wcsnrtombs1.sh: New file.
4523         * tests/test-wcsnrtombs2.sh: New file.
4524         * tests/test-wcsnrtombs3.sh: New file.
4525         * tests/test-wcsnrtombs4.sh: New file.
4526         * tests/test-wcsnrtombs.c: New file.
4527
4528         New module 'wcsnrtombs'.
4529         * lib/wchar.in.h (wcsnrtombs): New declaration.
4530         * lib/wcsnrtombs.c: New file.
4531         * lib/wcsrtombs-state.c: New file.
4532         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
4533         (internal_state): Remove variable.
4534         * m4/wcsnrtombs.m4: New file.
4535         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
4536         compilation units.
4537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
4538         HAVE_WCSNRTOMBS.
4539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
4540         HAVE_WCSNRTOMBS.
4541         * modules/wcsnrtombs: New file.
4542         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
4543         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4544
4545 2008-12-21  Bruno Haible  <bruno@clisp.org>
4546
4547         * modules/wcsrtombs-tests: New file.
4548         * tests/test-wcsrtombs1.sh: New file.
4549         * tests/test-wcsrtombs2.sh: New file.
4550         * tests/test-wcsrtombs3.sh: New file.
4551         * tests/test-wcsrtombs4.sh: New file.
4552         * tests/test-wcsrtombs.c: New file.
4553
4554         New module 'wcsrtombs'.
4555         * lib/wchar.in.h (wcsrtombs): New declaration.
4556         * lib/wcsrtombs.c: New file.
4557         * m4/wcsrtombs.m4: New file.
4558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
4559         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
4561         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
4562         * modules/wcsrtombs: New file.
4563         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
4564         bugs.
4565
4566 2008-12-21  Bruno Haible  <bruno@clisp.org>
4567
4568         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
4569         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
4570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
4571         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
4572         if not correct.
4573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
4574         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
4575         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4576         m4/locale-zh.m4, m4/codeset.m4.
4577         * doc/posix-functions/wcrtomb.texi: Document the bug.
4578
4579 2008-12-21  Bruno Haible  <bruno@clisp.org>
4580
4581         Work around a btowc() bug on IRIX 6.5.
4582         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
4583         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
4584         REPLACE_WTOBC if not.
4585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
4586         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
4587         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
4588
4589 2008-12-21  Bruno Haible  <bruno@clisp.org>
4590
4591         * modules/wcrtomb-tests: New file.
4592         * tests/test-wcrtomb.sh: New file.
4593         * tests/test-wcrtomb.c: New file.
4594
4595         New module 'wcrtomb'.
4596         * lib/wchar.in.h (wcrtomb): New declaration.
4597         * lib/wcrtomb.c: New file.
4598         * m4/wcrtomb.m4: New file.
4599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
4600         HAVE_WCRTOMB.
4601         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
4602         HAVE_WCRTOMB.
4603         * modules/wcrtomb: New file.
4604         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4605
4606 2008-12-21  Bruno Haible  <bruno@clisp.org>
4607
4608         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
4609         * modules/mbsrtowcs (Files): Likewise.
4610         * modules/wctob (Files): Likewise.
4611         * modules/c-strcase-tests (Files): Likewise.
4612         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4613         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4614         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4615         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4616         * modules/vasnprintf-posix-tests (Files): Likewise.
4617
4618 2008-12-21  William Pursell  <bill.pursell@gmail.com>
4619
4620         gitlog-to-changelog: pass all command-line arguments to git-log
4621         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
4622         it is sometimes convenient to filter the commits in various ways.
4623         gitlog-to-changelog only allows --since to specify a start date,
4624         but git-log itself supports many other filtering mechanisms.
4625         At the moment, I want to filter by branch name.  Rather than
4626         adding a --branch option to gitlog-to-changelog, it seems more
4627         flexible to simply pass all options directly to git-log and let
4628         git do the work.  Notice that this effectively makes --since a
4629         redundant option for gitlog-to-changelog, but removing it would
4630         require current usage to change since calls would then require
4631         an additional '--'.
4632
4633 2008-12-21  Bruno Haible  <bruno@clisp.org>
4634
4635         * modules/mbsnrtowcs-tests: New file.
4636         * tests/test-mbsnrtowcs1.sh: New file.
4637         * tests/test-mbsnrtowcs2.sh: New file.
4638         * tests/test-mbsnrtowcs3.sh: New file.
4639         * tests/test-mbsnrtowcs4.sh: New file.
4640         * tests/test-mbsnrtowcs.c: New file.
4641
4642         New module 'mbsnrtowcs'.
4643         * lib/wchar.in.h (mbsnrtowcs): New declaration.
4644         * lib/mbsnrtowcs.c: New file.
4645         * lib/mbsrtowcs-state.c: New file.
4646         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
4647         (internal_state): Remove variable.
4648         * m4/mbsnrtowcs.m4: New file.
4649         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
4650         compilation units.
4651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
4652         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4653         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
4654         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4655         * modules/mbsnrtowcs: New file.
4656         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
4657         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
4658         portability problem.
4659
4660 2008-12-21  Bruno Haible  <bruno@clisp.org>
4661
4662         Work around mbsrtowcs bug.
4663         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
4664         (gl_FUNC_MBSRTOWCS): Invoke it.
4665         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4666         m4/locale-zh.m4.
4667         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
4668
4669 2008-12-21  Bruno Haible  <bruno@clisp.org>
4670
4671         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
4672
4673 2008-12-21  Bruno Haible  <bruno@clisp.org>
4674
4675         Update doc for AIX.
4676         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
4677         16-bit wchar_t type.
4678         * doc/posix-functions/btowc.texi: Likewise.
4679         * doc/posix-functions/fgetwc.texi: Likewise.
4680         * doc/posix-functions/fgetws.texi: Likewise.
4681         * doc/posix-functions/fputwc.texi: Likewise.
4682         * doc/posix-functions/fputws.texi: Likewise.
4683         * doc/posix-functions/fwide.texi: Likewise.
4684         * doc/posix-functions/fwprintf.texi: Likewise.
4685         * doc/posix-functions/fwscanf.texi: Likewise.
4686         * doc/posix-functions/getwchar.texi: Likewise.
4687         * doc/posix-functions/getwc.texi: Likewise.
4688         * doc/posix-functions/iswalnum.texi: Likewise.
4689         * doc/posix-functions/iswalpha.texi: Likewise.
4690         * doc/posix-functions/iswblank.texi: Likewise.
4691         * doc/posix-functions/iswcntrl.texi: Likewise.
4692         * doc/posix-functions/iswctype.texi: Likewise.
4693         * doc/posix-functions/iswdigit.texi: Likewise.
4694         * doc/posix-functions/iswgraph.texi: Likewise.
4695         * doc/posix-functions/iswlower.texi: Likewise.
4696         * doc/posix-functions/iswprint.texi: Likewise.
4697         * doc/posix-functions/iswpunct.texi: Likewise.
4698         * doc/posix-functions/iswspace.texi: Likewise.
4699         * doc/posix-functions/iswupper.texi: Likewise.
4700         * doc/posix-functions/iswxdigit.texi: Likewise.
4701         * doc/posix-functions/mbrtowc.texi: Likewise.
4702         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4703         * doc/posix-functions/mbstowcs.texi: Likewise.
4704         * doc/posix-functions/mbtowc.texi: Likewise.
4705         * doc/posix-functions/putwchar.texi: Likewise.
4706         * doc/posix-functions/putwc.texi: Likewise.
4707         * doc/posix-functions/swprintf.texi: Likewise.
4708         * doc/posix-functions/tolower.texi: Likewise.
4709         * doc/posix-functions/toupper.texi: Likewise.
4710         * doc/posix-functions/towctrans.texi: Likewise.
4711         * doc/posix-functions/ungetwc.texi: Likewise.
4712         * doc/posix-functions/vswprintf.texi: Likewise.
4713         * doc/posix-functions/wcrtomb.texi: Likewise.
4714         * doc/posix-functions/wcscat.texi: Likewise.
4715         * doc/posix-functions/wcschr.texi: Likewise.
4716         * doc/posix-functions/wcscmp.texi: Likewise.
4717         * doc/posix-functions/wcscoll.texi: Likewise.
4718         * doc/posix-functions/wcscpy.texi: Likewise.
4719         * doc/posix-functions/wcscspn.texi: Likewise.
4720         * doc/posix-functions/wcsftime.texi: Likewise.
4721         * doc/posix-functions/wcslen.texi: Likewise.
4722         * doc/posix-functions/wcsncat.texi: Likewise.
4723         * doc/posix-functions/wcsncmp.texi: Likewise.
4724         * doc/posix-functions/wcsncpy.texi: Likewise.
4725         * doc/posix-functions/wcspbrk.texi: Likewise.
4726         * doc/posix-functions/wcsrchr.texi: Likewise.
4727         * doc/posix-functions/wcsrtombs.texi: Likewise.
4728         * doc/posix-functions/wcsspn.texi: Likewise.
4729         * doc/posix-functions/wcsstr.texi: Likewise.
4730         * doc/posix-functions/wcstod.texi: Likewise.
4731         * doc/posix-functions/wcstof.texi: Likewise.
4732         * doc/posix-functions/wcstoimax.texi: Likewise.
4733         * doc/posix-functions/wcstok.texi: Likewise.
4734         * doc/posix-functions/wcstold.texi: Likewise.
4735         * doc/posix-functions/wcstoll.texi: Likewise.
4736         * doc/posix-functions/wcstol.texi: Likewise.
4737         * doc/posix-functions/wcstombs.texi: Likewise.
4738         * doc/posix-functions/wcstoull.texi: Likewise.
4739         * doc/posix-functions/wcstoul.texi: Likewise.
4740         * doc/posix-functions/wcstoumax.texi: Likewise.
4741         * doc/posix-functions/wcswidth.texi: Likewise.
4742         * doc/posix-functions/wcsxfrm.texi: Likewise.
4743         * doc/posix-functions/wctob.texi: Likewise.
4744         * doc/posix-functions/wctomb.texi: Likewise.
4745         * doc/posix-functions/wctrans.texi: Likewise.
4746         * doc/posix-functions/wctype.texi: Likewise.
4747         * doc/posix-functions/wcwidth.texi: Likewise.
4748         * doc/posix-functions/wmemchr.texi: Likewise.
4749         * doc/posix-functions/wmemcmp.texi: Likewise.
4750         * doc/posix-functions/wmemcpy.texi: Likewise.
4751         * doc/posix-functions/wmemmove.texi: Likewise.
4752         * doc/posix-functions/wmemset.texi: Likewise.
4753         * doc/posix-functions/wprintf.texi: Likewise.
4754         * doc/posix-functions/wscanf.texi: Likewise.
4755
4756 2008-12-21  Bruno Haible  <bruno@clisp.org>
4757
4758         Update doc for HP-UX 11.11.
4759         * doc/posix-functions/btowc.texi: Clarify that the function is missing
4760         in HP-UX version 11.00, not in all versions of HP-UX 11.
4761         * doc/posix-functions/fwide.texi: Likewise.
4762         * doc/posix-functions/fwprintf.texi: Likewise.
4763         * doc/posix-functions/fwscanf.texi: Likewise.
4764         * doc/posix-functions/inet_ntop.texi: Likewise.
4765         * doc/posix-functions/inet_pton.texi: Likewise.
4766         * doc/posix-functions/mbrlen.texi: Likewise.
4767         * doc/posix-functions/mbrtowc.texi: Likewise.
4768         * doc/posix-functions/mbsinit.texi: Likewise.
4769         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4770         * doc/posix-functions/swprintf.texi: Likewise.
4771         * doc/posix-functions/swscanf.texi: Likewise.
4772         * doc/posix-functions/towctrans.texi: Likewise.
4773         * doc/posix-functions/vfwprintf.texi: Likewise.
4774         * doc/posix-functions/vswprintf.texi: Likewise.
4775         * doc/posix-functions/vwprintf.texi: Likewise.
4776         * doc/posix-functions/wcrtomb.texi: Likewise.
4777         * doc/posix-functions/wcsrtombs.texi: Likewise.
4778         * doc/posix-functions/wcsstr.texi: Likewise.
4779         * doc/posix-functions/wctob.texi: Likewise.
4780         * doc/posix-functions/wctrans.texi: Likewise.
4781         * doc/posix-functions/wmemchr.texi: Likewise.
4782         * doc/posix-functions/wmemcmp.texi: Likewise.
4783         * doc/posix-functions/wmemcpy.texi: Likewise.
4784         * doc/posix-functions/wmemmove.texi: Likewise.
4785         * doc/posix-functions/wmemset.texi: Likewise.
4786         * doc/posix-functions/wprintf.texi: Likewise.
4787         * doc/posix-functions/wscanf.texi: Likewise.
4788
4789 2008-12-21  Bruno Haible  <bruno@clisp.org>
4790
4791         Work around a portability problem.
4792         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
4793         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
4794
4795 2008-12-20  Bruno Haible  <bruno@clisp.org>
4796
4797         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
4798         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
4799         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
4800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
4801         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
4802
4803         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
4804         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
4805         set.
4806         (GNULIB_defined_mbstate_t): New macro.
4807         (mbsinit): Redefine if REPLACE_MBSINIT is set.
4808         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
4809         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
4810         reuses the system's mbrtowc function but works around the bugs.
4811         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
4812         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
4813         macros.
4814         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
4815         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
4816         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
4817         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
4818         REPLACE_MBSINIT if mbsinit needs to be overridden.
4819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
4820         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4821         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
4822         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4823         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4824         m4/locale-zh.m4.
4825         (Depends): Add mbsinit.
4826         * modules/mbsinit (Depends): Add mbrtowc.
4827         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
4828
4829 2008-12-20  Bruno Haible  <bruno@clisp.org>
4830
4831         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
4832         so that there are no conversion errors on AIX.
4833         * tests/test-mbsrtowcs.c (main): LIkewise.
4834
4835 2008-12-20  Bruno Haible  <bruno@clisp.org>
4836
4837         Work around wctob bug on Solaris <= 9.
4838         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
4839         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
4840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
4841         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
4842         * modules/wctob (Files): Add m4/locale-fr.m4.
4843         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
4844
4845 2008-12-20  Bruno Haible  <bruno@clisp.org>
4846
4847         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
4848         /dev/null.
4849         * tests/test-select-in.sh: Likewise.
4850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4851
4852 2008-12-20  Bruno Haible  <bruno@clisp.org>
4853
4854         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
4855         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
4856         Cygwin 1.5.x.
4857
4858 2008-12-20  Bruno Haible  <bruno@clisp.org>
4859
4860         Ensure mbstate_t is defined on HP-UX 11.11.
4861         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
4862         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
4863         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
4864         AC_USE_SYSTEM_EXTENSIONS.
4865         * modules/fnmatch (Depends-on): Add extensions.
4866         * modules/mbrlen (Depends-on): Likewise.
4867         * modules/mbrtowc (Depends-on): Likewise.
4868         * modules/mbsinit (Depends-on): Likewise.
4869         * modules/mbsrtowcs (Depends-on): Likewise.
4870         * modules/mbswidth (Depends-on): Likewise.
4871         * modules/quotearg (Depends-on): Likewise.
4872         * modules/strftime (Depends-on): Likewise.
4873
4874 2008-12-20  Bruno Haible  <bruno@clisp.org>
4875
4876         Ensure wctob is declared on IRIX 6.5.
4877         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
4878         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
4879         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
4880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
4881         of HAVE_WCTOB.
4882         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
4883         HAVE_WCTOB.
4884         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
4885
4886 2008-12-19  Bruno Haible  <bruno@clisp.org>
4887
4888         * modules/mbsrtowcs-tests: New file.
4889         * tests/test-mbsrtowcs1.sh: New file.
4890         * tests/test-mbsrtowcs2.sh: New file.
4891         * tests/test-mbsrtowcs3.sh: New file.
4892         * tests/test-mbsrtowcs4.sh: New file.
4893         * tests/test-mbsrtowcs.c: New file.
4894
4895         New module 'mbsrtowcs'.
4896         * lib/wchar.in.h (mbsrtowcs): New declaration.
4897         * lib/mbsrtowcs.c: New file.
4898         * m4/mbsrtowcs.m4: New file.
4899         * modules/mbsrtowcs: New file.
4900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
4901         HAVE_MBSRTOWCS.
4902         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
4903         HAVE_MBSRTOWCS.
4904         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
4905
4906 2008-12-19  Bruno Haible  <bruno@clisp.org>
4907
4908         New module 'mbrlen'.
4909         * lib/wchar.in.h (mbrlen): New declaration.
4910         * lib/mbrlen.c: New file.
4911         * m4/mbrlen.m4: New file.
4912         * modules/mbrlen: New file.
4913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
4914         HAVE_MBRLEN.
4915         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
4916         HAVE_MBRLEN.
4917         * doc/posix-functions/mbrlen.texi: Document the new module.
4918
4919 2008-12-19  Bruno Haible  <bruno@clisp.org>
4920
4921         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4922         * modules/mbrtowc (Depends-on): Add verify.
4923         Suggested by Paul Eggert.
4924
4925 2008-12-18  Bruno Haible  <bruno@clisp.org>
4926
4927         * modules/mbsinit-tests: New file.
4928         * tests/test-mbsinit.sh: New file.
4929         * tests/test-mbsinit.c: New file.
4930
4931 2008-12-18  Bruno Haible  <bruno@clisp.org>
4932
4933         * modules/mbrtowc-tests: New file.
4934         * tests/test-mbrtowc1.sh: New file.
4935         * tests/test-mbrtowc2.sh: New file.
4936         * tests/test-mbrtowc3.sh: New file.
4937         * tests/test-mbrtowc4.sh: New file.
4938         * tests/test-mbrtowc.c: New file.
4939
4940         New module 'mbrtowc'.
4941         * lib/wchar.in.h (mbstate_t): Override when the system does not have
4942         mbsinit and mbrtowc.
4943         (mbrtowc): New declaration.
4944         * lib/mbrtowc.c: New file.
4945         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4946         * modules/mbrtowc: New file.
4947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4948         HAVE_MBRTOWC.
4949         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4950         HAVE_MBRTOWC.
4951         * doc/posix-functions/mbrtowc.texi: Document the new module.
4952
4953 2008-12-18  Bruno Haible  <bruno@clisp.org>
4954
4955         New module 'wctob'.
4956         * lib/wchar.in.h (wctob): New declaration.
4957         * lib/wctob.c: New file.
4958         * m4/wctob.m4: New file.
4959         * modules/wctob: New file.
4960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4961         HAVE_WCTOB.
4962         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4963         * doc/posix-functions/wctob.texi: Document the new module.
4964
4965 2008-12-18  Bruno Haible  <bruno@clisp.org>
4966
4967         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4968         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4969
4970 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4971
4972         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4973         G. Christensen" <tgc@jupiterrise.com>.
4974
4975         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4976         G. Christensen" <tgc@jupiterrise.com>.
4977
4978         * lib/flock.c: Need to include string.h.  Reported by "Tom
4979         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4980         <ebb9@byu.net>.
4981
4982 2008-12-18  Bruno Haible  <bruno@clisp.org>
4983
4984         * m4/locale-ja.m4: New file, from GNU gettext.
4985
4986 2008-12-17  Bruno Haible  <bruno@clisp.org>
4987
4988         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4989         Suggested by Eric Blake.
4990
4991 2008-12-17  Bruno Haible  <bruno@clisp.org>
4992
4993         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4994
4995 2008-12-17  Bruno Haible  <bruno@clisp.org>
4996
4997         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4998         * modules/mbsinit (Depends-on): Add verify.
4999         Suggested by Paul Eggert.
5000
5001 2008-12-17  Bruno Haible  <bruno@clisp.org>
5002
5003         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
5004         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
5005         gl_FUNC_MBRTOWC.
5006         * m4/mbiter.m4 (gl_MBITER): LIkewise.
5007         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
5008         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
5009         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
5010         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
5011         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
5012         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
5013         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
5014         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
5015         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
5016         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
5017         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
5018         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
5019         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
5020         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
5021         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5022         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
5023         * modules/trim (configure.ac): Likewise.
5024
5025 2008-12-17  Bruno Haible  <bruno@clisp.org>
5026
5027         * modules/btowc-tests: New file.
5028         * tests/test-btowc1.sh: New file.
5029         * tests/test-btowc2.sh: New file.
5030         * tests/test-btowc.c: New file.
5031
5032         New module 'btowc'.
5033         * lib/wchar.in.h (btowc): New declaration.
5034         * lib/btowc.c: New file.
5035         * m4/btowc.m4: New file.
5036         * modules/btowc: New file.
5037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
5038         HAVE_BTOWC.
5039         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
5040         * doc/posix-functions/btowc.texi: Document the new module.
5041
5042 2008-12-17  Bruno Haible  <bruno@clisp.org>
5043
5044         New module 'mbsinit'.
5045         * lib/wchar.in.h (mbsinit): New declaration.
5046         * lib/mbsinit.c: New file.
5047         * m4/mbsinit.m4: New file.
5048         * modules/mbsinit: New file.
5049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
5050         HAVE_MBSINIT.
5051         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
5052         HAVE_MBSINIT.
5053         * doc/posix-functions/mbsinit.texi: Document the new module.
5054
5055 2008-12-16  Bruno Haible  <bruno@clisp.org>
5056
5057         * lib/unistd.in.h: Add comment.
5058         * tests/test-environ.c: Don't include <stdlib.h>.
5059
5060 2008-12-16  Bruno Haible  <bruno@clisp.org>
5061
5062         * lib/parse-duration.h (parse_duration): Document return value
5063         convention.
5064         * lib/parse-duration.c: Include specification header first. Add
5065         comments.
5066         (_): Remove macro.
5067         (parse_year_month_day, parse_hour_minute_second): Move side effects
5068         outside of strchr call.
5069         (parse_non_iso8601): Move side effects outside of isspace call.
5070         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
5071         call.
5072
5073 2008-12-16  Bruno Haible  <bruno@clisp.org>
5074
5075         * tests/test-parse-duration.sh: Produce no output when the test
5076         succeeds.
5077
5078 2008-12-16  Bruno Haible  <bruno@clisp.org>
5079
5080         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
5081         expressions.
5082
5083 2008-12-15  Bruno Haible  <bruno@clisp.org>
5084
5085         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
5086         * doc/glibc-functions/flistxattr.texi: Likewise.
5087         * doc/glibc-functions/fopencookie.texi: Likewise.
5088         * doc/glibc-functions/fremovexattr.texi: Likewise.
5089         * doc/glibc-functions/fsetxattr.texi: Likewise.
5090         * doc/glibc-functions/getxattr.texi: Likewise.
5091         * doc/glibc-functions/lgetxattr.texi: Likewise.
5092         * doc/glibc-functions/listxattr.texi: Likewise.
5093         * doc/glibc-functions/llistxattr.texi: Likewise.
5094         * doc/glibc-functions/lremovexattr.texi: Likewise.
5095         * doc/glibc-functions/lsetxattr.texi: Likewise.
5096         * doc/glibc-functions/removexattr.texi: Likewise.
5097         * doc/glibc-functions/setxattr.texi: Likewise.
5098         * doc/posix-functions/open_memstream.texi: Likewise.
5099
5100 2008-12-15  Eric Blake  <ebb9@byu.net>
5101
5102         Update doc for cygwin 1.7.
5103         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
5104         functions.
5105         * doc/posix-functions/fchmodat.texi: Likewise.
5106         * doc/posix-functions/fchownat.texi: Likewise.
5107         * doc/posix-functions/fdopendir.texi: Likewise.
5108         * doc/posix-functions/fmemopen.texi: Likewise.
5109         * doc/posix-functions/freeaddrinfo.texi: Likewise.
5110         * doc/posix-functions/fstatat.texi: Likewise.
5111         * doc/posix-functions/futimens.texi: Likewise.
5112         * doc/posix-functions/gai_strerror.texi: Likewise.
5113         * doc/posix-functions/getaddrinfo.texi: Likewise.
5114         * doc/posix-functions/getnameinfo.texi: Likewise.
5115         * doc/posix-functions/if_freenameindex.texi: Likewise.
5116         * doc/posix-functions/if_indextoname.texi: Likewise.
5117         * doc/posix-functions/if_nameindex.texi: Likewise.
5118         * doc/posix-functions/if_nametoindex.texi: Likewise.
5119         * doc/posix-functions/insque.texi: Likewise.
5120         * doc/posix-functions/linkat.texi: Likewise.
5121         * doc/posix-functions/llrint.texi: Likewise.
5122         * doc/posix-functions/llrintf.texi: Likewise.
5123         * doc/posix-functions/llrintl.texi: Likewise.
5124         * doc/posix-functions/lockf.texi: Likewise.
5125         * doc/posix-functions/lrintl.texi: Likewise.
5126         * doc/posix-functions/mkdirat.texi: Likewise.
5127         * doc/posix-functions/mkfifoat.texi: Likewise.
5128         * doc/posix-functions/mknodat.texi: Likewise.
5129         * doc/posix-functions/mq_close.texi: Likewise.
5130         * doc/posix-functions/mq_getattr.texi: Likewise.
5131         * doc/posix-functions/mq_notify.texi: Likewise.
5132         * doc/posix-functions/mq_open.texi: Likewise.
5133         * doc/posix-functions/mq_receive.texi: Likewise.
5134         * doc/posix-functions/mq_send.texi: Likewise.
5135         * doc/posix-functions/mq_setattr.texi: Likewise.
5136         * doc/posix-functions/mq_timedreceive.texi: Likewise.
5137         * doc/posix-functions/mq_timedsend.texi: Likewise.
5138         * doc/posix-functions/mq_unlink.texi: Likewise.
5139         * doc/posix-functions/open_memstream.texi: Likewise.
5140         * doc/posix-functions/openat.texi: Likewise.
5141         * doc/posix-functions/posix_fadvise.texi: Likewise.
5142         * doc/posix-functions/posix_fallocate.texi: Likewise.
5143         * doc/posix-functions/posix_madvise.texi: Likewise.
5144         * doc/posix-functions/posix_memalign.texi: Likewise.
5145         * doc/posix-functions/posix_openpt.texi: Likewise.
5146         * doc/posix-functions/readlinkat.texi: Likewise.
5147         * doc/posix-functions/remque.texi: Likewise.
5148         * doc/posix-functions/renameat.texi: Likewise.
5149         * doc/posix-functions/rintl.texi: Likewise.
5150         * doc/posix-functions/sem_unlink.texi: Likewise.
5151         * doc/posix-functions/shm_open.texi: Likewise.
5152         * doc/posix-functions/shm_unlink.texi: Likewise.
5153         * doc/posix-functions/signgam.texi: Likewise.
5154         * doc/posix-functions/sigset.texi: Likewise.
5155         * doc/posix-functions/stpcpy.texi: Likewise.
5156         * doc/posix-functions/stpncpy.texi: Likewise.
5157         * doc/posix-functions/strerror.texi: Likewise.
5158         * doc/posix-functions/strtod.texi: Likewise.
5159         * doc/posix-functions/symlinkat.texi: Likewise.
5160         * doc/posix-functions/unlinkat.texi: Likewise.
5161         * doc/posix-functions/utimensat.texi: Likewise.
5162         * doc/glibc-functions/bindresvport.texi: Likewise.
5163         * doc/glibc-functions/dn_expand.texi: Likewise.
5164         * doc/glibc-functions/exp10.texi: Likewise.
5165         * doc/glibc-functions/exp10f.texi: Likewise.
5166         * doc/glibc-functions/fgetxattr.texi: Likewise.
5167         * doc/glibc-functions/flistxattr.texi: Likewise.
5168         * doc/glibc-functions/fopencookie.texi: Likewise.
5169         * doc/glibc-functions/freeifaddrs.texi: Likewise.
5170         * doc/glibc-functions/fremovexattr.texi: Likewise.
5171         * doc/glibc-functions/fsetxattr.texi: Likewise.
5172         * doc/glibc-functions/getifaddrs.texi: Likewise.
5173         * doc/glibc-functions/getxattr.texi: Likewise.
5174         * doc/glibc-functions/lgetxattr.texi: Likewise.
5175         * doc/glibc-functions/listxattr.texi: Likewise.
5176         * doc/glibc-functions/llistxattr.texi: Likewise.
5177         * doc/glibc-functions/lremovexattr.texi: Likewise.
5178         * doc/glibc-functions/lsetxattr.texi: Likewise.
5179         * doc/glibc-functions/pow10.texi: Likewise.
5180         * doc/glibc-functions/pow10f.texi: Likewise.
5181         * doc/glibc-functions/rcmd_af.texi: Likewise.
5182         * doc/glibc-functions/removexattr.texi: Likewise.
5183         * doc/glibc-functions/res_init.texi: Likewise.
5184         * doc/glibc-functions/res_mkquery.texi: Likewise.
5185         * doc/glibc-functions/res_query.texi: Likewise.
5186         * doc/glibc-functions/res_querydomain.texi: Likewise.
5187         * doc/glibc-functions/res_send.texi: Likewise.
5188         * doc/glibc-functions/rresvport_af.texi: Likewise.
5189         * doc/glibc-functions/setxattr.texi: Likewise.
5190         * doc/glibc-functions/strcasestr.texi: Likewise.
5191
5192 2008-12-15  Bruno Haible  <bruno@clisp.org>
5193
5194         Fix compilation error on OSF/1 4.0.
5195         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
5196         <sys/time.h>, simply delegate to the system header.
5197         Reported by Daniel Richard G. <oss@teragram.com>.
5198
5199 2008-12-15  Bruno Haible  <bruno@clisp.org>
5200
5201         * doc/posix-functions/openat.texi: Mention the 'openat' module.
5202         * doc/posix-functions/fchmodat.texi: Likewise.
5203         * doc/posix-functions/fchownat.texi: Likewise.
5204         * doc/posix-functions/fdopendir.texi: Likewise.
5205         * doc/posix-functions/fstatat.texi: Likewise.
5206         * doc/posix-functions/mkdirat.texi: Likewise.
5207         * doc/posix-functions/unlinkat.texi: Likewise.
5208
5209 2008-12-14  Bruno Haible  <bruno@clisp.org>
5210
5211         Update doc for POSIX:2008.
5212         * doc/posix-functions/faccessat.texi: New file.
5213         * doc/posix-functions/fchmodat.texi: New file.
5214         * doc/posix-functions/fchownat.texi: New file.
5215         * doc/posix-functions/fdopendir.texi: New file.
5216         * doc/posix-functions/fstatat.texi: New file.
5217         * doc/posix-functions/futimens.texi: New file.
5218         * doc/posix-functions/linkat.texi: New file.
5219         * doc/posix-functions/mkdirat.texi: New file.
5220         * doc/posix-functions/mkfifoat.texi: New file.
5221         * doc/posix-functions/mknodat.texi: New file.
5222         * doc/posix-functions/open_wmemstream.texi: New file.
5223         * doc/posix-functions/openat.texi: New file.
5224         * doc/posix-functions/psiginfo.texi: New file.
5225         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
5226         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
5227         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
5228         * doc/posix-functions/readlinkat.texi: New file.
5229         * doc/posix-functions/renameat.texi: New file.
5230         * doc/posix-functions/strerror_l.texi: New file.
5231         * doc/posix-functions/symlinkat.texi: New file.
5232         * doc/posix-functions/unlinkat.texi: New file.
5233         * doc/posix-functions/utimensat.texi: New file.
5234         * doc/gnulib.texi (Function Substitutes): Add these subsections.
5235
5236 2008-12-14  Bruno Haible  <bruno@clisp.org>
5237
5238         Update doc for POSIX:2008.
5239         * doc/posix-functions/alphasort.texi: Renamed from
5240         doc/glibc-functions/alphasort.texi.
5241         * doc/posix-functions/dirfd.texi: Renamed from
5242         doc/glibc-functions/dirfd.texi.
5243         * doc/posix-functions/dprintf.texi: Renamed from
5244         doc/glibc-functions/dprintf.texi.
5245         * doc/posix-functions/duplocale.texi: Renamed from
5246         doc/glibc-functions/duplocale.texi.
5247         * doc/posix-functions/fexecve.texi: Renamed from
5248         doc/glibc-functions/fexecve.texi.
5249         * doc/posix-functions/fmemopen.texi: Renamed from
5250         doc/glibc-functions/fmemopen.texi.
5251         * doc/posix-functions/freelocale.texi: Renamed from
5252         doc/glibc-functions/freelocale.texi.
5253         * doc/posix-functions/getdate_err.texi: Renamed from
5254         doc/glibc-functions/getdate_err.texi.
5255         * doc/posix-functions/isalnum_l.texi: Renamed from
5256         doc/glibc-functions/isalnum_l.texi.
5257         * doc/posix-functions/isalpha_l.texi: Renamed from
5258         doc/glibc-functions/isalpha_l.texi.
5259         * doc/posix-functions/isblank_l.texi: Renamed from
5260         doc/glibc-functions/isblank_l.texi.
5261         * doc/posix-functions/iscntrl_l.texi: Renamed from
5262         doc/glibc-functions/iscntrl_l.texi.
5263         * doc/posix-functions/isdigit_l.texi: Renamed from
5264         doc/glibc-functions/isdigit_l.texi.
5265         * doc/posix-functions/isgraph_l.texi: Renamed from
5266         doc/glibc-functions/isgraph_l.texi.
5267         * doc/posix-functions/islower_l.texi: Renamed from
5268         doc/glibc-functions/islower_l.texi.
5269         * doc/posix-functions/isprint_l.texi: Renamed from
5270         doc/glibc-functions/isprint_l.texi.
5271         * doc/posix-functions/ispunct_l.texi: Renamed from
5272         doc/glibc-functions/ispunct_l.texi.
5273         * doc/posix-functions/isspace_l.texi: Renamed from
5274         doc/glibc-functions/isspace_l.texi.
5275         * doc/posix-functions/isupper_l.texi: Renamed from
5276         doc/glibc-functions/isupper_l.texi.
5277         * doc/posix-functions/iswalnum_l.texi: Renamed from
5278         doc/glibc-functions/iswalnum_l.texi.
5279         * doc/posix-functions/iswalpha_l.texi: Renamed from
5280         doc/glibc-functions/iswalpha_l.texi.
5281         * doc/posix-functions/iswblank_l.texi: Renamed from
5282         doc/glibc-functions/iswblank_l.texi.
5283         * doc/posix-functions/iswcntrl_l.texi: Renamed from
5284         doc/glibc-functions/iswcntrl_l.texi.
5285         * doc/posix-functions/iswctype_l.texi: Renamed from
5286         doc/glibc-functions/iswctype_l.texi.
5287         * doc/posix-functions/iswdigit_l.texi: Renamed from
5288         doc/glibc-functions/iswdigit_l.texi.
5289         * doc/posix-functions/iswgraph_l.texi: Renamed from
5290         doc/glibc-functions/iswgraph_l.texi.
5291         * doc/posix-functions/iswlower_l.texi: Renamed from
5292         doc/glibc-functions/iswlower_l.texi.
5293         * doc/posix-functions/iswprint_l.texi: Renamed from
5294         doc/glibc-functions/iswprint_l.texi.
5295         * doc/posix-functions/iswpunct_l.texi: Renamed from
5296         doc/glibc-functions/iswpunct_l.texi.
5297         * doc/posix-functions/iswspace_l.texi: Renamed from
5298         doc/glibc-functions/iswspace_l.texi.
5299         * doc/posix-functions/iswupper_l.texi: Renamed from
5300         doc/glibc-functions/iswupper_l.texi.
5301         * doc/posix-functions/iswxdigit_l.texi: Renamed from
5302         doc/glibc-functions/iswxdigit_l.texi.
5303         * doc/posix-functions/isxdigit_l.texi: Renamed from
5304         doc/glibc-functions/isxdigit_l.texi.
5305         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
5306         doc/glibc-functions/mbsnrtowcs.texi.
5307         * doc/posix-functions/mkdtemp.texi: Renamed from
5308         doc/glibc-functions/mkdtemp.texi.
5309         * doc/posix-functions/newlocale.texi: Renamed from
5310         doc/glibc-functions/newlocale.texi.
5311         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
5312         doc/glibc-functions/nl_langinfo_l.texi.
5313         * doc/posix-functions/open_memstream.texi: Renamed from
5314         doc/glibc-functions/open_memstream.texi.
5315         * doc/posix-functions/opterr.texi: Renamed from
5316         doc/glibc-functions/opterr.texi.
5317         * doc/posix-functions/optind.texi: Renamed from
5318         doc/glibc-functions/optind.texi.
5319         * doc/posix-functions/optopt.texi: Renamed from
5320         doc/glibc-functions/optopt.texi.
5321         * doc/posix-functions/psignal.texi: Renamed from
5322         doc/glibc-functions/psignal.texi.
5323         * doc/posix-functions/scandir.texi: Renamed from
5324         doc/glibc-functions/scandir.texi.
5325         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
5326         doc/glibc-functions/sched_get_priority_min.texi.
5327         * doc/posix-functions/signgam.texi: Renamed from
5328         doc/glibc-functions/signgam.texi.
5329         * doc/posix-functions/stpcpy.texi: Renamed from
5330         doc/glibc-functions/stpcpy.texi.
5331         * doc/posix-functions/stpncpy.texi: Renamed from
5332         doc/glibc-functions/stpncpy.texi.
5333         * doc/posix-functions/strcasecmp_l.texi: Renamed from
5334         doc/glibc-functions/strcasecmp_l.texi.
5335         * doc/posix-functions/strcoll_l.texi: Renamed from
5336         doc/glibc-functions/strcoll_l.texi.
5337         * doc/posix-functions/strfmon_l.texi: Renamed from
5338         doc/glibc-functions/strfmon_l.texi.
5339         * doc/posix-functions/strftime_l.texi: Renamed from
5340         doc/glibc-functions/strftime_l.texi.
5341         * doc/posix-functions/strncasecmp_l.texi: Renamed from
5342         doc/glibc-functions/strncasecmp_l.texi.
5343         * doc/posix-functions/strndup.texi: Renamed from
5344         doc/glibc-functions/strndup.texi.
5345         * doc/posix-functions/strnlen.texi: Renamed from
5346         doc/glibc-functions/strnlen.texi.
5347         * doc/posix-functions/strsignal.texi: Renamed from
5348         doc/glibc-functions/strsignal.texi.
5349         * doc/posix-functions/strxfrm_l.texi: Renamed from
5350         doc/glibc-functions/strxfrm_l.texi.
5351         * doc/posix-functions/timer_gettime.texi: Renamed from
5352         doc/glibc-functions/timer_gettime.texi.
5353         * doc/posix-functions/tolower_l.texi: Renamed from
5354         doc/glibc-functions/tolower_l.texi.
5355         * doc/posix-functions/toupper_l.texi: Renamed from
5356         doc/glibc-functions/toupper_l.texi.
5357         * doc/posix-functions/towctrans_l.texi: Renamed from
5358         doc/glibc-functions/towctrans_l.texi.
5359         * doc/posix-functions/towlower_l.texi: Renamed from
5360         doc/glibc-functions/towlower_l.texi.
5361         * doc/posix-functions/towupper_l.texi: Renamed from
5362         doc/glibc-functions/towupper_l.texi.
5363         * doc/posix-functions/uselocale.texi: Renamed from
5364         doc/glibc-functions/uselocale.texi.
5365         * doc/posix-functions/vdprintf.texi: Renamed from
5366         doc/glibc-functions/vdprintf.texi.
5367         * doc/posix-functions/wcpcpy.texi:
5368         Renamed from doc/glibc-functions/wcpcpy.texi.
5369         * doc/posix-functions/wcpncpy.texi: Renamed from
5370         doc/glibc-functions/wcpncpy.texi.
5371         * doc/posix-functions/wcscasecmp.texi: Renamed from
5372         doc/glibc-functions/wcscasecmp.texi.
5373         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
5374         doc/glibc-functions/wcscasecmp_l.texi.
5375         * doc/posix-functions/wcscoll_l.texi: Renamed from
5376         doc/glibc-functions/wcscoll_l.texi.
5377         * doc/posix-functions/wcsdup.texi: Renamed from
5378         doc/glibc-functions/wcsdup.texi.
5379         * doc/posix-functions/wcsncasecmp.texi: Renamed from
5380         doc/glibc-functions/wcsncasecmp.texi.
5381         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
5382         doc/glibc-functions/wcsncasecmp_l.texi.
5383         * doc/posix-functions/wcsnlen.texi: Renamed from
5384         doc/glibc-functions/wcsnlen.texi.
5385         * doc/posix-functions/wcsnrtombs.texi: Renamed from
5386         doc/glibc-functions/wcsnrtombs.texi.
5387         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
5388         doc/glibc-functions/wcsxfrm_l.texi.
5389         * doc/posix-functions/wctrans_l.texi: Renamed from
5390         doc/glibc-functions/wctrans_l.texi.
5391         * doc/posix-functions/wctype_l.texi: Renamed from
5392         doc/glibc-functions/wctype_l.texi.
5393         * doc/gnulib.texi (Function Substitutes): Add these subsections.
5394         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
5395         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
5396         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
5397         these subsections.
5398         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
5399         Remove sections.
5400
5401 2008-12-14  Bruno Haible  <bruno@clisp.org>
5402
5403         Update doc for POSIX:2008.
5404         * doc/posix-functions/*.texi: Update URL of POSIX specification.
5405
5406 2008-12-14  Bruno Haible  <bruno@clisp.org>
5407
5408         Update doc for POSIX:2008.
5409         * doc/pastposix-functions/bcmp.texi: Renamed from
5410         doc/posix-functions/bcmp.texi.
5411         * doc/pastposix-functions/bcopy.texi: Renamed from
5412         doc/posix-functions/bcopy.texi.
5413         * doc/pastposix-functions/bsd_signal.texi: Renamed from
5414         doc/posix-functions/bsd_signal.texi.
5415         * doc/pastposix-functions/bzero.texi: Renamed from
5416         doc/posix-functions/bzero.texi.
5417         * doc/pastposix-functions/ecvt.texi: Renamed from
5418         doc/posix-functions/ecvt.texi.
5419         * doc/pastposix-functions/fcvt.texi: Renamed from
5420         doc/posix-functions/fcvt.texi.
5421         * doc/pastposix-functions/ftime.texi: Renamed from
5422         doc/posix-functions/ftime.texi.
5423         * doc/pastposix-functions/gcvt.texi: Renamed from
5424         doc/posix-functions/gcvt.texi.
5425         * doc/pastposix-functions/getcontext.texi: Renamed from
5426         doc/posix-functions/getcontext.texi.
5427         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
5428         doc/posix-functions/gethostbyaddr.texi.
5429         * doc/pastposix-functions/gethostbyname.texi: Renamed from
5430         doc/posix-functions/gethostbyname.texi.
5431         * doc/pastposix-functions/getwd.texi: Renamed from
5432         doc/posix-functions/getwd.texi.
5433         * doc/pastposix-functions/h_errno.texi: Renamed from
5434         doc/posix-functions/h_errno.texi.
5435         * doc/pastposix-functions/index.texi: Renamed from
5436         doc/posix-functions/index.texi.
5437         * doc/pastposix-functions/makecontext.texi: Renamed from
5438         doc/posix-functions/makecontext.texi.
5439         * doc/pastposix-functions/mktemp.texi: Renamed from
5440         doc/posix-functions/mktemp.texi.
5441         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
5442         doc/posix-functions/pthread_attr_getstackaddr.texi.
5443         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
5444         doc/posix-functions/pthread_attr_setstackaddr.texi.
5445         * doc/pastposix-functions/rindex.texi: Renamed from
5446         doc/posix-functions/rindex.texi.
5447         * doc/pastposix-functions/scalb.texi: Renamed from
5448         doc/posix-functions/scalb.texi.
5449         * doc/pastposix-functions/setcontext.texi: Renamed from
5450         doc/posix-functions/setcontext.texi.
5451         * doc/pastposix-functions/swapcontext.texi: Renamed from
5452         doc/posix-functions/swapcontext.texi.
5453         * doc/pastposix-functions/ualarm.texi: Renamed from
5454         doc/posix-functions/ualarm.texi.
5455         * doc/pastposix-functions/usleep.texi: Renamed from
5456         doc/posix-functions/usleep.texi.
5457         * doc/pastposix-functions/vfork.texi: Renamed from
5458         doc/posix-functions/vfork.texi.
5459         * doc/pastposix-functions/wcswcs.texi: Renamed from
5460         doc/posix-functions/wcswcs.texi.
5461         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
5462         (Function Substitutes): Update.
5463
5464 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5465
5466         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
5467         m4/strerror.m4.
5468
5469 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5470             Bruno Haible  <bruno@clisp.org>
5471
5472         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
5473
5474 2008-12-13  Bruno Haible  <bruno@clisp.org>
5475
5476         * modules/strtoull (Depends-on): Remove unistd.
5477
5478 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5479
5480         * modules/strtoull (Depends-on): Add stdlib.
5481
5482 2008-12-11  Simon Josefsson  <simon@josefsson.org>
5483
5484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
5485
5486 2008-12-10  Jim Meyering  <meyering@redhat.com>
5487
5488         gl_ASSERT: don't say assertions are disabled when they're not
5489         * m4/assert.m4 (gl_ASSERT): Do not make configure report
5490         "checking whether to enable assertions... no", when they are in
5491         fact enabled.  This is solely a bug in the output of configure.
5492         In spite of saying "no", NDEBUG was not defined in that case.
5493         Also, as noted by Eric Blake, leave assertions enabled upon
5494         --enable-assert=INVALID.
5495
5496 2008-12-10  Bruno Haible  <bruno@clisp.org>
5497
5498         Change MODULES.html to refer to POSIX:2008 where possible.
5499         * MODULES.html.sh (POSIX2008_URL): New variable.
5500         (posix_headers): Remove sys/timeb, ucontext.
5501         (posix2001_headers): New variable.
5502         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
5503         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
5504         index, makecontext, mktemp, pthread_attr_getstackaddr,
5505         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
5506         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
5507         (posix2001_functions): New variable.
5508         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
5509         otherwise.
5510
5511 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5512
5513         add missing include to parse-duration.c
5514         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
5515         * modules/parse-duration (Depends-on): Add xalloc.
5516
5517         fix sed script reading maint.mk
5518         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
5519         (syntax-check-rules): Use it.
5520
5521 2008-12-09  Bruno Haible  <bruno@clisp.org>
5522
5523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
5524         MacOS X 10.4/PowerPC.
5525         Reported by Simon Josefsson.
5526
5527 2008-12-08  Jim Meyering  <meyering@redhat.com>
5528
5529         work around mingw's lack of some S_IF definitions
5530         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
5531         Reported by Simon Josefsson.
5532
5533 2008-12-08  Bruno Haible  <bruno@clisp.org>
5534
5535         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
5536         applied to variables. Needed on MacOS X 10.4/PowerPC.
5537         Reported by Simon Josefsson.
5538
5539 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
5540         and Eric Blake  <ebb9@byu.net>
5541
5542         assert: honor --enable-assert
5543         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
5544         order to honor --enable-assert, rather than treating it as a
5545         synonym for --disable-assert.
5546
5547 2008-12-08  Jim Meyering  <meyering@redhat.com>
5548
5549         * lib/posixtm.c: Remove now-useless declaration of mktime.
5550
5551         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
5552
5553 2008-12-07  Bruno Haible  <bruno@clisp.org>
5554
5555         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
5556         test_once): Mark functions as static.
5557         * tests/test-tls.c (test_tls): Likewise.
5558
5559 2008-12-07  Bruno Haible  <bruno@clisp.org>
5560
5561         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
5562         iconv_register_autodetect.
5563
5564 2008-12-07  Jim Meyering  <meyering@redhat.com>
5565
5566         posixtm.c: avoid a warning
5567         * lib/posixtm.c (posixtime): Don't initialize tm0.
5568         It's no longer needed to placate gcc4's -Wuninitialized,
5569         and the attempt to placate would elicit a new warning.
5570
5571         unicodeio.c: mark unused parameters
5572         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5573         (fallback_failure_callback): Likewise.
5574
5575 2008-12-07  Bruno Haible  <bruno@clisp.org>
5576
5577         * gnulib-tool (func_create_testdir): When building the tests
5578         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
5579         Reported by Simon Josefsson.
5580
5581 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5582
5583         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
5584
5585 2008-12-06  Bruno Haible  <bruno@clisp.org>
5586
5587         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
5588         Suggested by Eric Blake.
5589
5590 2008-12-06  Bruno Haible  <bruno@clisp.org>
5591
5592         Fix a c-stack test failure on MacOS X.
5593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
5594         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
5595         handler for SIGBUS as well.
5596         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
5597         install a signal handler for SIGBUS as well.
5598         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
5599
5600 2008-12-06  Bruno Haible  <bruno@clisp.org>
5601
5602         Advocacy documentation.
5603         * doc/gnulib-intro.texi (Benefits): New section.
5604         * doc/gnulib.texi: Update.
5605
5606 2008-12-06  Bruno Haible  <bruno@clisp.org>
5607
5608         Document the 'manywarnings' module.
5609         * doc/manywarnings.texi: New file.
5610         * doc/gnulib.texi: Include it.
5611
5612 2008-12-05  Eric Blake  <ebb9@byu.net>
5613
5614         tests: silence some gcc warnings
5615         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
5616         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
5617         type mismatches.
5618
5619 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5620             Bruno Haible  <bruno@clisp.org>
5621
5622         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
5623
5624 2008-11-29  Jim Meyering  <meyering@redhat.com>
5625
5626         unicodeio.c: mark unused parameters
5627         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5628         (fallback_failure_callback): Likewise.
5629
5630         fts: fix a thinko
5631         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
5632         (set_stat_type): Return S_IF*-valued "type" directly.
5633         Prompted by James Youngman's spotting a related bug.
5634         Confirmed by further testing through find.
5635
5636         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
5637         * lib/fts.c (D_TYPE): Define.
5638         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
5639         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
5640         (s_ifmt_shift_bits): New function.
5641         (set_stat_type): New function.
5642         (fts_build): When not calling fts_stat, call set_stat_type
5643         to propagate dirent.d_type info to fts_read caller.
5644         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
5645         fts_statp->st_mode type information may be valid.
5646
5647 2008-11-28  Simon Josefsson  <simon@josefsson.org>
5648
5649         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
5650         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
5651         <sds@gnu.org>.
5652
5653 2008-11-20  Bruno Haible  <bruno@clisp.org>
5654
5655         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
5656         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
5657         INCLUDE_NEXT.
5658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
5659         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
5660         * modules/math (Makefile.am): Substitute
5661         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
5662         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5663
5664 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
5665             Bruno Haible  <bruno@clisp.org>
5666
5667         * lib/stdint.in.h: Define all type macros so that their expansion is
5668         a single typedef'ed token. Fixes a compilation failure in Boost which
5669         does "using ::int8_t;".
5670
5671 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5672
5673         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
5674         gl_MANYWARN_ALL_GCC.
5675         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
5676         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
5677         * modules/manywarnings: New file.
5678         * MODULES.html.sh: Mention manywarnings module.
5679
5680 2008-11-18  Bruno Haible  <bruno@clisp.org>
5681
5682         * doc/gnulib-tool.texi (Unit tests): New section.
5683
5684 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5685
5686         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
5687         paths like 'lib/po/foo.po'.
5688
5689 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5690
5691         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
5692         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
5693
5694 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5695
5696         * m4/warnings.m4: Use CPPFLAGS to really check whether the
5697         parameter works.
5698
5699 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5700
5701         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
5702
5703 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5704
5705         * modules/parse-duration-tests: New file.
5706         * tests/test-parse-duration.sh: New file.
5707         * tests/test-parse-duration.c: New file.
5708
5709         New module 'parse-duration'.
5710         * lib/parse-duration.h: New file.
5711         * lib/parse-duration.c: New file.
5712         * modules/parse-duration: New file.
5713
5714 2008-11-17  Bruno Haible  <bruno@clisp.org>
5715
5716         * tests/test-select-out.sh: Comment out the first pipe test.
5717         Reported by Simon Josefsson.
5718
5719 2008-11-17  Bruno Haible  <bruno@clisp.org>
5720
5721         * modules/getaddrinfo (Depends-on): Add servent, hostent.
5722         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
5723         gl_HOSTENT.
5724
5725 2008-11-17  Bruno Haible  <bruno@clisp.org>
5726
5727         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
5728         -lnetwork and -lnet. Needed for Haiku and BeOS.
5729
5730 2008-11-16  Bruno Haible  <bruno@clisp.org>
5731
5732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
5733
5734 2008-11-16  Bruno Haible  <bruno@clisp.org>
5735
5736         Avoid test failure on Haiku.
5737         * tests/test-fsync.c: Include <errno.h>.
5738         (main): Don't require that fsync (0) fails.
5739
5740 2008-11-15  Bruno Haible  <bruno@clisp.org>
5741
5742         New module 'hostent'.
5743         * modules/hostent: New file.
5744         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
5745
5746 2008-11-15  Bruno Haible  <bruno@clisp.org>
5747
5748         New module 'servent'.
5749         * modules/servent: New file.
5750         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
5751
5752 2008-11-15  Bruno Haible  <bruno@clisp.org>
5753
5754         Avoid generating same test program with two different rules.
5755         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
5756         test-frexp to test-frexp-nolibm.
5757         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
5758         test-frexpl to test-frexpl-nolibm.
5759
5760 2008-11-15  Bruno Haible  <bruno@clisp.org>
5761
5762         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
5763         $(FREXPL_LIBM).
5764
5765 2008-11-15  Bruno Haible  <bruno@clisp.org>
5766
5767         * lib/netdb.in.h: Activate the definitions also when the system's
5768         <netdb.h> has 'struct addrinfo'.
5769         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
5770         EAI_OVERFLOW or AI_NUMERICSERV.
5771         * doc/posix-headers/netdb.texi: Document the problem.
5772
5773 2008-11-15  Bruno Haible  <bruno@clisp.org>
5774
5775         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
5776
5777         Make the 'sched' module work on platforms where <sched.h> exists but
5778         is incomplete (such as Haiku).
5779         * lib/sched.in.h; Include the system's <sched.h> if it exists.
5780         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
5781         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
5782         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
5783         HAVE_STRUCT_SCHED_PARAM.
5784         * modules/sched (Depends-on): Add include_next.
5785         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
5786         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
5787         * doc/posix-headers/sched.texi: Document the issue.
5788
5789 2008-11-13  Jim Meyering  <meyering@redhat.com>
5790
5791         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
5792         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
5793         test would fail due to the difference in the Report bugs to ...
5794         line.  The expected address is empty, "<>", while the actual
5795         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
5796
5797 2008-11-12  Bruno Haible  <bruno@clisp.org>
5798
5799         lstat: don't compile lstat.c on systems lacking lstat
5800         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
5801         which don't have lstat; this is handled by lib/sys_stat.in.h already.
5802         Reported by Daniel P. Berrange via Jim Meyering.
5803
5804 2008-11-12  Jim Meyering  <meyering@redhat.com>
5805
5806         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
5807
5808 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5809
5810         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
5811         instead.
5812
5813 2008-11-12  Bruno Haible  <bruno@clisp.org>
5814
5815         * lib/unicodeio.c: Include unistr.h.
5816         (utf8_wctomb): Remove function.
5817         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
5818
5819 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5820
5821         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
5822         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
5823         <bruno@clisp.org>.
5824         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
5825
5826 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5827
5828         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
5829         * doc/gnulib.texi: Add section for warnings.
5830
5831 2008-11-11  Bruno Haible  <bruno@clisp.org>
5832
5833         * lib/sockets.h: Add a comment.
5834
5835 2008-11-11  Karl Berry  <karl@gnu.org>
5836
5837         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
5838
5839 2008-11-11  Eric Blake  <ebb9@byu.net>
5840
5841         fdl.texi: avoid git symlinks
5842         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
5843
5844 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5845
5846         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
5847
5848 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5849
5850         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
5851         (gl_WARN_ADD): Substitute $2 if literal.
5852
5853 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5854
5855         * m4/warning.m4: Remove.
5856
5857 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5858
5859         * m4/warnings.m4: Almost complete rewrite. :-)
5860
5861 2008-11-10  Simon Josefsson  <simon@josefsson.org>
5862
5863         * modules/warnings: New module.
5864         * m4/warnings.m4: New file.
5865         * MODULES.html.sh: Mention warnings module.
5866         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
5867         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5868
5869 2008-11-10  Eric Blake  <ebb9@byu.net>
5870
5871         fdl.texi: make a symlink to the latest version
5872         * doc/standards.texi: Revert today's earlier change.
5873         * doc/fdl-1.2.texi: Rename from old fdl.texi...
5874         * doc/fdl.texi: ...and replace this with a symlink to the newer
5875         fdl-1.3.texi.
5876
5877 2008-11-10  Bruno Haible  <bruno@clisp.org>
5878
5879         * tests/test-select-fd.c (main): Accept the result file name as fourth
5880         argument.
5881         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
5882         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
5883
5884 2008-11-10  Bruno Haible  <bruno@clisp.org>
5885
5886         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
5887         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
5888         as autoconf-substituted macros.
5889         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
5890         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
5891         gl_NETDB_H_DEFAULTS. Set these variables.
5892         * modules/netdb (Makefile.am): Substitute these variables.
5893
5894 2008-11-10  Eric Blake  <ebb9@byu.net>
5895
5896         standards.texi: include correct file for FDL 1.3
5897         * doc/standards.texi (GNU Free Documentation License): Change
5898         include file to pull in FDL 1.3, not 1.2.
5899
5900         fdl.texi: revert accidental change to license
5901         * doc/fdl.texi: This is FDL 1.2, not 1.3.
5902
5903 2008-11-10  Bruno Haible  <bruno@clisp.org>
5904
5905         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
5906         cross-compiling guesses also when the native compile gives no result.
5907
5908 2008-11-10  Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/spawni.c (__spawni): Force variable into the stack.
5911
5912 2008-11-10  Bruno Haible  <bruno@clisp.org>
5913
5914         Add support for Haiku.
5915         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
5916         glibc and BeOS, but also on Haiku.
5917         * lib/fpurge.c (fpurge): Likewise.
5918         * lib/freadable.c (freadable): Likewise.
5919         * lib/freadahead.c (freadahead): Likewise.
5920         * lib/freading.c (freading): Likewise.
5921         * lib/freadptr.c (freadptr): Likewise.
5922         * lib/freadseek.c (freadptrinc): Likewise.
5923         * lib/fseeko.c (rpl_fseeko): Likewise.
5924         * lib/fseterr.c (fseterr): Likewise.
5925         * lib/fwritable.c (fwritable): Likewise.
5926         * lib/fwriting.c (fwriting): Likewise.
5927         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5928
5929 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5930
5931         * lib/config.charset: Treat Haiku like BeOS.
5932
5933 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5934
5935         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5936         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5937
5938 2008-11-08  Bruno Haible  <bruno@clisp.org>
5939
5940         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5941         AC_CACHE_CHECK.
5942
5943 2008-11-08  Bruno Haible  <bruno@clisp.org>
5944
5945         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5946
5947 2008-11-08  Bruno Haible  <bruno@clisp.org>
5948
5949         * tests/test-select-fd.c: New file.
5950         * tests/test-select-in.sh: New file.
5951         * tests/test-select-out.sh: New file.
5952         * tests/test-select-stdin.c: New file.
5953         * modules/select-tests (Files): Add the new files.
5954         (Depends-on): Add gettimeofday.
5955         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5956         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5957         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5958
5959 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
5960             Bruno Haible  <bruno@clisp.org>
5961
5962         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5963
5964 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
5965
5966         * build-aux/pmccabe2html: Added support for C++ source files.
5967
5968 2008-11-05  Ben Pfaff  <blp@gnu.org>
5969
5970         Fix lib/close.c build on Windows.
5971         * modules/close (Files): Add lib/w32sock.h.
5972
5973 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5974
5975         Accept Bison's NEWS format.
5976         * build-aux/announce-gen (print_news_deltas): Tweak
5977         $re_prefix.
5978
5979 2008-11-04  Bruno Haible  <bruno@clisp.org>
5980
5981         * modules/random_r (Maintainer): Add glibc.
5982
5983 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5984
5985         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5986         by karl@freefriends.org (Karl Berry).
5987         * doc/alloca.texi: Likewise.
5988         * doc/c-ctype.texi: Likewise.
5989         * doc/c-strcase.texi: Likewise.
5990         * doc/c-strcaseeq.texi: Likewise.
5991         * doc/c-strcasestr.texi: Likewise.
5992         * doc/c-strstr.texi: Likewise.
5993         * doc/c-strtod.texi: Likewise.
5994         * doc/c-strtold.texi: Likewise.
5995         * doc/ctime.texi: Likewise.
5996         * doc/error.texi: Likewise.
5997         * doc/fdl.texi: Likewise.
5998         * doc/gcd.texi: Likewise.
5999         * doc/getdate.texi: Likewise.
6000         * doc/gnulib-intro.texi: Likewise.
6001         * doc/gnulib-tool.texi: Likewise.
6002         * doc/gnulib.texi: Likewise.
6003         * doc/inet_ntoa.texi: Likewise.
6004         * doc/maintain.texi: Likewise.
6005         * doc/make-stds.texi: Likewise.
6006         * doc/quote.texi: Likewise.
6007         * doc/regexprops-generic.texi: Likewise.
6008         * doc/standards.texi: Likewise.
6009         * doc/verify.texi: Likewise.
6010         * doc/visibility.texi: Likewise.
6011         * doc/gnulib.texi (GNU Free Documentation License): Include
6012         fdl-1.3.texi instead of fdl.texi.
6013
6014 2008-11-04  Simon Josefsson  <simon@josefsson.org>
6015
6016         * doc/fdl-1.3.texi: New file, from
6017         <http://www.gnu.org/licenses/fdl-1.3.texi>.
6018         * modules/fdl-1.3: Add.
6019         * MODULES.html.sh: Add fdl-1.3.
6020
6021 2008-11-03  Bruno Haible  <bruno@clisp.org>
6022
6023         Make determination of absolute name of header file work with AIX xlc.
6024         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
6025         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
6026         preprocessing.
6027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6028         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
6029
6030 2008-11-03  Simon Josefsson  <simon@josefsson.org>
6031
6032         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
6033         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
6034         <ludo@gnu.org>.
6035
6036 2008-11-02  Bruno Haible  <bruno@clisp.org>
6037
6038         Mark 'strpbrk' obsolete.
6039         * modules/strpbrk (Status, Notice): New sections.
6040         * modules/strtok_r (Depends-on): Add strpbrk.
6041
6042 2008-11-02  Bruno Haible  <bruno@clisp.org>
6043
6044         Mark 'strdup' obsolete.
6045         * modules/strdup (Status, Notice): New sections.
6046         * modules/findprog (Depends-on): Add strdup.
6047         * modules/getaddrinfo (Depends-on): Likewise.
6048         * modules/localename (Depends-on): Likewise.
6049         * modules/relocatable-lib (Depends-on): Likewise.
6050         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
6051         * modules/relocatable-prog (Depends-on): Likewise.
6052         * modules/trim (Depends-on): Likewise.
6053         * modules/unictype/gen-ctype (Depends-on): Likewise.
6054         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
6055
6056 2008-11-02  Bruno Haible  <bruno@clisp.org>
6057
6058         Mark 'strcspn' obsolete.
6059         * modules/strcspn (Status, Notice): New sections.
6060
6061 2008-11-02  Bruno Haible  <bruno@clisp.org>
6062
6063         Mark 'rmdir' obsolete.
6064         * modules/rmdir (Status, Notice): New sections.
6065         * modules/clean-temp (Depends-on): Add rmdir.
6066         * modules/openat (Depends-on): Likewise.
6067
6068 2008-11-02  Bruno Haible  <bruno@clisp.org>
6069
6070         Mark 'raise' obsolete.
6071         * modules/raise (Status, Notice): New sections.
6072         (Include): Specify <signal.h>.
6073         * modules/stdio (Depends-on): Add raise.
6074         * modules/write (Depends-on): Likewise.
6075
6076 2008-11-02  Bruno Haible  <bruno@clisp.org>
6077
6078         Mark 'memset' obsolete.
6079         * modules/memset (Status, Notice): New sections.
6080
6081 2008-11-02  Bruno Haible  <bruno@clisp.org>
6082
6083         Mark 'memmove' obsolete.
6084         * modules/memmove (Status, Notice): New sections.
6085         * modules/argp (Depends-on): Add memmove.
6086         * modules/argz (Depends-on): Likewise.
6087         * modules/canonicalize (Depends-on): Likewise.
6088         * modules/canonicalize-lgpl (Depends-on): Likewise.
6089         * modules/fts (Depends-on): Likewise.
6090         * modules/getcwd (Depends-on): Likewise.
6091         * modules/human (Depends-on): Likewise.
6092         * modules/regex (Depends-on): Likewise.
6093         * modules/striconveh (Depends-on): Likewise.
6094         * modules/trim (Depends-on): Likewise.
6095         * modules/unistr/u8-move (Depends-on): Likewise.
6096         * modules/unistr/u16-move (Depends-on): Likewise.
6097         * modules/unistr/u32-move (Depends-on): Likewise.
6098
6099 2008-11-02  Bruno Haible  <bruno@clisp.org>
6100
6101         Mark 'memcpy' obsolete.
6102         * modules/memcpy (Status, Notice): New sections.
6103
6104 2008-11-02  Bruno Haible  <bruno@clisp.org>
6105
6106         Mark 'memcmp' obsolete.
6107         * modules/memcmp (Status, Notice): New sections.
6108         * modules/argmatch (Depends-on): Add memchr.
6109         * modules/backupfile (Depends-on): Likewise.
6110         * modules/c-strcasestr (Depends-on): Likewise.
6111         * modules/crypto/des (Depends-on): Likewise.
6112         * modules/csharpcomp (Depends-on): Likewise.
6113         * modules/fnmatch (Depends-on): Likewise.
6114         * modules/git-merge-changelog (Depends-on): Likewise.
6115         * modules/isnand (Depends-on): Likewise.
6116         * modules/isnand-nolibm (Depends-on): Likewise.
6117         * modules/isnanf (Depends-on): Likewise.
6118         * modules/isnanf-nolibm (Depends-on): Likewise.
6119         * modules/isnanl (Depends-on): Likewise.
6120         * modules/isnanl-nolibm (Depends-on): Likewise.
6121         * modules/mbchar (Depends-on): Likewise.
6122         * modules/memcoll (Depends-on): Likewise.
6123         * modules/quotearg (Depends-on): Likewise.
6124         * modules/regex (Depends-on): Likewise.
6125         * modules/relocatable-prog (Depends-on): Likewise.
6126         * modules/same (Depends-on): Likewise.
6127         * modules/signbit (Depends-on): Likewise.
6128         * modules/strcasestr-simple (Depends-on): Likewise.
6129         * modules/unictype/gen-ctype (Depends-on): Likewise.
6130         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
6131         * modules/uniname/uniname (Depends-on): Likewise.
6132         * modules/unistr/u8-cmp (Depends-on): Likewise.
6133
6134 2008-11-02  Bruno Haible  <bruno@clisp.org>
6135
6136         Mark 'memchr' obsolete.
6137         * modules/memchr (Status, Notice): New sections.
6138         * modules/argp (Depends-on): Add memchr.
6139         * modules/base64 (Depends-on): Likewise.
6140         * modules/c-strcasestr (Depends-on): Likewise.
6141         * modules/chdir-long (Depends-on): Likewise.
6142         * modules/fnmatch (Depends-on): Likewise.
6143         * modules/getsubopt (Depends-on): Likewise.
6144         * modules/git-merge-changelog (Depends-on): Likewise.
6145         * modules/glob (Depends-on): Likewise.
6146         * modules/strcasestr-simple (Depends-on): Likewise.
6147         * modules/strnlen (Depends-on): Likewise.
6148
6149 2008-11-02  Bruno Haible  <bruno@clisp.org>
6150
6151         Mark 'atexit' obsolete.
6152         * modules/atexit (Status, Notice): New sections.
6153         * modules/chdir-long (Depends-on): Add atexit.
6154         * modules/wait-process (Depends-on): Likewise.
6155
6156 2008-11-02  Bruno Haible  <bruno@clisp.org>
6157
6158         * gnulib-tool: New option --with-obsolete.
6159         (func_usage): Document it.
6160         (func_modules_transitive_closure): Drop obsolete dependencies if
6161         incobsolete is not true.
6162         (func_import): Read and save the incobsolete variable to the cache.
6163
6164 2008-11-02  Bruno Haible  <bruno@clisp.org>
6165
6166         * modules/TEMPLATE-EXTENDED: New field 'Status'.
6167         * gnulib-tool: New option --extract-status.
6168         (func_usage): Document it.
6169         (sed_extract_prog): Recognize it.
6170         (func_get_status): New function.
6171
6172 2008-10-30  Simon Josefsson  <simon@josefsson.org>
6173
6174         * modules/sockets (License): Change from LGPL to LGPLv2+.
6175
6176 2008-10-28  Simon Josefsson  <simon@josefsson.org>
6177
6178         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
6179
6180 2008-10-28  Simon Josefsson  <simon@josefsson.org>
6181
6182         * MODULES.html.sh (Support for systems lacking POSIX:2001):
6183         Mention times and sys_times.
6184         * modules/sys_times, modules/sys_times-tests: New modules.
6185         * modules/times, modules/times-tests: Likewise
6186         * m4/sys_times_h.m4: New file.
6187         * lib/sys_times.in.h: Likewise
6188         * lib/times.c: Likewise.
6189         * tests/test-sys_times.c: Likewise.
6190         * tests/test-times.c: Likewise.
6191         * doc/posix-headers/sys_times.texi: Update.
6192         * doc/posix-functions/times.texi: Update.
6193
6194 2008-10-28  Jim Meyering  <meyering@redhat.com>
6195
6196         * modules/tempname (Depends-on): Add lstat.
6197
6198         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
6199
6200 2008-10-28  Simon Josefsson  <simon@josefsson.org>
6201
6202         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
6203         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
6204         using idiom used elsewhere in gnulib.
6205
6206 2008-10-27  Jim Meyering  <meyering@redhat.com>
6207
6208         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
6209
6210 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6211
6212         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
6213         TESTS_ENVIRONMENT, for shell scripts that needs to call built
6214         programs.
6215         * tests/test-argp-2.sh: Use $EXEEXT when needed.
6216
6217 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6218
6219         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
6220
6221 2008-10-27  Bruno Haible  <bruno@clisp.org>
6222
6223         * tests/test-lstat.c: Include <stdio.h>.
6224
6225 2008-10-27  Simon Josefsson  <simon@josefsson.org>
6226
6227         * modules/lstat-tests: New module.
6228         * tests/test-lstat.c: New file.
6229
6230 2008-10-26  Jim Meyering  <meyering@redhat.com>
6231
6232         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
6233
6234 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6235             Bruno Haible  <bruno@clisp.org>
6236
6237         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
6238         * modules/configmake (Include): Add a note that the include must come
6239         after all system headers.
6240         * lib/javaversion.c: Include configmake.h after all other includes.
6241
6242 2008-10-26  Bruno Haible  <bruno@clisp.org>
6243
6244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
6245         HAVE_STRUCT_RANDOM_DATA to 1.
6246         (gl_STDLIB_H): Simplify.
6247
6248 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6249
6250         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
6251         substitute HAVE_STRUCT_RANDOM_DATA.
6252         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
6253         random_data.
6254         * modules/stdlib (Makefile.am): Substitute
6255         HAVE_STRUCT_RANDOM_DATA.
6256
6257 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6258
6259         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
6260         * doc/gnulib-intro.texi (Copyright): Likewise.
6261
6262 2008-10-26  Simon Josefsson  <simon@josefsson.org>
6263
6264         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
6265         findings.
6266
6267 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
6268             Bruno Haible  <bruno@clisp.org>
6269
6270         * lib/unistd.in.h: Include <winsock2.h>.
6271         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
6272         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
6273         Provide dummy declarations.
6274         (gethostname): Override.
6275         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
6276         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
6277         gl_PREREQ_SYS_H_WINSOCK2.
6278         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
6279         * doc/posix-functions/gethostname.texi: More details.
6280
6281 2008-10-25  Bruno Haible  <bruno@clisp.org>
6282
6283         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6284         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
6285         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
6286
6287         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
6288         here ...
6289         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
6290         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
6291         gl_UNISTD_H_DEFAULTS.
6292
6293 2008-10-25  Eric Blake  <ebb9@byu.net>
6294
6295         signbit: avoid spurious compiler failure
6296         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
6297         declarations inside function.
6298
6299 2008-10-24  Simon Josefsson  <simon@josefsson.org>
6300             Bruno Haible  <bruno@clisp.org>
6301
6302         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
6303         * modules/random_r (Depends-on): Add stdint.
6304
6305 2008-10-24  Bruno Haible  <bruno@clisp.org>
6306
6307         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
6308         Eggert.
6309         * modules/strerror (License): Likewise.
6310
6311 2008-10-24  Jim Meyering  <meyering@redhat.com>
6312
6313         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
6314         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
6315
6316 2008-10-24  Eric Blake  <ebb9@byu.net>
6317
6318         getgroups: fix compilation when getgroups is available
6319         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
6320         but with <config.h> override of getgroups disabled.
6321
6322 2008-10-24  Simon Josefsson  <simon@josefsson.org>
6323
6324         * doc/gnulib.texi (Header files): Add note about C++ problems.
6325         Explained by Bruno Haible <bruno@clisp.org>.
6326
6327 2008-10-23  Bruno Haible  <bruno@clisp.org>
6328
6329         Define a dummy SA_NODEFER macro on Interix.
6330         * lib/signal.in.h (SA_NODEFER): Define fallback.
6331         Reported by Aleksey Cheusov <cheusov@tut.by> via
6332         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
6333
6334 2008-10-23  Bruno Haible  <bruno@clisp.org>
6335
6336         * modules/freadahead (License): Change to LGPLv2+.
6337         Suggested by Simon Josefsson.
6338
6339 2008-10-23  Jim Meyering  <meyering@redhat.com>
6340
6341         random_r: new module
6342         * modules/random_r: New file.
6343         * m4/random_r.m4: New file.
6344         * lib/random_r.c: New file, from glibc.
6345         * modules/random_r-tests: New file.
6346         * tests/test-random_r.c: New file.
6347         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
6348          Declare.
6349         (RAND_MAX): Define.
6350         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
6351         * modules/stdlib: Substitute them, too.
6352         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
6353         * doc/glibc-functions/initstate_r.texi: Mention the new module.
6354         * doc/glibc-functions/random_r.texi: Likewise.
6355         * doc/glibc-functions/setstate_r.texi: Likewise.
6356         * doc/glibc-functions/srandom_r.texi: Likewise.
6357         * config/srclist.txt: Mention it.
6358
6359 2008-10-23  David Lutterkort  <lutter@redhat.com>
6360
6361         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
6362         link requirement
6363
6364 2008-10-23  Jim Meyering  <meyering@redhat.com>
6365
6366         selinux-h: mark parameters of stub functions as intentionally unused
6367         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
6368         * lib/se-context.in.h: Likewise.
6369
6370 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6371
6372         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
6373
6374 2008-10-22  Simon Josefsson  <simon@josefsson.org>
6375
6376         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
6377
6378 2008-10-22  Eric Blake  <ebb9@byu.net>
6379
6380         glthread/thread: avoid compiler warning
6381         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
6382         Add unreachable abort to silence compiler.
6383
6384 2008-10-22  Eric Blake  <ebb9@byu.net>
6385
6386         netdb: also supply struct addrinfo for cygwin 1.5.x
6387         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
6388         older cygwin.
6389         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
6390         cygwin.
6391         * doc/posix-headers/netdb.texi (netdb.h): Document this.
6392
6393 2008-10-22  Bruno Haible  <bruno@clisp.org>
6394
6395         * users.txt: Update entry about pspp.
6396
6397 2008-10-21  Bruno Haible  <bruno@clisp.org>
6398
6399         Simplification.
6400         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
6401         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
6402
6403         Simplification.
6404         * lib/ioctl.c (ioctl): Don't undefine.
6405         * lib/socket.c (socket): Don't undefine.
6406
6407         Remove unused module indicator macros.
6408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
6409         GNULIB_$1 as a C macro.
6410
6411         * doc/posix-functions/close.texi: Undo last change.
6412         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
6413         Windows platforms.
6414
6415 2008-10-21  Bruno Haible  <bruno@clisp.org>
6416
6417         Add gethostname() declaration to <unistd.h>.
6418         * lib/unistd.in.h (gethostname): New declaration.
6419         * lib/gethostname.c: Include <unistd.h>.
6420         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
6421         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
6422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
6423         and HAVE_GETHOSTNAME.
6424         * modules/gethostname (Depends-on): Add unistd.
6425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6426         (Include): Specify <unistd.h>.
6427         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
6428         HAVE_GETHOSTNAME.
6429         * tests/test-gethostname.c: Include <unistd.h> first.
6430
6431 2008-10-21  Bruno Haible  <bruno@clisp.org>
6432
6433         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
6434         * modules/select-tests (Depends-on): Likewise.
6435         Reported by Simon Josefsson.
6436
6437 2008-10-21  Simon Josefsson  <simon@josefsson.org>
6438
6439         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
6440         * lib/accept.c: New file, based on winsock.c.
6441         * lib/bind.c: New file, based on winsock.c.
6442         * lib/connect.c: New file, based on winsock.c.
6443         * lib/getpeername.c: New file, based on winsock.c.
6444         * lib/getsockname.c: New file, based on winsock.c.
6445         * lib/getsockopt.c: New file, based on winsock.c.
6446         * lib/ioctl.c: New file, based on winsock.c.
6447         * lib/listen.c: New file, based on winsock.c.
6448         * lib/recv.c: New file, based on winsock.c.
6449         * lib/recvfrom.c: New file, based on winsock.c.
6450         * lib/send.c: New file, based on winsock.c.
6451         * lib/sendto.c: New file, based on winsock.c.
6452         * lib/setsockopt.c: New file, based on winsock.c.
6453         * lib/shutdown.c: New file, based on winsock.c.
6454         * lib/socket.c: New file, based on winsock.c.
6455         * lib/w32sock.h: New file, based on winsock.c.
6456         * lib/winsock.c: Remove file.
6457         * modules/accept: Likewise.
6458         * modules/bind: Likewise.
6459         * modules/connect: Likewise.
6460         * modules/getpeername: Likewise.
6461         * modules/getsockname: Likewise.
6462         * modules/getsockopt: Likewise.
6463         * modules/ioctl: Likewise.
6464         * modules/listen: Likewise.
6465         * modules/recv: Likewise.
6466         * modules/recvfrom: Likewise.
6467         * modules/send: Likewise.
6468         * modules/sendto: Likewise.
6469         * modules/setsockopt: Likewise.
6470         * modules/shutdown: Likewise.
6471         * modules/socket: Use socket.c instead of winsock.c.
6472         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
6473         * doc/posix-functions/accept.texi: Doc fix.
6474         * doc/posix-functions/bind.texi: Doc fix.
6475         * doc/posix-functions/close.texi: Doc fix.
6476         * doc/posix-functions/connect.texi: Doc fix.
6477         * doc/posix-functions/getpeername.texi: Doc fix.
6478         * doc/posix-functions/getsockname.texi: Doc fix.
6479         * doc/posix-functions/getsockopt.texi: Doc fix.
6480         * doc/posix-functions/ioctl.texi: Doc fix.
6481         * doc/posix-functions/listen.texi: Doc fix.
6482         * doc/posix-functions/recv.texi: Doc fix.
6483         * doc/posix-functions/recvfrom.texi: Doc fix.
6484         * doc/posix-functions/send.texi: Doc fix.
6485         * doc/posix-functions/sendto.texi: Doc fix.
6486         * doc/posix-functions/setsockopt.texi: Doc fix.
6487         * doc/posix-functions/shutdown.texi: Doc fix.
6488         * doc/posix-functions/socket.texi: Doc fix.
6489
6490 2008-10-20  Bruno Haible  <bruno@clisp.org>
6491
6492         Take into account the role of SIGABRT_COMPAT on Windows 2008.
6493         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
6494         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
6495         as an alias for SIGABRT.
6496         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
6497         (sigaction): Map it to SIGABRT.
6498         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
6499
6500 2008-10-20  Bruno Haible  <bruno@clisp.org>
6501
6502         * lib/fts.c: Don't include lstat.h.
6503         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
6504
6505         Move the lstat() declaration to <sys/stat.h>.
6506         * lib/lstat.h: Remove file.
6507         * lib/sys_stat.in.h: Add special invocation convention.
6508         (lstat): New declaration.
6509         * lib/lstat.c (orig_lstat): New function.
6510         (rpl_lstat): Use orig_lstat instead of lstat.
6511         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
6512         AC_C_INLINE. Set REPLACE_LSTAT.
6513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
6514         and REPLACE_LSTAT.
6515         * modules/lstat (Files): Remove lib/lstat.h.
6516         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6517         (Include): Specify <sys/stat.h> instead of lstat.h.
6518         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
6519         REPLACE_LSTAT.
6520         * NEWS: Mention the change.
6521
6522 2008-10-20  Bruno Haible  <bruno@clisp.org>
6523
6524         * modules/posix_spawn-tests: New file.
6525         * tests/test-posix_spawn3.c: New file.
6526
6527 2008-10-20  Bruno Haible  <bruno@clisp.org>
6528
6529         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
6530         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6531         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
6532         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
6533         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
6534
6535 2008-10-20  Bruno Haible  <bruno@clisp.org>
6536
6537         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
6538         of posix_spawn on AIX 5.3.
6539
6540 2008-10-20  Bruno Haible  <bruno@clisp.org>
6541
6542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
6543
6544 2008-10-20  Bruno Haible  <bruno@clisp.org>
6545
6546         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
6547         of AC_LANG_PROGRAM.
6548
6549 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6550
6551         * lib/netdb.in.h: Don't define GNU specific constants until they
6552         are supported or needed.  Reported by Bruno Haible
6553         <bruno@clisp.org>.
6554
6555 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6556
6557         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
6558
6559 2008-10-20  Simon Josefsson  <simon@josefsson.org>
6560
6561         * lib/getaddrinfo.h: Remove file.
6562         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
6563         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
6564         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
6565         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
6566         * modules/netdb: Substitute GNULIB_GETADDRINFO.
6567         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
6568         * tests/test-getaddrinfo.c: Likewise.
6569         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
6570         * NEWS: Mention change.
6571
6572 2008-10-19  Bruno Haible  <bruno@clisp.org>
6573
6574         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
6575
6576 2008-10-19  Bruno Haible  <bruno@clisp.org>
6577
6578         * lib/wait-process.c: Include simply <sys/wait.h>.
6579         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
6580         WIFSTOPPED): Remove fallback definitions.
6581         * modules/wait-process (Depends-on): Add sys_wait.
6582
6583         New module 'sys_wait'.
6584         * modules/sys_wait: New file.
6585         * lib/sys_wait.in.h: New file, partially copied from
6586         lib/wait-process.c.
6587         * m4/sys_wait_h.m4: New file.
6588         * doc/posix-headers/sys_wait.texi: Mention the new module.
6589
6590 2008-10-19  Bruno Haible  <bruno@clisp.org>
6591
6592         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
6593
6594 2008-10-19  Bruno Haible  <bruno@clisp.org>
6595
6596         Assume that waitpid() fills an 'int' status, not a 'union wait'.
6597         * lib/wait-process.c (WAIT_T): Remove type.
6598         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
6599         (wait_subprocess): Update.
6600
6601 2008-10-19  Bruno Haible  <bruno@clisp.org>
6602
6603         New module 'atoll'.
6604         * modules/atoll: New file.
6605         * lib/stdlib.in.h (atoll): New declaration.
6606         * lib/atoll.c: New file, from glibc with modifications.
6607         * m4/atoll.m4: New file.
6608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
6609         HAVE_ATOLL.
6610         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
6611         * doc/posix-functions/atoll.texi: Mention the new module.
6612
6613 2008-10-19  Bruno Haible  <bruno@clisp.org>
6614
6615         Add strtoull() declaration to <stdlib.h>.
6616         * lib/stdlib.in.h (strtoull): New declaration.
6617         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6618         Set HAVE_STRTOULL.
6619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
6620         HAVE_STRTOULL.
6621         * modules/strtoull (Depends-on): Add stdlib.
6622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6623         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
6624         HAVE_STRTOULL.
6625
6626 2008-10-19  Bruno Haible  <bruno@clisp.org>
6627
6628         Add strtoll() declaration to <stdlib.h>.
6629         * lib/stdlib.in.h (strtoll): New declaration.
6630         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6631         Set HAVE_STRTOLL.
6632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
6633         HAVE_STRTOLL.
6634         * modules/strtoll (Depends-on): Add stdlib.
6635         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6636         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
6637
6638 2008-10-19  Bruno Haible  <bruno@clisp.org>
6639
6640         * modules/bcopy (Depends-on): Add strings.
6641         (Include): Specify <strings.h>.
6642
6643 2008-10-19  Bruno Haible  <bruno@clisp.org>
6644
6645         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
6646
6647 2008-10-19  Bruno Haible  <bruno@clisp.org>
6648
6649         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
6650         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
6651         mingw.
6652
6653 2008-10-19  Bruno Haible  <bruno@clisp.org>
6654
6655         * lib/atanl.c: Don't include isnanl.h.
6656         * lib/cosl.c: Likewise.
6657         * lib/ldexpl.c: Likewise.
6658         * lib/logl.c: Likewise.
6659         * lib/sinl.c: Likewise.
6660         * lib/sqrtl.c: Likewise.
6661         * lib/tanl.c: Likewise.
6662
6663         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
6664         * lib/isnanf.h: Remove file.
6665         * lib/isnand.h: Remove file.
6666         * lib/isnanl.h: Remove file.
6667         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
6668         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
6669         macros.
6670         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
6671         HAVE_ISNANF, don't define it as a C macro.
6672         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
6673         HAVE_ISNAND, don't define it as a C macro.
6674         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
6675         HAVE_ISNANL, don't define it as a C macro.
6676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
6677         HAVE_ISNAN[FDL].
6678         * modules/isnanf (Files): Remove lib/isnanf.h.
6679         (Depends-on): Add math.
6680         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6681         (Include): Specify <math.h> instead of isnanf.h.
6682         * modules/isnand (Files): Remove lib/isnand.h.
6683         (Depends-on): Add math.
6684         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6685         (Include): Specify <math.h> instead of isnand.h.
6686         * modules/isnanl (Files): Remove lib/isnanl.h.
6687         (Depends-on): Add math.
6688         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6689         (Include): Specify <math.h> instead of isnanl.h.
6690         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
6691         HAVE_ISNAN[FDL].
6692         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
6693         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
6694         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
6695         * NEWS: Mention the change.
6696
6697 2008-10-18  Bruno Haible  <bruno@clisp.org>
6698
6699         Add getusershell(), setusershell(), endusershell() declarations to
6700         <unistd.h>.
6701         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
6702         declarations.
6703         * lib/getusershell.c: Include unistd.h.
6704         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
6705         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6706         HAVE_GETUSERSHELL.
6707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
6708         and HAVE_GETUSERSHELL.
6709         * modules/getusershell (Depends-on): Add unistd, extensions.
6710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6711         (Include): Specify <unistd.h>.
6712         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
6713         HAVE_GETUSERSHELL.
6714
6715 2008-10-18  Bruno Haible  <bruno@clisp.org>
6716
6717         Add a getloadavg() declaration to <stdlib.h>.
6718         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
6719         getloadavg declaration.
6720         (getloadavg): New declaration.
6721         * lib/getloadavg.c: Include <stdlib.h> first.
6722         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
6723         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
6724         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
6725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
6726         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6727         * modules/getloadavg (Depends-on): Add stdlib, extensions.
6728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6729         (Include): Specify <stdlib.h>.
6730         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
6731         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6732
6733 2008-10-18  Bruno Haible  <bruno@clisp.org>
6734
6735         * lib/dirchownmod.c: Don't include lchmod.h.
6736
6737         Move the lchmod() declaration to <sys/stat.h>.
6738         * lib/lchmod.h: Remove file.
6739         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
6740         (lchmod): New declaration, moved here from lib/lchown.h.
6741         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
6742         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
6743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
6744         and HAVE_LCHMOD.
6745         * modules/lchmod (Files): Remove lib/lchmod.h.
6746         (Depends-on): Add sys_stat, extensions.
6747         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6748         (Include): Specify <sys/stat.h> instead of lchmod.h.
6749         * modules/sys_stat (Depends-on): Add link-warning.
6750         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
6751         definition of GL_LINK_WARNING.
6752         * NEWS: Mention the change.
6753
6754 2008-10-18  Bruno Haible  <bruno@clisp.org>
6755
6756         * lib/fchdir.c: Don't include dirfd.h.
6757         * lib/fts.c: Likewise.
6758         * lib/getcwd.c: Likewise.
6759         * lib/glob.c: Likewise.
6760
6761         Move the dirfd() declaration to <dirent.h>.
6762         * lib/dirfd.h: Remove file.
6763         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
6764         (dirfd): New declaration.
6765         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
6766         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
6767         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
6768         HAVE_DECL_DIRFD.
6769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
6770         HAVE_DECL_DIRFD.
6771         * modules/dirfd (Files): Remove lib/dirfd.h.
6772         (Depends-on): Add dirent, extensions.
6773         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
6774         (Include): Specify <dirent.h> instead of dirfd.h.
6775         * modules/dirent (Depends-on): Add link-warning.
6776         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
6777         definition of GL_LINK_WARNING.
6778         * NEWS: Mention the change.
6779
6780 2008-10-18  Bruno Haible  <bruno@clisp.org>
6781
6782         Move the euidaccess() declaration to <unistd.h>.
6783         * lib/euidaccess.h: Remove file.
6784         * lib/unistd.in.h (euidaccess): New declaration.
6785         * lib/euidaccess.c: Don't include euidaccess.h.
6786         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
6787         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
6788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
6789         and HAVE_EUIDACCESS.
6790         * modules/euidaccess (Files): Remove lib/euidaccess.h.
6791         (Depends-on): Add unistd.
6792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6793         (Include): Specify <unistd.h> instead of euidaccess.h.
6794         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
6795         HAVE_EUIDACCESS.
6796         * NEWS: Mention the change.
6797
6798 2008-10-18  Bruno Haible  <bruno@clisp.org>
6799
6800         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
6801
6802         Move the getdomainname() declaration to <unistd.h>.
6803         * lib/getdomainname.h: Remove file.
6804         * lib/unistd.in.h (getdomainname): New declaration.
6805         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
6806         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6807         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6808         HAVE_GETDOMAINNAME.
6809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6810         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
6811         * modules/getdomainname (Files): Remove lib/getdomainname.h.
6812         (Depends-on): Add unistd, extensions.
6813         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6814         (Includes): Specify <unistd.h> instead of getdomainname.h.
6815         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
6816         HAVE_GETDOMAINNAME.
6817         * NEWS: Mention the change.
6818
6819 2008-10-18  Bruno Haible  <bruno@clisp.org>
6820
6821         * modules/dirent: New file.
6822         * m4/dirent_h.m4: New file.
6823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6824         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
6825         * modules/fchdir (Files): Remove lib/dirent.in.h.
6826         (Depends-on): Add dirent.
6827         (Makefile.am): Move rules to modules/dirent.
6828         * doc/posix-headers/dirent.texi: Mention the new module.
6829
6830 2008-10-18  Bruno Haible  <bruno@clisp.org>
6831
6832         Avoid -Wunused-parameter warnings in public gnulib header files.
6833         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
6834         macro.
6835         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
6836
6837 2008-10-18  Bruno Haible  <bruno@clisp.org>
6838
6839         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
6840         * doc/glibc-functions/error.texi: Mention the module 'error'.
6841         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
6842         * doc/glibc-functions/getdomainname.texi: Mention the module
6843         'getdomainname'.
6844         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
6845         * doc/glibc-functions/getpagesize.texi: Mention the module
6846         'getpagesize'.
6847         * doc/glibc-functions/getusershell.texi: Mention the module
6848         'getusershell'.
6849         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
6850         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
6851         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
6852         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
6853         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
6854         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
6855         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
6856         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
6857         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
6858         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
6859         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
6860         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
6861         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
6862         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
6863
6864 2008-10-17  Bruno Haible  <bruno@clisp.org>
6865
6866         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
6867         HP-UX and IRIX, use -0.0L.
6868         * tests/test-ceill.c (minus_zero): Likewise.
6869         * tests/test-floorl.c (minus_zero): Likewise.
6870         * tests/test-frexpl.c (minus_zero): Likewise.
6871         * tests/test-isnan.c (minus_zerol): Likewise.
6872         * tests/test-isnanl.h (minus_zero): Likewise.
6873         * tests/test-ldexpl.c (minus_zero): Likewise.
6874         * tests/test-roundl.c (minus_zero): Likewise.
6875         * tests/test-signbit.c (minus_zerol): Likewise.
6876         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6877         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6878         * tests/test-truncl.c (minus_zero): Likewise.
6879         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6880         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6881         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
6882         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6883
6884 2008-10-17  Bruno Haible  <bruno@clisp.org>
6885
6886         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
6887         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
6888         that it gets activated only for gcc >= 3.0.
6889         * lib/dirent.in.h: Likewise.
6890         * lib/errno.in.h: Likewise.
6891         * lib/fcntl.in.h: Likewise.
6892         * lib/float.in.h: Likewise.
6893         * lib/iconv.in.h: Likewise.
6894         * lib/inttypes.in.h: Likewise.
6895         * lib/locale.in.h: Likewise.
6896         * lib/math.in.h: Likewise.
6897         * lib/netdb.in.h: Likewise.
6898         * lib/netinet_in.in.h: Likewise.
6899         * lib/search.in.h: Likewise.
6900         * lib/signal.in.h: Likewise.
6901         * lib/spawn.in.h: Likewise.
6902         * lib/stdarg.in.h: Likewise.
6903         * lib/stdint.in.h: Likewise.
6904         * lib/stdio.in.h: Likewise.
6905         * lib/stdlib.in.h: Likewise.
6906         * lib/string.in.h: Likewise.
6907         * lib/strings.in.h: Likewise.
6908         * lib/sys_file.in.h: Likewise.
6909         * lib/sys_ioctl.in.h: Likewise.
6910         * lib/sys_select.in.h: Likewise.
6911         * lib/sys_socket.in.h: Likewise.
6912         * lib/sys_stat.in.h: Likewise.
6913         * lib/sys_time.in.h: Likewise.
6914         * lib/sysexits.in.h: Likewise.
6915         * lib/time.in.h: Likewise.
6916         * lib/unistd.in.h: Likewise.
6917         * lib/wchar.in.h: Likewise.
6918         * lib/wctype.in.h: Likewise.
6919         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6920
6921 2008-10-17  Jim Meyering  <meyering@redhat.com>
6922
6923         ignore-value: don't depend on inline module
6924         * modules/ignore-value (Depends-on): Remove 'inline'.
6925         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6926         Suggestion from Bruno Haible.
6927
6928 2008-10-17  Bruno Haible  <bruno@clisp.org>
6929
6930         New implementation of condition variables for Win32.
6931         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6932         (gl_linked_waitqueue_t): New type.
6933         (gl_cond_t): Use it.
6934         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6935         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6936         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6937         (glthread_cond_init_func, glthread_cond_wait_func,
6938         glthread_cond_timedwait_func, glthread_cond_signal_func,
6939         glthread_cond_broadcast_func, glthread_cond_destroy_func):
6940         Reimplemented on the basis of gl_linked_waitqueue_t.
6941         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6942         gl_waitqueue_t.
6943         (gl_rwlock_t): Update.
6944         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6945
6946 2008-10-17  Simon Josefsson  <simon@josefsson.org>
6947
6948         * modules/recvfrom (Depends-on): Add dependency on getpeername.
6949         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6950
6951 2008-10-17  Jim Meyering  <meyering@redhat.com>
6952
6953         ignore-value: new module
6954         * modules/ignore-value: New file.
6955         * lib/ignore-value.h: New file.
6956         * MODULES.html.sh (Compiler warning management): New section,
6957         just for this module.  More to come.
6958
6959 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6960
6961         open-safer.c: avoid 'signed and unsigned in conditional...' warning
6962         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6963         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6964
6965 2008-10-16  Jim Meyering  <meyering@redhat.com>
6966
6967         openat-die.c: avoid 'no previous prototype' warning
6968         * lib/openat-die.c: Include "openat.h".
6969         Reported by Reuben Thomas <rrt@sc3d.org>.
6970
6971 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6972
6973         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6974         * lib/netdb.in.h: Fix typo.
6975         Reported by Bruno Haible  <bruno@clisp.org>
6976
6977         * lib/netdb.in.h: Include sys/socket.h for platforms without
6978         netdb.h, to get structures like hostent on MinGW.
6979         * modules/netdb (Depends-on): Add sys_socket.
6980
6981 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6982
6983         * modules/netdb, modules/netdb-tests: New file.
6984         * m4/netdb_h.m4: New file.
6985         * lib/netdb.in.h: Add, currently just an empty file pending
6986         definitions.
6987         * tests/test-netdb.c: New file.
6988         * doc/posix-headers/netdb.texi: Mention that we replace it if
6989         needed.
6990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6991         netdb.
6992
6993 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6994
6995         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6996         with code.
6997
6998 2008-10-13  Bruno Haible  <bruno@clisp.org>
6999
7000         * lib/glthread/cond.c (glthread_cond_wait_func,
7001         glthread_cond_timedwait_func): Add a comment.
7002
7003 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
7004
7005         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
7006         * tests/test-select.c: Likewise,
7007
7008 2008-10-13  Bruno Haible  <bruno@clisp.org>
7009
7010         * lib/glthread/cond.c (glthread_cond_wait_func,
7011         glthread_cond_timedwait_func): Fix variable name.
7012         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
7013
7014 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
7015
7016         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
7017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
7018         struct sockaddr.sa_len.
7019         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
7020
7021 2008-10-13  Simon Josefsson  <simon@josefsson.org>
7022
7023         * build-aux/pmccabe2html: Add css and css_url parameters.
7024
7025 2008-10-12  Bruno Haible  <bruno@clisp.org>
7026
7027         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
7028         calling aclx_get.
7029         Reported by Rainer Tammer <tammer@tammer.net>.
7030
7031 2008-10-12  Bruno Haible  <bruno@clisp.org>
7032
7033         Use msvcrt aware primitives for creation/termination of Win32 threads.
7034         * lib/glthread/thread.c: Include <process.h>.
7035         (glthread_create_func): Use _beginthreadex instead of CreateThread.
7036         (wrapper_func): Update signature.
7037         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
7038
7039 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
7040             Bruno Haible  <bruno@clisp.org>
7041
7042         Provide a Win32 implementation of the 'cond' module.
7043         * lib/glthread/cond.h [USE_WIN32]: New implementation.
7044         * lib/glthread/cond.c (glthread_cond_init_func,
7045         glthread_cond_wait_func, glthread_cond_timedwait_func,
7046         glthread_cond_signal_func, glthread_cond_broadcast_func,
7047         glthread_cond_destroy_func) [USE_WIN32]: New functions.
7048         * modules/cond (Dependencies): Add gettimeofday.
7049
7050 2008-10-11  Bruno Haible  <bruno@clisp.org>
7051
7052         Make sleep work on older versions of mingw.
7053         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
7054         only whether it exists.
7055         * doc/posix-functions/sleep.texi: Mention the problem with older
7056         versions of mingw.
7057
7058 2008-10-11  Bruno Haible  <bruno@clisp.org>
7059
7060         New module 'shutdown'.
7061         * modules/shutdown: New file.
7062         * lib/sys_socket.in.h (shutdown): New declaration.
7063         * lib/winsock.c (shutdown): New function.
7064         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7065         GNULIB_SHUTDOWN.
7066         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
7067         * doc/posix-functions/shutdown.texi: Document the new module.
7068
7069 2008-10-11  Jim Meyering  <meyering@redhat.com>
7070
7071         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
7072
7073 2008-10-11  Bruno Haible  <bruno@clisp.org>
7074
7075         New module 'fclose'.
7076         * modules/fclose: New file.
7077         * lib/stdio.in.h (fclose): New declaration.
7078         * lib/fclose.c: New file.
7079         * m4/fclose.m4: New file.
7080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
7081         REPLACE_FCLOSE.
7082         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
7083         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
7084         REPLACE_FCLOSE.
7085         * modules/close (Depends-on): fclose.
7086         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
7087
7088 2008-10-11  Bruno Haible  <bruno@clisp.org>
7089
7090         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
7091         set errno and don't call _close.
7092
7093 2008-10-10  Bruno Haible  <bruno@clisp.org>
7094
7095         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
7096         ACL, not afterwards. Fixes test failure on Cygwin.
7097
7098 2008-10-09  Ben Pfaff  <blp@gnu.org>
7099
7100         * build-aux/announce-gen: Fix gnulib version related part of usage
7101         message.  Die with a useful error message if no tarballs are
7102         found.
7103
7104 2008-10-10  Jim Meyering  <meyering@redhat.com>
7105
7106         bootstrap: use git's --depth=N option only if it's supported
7107         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
7108         recognize the --depth option.  Reported by Pádraig Brady.
7109
7110 2008-10-09  Bruno Haible  <bruno@clisp.org>
7111
7112         New module 'ioctl'.
7113         * modules/ioctl: New file.
7114         * lib/sys_socket.in.h (ioctl): Remove declaration.
7115         * lib/winsock.c: Include <sys/ioctl.h>.
7116         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
7117         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
7118         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
7119         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
7120         * doc/posix-functions/ioctl.texi: Mention the new module.
7121
7122 2008-10-09  Bruno Haible  <bruno@clisp.org>
7123
7124         New module 'sys_ioctl'.
7125         * lib/sys_ioctl.in.h: New file.
7126         * m4/sys_ioctl_h.m4: New file.
7127         * modules/sys_ioctl: New file.
7128         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
7129
7130 2008-10-09  Bruno Haible  <bruno@clisp.org>
7131
7132         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
7133         * lib/winsock.c: Include <stdarg.h>.
7134         (rpl_ioctl): Change to second argument 'int' and then varargs.
7135
7136 2008-10-09  Bruno Haible  <bruno@clisp.org>
7137
7138         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
7139         when the sys_socket module is present and the system has <winsock2.h>.
7140
7141 2008-10-09  Bruno Haible  <bruno@clisp.org>
7142
7143         * doc/posix-functions/close.texi: Mention module 'close' instead of
7144         module 'sys_socket'.
7145
7146 2008-10-09  Bruno Haible  <bruno@clisp.org>
7147
7148         * doc/glibc-headers/sys_ioctl.texi: New file.
7149         * doc/gnulib.texi: Include it.
7150
7151 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7152             Bruno Haible  <bruno@clisp.org>
7153
7154         Combine the two replacements of 'close'.
7155         * lib/sys_socket.in.h (close): Define to a reminder to include
7156         <unistd.h>.
7157         (_gl_close_fd_maybe_socket): New declaration.
7158         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
7159         * lib/winsock.c (close): Remove undefinition.
7160         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
7161         needed for the gnulib module 'close'.
7162         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
7163         define to an error symbol or to a warning, if suitable.
7164         * lib/close.c: Include <sys/socket.h>.
7165         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
7166         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
7167         UNISTD_H_HAVE_WINSOCK2_H.
7168         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
7169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7170         UNISTD_H_HAVE_WINSOCK2_H.
7171         * modules/sys_socket (Files): Add m4/unistd_h.m4.
7172         (configure.ac): Set a module indicator.
7173         (Makefile.am): Substitute GNULIB_CLOSE.
7174         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
7175         * modules/poll-tests (Depends-on): Add close.
7176         * modules/select-tests (Depends-on): Likewise.
7177
7178 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7179             Bruno Haible  <bruno@clisp.org>
7180
7181         New module 'close'.
7182         * modules/close: New file.
7183         * lib/unistd.in.h (close): Move declaration out of the
7184         FCHDIR_REPLACEMENT scope.
7185         (_gl_unregister_fd): New declaration.
7186         * lib/close.c: New file.
7187         * lib/fchdir.c (rpl_close): Remove function.
7188         * m4/close.m4: New file.
7189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
7190         close.
7191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
7192         REPLACE_CLOSE.
7193         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
7194         REPLACE_CLOSE.
7195         * modules/fchdir (Depends-on): Add close.
7196
7197 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7198             Bruno Haible  <bruno@clisp.org>
7199
7200         * lib/fcntl.in.h (open): Simplify conditionals.
7201         (_gl_register_fd): New declaration.
7202         * lib/fchdir.c (rpl_open): Remove function.
7203         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
7204         also.
7205         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
7206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
7207         open.
7208
7209 2008-10-09  Jim Meyering  <meyering@redhat.com>
7210
7211         GNUmakefile: use the more name-space-friendly "_version"
7212         * top/GNUmakefile (_dummy): Update.
7213         (_version): Rename from "version".
7214
7215 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7216             Bruno Haible  <bruno@clisp.org>
7217
7218         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
7219         rpl_close.
7220         (_gl_register_fd): New function, extracted from rpl_open.
7221         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
7222         (rpl_open, rpl_opendir): Use _gl_register_fd.
7223
7224 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
7225
7226         Fix organization of 'open' replacement.
7227         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
7228         (gl_FUNC_OPEN): Use it.
7229         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
7230
7231 2008-10-08  Bruno Haible  <bruno@clisp.org>
7232
7233         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
7234
7235 2008-10-08  Simon Josefsson  <simon@josefsson.org>
7236
7237         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
7238         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
7239         listen).
7240
7241 2008-10-08  Eric Blake  <ebb9@byu.net>
7242
7243         GNUmakefile: add 'make version' target
7244         * top/GNUmakefile (_curr-ver): Split version update rules...
7245         (version): ...into a target.
7246
7247 2008-10-07  Bruno Haible  <bruno@clisp.org>
7248
7249         Use a more portable replacement expression for -0.0L.
7250         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
7251         instead of -0.0L. Fix m4 quotation.
7252
7253         * tests/test-signbit.c: Include <float.h>.
7254         (minus_zero): New variable.
7255         (test_signbitl): Use minus_zero instead of -zero.
7256         * modules/signbit-tests (Depends-on): Add float.
7257
7258         * tests/test-ceill.c: Include <float.h>.
7259         (zero): Remove variable.
7260         (minus_zero): New variable.
7261         (main): Use minus_zero instead of -zero.
7262         * modules/ceill-tests (Depends-on): Add float.
7263
7264         * tests/test-floorl.c: Include <float.h>.
7265         (zero): Remove variable.
7266         (minus_zero): New variable.
7267         (main): Use minus_zero instead of -zero.
7268         * modules/floorl-tests (Depends-on): Add float.
7269
7270         * tests/test-roundl.c: Include <float.h>.
7271         (zero): Remove variable.
7272         (minus_zero): New variable.
7273         (main): Use minus_zero instead of -zero.
7274         * modules/roundl-tests (Depends-on): Add float.
7275
7276         * tests/test-truncl.c: Include <float.h>.
7277         (zero): Remove variable.
7278         (minus_zero): New variable.
7279         (main): Use minus_zero instead of -zero.
7280         * modules/truncl-tests (Depends-on): Add float.
7281
7282         * tests/test-frexpl.c (zero): Remove variable.
7283         (minus_zero): New variable.
7284         (main): Use minus_zero instead of -zero.
7285         * modules/frexpl-tests (Depends-on): Add float.
7286
7287         * tests/test-isnan.c (zerol): Remove variable.
7288         (minus_zerol): New variable.
7289         (test_long_double): Use minus_zerol instead of -zerol.
7290         * modules/isnan-tests (Depends-on): Add float.
7291
7292         * tests/test-isnanl.h (zero): Remove variable.
7293         (minus_zero): New variable.
7294         (main): Use minus_zero instead of -zero.
7295         * modules/isnanl-nolibm-tests (Depends-on): Add float.
7296         * modules/isnanl-tests (Depends-on): Add float.
7297
7298         * tests/test-ldexpl.c (zero): Remove variable.
7299         (minus_zero): New variable.
7300         (main): Use minus_zero instead of -zero.
7301         * modules/ldexpl-tests (Depends-on): Add float.
7302
7303         * tests/test-snprintf-posix.h (zerol): Remove variable.
7304         (minus_zerol): New variable.
7305         (test_function): Use minus_zerol instead of -zerol.
7306         * modules/snprintf-posix-tests (Depends-on): Add float.
7307         * modules/vsnprintf-posix-tests (Depends-on): Add float.
7308
7309         * tests/test-sprintf-posix.h (zerol): Remove variable.
7310         (minus_zerol): New variable.
7311         (test_function): Use minus_zerol instead of -zerol.
7312         * modules/sprintf-posix-tests (Depends-on): Add float.
7313         * modules/vsprintf-posix-tests (Depends-on): Add float.
7314
7315         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
7316         (minus_zerol): New variable.
7317         (test_function): Use minus_zerol instead of -zerol.
7318         * modules/vasnprintf-posix-tests (Depends-on): Add float.
7319
7320         * tests/test-vasprintf-posix.c (zerol): Remove variable.
7321         (minus_zerol): New variable.
7322         (test_function): Use minus_zerol instead of -zerol.
7323         * modules/vasprintf-posix-tests (Depends-on): Add float.
7324
7325 2008-10-07  Simon Josefsson  <simon@josefsson.org>
7326
7327         * MODULES.html.sh (Support for building documentation): Mention
7328         pmccabe2html.  Sort entries.
7329
7330         Add pmccabe2html module, from gnupdf.
7331         * build-aux/pmccabe.css: New file.
7332         * build-aux/pmccabe2html: New file.
7333         * m4/pmccabe2html.m4: New file.
7334         * modules/pmccabe2html: New file.
7335
7336 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
7337
7338         flock: new module
7339         * MODULES.html.sh: Add to list of modules.
7340         * lib/flock.c: flock implementation for Windows and Unix systems
7341         which have fcntl.
7342         * doc/glibc-functions/flock.texi: Update documentation.
7343         * lib/sys_file.in.h: <sys/file.h> header file.
7344         * m4/flock.m4: M4 macros.
7345         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
7346         * modules/flock: flock module.
7347         * modules/flock-tests: flock tests module.
7348         * modules/sys_file: sys/file.h module.
7349         * tests/test-flock.c: test suite for flock.
7350
7351 2008-10-06  Jim Meyering  <meyering@redhat.com>
7352
7353         bootstrap: check for LT_INIT more portably still ;-)
7354         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
7355         Spotted by Bruno Haible.
7356
7357 2008-10-06  Eric Blake  <ebb9@byu.net>
7358
7359         test-signbit: avoid tripping Irix cc bug on -0.0L
7360         * tests/test-signbit.c (minus_zerol): Delete, and replace with
7361         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
7362         entire testsuite consistent and avoids an Irix 6.2 bug.
7363
7364 2008-10-05  Bruno Haible  <bruno@clisp.org>
7365             Jim Meyering  <jim@meyering.net>
7366
7367         Add an option for ignoring EPIPE during close_stdout.
7368         * lib/closeout.h: Include <stdbool.h>.
7369         (close_stdout_set_ignore_EPIPE): New declaration.
7370         * lib/closeout.c: Include <stdbool.h>.
7371         (ignore_EPIPE): New variable.
7372         (close_stdout_set_ignore_EPIPE): New function.
7373         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
7374         * lib/close-stream.c (close_stream): Mention the possible EPIPE
7375         failure.
7376         * modules/closeout (Depends-on): Add stdbool.
7377
7378 2008-10-05  Bruno Haible  <bruno@clisp.org>
7379
7380         * modules/accept: New file.
7381         * modules/bind: New file.
7382         * modules/connect: New file.
7383         * modules/getpeername: New file.
7384         * modules/getsockname: New file.
7385         * modules/getsockopt: New file.
7386         * modules/listen: New file.
7387         * modules/recv: New file.
7388         * modules/recvfrom: New file.
7389         * modules/send: New file.
7390         * modules/sendto: New file.
7391         * modules/setsockopt: New file.
7392         * modules/socket: New file.
7393         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
7394         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7395         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
7396         the particular module is requested. Add a link warning when the
7397         particular module is not requested.
7398         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
7399         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
7400         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
7401         the particular module is requested.
7402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
7403         gl_SYS_SOCKET_H_DEFAULTS): New macros.
7404         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
7405         * modules/sys_socket (Depends-on): Add link-warning.
7406         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
7407         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
7408         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
7409         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
7410         GL_LINK_WARNING.
7411         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
7412         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
7413         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
7414         * doc/posix-functions/getpeername.texi: Mention the new module
7415         'getpeername'.
7416         * doc/posix-functions/getsockname.texi: Mention the new module
7417         'getsockname'.
7418         * doc/posix-functions/getsockopt.texi: Mention the new module
7419         'getsockopt'.
7420         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
7421         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
7422         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
7423         * doc/posix-functions/send.texi: Mention the new module 'send'.
7424         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
7425         * doc/posix-functions/setsockopt.texi: Mention the new module
7426         'setsockopt'.
7427         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
7428         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
7429         listen, connect, accept.
7430         * modules/select-tests (Depends-on): Likewise.
7431
7432 2008-10-05  Bruno Haible  <bruno@clisp.org>
7433
7434         * lib/winsock.c (strerror): Remove unused #undef.
7435         (rpl_close): Remove unused local variable.
7436
7437         * modules/sys_socket (Depends-on); Add errno.
7438
7439 2008-10-05  Bruno Haible  <bruno@clisp.org>
7440
7441         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
7442         (select): Add a link warning when the 'select' module is not used.
7443         * modules/sys_select (Depends-on): Add link-warning.
7444         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
7445         Suggested by Paolo Bonzini.
7446
7447 2008-10-05  Jim Meyering  <meyering@redhat.com>
7448
7449         bootstrap: check for LT_INIT more portably
7450         * build-aux/bootstrap: Avoid using grep -E, since it's not
7451         portable enough.  Suggestion from Bruno Haible.
7452
7453 2008-10-05  Bruno Haible  <bruno@clisp.org>
7454
7455         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
7456         as being fixed by gnulib.
7457
7458 2008-10-05  Bruno Haible  <bruno@clisp.org>
7459
7460         * modules/select-tests: New file, mostly copied from
7461         modules/sys_select-tests.
7462         * tests/test-select.c: New file, mostly copied from
7463         tests/test-sys_select.c.
7464         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
7465         * modules/sys_select-tests (Depends-on): Remove all dependencies.
7466         (Makefile.am): Remove test_sys_select_LDADD.
7467
7468         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
7469         to an undefined symbol, for an error message.
7470         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
7471         (gl_SYS_SELECT_H_DEFAULTS): New macro.
7472         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
7473         winsock-select.c here.
7474         * modules/sys_select (Files): Remove lib/winsock-select.c.
7475         (Depends-on): Remove alloca.
7476         (Makefile.am): Substitute GNULIB_SELECT.
7477         * modules/select: New file.
7478         * doc/posix-functions/select.texi: Update.
7479
7480 2008-10-05  Bruno Haible  <bruno@clisp.org>
7481
7482         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
7483         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
7484         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
7485         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
7486         getdtablesize.
7487         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7488         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7489
7490 2008-10-05  Bruno Haible  <bruno@clisp.org>
7491
7492         * modules/getdtablesize-tests: New file.
7493         * tests/test-getdtablesize.c: New file.
7494
7495         New module 'getdtablesize'.
7496         * lib/unistd.in.h (getdtablesize): New declaration.
7497         * lib/getdtablesize.c: New file.
7498         * m4/getdtablesize.m4: New file.
7499         * modules/getdtablesize: New file.
7500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7501         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
7502         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
7503         HAVE_GETDTABLESIZE.
7504         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
7505
7506 2008-10-05  Bruno Haible  <bruno@clisp.org>
7507
7508         * modules/sched (Makefile.am): Fix typo.
7509         Reported by Simon Josefsson.
7510
7511 2008-10-05  Jim Meyering  <meyering@redhat.com>
7512
7513         bootstrap: check for LT_INIT, too
7514         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
7515         are deprecated.  Suggestion from Ralf Wildenhues.
7516
7517 2008-10-05  Bruno Haible  <bruno@clisp.org>
7518
7519         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
7520         overriding them by ours.
7521         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
7522
7523 2008-10-05  Jim Meyering  <meyering@redhat.com>
7524
7525         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
7526         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
7527         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
7528
7529 2008-10-04  Bruno Haible  <bruno@clisp.org>
7530
7531         * modules/dup2 (License): Change to LGPLv2+.
7532         * modules/sleep (License): Likewise.
7533         * modules/perror (License): Likewise.
7534         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
7535         Blake.
7536         * modules/signal (License): Likewise.
7537         * modules/sigprocmask (License): Likewise.
7538         * modules/raise (License): Change to LGPLv2+, with approval by Jim
7539         Meyering.
7540
7541 2008-10-04  Bruno Haible  <bruno@clisp.org>
7542
7543         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
7544         Reported by Rainer Tammer <tammer@tammer.net>.
7545
7546 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
7547             Bruno Haible  <bruno@clisp.org>
7548
7549         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
7550         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
7551         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
7552
7553 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
7554
7555         filevercmp: new module
7556         * lib/filevercmp.h: New function filevercmp comparing version strings.
7557         * lib/filevercmp.c: Implementation of filevercmp function.
7558         * modules/filevercmp: Module metadata.
7559         * tests/test-filevercmp.c: Unit test for new module.
7560         * modules/filevercmp-tests: Unit test metadata.
7561         * MODULES.html.sh: Add filevercmp module.
7562
7563 2008-10-03  Bruno Haible  <bruno@clisp.org>
7564
7565         * lib/c-ctype.h: Add comment.
7566         Reported by Jim Meyering.
7567
7568 2008-10-02  Bruno Haible  <bruno@clisp.org>
7569
7570         * modules/posix_spawn-internal (Depends-on): Add 'open'.
7571
7572 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7573
7574         * build-aux/bootstrap: Allow renaming bootstrap, and change the
7575         name of bootstrap.conf accordingly.
7576
7577 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7578
7579         * build-aux/bootstrap: Install git-merge-changelog configuration
7580         items into .gitconfig if needed.
7581
7582 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
7583
7584         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
7585         git repository, and initialize/update it accordingly.
7586
7587 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
7588
7589         * modules/fsync-tests: New file.
7590         * tests/test-fsync.c: New file.
7591
7592         New module 'fsync'.
7593         * lib/fsync.c: New file.
7594         * m4/fsync.m4: New file.
7595         * modules/fsync: New file.
7596         * lib/unistd.in.h (fsync): New declaration.
7597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
7598         GNULIB_FSYNC and HAVE_FSYNC.
7599         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
7600         * MODULES.html.sh (posix_functions): Add fsync.
7601         * doc/posix-functions/fsync.texi: Mention the new module.
7602
7603 2008-10-02  Jim Meyering  <meyering@redhat.com>
7604
7605         fts.c: sync with similar code from coreutils' remove.c
7606         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
7607         Guard also with "#if defined __linux__", since for now at least,
7608         this code is Linux-kernel-specific.
7609
7610 2008-10-02  Jim Meyering  <meyering@redhat.com>
7611
7612         fts: bug fixes
7613         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
7614         Include <sys/vfs.h>, not <sys/statfs.h>.
7615
7616         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
7617         Include <sys/vfs.h>, not <sys/statfs.h>.
7618
7619 2008-10-01  Bruno Haible  <bruno@clisp.org>
7620
7621         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
7622         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
7623         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
7624         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
7625         * doc/posix-functions/posix_spawnp.texi: Likewise.
7626         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
7627         whether posix_spawn actually works.
7628         * m4/pipe.m4 (gl_PIPE): Likewise.
7629         * modules/execute (Files): Add m4/posix_spawn.m4.
7630         * modules/pipe (Files): Add m4/posix_spawn.m4.
7631         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
7632
7633 2008-10-01  Jim Meyering  <meyering@redhat.com>
7634
7635         remove trailing spaces
7636         * NEWS: Likewise.
7637         * lib/poll.c (poll): Likewise.
7638         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
7639         * lib/winsock.c (rpl_close): Likewise.
7640         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
7641         * modules/yield: Likewise.
7642         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
7643         * tests/test-sys_select.c (connect_to_socket): Likewise.
7644
7645         fts.c: adjust a new interface to be more generally useful
7646         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
7647         (fts_build): Adjust caller.
7648
7649 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7650
7651         * modules/cond-tests: New file.
7652         * tests/test-cond.c: New file.
7653
7654 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7655             Bruno Haible  <bruno@clisp.org>
7656
7657         * modules/cond (Dependencies): Add errno, time.
7658         * lib/glthread/cond.h: Include <time.h>.
7659         (gl_cond_define, gl_cond_define_initialized): Use the same definition
7660         across platforms.
7661
7662 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7663             Bruno Haible  <bruno@clisp.org>
7664
7665         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
7666
7667 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7668             Bruno Haible  <bruno@clisp.org>
7669
7670         * modules/tls-tests (Depends-on): Add thread, yield.
7671         (configure.ac): Remove all checks.
7672         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
7673         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7674         gl_thread_self): Remove definitions. Include glthread/thread.h and
7675         glthread/yield.h instead.
7676         (test_tls): Pass an additional NULL argument to gl_thread_join.
7677
7678 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7679             Bruno Haible  <bruno@clisp.org>
7680
7681         * modules/lock-tests (Depends-on): Add thread, yield.
7682         (configure.ac): Remove all checks.
7683         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
7684         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7685         gl_thread_self): Remove definitions. Include glthread/thread.h and
7686         glthread/yield.h instead.
7687         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
7688         additional NULL argument to gl_thread_join.
7689
7690 2008-09-30  Bruno Haible  <bruno@clisp.org>
7691
7692         Fix the Win32 implementation of the 'thread' module.
7693         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
7694         pointer type.
7695         (gl_thread_self): Invoke gl_thread_self_func.
7696         (gl_thread_self_func): New declaration.
7697         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
7698         (do_init_self_key, init_self_key): New functions.
7699         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
7700         Remove some fields.
7701         (running_threads, running_lock): Remove variables.
7702         (get_current_thread_handle): New function.
7703         (gl_thread_self_func, wrapper_func, glthread_create_func,
7704         glthread_join_func, gl_thread_exit_func): Largely rewritten and
7705         simplified.
7706
7707 2008-09-30  Bruno Haible  <bruno@clisp.org>
7708
7709         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
7710         files.
7711
7712 2008-09-30  Jim Meyering  <meyering@redhat.com>
7713
7714         fts.m4: correct the test for statfs.f_type
7715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
7716         when checking for statfs.f_type.
7717
7718 2008-09-15  Simon Josefsson  <simon@josefsson.org>
7719
7720         tests: avoid some compiler warnings
7721         * tests/test-memchr.c (main): Pass NULL indirectly.
7722         * tests/test-getdate.c (main): Remove unused variable 'ret'.
7723
7724 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
7725
7726         getdate.y: disallow countable dayshifts like "4 yesterday ago"
7727         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
7728         exactly specified dayshifts.
7729         (dayshift): New rule.
7730         (rel): Add dayshift.
7731         (relative_time_table) [tomorrow, yesterday, today, now]:
7732         Use tDAY_SHIFT in place of tDAY_UNIT.
7733         * tests/test-getdate.c: Add tests for now-disallowed countable
7734         dayshifts, e.g., "4 yesterday ago".
7735
7736 2008-09-29  Bruno Haible  <bruno@clisp.org>
7737
7738         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
7739         * tests/test-posix_spawn1.in.sh: Renamed from
7740         tests/test-posix_spawn.in.sh.
7741         * tests/test-posix_spawn2.c: New file.
7742         * tests/test-posix_spawn2.in.sh: New file.
7743         * modules/posix_spawnp-tests (Files): Update.
7744         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
7745
7746 2008-09-29  Bruno Haible  <bruno@clisp.org>
7747
7748         Propagate effects of putenv/setenv/unsetenv to child processes.
7749         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
7750         * lib/pipe.c (create_pipe): Likewise.
7751
7752 2008-09-29  Bruno Haible  <bruno@clisp.org>
7753
7754         Enable use of shell scripts as executables in mingw.
7755         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
7756         run the program as a shell script.
7757         * lib/pipe.c (create_pipe): Likewise.
7758         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
7759         resulting array.
7760
7761 2008-09-29  Eric Blake  <ebb9@byu.net>
7762
7763         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
7764
7765 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
7766
7767         * doc/posix-functions/accept.texi: Update mingw problems.
7768         * doc/posix-functions/bind.texi: Update mingw problems.
7769         * doc/posix-functions/close.texi: Update mingw problems.
7770         * doc/posix-functions/connect.texi: Update mingw problems.
7771         * doc/posix-functions/getpeername.texi: Update mingw problems.
7772         * doc/posix-functions/getsockname.texi: Update mingw problems.
7773         * doc/posix-functions/getsockopt.texi: Update mingw problems.
7774         * doc/posix-functions/ioctl.texi: Update mingw problems.
7775         * doc/posix-functions/listen.texi: Update mingw problems.
7776         * doc/posix-functions/recv.texi: Update mingw problems.
7777         * doc/posix-functions/recvfrom.texi: Update mingw problems.
7778         * doc/posix-functions/select.texi: Update mingw problems.
7779         * doc/posix-functions/send.texi: Update mingw problems.
7780         * doc/posix-functions/sendto.texi: Update mingw problems.
7781         * doc/posix-functions/setsockopt.texi: Update mingw problems.
7782         * doc/posix-functions/socket.texi: Update mingw problems.
7783
7784 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
7785             Bruno Haible  <bruno@clisp.org>
7786
7787         * lib/sys_select.in.h: Include sys/time.h.
7788         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
7789         * modules/sys_select: Depend on sys_time.
7790         * tests/test-sys_select.c: Test that sys/select.h defines struct
7791         timeval fully.
7792
7793 2008-09-29  Bruno Haible  <bruno@clisp.org>
7794
7795         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
7796         * lib/sys_select.in.h: Likewise.
7797
7798 2008-09-29  Bruno Haible  <bruno@clisp.org>
7799
7800         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
7801
7802 2008-09-29  Bruno Haible  <bruno@clisp.org>
7803
7804         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
7805         Set LIBSOCKET instead of augmenting LIBS.
7806         * modules/sockets (Link): New section.
7807         * modules/sockets-tests (test_sockets_LDADD): New variable.
7808         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
7809         * modules/poll-tests (test_poll_LDADD): New variable.
7810         * NEWS: Document the change.
7811
7812 2008-09-29  Bruno Haible  <bruno@clisp.org>
7813
7814         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
7815         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
7816         ARPA_INET_H directly.
7817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7818
7819 2008-09-28  Bruno Haible  <bruno@clisp.org>
7820
7821         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
7822         from gl_HEADER_SYS_SOCKET.
7823         (gl_HEADER_SYS_SOCKET): Invoke it.
7824         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7825
7826 2008-09-28  Bruno Haible  <bruno@clisp.org>
7827
7828         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
7829         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
7830         Needed on OSF/1 4.0.
7831
7832 2008-09-28  Bruno Haible  <bruno@clisp.org>
7833
7834         Override open more carefully.
7835         * lib/open.c (orig_open): New function.
7836         (rpl_open): Use orig_open instead of open.
7837         * lib/fcntl.in.h: Add special invocation convention.
7838         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
7839         (gl_FUNC_OPEN): Invoke it.
7840
7841         Override freopen more carefully.
7842         * lib/freopen.c (orig_freopen): New function.
7843         (rpl_freopen): Use orig_freopen instead of freopen.
7844         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
7845         (gl_FUNC_FREOPEN): Invoke it.
7846
7847         Override fopen more carefully.
7848         * lib/fopen.c (orig_fopen): New function.
7849         (rpl_fopen): Use orig_fopen instead of fopen.
7850         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
7851         (gl_FUNC_FOPEN): Invoke it.
7852         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
7853
7854 2008-09-28  Bruno Haible  <bruno@clisp.org>
7855
7856         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
7857         SIGPIPE.
7858
7859 2008-09-28  Bruno Haible  <bruno@clisp.org>
7860
7861         * tests/test-sigaction.c (handler, main): Disable the check whether
7862         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
7863         glibc systems with LinuxThreads.
7864
7865 2008-09-28  Bruno Haible  <bruno@clisp.org>
7866
7867         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
7868
7869         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
7870         with AIX xlc.
7871         * lib/fcntl.in.h (open): Likewise.
7872         Reported by Rainer Tammer <tammer@tammer.net>.
7873
7874 2008-09-28  Bruno Haible  <bruno@clisp.org>
7875
7876         * modules/posix_spawnp-tests: New file.
7877         * tests/test-posix_spawn.c: New file.
7878         * tests/test-posix_spawn.in.sh: New file.
7879
7880         New module 'posix_spawnp'.
7881         * modules/posix_spawnp: New file.
7882         * lib/spawnp.c: New file, from GNU libc with modifications.
7883         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
7884
7885         New module 'posix_spawn'.
7886         * modules/posix_spawn: New file.
7887         * lib/spawn.c: New file, from GNU libc with modifications.
7888         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7889
7890         New module 'posix_spawnattr_destroy'.
7891         * modules/posix_spawnattr_destroy: New file.
7892         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
7893         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
7894         module.
7895
7896         New module 'posix_spawnattr_setsigmask'.
7897         * modules/posix_spawnattr_setsigmask: New file.
7898         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
7899         modifications.
7900         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
7901         new module.
7902
7903         New module 'posix_spawnattr_getsigmask'.
7904         * modules/posix_spawnattr_getsigmask: New file.
7905         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
7906         modifications.
7907         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
7908         new module.
7909
7910         New module 'posix_spawnattr_setsigdefault'.
7911         * modules/posix_spawnattr_setsigdefault: New file.
7912         * lib/spawnattr_setdefault.c: New file, from GNU libc with
7913         modifications.
7914         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
7915         new module.
7916
7917         New module 'posix_spawnattr_getsigdefault'.
7918         * modules/posix_spawnattr_getsigdefault: New file.
7919         * lib/spawnattr_getdefault.c: New file, from GNU libc with
7920         modifications.
7921         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7922         new module.
7923
7924         New module 'posix_spawnattr_setschedpolicy'.
7925         * modules/posix_spawnattr_setschedpolicy: New file.
7926         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7927         modifications.
7928         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7929         new module.
7930
7931         New module 'posix_spawnattr_getschedpolicy'.
7932         * modules/posix_spawnattr_getschedpolicy: New file.
7933         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7934         modifications.
7935         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7936         new module.
7937
7938         New module 'posix_spawnattr_setschedparam'.
7939         * modules/posix_spawnattr_setschedparam: New file.
7940         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7941         modifications.
7942         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7943         new module.
7944
7945         New module 'posix_spawnattr_getschedparam'.
7946         * modules/posix_spawnattr_getschedparam: New file.
7947         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7948         modifications.
7949         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7950         new module.
7951
7952         New module 'posix_spawnattr_setpgroup'.
7953         * modules/posix_spawnattr_setpgroup: New file.
7954         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7955         modifications.
7956         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7957         module.
7958
7959         New module 'posix_spawnattr_getpgroup'.
7960         * modules/posix_spawnattr_getpgroup: New file.
7961         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7962         modifications.
7963         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7964         module.
7965
7966         New module 'posix_spawnattr_setflags'.
7967         * modules/posix_spawnattr_setflags: New file.
7968         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7969         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7970         module.
7971
7972         New module 'posix_spawnattr_getflags'.
7973         * modules/posix_spawnattr_getflags: New file.
7974         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7975         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7976         module.
7977
7978         New module 'posix_spawnattr_init'.
7979         * modules/posix_spawnattr_init: New file.
7980         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7981         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7982         module.
7983
7984         New module 'posix_spawn_file_actions_destroy'.
7985         * modules/posix_spawn_file_actions_destroy: New file.
7986         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7987         modifications.
7988         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7989         the new module.
7990
7991         New module 'posix_spawn_file_actions_addopen'.
7992         * modules/posix_spawn_file_actions_addopen: New file.
7993         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7994         modifications.
7995         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7996         the new module.
7997
7998         New module 'posix_spawn_file_actions_adddup2'.
7999         * modules/posix_spawn_file_actions_adddup2: New file.
8000         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
8001         modifications.
8002         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8003         the new module.
8004
8005         New module 'posix_spawn_file_actions_addclose'.
8006         * modules/posix_spawn_file_actions_addclose: New file.
8007         * lib/spawn_faction_addclose.c: New file, from GNU libc with
8008         modifications.
8009         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8010         the new module.
8011
8012         New module 'posix_spawn_file_actions_init'.
8013         * modules/posix_spawn_file_actions_init: New file.
8014         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
8015         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
8016         new module.
8017
8018         New module 'posix_spawn-internal'.
8019         * modules/posix_spawn-internal: New file.
8020         * lib/spawn_int.h: New file, from GNU libc with modifications.
8021         * lib/spawni.c: New file, from GNU libc with modifications.
8022         * m4/posix_spawn.m4: New file.
8023
8024         New module 'spawn'.
8025         * modules/spawn: New file.
8026         * lib/spawn.in.h: New file, from GNU libc with modifications.
8027         * m4/spawn_h.m4: New file.
8028         * doc/posix-headers/spawn.texi: Mention the new module.
8029
8030 2008-09-28  Bruno Haible  <bruno@clisp.org>
8031
8032         * modules/sched-tests: New file.
8033         * tests/test-sched.c: New file.
8034
8035         New module 'sched'.
8036         * modules/sched: New file.
8037         * lib/sched.in.h: New file.
8038         * m4/sched_h.m4: New file.
8039         * doc/posix-headers/sched.texi: Mention the new module.
8040
8041 2008-09-27  Eric Blake  <ebb9@byu.net>
8042
8043         Fix previous patch, and tweak references to $0.
8044         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
8045         (func_version, func_gnulib_dir): Don't call this program
8046         gnulib-tool.
8047         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
8048         with using $0 in function.
8049         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
8050         (func_fatal_error): Reuse the name the user invoked us with.
8051
8052 2008-09-27  Bruno Haible  <bruno@clisp.org>
8053
8054         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
8055         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
8056         (gl_ICONV_H): Not here.
8057         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8058         instead of assigning ICONV_H directly.
8059
8060         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
8061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
8062         WCHAR_H directly.
8063
8064 2008-09-27  Bruno Haible  <bruno@clisp.org>
8065
8066         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
8067         * modules/arpa_inet (Depends-on): Add link-warning.
8068         (Makefile.am): Insert the definition of GL_LINK-WARNING.
8069         * modules/unistd (Makefile.am): Likewise.
8070
8071 2008-09-26  Bruno Haible  <bruno@clisp.org>
8072
8073         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
8074         variables.
8075         (func_version): Essentially copied from gnulib-tool.
8076         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
8077         func_readlink): Copied from gnulib-tool.
8078
8079 2008-09-26  Bruno Haible  <bruno@clisp.org>
8080
8081         * gnulib-tool (func_version): Change directory to $gnulib_dir before
8082         invoking git-version-gen.
8083
8084 2008-09-26  Bruno Haible  <bruno@clisp.org>
8085
8086         * posix-modules: Update to directory names changed on 2008-01-19.
8087         Remove commas in output before splitting into words. No more need to
8088         avoid 'ftruncate' since 2007-02-19.
8089
8090 2008-09-26  Bruno Haible  <bruno@clisp.org>
8091
8092         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
8093
8094 2008-09-26  Bruno Haible  <bruno@clisp.org>
8095
8096         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
8097         * modules/fwriteerror (Depends-on): Add errno.
8098
8099 2008-09-26  Bruno Haible  <bruno@clisp.org>
8100
8101         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
8102         * tests/test-vc-list-files-cvs.sh: Likewise.
8103
8104 2008-09-26  Bruno Haible  <bruno@clisp.org>
8105
8106         * doc/posix-headers/sys_resource.texi: Reorder items.
8107
8108 2008-09-26  Jim Meyering  <meyering@redhat.com>
8109
8110         fts: tweak inode comparison function
8111         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
8112         inode numbers, as documented.
8113
8114         fts: sort dirent entries on inode number before traversing
8115         This avoids a quadratic, seek-related performance penalty when
8116         operating on a directory containing many entries (measurable at 10k;
8117         3.5 hours at 2 million entries with a cold cache) on certain types
8118         of file systems, including ext3 and ext4, but not tmpfs.
8119         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
8120         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
8121         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
8122         (fs_handles_readdir_ordered_dirents_efficiently): New function.
8123         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
8124         (fts_build): Set the stat.st_ino member from D_INO.
8125         If it is likely to be useful, sort dirent entries on inode number.
8126
8127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
8128         and the struct statfs.f_type member.
8129         * modules/fts (Depends-on): Add d-ino.
8130
8131 2008-09-26  Bruno Haible  <bruno@clisp.org>
8132
8133         * modules/sigpipe-die (Depends-on): Add sigpipe.
8134
8135         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
8136         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
8137         and GNULIB_STDIO_H_SIGPIPE are set.
8138         * lib/stdio-write.c: New file.
8139         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
8140         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
8141         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
8142         REPLACE_STDIO_WRITE_FUNCS.
8143         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
8144         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
8145         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
8146         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
8147         * modules/stdio (Files): Add lib/stdio-write.c.
8148         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
8149         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
8150         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
8151         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
8152         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
8153         REPLACE_FPRINTF_POSIX.
8154         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
8155         REPLACE_PRINTF_POSIX.
8156         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
8157         REPLACE_VFPRINTF_POSIX.
8158         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
8159         REPLACE_VPRINTF_POSIX.
8160         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
8161         SIGPIPE issue.
8162         * doc/posix-functions/fputc.texi: Likewise.
8163         * doc/posix-functions/fputs.texi: Likewise.
8164         * doc/posix-functions/fwrite.texi: Likewise.
8165         * doc/posix-functions/printf.texi: Likewise.
8166         * doc/posix-functions/putc.texi: Likewise.
8167         * doc/posix-functions/putchar.texi: Likewise.
8168         * doc/posix-functions/puts.texi: Likewise.
8169         * doc/posix-functions/vfprintf.texi: Likewise.
8170         * doc/posix-functions/vprintf.texi: Likewise.
8171
8172         * modules/safe-write (Depends-on): Add write.
8173
8174         * modules/sigpipe-tests: New file.
8175         * tests/test-sigpipe.c: New file.
8176         * tests/test-sigpipe.sh: New file.
8177
8178         * modules/write: New file.
8179         * lib/unistd.in.h: Include <sys/types.h>.
8180         (write): New declaration.
8181         * lib/write.c: New file.
8182         * m4/write.m4: New file.
8183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8184         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
8185         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
8186         GNULIB_WRITE, REPLACE_WRITE.
8187         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
8188         and the SIGPIPE issue.
8189
8190         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
8191         (raise): New declaration.
8192         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
8193         (ext_signal): New function.
8194         (rpl_raise): New function.
8195         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8196         GNULIB_SIGNAL_H_SIGPIPE.
8197         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
8198         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
8199
8200         * modules/sigpipe: New file.
8201         * m4/sigpipe.m4: New file.
8202
8203 2008-09-25  Derek Price  <derek@ximbiot.com>
8204             Bruno Haible  <bruno@clisp.org>
8205
8206         * gnulib-tool (func_import): Report all license incompatibilities, not
8207         just the first one.
8208
8209 2008-09-25  Bruno Haible  <bruno@clisp.org>
8210
8211         * gnulib-tool (func_import): When computing the edits, consider not
8212         only the Makefile.ams that exist but also those that will be generated.
8213
8214 2008-09-25  Simon Josefsson  <simon@josefsson.org>
8215
8216         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
8217         fixes gnulib-tool --test warning about duplicate dependency.
8218
8219 2008-09-25  Bruno Haible  <bruno@clisp.org>
8220
8221         * gnulib-tool: Don't ask the user to perform edits in the generated
8222         Makefile.ams.
8223         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
8224         apply to the Makefile.am being generated.
8225         (func_emit_tests_Makefile_am): Execute edits that apply to the
8226         Makefile.am being generated.
8227         (func_import): Setup list of Makefile.am edits before emitting the
8228         Makefile.ams, not at the end.
8229         (func_create_testdir): Update.
8230         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8231
8232 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8233
8234         * gnulib-tool (func_import): Store the --tests-base option in the
8235         comment in gnulib-cache.m4.
8236
8237 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
8238
8239         * NEWS: Document increased portability that sys_select now provides.
8240
8241         * lib/sys_select.in.h: Install select wrapper.
8242         * lib/sys_socket.in.h: Use more descriptive name when there is no
8243         select wrapper.
8244         * lib/winsock-select.c: New.
8245         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
8246         Require gl_HEADER_SYS_SOCKET.
8247         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
8248         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
8249         * tests/test-sys_select.c: Add functional tests.
8250
8251 2008-09-24  Eric Blake  <ebb9@byu.net>
8252
8253         open, fopen: close fd leak in last patch
8254         * lib/open.c (rpl_open): Close fd before returning error.
8255         * lib/fopen.c (rpl_fopen): Close fd before returning error.
8256         * doc/posix-functions/open.texi (open): Document that Irix also
8257         has the bug.
8258         * doc/posix-functions/fopen.texi (fopen): Likewise.
8259         Reported by Paolo Bonzini.
8260
8261 2008-09-24  Bruno Haible  <bruno@clisp.org>
8262
8263         Ensure that a filename ending in a slash cannot be used to access a
8264         non-directory.
8265         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
8266         to check whether it's really a directory.
8267         * lib/fopen.c: Include fcntl.h, unistd.h.
8268         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
8269         and fdopen().
8270         * modules/fopen (Depends-on): Add unistd.
8271         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
8272         * tests/test-fopen.c (main): Likewise.
8273         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
8274         * doc/posix-functions/fopen.texi: Likewise.
8275         Reported by Eric Blake.
8276
8277 2008-09-23  Eric Blake  <ebb9@byu.net>
8278
8279         c-stack: avoid compiler optimizations when provoking overflow
8280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
8281         recursion harder to optimize, to ensure a stack overflow occurs.
8282         * tests/test-c-stack.c (recurse): Likewise.
8283         Borrowed from libsigsegv.
8284
8285         c-stack: work around Irix sigaltstack bug
8286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
8287         whether sigaltstack uses wrong end of stack_t (copied in part from
8288         libsigsegv).
8289         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
8290         Irix bug, without requiring an over-allocation.
8291         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
8292         bug.
8293
8294         fopen: document mingw bug on directories
8295         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
8296         not allowing a stream visiting a directory, even though reading
8297         from such a stream is not portable.
8298
8299 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8300
8301         * lib/poll.c: Rewrite.
8302         * modules/poll: Depend on alloca.
8303
8304 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8305
8306         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
8307         instead define prototypes for a full set of wrappers.  Ensure
8308         that Cygwin does not use the compatibility code, which is only
8309         for MinGW.
8310         * lib/winsock.c: New.
8311         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
8312         * modules/sys_socket: Add lib/winsock.c.
8313
8314         * modules/poll-tests: Add errno and perror.
8315         * tests/test-poll.c: Use ioctl, not ioctlsocket.
8316
8317 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
8318
8319         * tests/test-poll.c: Downgrade minimum needed Winsock version.
8320
8321 2008-09-23  Bruno Haible  <bruno@clisp.org>
8322
8323         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
8324         * doc/glibc-functions/*: Likewise.
8325
8326 2008-09-23  Simon Josefsson  <simon@josefsson.org>
8327
8328         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
8329         success.
8330
8331 2008-09-22  Eric Blake  <ebb9@byu.net>
8332             Bruno Haible  <bruno@clisp.org>
8333
8334         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
8335         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
8336         supply %A but mishandle pseudo-NaN.
8337         Reported by Simon Josefsson.
8338
8339 2008-09-21  Bruno Haible  <bruno@clisp.org>
8340
8341         * tests/test-lock.c (main): Tweak skip message.
8342         * tests/test-tls.c (main): Likewise.
8343
8344 2008-09-21  Bruno Haible  <bruno@clisp.org>
8345
8346         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
8347         whether 'struct sigaction' has sa_sigaction here...
8348         (gl_PREREQ_SIG_HANDLER_H): ... not here.
8349         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
8350
8351 2008-09-21  Bruno Haible  <bruno@clisp.org>
8352
8353         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
8354         section.
8355         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
8356         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
8357         the new section.
8358         (Support for obsolete systems lacking POSIX:2001): New section.
8359         (String handling <string.h>): Move strdup to the new section.
8360         Suggested by Simon Josefsson and Paolo Bonzini.
8361
8362 2008-09-21  Bruno Haible  <bruno@clisp.org>
8363
8364         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
8365         exponents in %e and %g results on 'long double'. Needed for mingw's
8366         improved *printf functions.
8367         * tests/test-vasprintf-posix.c (test_function): Likewise.
8368         * tests/test-snprintf-posix.h (test_function): Likewise.
8369         * tests/test-sprintf-posix.h (test_function): Likewise.
8370         Reported by Eric Blake.
8371
8372 2008-09-21  Bruno Haible  <bruno@clisp.org>
8373
8374         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
8375         * tests/test-sprintf-posix.h (test_function): Likewise.
8376
8377 2008-09-21  Bruno Haible  <bruno@clisp.org>
8378
8379         * modules/getpass (Depends-on): Add strdup-posix.
8380
8381         New module 'strdup-posix'.
8382         * modules/strdup-posix: New file.
8383         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
8384         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
8385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8386         REPLACE_STRDUP.
8387         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
8388         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
8389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8390         strdup-posix.
8391
8392         * modules/strdup (Depends-on): Remove malloc-posix.
8393
8394 2008-09-20  Bruno Haible  <bruno@clisp.org>
8395
8396         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
8397         Wildenhues.
8398
8399 2008-09-20  Bruno Haible  <bruno@clisp.org>
8400
8401         Ensure that wint_t gets defined on IRIX 5.3.
8402         * lib/wchar.in.h (wint_t): Define if not defined by the system.
8403         * lib/wctype.in.h (wint_t): Likewise.
8404         (__wctype_wint_t): Remove type.
8405         (isw*): Use wint_t instead of __wctype_wint_t.
8406         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
8407         * modules/wchar (Files): Add m4/wint_t.m4.
8408         (Makefile.am): Substitute HAVE_WINT_T.
8409         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
8410         * tests/test-wctype.c: Check that wint_t is defined.
8411         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
8412         * doc/posix-headers/wctype.texi: Likewise.
8413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8414
8415 2008-09-18  Bruno Haible  <bruno@clisp.org>
8416
8417         * gnulib-tool (func_exit): Update comment.
8418
8419 2008-09-18  Simon Josefsson  <simon@josefsson.org>
8420
8421         * modules/getaddrinfo (Depends-on): Remove strdup, this module
8422         assumes strdup exists and does not depend on strdup to return
8423         ENOMEM on out of memory conditions.
8424
8425 2008-09-18  Bruno Haible  <bruno@clisp.org>
8426
8427         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
8428         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
8429         digits for the exponent.
8430
8431 2008-09-18  Jim Meyering  <meyering@redhat.com>
8432             Bruno Haible  <bruno@clisp.org>
8433
8434         * lib/vasnprintf.c (decimal_point_char): Define also if
8435         NEED_PRINTF_INFINITE_LONG_DOUBLE.
8436
8437 2008-09-16  Bruno Haible  <bruno@clisp.org>
8438         and Eric Blake  <ebb9@byu.net>
8439
8440         vasnprintf: support Irix 5.3
8441         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
8442         that mishandle long double infinity.
8443         Reported by Tom G. Christensen.
8444
8445 2008-09-16  Bruno Haible  <bruno@clisp.org>
8446
8447         * doc/glibc-functions/scandir.texi: Mention the function is missing on
8448         Solaris 9.
8449         * doc/glibc-functions/alphasort.texi: Likewise.
8450         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
8451
8452 2008-09-16  Jim Meyering  <meyering@redhat.com>
8453
8454         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
8455         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
8456         a umask modification leak out of a subshell.  Otherwise, the
8457         opensolaris /bin/sh would be accepted and thus cause unwarranted
8458         failures in the coreutils test suite.
8459
8460 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
8461
8462         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
8463         to succeed.
8464
8465 2008-09-16  Jim Meyering  <meyering@redhat.com>
8466
8467         avoid spurious test failure when library is built without ACL support
8468         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
8469         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
8470         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
8471         * tests/test-copy-acl.sh: Likewise.
8472
8473 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8474
8475         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
8476         based on character occurrence counts.
8477
8478 2008-09-15  Eric Blake  <ebb9@byu.net>
8479
8480         tests: avoid some compiler warnings
8481         * tests/test-memchr.c (main): Pass NULL indirectly.
8482         * tests/test-closein.c (main): Avoid unused variable.
8483
8484 2008-09-15  Bruno Haible  <bruno@clisp.org>
8485
8486         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
8487         are missing on OpenBSD 4.0 individually.
8488         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8489
8490 2008-09-15  Bruno Haible  <bruno@clisp.org>
8491
8492         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
8493         * doc/posix-functions/strerror.texi: Mention also Cygwin.
8494         * doc/posix-functions/perror.texi: Likewise.
8495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
8496         is missing.
8497         Reported by Eric Blake.
8498
8499         * lib/errno.in.h: Use replacement values >= 2000.
8500         Reported by Eric Blake.
8501
8502 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8503
8504         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
8505         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
8506         limit.
8507         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
8508         compareseq was aborted.
8509
8510 2008-09-14  Bruno Haible  <bruno@clisp.org>
8511
8512         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
8513         yvec_edit_count.
8514         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
8515         (fstrcmp_bounded): Simplify result computation accordingly.
8516
8517 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8518
8519         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
8520         (fstrcmp): Define in terms of fstrcmp_bounded.
8521         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
8522         lower_bound argument.
8523         Return quickly if the result is certainly < lower_bound.
8524         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
8525
8526 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8527
8528         * lib/diffseq.h (EARLY_ABORT): New macro.
8529         (compareseq): Change return type to bool. Return true when EARLY_ABORT
8530         evaluates to true.
8531
8532 2008-09-14  Bruno Haible  <bruno@clisp.org>
8533
8534         * modules/perror-tests: New file.
8535         * tests/test-perror.sh: New file.
8536         * tests/test-perror.c: New file.
8537
8538         New module 'perror'.
8539         * lib/stdio.in.h (perror): New declaration.
8540         * lib/perror.c: New file.
8541         * m4/perror.m4: New file.
8542         * modules/perror: New file.
8543         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
8544         * doc/posix-functions/perror.texi: Mention the perror module.
8545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
8546         REPLACE_PERROR.
8547         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
8548         REPLACE_PERROR.
8549
8550 2008-09-14  Bruno Haible  <bruno@clisp.org>
8551
8552         * modules/stdio (Makefile.am): Reorder to match the order in
8553         lib/stdio.in.h.
8554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8555
8556 2008-09-13  Bruno Haible  <bruno@clisp.org>
8557
8558         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
8559
8560 2008-09-13  Bruno Haible  <bruno@clisp.org>
8561
8562         Extend strerror to cover the added errno values.
8563         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
8564         (rpl_strerror): Provide error messages for the added errno values and
8565         for the WSA* values.
8566         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
8567         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
8568         strerror.
8569         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
8570         * modules/strerror (Depends-on): Add errno.
8571         * doc/posix-functions/strerror.texi: Document the change.
8572         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
8573         and EOVERFLOW.
8574
8575 2008-09-13  Bruno Haible  <bruno@clisp.org>
8576
8577         * modules/EOVERFLOW: Remove file.
8578         * m4/eoverflow.m4: Remove file.
8579         * modules/EOVERFLOW-tests: Remove file.
8580         * tests/test-EOVERFLOW.c: Remove file.
8581         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
8582         * modules/ftell (Depends-on): Likewise.
8583         * modules/getdelim (Depends-on): Likewise.
8584         * modules/getugroups (Depends-on): Likewise.
8585         * modules/poll (Depends-on): Likewise.
8586         * modules/snprintf (Depends-on): Likewise.
8587         * modules/sprintf-posix (Depends-on): Likewise.
8588         * modules/vasnprintf (Depends-on): Likewise.
8589         * modules/vasprintf (Depends-on): Likewise.
8590         * modules/vfprintf-posix (Depends-on): Likewise.
8591         * modules/vsnprintf (Depends-on): Likewise.
8592         * modules/vsprintf-posix (Depends-on): Likewise.
8593         * modules/xvasprintf (Depends-on): Likewise.
8594         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8595         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
8596         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
8597         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
8598         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8599         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
8600         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
8601         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
8602         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8603         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
8604         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
8605         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
8606         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8607         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
8608         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
8609         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
8610         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8611         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
8612         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
8613         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
8614         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8615         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
8616         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
8617         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
8618         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
8619         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8620         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
8621         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
8622         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
8623         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
8624         * MODULES.html.sh: Remove EOVERFLOW.
8625         * NEWS: Mention the change.
8626
8627 2008-09-13  Bruno Haible  <bruno@clisp.org>
8628
8629         * modules/errno-tests: New file.
8630         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
8631
8632         * lib/errno.in.h: New file.
8633         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
8634         * modules/errno: New file.
8635         * doc/posix-headers/errno.texi: Update documentation.
8636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
8637
8638 2008-09-13  Bruno Haible  <bruno@clisp.org>
8639
8640         * tests/test-poll.c: Use #if for native Windows, rather than testing
8641         __MSVCRT__.
8642
8643 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8644             Bruno Haible  <bruno@clisp.org>
8645
8646         * lib/glob.c: Don't include <pwd.h> on native Windows.
8647         (WINDOWS32): New macro.
8648         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
8649
8650 2008-09-13  Bruno Haible  <bruno@clisp.org>
8651
8652         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
8653         (ETIMEDOUT): Remove macro.
8654         (glthread_cond_timedwait_multithreaded): New declaration.
8655         (glthread_cond_timedwait): Use it.
8656         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
8657         (glthread_cond_timedwait_multithreaded): New function.
8658
8659 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8660
8661         * modules/poll-tests: Do not check for io.h.
8662         * tests/test-poll.c: Check for __MSVCRT__ instead.
8663
8664 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8665
8666         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
8667         * modules/poll-tests: Add inet_pton, stdbool, sockets.
8668         * tests/test-poll.c: Use them.  Use _pipe on Windows.
8669
8670 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8671
8672         * modules/poll-tests: New.
8673         * tests/test-poll.c: New.
8674
8675 2008-09-12  Eric Blake  <ebb9@byu.net>
8676
8677         frexp: test for NetBSD failure on -0.0
8678         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
8679         not all, bugs from NetBSD 3.0 have been fixed.
8680         * doc/posix-functions/frexp.texi (frexp): Document bug.
8681         Reported by Thomas Klausner.
8682
8683         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
8684         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
8685         literal -0.0.
8686         Reported by Jonathan C. Patschke <jp@centtech.com>.
8687
8688 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8689
8690         * lib/glthread/cond.h: Use dummy implementation also if
8691         USE_WIN32_THREADS.
8692
8693 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8694
8695         * modules/fnmatch-posix (License): Change to LGPLv2+.
8696         * modules/fnmatch-gnu (License): Likewise.
8697
8698 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8699
8700         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
8701
8702 2008-09-11  Jim Meyering  <meyering@redhat.com>
8703
8704         * users.txt: Add gtk-vnc.
8705
8706 2008-09-08  Simon Josefsson  <simon@josefsson.org>
8707
8708         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
8709         rotate amounts.
8710
8711         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
8712         required for 16-bit and 8-bit rotates.
8713         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
8714         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
8715         UINT8_MAX instead of hard-coded constants.
8716         Suggested by Paul Eggert.
8717
8718 2008-09-07  Bruno Haible  <bruno@clisp.org>
8719
8720         * tests/test-striconveh.c (main): Check behaviour when converting from
8721         UTF-7.
8722
8723         Make striconveh work better with stateful encodings.
8724         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
8725         that iconv does not increment the inptr when returning -1/EINVAL.
8726
8727 2008-09-07  Bruno Haible  <bruno@clisp.org>
8728
8729         * build-aux/config.rpath: Update according to libtool-2.2.6.
8730         * build-aux/config.libpath: Likewise.
8731
8732 2008-09-06  Bruno Haible  <bruno@clisp.org>
8733
8734         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
8735         * lib/freadptr.c (freadptr): Likewise.
8736         * lib/freadseek.c (freadptrinc): Likewise.
8737         Reported by Simon Josefsson.
8738
8739 2008-09-06  Bruno Haible  <bruno@clisp.org>
8740
8741         * modules/freadptr (License): Change to LGPLv2+.
8742         * modules/freadseek (License): Likewise.
8743         Suggested by Eric Blake.
8744
8745         * modules/memchr2 (License): Change to LGPLv2+.
8746         Approved by Eric Blake.
8747
8748 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8749             Bruno Haible  <bruno@clisp.org>
8750
8751         Make gnulib-tool work with native 'sed' on AIX.
8752         * gnulib-tool (sed_noop): New variable.
8753         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
8754         func_add_or_update, func_create_testdir): Use it to initialize sed
8755         script variables.
8756         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8757
8758 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
8759             Bruno Haible  <bruno@clisp.org>
8760
8761         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
8762         also works after #include directives.
8763
8764 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
8765
8766         getdate.y: reject an out-of-range timezone value
8767         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
8768         the range [-24...+24].  When specified with only one or two digits,
8769         * tests/test-getdate.c: Tests for the fix.
8770         * doc/getdate.texi: Document this change.
8771
8772 2008-09-03  Bruno Haible  <bruno@clisp.org>
8773
8774         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
8775
8776 2008-09-02  Simon Josefsson  <simon@josefsson.org>
8777
8778         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
8779         <bruce.korb@gmail.com> with ideas from Ben Pfaff
8780         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
8781         Blake <ebb9@byu.net>.
8782
8783         * tests/test-bitrotate.c: Add more test vectors.
8784
8785 2008-09-02  Eric Blake  <ebb9@byu.net>
8786
8787         vasnprintf-posix: handle large precision via %.*d
8788         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
8789         when handling it ourselves.
8790         * tests/test-vasnprintf-posix.c (test_function): Add test.
8791         * tests/test-snprintf-posix.h (test_function): Likewise.
8792         * tests/test-sprintf-posix.h (test_function): Likewise.
8793         * tests/test-vasprintf-posix.c (test_function): Likewise.
8794         Reported by Alain Guibert.
8795
8796 2008-09-01  Eric Blake  <ebb9@byu.net>
8797
8798         c-stack: make configure-time check more robust
8799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
8800         successful sigaction call.
8801         Reported by Tom G. Christensen.
8802
8803 2008-09-01  Bruno Haible  <bruno@clisp.org>
8804
8805         New module 'findprog-lgpl'.
8806         * modules/findprog-lgpl: New file.
8807         * lib/findprog-lgpl.c: New file.
8808         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
8809         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
8810         to decide whether to use strdup or xstrdup, concatenated_filename or
8811         xconcatenated_filename.
8812
8813 2008-09-01  Bruno Haible  <bruno@clisp.org>
8814
8815         Split module 'concat-filename' into 'concat-filename' (LGPL) and
8816         'xconcat-filename' (GPL).
8817         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
8818         (License): Change to LGPLv2+.
8819         * modules/xconcat-filename: New file.
8820         * lib/concat-filename.h (concatenated_filename): Change specification.
8821         (xconcatenated_filename): New declaration.
8822         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
8823         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
8824         memory situations.
8825         * lib/xconcat-filename.c: New file.
8826         * NEWS: Mention the change.
8827         * lib/findprog.c: Include concat-filename.h, not filename.h.
8828         (find_in_path): Use xconcatenated_filename instead of
8829         concatenated_filename.
8830         * lib/javacomp.c: Include concat-filename.h, not filename.h.
8831         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8832         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8833         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8834         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
8835         instead of concatenated_filename.
8836         * lib/javaexec.c: Include concat-filename.h, not filename.h.
8837         (execute_java_class): Use xconcatenated_filename instead of
8838         concatenated_filename.
8839         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
8840         * modules/javacomp (Depends-on): Likewise.
8841         * modules/javaexec (Depends-on): Likewise.
8842
8843 2008-09-01  Bruno Haible  <bruno@clisp.org>
8844
8845         Split module 'filename' into 'filename' and 'concat-filename'.
8846         * modules/filename: Keep only lib/filename.h.
8847         (License): Change to LGPLv2+.
8848         * modules/concat-filename: New file, extracted from modules/filename.
8849         * lib/filename.h (concatenated_filename): Remove declaration.
8850         * lib/concat-filename.h: New file, extracted from lib/filename.h.
8851         * lib/concat-filename.c: Include concat-filename.h.
8852         * NEWS: Mention the change.
8853
8854 2008-09-01  Simon Josefsson  <simon@josefsson.org>
8855
8856         * lib/bitrotate.h (rotl8, rotr8): Add.
8857
8858         * modules/bitrotate (configure.ac): Need
8859         AC_REQUIRE([AC_C_INLINE]).
8860         (Description): Mention stdint.h.  Reported by Bruno Haible
8861         <bruno@clisp.org>.
8862
8863         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
8864         Paolo Bonzini <bonzini@gnu.org>.
8865
8866 2008-08-31  Bruno Haible  <bruno@clisp.org>
8867
8868         Assume Solaris specific bi-arch conventions on Solaris systems.
8869         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
8870         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
8871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
8872         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
8873         like acl_libdirstem.
8874         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
8875         acl_libdirstem.
8876         * NEWS: Mention the change.
8877         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
8878
8879 2008-08-31  Jim Meyering  <meyering@redhat.com>
8880
8881         * lib/strftime.h: Add comments describing the two added arguments.
8882
8883         remove duplicate #include directives
8884         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
8885         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
8886
8887 2008-08-31  Bruno Haible  <bruno@clisp.org>
8888
8889         New module 'sigpipe-die'.
8890         * modules/sigpipe-die: New file.
8891         * lib/sigpipe-die.h: New file.
8892         * lib/sigpipe-die.c: New file.
8893         * MODULES.html.sh (Signal handling): Add sigpipe-die.
8894
8895 2008-08-31  Bruno Haible  <bruno@clisp.org>
8896
8897         Don't override previously installed signal handlers.
8898         * lib/fatal-signal.c (saved_sigactions): New variable.
8899         (uninstall_handlers): Reset the signal to the saved handler, not
8900         to SIG_DFL (except when ignored).
8901         (install_handlers): Save the previous handlers.
8902
8903 2008-08-30  Bruno Haible  <bruno@clisp.org>
8904
8905         * gnulib-tool (func_reset_sigpipe): New function.
8906         (func_get_automake_snippet, func_modules_transitive_closure,
8907         func_import): Invoke it before a join command that reads from stdin,
8908         to avoid "echo: write error: Broken pipe" error messages on stderr.
8909         Reported by Sam Steingold <sds@gnu.org>.
8910
8911 2008-08-30  Bruno Haible  <bruno@clisp.org>
8912
8913         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
8914         Code copied from m4/open.m4.
8915         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
8916         access and the filename ends in a slash. Code copied from lib/open.c.
8917         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8918         * tests/test-fopen.c (main): Check against bug with trailing slash.
8919
8920 2008-08-29  Bruno Haible  <bruno@clisp.org>
8921
8922         Avoid some "gcc -pedantic" warnings.
8923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8924         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8925         * lib/dirent.in.h: Likewise.
8926         * lib/fcntl.in.h: Likewise.
8927         * lib/float.in.h: Likewise.
8928         * lib/iconv.in.h: Likewise.
8929         * lib/inttypes.in.h: Likewise.
8930         * lib/locale.in.h: Likewise.
8931         * lib/math.in.h: Likewise.
8932         * lib/netinet_in.in.h: Likewise.
8933         * lib/search.in.h: Likewise.
8934         * lib/signal.in.h: Likewise.
8935         * lib/stdarg.in.h: Likewise.
8936         * lib/stdint.in.h: Likewise.
8937         * lib/stdio.in.h: Likewise.
8938         * lib/stdlib.in.h: Likewise.
8939         * lib/string.in.h: Likewise.
8940         * lib/strings.in.h: Likewise.
8941         * lib/sys_select.in.h: Likewise.
8942         * lib/sys_socket.in.h: Likewise.
8943         * lib/sys_stat.in.h: Likewise.
8944         * lib/sys_time.in.h: Likewise.
8945         * lib/sysexits.in.h: Likewise.
8946         * lib/time.in.h: Likewise.
8947         * lib/unistd.in.h: Likewise.
8948         * lib/wchar.in.h: Likewise.
8949         * lib/wctype.in.h: Likewise.
8950         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8951         * modules/fchdir (Makefile.am): Likewise.
8952         * modules/fcntl (Makefile.am): Likewise.
8953         * modules/float (Makefile.am): Likewise.
8954         * modules/iconv_open (Makefile.am): Likewise.
8955         * modules/inttypes (Makefile.am): Likewise.
8956         * modules/locale (Makefile.am): Likewise.
8957         * modules/math (Makefile.am): Likewise.
8958         * modules/netinet_in (Makefile.am): Likewise.
8959         * modules/search (Makefile.am): Likewise.
8960         * modules/signal (Makefile.am): Likewise.
8961         * modules/stdarg (Makefile.am): Likewise.
8962         * modules/stdint (Makefile.am): Likewise.
8963         * modules/stdio (Makefile.am): Likewise.
8964         * modules/stdlib (Makefile.am): Likewise.
8965         * modules/string (Makefile.am): Likewise.
8966         * modules/strings (Makefile.am): Likewise.
8967         * modules/sys_select (Makefile.am): Likewise.
8968         * modules/sys_socket (Makefile.am): Likewise.
8969         * modules/sys_stat (Makefile.am): Likewise.
8970         * modules/sys_time (Makefile.am): Likewise.
8971         * modules/sysexits (Makefile.am): Likewise.
8972         * modules/time (Makefile.am): Likewise.
8973         * modules/unistd (Makefile.am): Likewise.
8974         * modules/wchar (Makefile.am): Likewise.
8975         * modules/wctype (Makefile.am): Likewise.
8976         Reported by Reuben Thomas <rrt@sc3d.org>.
8977
8978 2008-08-29  Bruno Haible  <bruno@clisp.org>
8979
8980         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8981         any more.
8982
8983 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8984
8985         * MODULES.html.sh (Misc): Add bitrotate.
8986
8987         * modules/bitrotate: New file.
8988
8989         * lib/bitrotate.h: New file.
8990
8991         * modules/bitrotate-tests: New file.
8992
8993         * tests/test-bitrotate.c: New file.
8994
8995         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8996         on the bitrotate module.
8997
8998         * lib/arctwo.c: Use new bitrotate module.
8999
9000 2008-08-29  Jim Meyering  <meyering@redhat.com>
9001
9002         bootstrap: merge changes from coreutils
9003         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
9004         of copied files.  Remove a kludge, now that this is fixed.
9005         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
9006         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
9007         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
9008
9009 2008-08-29  Bruno Haible  <bruno@clisp.org>
9010
9011         * MODULES.html.sh: Remove --cvs-urls option.
9012
9013 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
9014
9015         maint.mk: adjust to file name change
9016         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
9017
9018 2008-08-28  Jim Meyering  <meyering@redhat.com>
9019
9020         * modules/getndelim2 (License): Relicense to LGPLv2+.
9021         Approved by Richard Stallman for the version of 1995, and by
9022         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
9023
9024 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
9025
9026         * lib/getdelim.c (flockfile, funlockfile): Make all of them
9027         dummy if one is not available.  Do not touch them if
9028         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
9029         (getc_maybe_unlocked): New.
9030         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
9031
9032 2008-08-26  Eric Blake  <ebb9@byu.net>
9033
9034         doc/INSTALL: resync from autoconf
9035         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
9036         (INSTALL_PRELUDE): Delete; this is done more efficiently by
9037         moving...
9038         * install.texi [!autoconf]: ...here.  Resync from autoconf.
9039         * INSTALL: Regenerate.
9040         * INSTALL.ISO: New file.
9041         * INSTALL.UTF-8: Likewise.
9042
9043 2008-08-26  Jim Meyering  <meyering@redhat.com>
9044
9045         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
9046         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
9047         these definitions conditional, so that they may be overridden, too.
9048
9049 2008-08-26  Bruno Haible  <bruno@clisp.org>
9050
9051         Generate INSTALL file variants with prettier quotes.
9052         * doc/Makefile (INSTALL_PRELUDE): New macro.
9053         (INSTALL): Use it.
9054         (INSTALL.ISO, INSTALL.UTF-8): New rules.
9055
9056 2008-08-26  Bruno Haible  <bruno@clisp.org>
9057
9058         Run makeinfo in an English locale.
9059         * doc/Makefile (MAKEINFO): New variable.
9060
9061 2008-08-26  Bruno Haible  <bruno@clisp.org>
9062
9063         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
9064         Suggested by Eric Blake.
9065
9066 2008-08-25  Bruno Haible  <bruno@clisp.org>
9067
9068         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
9069
9070 2008-08-25  Eric Blake  <ebb9@byu.net>
9071
9072         c-stack: test that stack overflow can be caught
9073         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
9074         that platform allows handling stack overflow; at least OS/2 EMX
9075         has sigaltstack, but crashes before transferring control to
9076         handler on stack overflow.
9077         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
9078         check for HAVE_STACK_OVERFLOW_HANDLING.
9079         Reported by Elbert Pol.
9080
9081 2008-08-25  Bruno Haible  <bruno@clisp.org>
9082
9083         * doc/posix-functions/strftime.texi: Fix description of strftime
9084         module.
9085
9086 2008-08-24  Bruno Haible  <bruno@clisp.org>
9087
9088         * tests/uniwidth/test-uc_width2.c: New file.
9089         * tests/uniwidth/test-uc_width2.sh: New file.
9090         * modules/uniwidth/width-tests (Files): Add the new files.
9091         (TESTS): Add uniwidth/test-uc_width2.sh.
9092         (TESTS_ENVIRONMENT): New variable.
9093         (check_PROGRAMS): Add test-uc_width2.
9094         (test_uc_width2_SOURCES): New variable.
9095
9096         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
9097         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
9098         not 0x00AB.
9099         Reported by Alexander V. Lukyanov <lav@netis.ru>.
9100
9101 2008-08-22  Eric Blake  <ebb9@byu.net>
9102
9103         test-lock, test-tls: mention why a test is skipped
9104         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
9105         skipped.
9106         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
9107
9108         count-one-bits: relax license
9109         * modules/count-one-bits (License): Relicense to LGPLv2+.
9110         Suggested by Ludovic Courtès, approved by Ben Pfaff.
9111
9112 2008-08-22  Andreas Schwab  <schwab@suse.de>
9113
9114         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9115         Remove spurious space in assignment.
9116
9117 2008-08-21  Simon Josefsson  <simon@josefsson.org>
9118
9119         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
9120         Paul Eggert <eggert@CS.UCLA.EDU>.
9121
9122 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
9123
9124         * modules/gettext: Add m4/threadlib.m4.
9125
9126 2008-08-19  Eric Blake  <ebb9@byu.net>
9127
9128         test-c-stack: fix compilation failure on FreeBSD 5.0
9129         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
9130         headers before <sys/resource.h>.
9131         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
9132         the bug.
9133         Reported by Nelson H. F. Beebe.
9134
9135         strverscmp: migrate from "strverscmp.h" to <string.h>
9136         * modules/string (Makefile.am): Add new hooks.
9137         * modules/strverscmp (Files): Remove strverscmp.h.
9138         (Depends-on): Add string.
9139         (configure.ac): Add indicator.
9140         (Include): Mention new header.
9141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
9142         defaults.
9143         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
9144         results.
9145         * lib/strverscmp.h: Delete.
9146         * lib/string.in.h (strverscmp): Provide declaration, when needed.
9147         * tests/test-strverscmp.c (includes): Adjust client.
9148         * lib/check-version.c (includes): Likewise.
9149         * NEWS: Document the change.
9150
9151         strverscmp: add unit test
9152         * modules/strverscmp-tests: New file.
9153         * tests/test-strverscmp.c: Likewise.
9154
9155 2008-08-19  Simon Josefsson  <simon@josefsson.org>
9156
9157         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
9158         regarding Windows crypto stuff, from Mono.
9159
9160 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
9161
9162         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
9163         if present, for intel RND.  Return error on failures.
9164
9165 2008-08-18  Ben Pfaff  <blp@gnu.org>
9166
9167         gitlog-to-changelog: give better diagnostic for failed pipe-open
9168         * build-aux/gitlog-to-changelog: Improve error message: suggest
9169         that the version of Git may be too old.
9170
9171 2008-08-18  Simon Josefsson  <simon@josefsson.org>
9172
9173         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
9174         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
9175
9176 2008-08-18  Bruno Haible  <bruno@clisp.org>
9177
9178         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
9179         pthread_in_use().
9180
9181 2008-08-18  Bruno Haible  <bruno@clisp.org>
9182
9183         * lib/glthread/threadlib.c: Include <pthread.h>.
9184
9185 2008-08-18  Bruno Haible  <bruno@clisp.org>
9186
9187         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
9188         glthread_recursive_lock_* macros.
9189         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
9190         Fix syntax error.
9191
9192 2008-08-18  Bruno Haible  <bruno@clisp.org>
9193
9194         * lib/glthread/thread.c: Avoid forcing a context switch right after
9195         thread creation.
9196
9197 2008-08-17  Bruno Haible  <bruno@clisp.org>
9198
9199         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
9200         * lib/glthread/thread.h: Provide Win32 specific implementation.
9201         * modules/thread (Files): Add lib/glthread/thread.c.
9202         (Depends-on): Add lock.
9203         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
9204
9205 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9206
9207         New module 'yield'.
9208         * modules/yield: New file.
9209         * lib/glthread/yield.h: New file.
9210         * m4/yield.m4: New file.
9211         * MODULES.html.sh (Multithreading): Add yield.
9212
9213 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9214
9215         New module 'thread'.
9216         * modules/thread: New file.
9217         * lib/glthread/thread.h: New file.
9218         * m4/thread.m4: New file.
9219         * MODULES.html.sh (Multithreading): Add thread.
9220
9221 2008-08-17  Bruno Haible  <bruno@clisp.org>
9222
9223         * lib/glthread/lock.h: Include <stdlib.h> always.
9224         * lib/glthread/tls.h: Likewise.
9225         * lib/glthread/cond.h: Likewise.
9226
9227 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9228
9229         New module 'cond'.
9230         * modules/cond: New file.
9231         * lib/glthread/cond.h: New file.
9232         * lib/glthread/cond.c: New file.
9233         * m4/cond.m4: New file.
9234         * MODULES.html.sh (Multithreading): Add cond.
9235
9236 2008-08-16  Eric Blake  <ebb9@byu.net>
9237
9238         c-stack: fix regression on Irix 5.3 from 2008-06-21
9239         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
9240         sa_sigaction...
9241         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
9242         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
9243         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
9244         * modules/signal (Makefile.am): Use the value.
9245         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
9246         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
9247         * doc/posix-headers/signal.texi (signal.h): Document this
9248         portability issue.
9249         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
9250         Reported by Tom G. Christensen.
9251
9252 2008-08-17  Bruno Haible  <bruno@clisp.org>
9253
9254         New module 'threadlib'.
9255         * modules/threadlib: New file.
9256         * lib/glthread/threadlib.c: New file, extracted from
9257         lib/glthread/lock.c.
9258         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
9259         functions.
9260         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
9261         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
9262         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
9263         macros.
9264         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
9265         (gl_DISABLE_THREADS): Remove macro.
9266         * modules/lock (Files): Remove build-aux/config.rpath.
9267         (Depends-on): Remove havelib. Add threadlib.
9268         (configure.ac-early): Remove section.
9269         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
9270         * modules/tls (Depends-on): Remove lock. Add threadlib.
9271         (Link): New section, copied from threadlib.
9272         * MODULES.html.sh (Multithreading): Add threadlib.
9273
9274 2008-08-14  Bruno Haible  <bruno@clisp.org>
9275
9276         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
9277         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
9278         glthread_rwlock_unlock, glthread_rwlock_destroy,
9279         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
9280         glthread_recursive_lock_destroy): Define as macros always.
9281         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
9282         glthread_lock_lock.
9283         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
9284         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
9285         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
9286         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
9287         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
9288         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
9289         (glthread_recursive_lock_lock_func): Renamed from
9290         glthread_recursive_lock_lock.
9291         (glthread_recursive_lock_unlock_func): Renamed from
9292         glthread_recursive_lock_unlock.
9293         (glthread_recursive_lock_destroy_func): Renamed from
9294         glthread_recursive_lock_destroy.
9295
9296 2008-08-14  Bruno Haible  <bruno@clisp.org>
9297
9298         * lib/glthread/lock.h: Renamed from lib/lock.h.
9299         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
9300         * lib/glthread/tls.h: Renamed from lib/tls.h.
9301         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
9302         * lib/fstrcmp.c: Update includes.
9303         * lib/strsignal.c: Update includes.
9304         * modules/lock (Files, Makefile.am): Update.
9305         (Include): Change to "glthread/lock.h".
9306         * modules/tls (Files, Makefile.am): Update.
9307         (Include): Change to "glthread/tls.h".
9308         * tests/test-lock.c: Update includes.
9309         * tests/test-tls.c: Update includes.
9310         * NEWS: Mention the renamed header files.
9311
9312 2008-08-11  Jim Meyering  <meyering@redhat.com>
9313
9314         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
9315
9316 2008-08-11  Eric Blake  <ebb9@byu.net>
9317
9318         test-c-stack: avoid C99-ism
9319         * tests/test-c-stack.c (main): Fix whitespace, move declaration
9320         before statement.
9321         Reported by Alain Guibert.
9322
9323 2008-08-10  Jim Meyering  <meyering@redhat.com>
9324
9325         ensure that return value of uinttostr et al are not ignored
9326         * lib/inttostr.h (__GNUC_PREREQ): Define.
9327         (__attribute_warn_unused_result__): Define.
9328         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
9329
9330 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
9331
9332         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
9333         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
9334
9335 2008-08-07  Jim Meyering  <meyering@redhat.com>
9336
9337         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
9338
9339         * modules/mkstemp (License): Relicense under LGPLv2+.
9340         * modules/tempname (License): Likewise.
9341
9342 2008-08-06  Bruno Haible  <bruno@clisp.org>
9343
9344         * lib/poll.c (poll): Further micro-optimization.
9345
9346 2008-08-06  Jim Meyering  <meyering@redhat.com>
9347
9348         inet_pton.c: use locale-independent tolower
9349         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
9350         (inet_pton6): Use c_tolower rather than tolower.
9351         * modules/inet_pton (Depends-on): Add c-ctype.
9352
9353 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
9354
9355         * lib/poll.c (poll): Avoid division when timeout is 0, cache
9356         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
9357
9358 2008-08-06  Jim Meyering  <meyering@redhat.com>
9359
9360         * modules/inet_pton (License): Relicense under LGPLv2+.
9361
9362 2008-08-03  Bruno Haible  <bruno@clisp.org>
9363
9364         Additional non-aborting API for lock and tls.
9365         * lib/lock.h: Include <errno.h>.
9366         (glthread_lock_init): New macro/function.
9367         (gl_lock_init): Define as wrapper around glthread_lock_init.
9368         (glthread_lock_lock): New macro/function.
9369         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
9370         (glthread_lock_unlock): New macro/function.
9371         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
9372         (glthread_lock_destroy): New macro/function.
9373         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
9374         (glthread_rwlock_init): New macro/function.
9375         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
9376         (glthread_rwlock_rdlock): New macro/function.
9377         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
9378         (glthread_rwlock_wrlock): New macro/function.
9379         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
9380         (glthread_rwlock_unlock): New macro/function.
9381         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
9382         (glthread_rwlock_destroy): New macro/function.
9383         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
9384         (glthread_recursive_lock_init): New macro/function.
9385         (gl_recursive_lock_init): Define as wrapper around
9386         glthread_recursive_lock_init.
9387         (glthread_recursive_lock_lock): New macro/function.
9388         (gl_recursive_lock_lock): Define as wrapper around
9389         glthread_recursive_lock_lock.
9390         (glthread_recursive_lock_unlock): New macro/function.
9391         (gl_recursive_lock_unlock): Define as wrapper around
9392         glthread_recursive_lock_unlock.
9393         (glthread_recursive_lock_destroy): New macro/function.
9394         (gl_recursive_lock_destroy): Define as wrapper around
9395         glthread_recursive_lock_destroy.
9396         (glthread_once): New macro/function.
9397         (gl_once): Define as wrapper around glthread_once.
9398         Update function declarations.
9399         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
9400         glthread_rwlock_init. Return error code.
9401         (glthread_rwlock_rdlock_multithreaded): Renamed from
9402         glthread_rwlock_rdlock. Return error code.
9403         (glthread_rwlock_wrlock_multithreaded): Renamed from
9404         glthread_rwlock_wrlock. Return error code.
9405         (glthread_rwlock_unlock_multithreaded): Renamed from
9406         glthread_rwlock_unlock. Return error code.
9407         (glthread_rwlock_destroy_multithreaded): Renamed from
9408         glthread_rwlock_destroy. Return error code.
9409         (glthread_recursive_lock_init_multithreaded): Renamed from
9410         glthread_recursive_lock_init. Return error code.
9411         (glthread_recursive_lock_lock_multithreaded): Renamed from
9412         glthread_recursive_lock_lock. Return error code.
9413         (glthread_recursive_lock_unlock_multithreaded): Renamed from
9414         glthread_recursive_lock_unlock. Return error code.
9415         (glthread_recursive_lock_destroy_multithreaded): Renamed from
9416         glthread_recursive_lock_destroy. Return error code.
9417         (glthread_once_call): Make static.
9418         (glthread_once_multithreaded): Renamed from glthread_once.
9419         * lib/tls.h: Include <errno.h>.
9420         (glthread_tls_key_init): New macro/function.
9421         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
9422         (glthread_tls_set): New macro/function.
9423         (gl_tls_set): Define as wrapper around glthread_tls_set.
9424         (glthread_tls_key_destroy): New macro/function.
9425         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
9426         Update function declarations.
9427         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
9428         glthread_tls_get.
9429         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9430
9431 2008-08-04  Eric Blake  <ebb9@byu.net>
9432
9433         gnumakefile: use space, not TAB, outside of targets
9434         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
9435
9436 2008-08-02  Jim Meyering  <meyering@redhat.com>
9437
9438         getdate.y: avoid locale-dependent date parsing failure
9439         In Turkish locales, getdate would fail to recognize keywords
9440         containing a lowercase "i".  The solution is not to rely on
9441         locale-sensitive case-conversion.
9442         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
9443         (lookup_word): Use c_toupper in place of toupper.
9444         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
9445         Reported by Vefa Bicakci <bicave@superonline.com> in
9446         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
9447         * modules/getdate (Depends-on): Add c-ctype.
9448
9449 2008-08-02  Bruno Haible  <bruno@clisp.org>
9450
9451         * gnulib-tool (func_import): When updating or creating a .gitignore
9452         file, prepend each added line with a slash, and ignore leading slashes
9453         from the existing lines.
9454         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9455
9456 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9457
9458         Portability fix for GNU make 3.79.1.
9459         * top/GNUmakefile: Avoid 'else COND', which older GNU make
9460         versions do not understand.
9461
9462 2008-08-01  Bruno Haible  <bruno@clisp.org>
9463
9464         Work around bug of HP-UX 10.20 cc with -0.0 literal.
9465         * tests/test-isnanf.h (zero): New variable.
9466         (main): Avoid literal -0.0f.
9467         * tests/test-isnand.h (zero): New variable.
9468         (main): Avoid literal -0.0.
9469         * tests/test-isnanl.h (zero): New variable.
9470         (main): Avoid literal -0.0L.
9471         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
9472         (test_float, test_double, test_long_double): Avoid literals -0.0f,
9473         -0.0, -0.0L.
9474         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
9475         (test_signbitd): Avoid literal -0.0.
9476         (test_signbitl): Avoid literal -0.0L.
9477         * tests/test-ceilf1.c (zero): New variable.
9478         (main): Avoid literal -0.0f.
9479         * tests/test-ceill.c (zero): New variable.
9480         (main): Avoid literal -0.0L.
9481         * tests/test-floorf1.c (zero): New variable.
9482         (main): Avoid literal -0.0f.
9483         * tests/test-floorl.c (zero): New variable.
9484         (main): Avoid literal -0.0L.
9485         * tests/test-roundf1.c (zero): New variable.
9486         (main): Avoid literal -0.0f.
9487         * tests/test-round1.c (zero): New variable.
9488         (main): Avoid literal -0.0.
9489         * tests/test-roundl.c (zero): New variable.
9490         (main): Avoid literal -0.0L.
9491         * tests/test-truncf1.c (zero): New variable.
9492         (main): Avoid literal -0.0f.
9493         * tests/test-trunc1.c (zero): New variable.
9494         (main): Avoid literal -0.0.
9495         * tests/test-truncl.c (zero): New variable.
9496         (main): Avoid literal -0.0L.
9497         * tests/test-frexp.c (zero): New variable.
9498         (main): Avoid literal -0.0.
9499         * tests/test-frexpl.c (zero): New variable.
9500         (main): Avoid literal -0.0L.
9501         * tests/test-ldexpl.c (zero): New variable.
9502         (main): Avoid literal -0.0L.
9503         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9504         (zerod, zerol): New variables.
9505         (test_function): Avoid literals -0.0, -0.0L.
9506         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
9507         (zerod, zerol): New variables.
9508         (test_function): Avoid literals -0.0, -0.0L.
9509         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9510         (zerod, zerol): New variables.
9511         (test_function): Avoid literals -0.0, -0.0L.
9512         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
9513         (zerod, zerol): New variables.
9514         (test_function): Avoid literals -0.0, -0.0L.
9515         * tests/test-strtod.c (zero): New variable.
9516         (main): Avoid literal -0.0.
9517         Reported by Jonathan C. Patschke <jp@centtech.com>.
9518
9519 2008-07-31  Jim Meyering  <meyering@redhat.com>
9520
9521         sha256.h: correct definition of SHA224_DIGEST_SIZE
9522         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
9523         Reported by Paulie Pena IV <paulie4@gmail.com>.
9524         Define as 224 / 8, rather than as a literal.
9525         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
9526         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
9527         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
9528
9529 2008-07-31  Bruno Haible  <bruno@clisp.org>
9530
9531         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
9532         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
9533         Reported by Jonathan Patschke <jp@centtech.com>.
9534
9535 2008-07-31  Bruno Haible  <bruno@clisp.org>
9536
9537         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
9538         Reported by Paolo Bonzini <bonzini@gnu.org>.
9539
9540 2008-07-30  Eric Blake  <ebb9@byu.net>
9541
9542         test-strtod: allow compilation without -lm
9543         * tests/test-strtod.c (main): Avoid link dependence on fabs.
9544         Reported by Dennis Clarke <blastwave@gmail.com>.
9545
9546 2008-07-28  Jim Meyering  <meyering@redhat.com>
9547
9548         bootstrap: work also when there are no .po files in po/
9549         * build-aux/bootstrap (update_po_files): Complete the change
9550         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
9551
9552 2008-07-27  Jim Meyering  <meyering@redhat.com>
9553
9554         * users.txt: Add zile.
9555
9556 2008-07-26  Ben Pfaff  <blp@gnu.org>
9557
9558         Add missing dependencies on new m4/exponent[fdl].m4 files.
9559         * modules/isnanf-nolibm: Add m4/exponentf.m4.
9560         * modules/isnand-nolibm: Add m4/exponentd.m4.
9561         * modules/isnanl-nolibm: Add m4/exponentl.m4.
9562         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
9563         m4/isnan[fdl].m4, because the macros actually used moved.
9564         Reported by Jim Meyering.
9565
9566 2008-07-14  Ben Pfaff  <blp@gnu.org>
9567
9568         Add isinf module.
9569         * lib/isinf.c: New file.
9570         * lib/math.in.h: Define isinf macro if we have decided to replace
9571         it.
9572         * m4/isinf.m4: New file.
9573         * m4/math_h.m4: Initialize and substitute variables for isinf
9574         module.
9575         * modules/isinf: New file.
9576         * modules/isinf-tests: New file.
9577         * modules/math: Add substitutions for new module.
9578         * tests/test-isinf.c: New file.
9579         * doc/posix-functions/isinf.texi: Mention new module.
9580         * MODULES.html.sh: Mention new module.
9581
9582 2008-07-14  Ben Pfaff  <blp@gnu.org>
9583
9584         Factor out some macros for use by additional modules.
9585         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
9586         exponentf.m4.
9587         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
9588         exponentd.m4.
9589         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
9590         file exponentl.m4.
9591         * m4/exponentf.m4: New file.
9592         * m4/exponentd.m4: New file.
9593         * m4/exponentl.m4: New file.
9594         * modules/isnanf: Use new file m4/exponentf.m4.
9595         * modules/isnand: Use new file m4/exponentd.m4.
9596         * modules/isnanl: Use new file m4/exponentl.m4.
9597
9598 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
9599
9600         mktime.c: normalize tp->tm_isdst value to -1/0/1.
9601         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
9602         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
9603         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
9604
9605         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
9606         readlink on platforms without PATH_MAX.
9607
9608 2008-07-21  Eric Blake  <ebb9@byu.net>
9609
9610         Warn, not fail, on stale version.
9611         * top/GNUmakefile (_curr-ver): Tone down previous patch.
9612
9613         Don't allow installation with stale devel version number.
9614         * top/GNUmakefile (_is-install-target): New macro.
9615         (_curr-ver): Forbid installation with stale version number.
9616
9617 2008-07-20  Bruno Haible  <bruno@clisp.org>
9618
9619         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
9620         TESTS_ENVIRONMENT.
9621         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
9622
9623 2008-07-20  Bruno Haible  <bruno@clisp.org>
9624
9625         * lib/c-stack.h (c_stack_action): Add documentation.
9626         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
9627
9628 2008-07-20  Bruno Haible  <bruno@clisp.org>
9629
9630         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
9631         * modules/readlink (License): Likewise.
9632
9633 2008-07-17  Eric Blake  <ebb9@byu.net>
9634
9635         * modules/c-stack (Link): Fix typo.
9636
9637         Make c-stack use libsigsegv, when available.
9638         * modules/c-stack (Depends-on): Add libsigsegv.
9639         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
9640         needed.
9641         * lib/c-stack.c (SIGSTKSZ): Define fallback.
9642         (segv_handler, overflow_handler, c_stack_action)
9643         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
9644         implementation when libsigsegv is available, but only when using
9645         the library is necessary.
9646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
9647         comment, explaining why XSI check fails on Linux.
9648         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
9649         * tests/test-c-stack2.sh: Tweak skip message.
9650         * NEWS: Document new link-time requirements.
9651
9652 2008-07-16  Eric Blake  <ebb9@byu.net>
9653
9654         c-stack: Expose false positives when not using libsigsegv.
9655         * modules/c-stack-tests (Files): Expand test.
9656         * tests/test-c-stack.c (main): Add means to conditionally trigger
9657         non-overflow SIGSEGV.
9658         * tests/test-c-stack2.sh: New file.
9659
9660 2008-07-14  Bruno Haible  <bruno@clisp.org>
9661
9662         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
9663         Reported by Eric Blake.
9664
9665 2008-07-14  Sam Steingold  <sds@gnu.org>
9666             Bruno Haible  <bruno@clisp.org>
9667
9668         New module libsigsegv.
9669         * modules/libsigsegv: New file.
9670         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
9671         modifications.
9672         * MODULES.html.sh (Signal handling): New section.
9673
9674 2008-07-14  Bruno Haible  <bruno@clisp.org>
9675
9676         * modules/unictype/ctype-* (Description): Add the word "function".
9677         Improves the resulting doc in MODULES.html.
9678
9679 2008-07-12  Ben Pfaff  <blp@gnu.org>
9680
9681         Add longlong module.
9682         * modules/longlong: New file.
9683
9684 2008-07-12  Bruno Haible  <bruno@clisp.org>
9685
9686         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
9687         to empty.
9688
9689 2008-07-10  Ben Pfaff  <blp@gnu.org>
9690
9691         Add isnan module.
9692         * doc/posix-functions/isnan.texi: Mention new module.
9693         * lib/math.in.h: Define isnan macro if we have decided to replace
9694         it.
9695         * m4/isnan.m4: New file.
9696         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
9697         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
9698         also.
9699         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
9700         redundancy.
9701         * m4/math_h.m4: Initialize and substitute variables for isnan
9702         module.
9703         * modules/isnan: New file.
9704         * modules/isnan-tests: New file.
9705         * modules/math: Add substitutions for new module.
9706         * tests/test-isnan.c: New file.
9707         * MODULES.html.sh: Mention new module.
9708
9709 2008-07-10  Ben Pfaff  <blp@gnu.org>
9710
9711         Add isnanf module.
9712         * lib/isnanf.m4: New file.
9713         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
9714         (gl_HAVE_ISNANF_IN_LIBM): New macro.
9715         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
9716         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
9717         * modules/isnanf: New file.
9718         * modules/isnanf-tests: New file.
9719         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
9720         files.
9721         * tests/test-isnanf-nolibm.c: factored most of its contents into
9722         new file tests/test-isnanf.h.
9723         * tests/test-isnanf.h: New file.
9724         * tests/test-isnanf.c: New file.
9725         * MODULES.html.sh: Mention new module.
9726         * doc/glibc-functions/isnanf.texi: Mention new module.
9727
9728 2008-07-10  Ben Pfaff  <blp@gnu.org>
9729
9730         Add isnand module.
9731         * lib/isnand.h: New file.
9732         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
9733         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
9734         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
9735         functionality also.
9736         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
9737         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
9738         (gl_HAVE_ISNAND_IN_LIBM): New macro.
9739         * modules/isnand: New file.
9740         * modules/isnand-tests: New file.
9741         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
9742         files.
9743         * tests/test-isnand-nolibm.c: factored most of its contents into
9744         new file tests/test-isnand.h.
9745         * tests/test-isnand.h: New file.
9746         * tests/test-isnand.c: New file.
9747         * MODULES.html.sh: Mention new module.
9748
9749 2008-07-10  Ben Pfaff  <blp@gnu.org>
9750
9751         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
9752         * lib/isnand.h: Rename lib/isnand-nolibm.h.
9753         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
9754         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
9755         * modules/isnanf-nolibm: Update references to renamed files.
9756         * modules/isnand-nolibm: Likewise.
9757         * modules/isnanf-nolibm-tests: Likewise.
9758         * modules/isnand-nolibm-tests: Likewise.
9759         * lib/frexp.c: Likewise.
9760         * lib/isfinite.c: Likewise.
9761         * lib/signbitd.c: Likewise.
9762         * lib/signbitf.c: Likewise.
9763         * lib/vasnprintf.c: Likewise.
9764         * tests/test-ceilf1.c: Likewise.
9765         * tests/test-ceilf2.c: Likewise.
9766         * tests/test-floorf1.c: Likewise.
9767         * tests/test-floorf2.c: Likewise.
9768         * tests/test-frexp.c: Likewise.
9769         * tests/test-round1.c: Likewise.
9770         * tests/test-round2.c: Likewise.
9771         * tests/test-roundf1.c: Likewise.
9772         * tests/test-strtod.c: Likewise.
9773         * tests/test-trunc1.c: Likewise.
9774         * tests/test-trunc2.c: Likewise.
9775         * tests/test-truncf1.c: Likewise.
9776         * tests/test-truncf2.c: Likewise.
9777         * NEWS: Mention the renamed header files.
9778
9779 2008-07-11  Jim Meyering  <meyering@redhat.com>
9780
9781         vc-list-files: make the last-resort awk code more portable
9782         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
9783         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
9784         does not support it.
9785
9786 2008-07-10  Eric Blake  <ebb9@byu.net>
9787
9788         Work with tar's bootstrap.
9789         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
9790         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
9791         an m4 comment.
9792
9793 2008-07-09  Jim Meyering  <meyering@redhat.com>
9794
9795         posix-shell.m4: fix typo that made this test malfunction
9796         * m4/posix-shell.m4: Remove capitalization in variable name.
9797
9798 2008-07-08  Bruno Haible  <bruno@clisp.org>
9799
9800         * m4/onceonly.m4: Update comments.
9801         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9802
9803 2008-07-04  Jim Meyering  <meyering@redhat.com>
9804
9805         * users.txt: Add vc-dwim.
9806         (bison, coreutils): Use the gitweb URL.
9807
9808 2008-07-03  Jim Meyering  <meyering@redhat.com>
9809
9810         * users.txt: Add libffcall.  From Sam Steingold.
9811
9812 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
9813
9814         getdate.y: do not ignore TZ with relative day, month or year offset
9815         * lib/getdate.y (get_date): Move the tz-handling block to follow the
9816         relative-date-handling, since otherwise, the latter would clobber the
9817         sole output (an updated Start value) of the tz-handling block.
9818         * tests/test-getdate.c: Tests for the fix
9819
9820 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9821
9822         Recognize 'foo_LIBRARIES += libgnu.a'.
9823         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
9824         makefile snippet has already specified an installation location,
9825         also using '+='.
9826
9827 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
9828
9829         getdate.y: factor out common actions
9830         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
9831         Use them in place of open-coded actions.
9832
9833 2008-07-01  Simon Josefsson  <simon@josefsson.org>
9834
9835         Add self-test for getdate module.
9836         * modules/getdate-tests: New file.
9837         * tests/test-getdate.c: New file.
9838
9839 2008-06-29  Bruno Haible  <bruno@clisp.org>
9840
9841         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
9842         .gitignore.
9843         Reported by Sylvain Beucler <beuc@beuc.net>.
9844
9845 2008-06-29  Bruno Haible  <bruno@clisp.org>
9846
9847         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
9848         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
9849
9850 2008-06-29  Bruno Haible  <bruno@clisp.org>
9851
9852         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
9853         EXTRA_DIST.
9854         Reported by Sylvain Beucler <beuc@beuc.net>.
9855
9856 2008-06-26  Jim Meyering  <meyering@redhat.com>
9857
9858         make several modules depend on the "open" module
9859         This provides slightly increased consistency when opening-for-write
9860         the name of a non-directory spelled with a trailing slash.
9861         * modules/chdir-safer: Likewise.
9862         * modules/chown: Likewise.
9863         * modules/clean-temp: Likewise.
9864         * modules/copy-file: Likewise.
9865         * modules/fchdir: Likewise.
9866         * modules/fcntl-safer: Likewise.
9867         * modules/pipe: Likewise.
9868         * modules/utime: Likewise.
9869         Prompted by Eric Blake and Bruno Haible.
9870
9871 2008-06-24  Andreas Schwab  <schwab@suse.de>
9872
9873         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
9874         literals can be used as initializers for global variables.
9875
9876 2008-06-23  Eric Blake  <ebb9@byu.net>
9877
9878         Make gnulib-cache.m4 easier to diff.
9879         * gnulib-tool (func_import): Allow newlines when reading cached
9880         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
9881
9882 2008-06-23  Bruno Haible  <bruno@clisp.org>
9883
9884         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
9885         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
9886         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
9887         m4/signalblocking.m4.
9888         (gl_PREREQ_SIGACTION): Don't invoke it.
9889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
9890         gl_PREREQ_SIG_HANDLER_H.
9891         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9892         Don't check for sigaction here.
9893
9894 2008-06-23  Bruno Haible  <bruno@clisp.org>
9895
9896         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
9897         (install_handlers): Don't set the SA_RESETHAND flag.
9898
9899 2008-06-23  Bruno Haible  <bruno@clisp.org>
9900
9901         * m4/sigaction.m4: Comment fixes.
9902         * lib/signal.in.h: Likewise.
9903
9904 2008-06-23  Eric Blake  <ebb9@byu.net>
9905
9906         Fix typo.
9907         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
9908
9909         Avoid SA_ namespace.
9910         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
9911         Reported by Ralf Wildenhues.
9912
9913         Avoid test failure due to SA_RESTORER.
9914         * tests/test-sigaction.c (SA_MASK): New macro.
9915         (main): Avoid failing due to extension flags being set.
9916         Reported by Jim Meyering.
9917
9918         Revert use of sig-handler.h in sigprocmask.c.
9919         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9920         it requires the existence of struct sigaction.
9921         * lib/sigprocmask.c (handler_t): Restore typedef.
9922         (rpl_signal, old_handlers): Use local type.
9923
9924 2008-06-22  Bruno Haible  <bruno@clisp.org>
9925
9926         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9927         conditionally.
9928         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9929
9930 2008-06-22  Bruno Haible  <bruno@clisp.org>
9931
9932         * doc/posix-functions/siginterrupt.texi: Move note.
9933
9934         * lib/signal.in.h (SA_RESTART): New macro.
9935         * lib/sigaction.c: Update comment.
9936
9937         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9938
9939         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9940         (gl_PREREQ_SIGPROCMASK): Invoke it.
9941         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9942
9943         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9944
9945         * lib/sigprocmask.c: Update a comment.
9946
9947 2008-06-21  Eric Blake  <ebb9@byu.net>
9948
9949         Use sigaction module rather than signal().
9950         * modules/c-stack (Depends-on): Add sigaction.
9951         * modules/fatal-signal (Depends-on): Likewise.
9952         * modules/nanosleep (Depends-on): Likewise.
9953         * modules/sigprocmask (Files): Add sig-handler.h.
9954         * modules/sigaction (Files): Likewise.
9955         * lib/sig-handler.h (get_handler): New file, suggested by Paul
9956         Eggert.
9957         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9958         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9959         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9960         (init_fatal_signals): Likewise.
9961         * lib/nanosleep.c (rpl_nanosleep): Likewise.
9962         (siginterrupt): Delete fallback.
9963         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9964         instead.
9965         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9966         siginterrupt.
9967
9968         New module sigaction, for mingw.
9969         * modules/sigaction: New module...
9970         * modules/sigaction-tests: ...and its test.
9971         * m4/sigaction.m4: New file.
9972         * lib/sigaction.c: Likewise.
9973         * tests/test-sigaction.c: Likewise.
9974         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9975         * modules/signal (Makefile.am): Likewise.
9976         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9977         needed.
9978         * doc/posix-headers/signal.texi (signal.h): Mention provided
9979         types.
9980         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9981         that sigaction is preferable.
9982         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9983         module.
9984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9985         sigaction.
9986
9987         Improve robustness of sigprocmask by overriding signal.
9988         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9989         is in use.
9990         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9991         (SIGKILL, SIGSTOP): Provide fallbacks.
9992         (rpl_signal): Implement.
9993         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9994         signal can be called inside handlers.
9995
9996         Fix nanosleep module on mingw.
9997         * modules/nanosleep (Depends-on): Add sys_select.
9998         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9999
10000         Fix licensing of sigprocmask.
10001         * modules/raise (License): Relicense as LGPL.
10002
10003 2008-06-21  Bruno Haible  <bruno@clisp.org>
10004
10005         * lib/propername.c (proper_name_utf8): Don't use the transliterated
10006         result if it contains question marks.
10007         Reported by Michael Geng <linux@michaelgeng.de>.
10008
10009 2008-06-19  Bruno Haible  <bruno@clisp.org>
10010
10011         Fix CVS-ism.
10012         * doc/gnulib.texi: Include updated-stamp.texi.
10013         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
10014         (updated-stamp.texi): New rule.
10015         (gnulib.info): Depend on it.
10016         * doc/.gitignore: Add updated-stamp.texi.
10017         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
10018
10019 2008-06-19  Bruno Haible  <bruno@clisp.org>
10020
10021         * doc/Makefile (gnulib.info): Update and simplify dependencies.
10022         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10023
10024 2008-06-19  Eric Blake  <ebb9@byu.net>
10025
10026         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
10027         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
10028         Reported by Stepan Kasal.
10029
10030 2008-06-18  Bruno Haible  <bruno@clisp.org>
10031
10032         * lib/fatal-signal.c (init_fatal_signals): Add comment.
10033         Reported by Eric Blake.
10034
10035 2008-06-18  Eric Blake  <ebb9@byu.net>
10036
10037         Work around cygwin 1.5.25 strsignal bug.
10038         * tests/test-strsignal.c: Allow for const char *.
10039         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
10040
10041 2008-06-18  Simon Josefsson  <simon@josefsson.org>
10042
10043         * users.txt: Update URL to article and add author/date
10044         information.
10045
10046 2008-06-17  Bruno Haible  <bruno@clisp.org>
10047
10048         New macro gl_DISABLE_THREADS.
10049         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
10050         if the user did not pass --enable-threads or --disable-threads option.
10051         (gl_DISABLE_THREADS): New macro.
10052         Reported by Eric Blake <ebb9@byu.net>.
10053
10054 2008-06-17  Bruno Haible  <bruno@clisp.org>
10055
10056         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
10057         when the macro ignores it.
10058         Based on a patch by Eric Blake <ebb9@byu.net>.
10059
10060 2008-06-17  Bruno Haible  <bruno@clisp.org>
10061
10062         * modules/tls (License): Change to LGPLv2+.
10063         Reported by Eric Blake.
10064
10065 2008-06-17  Eric Blake  <ebb9@byu.net>
10066
10067         Simplify c-stack prerequisites.
10068         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
10069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
10070         no longer requires <ucontext.h> to exist.  Optimize setrlimit
10071         check.
10072         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
10073         <sys/resource.h>.
10074
10075         Move c-stack test into testsuite.
10076         * modules/c-stack-tests: New file.
10077         * lib/c-stack.c [DEBUG]: Move test program...
10078         * tests/test-c-stack.c: ...into this new file.  Skip rather than
10079         fail test if sigaltstack is lacking.
10080         * tests/test-c-stack.sh: New driver file.
10081
10082 2008-06-16  Eric Blake  <ebb9@byu.net>
10083
10084         Use raise module consistently.
10085         * modules/fatal-signal (Depends-on): Add raise.
10086         * modules/sigprocmask (Depends-on): Likewise.
10087         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
10088         * lib/sigprocmask.c (sigprocmask): Likewise.
10089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10090         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
10091
10092         Fix compliance bug in sigpending.
10093         * lib/sigprocmask.c (sigpending): Return pending array via
10094         parameter, not return value.
10095
10096 2008-06-14  Eric Blake  <ebb9@byu.net>
10097
10098         Improve obstack-printf test code.
10099         * tests/test-obstack-printf.c (test_function): Fix comment, and
10100         simplify usage of obstack_* in macros.  Add a test for coverage.
10101         Reported by Bruno Haible.
10102
10103 2008-06-14  Bruno Haible  <bruno@clisp.org>
10104
10105         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
10106         array size as a constant, not as a const variable.
10107         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
10108         AC_USE_SYSTEM_EXTENSIONS.
10109         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
10110         Test whether the obstack_printf function actually exists.
10111         * modules/obstack-printf (Depends-on): Add extensions.
10112         (Include): Remove obstack.h.
10113         * modules/obstack-printf-posix (Depends-on): Add extensions.
10114         (Include): Remove obstack.h.
10115
10116 2008-06-13  Eric Blake  <ebb9@byu.net>
10117
10118         Add obstack-printf and obstack-printf-posix modules.
10119         * modules/obstack-printf: New file.
10120         * modules/obstack-printf-posix: Likewise.
10121         * MODULES.html.sh (Misc): Mention them.
10122         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
10123         Likewise.
10124         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
10125         Likewise.
10126         * modules/stdio (Makefile.am): Accomodate new modules.
10127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10128         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
10129         Declare.
10130         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
10131         functions.
10132         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
10133         (gl_REPLACE_OBSTACK_PRINTF): New macros
10134         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
10135         * tests/test-obstack-printf.c: New file.
10136         * modules/obstack-printf-tests: Likewise.
10137         * modules/obstack-printf-posix-tests: Likewise.
10138
10139 2008-06-11  Bruno Haible  <bruno@clisp.org>
10140
10141         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
10142         * lib/open.c: Include errno.h.
10143         (open): Fail when attempting to write to a file that has a trailing
10144         slash.
10145         * tests/test-open.c (main): Test against trailing slash bug.
10146         * doc/posix-functions/open.texi: Mention the trailing slash bug.
10147
10148 2008-06-10  Bruno Haible  <bruno@clisp.org>
10149
10150         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
10151         for $? to work inside the trap command, with various /bin/sh-s.
10152         * tests/test-vc-list-files-cvs.sh: Likewise.
10153
10154 2008-06-10  Bruno Haible  <bruno@clisp.org>
10155
10156         * lib/acl-internal.h: Don't include gettext.h here.
10157         * lib/set-mode-acl.c: Include gettext.h here.
10158         * lib/copy-acl.c: Likewise.
10159
10160 2008-06-10  Bruno Haible  <bruno@clisp.org>
10161
10162         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
10163         * lib/wait-process.c (wait_subprocess): Likewise.
10164         * lib/execute.h (execute): Add termsigp argument.
10165         * lib/execute.c (execute): Likewise.
10166         * lib/csharpcomp.c (compile_csharp_using_pnet,
10167         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
10168         * lib/csharpexec.c (execute_csharp_using_pnet,
10169         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
10170         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
10171         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
10172         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
10173         is_jikes_present): Update.
10174         * lib/javaexec.c (execute_java_class): Update.
10175         * lib/javaversion.c (execute_and_read_line): Update.
10176         * NEWS: Document the changes.
10177         Reported by Eric Blake.
10178
10179 2008-06-10  Eric Blake  <ebb9@byu.net>
10180
10181         Add missing include.
10182         * tests/test-strstr.c (includes): Add <signal.h>.
10183         * tests/test-strcasestr.c (includes): Likewise.
10184         * tests/test-memmem.c (includes): Likewise.
10185
10186 2008-06-10  Bruno Haible  <bruno@clisp.org>
10187
10188         * lib/wait-process.c (wait_subprocess): Add an assertion.
10189
10190 2008-06-10  Bruno Haible  <bruno@clisp.org>
10191
10192         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
10193
10194 2008-06-10  Bruno Haible  <bruno@clisp.org>
10195
10196         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
10197         using alarm().
10198         * tests/test-strcasestr.c (main): Likewise.
10199         * tests/test-strstr.c (main): Likewise.
10200
10201 2008-06-09  Bruno Haible  <bruno@clisp.org>
10202
10203         Work around the Solaris 10 ACE ACLs ABI change.
10204         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
10205         declare if ACL_NO_TRIVIAL is present.
10206         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
10207         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
10208         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
10209         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
10210         define if ACL_NO_TRIVIAL is present.
10211         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
10212         and use the current ABI.
10213         (file_has_acl): Use same #if condition as elsewhere.
10214         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
10215         in use, and use the current ABI.
10216         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
10217         Reported by Jim Meyering.
10218
10219 2008-06-09  Eric Blake  <ebb9@byu.net>
10220
10221         Work around environments that (stupidly) ignore SIGALRM.
10222         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
10223         before using alarm().
10224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10226         Reported by Ian Beckwith <ianb@erislabs.net>.
10227
10228         Produce autobuild blurb earlier in log.
10229         * modules/autobuild (configure.ac-early): Move AB_INIT here.
10230
10231 2008-06-09  Jim Meyering  <meyering@redhat.com>
10232         and OndÅ™ej Vašík  <ovasik@redhat.com>
10233
10234         utimens.c: correct kernel bug work-around
10235         OndÅ™ej Vašík found that the invalid return value of 280 indicates
10236         failure, not success, and the kernel bug we're trying to work
10237         around affects not just the utimensat call, but also the fallback
10238         futimens call.
10239         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
10240         not success.
10241         [HAVE_FUTIMENS]: Use the same work-around, here.
10242
10243 2008-06-09  Jim Meyering  <meyering@redhat.com>
10244
10245         add more guards around definition of ACE_-related code
10246         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
10247         ALLOW and ACE_OWNER are also defined.
10248
10249 2008-06-08  Bruno Haible  <bruno@clisp.org>
10250
10251         * lib/acl-internal.h: Add me as co-author.
10252         * lib/file-has-acl.c: Likewise.
10253         * lib/set-mode-acl.c: Likewise.
10254         * lib/copy-acl.c: Likewise.
10255
10256 2008-06-08  Bruno Haible  <bruno@clisp.org>
10257
10258         Add support for AIX ACLs.
10259         * lib/acl-internal.h (acl_nontrivial): New declaration.
10260         * lib/file-has-acl.c (acl_nontrivial): New function.
10261         (file_has_acl): Add implementation using AIX 4 ACL API.
10262         * lib/set-mode-acl.c (qset_acl): Likewise.
10263         * lib/copy-acl.c (qcopy_acl): Likewise.
10264
10265 2008-06-08  Bruno Haible  <bruno@clisp.org>
10266
10267         Add support for HP-UX ACLs.
10268         * lib/acl-internal.h (acl_nontrivial): New declaration.
10269         * lib/file-has-acl.c (acl_nontrivial): New function.
10270         (file_has_acl): Add implementation using HP-UX 11 ACL API.
10271         * lib/set-mode-acl.c (qset_acl): Likewise.
10272         * lib/copy-acl.c (qcopy_acl): Likewise.
10273
10274 2008-06-08  Bruno Haible  <bruno@clisp.org>
10275
10276         Add support for Cygwin ACLs.
10277         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
10278         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
10279         the chmod_or_fchmod call.
10280         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
10281
10282 2008-06-08  Bruno Haible  <bruno@clisp.org>
10283
10284         Fix bug with setuid modes in Solaris 10+ code.
10285         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
10286         succeeded, when the mode contains some special bits.
10287
10288 2008-06-08  Bruno Haible  <bruno@clisp.org>
10289
10290         Add support for Solaris 7..10 ACLs.
10291         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
10292         declarations.
10293         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
10294         functions.
10295         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
10296         * lib/set-mode-acl.c (qset_acl): Likewise.
10297         * lib/copy-acl.c (qcopy_acl): Likewise.
10298
10299 2008-06-08  Bruno Haible  <bruno@clisp.org>
10300
10301         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
10302         declaration.
10303         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
10304         (acl_access_nontrivial): Remove MacOS X case.
10305         (file_has_acl): Use acl_extended_nontrivial.
10306         * lib/copy-acl.c (qcopy_acl): Likewise.
10307
10308 2008-06-08  Bruno Haible  <bruno@clisp.org>
10309
10310         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
10311
10312 2008-06-08  Jim Meyering  <meyering@redhat.com>
10313
10314         * modules/acl (Maintainer): Add Bruno Haible.
10315
10316 2008-06-07  Bruno Haible  <bruno@clisp.org>
10317
10318         Improve support for Tru64 ACLs.
10319         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
10320         ACL on OSF/1.
10321
10322 2008-06-07  Bruno Haible  <bruno@clisp.org>
10323
10324         Add support for MacOS X ACLs.
10325         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
10326         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
10327         * lib/set-mode-acl.c (qset_acl): Likewise.
10328         * lib/copy-acl.c (qcopy_acl): Likewise.
10329
10330 2008-06-07  Bruno Haible  <bruno@clisp.org>
10331
10332         Fix memory leak introduced on 2008-05-22.
10333         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
10334         use.
10335
10336 2008-06-07  Bruno Haible  <bruno@clisp.org>
10337
10338         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
10339         to construct an empty ACL.
10340
10341 2008-06-07  Bruno Haible  <bruno@clisp.org>
10342
10343         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
10344         precisely.
10345         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
10346
10347 2008-06-07  Bruno Haible  <bruno@clisp.org>
10348
10349         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
10350         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
10351
10352 2008-06-07  Bruno Haible  <bruno@clisp.org>
10353
10354         * doc/posix-functions/_setjmp.texi: Explain the use of this function
10355         regardless of POSIX.
10356         * doc/posix-functions/_longjmp.texi: Likewise.
10357         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
10358         SystemV platform in this case.
10359
10360 2008-06-06  Eric Blake  <ebb9@byu.net>
10361
10362         Document abort() bugs.
10363         * doc/posix-functions/abort.texi (abort): Mention anomalies.
10364
10365         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
10366         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
10367         sigsetjmp.
10368         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
10369         siglongjmp, but only as a macro.
10370         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
10371         is obsolete.
10372         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
10373
10374         Tweak documentation to cover cygwin argz bugs.
10375         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
10376         argz bug fix; no code change needed since no cygwin releases
10377         occurred between the last fix and the bug being tested.
10378         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
10379         module and recently fixed cygwin bugs.
10380         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
10381         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
10382         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
10383         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
10384         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
10385         Likewise.
10386         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
10387         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
10388         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
10389         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
10390         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
10391         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
10392         Likewise.
10393
10394         Avoid gcc warning on cygwin.
10395         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
10396         !ACL_NO_TRIVIAL]: Avoid unused variable.
10397
10398 2008-06-05  Eric Blake  <ebb9@byu.net>
10399
10400         Be tolerant of UNKNOWN version in gnulib-tool test dir.
10401         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
10402         git-version-gen fails to come up with a version.
10403         Reported by Simon Josefsson.
10404
10405 2008-06-05  Jim Meyering  <meyering@redhat.com>
10406             Paul Eggert  <eggert@cs.ucla.edu>
10407
10408         utimens.c: work around a probable Linux kernel bug
10409         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
10410         appears to be a kernel bug that causes utimensat to return 280
10411         instead of 0, indicating success.
10412
10413 2008-06-04  Bruno Haible  <bruno@clisp.org>
10414
10415         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
10416         2008-06-01 commit.
10417
10418 2008-06-04  Bruno Haible  <bruno@clisp.org>
10419
10420         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
10421         * lib/file-has-acl.c (acl_access_nontrivial): New function.
10422         (file_has_acl): Use it. Save errno afterwards.
10423         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
10424
10425 2008-06-03  Bruno Haible  <bruno@clisp.org>
10426
10427         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
10428         draft code. Simplify #ifs.
10429         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
10430         Put Solaris code after POSIX-draft code. Fix comments regarding
10431         Solaris 10, HP-UX. Mention Cygwin.
10432         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
10433
10434 2008-06-03  Eric Blake  <ebb9@byu.net>
10435
10436         Provide fallback for older kernels.
10437         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
10438         Provide runtime fallback if kernel lacks support.
10439         Reported by Mike Frysinger.
10440
10441 2008-06-02  Bruno Haible  <bruno@clisp.org>
10442
10443         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
10444         it exists.
10445
10446 2008-06-02  Bruno Haible  <bruno@clisp.org>
10447
10448         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
10449         * lib/copy-acl.c (qcopy_acl): Update comment.
10450
10451 2008-06-02  Bruno Haible  <bruno@clisp.org>
10452
10453         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
10454         like ACL APIs.
10455
10456 2008-06-02  Bruno Haible  <bruno@clisp.org>
10457
10458         * tests/test-file-has-acl.sh: Use different code for Cygwin.
10459         * tests/test-set-mode-acl.sh: Likewise.
10460         * tests/test-copy-acl.sh: Likewise.
10461         * tests/test-copy-file.sh: Likewise.
10462
10463 2008-06-02  Bruno Haible  <bruno@clisp.org>
10464
10465         * tests/test-file-has-acl.sh: Remove unused code.
10466
10467 2008-06-01  Bruno Haible  <bruno@clisp.org>
10468
10469         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
10470         (copy_acl): Just a wrapper around qcopy_acl that emits the error
10471         messages.
10472         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
10473
10474 2008-06-01  Bruno Haible  <bruno@clisp.org>
10475
10476         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
10477         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
10478         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
10479         APIs.
10480         * modules/acl-tests (configure.ac): Remove tests now contained in
10481         m4/acl.m4.
10482
10483 2008-06-02  Jim Meyering  <meyering@redhat.com>
10484
10485         announce-gen: use a better key-server host name
10486         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
10487         it may be more consistently reliable.  Suggested by Werner Koch
10488         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
10489
10490 2008-06-01  Bruno Haible  <bruno@clisp.org>
10491
10492         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
10493         Reported by Voroskoi Andras <voroskoi@gmail.com>.
10494
10495 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
10496
10497         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
10498
10499 2008-06-01  Bruno Haible  <bruno@clisp.org>
10500
10501         New ACL tests.
10502         * tests/test-file-has-acl.sh: New file.
10503         * tests/test-file-has-acl.c: New file.
10504         * tests/test-set-mode-acl.sh: New file.
10505         * tests/test-set-mode-acl.c: New file.
10506         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
10507         * tests/test-copy-acl.c: New file.
10508         * modules/acl-tests: New file, based on modules/copy-file-tests.
10509         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
10510         (Depends-on): Add acl-tests.
10511         (configure.ac): Remove checks.
10512         (Makefile.am): Don't create test-sameacls program here any more.
10513
10514 2008-06-01  Bruno Haible  <bruno@clisp.org>
10515
10516         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
10517         * tests/test-sameacls.c: Include progname.h.
10518         (main): Invoke set_program_name. Portability fixes for MacOS X,
10519         Solaris, HP-UX.
10520
10521 2008-06-01  Bruno Haible  <bruno@clisp.org>
10522
10523         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
10524         function.
10525         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
10526
10527 2008-06-01  Bruno Haible  <bruno@clisp.org>
10528
10529         * modules/rpmatch (Depends-on): Add strdup.
10530
10531 2008-06-01  Bruno Haible  <bruno@clisp.org>
10532
10533         * lib/pipe.c: Include unistd-safer.h.
10534         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
10535         * modules/pipe (Depends-on): Add unistd-safer.
10536
10537 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10538
10539         * modules/autobuild (configure.ac): Call AB_INIT.
10540
10541 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10542
10543         * tests/test-getaddrinfo.c: Don't print debug messages by default.
10544         Suggested by Bruno Haible <bruno@clisp.org>.
10545
10546 2008-05-30  Simon Josefsson  <simon@josefsson.org>
10547
10548         * tests/test-base64.c: Cast size_t to unsigned long when invoking
10549         printf.  Use %lu instead of %d.  Reported by Bruno Haible
10550         <bruno@clisp.org>.
10551
10552 2008-05-29  Eric Blake  <ebb9@byu.net>
10553
10554         Prefer new POSIX 200x interfaces over futimesat.
10555         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
10556         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
10557         when available.
10558         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
10559
10560 2008-05-28  Bruno Haible  <bruno@clisp.org>
10561
10562         * modules/stpcpy (License): Change to LGPLv2+.
10563         Requested by David Lutterkort <dlutter@redhat.com>.
10564
10565 2008-05-27  Bruno Haible  <bruno@clisp.org>
10566
10567         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
10568         current mingw.
10569         Reported by Jose E. Marchesi <jemarch@gnu.org>.
10570
10571 2008-05-27  Bruno Haible  <bruno@clisp.org>
10572
10573         * modules/iconv_open (Link): New section, from module 'iconv'.
10574         * modules/striconv (Link): Likewise.
10575         * modules/striconveh (Link): Likewise.
10576         * modules/xstriconv (Link): Likewise.
10577         * modules/unicodeio (Link): Likewise.
10578         * modules/propername (Link): Likewise.
10579         Reported by Jim Meyering.
10580
10581 2008-05-26  Jim Meyering  <meyering@redhat.com>
10582
10583         sha256: do not artificially restrict buffer length to be < 2^32
10584         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
10585         uint32_t to size_t.
10586         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
10587         to match.
10588
10589         avoid unaligned access errors, e.g., on sparc
10590         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
10591         direct access through a possibly-unaligned uint64* pointer.
10592         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
10593         direct access through a possibly-unaligned uint32* pointer.
10594         Prompted by this patch from Tom "spot" Callaway:
10595         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
10596
10597         sha512.c: fix typo in comment
10598         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
10599
10600 2008-05-25  Bruno Haible  <bruno@clisp.org>
10601
10602         * lib/set-mode-acl.c: Renamed from lib/acl.c.
10603         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
10604         (Makefile.am): Update lib_SOURCES.
10605
10606 2008-05-25  Bruno Haible  <bruno@clisp.org>
10607
10608         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
10609
10610 2008-05-25  Jim Meyering  <meyering@redhat.com>
10611
10612         useless-if-before-free: freed expr may have white-space differences
10613         * build-aux/useless-if-before-free: Recognize cases in which the
10614         freed expression differs from the tested one in embedded white
10615         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
10616         $1 was used, so we can't make any regexp shy.  Improved tests now
10617         detect this.
10618
10619         useless-if-before-free: accept white space in the expression.
10620         * build-aux/useless-if-before-free: For now, any white space
10621         in the expression must be identical in the free argument.
10622
10623         useless-if-before-free: efficiency tweak
10624         * build-aux/useless-if-before-free: Make the expression-matching
10625         regexp "shy".
10626         Make the *outer* regexp shy, not the expr-matching one.
10627
10628         update code-in-comment to accept cast of free arg
10629         * build-aux/useless-if-before-free: Update regexp.
10630
10631 2008-05-25  Bruno Haible  <bruno@clisp.org>
10632
10633         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
10634         * modules/copy-file-tests (Files, Makefile.am): Update.
10635         * tests/test-copy-file.c (func_test_copy): Update.
10636
10637 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
10638
10639         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
10640
10641 2008-05-23  Bruno Haible  <bruno@clisp.org>
10642
10643         Improve support for ACLs on OSF/1.
10644         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
10645         Remove fallback for unknown flavors of ACLs.
10646
10647 2008-05-22  Bruno Haible  <bruno@clisp.org>
10648
10649         Add support for ACLs on OSF/1.
10650         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
10651         replacements.
10652         (acl_free_text): New macro fallback.
10653         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
10654         acl_free.
10655         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
10656         acl_free_text function. Require AC_C_INLINE.
10657
10658 2008-05-22  Bruno Haible  <bruno@clisp.org>
10659
10660         Make copy_acl work on MacOS X 10.5.
10661         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
10662         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
10663         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
10664         If MODE_INSIDE_ACL, don't assume that every system has the same text
10665         representation for ACLs as FreeBSD.
10666         * lib/copy-acl.c (copy_acl): Add support for platforms with
10667         !MODE_INSIDE_ACL.
10668         * lib/file-has-acl.c (file_has_acl): Likewise.
10669         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
10670         FreeBSD, MacOS X, or IRIX, respectively.
10671
10672 2008-05-22  Bruno Haible  <bruno@clisp.org>
10673
10674         * lib/acl.h: Don't include <sys/acl.h>.
10675         (GETACLCNT): Move fallback to lib/acl-internal.h.
10676         * lib/acl-internal.h: Include <sys/acl.h> here.
10677         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
10678
10679 2008-05-22  Bruno Haible  <bruno@clisp.org>
10680
10681         Split off copy_acl function to separate file.
10682         * lib/copy-acl.c: New file, extracted from lib/acl.c.
10683         * lib/acl.c (copy_acl): Moved function to separate file.
10684         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
10685         * modules/acl (Files): Add lib/copy-acl.c.
10686         (Makefiles.am): Augment lib_SOURCES.
10687
10688 2008-05-22  Bruno Haible  <bruno@clisp.org>
10689
10690         * modules/copy-file-tests: New file.
10691         * tests/test-copy-file.sh: New file.
10692         * tests/test-copy-file.c: New file.
10693         * tests/test-copy-file-sameacls.c: New file.
10694
10695 2008-05-22  Eric Blake  <ebb9@byu.net>
10696
10697         Avoid gcc warning.
10698         * tests/test-memcmp.c (main): Pass NULL indirectly.
10699
10700 2008-05-21  Bruno Haible  <bruno@clisp.org>
10701
10702         Add reference doc about ACLs.
10703         * doc/acl-resources.txt: New file.
10704         * doc/acl-cygwin.txt: New file.
10705
10706 2008-05-21  Bruno Haible  <bruno@clisp.org>
10707
10708         Avoid one more warning from gcc.
10709         * lib/vasnprintf.c (IF_LINT): Update comments.
10710         (VASNPRINTF): Use it also for the 'prefix' array initializer.
10711
10712 2008-05-21  Jim Meyering  <meyering@redhat.com>
10713
10714         avoid a warning from gcc
10715         * lib/vasnprintf.c (IF_LINT): Define.
10716         (scale10_round_decimal_long_double):
10717         Use it to avoid a "may be used uninitialized" warning.
10718         (scale10_round_decimal_double): Likewise.
10719
10720 2008-05-21  Simon Josefsson  <simon@josefsson.org>
10721
10722         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
10723         declared.
10724
10725 2008-05-20  Bruno Haible  <bruno@clisp.org>
10726
10727         * tests/test-memcmp.c (main): Test also the sign of the result. Test
10728         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
10729
10730 2008-05-20  Simon Josefsson  <simon@josefsson.org>
10731
10732         * modules/memcmp-tests: New file.
10733         * tests/test-memcmp.c: New file.
10734
10735 2008-05-19  Bruno Haible  <bruno@clisp.org>
10736
10737         * modules/propername (Notice, configure.ac): Put quoted "..." into
10738         --keyword option.
10739         * lib/propername.h: Update comments accordingly.
10740         Reported by Eric Blake.
10741
10742 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
10743
10744         * modules/getpass-gnu (Depends-on): Add fseeko.
10745
10746 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10747
10748         * modules/base64-tests: New file.
10749
10750 2008-05-19  Bo Borgerson <gigabo@gmail.com>
10751
10752         * lib/base64.c (base64_decode_ctx): If a decode context structure
10753         was passed in use it to ignore newlines.  If a context structure
10754         was _not_ passed in, continue to treat newlines as garbage (this
10755         is the historical behavior).  Formerly base64_decode.
10756         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10757         takes a decode context structure.
10758         * lib/base64.h (base64_decode): Macro for four-argument calls.
10759         (base64_decode_alloc): Likewise.
10760         * lib/base64.c (base64_decode_ctx): If a decode context structure
10761         was passed in use it to ignore newlines.  If a context structure
10762         was _not_ passed in, continue to treat newlines as garbage (this
10763         is the historical behavior).  Formerly base64_decode.
10764         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10765         takes a decode context structure.
10766         * lib/base64.h (base64_decode): Macro for four-argument calls.
10767         (base64_decode_alloc): Likewise.
10768
10769 2008-05-19  Jim Meyering  <meyering@redhat.com>
10770
10771         avoid a warning from gcc
10772         * lib/trim.c (IF_LINT): Define.
10773         (trim2): Use it to avoid a "may be used uninitialized" warning.
10774
10775         Fix doc typo.
10776         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
10777
10778 2008-05-19  Bruno Haible  <bruno@clisp.org>
10779
10780         * doc/glibc-functions/getpass.texi: Document limits of other
10781         implementations.
10782
10783 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10784             Bruno Haible <bruno@clisp.org>
10785
10786         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
10787
10788 2008-05-18  Bruno Haible  <bruno@clisp.org>
10789
10790         * modules/propername: New file, from GNU gettext.
10791         * lib/propername.h: New file, from GNU gettext.
10792         * lib/propername.c: New file, from GNU gettext.
10793         * MODULES.html.sh (Internationalization functions): Add propername.
10794
10795 2008-05-16  Jim Meyering  <meyering@redhat.com>
10796             Bruno Haible  <bruno@clisp.org>
10797
10798         Avoid some warnings from "gcc -Wshadow".
10799         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
10800
10801 2008-05-15  Eric Blake  <ebb9@byu.net>
10802
10803         Extend previous patch to cygwin 1.7.0.
10804         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
10805         fast implementation in cygwin >= 1.7.0.
10806         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10808
10809 2008-05-15  Bruno Haible  <bruno@clisp.org>
10810
10811         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
10812         implementation in glibc >= 2.9.
10813         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10815
10816 2008-05-15  Bruno Haible  <bruno@clisp.org>
10817
10818         * MODULES.html.sh (Internationalization functions): Remove linebreak.
10819         (Unicode string functions): Add unilbrk/*.
10820         Reported by Karl Berry.
10821
10822 2008-05-15  Eric Blake  <ebb9@byu.net>
10823
10824         Fix violation of <stdbool.h> replacement in regex.
10825         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
10826         * lib/regexec.c (re_search_internal): Likewise.
10827         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
10828
10829 2008-05-15  Jim Meyering  <meyering@redhat.com>
10830
10831         avoid distracting test output when git or cvs is not found
10832         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
10833         * tests/test-vc-list-files-git.sh: Likewise.
10834
10835 2008-05-15  Eric Blake  <ebb9@byu.net>
10836
10837         Glibc finally accepted the memmem speedup code, bugzilla #5514.
10838         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
10839         glibc version.
10840         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10841         * doc/posix-functions/strstr.texi (strstr): Likewise.
10842         * lib/str-two-way.h (MAX): Sychronize with glibc.
10843
10844 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
10845
10846         * lib/regcomp.c (optimize_utf8): Add a note on why we test
10847         opr.ctx_type.
10848         (calc_first): Initialize constraint field.
10849         (duplicate_node_closure): Use it instead of special casing ANCHORS.
10850         Fix grammar.
10851         (duplicate_node): Merge constraint field for all node types.
10852         (calc_eclosure_iter): Look at constraint field for all node types.
10853         * lib/regex_internal.c (create_cd_newstate): Don't look at
10854         opr.ctx_type.
10855
10856 2008-05-14  Bruno Haible  <bruno@clisp.org>
10857
10858         Help GCC to do better code generation.
10859         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
10860         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10861         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
10862         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
10863         Declare with attribute 'malloc' if supported.
10864
10865 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
10866
10867         use "echo STR|wc -c" rather than unportable "expr length STR"
10868         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
10869         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
10870
10871 2008-05-14  Jim Meyering  <meyering@redhat.com>
10872
10873         use dd ibs=$n count=1 ... rather than less-portable head -c$n
10874         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
10875         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
10876         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
10877         via Collin Lasse.
10878
10879 2008-05-14  Eric Blake  <ebb9@byu.net>
10880
10881         Avoid quadratic growth in gl_LIBSOURCES.
10882         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
10883         Suggested by Bruno Haible.
10884
10885         Test xmemdup0.
10886         * modules/xmemdup0-tests: New file.
10887         * tests/test-xmemdup0.c: Likewise.
10888
10889 2008-05-13  Eric Blake  <ebb9@byu.net>
10890
10891         Split xmemdup0 into its own module.
10892         * modules/xmemdup0: New file.
10893         * lib/xmemdup0.h: Likewise.
10894         * lib/xmemdup0.c: Likewise.
10895         * MODULES.html.sh (Memory management functions): Add xmemdup0.
10896         * lib/xalloc.h (xmemdup0): Remove.
10897         * lib/xmalloc.c (xmemdup0): Likewise.
10898
10899 2008-05-13  Eric Blake  <ebb9@byu.net>
10900             Bruno Haible  <bruno@clisp.org>
10901
10902         Reduce number of forks required during autoconf.
10903         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
10904         and gl_LIBSOURCES_DIR.
10905         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
10906         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
10907         m4_syscmd per file.
10908         <m4_foreach_w>: Move...
10909         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
10910
10911 2008-05-13  Eric Blake  <ebb9@byu.net>
10912
10913         * gnulib-tool: Fix various comment typos.
10914
10915 2008-05-12  Bruno Haible  <bruno@clisp.org>
10916
10917         Tailor the linebreaking algorithm.
10918         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10919
10920 2008-05-12  Bruno Haible  <bruno@clisp.org>
10921
10922         Update to Unicode 5.0.0.
10923         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10924         LBP_JV, LBP_JT. Redistribute values.
10925         (unilbrk_table): Change size.
10926         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10927         Unicode TR#14 rev. 22.
10928         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10929         LBP_JV, LBP_JT. Redistribute values.
10930         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10931         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10932         Update.
10933         * lib/unilbrk/lbrkprop1.h: Regenerated.
10934         * lib/unilbrk/lbrkprop2.h: Regenerated.
10935         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10936         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10937         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10938         Likewise.
10939         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10940         Likewise.
10941         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10942         result.
10943         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10944         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10945         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10946         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10947         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10948         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10949
10950 2008-05-11  Bruno Haible  <bruno@clisp.org>
10951
10952         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10953
10954 2008-05-11  Bruno Haible  <bruno@clisp.org>
10955
10956         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10957         * modules/unilbrk/gen-lbrk: New file.
10958
10959 2008-05-11  Bruno Haible  <bruno@clisp.org>
10960
10961         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10962         * m4/sha512.m4 (gl_SHA512): Likewise.
10963
10964 2008-05-11  Jim Meyering  <meyering@redhat.com>
10965
10966         New modules: crypto/sha256, crypto/sha512 (from coreutils)
10967         * modules/crypto/sha256: New file.
10968         * modules/crypto/sha512: Likewise.
10969         * lib/sha256.c: Likewise.
10970         * lib/sha256.h: Likewise.
10971         * lib/sha512.c: Likewise.
10972         * lib/sha512.h: Likewise.
10973         * lib/u64.h: Likewise.
10974         * m4/sha256.m4: Likewise.
10975         * m4/sha512.m4: Likewise.
10976         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10977
10978 2008-05-10  Bruno Haible  <bruno@clisp.org>
10979
10980         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10981         (Input/Output <stdio.h>): Add xprintf.
10982         (Signal handling <signal.h>): Add strsignal.
10983         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10984         (Core language properties): Add func.
10985         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10986         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10987         strings.
10988         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10989         (Input/output): New section.
10990         (File system functions): Add openat-die, stat-macros.
10991         (Networking functions): Add sockets.
10992         (Unicode string functions): Add unictype/*.
10993         (Support for building libraries and executables): Add gperf.
10994         (Support for building documentation): Add agpl-3.0.
10995         (Misc): Add nocrash.
10996
10997 2008-05-10  Bruno Haible  <bruno@clisp.org>
10998
10999         * modules/unictype/gen-ctype: New file.
11000
11001 2008-05-10  Jim Meyering  <meyering@redhat.com>
11002
11003         Make chdir-safer.c more efficient on a system with no symlinks.
11004         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
11005         also if ELOOP is zero.  Suggested by Bruno Haible.
11006
11007         Make chdir-safer.c slightly safer.
11008         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
11009         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
11010
11011         Avoid compile failure on systems without ELOOP (like mingw).
11012         * lib/chdir-safer.c (ELOOP): Define if not already defined.
11013         Reported by Bruno Haible.
11014
11015 2008-05-10  Bruno Haible  <bruno@clisp.org>
11016
11017         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
11018         (is_utf8_encoding): Use a case-insensitive comparison.
11019         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
11020         streq.
11021
11022 2008-05-10  Bruno Haible  <bruno@clisp.org>
11023
11024         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
11025         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
11026         * lib/unilbrk/ulc-common.h (iconv_string_length,
11027         iconv_string_keeping_offsets): Remove declarations.
11028         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
11029         Don't include <iconv.h>, streq.h, xsize.h.
11030         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
11031         conversion.
11032         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
11033         <iconv.h>, streq.h, xsize.h.
11034         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
11035         conversion.
11036         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
11037         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
11038         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
11039         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
11040
11041 2008-05-10  Bruno Haible  <bruno@clisp.org>
11042
11043         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
11044         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
11045
11046         * modules/unilbrk/u32-width-linebreaks-tests: New file.
11047         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
11048
11049         * modules/unilbrk/u16-width-linebreaks-tests: New file.
11050         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
11051
11052         * modules/unilbrk/u8-width-linebreaks-tests: New file.
11053         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
11054
11055         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
11056         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
11057
11058         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
11059         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
11060
11061         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
11062         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
11063
11064         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
11065         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
11066
11067 2008-05-10  Bruno Haible  <bruno@clisp.org>
11068
11069         Split up 'linebreak' module.
11070         * lib/unilbrk.h: New file, based on lib/linebreak.h.
11071         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
11072         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
11073         modifications.
11074         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
11075         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
11076         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
11077         lib/linebreak.c.
11078         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
11079         lib/linebreak.c.
11080         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
11081         lib/linebreak.c.
11082         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
11083         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
11084         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
11085         lib/linebreak.c.
11086         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
11087         lib/linebreak.c.
11088         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
11089         lib/linebreak.c.
11090         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
11091         lib/linebreak.c.
11092         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
11093         lib/linebreak.c.
11094         * modules/unilbrk/base: New file.
11095         * modules/unilbrk/tables: New file.
11096         * modules/unilbrk/u8-possible-linebreaks: New file.
11097         * modules/unilbrk/u16-possible-linebreaks: New file.
11098         * modules/unilbrk/u32-possible-linebreaks: New file.
11099         * modules/unilbrk/ulc-common: New file.
11100         * modules/unilbrk/ulc-possible-linebreaks: New file.
11101         * modules/unilbrk/u8-width-linebreaks: New file.
11102         * modules/unilbrk/u16-width-linebreaks: New file.
11103         * modules/unilbrk/u32-width-linebreaks: New file.
11104         * modules/unilbrk/ulc-width-linebreaks: New file.
11105         * lib/linebreak.h: Remove file.
11106         * lib/linebreak.c: Remove file.
11107         * m4/linebreak.m4: Remove file.
11108         * modules/linebreak: Remove file.
11109         * NEWS: Mention the changes.
11110
11111 2008-05-09  Eric Blake  <ebb9@byu.net>
11112
11113         Add xmemdup0.
11114         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
11115         implementation.
11116         * lib/xmalloc.c (xmemdup0): New C implementation.
11117
11118 2008-05-08  Bruno Haible  <bruno@clisp.org>
11119
11120         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
11121
11122 2008-05-07  Eric Blake  <ebb9@byu.net>
11123
11124         Support cross-compilation of <wctype.h>.
11125         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
11126         AC_CACHE_CHECK.
11127
11128 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
11129
11130         * build-aux/vc-list-files: Add support for bzr.
11131
11132 2008-05-03  Jim Meyering  <meyering@redhat.com>
11133
11134         avoid failed assertion with tight malloc
11135         * tests/test-getndelim2.c: Correct an off-by-one assertion.
11136
11137 2008-05-03  Simon Josefsson  <simon@josefsson.org>
11138
11139         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
11140         are needed from arpa/inet.h.
11141         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
11142         Reported by Bruno Haible.
11143
11144 2008-05-02  Jim Meyering  <meyering@redhat.com>
11145
11146         avoid compilation error on FreeBSD 6
11147         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
11148
11149 2008-05-01  Jim Meyering  <meyering@redhat.com>
11150
11151         useless-if-before-free: correct --help's exit status description
11152         * build-aux/useless-if-before-free (usage): Like grep, exit 0
11153         for one or more matches, etc.  Reported by Bruno Haible.
11154
11155         vc-list-files: make the stand-alone gnulib test work
11156         * modules/vc-list-files-tests (configure.ac):
11157         Define and AC_SUBST abs_aux_dir.
11158         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
11159         $(abs_top_srcdir) to each script and having each of them
11160         duplicate the work of setting PATH, set PATH here, using
11161         the new variable, abs_aux_dir instead.
11162         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
11163         * tests/test-vc-list-files-git.sh: Likewise.
11164         Reported by Bruno Haible.
11165
11166 2008-05-01  Bruno Haible  <bruno@clisp.org>
11167
11168         * lib/getndelim2.c (getndelim2): Fix newsize computation during
11169         reallocation. Rename 'done' to 'found_delimiter'.
11170
11171 2008-05-01  Jim Meyering  <meyering@redhat.com>
11172
11173         vc-list-files: accommodate /bin/sh like the one from Solaris 10
11174         * build-aux/vc-list-files: Use `...`, not $(...).
11175
11176 2008-04-30  Jim Meyering  <meyering@redhat.com>
11177
11178         add tests for vc-list-files
11179         * modules/vc-list-files-tests: New module.
11180         * tests/test-vc-list-files-cvs.sh: New file.
11181         * tests/test-vc-list-files-git.sh: New file.
11182
11183         avoid a warning from gcc
11184         * lib/getndelim2.c (IF_LINT): Define.
11185         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
11186
11187         vc-list-files: work properly with build-aux/cvsu, too
11188         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
11189         to all cvs-based clauses.
11190
11191         vc-list-files: work properly in the CVS+awk case, too
11192         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
11193
11194         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
11195         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
11196         take more than one file argument, so .  Add quotes, just in case $dir
11197         ever contains a shell meta-character.  Prompted by Soren Hansen in
11198         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
11199
11200 2008-04-29  Eric Blake  <ebb9@byu.net>
11201
11202         Optimize getndelim2 to use block operations when possible.
11203         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
11204         freadseek, and memchr2.
11205         * lib/getndelim2.c (getndelim2): Use them for block reads.
11206
11207 2008-04-29  Bruno Haible  <bruno@clisp.org>
11208
11209         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
11210         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11211         * modules/inet_ntop (Depends-on): Add extensions.
11212         * modules/inet_pton (Depends-on): Likewise.
11213         Reported by Simon Josefsson.
11214
11215 2008-04-29  Jim Meyering  <meyering@redhat.com>
11216
11217         When the is more than one match in a block, match all of them.
11218         * build-aux/useless-if-before-free: Iterate through each block
11219         until there are no more matches.
11220
11221         Fix broken useless-if-before-free script.
11222         * build-aux/useless-if-before-free: Fix typo: missing "?" after
11223         the expression to match cast of argument to free-like function.
11224
11225 2008-04-29  Eric Blake  <ebb9@byu.net>
11226
11227         Use new header.
11228         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
11229
11230 2008-04-29  Jim Meyering  <meyering@redhat.com>
11231
11232         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
11233         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
11234         by gnulib to exist and to declare e.g., inet_ntop.
11235         Don't include "inet_ntop.h", now removed.
11236
11237         * m4/arpa_inet_h.m4: Remove trailing blanks.
11238
11239 2008-04-29  Eric Blake  <ebb9@byu.net>
11240
11241         Silence valgrind on safe reads beyond potential array bounds.
11242         * lib/rawmemchr.valgrind: New file.
11243         * lib/strchrnul.valgrind: Likewise.
11244         * modules/rawmemchr (Files): Distribute new file.
11245         * modules/strchrnul (Files): Likewise.
11246         Suggested by Bruno Haible.
11247
11248 2008-04-29  Bruno Haible  <bruno@clisp.org>
11249
11250         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
11251         (inet_ntop, inet_pton): Change portability warning's wording.
11252         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
11253         Invoke gl_CHECK_NEXT_HEADERS.
11254         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
11255         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
11256         set ARPA_INET_H.
11257         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11258         * modules/arpa_inet (Description): No longer only for systems that
11259         lack it.
11260         (Depends-on): Add include_next.
11261         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
11262         HAVE_ARPA_INET_H.
11263
11264 2008-04-29  Jim Meyering  <meyering@redhat.com>
11265
11266         * modules/mkdir (License): Re-license as LGPLv2+.
11267
11268 2008-04-29  Bruno Haible  <bruno@clisp.org>
11269
11270         * modules/rawmemchr (Maintainer): Set to Eric.
11271         * modules/strchrnul (Maintainer): Likewise.
11272
11273 2008-04-29  Simon Josefsson  <simon@josefsson.org>
11274
11275         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
11276         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
11277
11278         * modules/arpa_inet (arpa/inet.h): Use them.
11279
11280 2008-04-28  Eric Blake  <ebb9@byu.net>
11281
11282         Test getndelim2.
11283         * modules/getndelim2-tests: New file.
11284         * tests/test-getndelim2.c: Likewise.
11285         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
11286         stream.
11287         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
11288
11289         * MODULES.html.sh: Document new module.
11290
11291 2008-04-20  Bruno Haible  <bruno@clisp.org>
11292
11293         * lib/c-stack.c (die): Use raise.
11294         * modules/c-stack (Depends-on): Add raise.
11295
11296 2008-04-28  Bruno Haible  <bruno@clisp.org>
11297
11298         Expect rpmatch to be declared.
11299         * lib/yesno.c (rpmatch): Remove declaration.
11300
11301         Declare rpmatch.
11302         * lib/stdlib.in.h (rpmatch): New declaration.
11303         * lib/rpmatch.c: Include <stdlib.h> first.
11304         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
11305         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
11306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
11307         HAVE_RPMATCH.
11308         * modules/rpmatch (Depends-on): Add stdlib, extensions.
11309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11310         (Include): Set to <stdlib.h>.
11311         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
11312         HAVE_RPMATCH.
11313         * NEWS: Document the change.
11314
11315 2008-04-28  Bruno Haible  <bruno@clisp.org>
11316
11317         Change rpmatch to use nl_langinfo when appropriate.
11318         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
11319         (N_): New macro.
11320         (localized_pattern): New function/macro.
11321         (try): Remove match, nomatch arguments. Copy the pattern into safe
11322         memory before caching it.
11323         (rpmatch): Use localized_pattern. Add translator comments.
11324         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
11325         Suggested by Eric Blake.
11326         * modules/rpmatch (Depends-on): Add stdbool.
11327
11328 2008-04-28  Eric Blake  <ebb9@byu.net>
11329
11330         Add rawmemchr module, matching glibc.
11331         * modules/string (Makefile.am): New indicator.
11332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
11333         * lib/string.in.h (rawmemchr): Declare when appropriate.
11334         * modules/rawmemchr: New file.
11335         * m4/rawmemchr.m4: Likewise.
11336         * lib/rawmemchr.c: Likewise.
11337         * modules/rawmemchr-tests: Likewise.
11338         * tests/test-rawmemchr.c: Likewise.
11339         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
11340         module.
11341         * modules/strchrnul (Depends-on): Add rawmemchr.
11342         * lib/strchrnul.c (strchrnul): Optimize a corner case.
11343
11344         Whitespace cleanup.
11345         * tests/test-strchrnul.c: Reindent.
11346         * lib/strchrnul.c: Likewise.
11347
11348         Optimize and test strchrnul.
11349         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
11350         * modules/strchrnul-tests: New file.
11351         * tests/test-strchrnul.c: Likewise.
11352
11353         Remove intprops dependency.
11354         * modules/memchr (Depends-on): Remove intprops.
11355         * modules/memrchr (Depends-on): Likewise.
11356         * modules/memchr2 (Depends-on): Likewise.
11357         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
11358         * lib/memrchr.c (__memrchr): Likewise.
11359         * lib/memrchr2.c (memchr2): Likewise.
11360         Reported by Simon Josefsson.
11361
11362 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11363
11364         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
11365         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11366
11367 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11368
11369         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
11370
11371         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
11372
11373         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
11374
11375         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
11376         declarations.
11377         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
11378
11379         * m4/inet_pton.m4: Don't check for header files.
11380
11381         * m4/inet_ntop.m4: Don't check for header files.
11382
11383 2008-04-28  Simon Josefsson  <simon@josefsson.org>
11384
11385         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
11386         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
11387         trigger for cygwin).
11388         Reported by Bruno Haible  <bruno@clisp.org>.
11389
11390 2008-04-28  Bruno Haible  <bruno@clisp.org>
11391
11392         * doc/posix-functions/strdup.texi: Mention mingw problem.
11393
11394 2008-04-27  Bruno Haible  <bruno@clisp.org>
11395
11396         * modules/stat-time-tests (Depends-on): Add sleep.
11397         * tests/test-stat-time.c (force_unlink): New function.
11398         (cleanup): Use it.
11399         (test_mtime): Remove the ctime related tests.
11400         (test_ctime): New function, containing the ctime related tests.
11401         (main): Call test_ctime, except on native Windows platforms.
11402
11403 2008-04-27  Bruno Haible  <bruno@clisp.org>
11404
11405         * lib/rpmatch.c (rpmatch): Add some comments.
11406         Reported by James Youngman <jay@gnu.org>.
11407
11408 2008-04-27  Bruno Haible  <bruno@clisp.org>
11409
11410         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
11411         quiet NaNs.
11412
11413 2008-04-27  Bruno Haible  <bruno@clisp.org>
11414
11415         Make test-yesno.sh work on mingw.
11416         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
11417         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
11418         (main): Set stdin to binary mode.
11419         * modules/yesno-tests (Depends-on): Add binary-io.
11420
11421 2008-04-27  Bruno Haible  <bruno@clisp.org>
11422
11423         Fix 'isfinite' on x86, x86_64, ia64 platforms.
11424         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
11425         argument that lie outside the IEEE 854 domain.
11426         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
11427         (gl_ISFINITE): Use it.
11428         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
11429
11430 2008-04-27  Bruno Haible  <bruno@clisp.org>
11431
11432         Allow local renaming in config.h.
11433         * lib/memrchr.c (memrchr): Don't undefine outside libc.
11434
11435 2008-04-27  Bruno Haible  <bruno@clisp.org>
11436
11437         * lib/memchr.c (__memchr): Change type of 'i'.
11438         * lib/memchr2.c (memchr2): Likewise.
11439
11440 2008-04-26  Eric Blake  <ebb9@byu.net>
11441         and Bruno Haible  <bruno@clisp.org>
11442
11443         Optimize and test memrchr.
11444         * modules/memrchr (Depends-on): Add intprops.
11445         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
11446         * modules/memrchr-tests: New file.
11447         * tests/test-memrchr.c: New file.
11448
11449 2008-04-26  Bruno Haible  <bruno@clisp.org>
11450
11451         Add tentative support for DragonFly BSD.
11452         * lib/stdio-impl.h: Add macros for DragonFly BSD.
11453         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
11454         fp.
11455         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11456         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
11457         * lib/fpurge.c (fpurge): Likewise.
11458         * lib/freadable.c (freaadable): Likewise.
11459         * lib/freadahead.c (freadahead): Likewise.
11460         * lib/freading.c (freading): Likewise.
11461         * lib/freadptr.c (freadptr): Likewise.
11462         * lib/freadseek.c (freadptrinc): Likewise.
11463         * lib/fseeko.c (fseeko): Likewise.
11464         * lib/fseterr.c (fseterr): Likewise.
11465         * lib/fwritable.c (fwritable): Likewise.
11466         * lib/fwriting.c (fwriting): Likewise.
11467
11468 2008-04-26  Bruno Haible  <bruno@clisp.org>
11469
11470         * lib/stdio-impl.h: New file.
11471         * lib/fbufmode.c: Include stdio-impl.h.
11472         (fbufmode): Use fp_, remove redundant #defines.
11473         * lib/fflush.c: Include stdio-impl.h.
11474         (clear_ungetc_buffer): Remove redundant #defines.
11475         * lib/fpurge.c: Include stdio-impl.h.
11476         (fpurge): Remove redundant #defines.
11477         * lib/freadable.c: Include stdio-impl.h.
11478         (freadable): Remove redundant #defines.
11479         * lib/freadahead.c: Include stdio-impl.h.
11480         (freadahead): Remove redundant #defines.
11481         * lib/freading.c: Include stdio-impl.h.
11482         (freading): Remove redundant #defines.
11483         * lib/freadptr.c: Include stdio-impl.h.
11484         (freadptr): Remove redundant #defines.
11485         * lib/freadseek.c: Include stdio-impl.h.
11486         (freadptrinc): Remove redundant #defines.
11487         * lib/fseeko.c: Include stdio-impl.h.
11488         (rpl_fseeko): Remove redundant #defines.
11489         * lib/fseterr.c: Include stdio-impl.h.
11490         (fseterr): Remove redundant #defines.
11491         * lib/fwritable.c: Include stdio-impl.h.
11492         (fwritable: Remove redundant #defines.
11493         * lib/fwriting.c: Include stdio-impl.h.
11494         (fwriting): Remove redundant #defines.
11495         * modules/fbufmode (Files): Add lib/stdio-impl.h.
11496         * modules/fflush (Files): Likewise.
11497         * modules/fpurge (Files): Likewise.
11498         * modules/freadable (Files): Likewise.
11499         * modules/freadahead (Files): Likewise.
11500         * modules/freading (Files): Likewise.
11501         * modules/freadptr (Files): Likewise.
11502         * modules/freadseek (Files): Likewise.
11503         * modules/fseeko (Files): Likewise.
11504         * modules/fseterr (Files): Likewise.
11505         * modules/fwritable (Files): Likewise.
11506         * modules/fwriting (Files): Likewise.
11507
11508 2008-04-26  Bruno Haible  <bruno@clisp.org>
11509
11510         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
11511         restore_seek_optimization, update_fpos_cache): New functions, extracted
11512         from rpl_fflush.
11513         (rpl_fflush): Use them.
11514         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
11515         (gl_REPLACE_FFLUSH): Use it.
11516
11517 2008-04-26  Bruno Haible  <bruno@clisp.org>
11518
11519         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
11520         on Solaris.
11521         * tests/test-xstrtoimax.sh: Likewise.
11522         * tests/test-xstrtoumax.sh: Likewise.
11523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11524
11525 2008-04-26  Bruno Haible  <bruno@clisp.org>
11526
11527         * modules/memchr-tests: New file.
11528         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
11529
11530 2008-04-26  Eric Blake  <ebb9@byu.net>
11531             Bruno Haible  <bruno@clisp.org>
11532
11533         * lib/memchr.c: Include intprops.h.
11534         (__memchr): Optimize parallel detection of matching bytes. Rename local
11535         variables. Add explanatory comments.
11536
11537 2008-04-26  Bruno Haible  <bruno@clisp.org>
11538
11539         Fix module 'memchr', broken since 2000-10-28.
11540         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
11541
11542 2008-04-26  Bruno Haible  <bruno@clisp.org>
11543
11544         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
11545         comments.
11546
11547 2008-04-25  Eric Blake  <ebb9@byu.net>
11548
11549         Use native fstatat on cygwin 1.7.0.
11550         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
11551         first.
11552
11553 2008-04-23  Eric Blake  <ebb9@byu.net>
11554
11555         Improve memchr2 performance.
11556         * lib/memchr2.c (memchr2): Further optimize parallel detection of
11557         NUL bytes.
11558         * modules/memchr2 (Depends-on): Use intprops.h.
11559
11560 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11561
11562         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
11563         an inline function instead of a CPP macro.  Patch by Ben Pfaff
11564         <blp@cs.stanford.edu>.
11565
11566 2008-04-23  Simon Josefsson  <simon@josefsson.org>
11567
11568         * lib/arpa_inet.in.h: New file.
11569
11570         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
11571         (Makefile.am): Sed in substitute header file.
11572
11573         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
11574         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
11575
11576         * modules/inet_ntop (configure.ac): Use
11577         gl_ARPA_INET_MODULE_INDICATOR.
11578
11579         * modules/inet_pton (configure.ac): Use
11580         gl_ARPA_INET_MODULE_INDICATOR.
11581
11582 2008-04-22  Jim Meyering  <meyering@redhat.com>
11583
11584         * modules/verify (License): Re-license as LGPLv2+.
11585
11586 2008-04-22  Simon Josefsson  <simon@josefsson.org>
11587
11588         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
11589         parameter to void* as per POSIX standard (MinGW uses char*).
11590
11591 2008-04-21  Bruno Haible  <bruno@clisp.org>
11592
11593         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11594         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11595         Define to replacements if REPLACE_ISWCNTRL is 1.
11596         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
11597         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
11598         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
11599         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
11600         what it fixes.
11601         * doc/posix-functions/iswalpha.texi: Likewise.
11602         * doc/posix-functions/iswblank.texi: Likewise.
11603         * doc/posix-functions/iswcntrl.texi: Likewise.
11604         * doc/posix-functions/iswdigit.texi: Likewise.
11605         * doc/posix-functions/iswgraph.texi: Likewise.
11606         * doc/posix-functions/iswlower.texi: Likewise.
11607         * doc/posix-functions/iswprint.texi: Likewise.
11608         * doc/posix-functions/iswpunct.texi: Likewise.
11609         * doc/posix-functions/iswspace.texi: Likewise.
11610         * doc/posix-functions/iswupper.texi: Likewise.
11611         * doc/posix-functions/iswxdigit.texi: Likewise.
11612         Reported by Alain Guibert.
11613
11614 2008-04-21  Bruno Haible  <bruno@clisp.org>
11615
11616         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
11617         Patch by Alain Guibert.
11618
11619 2008-04-21  Bruno Haible  <bruno@clisp.org>
11620
11621         Fix test failures on mingw.
11622         * tests/test-xstrtol.c (print_no_progname): New function.
11623         (main): Install it in error_print_progname hook.
11624         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
11625         * tests/test-xstrtoimax.sh: Likewise.
11626         * tests/test-xstrtoumax.sh: Likewise.
11627
11628 2008-04-21  Bruno Haible  <bruno@clisp.org>
11629
11630         Fix test failure on mingw.
11631         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
11632
11633 2008-04-21  Bruno Haible  <bruno@clisp.org>
11634
11635         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
11636         Actually assign a value.
11637
11638 2008-04-20  Bruno Haible  <bruno@clisp.org>
11639
11640         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
11641         take 2.
11642         * lib/canonicalize.c (canonicalize_file_name): Elide if the
11643         'canonicalize-lgpl' module is also used.
11644         * lib/canonicalize-lgpl.c: Undo last change.
11645         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
11646
11647 2008-04-20  Bruno Haible  <bruno@clisp.org>
11648
11649         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
11650         config.h. Provide _mkdir based fallback for mingw.
11651         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
11652         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
11653         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
11654         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
11655         rather than defining mkdir in config.h.
11656         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
11657         (gl_SYS_STAT_H_DEFAULTS): New macro.
11658         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
11659         HAVE_IO_H any more.
11660         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
11661         HAVE_DECL_MKDIR and HAVE_IO_H.
11662
11663 2008-04-20  Bruno Haible  <bruno@clisp.org>
11664
11665         * lib/isapipe.c: Port to native Windows platforms.
11666
11667 2008-04-20  Bruno Haible  <bruno@clisp.org>
11668
11669         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
11670
11671 2008-04-21  Eric Blake  <ebb9@byu.net>
11672
11673         Work around preprocessors that don't handle UINTMAX_MAX.
11674         * lib/memchr2.c (memchr2): Avoid embedded #if.
11675         Reported by Alain Guibert, fix suggested by Bruno Haible.
11676
11677 2008-04-21  Simon Josefsson  <simon@josefsson.org>
11678
11679         * doc/posix-functions/strftime.texi (strftime): Explain better
11680         Windows incompatibility.  Suggested by Micah Cowan
11681         <micah@cowan.name>.
11682
11683 2008-04-20  Bruno Haible  <bruno@clisp.org>
11684
11685         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
11686         unistr/u8-mblen.
11687
11688 2008-04-20  Bruno Haible  <bruno@clisp.org>
11689
11690         Fix test failure on platforms with non-GNU iconv.
11691         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
11692         (U_TO_U8): Use it, rather than u16_to_u8.
11693         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
11694         units at the end of the input string.
11695         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
11696
11697 2008-04-20  Bruno Haible  <bruno@clisp.org>
11698
11699         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
11700         when the resulting length is 0.
11701         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11702
11703 2008-04-20  Bruno Haible  <bruno@clisp.org>
11704
11705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
11706         works.
11707         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
11708
11709 2008-04-20  Bruno Haible  <bruno@clisp.org>
11710
11711         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
11712         * modules/tsearch-tests (configure.ac): Test for initstate function.
11713
11714 2008-04-20  Bruno Haible  <bruno@clisp.org>
11715
11716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
11717         for nlink_t if missing.
11718         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
11719
11720 2008-04-19  Bruno Haible  <bruno@clisp.org>
11721
11722         Work around snprintf bug on Linux libc5.
11723         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
11724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11725         gl_SNPRINTF_SIZE1.
11726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11727         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
11728         that test failed.
11729         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11730         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
11731         * modules/snprintf (Files): Add m4/printf.m4.
11732         * modules/vsnprintf (Files): Likewise.
11733         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
11734         * doc/posix-functions/vsnprintf.texi: Likewise.
11735
11736 2008-04-19  Bruno Haible  <bruno@clisp.org>
11737
11738         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
11739         from 0.0058 to less than 10^-7.
11740
11741 2008-04-19  Bruno Haible  <bruno@clisp.org>
11742
11743         Fix rounding when a precision is given.
11744         * lib/vasnprintf.c (is_borderline): New function.
11745         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
11746         9...9x.
11747         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
11748         %e, %g.
11749         * tests/test-vasprintf-posix.c (test_function): Likewise.
11750         * tests/test-snprintf-posix.h (test_function): Likewise.
11751         * tests/test-sprintf-posix.h (test_function): Likewise.
11752         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
11753         * tests/test-printf-posix.h (test_function): Likewise.
11754         * tests/test-printf-posix.output: Update.
11755         Reported by John Darrington <john@darrington.wattle.id.au> via
11756         Ben Pfaff <blp@cs.stanford.edu>.
11757
11758 2008-04-18  Simon Josefsson  <simon@josefsson.org>
11759
11760         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
11761         Suggested by Bruno Haible <bruno@clisp.org>.
11762
11763 2008-04-17  Bruno Haible  <bruno@clisp.org>
11764
11765         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
11766         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
11767         implementation.
11768         Patch by Bruce Merry <bmerry@gmail.com>.
11769
11770 2008-04-17  Simon Josefsson  <simon@josefsson.org>
11771
11772         * doc/posix-functions/strftime.texi (strftime): Mention that %e
11773         doesn't work under Windows.
11774
11775 2008-04-16  Bruno Haible  <bruno@clisp.org>
11776
11777         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
11778         New macros.
11779         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
11780         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
11781         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
11782         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
11783         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
11784         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
11785         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
11786         macros.
11787         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
11788         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
11789         Northern Sotho, Uighur.
11790
11791 2008-04-16  Bruno Haible  <bruno@clisp.org>
11792
11793         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
11794         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
11795         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
11796         Reported by Daniel Bergström <daniel@octocode.com>.
11797
11798 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
11799             Bruno Haible  <bruno@clisp.org>
11800
11801         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
11802         function.
11803         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
11804         New functions, mostly extracted from gl_locale_name_default.
11805         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
11806
11807 2008-04-16  Eric Blake  <ebb9@byu.net>
11808
11809         Adjust strtod detection to catch glibc 2.7 bug.
11810         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
11811         Reported by John Gatewood Ham.
11812
11813 2008-04-16  Bruno Haible  <bruno@clisp.org>
11814
11815         Add tentative support for Linux libc5.
11816         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
11817         * lib/fpurge.c (fpurge): Likewise.
11818         * lib/freadable.c (freadable): Likewise.
11819         * lib/freadahead.c (freadahead): Likewise.
11820         * lib/freading.c (freading): Likewise.
11821         * lib/freadptr.c (freadptr): Likewise.
11822         * lib/freadseek.c (freadptrinc): Likewise.
11823         * lib/fseeko.c (rpl_fseeko): Likewise.
11824         * lib/fseterr.c (fseterr): Likewise.
11825         * lib/fwritable.c (fwritable): Likewise.
11826         * lib/fwriting.c (fwriting): Likewise.
11827         Reported by Alain Guibert <alguibert+bts@free.fr>.
11828
11829 2008-04-15  Bruno Haible  <bruno@clisp.org>
11830
11831         * modules/mathl (configure.ac): Define module indicator.
11832
11833 2008-04-15  Bruno Haible  <bruno@clisp.org>
11834
11835         * lib/logl.c (logl): Remove unused variables.
11836
11837 2008-04-15  Bruno Haible  <bruno@clisp.org>
11838
11839         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
11840         fails.
11841
11842 2008-04-15  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/trim.c (trim2): Fix argument of isspace() macro.
11845
11846 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
11847
11848         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
11849         to 0.
11850         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
11851
11852 2008-04-14  Bruno Haible  <bruno@clisp.org>
11853
11854         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
11855         AC_LANG_PROGRAM argument.
11856         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
11857         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
11858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11859         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11860         * m4/math_h.m4 (gl_MATH_H): Likewise.
11861         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11863         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11864         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11865         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11866         * m4/regex.m4 (gl_REGEX): Likewise.
11867         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11868         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
11869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11870         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
11871         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11872         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11875
11876 2008-04-14  Jim Meyering  <meyering@redhat.com>
11877
11878         test-strtod: fix typos: s/abs/fabs/
11879         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
11880
11881 2008-04-13  Bruno Haible  <bruno@clisp.org>
11882
11883         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
11884         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
11885         module is also used and while not building the reloc-wrapper.
11886
11887 2008-04-13  Bruno Haible  <bruno@clisp.org>
11888
11889         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
11890
11891 2008-04-13  Bruno Haible  <bruno@clisp.org>
11892
11893         Fix AIX compilation failure introduced on 2008-04-02.
11894         * tests/test-frexp.c (exp): Undefine before redefining.
11895         * tests/test-frexpl.c (exp): Likewise.
11896
11897 2008-04-13  Bruno Haible  <bruno@clisp.org>
11898
11899         Work around a HP-UX stdio bug.
11900         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
11901         * tests/test-ftello.c (main): Likewise.
11902         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
11903         * doc/posix-functions/ftello.texi: Likewise.
11904
11905 2008-04-13  Bruno Haible  <bruno@clisp.org>
11906
11907         Make test-signbit pass on HP-UX/hppa.
11908         * tests/test-signbit.c (minus_zerol): New variable.
11909         (test_signbitl): Use it.
11910
11911 2008-04-13  Bruno Haible  <bruno@clisp.org>
11912
11913         Make truncl work on OSF/1 4.0.
11914         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
11915         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11916         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11918         HAVE_DECL_TRUNCL.
11919         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11920         HAVE_DECL_TRUNCL.
11921         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11922
11923 2008-04-13  Bruno Haible  <bruno@clisp.org>
11924
11925         * lib/unictype.h: Remove trailing comma from enumeration definitions.
11926
11927 2008-04-13  Bruno Haible  <bruno@clisp.org>
11928
11929         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11930         expression, so as to avoid HP-UX 11 cc compiler bug.
11931
11932 2008-04-13  Bruno Haible  <bruno@clisp.org>
11933
11934         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11935
11936 2008-04-13  Bruno Haible  <bruno@clisp.org>
11937
11938         * lib/git-merge-changelog.c: Remove empty declaration outside of
11939         functions.
11940
11941 2008-04-13  Bruno Haible  <bruno@clisp.org>
11942
11943         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11944
11945 2008-04-13  Bruno Haible  <bruno@clisp.org>
11946
11947         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11948         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11949         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11950         also if it exists but lacks definitions of the SHUT_* macros.
11951         * modules/sys_socket (Description): Update.
11952         Reported by Elbert Pol <e.pol@chello.nl>.
11953
11954 2008-04-13  Bruno Haible  <bruno@clisp.org>
11955
11956         * lib/localcharset.c (OS2): Don't redefine if already defined.
11957         Reported by Elbert Pol <e.pol@chello.nl>.
11958
11959 2008-04-13  Bruno Haible  <bruno@clisp.org>
11960
11961         * lib/binary-io.h [__EMX__]: Include <io.h>.
11962         Reported by Elbert Pol <e.pol@chello.nl>.
11963
11964 2008-04-12  Bruno Haible  <bruno@clisp.org>
11965
11966         * lib/fpucw.h: Enable the definitions also for x86_64.
11967         Needed for NetBSD/x86_64.
11968         Reported by Thomas Klausner <tk@giga.or.at>.
11969
11970 2008-04-12  Bruno Haible  <bruno@clisp.org>
11971
11972         * tests/test-strtod.c: Include isnand.h.
11973         (main): Use isnand instead of isnan.
11974         Reported by Jim Meyering.
11975
11976 2008-04-12  Bruno Haible  <bruno@clisp.org>
11977
11978         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11980
11981 2008-04-12  Jim Meyering  <meyering@redhat.com>
11982
11983         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11984
11985 2008-04-12  Bruno Haible  <bruno@clisp.org>
11986
11987         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11988         Reported by Elbert Pol <e.pol@chello.nl>.
11989
11990 2008-04-12  Eric Blake  <ebb9@byu.net>
11991
11992         Work around Solaris 10 math.h bug.
11993         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11994         (gl_MATH_H_DEFAULTS): Set up default.
11995         * modules/math (Makefile.am): Replace new indicators.
11996         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11997         * tests/test-math.c (main): Test this.
11998         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11999         * doc/posix-headers/math.texi (math.h): Mention bug.
12000         Reported by Nelson H. F. Beebe and Jim Meyering.
12001
12002 2008-04-11  Bruno Haible  <bruno@clisp.org>
12003
12004         Adapt to future versions of Apple GCC.
12005         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
12006         Reported by Peter O'Gorman <peter@pogma.com>.
12007
12008 2008-04-11  Bruno Haible  <bruno@clisp.org>
12009
12010         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
12011
12012 2008-04-11  Bruno Haible  <bruno@clisp.org>
12013
12014         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
12015
12016         * modules/getaddrinfo-tests (Makefile.am): Define
12017         test_getaddrinfo_LDADD.
12018
12019 2008-04-11  Bruno Haible  <bruno@clisp.org>
12020
12021         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
12022         (init): Fix syntax error.
12023         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
12024         is declared.
12025
12026 2008-04-11  Bruno Haible  <bruno@clisp.org>
12027
12028         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
12029         * modules/glob (Depends-on): Add stdbool.
12030
12031 2008-04-11  Bruno Haible  <bruno@clisp.org>
12032
12033         * lib/trim.c: Include <string.h>.
12034
12035 2008-04-11  Eric Blake  <ebb9@byu.net>
12036
12037         Avoid compile failure on OS/2.
12038         * lib/regex_internal.h (internal_function): Disable optimization
12039         on OS/2 (__EMX__), where it caused compiler error.
12040         Reported by Elbert Pol.
12041
12042 2008-04-11  Bruno Haible  <bruno@clisp.org>
12043
12044         Flush the standard error stream before aborting. Needed on mingw.
12045         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
12046         * tests/test-array_list.c (ASSERT): Likewise.
12047         * tests/test-array_oset.c (ASSERT): Likewise.
12048         * tests/test-avltree_list.c (ASSERT): Likewise.
12049         * tests/test-avltree_oset.c (ASSERT): Likewise.
12050         * tests/test-avltreehash_list.c (ASSERT): Likewise.
12051         * tests/test-binary-io.c (ASSERT): Likewise.
12052         * tests/test-byteswap.c (ASSERT): Likewise.
12053         * tests/test-c-ctype.c (ASSERT): Likewise.
12054         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
12055         * tests/test-c-strcasestr.c (ASSERT): Likewise.
12056         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
12057         * tests/test-c-strstr.c (ASSERT): Likewise.
12058         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
12059         * tests/test-canonicalize.c (ASSERT): Likewise.
12060         * tests/test-carray_list.c (ASSERT): Likewise.
12061         * tests/test-ceilf1.c (ASSERT): Likewise.
12062         * tests/test-ceilf2.c (ASSERT): Likewise.
12063         * tests/test-ceill.c (ASSERT): Likewise.
12064         * tests/test-count-one-bits.c (ASSERT): Likewise.
12065         * tests/test-fbufmode.c (ASSERT): Likewise.
12066         * tests/test-fflush2.c (ASSERT): Likewise.
12067         * tests/test-floorf1.c (ASSERT): Likewise.
12068         * tests/test-floorf2.c (ASSERT): Likewise.
12069         * tests/test-floorl.c (ASSERT): Likewise.
12070         * tests/test-fopen.c (ASSERT): Likewise.
12071         * tests/test-fpending.c (ASSERT): Likewise.
12072         * tests/test-fprintf-posix.c (ASSERT): Likewise.
12073         * tests/test-fpurge.c (ASSERT): Likewise.
12074         * tests/test-freadable.c (ASSERT): Likewise.
12075         * tests/test-freadahead.c (ASSERT): Likewise.
12076         * tests/test-freading.c (ASSERT): Likewise.
12077         * tests/test-freadptr.c (ASSERT): Likewise.
12078         * tests/test-freadptr2.c (ASSERT): Likewise.
12079         * tests/test-freadseek.c (ASSERT): Likewise.
12080         * tests/test-freopen.c (ASSERT): Likewise.
12081         * tests/test-frexp.c (ASSERT): Likewise.
12082         * tests/test-frexpl.c (ASSERT): Likewise.
12083         * tests/test-fseek.c (ASSERT): Likewise.
12084         * tests/test-fseeko.c (ASSERT): Likewise.
12085         * tests/test-fstrcmp.c (ASSERT): Likewise.
12086         * tests/test-ftell.c (ASSERT): Likewise.
12087         * tests/test-ftello.c (ASSERT): Likewise.
12088         * tests/test-func.c (ASSERT): Likewise.
12089         * tests/test-fwritable.c (ASSERT): Likewise.
12090         * tests/test-fwriting.c (ASSERT): Likewise.
12091         * tests/test-getdelim.c (ASSERT): Likewise.
12092         * tests/test-getline.c (ASSERT): Likewise.
12093         * tests/test-i-ring.c (ASSERT): Likewise.
12094         * tests/test-iconv-utf.c (ASSERT): Likewise.
12095         * tests/test-iconv.c (ASSERT): Likewise.
12096         * tests/test-isfinite.c (ASSERT): Likewise.
12097         * tests/test-isnand.c (ASSERT): Likewise.
12098         * tests/test-isnanf.c (ASSERT): Likewise.
12099         * tests/test-isnanl.h (ASSERT): Likewise.
12100         * tests/test-ldexpl.c (ASSERT): Likewise.
12101         * tests/test-linked_list.c (ASSERT): Likewise.
12102         * tests/test-linkedhash_list.c (ASSERT): Likewise.
12103         * tests/test-localename.c (ASSERT): Likewise.
12104         * tests/test-lseek.c (ASSERT): Likewise.
12105         * tests/test-mbscasecmp.c (ASSERT): Likewise.
12106         * tests/test-mbscasestr1.c (ASSERT): Likewise.
12107         * tests/test-mbscasestr2.c (ASSERT): Likewise.
12108         * tests/test-mbscasestr3.c (ASSERT): Likewise.
12109         * tests/test-mbscasestr4.c (ASSERT): Likewise.
12110         * tests/test-mbschr.c (ASSERT): Likewise.
12111         * tests/test-mbscspn.c (ASSERT): Likewise.
12112         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
12113         * tests/test-mbspbrk.c (ASSERT): Likewise.
12114         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
12115         * tests/test-mbsrchr.c (ASSERT): Likewise.
12116         * tests/test-mbsspn.c (ASSERT): Likewise.
12117         * tests/test-mbsstr1.c (ASSERT): Likewise.
12118         * tests/test-mbsstr2.c (ASSERT): Likewise.
12119         * tests/test-mbsstr3.c (ASSERT): Likewise.
12120         * tests/test-memchr2.c (ASSERT): Likewise.
12121         * tests/test-memmem.c (ASSERT): Likewise.
12122         * tests/test-open.c (ASSERT): Likewise.
12123         * tests/test-printf-frexp.c (ASSERT): Likewise.
12124         * tests/test-printf-frexpl.c (ASSERT): Likewise.
12125         * tests/test-printf-posix.c (ASSERT): Likewise.
12126         * tests/test-quotearg.c (ASSERT): Likewise.
12127         * tests/test-rbtree_list.c (ASSERT): Likewise.
12128         * tests/test-rbtree_oset.c (ASSERT): Likewise.
12129         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
12130         * tests/test-round1.c (ASSERT): Likewise.
12131         * tests/test-roundf1.c (ASSERT): Likewise.
12132         * tests/test-roundl.c (ASSERT): Likewise.
12133         * tests/test-signbit.c (ASSERT): Likewise.
12134         * tests/test-sleep.c (ASSERT): Likewise.
12135         * tests/test-snprintf-posix.c (ASSERT): Likewise.
12136         * tests/test-snprintf.c (ASSERT): Likewise.
12137         * tests/test-sprintf-posix.c (ASSERT): Likewise.
12138         * tests/test-stat-time.c (ASSERT): Likewise.
12139         * tests/test-strcasestr.c (ASSERT): Likewise.
12140         * tests/test-strerror.c (ASSERT): Likewise.
12141         * tests/test-striconv.c (ASSERT): Likewise.
12142         * tests/test-striconveh.c (ASSERT): Likewise.
12143         * tests/test-striconveha.c (ASSERT): Likewise.
12144         * tests/test-strsignal.c (ASSERT): Likewise.
12145         * tests/test-strstr.c (ASSERT): Likewise.
12146         * tests/test-strtod.c (ASSERT): Likewise.
12147         * tests/test-trunc1.c (ASSERT): Likewise.
12148         * tests/test-trunc2.c (ASSERT): Likewise.
12149         * tests/test-truncf1.c (ASSERT): Likewise.
12150         * tests/test-truncf2.c (ASSERT): Likewise.
12151         * tests/test-truncl.c (ASSERT): Likewise.
12152         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
12153         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
12154         * tests/test-vasnprintf.c (ASSERT): Likewise.
12155         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
12156         * tests/test-vasprintf.c (ASSERT): Likewise.
12157         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
12158         * tests/test-vprintf-posix.c (ASSERT): Likewise.
12159         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
12160         * tests/test-vsnprintf.c (ASSERT): Likewise.
12161         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
12162         * tests/test-wcwidth.c (ASSERT): Likewise.
12163         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
12164         * tests/test-xprintf-posix.c (ASSERT): Likewise.
12165         * tests/test-xvasprintf.c (ASSERT): Likewise.
12166         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
12167         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
12168         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
12169         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
12170         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
12171         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
12172         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
12173         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
12174         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
12175         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
12176         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
12177         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
12178         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
12179         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
12180         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
12181         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
12182         * tests/unictype/test-block_list.c (ASSERT): Likewise.
12183         * tests/unictype/test-block_of.c (ASSERT): Likewise.
12184         * tests/unictype/test-block_test.c (ASSERT): Likewise.
12185         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
12186         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
12187         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
12188         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
12189         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
12190         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
12191         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
12192         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
12193         * tests/unictype/test-combining.c (ASSERT): Likewise.
12194         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
12195         * tests/unictype/test-digit.c (ASSERT): Likewise.
12196         * tests/unictype/test-mirror.c (ASSERT): Likewise.
12197         * tests/unictype/test-numeric.c (ASSERT): Likewise.
12198         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
12199         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
12200         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
12201         * tests/unictype/test-scripts.c (ASSERT): Likewise.
12202         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
12203         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
12204         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
12205         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
12206         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
12207         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
12208         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
12209         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
12210         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
12211         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
12212         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
12213         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
12214         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
12215         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
12216         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
12217         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
12218         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
12219         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
12220         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
12221         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
12222         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
12223         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
12224         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
12225         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
12226         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
12227         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
12228         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
12229         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
12230         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
12231         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
12232         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
12233         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
12234         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
12235         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
12236         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
12237         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
12238         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
12239         Reported by Eric Blake.
12240
12241 2008-04-11  Bruno Haible  <bruno@clisp.org>
12242
12243         * lib/wchar.in.h: Tweak comment.
12244
12245 2008-04-11  Bruno Haible  <bruno@clisp.org>
12246
12247         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
12248         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
12249         gl_COMMON.
12250         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
12251
12252 2008-04-11  Bruno Haible  <bruno@clisp.org>
12253
12254         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
12255
12256 2008-04-11  Simon Josefsson  <simon@josefsson.org>
12257
12258         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
12259         of attempting to use non-existing /dev/*random.  Based on patch
12260         from Adam Strzelecki <ono@java.pl> in
12261         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
12262
12263 2008-04-08  Bruno Haible  <bruno@clisp.org>
12264
12265         Add tentative support for emx+gcc.
12266         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
12267         * lib/fpurge.c (fpurge): Likewise.
12268         * lib/freadable.c (freadable): Likewise.
12269         * lib/freadahead.c (freadahead): Likewise.
12270         * lib/freading.c (freading): Likewise.
12271         * lib/freadptr.c (freadptr): Likewise.
12272         * lib/freadseek.c (freadptrinc): Likewise.
12273         * lib/fseeko.c (rpl_fseeko): Likewise.
12274         * lib/fseterr.c (fseterr): Likewise.
12275         * lib/fwritable.c (fwritable): Likewise.
12276         * lib/fwriting.c (fwriting): Likewise.
12277         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
12278
12279 2008-04-09  Eric Blake  <ebb9@byu.net>
12280
12281         Avoid some autoconf warnings.
12282         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
12283         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
12284         * m4/afs.m4 (gl_AFS): Likewise.
12285         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
12286         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
12287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12288         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
12289         (gl_INTEGER_TYPE_SUFFIX): Likewise.
12290         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
12291         (AC_CHECK_DECLS_ONCE): Likewise.
12292         Rename file...
12293         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
12294         gnulib-tool requires autoconf 2.59 or better.
12295         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
12296
12297 2008-04-08  Eric Blake  <ebb9@byu.net>
12298
12299         Use 'git describe --match' if present (added in git 1.5.5).
12300         * build-aux/git-version-gen: Limit result to tags that match 'v*'
12301         if possible.
12302
12303 2008-04-08  Bruno Haible  <bruno@clisp.org>
12304
12305         Add tentative support for OpenServer.
12306         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
12307         _ptr, _cnt.
12308         * lib/fpurge.c (fpurge): Likewise.
12309         * lib/freadable.c (freadable): Likewise.
12310         * lib/freadahead.c (freadahead): Likewise.
12311         * lib/freading.c (freading): Likewise.
12312         * lib/freadptr.c (freadptr): Likewise.
12313         * lib/freadseek.c (freadptrinc): Likewise.
12314         * lib/fseeko.c (rpl_fseeko): Likewise.
12315         * lib/fseterr.c (fseterr): Likewise.
12316         * lib/fwritable.c (fwritable): Likewise.
12317         * lib/fwriting.c (fwriting): Likewise.
12318         Reported by Roger Cornelius <rac@tenzing.org> and
12319         Brian K. White <brian@aljex.com>.
12320
12321 2008-04-06  Jim Meyering  <meyering@redhat.com>
12322
12323         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
12324
12325 2008-04-06  Bruno Haible  <bruno@clisp.org>
12326
12327         Avoid possible error with non-ASCII bytes in UTF-8 locales.
12328         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
12329         * tests/test-printf-posix.sh: Likewise.
12330         * tests/test-vfprintf-posix.sh: Likewise.
12331         * tests/test-vprintf-posix.sh: Likewise.
12332         * tests/test-xprintf-posix.sh: Likewise.
12333
12334 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12335
12336         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
12337         hide error from 'ls', needed on OS/2.
12338         Report by Elbert Pol <elbert.pol@gmail.com>.
12339
12340 2008-04-04  Eric Blake  <ebb9@byu.net>
12341
12342         Make test-fseeko.c failures meaningful.
12343         * tests/test-fseeko.c: Print line number on failure.
12344         * tests/test-fseek.c: Likewise.
12345         Reported by Nelson H. F. Beebe.
12346
12347         Improve strtod bug detection check.
12348         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
12349         required for Solaris 10.
12350         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
12351
12352 2008-04-04  Bruno Haible  <bruno@clisp.org>
12353
12354         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
12355         by m4/setenv.m4.
12356
12357 2008-04-03  Eric Blake  <ebb9@byu.net>
12358
12359         Ensure sane .version contents.
12360         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
12361         version string.
12362         * build-aux/git-version-gen: Improve documentation.
12363
12364         Make GNU make output nicer.
12365         * top/GNUmakefile [!_have-Makefile]: Add dependency on
12366         MAKECMDGOALS to enforce message for all command line targets.  Set
12367         srcdir for use in maint.mk.
12368
12369         Another maintainer tweak.
12370         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
12371         a target that regenerates version.
12372
12373 2008-04-03  Jim Meyering  <meyering@redhat.com>
12374
12375         vc-list-files: don't cause coreutils "make po-check" failure
12376         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
12377
12378 2008-04-03  Eric Blake  <ebb9@byu.net>
12379
12380         Allow VPATH usage of vc-list-files.
12381         * build-aux/vc-list-files (scriptversion): Add timestamp.
12382         (options): Add --help, --version, -C.
12383         (CVS): Support installed cvsu.
12384
12385 2008-04-02  Bruno Haible  <bruno@clisp.org>
12386
12387         Avoid some "statement with no effect" warnings from gcc.
12388         * tests/test-wctype.c (main): Explicitly ignore unused values.
12389         Reported by Jim Meyering.
12390
12391 2008-04-02  Jim Meyering  <meyering@redhat.com>
12392
12393         Avoid some warnings from "gcc -Wshadow".
12394         * tests/test-frexp.c (exp): Define to a different identifier.
12395         * tests/test-frexpl.c (exp): Likewise.
12396
12397 2008-04-03  Jim Meyering  <meyering@redhat.com>
12398
12399         bootstrap: remove dangling *.[ch] symlinks from lib
12400         * build-aux/bootstrap [dangling symlink removal]: Move find's
12401         -depth option to precede all others, to avoid a warning.
12402         Remove *.[ch] files too, and from "$source_base" (usually lib/).
12403
12404 2008-04-02  Bruno Haible  <bruno@clisp.org>
12405
12406         Avoid some warnings from "gcc -Wshadow".
12407         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
12408         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
12409         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
12410         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
12411         Reported by Jim Meyering.
12412
12413 2008-04-01  Bruno Haible  <bruno@clisp.org>
12414
12415         Fix test to work on IRIX 6.5 with cc.
12416         * tests/test-math.c (numeric_equal): New function.
12417         (main): Use it.
12418
12419 2008-04-01  Bruno Haible  <bruno@clisp.org>
12420
12421         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
12422
12423 2008-04-01  Bruno Haible  <bruno@clisp.org>
12424
12425         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
12426         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12427         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
12428         (Depends-on): Remove math.
12429
12430         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
12431         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12432         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
12433         (Depends-on): Remove math.
12434
12435         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
12436         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12437         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
12438         (Depends-on): Remove math.
12439         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
12440         (Depends-on): Remove math.
12441
12442         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
12443         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
12444         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
12445         (Depends-on): Remove math.
12446         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
12447         (Depends-on): Remove math.
12448
12449         * tests/test-round1.c: Include nan.h.
12450         (main): Use NaNd instead of NAN.
12451         * modules/round-tests (Files): Add tests/nan.h.
12452
12453         * tests/test-trunc1.c: Include nan.h.
12454         (main): Use NaNd instead of NAN.
12455         * modules/trunc-tests (Files): Add tests/nan.h.
12456
12457         * tests/test-roundf1.c: Include nan.h.
12458         (main): Use NaNf instead of NAN.
12459         * modules/roundf-tests (Files): Add tests/nan.h.
12460
12461         * tests/test-truncf1.c: Include nan.h.
12462         (main): Use NaNf instead of NAN.
12463         * modules/truncf-tests (Files): Add tests/nan.h.
12464
12465         * tests/test-ceilf1.c: Include nan.h.
12466         (main): Use NaNf instead of NAN.
12467         * modules/ceilf-tests (Files): Add tests/nan.h.
12468
12469         * tests/test-floorf1.c: Include nan.h.
12470         (main): Use NaNf instead of NAN.
12471         * modules/floorf-tests (Files): Add tests/nan.h.
12472
12473         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
12474         (main): Use NaNf instead of NAN.
12475         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
12476
12477         * tests/test-isnand.c: Include nan.h instead of <math.h>.
12478         (main): Use NaNd instead of NAN.
12479         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
12480
12481         * tests/test-frexp.c: Include nan.h.
12482         (main): Use NaNd instead of NAN.
12483         * modules/frexp-tests (Files): Add tests/nan.h.
12484
12485         * lib/isnan.c: Don't include <math.h>.
12486         (FUNC): Don't use NAN macro.
12487         * modules/isnand-nolibm (Depends-on): Remove math.
12488         * modules/isnanf-nolibm (Depends-on): Remove math.
12489         * modules/isnanl (Depends-on): Remove math.
12490         * modules/isnanl-nolibm (Depends-on): Remove math.
12491
12492         * tests/nan.h: New file.
12493
12494 2008-04-01  Eric Blake  <ebb9@byu.net>
12495
12496         Fix typos.
12497         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
12498         values to be the right type.
12499
12500         For now, cater to gnulib strtod inaccuracies.
12501         * tests/test-strtod.c (main): Allow 1-ulp error on expected
12502         fractional results.  While not as nice from a QoI perspective, it
12503         is a quicker patch than correctly implementing decimal to binary
12504         rounding.
12505
12506 2008-03-31  Eric Blake  <ebb9@byu.net>
12507
12508         Guarantee a definition of NAN.
12509         * lib/math.in.h (NAN): Define if missing.
12510         * tests/test-math.c (main): Test it.
12511         * doc/posix-headers/math.texi (math.h): Document this.
12512         * lib/isnan.c (rpl_isnand): Use it.
12513         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
12514         * tests/test-floorf1.c (NaN): Likewise.
12515         * tests/test-frexp.c (NaN): Likewise.
12516         * tests/test-isnand.c (NaN): Likewise.
12517         * tests/test-isnanf.c (NaN): Likewise.
12518         * tests/test-round1.c (NaN): Likewise.
12519         * tests/test-roundf1.c (NaN): Likewise.
12520         * tests/test-snprintf-posix.h (NaN): Likewise.
12521         * tests/test-sprintf-posix.h (NaN): Likewise.
12522         * tests/test-trunc1.c (NaN): Likewise.
12523         * tests/test-truncf1.c (NaN): Likewise.
12524         * tests/test-vasnprintf-posix.c (NaN): Likewise.
12525         * tests/test-vasprintf-posix.c (NaN): Likewise.
12526         * modules/isnand-nolibm (Depends-on): Add math.
12527         * modules/isnanf-nolibm (Depends-on): Likewise.
12528         * modules/isnanl (Depends-on): Likewise.
12529         * modules/isnanl-nolibm (Depends-on): Likewise.
12530         * modules/snprintf-posix-tests (Depends-on): Likewise.
12531         * modules/sprintf-posix-tests (Depends-on): Likewise.
12532         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
12533         * modules/vsprintf-posix-tests (Depends-on): Likewise.
12534         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
12535         * modules/vasprintf-posix-tests (Depends-on): Likewise.
12536
12537 2008-03-31  Bruno Haible  <bruno@clisp.org>
12538
12539         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
12540         * doc/posix-functions/strtod.texi: Likewise.
12541
12542 2008-03-31  Bruno Haible  <bruno@clisp.org>
12543
12544         * tests/test-strtod.c (main): Don't use C99 syntax.
12545
12546 2008-03-31  Bruno Haible  <bruno@clisp.org>
12547
12548         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
12549         Reported by Eric Blake.
12550
12551 2008-03-31  Jim Meyering  <meyering@redhat.com>
12552
12553         Don't compare actual signbit return values.
12554         * tests/test-strtod.c (main): Rather, compare only their
12555         zero/non-zero nature.
12556
12557 2008-03-31  Eric Blake  <ebb9@byu.net>
12558
12559         More strtod documentation.
12560         * doc/posix-functions/strtod.texi (strtod): Interpret more test
12561         failures as distinct bugs.
12562
12563 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12564
12565         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
12566         Problem reported by Erik Benada in
12567         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
12568
12569 2008-03-30  Bruno Haible  <bruno@clisp.org>
12570
12571         * tests/test-strtod.c: Add comments about which assertion fails on which
12572         platform.
12573         * doc/posix-functions/strtod.texi: Add info about many more platforms.
12574
12575 2008-03-30  Eric Blake  <ebb9@byu.net>
12576
12577         Test signbit behavior on zeros.
12578         * tests/test-signbit.c (test_signbitf): Add tests for zero.
12579         (test_signbitd, test_signbitl): Likewise.
12580
12581         More strtod touchups.
12582         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
12583         sign of negative underflow, for now.  Use .5, not .1.
12584         * doc/posix-functions/strtod.texi (strtod): Mention these
12585         limitations.
12586         Reported by Jim Meyering.
12587
12588 2008-03-30  Bruno Haible  <bruno@clisp.org>
12589
12590         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
12591         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
12592
12593 2008-03-30  Bruno Haible  <bruno@clisp.org>
12594
12595         Avoid failure when attempting to return empty iconv results on some
12596         platforms.
12597         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
12598         allocation, don't report ENOMEM when the resulting string is empty.
12599
12600 2008-03-30  Bruno Haible  <bruno@clisp.org>
12601
12602         Fix buffer overrun.
12603         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
12604         Don't consider the width for tmp_length. Check count against tmp_length
12605         before doing the padding. Ensure enough allocation during padding.
12606
12607 2008-03-30  Eric Blake  <ebb9@byu.net>
12608
12609         strtod touchups.
12610         * lib/strtod.c (strtod): Avoid compiler warnings.
12611         Reported by Jim Meyering.
12612
12613 2008-03-30  Bruno Haible  <bruno@clisp.org>
12614
12615         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
12616         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
12617         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
12618         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
12619         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
12620         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
12621         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
12622         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
12623
12624         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
12625         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
12626         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
12627         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
12628         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
12629         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
12630         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
12631         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
12632
12633         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
12634         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
12635         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
12636         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
12637         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
12638         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
12639         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
12640         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
12641
12642         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
12643         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
12644
12645         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
12646         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
12647
12648         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
12649         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
12650
12651         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
12652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
12653         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
12654
12655         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
12656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
12657         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
12658
12659         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
12660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
12661         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
12662
12663         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
12664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
12665         * modules/vasprintf (Depends-on): Add EOVERFLOW.
12666
12667         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
12668         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
12669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
12670         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
12671         (Depends-on): Add EOVERFLOW.
12672         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
12673         (Depends-on): Add EOVERFLOW.
12674         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12675         (Depends-on): Add EOVERFLOW.
12676         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12677         (Depends-on): Add EOVERFLOW.
12678         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12679         (Depends-on): Add EOVERFLOW.
12680         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12681         (Depends-on): Add EOVERFLOW.
12682         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12683         (Depends-on): Add EOVERFLOW.
12684         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12685         (Depends-on): Add EOVERFLOW.
12686
12687         * lib/sprintf.c (EOVERFLOW): Remove fallback.
12688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
12689         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
12690
12691         * lib/snprintf.c (EOVERFLOW): Remove fallback.
12692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
12693         * modules/snprintf (Depends-on): Add EOVERFLOW.
12694
12695         * lib/poll.c (EOVERFLOW): Remove fallback.
12696         * modules/poll (Depends-on): Add EOVERFLOW.
12697
12698         * lib/getugroups.c (EOVERFLOW): Remove fallback.
12699         * modules/getugroups (Depends-on): Add EOVERFLOW.
12700
12701         * lib/getdelim.c (EOVERFLOW): Remove fallback.
12702         * modules/getdelim (Depends-on): Add EOVERFLOW.
12703
12704         * lib/ftell.c (EOVERFLOW): Remove fallback.
12705         * modules/ftell (Depends-on): Add EOVERFLOW.
12706
12707         * lib/fprintf.c (EOVERFLOW): Remove fallback.
12708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
12709         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
12710
12711         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
12712
12713         * modules/EOVERFLOW-tests: New file.
12714         * tests/test-EOVERFLOW.c: New file.
12715
12716         * modules/EOVERFLOW: New file.
12717         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
12718
12719 2008-03-30  Bruno Haible  <bruno@clisp.org>
12720
12721         Fix bug introduced on 2007-06-10.
12722         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
12723         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
12724
12725 2008-03-30  Bruno Haible  <bruno@clisp.org>
12726
12727         Improve freadseek's efficiency after ungetc.
12728         * lib/freadseek.c: Include freadahead.h.
12729         (freadptrinc): New function, extracted from freadseek.
12730         (freadseek): Use it in a loop. Use freadahead to determine the number
12731         of loop iterations.
12732         * modules/freadseek (Depends-on): Add freadahead.
12733         (configure.ac): Require AC_C_INLINE.
12734
12735 2008-03-30  Bruno Haible  <bruno@clisp.org>
12736
12737         * lib/freadseek.c (freadseek): Don't ignore the return value of
12738         freadptr.
12739
12740 2008-03-29  Eric Blake  <ebb9@byu.net>
12741
12742         Add hex float support.
12743         * modules/strtod (Depends-on): Add c-ctype.
12744         (Link): Mention POW_LIB.
12745         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
12746         whitespace between 'e' and exponent.
12747         * tests/test-strtod.c (main): Enable hex float tests.
12748         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
12749         now provides.
12750
12751         Document various strtod bugs, with some fixes.
12752         * doc/posix-functions/strtod.texi (strtod): Document bugs with
12753         "-0x", "inf", "nan", and hex constants.
12754         * doc/posix-functions/atof.texi (atof): Likewise.
12755         * modules/stdlib (Makefile.am): Support strtod.
12756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
12757         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
12758         detect additional strtod bugs.
12759         * lib/stdlib.in.h (rpl_strtod): Add declarations.
12760         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
12761         bool where appropriate.  Parse 'inf' and 'nan'.
12762         * tests/test-strtod.c: New file.
12763         * modules/strtod (Depends-on): Add stdbool, stdlib.
12764         (configure.ac): Turn on module indicator.
12765         * modules/strtod-tests: New module.
12766
12767 2008-03-29  Eric Blake  <ebb9@byu.net>
12768
12769         Fix ftell on mingw.
12770         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
12771         * modules/ftell-tests (Depends-on): Add binary-io.
12772         * modules/ftello-tests (Depends-on): Likewise.
12773         * tests/test-ftell.c (main): Enhance test to cover behavior after
12774         ungetc.  Enforce binary mode.
12775         * tests/test-ftello.c (main): Likewise.
12776
12777         Pass test-freadseek on cygwin.
12778         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
12779         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
12780         ungetc buffer.
12781
12782         * tests/test-fflush2.c (main): Fix typo.
12783
12784 2008-03-29  Bruno Haible  <bruno@clisp.org>
12785
12786         * tests/test-fflush2.c (main): Temporarily disable the contents of
12787         this test.
12788         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
12789         Reported by Eric Blake.
12790
12791 2008-03-28  Simon Josefsson  <simon@josefsson.org>
12792
12793         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
12794         (GC_SHA224_DIGEST_SIZE): Add.
12795
12796         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
12797         (gc_hash_digest_length): Likewise.
12798         (gc_hash_buffer): Likewise.
12799
12800 2008-03-25  Bruno Haible  <bruno@clisp.org>
12801
12802         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
12803         detail which gettext release to use.
12804         Reported by Simon Josefsson.
12805
12806 2008-03-26  Jim Meyering  <meyering@redhat.com>
12807
12808         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
12809         * modules/gnumakefile (clean-GNUmakefile): Also, use
12810         test ... && ... || : syntax rather than if-then ... fi.
12811
12812         gnumakefile: Don't double-quote-expand $(VPATH) value.
12813         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
12814
12815 2008-03-24  Eric Blake  <ebb9@byu.net>
12816
12817         Alter GNUmakefile to install into top directory.
12818         * modules/maintainer-makefile: Split, and add dependency...
12819         * modules/gnumakefile: to this new module.
12820         * build-aux/GNUmakefile: Move...
12821         * top/GNUmakefile: ...here.
12822         * build-aux/maint.mk: Move...
12823         * top/maint.mk: ...here.
12824         * MODULES.html.sh (Support for maintaining...): Document new
12825         module.
12826
12827 2008-03-23  Bruno Haible  <bruno@clisp.org>
12828
12829         * gnulib-tool: New options --vc-files, --no-vc-files.
12830         (func_usage): Document them.
12831         (vc_files): New variable.
12832         (func_import): Consider vc_files.
12833         (func_create_testdir): Set vc_files to empty.
12834         Suggested by Jim Meyering and Karl Berry.
12835
12836 2008-03-23  Bruno Haible  <bruno@clisp.org>
12837
12838         Fix regex compilation error on HP-UX 11.
12839         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
12840         * modules/regex (Files): Add m4/mbstate_t.m4.
12841         Reported by Ton Voon <ton.voon@altinity.com>.
12842
12843 2008-03-23  Bruno Haible  <bruno@clisp.org>
12844
12845         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
12846
12847 2008-03-23  Eric Blake  <ebb9@byu.net>
12848             Bruno Haible  <bruno@clisp.org>
12849
12850         Install files from top/ in the destination directory.
12851         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12852         augmentation also for the files from top/.
12853         (func_import, func_create_testdir): Rewrite file names:
12854         top/filename -> filename.
12855
12856 2008-03-23  Bruno Haible  <bruno@clisp.org>
12857
12858         Tweak "gnulib --version" output.
12859         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
12860
12861 2008-03-23  Bruno Haible  <bruno@clisp.org>
12862
12863         Tweak "gnulib --version" output.
12864         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
12865         rather than contents of ChangeLog, when possible.
12866
12867 2008-03-21  Eric Blake  <ebb9@byu.net>
12868
12869         More --version tweaks.
12870         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
12871         date of last ChangeLog entry.
12872
12873 2008-03-21  Jim Meyering  <meyering@redhat.com>
12874
12875         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
12876
12877 2008-03-20  Eric Blake  <ebb9@byu.net>
12878
12879         VPATH fix.
12880         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
12881
12882 2008-03-20  Simon Josefsson  <simon@josefsson.org>
12883
12884         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
12885         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
12886
12887 2008-03-20  Eric Blake  <ebb9@byu.net>
12888
12889         Sync GNUmakefile with coreutils.
12890         * build-aux/GNUmakefile (have-Makefile): Rename...
12891         (_have-Makefile): ...to this, for namespace consideration.
12892         (GNUmakefile.cfg): Include, if present.
12893         (_autoreconf): Define a default.
12894         (_is-dist-target): New rule for rebuilds to pick up intra-release
12895         version.
12896         (maint-cfg.mk): Rename...
12897         (cfg.mk): ...to this.
12898
12899 2008-03-18  Jim Meyering  <meyering@redhat.com>
12900
12901         New script and module: mktempd
12902         * MODULES.html.sh (maint+release support): Add mktempd.
12903         * build-aux/mktempd: New file.
12904         * modules/mktempd: New file.
12905
12906 2008-03-15  Jim Meyering  <meyering@redhat.com>
12907
12908         Undo last change.
12909         * lib/sha1.c, lib/md5.c: 63 != ~63.
12910         Reported by Andreas Schwab.
12911
12912         sha1.c, md5.c: Hoist a redundant expression.
12913         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
12914         "ctx->buflen" only once, before calling *_process_block.
12915         * lib/md5.c (md5_process_bytes): Likewise.
12916
12917 2008-03-14  Eric Blake  <ebb9@byu.net>
12918
12919         Bump copyright year in files generated by gnulib-tool.
12920         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12921         gnulib-tool, rather than hard-coding it.
12922
12923         Fix 'gnulib-tool --version' output to work with git.
12924         * gnulib-tool (func_gnulib_dir): New function, extracted from...
12925         (startup): ...here.
12926         (func_version): Use it to invoke git-version-gen, rather than
12927         relying on CVS keyword expansion.  Modernize wording.
12928         (cvsdatestamp, last_checkin_date, version): Kill unused
12929         variables.
12930
12931 2008-03-12  Jim Meyering  <meyering@redhat.com>
12932
12933         Recognize optional cast of the argument to free.
12934         * build-aux/useless-if-before-free: Update regexps.
12935
12936         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12937
12938 2008-03-11  Bruno Haible  <bruno@clisp.org>
12939
12940         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12941         by a single package.
12942         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12943         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12944         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12945         Reported by Sam Steingold <sds@gnu.org>.
12946
12947 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12948
12949         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12950         repositories.
12951
12952 2008-03-11  Bruno Haible  <bruno@clisp.org>
12953
12954         Avoid conflicts between local macro definitions.
12955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12956         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12957
12958 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
12959             Bruno Haible  <bruno@clisp.org>
12960
12961         Make va_copy work with some version of xlc on AIX 5.1.
12962         * lib/stdarg.in.h: New file.
12963         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12964         On AIX, use a <stdarg.h> file substitute.
12965         * modules/stdarg (Files): Add lib/stdarg.in.h.
12966         (Depends-on): Add include_next.
12967         (Makefile.am): Build a stdarg.h substitute if requested.
12968         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12969
12970 2008-03-10  Bruno Haible  <bruno@clisp.org>
12971
12972         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12974         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12975
12976 2008-03-10  Bruno Haible  <bruno@clisp.org>
12977
12978         * modules/stdlib (Depends-on): Add include_next, remove
12979         absolute-header.
12980
12981 2008-03-09  Bruno Haible  <bruno@clisp.org>
12982
12983         * lib/freadahead.h (freadahead): Document more precisely.
12984         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12985         the sum of both buffer sizes.
12986         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12987         * NEWS: Document the change.
12988
12989 2008-03-09  Bruno Haible  <bruno@clisp.org>
12990
12991         Extend freadptr to return also the buffer size.
12992         * lib/freadptr.h (freadptr): Add sizep argument.
12993         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12994         (freadptr): Add sizep argument. Determine buffer size like freadahead
12995         does.
12996         * tests/test-freadptr.c: Don't include freadahead.h.
12997         (main): Adapt for new calling convention of freadptr.
12998         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12999         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
13000         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
13001         tests/test-freadptr2.sh.
13002         (Depends): Remove freadahead.
13003         (TESTS): Add test-freadptr2.sh.
13004         (check_PROGRAMS): Add test-freadptr2.
13005
13006 2008-03-09  Bruno Haible  <bruno@clisp.org>
13007
13008         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
13009         Report and solution by Simon Josefsson.
13010
13011 2008-03-06  Bruno Haible  <bruno@clisp.org>
13012
13013         Make fflush after ungetc work on BSD platforms.
13014         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
13015         * tests/test-fflush2.c: New file.
13016         * tests/test-fflush2.sh: New file.
13017         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
13018         tests/test-fflush2.c.
13019         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
13020         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
13021
13022 2008-03-06  Eric Blake  <ebb9@byu.net>
13023
13024         Likewise for ftello.
13025         * modules/ftello (Dependencies): Add extensions.
13026         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
13027
13028 2008-03-06  Bruno Haible  <bruno@clisp.org>
13029
13030         * modules/fseeko (Dependencies): Add extensions.
13031         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
13032         Needed on glibc systems.
13033
13034 2008-03-06  Bruno Haible  <bruno@clisp.org>
13035
13036         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
13037         email address.
13038         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13039
13040 2008-03-06  Bruno Haible  <bruno@clisp.org>
13041
13042         * users.txt: Add libgnupdf.
13043
13044 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13045
13046         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
13047         (Header File Substitutes, Function Substitutes,
13048         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
13049         (Build robot for gnulib): Fix typo.
13050
13051 2008-03-06  Bruno Haible  <bruno@clisp.org>
13052
13053         * doc/gnulib-tool.texi (VCS Issues): Small updates.
13054         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13055
13056 2008-03-06  Bruno Haible  <bruno@clisp.org>
13057
13058         * doc/func.texi: New file, extracted from doc/gnulib.texi.
13059         * doc/gnulib.texi: Include it.
13060
13061 2008-03-06  Simon Josefsson  <simon@josefsson.org>
13062
13063         * modules/func (License): Change license to unlimited; there was
13064         no LGPL parts in the module anyway.
13065
13066 2008-03-06  Simon Josefsson  <simon@josefsson.org>
13067
13068         * modules/__func__: Renamed to modules/func.
13069         * modules/__func__-tests: Renamed to modules/func-tests.
13070         * tests/test-__func__.c: Renamed to tests/test-func.c.
13071         * m4/__func__.m4: Renamed to m4/func.m4.
13072         * doc/gnulib.texi (__func__): Section renamed to func.
13073         Suggested by Eric Blake <ebb9@byu.net>.
13074
13075 2008-03-06  Simon Josefsson  <simon@josefsson.org>
13076
13077         * doc/gnulib.texi (__func__): Use C99 terminology when talking
13078         about __func__.  Make example self-contained.  Suggested by Eric
13079         Blake <ebb9@byu.net>.
13080
13081         * tests/test-__func__.c (main): Avoid extraneous () around __func.
13082         Suggested by Eric Blake <ebb9@byu.net>.
13083
13084 2008-03-06  Simon Josefsson  <simon@josefsson.org>
13085
13086         * modules/__func__: New file.
13087         * modules/__func__-tests: New file.
13088         * tests/test-__func__.c: New file.
13089         * m4/__func__.m4: New file.
13090         * doc/gnulib.texi (__func__): Document __func__ module.
13091
13092 2008-03-05  Simon Josefsson  <simon@josefsson.org>
13093
13094         * modules/byteswap (License): Re-license as LGPLv2+.
13095
13096 2008-03-05  Simon Josefsson  <simon@josefsson.org>
13097
13098         * doc/Makefile: Add pdf target.
13099
13100 2008-03-05  Simon Josefsson  <simon@josefsson.org>
13101
13102         * modules/inline (License): Use 'unlimited', since there are only
13103         *.m4 files in this module.
13104
13105 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
13106             Bruno Haible  <bruno@clisp.org>
13107
13108         Add support for HP C 7.1 on OpenVMS 8.3.
13109         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
13110
13111 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
13112
13113         Update VMS specifics.
13114         * lib/getopt.c [VMS]: Remove include of unixlib.h.
13115
13116 2008-03-02  Jim Meyering  <meyering@redhat.com>
13117
13118         Remove the last dependency on the "free" module.
13119         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
13120         Reported by Bob Proulx.
13121
13122         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
13123
13124         Remove useless "if" tests before free.  Deprecate "free" module.
13125         * doc/posix-functions/free.texi: Mention that this
13126         module is no longer useful.
13127         * modules/free (Notice): Say this module is obsolete.
13128         * modules/readutmp (Depends-on): Remove free.
13129         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
13130         * lib/putenv.c (putenv): Likewise.
13131         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
13132         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
13133         * tests/test-c-strcasestr.c (main): Likewise.
13134         * tests/test-c-strstr.c (main): Likewise.
13135         * tests/test-mbscasestr1.c (main): Likewise.
13136         * tests/test-mbscasestr2.c (main): Likewise.
13137         * tests/test-mbsstr1.c (main): Likewise.
13138         * tests/test-mbsstr2.c (main): Likewise.
13139         * tests/test-memmem.c (main): Likewise.
13140         * tests/test-strcasestr.c (main): Likewise.
13141         * tests/test-striconv.c (main): Likewise.
13142         * tests/test-striconveh.c (main): Likewise.
13143         * tests/test-striconveha.c (main): Likewise.
13144         * tests/test-strstr.c (main): Likewise.
13145
13146         * build-aux/git-version-gen: Adjust a comment and the Usage string.
13147
13148         bootstrap: sync from coreutils again
13149         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
13150
13151 2008-03-01  Jim Meyering  <meyering@redhat.com>
13152
13153         bootstrap: sync from coreutils
13154         * build-aux/bootstrap (update_po_files): Copy a .po file into place
13155         also when the target doesn't exist.
13156
13157 2008-03-01  Eric Blake  <ebb9@byu.net>
13158
13159         Fix bugs in last patch.
13160         * lib/memchr2.c (memchr2): Fix typo.
13161         * tests/test-memchr2.c: Test previous bug, and don't use GNU
13162         extension.
13163         Reported by Bruce Korb.
13164
13165         New module 'memchr2'.
13166         * modules/memchr2: New file.
13167         * modules/memchr2-tests: Likewise.
13168         * lib/memchr2.h: Likewise.
13169         * lib/memchr2.c: Likewise, based on memchr.c.
13170         * tests/test-memchr2.c: New test.
13171         * MODULES.html.sh (String handling): Add memchr2.
13172
13173 2008-02-29  Bruno Haible  <bruno@clisp.org>
13174
13175         * modules/freadseek-tests: New file.
13176         * tests/test-freadseek.sh: New file.
13177         * tests/test-freadseek.c: New file.
13178
13179         New module 'freadseek'.
13180         * modules/freadseek: New file.
13181         * lib/freadseek.h: New file.
13182         * lib/freadseek.c: New file.
13183         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
13184
13185 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13186
13187         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
13188         wydawca.
13189
13190         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
13191         program_invocation_name and program_invocation_short_name are
13192         present.
13193
13194 2008-02-28  Bruno Haible  <bruno@clisp.org>
13195
13196         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
13197         * tests/test-freadptr.sh: Also test non-seekable stdin.
13198
13199 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
13200
13201         * build-aux/bootstrap (source_base, m4_base)
13202         (doc_base, tests_base): New variables.
13203         (gnulib_tool_options): Do not hardcode base directories, use
13204         the above variables instead.
13205
13206 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
13207
13208         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
13209
13210 2008-02-28  Bruno Haible  <bruno@clisp.org>
13211
13212         * modules/freadptr-tests: New file.
13213         * tests/test-freadptr.sh: New file.
13214         * tests/test-freadptr.c: New file.
13215
13216         New module 'freadptr'.
13217         * modules/freadptr: New file.
13218         * lib/freadptr.h: New file.
13219         * lib/freadptr.c: New file.
13220         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
13221
13222 2008-02-26  Karl Berry  <karl@freefriends.org>
13223
13224         Sync from Libtool:
13225         * libltdl/argz.c (argz_add, argz_count): New functions.
13226         * libltdl/argz.in.h: Declare them.
13227         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
13228
13229 2008-02-22  Bruno Haible  <bruno@clisp.org>
13230
13231         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
13232         is a pointer type.  Needed for HP-UX 10.
13233         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
13234         * doc/posix-functions/gmtime_r.texi: Likewise.
13235         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
13236
13237 2008-02-24  Bruno Haible  <bruno@clisp.org>
13238
13239         * modules/environ-tests: New file.
13240         * tests/test-environ.c: New file.
13241
13242         New module 'environ'.
13243         * modules/environ: New file.
13244         * lib/unistd.in.h (environ): New declaration.
13245         * m4/environ.m4: New file.
13246         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
13247         after use.
13248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
13249         HAVE_DECL_ENVIRON.
13250         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
13251         HAVE_DECL_ENVIRON.
13252         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
13253         wrong claim that 'environ' is missing on some systems.
13254         * modules/execute (Depends-on): Add environ.
13255         * lib/execute.c (environ): Remove fallback declaration.
13256         * modules/pipe (Depends-on): Add environ.
13257         * lib/pipe.c (environ): Remove fallback declaration.
13258         * modules/setenv (Depends-on): Add environ.
13259         * lib/setenv.c (environ): Remove fallback declaration.
13260         * modules/unsetenv (Depends-on): Add environ.
13261         * lib/unsetenv.c (environ): Remove fallback declaration.
13262         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
13263         m4/environ.m4.
13264         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
13265         (gl_PREREQ_UNSETENV): Likewise.
13266
13267 2008-02-24  Bruno Haible  <bruno@clisp.org>
13268
13269         * doc/posix-functions/environ.texi: Document the MacOS X problem.
13270
13271 2008-02-20  Bob Proulx  <bob@proulx.com>
13272
13273         Enable use of older two part flavor 'git describe'.
13274         * build-aux/git-version-gen: If using the older two part flavor of
13275         git version then recreate the third part now present in the
13276         newer three part flavor of git describe.
13277
13278 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
13279
13280         * lib/fts.c (fts_build): Typo correction to comment.
13281
13282 2008-02-17  Bruno Haible  <bruno@clisp.org>
13283
13284         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
13285         generating no-op conflicts.
13286
13287 2008-02-17  Bruno Haible  <bruno@clisp.org>
13288
13289         Speed up by 10%.
13290         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
13291         result_entries, rather than an index-based loop.
13292
13293 2008-02-17  Bruno Haible  <bruno@clisp.org>
13294
13295         Speed up by 25%.
13296         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
13297         'hashcode_cached'.
13298         (entry_create): New function.
13299         (entry_hashcode): Use the cached hashcode if possible.
13300         (read_changelog_file, try_split_merged_entry): Use entry_create.
13301
13302 2008-02-17  Bruno Haible  <bruno@clisp.org>
13303
13304         Speed up from O(n^2) to O(n) for long ChangeLog files.
13305         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
13306         (read_changelog_file): Change implementation of entries_reversed list
13307         to rbtreehash.
13308         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
13309
13310 2008-02-17  Bruno Haible  <bruno@clisp.org>
13311
13312         New option --split-merged-entry.
13313         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
13314         (find_paragraph_end, try_split_merged_entry): New functions.
13315         (long_options): Add option --split-merged-entry.
13316         (usage): Document option --split-merged-entry.
13317         (main): Implement option --split-merged-entry.
13318         Reported by Eric Blake.
13319
13320 2008-02-17  Bruno Haible  <bruno@clisp.org>
13321
13322         * lib/git-merge-changelog.c: Include c-strstr.h.
13323         (main): Support the "git pull --rebase" situation.
13324         * modules/git-merge-changelog (Depends-on): Add c-strstr.
13325         Reported by Eric Blake.
13326
13327 2008-02-16  Eric Blake  <ebb9@byu.net>
13328
13329         Avoid doubling \ in common case of "c-maybe" quoting style.
13330         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
13331         eliding outer quotes.
13332         * lib/quotearg.h: Document this.
13333         * tests/test-quotearg.c (result_strings, inputs, results_g)
13334         (flag_results, locale_results): Test it by adding a new string to
13335         each test group.
13336         (compare_strings): Test new string.
13337
13338 2008-02-13  Eric Blake  <ebb9@byu.net>
13339
13340         Avoid trigraph quoting in default output.
13341         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
13342         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
13343         unless explicitly requested.
13344         * tests/test-quotearg.c (flag_results, main): Add additional tests.
13345
13346 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
13347
13348         Don't rely on signed integer overflowing to negative value.
13349         * lib/getugroups.c (getugroups): Include <limits.h>.
13350         Instead, compare against INT_MAX, and increment only if the test passes.
13351
13352 2008-02-13  Jim Meyering  <meyering@redhat.com>
13353         and Eric Blake  <ebb9@byu.net>
13354
13355         Avoid shadowing warning and compile errors on Linux.
13356         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
13357         forwarding macros on Linux.
13358         (dcgettext): Define a stub, for Linux.
13359         (results_g, main): Avoid warnings.
13360
13361 2008-02-12  Eric Blake  <ebb9@byu.net>
13362
13363         Silence warning in last patch.
13364         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
13365
13366         Quotearg part 4: add tests, fix c-maybe colon quoting.
13367         * lib/quotearg.h: Improve documentation.
13368         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
13369         escapes when adding outer quotes.  When quoting trigraphs, use
13370         valid C notation.  When quoting NUL, omit extra characters if next
13371         character is not digit.  Alter prototype.
13372         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
13373         callers.
13374         * modules/quotearg-tests: New module.
13375         * tests/test-quotearg.c: New test.
13376
13377 2008-02-07  Eric Blake  <ebb9@byu.net>
13378
13379         Quotearg part 3: add flag to control outer quote elision.
13380         * lib/quotearg.h (c_maybe_quoting_style): New style.
13381         (enum quoting_flags): Better documentation of flags.
13382         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
13383         c-maybe style.
13384         (quotearg_buffer_restyled): Handle new flag to elide outer
13385         quotes.
13386
13387         Quotearg part 2: add flag that can control NUL elision.
13388         * lib/quotearg.h (set_quoting_flags): New prototype.
13389         * lib/quotearg.c (struct quoting_options): Add flag field.
13390         (set_quoting_flags): New function.
13391         (quotearg_buffer_restyled): Add flags parameter.
13392         (quotearg_alloc_mem): Set the flag if length cannot be returned.
13393         (quotearg_n_options): Set the flag, since length cannot be
13394         returned.
13395         (quoting_options_from_style): Default flags correctly.
13396
13397         Quotearg part 1: more wrappers, restore quotearg_char state.
13398         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
13399         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
13400         (quotearg_colon_mem): New wrappers.
13401         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
13402         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
13403         functions.
13404         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
13405         (quotearg_colon_mem): New functions.
13406
13407 2008-02-11  Bruno Haible  <bruno@clisp.org>
13408
13409         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
13410         library in the current directory: it does not work with parallel make.
13411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13412
13413 2008-02-11  Bruno Haible  <bruno@clisp.org>
13414
13415         * .gitattributes: New file.
13416
13417 2008-02-11  Jim Meyering  <meyering@redhat.com>
13418
13419         useless-if-before-free: Fix reversed exit values.
13420         * build-aux/useless-if-before-free: Use correct values
13421         for EXIT_MATCH and EXIT_NO_MATCH.
13422
13423         * build-aux/useless-if-before-free: Close stdout carefully.
13424
13425 2008-02-10  Bruno Haible  <bruno@clisp.org>
13426
13427         New module 'git-merge-changelog'.
13428         * modules/git-merge-changelog: New file.
13429         * lib/git-merge-changelog.c: New file.
13430
13431 2008-02-10  Jim Meyering  <meyering@redhat.com>
13432
13433         useless-if-before-free: New option: --list (-l).
13434
13435         useless-if-before-free: Don't exit immediately upon open failure.
13436         * build-aux/useless-if-before-free: Exit 2 for errors.
13437         Upon failure to open a file, don't exit immediately.
13438         Rather, just warn and continue with any remaining files.
13439
13440 2008-02-10  Bruno Haible  <bruno@clisp.org>
13441
13442         New abstract list operation 'node_set_value'.
13443         * lib/gl_list.h (gl_list_node_set_value): New function.
13444         (struct gl_list_implementation): New field node_set_value.
13445         * lib/gl_list.c (gl_list_node_set_value): New function.
13446         * lib/gl_array_list.c (gl_array_node_set_value): New function.
13447         (gl_array_list_implementation): Update.
13448         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
13449         (gl_carray_list_implementation): Update.
13450         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
13451         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
13452         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
13453         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
13454         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
13455         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
13456         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
13457         Update.
13458         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
13459         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
13460         (gl_sublist_list_implementation): Update.
13461
13462 2008-02-10  Bruno Haible  <bruno@clisp.org>
13463
13464         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
13465         Needed when ELEMENT is #defined to 'some_type *'.
13466
13467 2008-02-10  Jim Meyering  <meyering@redhat.com>
13468
13469         New script and module: useless-if-before-free
13470         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
13471         * build-aux/useless-if-before-free: New file.
13472         * modules/useless-if-before-free: New file.
13473
13474         * build-aux/gitlog-to-changelog: Use committer date, not author date.
13475
13476         xstrtol_error: Fix typo.
13477         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
13478         s/exit_failure/exit_status/.
13479
13480 2008-02-09  Jim Meyering  <meyering@redhat.com>
13481
13482         New script and module: gitlog-to-changelog
13483         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
13484         * modules/gitlog-to-changelog: New file.
13485         * build-aux/gitlog-to-changelog: New file.
13486
13487 2008-02-08  Jim Meyering  <meyering@redhat.com>
13488
13489         Avoid two "parameter unused" warnings.
13490         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
13491         Mark "st" as used.
13492
13493         Use "git COMMAND", not "git-COMMAND".
13494         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
13495         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
13496         * build-aux/git-version-gen: Use "git status", not "git-status".
13497
13498 2008-02-07  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
13501         Avoids a crash on Windows Vista.
13502         Reported by Adam Strzelecki <ono@java.pl> via
13503         Simon Josefsson <simon@josefsson.org>.
13504
13505 2008-02-06  Bruno Haible  <bruno@clisp.org>
13506
13507         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
13508         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
13509         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
13510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
13511         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13513         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
13514         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
13515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13522         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
13523         left-adjust flag.
13524         * tests/test-snprintf-posix.h (test_function): Likewise.
13525         * tests/test-sprintf-posix.h (test_function): Likewise.
13526         * tests/test-vasprintf-posix.c (test_function): Likewise.
13527         * doc/posix-functions/fprintf.texi: Update.
13528         * doc/posix-functions/printf.texi: Update.
13529         * doc/posix-functions/snprintf.texi: Update.
13530         * doc/posix-functions/sprintf.texi: Update.
13531         * doc/posix-functions/vfprintf.texi: Update.
13532         * doc/posix-functions/vprintf.texi: Update.
13533         * doc/posix-functions/vsnprintf.texi: Update.
13534         * doc/posix-functions/vsprintf.texi: Update.
13535         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13536
13537 2008-02-06  Bruno Haible  <bruno@clisp.org>
13538
13539         Fix bug introduced on 2008-01-26.
13540         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
13541
13542 2008-02-06  Bruno Haible  <bruno@clisp.org>
13543
13544         Fix bug introduced on 2007-06-10.
13545         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
13546         !NEED_PRINTF_FLAG_ZERO.
13547
13548 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
13549
13550         getloadavg: use libperfstat on AIX5
13551         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
13552
13553 2008-02-03  Bruno Haible  <bruno@clisp.org>
13554
13555         * lib/diffseq.h: Add comments about required #includes.
13556         Reported by Michael Biggs <gnulib@doubleplum.net>.
13557
13558 2008-02-01  Bruno Haible  <bruno@clisp.org>
13559
13560         * users.txt: Add gnuit.
13561
13562 2008-01-31  Bruno Haible  <bruno@clisp.org>
13563
13564         * lib/md4.c (set_uint32): Mark as inline.
13565         * lib/md5.c (set_uint32): Likewise.
13566         * lib/sha1.c (set_uint32): Likewise.
13567         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
13568         * m4/md5.m4 (gl_MD5): Likewise.
13569         * m4/sha1.m4 (gl_SHA1): Likewise.
13570
13571 2008-01-31  Jim Meyering  <meyering@redhat.com>
13572
13573         Use "sizeof VAR", rather than a literal "4".
13574         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
13575         * lib/md4.c (md4_read_ctx): Likewise.
13576         * lib/sha1.c (sha1_read_ctx): Likewise.
13577
13578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13579
13580         * tests/test-sha1.c: New file, based on test-md5.c.
13581
13582         * modules/crypto/sha1-tests: New file.
13583
13584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13585
13586         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
13587
13588 2008-01-31  Jim Meyering  <meyering@redhat.com>
13589
13590         Prefer "sizeof v" over the equivalent "4".
13591         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
13592         * lib/md5.c (set_uint32): Likewise.
13593         * lib/sha1.c (set_uint32): Likewise.
13594
13595 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13596
13597         * lib/sha1.c (set_uint32): Mark function as static.
13598
13599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13600
13601         md2: clarify comments to say that alignment is not required.
13602         * lib/md2.h: Remove warning about alignment in comment.
13603         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
13604         never been required.
13605
13606 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13607
13608         md4: adapt alignment constraint fix from sha1.
13609         * lib/md4.c (set_uint32): New function, from sha1.c
13610         (md4_read_ctx): Use it.
13611         (md4_finish_ctx): Doc fix.
13612         * lib/md4.h: Doc fix.
13613
13614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
13615
13616         md5: adapt alignment constraint fix from sha1.
13617         * lib/md5.c (set_uint32): New function, from sha1.c
13618         (md5_read_ctx): Use it.
13619         (md5_finish_ctx): Doc fix.
13620         * lib/md5.h: Doc fix.
13621
13622 2008-01-30  Peter Palfrader  <weasel@debian.org>
13623
13624         sha1: remove the result buffer alignment constraint
13625         * lib/sha1.c (set_uint32): New function.
13626         (sha1_read_ctx): Rewrite to remove the result buffer alignment
13627         constraint.
13628         (sha1_finish_ctx): Remove comment warning about alignment constraint.
13629         * lib/sha1.h: Likewise.
13630
13631 2008-01-30  Andreas Schwab  <schwab@suse.de>
13632             Bruno Haible  <bruno@clisp.org>
13633
13634         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
13635         correct definition of LDBL_MIN_EXP.
13636
13637 2008-01-30  Karl Berry  <karl@gnu.org>
13638
13639         * config/srclist-update: try to preserve x bit on updates.
13640         * config/srclistvars.sh: update for karl.
13641
13642 2008-01-29  Jim Meyering  <meyering@redhat.com>
13643
13644         vasnprintf.c: Avoid warning about unused label
13645         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
13646         "overflow" label definition and associated code with the
13647         same cpp condition that guards the sole use of that label.
13648
13649 2008-01-26  Bruno Haible  <bruno@clisp.org>
13650
13651         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
13652         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
13653         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
13654         * lib/isnanl-nolibm.h (isnanl): Likewise.
13655         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13656
13657 2008-01-26  Bruno Haible  <bruno@clisp.org>
13658
13659         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
13660         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
13661
13662 2008-01-26  Bruno Haible  <bruno@clisp.org>
13663
13664         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
13665         GCC >= 4.0 built-in.
13666         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
13667
13668 2008-01-26  Bruno Haible  <bruno@clisp.org>
13669
13670         Rename isnan, applicable to 'double' only, to isnand.
13671         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
13672         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
13673         (configure.ac): Update.
13674         (Include): Replace "isnan.h" with "isnand.h".
13675         * m4/isnand.m4: Renamed from m4/isnan.m4.
13676         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
13677         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
13678         instead of isnan.c.
13679         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
13680         instead of HAVE_ISNAN_IN_LIBC.
13681         (isnand): Renamed from isnan.
13682         * lib/isnand.c: New file.
13683         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
13684         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
13685         (Makefile.am): Update.
13686         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
13687         Include isnand.h instead of isnan.h.
13688         (main): Test isnand instead of isnan.
13689         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
13690         isnan-nolibm.
13691         * modules/frexp (Depends-on): Likewise.
13692         * modules/frexp-tests (Depends-on): Likewise.
13693         * modules/frexp-nolibm (Depends-on): Likewise.
13694         * modules/frexp-nolibm-tests (Depends-on): Likewise.
13695         * modules/isfinite (Depends-on): Likewise.
13696         * modules/round-tests (Depends-on): Likewise.
13697         * modules/signbit (Depends-on): Likewise.
13698         * modules/signbit-tests (Depends-on): Likewise.
13699         * modules/snprintf-posix (Depends-on): Likewise.
13700         * modules/sprintf-posix (Depends-on): Likewise.
13701         * modules/trunc-tests (Depends-on): Likewise.
13702         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13703         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13704         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13705         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13706         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13707         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13708         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13709         * modules/vasnprintf-posix (Depends-on): Likewise.
13710         * modules/vasprintf-posix (Depends-on): Likewise.
13711         * modules/vfprintf-posix (Depends-on): Likewise.
13712         * modules/vsnprintf-posix (Depends-on): Likewise.
13713         * modules/vsprintf-posix (Depends-on): Likewise.
13714         * lib/frexp.c: Include isnand.h instead of isnan.h.
13715         (ISNAN): Set to isnand instead of isnan.
13716         * lib/isfinite.c: Include isnand.h instead of isnan.h.
13717         (gl_isfinited): Use isnand instead of isnan.
13718         * lib/signbitd.c: Include isnand.h instead of isnan.h.
13719         (gl_signbitd): Use isnand instead of isnan.
13720         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
13721         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
13722         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
13723         (main): Use isnand instead of isnan.
13724         * tests/test-round1.c: Include isnand.h.
13725         (main): Use isnand instead of isnan.
13726         * tests/test-round2.c: Include isnand.h instead of isnan.h.
13727         (ISNAN): Set to isnand instead of isnan.
13728         * tests/test-trunc1.c: Include isnand.h.
13729         (main): Use isnand instead of isnan.
13730         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
13731         (equal): Use isnand instead of isnan.
13732         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
13733         isnand-nolibm.
13734         * NEWS: Mention the change.
13735
13736 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13737             Bruno Haible  <bruno@clisp.org>
13738
13739         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
13740         the GCC builtins for signbits are present and set
13741         REPLACE_SIGNBIT_USING_GCC if so.
13742         * lib/math.in.h (signbit): Define using GCC builtins if
13743         REPLACE_SIGNBIT_USING_GCC is set.
13744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
13745         REPLACE_SIGNBIT_USING_GCC.
13746         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
13747
13748 2008-01-25  Jim Meyering  <meyering@redhat.com>
13749
13750         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
13751         * lib/poll.c: Include <config.h>, not "config.h".
13752         * tests/test-getaddrinfo.c: Likewise.
13753
13754 2008-01-25  Simon Josefsson  <simon@josefsson.org>
13755
13756         * modules/sockets-tests: New file.
13757
13758 2008-01-24  Simon Josefsson  <simon@josefsson.org>
13759
13760         * modules/sockets: New module, can be used to call WSA_Startup and
13761         WSA_Cleanup when needed.
13762
13763         * lib/sockets.h, lib/sockets.c: New files.
13764
13765         * m4/sockets.m4: New file.
13766
13767         * tests/test-sockets.c: New file.
13768
13769 2008-01-19  Bruno Haible  <bruno@clisp.org>
13770
13771         * doc/posix-headers: Renamed from doc/headers.
13772         * doc/posix-functions: Renamed from doc/functions.
13773         * doc/gnulib.texi: Update.
13774
13775 2008-01-19  Bruno Haible  <bruno@clisp.org>
13776
13777         * doc/glibc-functions/strcasestr.texi: Include contents of
13778         doc/functions/strcasestr.texi, fixing the list of platforms.
13779         * doc/functions/strcasestr.texi: Remove file.
13780
13781 2008-01-19  Bruno Haible  <bruno@clisp.org>
13782
13783         * doc/glibc-functions/memmem.texi: Include contents of
13784         doc/functions/memmem.texi.
13785         * doc/functions/memmem.texi: Remove file.
13786
13787 2008-01-18  Bruno Haible  <bruno@clisp.org>
13788
13789         * doc/glibc-functions/*.texi: New files.
13790         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
13791         to use the new files.
13792
13793 2008-01-17  Bruno Haible  <bruno@clisp.org>
13794
13795         * tests/test-gethostname.c (main): Fix printf statement.
13796
13797 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13798
13799         * modules/gethostname-tests: New file.
13800
13801         * tests/test-gethostname.c: New file.
13802
13803 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13804
13805         * lib/gethostname.c: Include string.h unconditionally, strncpy is
13806         used by the UNAME case.  Reported by Bruno Haible
13807         <bruno@clisp.org>.
13808
13809 2008-01-17  Eric Blake  <ebb9@byu.net>
13810
13811         Convert c-strcasestr to be more efficient.
13812         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
13813         (Depends-on): Add c-strcase, remove malloca, strnlen.
13814         * tests/test-c-strcasestr.c (main): Enhance test.
13815         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
13816
13817 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13818
13819         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
13820         Use it in creating po/Makevars.
13821
13822 2008-01-15  Simon Josefsson  <simon@josefsson.org>
13823
13824         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
13825         Applications that requires it should initialize libgcrypt
13826         manually.
13827
13828 2008-01-16  Simon Josefsson  <simon@josefsson.org>
13829
13830         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
13831
13832 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13833
13834         Fix problem with getdate on mingw32 reported by Simon Josefsson
13835         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
13836         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
13837         tzname", when deciding whether to declare tzname.
13838         * lib/strftime.c (tzname): Likewise.
13839
13840 2008-01-15  Bruno Haible  <bruno@clisp.org>
13841
13842         Work around a MacOS X 10.5 bug in frexpl().
13843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13844         * doc/functions/frexpl.texi: Document the bug.
13845         Reported by Elias Pipping <pipping@gentoo.org>.
13846
13847 2008-01-14  Eric Blake  <ebb9@byu.net>
13848
13849         Touch up previous patch.
13850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
13851         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
13852
13853         Convert strcasestr module to use Two-Way algorithm.
13854         * modules/strcasestr-simple: New module, based on the old
13855         strcasestr, but with Two-Way rather than KMP.
13856         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
13857         * lib/string.in.h (rpl_strcasestr): Declare.
13858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
13859         performance.
13860         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
13861         * modules/string (Makefile.am): Support strcasestr.
13862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13863         * modules/strcasestr-tests (Depends-on): Check for alarm.
13864         * tests/test-strcasestr.c: Augment test.
13865         * lib/str-two-way.h: Clean up stray macro.
13866         * NEWS: Document new module.
13867         * MODULES.html.sh (string handling): Likewise.
13868         * doc/functions/strcasestr.texi: New file.
13869         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
13870         here, since it is not a POSIX function.
13871
13872 2008-01-14  Colin Watson  <cjwatson@debian.org>
13873             Bruno Haible  <bruno@clisp.org>
13874
13875         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
13876         works fine; if not, set REPLACE_STRSIGNAL.
13877         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
13878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13879         REPLACE_STRSIGNAL.
13880         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
13881         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
13882         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
13883
13884 2008-01-14  Bruno Haible  <bruno@clisp.org>
13885
13886         * modules/strsignal (Include): Change to <string.h>.
13887
13888 2008-01-14  Colin Watson  <cjwatson@debian.org>
13889
13890         * modules/argp (Notice): Add a notice recommending to change
13891         XGETTEXT_OPTIONS.
13892         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
13893
13894 2008-01-13  Colin Watson  <cjwatson@debian.org>
13895
13896         * modules/strsignal-tests: New file.
13897         * tests/test-strsignal.c: New file.
13898
13899         * lib/strsignal.c: New file, from glibc with modifications.
13900         * lib/siglist.h: New file, from glibc with modifications.
13901         * lib/string.in.h (strsignal): New declaration.
13902         * m4/strsignal.m4: New file.
13903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13904         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
13905         * modules/strsignal: New file.
13906         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
13907         HAVE_DECL_STRSIGNAL.
13908
13909 2008-01-13  Bruno Haible  <bruno@clisp.org>
13910
13911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
13912         locale encoding is not ASCII. Needed for OpenBSD 4.0.
13913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13915
13916 2008-01-13  Bruno Haible  <bruno@clisp.org>
13917
13918         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13919         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13920         * lib/argp.h (__attribute__): Likewise.
13921         * lib/c-stack.c (__attribute__): Likewise.
13922         * lib/error.h (__attribute__): Likewise.
13923         * lib/fts.c (__attribute__): Likewise.
13924         * lib/openat.h (__attribute__): Likewise.
13925         * lib/stdio.in.h (__attribute__): Likewise.
13926         * lib/string.in.h (__attribute__): Likewise.
13927         * lib/utimens.c (__attribute__): Likewise.
13928         * lib/vasnprintf.h (__attribute__): Likewise.
13929         * lib/xalloc.h (__attribute__): Likewise.
13930         * lib/xprintf.h (__attribute__): Likewise.
13931         * lib/xstrtol.h (__attribute__): Likewise.
13932         * lib/xvasprintf.h (__attribute__): Likewise.
13933
13934 2008-01-12  Bruno Haible  <bruno@clisp.org>
13935
13936         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13937         * doc/glibc-headers/a.out.texi: New file.
13938         * doc/glibc-headers/aliases.texi: New file.
13939         * doc/glibc-headers/alloca.texi: New file.
13940         * doc/glibc-headers/ar.texi: New file.
13941         * doc/glibc-headers/argp.texi: New file.
13942         * doc/glibc-headers/argz.texi: New file.
13943         * doc/glibc-headers/byteswap.texi: New file.
13944         * doc/glibc-headers/crypt.texi: New file.
13945         * doc/glibc-headers/endian.texi: New file.
13946         * doc/glibc-headers/envz.texi: New file.
13947         * doc/glibc-headers/err.texi: New file.
13948         * doc/glibc-headers/error.texi: New file.
13949         * doc/glibc-headers/execinfo.texi: New file.
13950         * doc/glibc-headers/fpu_control.texi: New file.
13951         * doc/glibc-headers/fstab.texi: New file.
13952         * doc/glibc-headers/fts.texi: New file.
13953         * doc/glibc-headers/getopt.texi: New file.
13954         * doc/glibc-headers/ieee754.texi: New file.
13955         * doc/glibc-headers/ifaddrs.texi: New file.
13956         * doc/glibc-headers/libintl.texi: New file.
13957         * doc/glibc-headers/mcheck.texi: New file.
13958         * doc/glibc-headers/mntent.texi: New file.
13959         * doc/glibc-headers/obstack.texi: New file.
13960         * doc/glibc-headers/paths.texi: New file.
13961         * doc/glibc-headers/printf.texi: New file.
13962         * doc/glibc-headers/pty.texi: New file.
13963         * doc/glibc-headers/resolv.texi: New file.
13964         * doc/glibc-headers/shadow.texi: New file.
13965         * doc/glibc-headers/sysexits.texi: New file.
13966         * doc/glibc-headers/ttyent.texi: New file.
13967
13968 2008-01-12  Jim Meyering  <meyering@redhat.com>
13969
13970         announce-gen: emit Gnulib's git-based version string.
13971         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13972         New option --gnulib-version=V, where V is expected to be
13973         the output of running git describe in the gnulib directory.
13974         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13975         not useful, and plan to stop publishing an xdelta file with each
13976         coreutils release.
13977
13978         * build-aux/announce-gen: Also check for lzma-compressed files.
13979
13980 2008-01-11  Bruno Haible  <bruno@clisp.org>
13981
13982         * tests/test-memmem.c (main): Increase maximum allowed time.
13983         * tests/test-strstr.c (main): Likewise.
13984
13985 2008-01-11  Bruno Haible  <bruno@clisp.org>
13986
13987         * doc/functions/memmem.texi: Add more precisions about platforms.
13988         * doc/functions/strstr.texi: Likewise.
13989
13990 2008-01-10  Eric Blake  <ebb9@byu.net>
13991
13992         * m4/strstr.m4: Delete cruft from copy-n-paste.
13993         Reported by Bruno Haible.
13994
13995 2008-01-10  Bruno Haible  <bruno@clisp.org>
13996
13997         Make c-strstr rely on strstr.
13998         * lib/c-strstr.c: Don't include str-kmp.h.
13999         (c_strstr): Define in terms of strstr.
14000         * modules/c-strstr (Files): Remove lib/str-kmp.h.
14001         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
14002
14003 2008-01-10  Bruno Haible  <bruno@clisp.org>
14004
14005         * doc/gnulib.texi (String Functions in C Locale): New section.
14006         * doc/c-ctype.texi: New file.
14007         * doc/c-strcase.texi: New file.
14008         * doc/c-strcaseeq.texi: New file.
14009         * doc/c-strcasestr.texi: New file.
14010         * doc/c-strstr.texi: New file.
14011         * doc/c-strtod.texi: New file.
14012         * doc/c-strtold.texi: New file.
14013
14014 2008-01-10  Eric Blake  <ebb9@byu.net>
14015
14016         * lib/relocatable.h: Fix a comment.
14017
14018 2008-01-10  Eric Blake  <ebb9@byu.net>
14019
14020         Share two-way algorithm.
14021         * lib/str-two-way.h: New file, merged from...
14022         * lib/memmem.c: ...here...
14023         * lib/strstr.c: ...and here.
14024         * modules/memmem (Files): Use it.
14025         * modules/strstr (Files): Likewise.
14026
14027         Avoid quadratic strstr implementations.
14028         * lib/strstr.c: New file.
14029         * m4/strstr.m4: Likewise.
14030         * modules/strstr: Likewise.
14031         * modules/strstr-tests: Likewise.
14032         * tests/test-strstr.c: Likewise.
14033         * lib/string.in.h (rpl_strstr): Declare.
14034         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
14035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
14036         * modules/string (Makefile.am): Likewise.
14037         * MODULES.html.sh (string handling): Mention new module.
14038         * doc/functions/strstr.texi (strstr): Document the bug.
14039
14040 2008-01-10  Bruno Haible  <bruno@clisp.org>
14041
14042         * lib/relocatable.h (relocate): State whether result is freshly
14043         allocated or not.
14044         * lib/relocatable.c (relocate): Return a freshly allocated string
14045         instead of a pointer to a privately held string.
14046         Reported by Sylvain Beucler <beuc@gnu.org>.
14047
14048 2008-01-10  Colin Watson  <cjwatson@debian.org>
14049
14050         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
14051         s/S_ISNLK/S_ISLNK/.
14052
14053 2008-01-09  Bruno Haible  <bruno@clisp.org>
14054
14055         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
14056         and other files.
14057         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
14058         if it's only a guess.
14059         * modules/memmem: Simplify by depending on memmem-simple.
14060
14061 2008-01-09  Bruno Haible  <bruno@clisp.org>
14062
14063         Work around OpenBSD 4.0 tdelete() bug.
14064         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
14065         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
14066         macros and don't redefine the enum values.
14067         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
14068         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
14069         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
14070
14071 2008-01-09  Bruno Haible  <bruno@clisp.org>
14072
14073         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
14074         (main): Don't perform the tests if setlocale did not install a UTF-8
14075         locale. Needed on OpenBSD 4.0.
14076         * modules/wcwidth-tests (Depends-on): Add localcharset.
14077
14078 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14079
14080         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
14081         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
14082         * NEWS: announce this.
14083         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
14084
14085 2008-01-09  Simon Josefsson  <simon@josefsson.org>
14086         and Eric Blake  <ebb9@byu.net>
14087
14088         Add memmem-simple module.
14089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
14090         (gl_FUNC_MEMMEM): Separate performance from presence checks.
14091         * modules/memmem-simple: New file.
14092         * modules/memmem (Description): Tweak.
14093         * MODULES.html.sh (string handling): Mention new module.
14094         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
14095         addressed by memmem-simple.
14096         * NEWS: Document the difference.
14097
14098 2008-01-09  Eric Blake  <ebb9@byu.net>
14099
14100         Give gcc some memmem optimization hints.
14101         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
14102         (strcasestr): Declare as pure.
14103         * modules/memmem (Maintainer): Claim my implementation.
14104
14105 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14106
14107         Support AIX 6.1 and higher.
14108         * build-aux/config.libpath: Likewise.
14109         * build-aux/config.rpath: Likewise.
14110
14111 2008-01-08  Jim Meyering  <meyering@redhat.com>
14112             Bruno Haible  <bruno@clisp.org>
14113
14114         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
14115         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
14116         Reported by Peter Fales in
14117         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
14118
14119 2008-01-08  Bruno Haible  <bruno@clisp.org>
14120
14121         * modules/unictype/category-of (Depends-on): Add
14122         unictype/category-none.
14123         * modules/unictype/category-and-tests (Depends-on): Add
14124         unictype/category-{L,N,Lu,Nd}.
14125         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
14126         * modules/unictype/category-or-tests (Depends-on): Add
14127         unictype/category-{L,N}.
14128         * modules/unictype/category-name-tests (Depends-on): Add
14129         unictype/category-{Z,Nl}.
14130         Reported by Simon Josefsson.
14131
14132 2008-01-08  Bruno Haible  <bruno@clisp.org>
14133
14134         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
14135         convention better.
14136         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
14137         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
14138         Reported by Peter Miller <millerp@canb.auug.org.au>.
14139
14140 2008-01-08  Eric Blake  <ebb9@byu.net>
14141
14142         Rewrite memmem to guarantee linear complexity without malloc.
14143         * lib/memmem.c (memmem): Use Two-Way rather than
14144         Knuth-Morris-Pratt, to allow O(1) space usage.
14145         (critical_factorization, two_way_short_needle)
14146         (two_way_long_needle): New functions.
14147         (knuth_morris_pratt): Delete.
14148         * modules/memmem (Depends-on): No longer need malloca or stdbool.
14149         Add stdint.
14150         * tests/test-memmem.c (main): Add tests for periodic needle and
14151         sublinear performance.
14152         * doc/functions/memmem.texi (memmem): Document other deficiencies
14153         in cygwin and older glibc.
14154
14155 2008-01-08  Bruno Haible  <bruno@clisp.org>
14156
14157         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
14158         augmentation.
14159
14160 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
14161
14162         Add a configure time option: --disable-acl.
14163         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
14164         AC_ARG_ENABLE(acl).
14165
14166 2008-01-06  Simon Josefsson  <simon@josefsson.org>
14167
14168         * tests/test-localename.c: Don't include obsolete "setenv.h".
14169
14170         * modules/localename-tests (Depends-on): Need unsetenv.
14171
14172 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14173
14174         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
14175
14176 2008-01-06  Colin Watson  <cjwatson@debian.org>
14177
14178         * users.txt: Add man-db.
14179
14180 2008-01-07  Bruno Haible  <bruno@clisp.org>
14181
14182         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
14183         previous section name.
14184
14185 2008-01-07  Bruno Haible  <bruno@clisp.org>
14186
14187         * lib/progname.c (set_program_name): Don't strip off a leading
14188         "lt-" prefix outside a .libs directory.
14189         Suggested by Paul Eggert.
14190
14191 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
14192             Bruno Haible  <bruno@clisp.org>
14193
14194         Improve memory cleanup in 'relocatable' module.
14195         * lib/relocatable.h (compute_curr_prefix): Change return type to
14196         'char *'.
14197         * lib/relocatable.c (compute_curr_prefix): Change return type to
14198         'char *'. Free curr_installdir after use.
14199         (relocate): Free curr_prefix_better after use.
14200         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
14201
14202 2008-01-01  Bruno Haible  <bruno@clisp.org>
14203
14204         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
14205         failure on older glibc systems.
14206         Reported by Peter Fales <psfales@alcatel-lucent.com>.
14207
14208 2008-01-05  Eric Blake  <ebb9@byu.net>
14209
14210         Avoid quadratic system memmem.
14211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
14212         Reported by Ralf Wildenhues.
14213
14214         Fix memmem test for mingw.
14215         * modules/memmem-tests (configure.ac): Check for alarm.
14216         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
14217         it.
14218         * doc/functions/memmem.texi: New file.
14219         * doc/gnulib.texi (Function Substitutes): Add memmem.
14220         Reported by Bruno Haible.
14221
14222 2008-01-04  Bruno Haible  <bruno@clisp.org>
14223
14224         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
14225         Require gl_HEADER_STRINGS_H_DEFAULTS, not
14226         gl_HEADER_STRING_H_DEFAULTS.
14227
14228 2008-01-04  Eric Blake  <ebb9@byu.net>
14229
14230         Shorten duration of memmem test.
14231         * tests/test-memmem.c (main): Use alarm to declare failure if test
14232         is taking too long.
14233         Reported by Ralf Wildenhues.
14234
14235 2007-12-21  Simon Josefsson  <simon@josefsson.org>
14236
14237         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
14238         string, needed by strerror.
14239
14240 2008-01-03  Colin Watson  <cjwatson@debian.org>
14241             Bruno Haible  <bruno@clisp.org>
14242
14243         * doc/gnulib-tool.texi (Localization): New section.
14244
14245 2008-01-02  Bruno Haible  <bruno@clisp.org>
14246
14247         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
14248         variables to 'unsigned char *' type.
14249         Reported by Paul Eggert.
14250
14251 2008-01-02  Jim Meyering  <jim@meyering.net>
14252
14253         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
14254
14255 2007-12-31  Jim Meyering  <jim@meyering.net>
14256
14257         Avoid use of private FTS type name.
14258         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
14259
14260 2007-12-30  Karl Berry  <karl@gnu.org>
14261
14262         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
14263         work around defect in Texinfo and/or the standalone Info browser.
14264
14265 2007-12-30  Bruno Haible  <bruno@clisp.org>
14266
14267         Unify 5 copies of the KMP code.
14268         * lib/str-kmp.h: New file.
14269         * lib/c-strcasestr.c: Include str-kmp.h.
14270         (knuth_morris_pratt): Remove function.
14271         (c_strcasestr): Update.
14272         * lib/c-strstr.c: Include str-kmp.h.
14273         (knuth_morris_pratt): Remove function.
14274         (c_strcasestr): Update.
14275         * lib/mbscasestr.c: Include str-kmp.h.
14276         (knuth_morris_pratt_unibyte): Remove function.
14277         * lib/mbsstr.c: Include str-kmp.h.
14278         (knuth_morris_pratt_unibyte): Remove function.
14279         * lib/strcasestr.c: Include str-kmp.h.
14280         (knuth_morris_pratt): Remove function.
14281         (strcasestr): Update.
14282         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
14283         * modules/c-strstr (Files): Likewise.
14284         * modules/mbscasestr (Files): Likewise.
14285         * modules/mbsstr (Files): Likewise.
14286         * modules/strcasestr (Files): Likewise.
14287         Suggested by Paul Eggert.
14288
14289 2007-12-30  Bruno Haible  <bruno@clisp.org>
14290
14291         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
14292         defined.
14293
14294 2007-12-30  Bruno Haible  <bruno@clisp.org>
14295
14296         * lib/xmalloca.h: Include xalloc.h.
14297         (xnmalloca): New macro.
14298
14299 2007-12-30  Bruno Haible  <bruno@clisp.org>
14300
14301         * lib/malloca.h (nmalloca): New macro.
14302         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
14303         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
14304         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
14305         knuth_morris_pratt_multibyte): Likewise.
14306         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
14307         knuth_morris_pratt_multibyte): Likewise.
14308         * lib/memmem.c (knuth_morris_pratt): Likewise.
14309         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
14310
14311 2007-12-25  Bruno Haible  <bruno@clisp.org>
14312
14313         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
14314         * lib/glob.c: Don't include openat.h.
14315         (link_exists2_p): Add back the code that deals with the
14316         !GLOB_ALTDIRFUNC case.
14317         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
14318         let it do the filename concatenation.
14319         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
14320         * modules/glob (Depends-on): Remove openat.
14321
14322 2007-12-31  Bruno Haible  <bruno@clisp.org>
14323
14324         * modules/dirfd (License): Change to LGPLv2+.
14325         Approved by Jim Meyering.
14326
14327 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14328
14329         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
14330         when multiplying M by sizeof (size_t).
14331
14332 2007-12-10  Martin Lambers  <marlam@marlam.de>
14333
14334         Override getpagesize on mingw.
14335         * lib/getpagesize.c: New file.
14336         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
14337         * modules/getpagesize (Files): Add lib/getpagesize.c.
14338         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
14339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14340         REPLACE_GETPAGESIZE.
14341         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
14342
14343 2007-12-25  Bruno Haible  <bruno@clisp.org>
14344
14345         * modules/localcharset (Notice): New field.
14346         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
14347         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14348
14349 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14350             Bruno Haible  <bruno@clisp.org>
14351
14352         Avoid using the syntax symbol() in formatted documentation.
14353         * MODULES.html.sh (func_module): When replacing symbol() with a
14354         hyperlink, remove the parentheses. Show an error if some remain.
14355         Recognize and render the '...' syntax.
14356         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
14357         Rework. Add paragraph about GCC's inlining.
14358         * doc/alloca.texi: Likewise.
14359         * doc/error.texi: Remove parentheses from symbol reference.
14360         * doc/gnulib-intro.texi: Likewise.
14361         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
14362         * modules/fnmatch (Description): Reword to say "the ... function".
14363         * modules/full-read (Description): Likewise.
14364         * modules/full-write (Description): Likewise.
14365         * modules/safe-read (Description): Likewise.
14366         * modules/safe-write (Description): Likewise.
14367         * modules/strchrnul (Description): Likewise.
14368         * modules/trim (Description): Likewise.
14369         * modules/error (Description): Remove parentheses from symbol
14370         references.
14371         * modules/verror (Description): Likewise.
14372         Reported by Karl Berry.
14373
14374 2007-12-25  Bruno Haible  <bruno@clisp.org>
14375
14376         Fixup after 2007-10-16 commit.
14377         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
14378
14379 2007-12-24  Bruno Haible  <bruno@clisp.org>
14380
14381         Make --enable-relocatable work with DESTDIR.
14382         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
14383         to compute installdir from destprog.
14384         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
14385         also set the RELOC_DESTDIR variable.
14386         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14387
14388 2007-12-24  Bruno Haible  <bruno@clisp.org>
14389
14390         Fix link error due to xalloc_die().
14391         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
14392         of xreadlink.
14393         * lib/relocwrapper.c: Update comments.
14394         * build-aux/install-reloc: Remove xreadlink.c from file list.
14395         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
14396         xreadlink.c.
14397         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14398
14399 2007-12-24  Bruno Haible  <bruno@clisp.org>
14400
14401         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
14402         * lib/setenv.h: Remove file.
14403         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
14404         lib/setenv.h.
14405         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
14406         (Depends-on): Add stdlib.
14407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
14408         gl_FUNC_UNSETENV.
14409         (Include): Replace setenv.h with <stdlib.h>.
14410         * modules/unsetenv: New file.
14411         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
14412         * lib/unsetenv.c: Include <stdlib.h> first.
14413         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
14414         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
14415         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
14416         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
14417         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
14418         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
14420         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
14421         * doc/functions/unsetenv.texi: Update.
14422         * modules/xsetenv (Depends-on): Add unsetenv.
14423         * modules/getdate (Depends-on): Likewise.
14424         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
14425         * lib/xsetenv.c: Don't include setenv.h.
14426         * lib/getdate.y: Likewise.
14427         * lib/relocwrapper.c: Likewise.
14428         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
14429         (Depends-on): Add stdlib.
14430         * NEWS: Mention the changes.
14431         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
14432
14433 2007-12-23  Bruno Haible  <bruno@clisp.org>
14434
14435         * lib/memmem.c (memmem): Use lowercase variable names. Tab
14436         indentation.
14437
14438 2007-12-23  Bruno Haible  <bruno@clisp.org>
14439
14440         * lib/c-strcasestr.c: Add more comments.
14441         * lib/c-strstr.c: Likewise.
14442         * lib/mbscasestr.c: Likewise.
14443         * lib/mbsstr.c: Likewise.
14444         * lib/strcasestr.c: Likewise.
14445         * lib/memmem.c: Likewise.
14446
14447 2007-12-23  Bruno Haible  <bruno@clisp.org>
14448
14449         * tests/test-memmem.c: Include <string.h> first.
14450
14451 2007-12-22  Bruno Haible  <bruno@clisp.org>
14452
14453         * gnulib-tool (func_create_testdir): Change $auxdir while generating
14454         the contents of $testsbase.
14455         Reported by Ralf Wildenhues.
14456
14457 2007-12-22  Bruno Haible  <bruno@clisp.org>
14458
14459         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
14460         two variables local_ldadd_before, local_ldadd_last.
14461
14462 2007-12-20  Eric Blake  <ebb9@byu.net>
14463
14464         Work around circular library issue when cross-compiling.
14465         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
14466         that progname.o does not need to pull in rpl_memcmp.
14467
14468 2007-12-19  Eric Blake  <ebb9@byu.net>
14469
14470         Fix memmem to avoid O(n^2) worst-case complexity.
14471         * lib/memmem.c (knuth_morris_pratt): New function.
14472         (memmem): Use it if first few naive iterations fail.
14473         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
14474         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
14475         * modules/memchr (License): Likewise.
14476         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
14477         malloca.
14478         * tests/test-memmem.c: Rewrite, borrowing ideas from
14479         test-mbsstr1.c; the old version wouldn't even compile!
14480         * modules/memmem-tests: New file.
14481         * lib/string.in.h (rpl_memmem): Add declaration.
14482         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
14483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
14484         REPLACE_MEMMEM.
14485
14486 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14487
14488         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
14489         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
14490         before any system include files, and undef after them all.  This
14491         should fix a problem on VMS reported by John E. Malmberg in
14492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
14493
14494 2007-12-17  Eric Blake  <ebb9@byu.net>
14495
14496         Revert addition of verify, for BSD/OS.
14497         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
14498         can't handle large files, for the sake of obsolete platforms.
14499         * modules/fseeko (Depends-on): Remove verify.
14500         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
14501         * doc/functions/ftello.texi (ftello): Likewise.
14502         * doc/functions/fgetpos.texi (fgetpos): Likewise.
14503         Reported by Larry Jones.
14504
14505 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
14506
14507         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
14508         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
14509
14510 2007-12-17  Jim Meyering  <meyering@redhat.com>
14511
14512         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
14513         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
14514         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
14515         * modules/getcwd (Depends-on): Add openat.
14516         Reported by Petr Salinger.
14517
14518 2007-12-17  Bruno Haible  <bruno@clisp.org>
14519
14520         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
14521         avoid a segmentation fault of the configure test on x86_64 systems.
14522
14523 2007-12-15  Jim Meyering  <meyering@redhat.com>
14524
14525         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
14526
14527 2007-12-13  Eric Blake  <ebb9@byu.net>
14528
14529         Another fseek test.
14530         * tests/test-fseek.c (main): Also test ungetc handling.
14531         * tests/test-fseeko.c (main): Likewise.
14532         * modules/fseeko (Depends-on): Add verify.
14533         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
14534         large.
14535         Reported by Larry Jones.
14536
14537         Fix fseeko on mingw.
14538         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
14539         seek.
14540
14541         Beef up fseek tests.
14542         * tests/test-fseek.c (main): Also test eof handling.
14543         * tests/test-fseeko.c (main): Likewise.
14544         Reported by Larry Jones.
14545
14546 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
14547
14548         Fix fseeko on BSD-based platforms.
14549         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
14550         successful seek.
14551
14552 2007-12-12  Eric Blake  <ebb9@byu.net>
14553
14554         Allow circular dependency of separate libtests.a
14555         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
14556         when use_libtests.
14557
14558 2007-12-11  Eric Blake  <ebb9@byu.net>
14559
14560         Fix bug with -0.0L in previous patch.
14561         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
14562         * tests/test-isnan.c (main): Also test on zeroes.
14563         * tests/test-isnanf.c (main): Likewise.
14564         * tests/test-isnanl.h (main): Likewise.
14565
14566         Detect pseudo-denormals on x86 even when cross-compiling.
14567         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
14568         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
14569         invalid bit patterns that happen to satisfy ==.
14570
14571         Avoid link failures with separate libtests.a.
14572         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
14573         last, to satisfy circular dependencies.
14574
14575 2007-12-11  Eric Blake  <ebb9@byu.net>
14576         and Bruno Haible  <bruno@clisp.org>
14577
14578         Fix OpenBSD 4.0 <float.h> handling of long double.
14579         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
14580         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
14581         * doc/headers/float.texi (float.h): Document OpenBSD bug.
14582
14583 2007-12-11  Jim Meyering  <meyering@redhat.com>
14584
14585         * users.txt: Add libvirt.
14586
14587         Support versions of autoconf prior to 2.59c.
14588         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
14589         if it is not already defined.
14590
14591 2007-12-09  Bruno Haible  <bruno@clisp.org>
14592
14593         Let 'gnulib-tool --import' collect sources needed for the tests in
14594         tests/ rather than in lib/.
14595         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
14596         argument. If true, add rules to generate libtests.a, and put libtests.a
14597         into $(LDADD). Consider source files in subdirectories and set
14598         uses_subdirs.
14599         (func_emit_initmacro_start, func_emit_initmacro_end,
14600         func_emit_initmacro_done): Pass all arguments explicitly.
14601         (func_import): Determine two module lists main_modules,
14602         testsrelated_modules. Determine use_libtests. Determine two variables
14603         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
14604         instead of just sed_transform_lib_file. Determine two variables
14605         main_files and testsrelated_files. Compute 'files' as the union of
14606         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
14607         func_add_or_update. In the generated gnulib-comp.m4, collect the
14608         object files for tests/ in different variables than those for lib/.
14609         Substitute LIBTESTS_LIBDEPS.
14610         (func_create_testdir): Combine the uses_subdirs results from
14611         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
14612
14613 2007-12-09  Bruno Haible  <bruno@clisp.org>
14614
14615         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
14616         the build-aux directory.
14617
14618 2007-12-09  Bruno Haible  <bruno@clisp.org>
14619
14620         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
14621         introduced on 2006-09-09.
14622
14623 2007-12-07  Jim Meyering  <meyering@redhat.com>
14624
14625         Let these macros work also with autoconf-2.59.
14626         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
14627         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
14628         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14629
14630 2007-12-06  Jim Meyering  <meyering@redhat.com>
14631
14632         Avoid a configure-time syntax error in gl_FUNC_ACL.
14633         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
14634         function in each branch, before testing the cache variable.
14635
14636 2007-12-04  Eric Blake  <ebb9@byu.net>
14637
14638         Make scripts executable.
14639         * build-aux/config.guess: Add execute permissions.
14640         * build-aux/config.sub: Likewise.
14641         * build-aux/gendocs.sh: Likewise.
14642
14643         Fix frexp on mingw.
14644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
14645         cross-compiling.
14646         * doc/functions/frexp.texi (frexp): Document the bug.
14647
14648         Make cygwin fseeko check more reliable.
14649         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
14650         version numbers, rather than unrelated feature check.
14651         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
14652         * doc/functions/ftello.texi (ftello): Likewise.
14653         Reported by Bruno Haible.
14654
14655         * m4/strerror.m4: Bump version number.
14656
14657 2007-12-03  Bruno Haible  <bruno@clisp.org>
14658
14659         * doc/functions/mprotect.texi: Mention the mingw problem.
14660
14661 2007-12-03  Eric Blake  <ebb9@byu.net>
14662
14663         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
14664         REPLACE_STRERROR is initialized before this macro.
14665
14666 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14667
14668         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
14669         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
14670         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
14671         put -lsec in even for programs other than 'ls'.  This fixes a problem
14672         for gettext reported by Bruno Haible in
14673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
14674         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
14675         Add support for Solaris 10.  This isn't efficient, but should get the
14676         job done for now.
14677
14678 2007-12-03  James Youngman  <jay@gnu.org>
14679
14680         * doc/regexprops-generic.texi: change "an close-group" to "a
14681         close-group" and "illegal" to "not allowed".
14682
14683 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14684
14685         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
14686         pr_byname.h. Needed for the rare case when the maintainer has done
14687         "make maintainer-clean" in the source directory and then attempts a
14688         build outside the source directory.
14689         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
14690         scripts_byname.h.
14691
14692 2007-12-02  Martin Lambers <marlam@marlam.de>
14693             Bruno Haible  <bruno@clisp.org>
14694
14695         * lib/getpagesize.h: Remove file.
14696         * lib/unistd.in.h: Include declaration of getpagesize here.
14697         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
14698         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
14699         HAVE_SYS_PARAM_H.
14700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
14701         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14702         * modules/getpagesize (Files): Remove lib/getpagesize.h.
14703         (Depends-on): Add unistd.
14704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14705         (Include): Use <unistd.h> instead of getpagesize.h.
14706         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
14707         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14708         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
14709         gl_GETPAGESIZE invocation, already handled by module dependency.
14710         * lib/pagealign_alloc.c: Don't include getpagesize.h.
14711
14712 2007-12-02  Bruno Haible  <bruno@clisp.org>
14713
14714         * modules/strings-tests: New file.
14715         * tests/test-strings.c: New file.
14716
14717         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
14718         * lib/strings.in.h: New file.
14719         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
14720         * m4/strings_h.m4: New file.
14721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
14722         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
14723         * modules/strings: New file.
14724         * modules/string (Makefile.am): Update.
14725         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
14726         Reported by Karl Berry.
14727
14728 2007-12-01  Eric Blake  <ebb9@byu.net>
14729
14730         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
14731         accomodate fix in cygwin 1.5.25.
14732
14733 2007-12-01  Jim Meyering  <meyering@redhat.com>
14734
14735         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
14736         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
14737         that would inhibit utf8-optimization of a regexp containing line-
14738         or buffer-anchors, e.g., `^', `$'.
14739
14740 2007-11-30  Bruno Haible  <bruno@clisp.org>
14741
14742         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
14743         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
14744         glthread_recursive_lock_init.
14745         * lib/lock.c (glthread_recursive_lock_init)
14746         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
14747         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14748
14749 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14750
14751         New function qset_acl, like set_acl but with syscall semantics.
14752         * lib/acl.h (qset_acl): New decl.
14753         * lib/acl.c (qset_acl): New function.
14754         (set_acl): Use new function.  Use more-consistent diagnostics.
14755
14756 2007-11-28  Jim Meyering  <meyering@redhat.com>
14757
14758         * modules/physmem (License): Change from GPL to LGPLv2+.
14759
14760 2007-11-26  Bruno Haible  <bruno@clisp.org>
14761
14762         * lib/vasnprintf.c (decode_long_double): Don't abort if the
14763         'long double' type has excess precision.
14764         Reported by Jim Meyering in
14765         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
14766
14767 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14768
14769         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
14770         Sync from <http://gnu.org/licenses>.
14771         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
14772         with license text from same location.
14773         * doc/maintain.texi, doc/standards.texi:  Sync from
14774         <http://savannah.gnu.org/projects/gnustandards>.
14775
14776 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
14777         and Jim Meyering  <meyering@redhat.com>
14778
14779         Adjust getdate' grammar to accept a slightly more regular language.
14780         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
14781         Before, the former was rejected.
14782         * lib/getdate.y (digits_to_date_time): New function, factored
14783         out of ...
14784         (number): ...here.  Just call digits_to_date_time.
14785         (hybrid): New non-terminal to handle an <unsigned number,
14786         signed relative offset> sequence consistently.
14787
14788 2007-11-18  Jim Meyering  <meyering@redhat.com>
14789
14790         Pull my changes from coreutils:
14791         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
14792         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
14793         use of $gnulib_tool_option_extras, so that it's separated from the
14794         preceding argument.
14795
14796         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
14797         * build-aux/bootstrap (cp_mark_as_generated): Create any required
14798         parent destination directories before copying a file into place.
14799
14800 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14801
14802         bootstrap: work also with 4-argument variant of AC_INIT
14803         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
14804
14805 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14806
14807         Port test-getaddrinfo to Solaris.
14808         Problem reported by Bruno Haible in
14809         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
14810         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
14811         explanation of setting 'hints'.
14812         Don't reject an implementation merely because it returns EAI_SERVICE.
14813         (EAI_SERVICE): Define to 0 if not defined.
14814
14815 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14816
14817         The license of gnu-make and posix-shell is now "GPLed build tool".
14818         * modules/gnu-make (License): Likewise.
14819         * modules/posix-shell (License): Likewise.
14820
14821         New module posix-shell, for determining a POSIX shell
14822         or perhaps something that is close enough to a POSIX shell.
14823         * m4/posix-shell.m4: New file.
14824         * modules/posix-shell: New file.
14825
14826         * MODULES.html.sh: Mention new module.
14827
14828         New module gnu-make, for determining whether we're using GNU Make.
14829         * m4/gnu-make.m4: New file.
14830         * modules/gnu-make: New file.
14831         * MODULES.html.sh: Mention new module.
14832
14833 2007-11-14  Jim Meyering  <meyering@redhat.com>
14834
14835         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
14836         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
14837         use this macro to create a function _definition_.
14838         Remove useless "#undef ARGMATCH_DIE".
14839
14840 2007-11-14  Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/config.charset: Update for OpenBSD 4.1.
14843         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
14844
14845 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
14846
14847         Document 64-bit #if problems in stdint.texi.
14848         * doc/headers/stdint.texi (stdint.h): Mention problems with
14849         64-bit-#if, and how to work around them.
14850
14851         Don't insist on 'long long int' support in the preprocessor.  It
14852         breaks too many things.  For example, PRIdMAX still uses a 'long
14853         long int' format with the latest Sun compiler, even though
14854         HAVE_LONG_LONG_INT isn't defined due to that compiler's
14855         preprocessor problem.  This causes the latest coreutils to dump
14856         core on Solaris 10 sparc with the Sun C compiler.
14857         Instead, fix the 2007-10-16 problem in a different way, by evaluating
14858         the troublesome expressions at configure-time, not at #if-time.
14859         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
14860         preprocessor.
14861         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
14862         compile-time C checks, done at 'configure'-time.
14863         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
14864         * modules/inttypes (Makefile): Substitute the new symbols that
14865         gl_INTTYPES_H now generates.
14866         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
14867
14868 2007-11-12  Bruno Haible  <bruno@clisp.org>
14869
14870         Tests for Unicode character classification functions.
14871
14872         * modules/unictype/bidicategory-byname-tests: New file.
14873         * modules/unictype/bidicategory-name-tests: New file.
14874         * modules/unictype/bidicategory-of-tests: New file.
14875         * modules/unictype/bidicategory-test-tests: New file.
14876         * modules/unictype/block-list-tests: New file.
14877         * modules/unictype/block-of-tests: New file.
14878         * modules/unictype/block-test-tests: New file.
14879         * modules/unictype/category-C-tests: New file.
14880         * modules/unictype/category-Cc-tests: New file.
14881         * modules/unictype/category-Cf-tests: New file.
14882         * modules/unictype/category-Cn-tests: New file.
14883         * modules/unictype/category-Co-tests: New file.
14884         * modules/unictype/category-Cs-tests: New file.
14885         * modules/unictype/category-L-tests: New file.
14886         * modules/unictype/category-Ll-tests: New file.
14887         * modules/unictype/category-Lm-tests: New file.
14888         * modules/unictype/category-Lo-tests: New file.
14889         * modules/unictype/category-Lt-tests: New file.
14890         * modules/unictype/category-Lu-tests: New file.
14891         * modules/unictype/category-M-tests: New file.
14892         * modules/unictype/category-Mc-tests: New file.
14893         * modules/unictype/category-Me-tests: New file.
14894         * modules/unictype/category-Mn-tests: New file.
14895         * modules/unictype/category-N-tests: New file.
14896         * modules/unictype/category-Nd-tests: New file.
14897         * modules/unictype/category-Nl-tests: New file.
14898         * modules/unictype/category-No-tests: New file.
14899         * modules/unictype/category-P-tests: New file.
14900         * modules/unictype/category-Pc-tests: New file.
14901         * modules/unictype/category-Pd-tests: New file.
14902         * modules/unictype/category-Pe-tests: New file.
14903         * modules/unictype/category-Pf-tests: New file.
14904         * modules/unictype/category-Pi-tests: New file.
14905         * modules/unictype/category-Po-tests: New file.
14906         * modules/unictype/category-Ps-tests: New file.
14907         * modules/unictype/category-S-tests: New file.
14908         * modules/unictype/category-Sc-tests: New file.
14909         * modules/unictype/category-Sk-tests: New file.
14910         * modules/unictype/category-Sm-tests: New file.
14911         * modules/unictype/category-So-tests: New file.
14912         * modules/unictype/category-Z-tests: New file.
14913         * modules/unictype/category-Zl-tests: New file.
14914         * modules/unictype/category-Zp-tests: New file.
14915         * modules/unictype/category-Zs-tests: New file.
14916         * modules/unictype/category-and-not-tests: New file.
14917         * modules/unictype/category-and-tests: New file.
14918         * modules/unictype/category-byname-tests: New file.
14919         * modules/unictype/category-name-tests: New file.
14920         * modules/unictype/category-none-tests: New file.
14921         * modules/unictype/category-of-tests: New file.
14922         * modules/unictype/category-or-tests: New file.
14923         * modules/unictype/category-test-withtable-tests: New file.
14924         * modules/unictype/combining-class-tests: New file.
14925         * modules/unictype/ctype-alnum-tests: New file.
14926         * modules/unictype/ctype-alpha-tests: New file.
14927         * modules/unictype/ctype-blank-tests: New file.
14928         * modules/unictype/ctype-cntrl-tests: New file.
14929         * modules/unictype/ctype-digit-tests: New file.
14930         * modules/unictype/ctype-graph-tests: New file.
14931         * modules/unictype/ctype-lower-tests: New file.
14932         * modules/unictype/ctype-print-tests: New file.
14933         * modules/unictype/ctype-punct-tests: New file.
14934         * modules/unictype/ctype-space-tests: New file.
14935         * modules/unictype/ctype-upper-tests: New file.
14936         * modules/unictype/ctype-xdigit-tests: New file.
14937         * modules/unictype/decimal-digit-tests: New file.
14938         * modules/unictype/digit-tests: New file.
14939         * modules/unictype/mirror-tests: New file.
14940         * modules/unictype/numeric-tests: New file.
14941         * modules/unictype/property-alphabetic-tests: New file.
14942         * modules/unictype/property-ascii-hex-digit-tests: New file.
14943         * modules/unictype/property-bidi-arabic-digit-tests: New file.
14944         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14945         * modules/unictype/property-bidi-block-separator-tests: New file.
14946         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14947         * modules/unictype/property-bidi-common-separator-tests: New file.
14948         * modules/unictype/property-bidi-control-tests: New file.
14949         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14950         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14951         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14952         * modules/unictype/property-bidi-european-digit-tests: New file.
14953         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14954         * modules/unictype/property-bidi-left-to-right-tests: New file.
14955         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14956         * modules/unictype/property-bidi-other-neutral-tests: New file.
14957         * modules/unictype/property-bidi-pdf-tests: New file.
14958         * modules/unictype/property-bidi-segment-separator-tests: New file.
14959         * modules/unictype/property-bidi-whitespace-tests: New file.
14960         * modules/unictype/property-byname-tests: New file.
14961         * modules/unictype/property-combining-tests: New file.
14962         * modules/unictype/property-composite-tests: New file.
14963         * modules/unictype/property-currency-symbol-tests: New file.
14964         * modules/unictype/property-dash-tests: New file.
14965         * modules/unictype/property-decimal-digit-tests: New file.
14966         * modules/unictype/property-default-ignorable-code-point-tests: New file.
14967         * modules/unictype/property-deprecated-tests: New file.
14968         * modules/unictype/property-diacritic-tests: New file.
14969         * modules/unictype/property-extender-tests: New file.
14970         * modules/unictype/property-format-control-tests: New file.
14971         * modules/unictype/property-grapheme-base-tests: New file.
14972         * modules/unictype/property-grapheme-extend-tests: New file.
14973         * modules/unictype/property-grapheme-link-tests: New file.
14974         * modules/unictype/property-hex-digit-tests: New file.
14975         * modules/unictype/property-hyphen-tests: New file.
14976         * modules/unictype/property-id-continue-tests: New file.
14977         * modules/unictype/property-id-start-tests: New file.
14978         * modules/unictype/property-ideographic-tests: New file.
14979         * modules/unictype/property-ids-binary-operator-tests: New file.
14980         * modules/unictype/property-ids-trinary-operator-tests: New file.
14981         * modules/unictype/property-ignorable-control-tests: New file.
14982         * modules/unictype/property-iso-control-tests: New file.
14983         * modules/unictype/property-join-control-tests: New file.
14984         * modules/unictype/property-left-of-pair-tests: New file.
14985         * modules/unictype/property-line-separator-tests: New file.
14986         * modules/unictype/property-logical-order-exception-tests: New file.
14987         * modules/unictype/property-lowercase-tests: New file.
14988         * modules/unictype/property-math-tests: New file.
14989         * modules/unictype/property-non-break-tests: New file.
14990         * modules/unictype/property-not-a-character-tests: New file.
14991         * modules/unictype/property-numeric-tests: New file.
14992         * modules/unictype/property-other-alphabetic-tests: New file.
14993         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14994         * modules/unictype/property-other-grapheme-extend-tests: New file.
14995         * modules/unictype/property-other-id-continue-tests: New file.
14996         * modules/unictype/property-other-id-start-tests: New file.
14997         * modules/unictype/property-other-lowercase-tests: New file.
14998         * modules/unictype/property-other-math-tests: New file.
14999         * modules/unictype/property-other-uppercase-tests: New file.
15000         * modules/unictype/property-paired-punctuation-tests: New file.
15001         * modules/unictype/property-paragraph-separator-tests: New file.
15002         * modules/unictype/property-pattern-syntax-tests: New file.
15003         * modules/unictype/property-pattern-white-space-tests: New file.
15004         * modules/unictype/property-private-use-tests: New file.
15005         * modules/unictype/property-punctuation-tests: New file.
15006         * modules/unictype/property-quotation-mark-tests: New file.
15007         * modules/unictype/property-radical-tests: New file.
15008         * modules/unictype/property-sentence-terminal-tests: New file.
15009         * modules/unictype/property-soft-dotted-tests: New file.
15010         * modules/unictype/property-space-tests: New file.
15011         * modules/unictype/property-terminal-punctuation-tests: New file.
15012         * modules/unictype/property-test-tests: New file.
15013         * modules/unictype/property-titlecase-tests: New file.
15014         * modules/unictype/property-unassigned-code-value-tests: New file.
15015         * modules/unictype/property-unified-ideograph-tests: New file.
15016         * modules/unictype/property-uppercase-tests: New file.
15017         * modules/unictype/property-variation-selector-tests: New file.
15018         * modules/unictype/property-white-space-tests: New file.
15019         * modules/unictype/property-xid-continue-tests: New file.
15020         * modules/unictype/property-xid-start-tests: New file.
15021         * modules/unictype/property-zero-width-tests: New file.
15022         * modules/unictype/scripts-tests: New file.
15023         * modules/unictype/syntax-c-ident-tests: New file.
15024         * modules/unictype/syntax-c-whitespace-tests: New file.
15025         * modules/unictype/syntax-java-ident-tests: New file.
15026         * modules/unictype/syntax-java-whitespace-tests: New file.
15027         * tests/unictype/test-bidi_byname.c: New file.
15028         * tests/unictype/test-bidi_name.c: New file.
15029         * tests/unictype/test-bidi_of.c: New file.
15030         * tests/unictype/test-bidi_test.c: New file.
15031         * tests/unictype/test-block_list.c: New file.
15032         * tests/unictype/test-block_of.c: New file.
15033         * tests/unictype/test-block_test.c: New file.
15034         * tests/unictype/test-categ_and.c: New file.
15035         * tests/unictype/test-categ_and_not.c: New file.
15036         * tests/unictype/test-categ_byname.c: New file.
15037         * tests/unictype/test-categ_name.c: New file.
15038         * tests/unictype/test-categ_none.c: New file.
15039         * tests/unictype/test-categ_of.c: New file.
15040         * tests/unictype/test-categ_or.c: New file.
15041         * tests/unictype/test-categ_test_withtable.c: New file.
15042         * tests/unictype/test-combining.c: New file.
15043         * tests/unictype/test-decdigit.c: New file.
15044         * tests/unictype/test-digit.c: New file.
15045         * tests/unictype/test-mirror.c: New file.
15046         * tests/unictype/test-numeric.c: New file.
15047         * tests/unictype/test-pr_byname.c: New file.
15048         * tests/unictype/test-pr_test.c: New file.
15049         * tests/unictype/test-predicate-part1.h: New file.
15050         * tests/unictype/test-predicate-part2.h: New file.
15051         * tests/unictype/test-scripts.c: New file.
15052         * tests/unictype/test-sy_c_ident.c: New file.
15053         * tests/unictype/test-sy_java_ident.c: New file.
15054
15055         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
15056         for Unicode 5.0.0.
15057         * tests/unictype/test-categ_Cc.c: Likewise.
15058         * tests/unictype/test-categ_Cf.c: Likewise.
15059         * tests/unictype/test-categ_Cn.c: Likewise.
15060         * tests/unictype/test-categ_Co.c: Likewise.
15061         * tests/unictype/test-categ_Cs.c: Likewise.
15062         * tests/unictype/test-categ_L.c: Likewise.
15063         * tests/unictype/test-categ_Ll.c: Likewise.
15064         * tests/unictype/test-categ_Lm.c: Likewise.
15065         * tests/unictype/test-categ_Lo.c: Likewise.
15066         * tests/unictype/test-categ_Lt.c: Likewise.
15067         * tests/unictype/test-categ_Lu.c: Likewise.
15068         * tests/unictype/test-categ_M.c: Likewise.
15069         * tests/unictype/test-categ_Mc.c: Likewise.
15070         * tests/unictype/test-categ_Me.c: Likewise.
15071         * tests/unictype/test-categ_Mn.c: Likewise.
15072         * tests/unictype/test-categ_N.c: Likewise.
15073         * tests/unictype/test-categ_Nd.c: Likewise.
15074         * tests/unictype/test-categ_Nl.c: Likewise.
15075         * tests/unictype/test-categ_No.c: Likewise.
15076         * tests/unictype/test-categ_P.c: Likewise.
15077         * tests/unictype/test-categ_Pc.c: Likewise.
15078         * tests/unictype/test-categ_Pd.c: Likewise.
15079         * tests/unictype/test-categ_Pe.c: Likewise.
15080         * tests/unictype/test-categ_Pf.c: Likewise.
15081         * tests/unictype/test-categ_Pi.c: Likewise.
15082         * tests/unictype/test-categ_Po.c: Likewise.
15083         * tests/unictype/test-categ_Ps.c: Likewise.
15084         * tests/unictype/test-categ_S.c: Likewise.
15085         * tests/unictype/test-categ_Sc.c: Likewise.
15086         * tests/unictype/test-categ_Sk.c: Likewise.
15087         * tests/unictype/test-categ_Sm.c: Likewise.
15088         * tests/unictype/test-categ_So.c: Likewise.
15089         * tests/unictype/test-categ_Z.c: Likewise.
15090         * tests/unictype/test-categ_Zl.c: Likewise.
15091         * tests/unictype/test-categ_Zp.c: Likewise.
15092         * tests/unictype/test-categ_Zs.c: Likewise.
15093         * tests/unictype/test-ctype_alnum.c: Likewise.
15094         * tests/unictype/test-ctype_alpha.c: Likewise.
15095         * tests/unictype/test-ctype_blank.c: Likewise.
15096         * tests/unictype/test-ctype_cntrl.c: Likewise.
15097         * tests/unictype/test-ctype_digit.c: Likewise.
15098         * tests/unictype/test-ctype_graph.c: Likewise.
15099         * tests/unictype/test-ctype_lower.c: Likewise.
15100         * tests/unictype/test-ctype_print.c: Likewise.
15101         * tests/unictype/test-ctype_punct.c: Likewise.
15102         * tests/unictype/test-ctype_space.c: Likewise.
15103         * tests/unictype/test-ctype_upper.c: Likewise.
15104         * tests/unictype/test-ctype_xdigit.c: Likewise.
15105         * tests/unictype/test-decdigit.h: Likewise.
15106         * tests/unictype/test-digit.h: Likewise.
15107         * tests/unictype/test-numeric.h: Likewise.
15108         * tests/unictype/test-pr_alphabetic.c: Likewise.
15109         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
15110         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15111         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15112         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
15113         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15114         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
15115         * tests/unictype/test-pr_bidi_control.c: Likewise.
15116         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
15117         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
15118         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15119         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15120         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15121         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15122         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15123         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15124         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
15125         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
15126         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
15127         * tests/unictype/test-pr_combining.c: Likewise.
15128         * tests/unictype/test-pr_composite.c: Likewise.
15129         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15130         * tests/unictype/test-pr_dash.c: Likewise.
15131         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15132         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
15133         * tests/unictype/test-pr_deprecated.c: Likewise.
15134         * tests/unictype/test-pr_diacritic.c: Likewise.
15135         * tests/unictype/test-pr_extender.c: Likewise.
15136         * tests/unictype/test-pr_format_control.c: Likewise.
15137         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15138         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15139         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15140         * tests/unictype/test-pr_hex_digit.c: Likewise.
15141         * tests/unictype/test-pr_hyphen.c: Likewise.
15142         * tests/unictype/test-pr_id_continue.c: Likewise.
15143         * tests/unictype/test-pr_id_start.c: Likewise.
15144         * tests/unictype/test-pr_ideographic.c: Likewise.
15145         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
15146         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
15147         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15148         * tests/unictype/test-pr_iso_control.c: Likewise.
15149         * tests/unictype/test-pr_join_control.c: Likewise.
15150         * tests/unictype/test-pr_left_of_pair.c: Likewise.
15151         * tests/unictype/test-pr_line_separator.c: Likewise.
15152         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15153         * tests/unictype/test-pr_lowercase.c: Likewise.
15154         * tests/unictype/test-pr_math.c: Likewise.
15155         * tests/unictype/test-pr_non_break.c: Likewise.
15156         * tests/unictype/test-pr_not_a_character.c: Likewise.
15157         * tests/unictype/test-pr_numeric.c: Likewise.
15158         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15159         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
15160         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
15161         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15162         * tests/unictype/test-pr_other_id_start.c: Likewise.
15163         * tests/unictype/test-pr_other_lowercase.c: Likewise.
15164         * tests/unictype/test-pr_other_math.c: Likewise.
15165         * tests/unictype/test-pr_other_uppercase.c: Likewise.
15166         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
15167         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
15168         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
15169         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
15170         * tests/unictype/test-pr_private_use.c: Likewise.
15171         * tests/unictype/test-pr_punctuation.c: Likewise.
15172         * tests/unictype/test-pr_quotation_mark.c: Likewise.
15173         * tests/unictype/test-pr_radical.c: Likewise.
15174         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15175         * tests/unictype/test-pr_soft_dotted.c: Likewise.
15176         * tests/unictype/test-pr_space.c: Likewise.
15177         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15178         * tests/unictype/test-pr_titlecase.c: Likewise.
15179         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15180         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15181         * tests/unictype/test-pr_uppercase.c: Likewise.
15182         * tests/unictype/test-pr_variation_selector.c: Likewise.
15183         * tests/unictype/test-pr_white_space.c: Likewise.
15184         * tests/unictype/test-pr_xid_continue.c: Likewise.
15185         * tests/unictype/test-pr_xid_start.c: Likewise.
15186         * tests/unictype/test-pr_zero_width.c: Likewise.
15187         * tests/unictype/test-sy_c_whitespace.c: Likewise.
15188         * tests/unictype/test-sy_java_whitespace.c: Likewise.
15189
15190 2007-11-12  Bruno Haible  <bruno@clisp.org>
15191
15192         Unicode character classification functions.
15193         * lib/unictype.h: New file.
15194         * modules/unictype/base: New file.
15195         * modules/unictype/category-L: New file.
15196         * modules/unictype/category-Lu: New file.
15197         * modules/unictype/category-Ll: New file.
15198         * modules/unictype/category-Lt: New file.
15199         * modules/unictype/category-Lm: New file.
15200         * modules/unictype/category-Lo: New file.
15201         * modules/unictype/category-M: New file.
15202         * modules/unictype/category-Mn: New file.
15203         * modules/unictype/category-Mc: New file.
15204         * modules/unictype/category-Me: New file.
15205         * modules/unictype/category-N: New file.
15206         * modules/unictype/category-Nd: New file.
15207         * modules/unictype/category-Nl: New file.
15208         * modules/unictype/category-No: New file.
15209         * modules/unictype/category-P: New file.
15210         * modules/unictype/category-Pc: New file.
15211         * modules/unictype/category-Pd: New file.
15212         * modules/unictype/category-Ps: New file.
15213         * modules/unictype/category-Pe: New file.
15214         * modules/unictype/category-Pi: New file.
15215         * modules/unictype/category-Pf: New file.
15216         * modules/unictype/category-Po: New file.
15217         * modules/unictype/category-S: New file.
15218         * modules/unictype/category-Sm: New file.
15219         * modules/unictype/category-Sc: New file.
15220         * modules/unictype/category-Sk: New file.
15221         * modules/unictype/category-So: New file.
15222         * modules/unictype/category-Z: New file.
15223         * modules/unictype/category-Zs: New file.
15224         * modules/unictype/category-Zl: New file.
15225         * modules/unictype/category-Zp: New file.
15226         * modules/unictype/category-C: New file.
15227         * modules/unictype/category-Cc: New file.
15228         * modules/unictype/category-Cf: New file.
15229         * modules/unictype/category-Cs: New file.
15230         * modules/unictype/category-Co: New file.
15231         * modules/unictype/category-Cn: New file.
15232         * modules/unictype/category-or: New file.
15233         * modules/unictype/category-of: New file.
15234         * modules/unictype/category-test: New file.
15235         * modules/unictype/category-test-withtable: New file.
15236         * modules/unictype/category-byname: New file.
15237         * modules/unictype/category-none: New file.
15238         * modules/unictype/category-and: New file.
15239         * modules/unictype/category-and-not: New file.
15240         * modules/unictype/category-name: New file.
15241         * modules/unictype/combining-class: New file.
15242         * modules/unictype/category-all: New file.
15243         * modules/unictype/bidicategory-all: New file.
15244         * modules/unictype/bidicategory-byname: New file.
15245         * modules/unictype/bidicategory-name: New file.
15246         * modules/unictype/bidicategory-of: New file.
15247         * modules/unictype/bidicategory-test: New file.
15248         * modules/unictype/decimal-digit: New file.
15249         * modules/unictype/digit: New file.
15250         * modules/unictype/numeric: New file.
15251         * modules/unictype/mirror: New file.
15252         * modules/unictype/property-white-space: New file.
15253         * modules/unictype/property-alphabetic: New file.
15254         * modules/unictype/property-other-alphabetic: New file.
15255         * modules/unictype/property-not-a-character: New file.
15256         * modules/unictype/property-default-ignorable-code-point: New file.
15257         * modules/unictype/property-other-default-ignorable-code-point: New
15258         file.
15259         * modules/unictype/property-deprecated: New file.
15260         * modules/unictype/property-logical-order-exception: New file.
15261         * modules/unictype/property-variation-selector: New file.
15262         * modules/unictype/property-private-use: New file.
15263         * modules/unictype/property-unassigned-code-value: New file.
15264         * modules/unictype/property-uppercase: New file.
15265         * modules/unictype/property-other-uppercase: New file.
15266         * modules/unictype/property-lowercase: New file.
15267         * modules/unictype/property-other-lowercase: New file.
15268         * modules/unictype/property-titlecase: New file.
15269         * modules/unictype/property-soft-dotted: New file.
15270         * modules/unictype/property-id-start: New file.
15271         * modules/unictype/property-other-id-start: New file.
15272         * modules/unictype/property-id-continue: New file.
15273         * modules/unictype/property-other-id-continue: New file.
15274         * modules/unictype/property-xid-start: New file.
15275         * modules/unictype/property-xid-continue: New file.
15276         * modules/unictype/property-pattern-white-space: New file.
15277         * modules/unictype/property-pattern-syntax: New file.
15278         * modules/unictype/property-join-control: New file.
15279         * modules/unictype/property-grapheme-base: New file.
15280         * modules/unictype/property-grapheme-extend: New file.
15281         * modules/unictype/property-other-grapheme-extend: New file.
15282         * modules/unictype/property-grapheme-link: New file.
15283         * modules/unictype/property-bidi-control: New file.
15284         * modules/unictype/property-bidi-left-to-right: New file.
15285         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
15286         * modules/unictype/property-bidi-arabic-right-to-left: New file.
15287         * modules/unictype/property-bidi-european-digit: New file.
15288         * modules/unictype/property-bidi-eur-num-separator: New file.
15289         * modules/unictype/property-bidi-eur-num-terminator: New file.
15290         * modules/unictype/property-bidi-arabic-digit: New file.
15291         * modules/unictype/property-bidi-common-separator: New file.
15292         * modules/unictype/property-bidi-block-separator: New file.
15293         * modules/unictype/property-bidi-segment-separator: New file.
15294         * modules/unictype/property-bidi-whitespace: New file.
15295         * modules/unictype/property-bidi-non-spacing-mark: New file.
15296         * modules/unictype/property-bidi-boundary-neutral: New file.
15297         * modules/unictype/property-bidi-pdf: New file.
15298         * modules/unictype/property-bidi-embedding-or-override: New file.
15299         * modules/unictype/property-bidi-other-neutral: New file.
15300         * modules/unictype/property-hex-digit: New file.
15301         * modules/unictype/property-ascii-hex-digit: New file.
15302         * modules/unictype/property-ideographic: New file.
15303         * modules/unictype/property-unified-ideograph: New file.
15304         * modules/unictype/property-radical: New file.
15305         * modules/unictype/property-ids-binary-operator: New file.
15306         * modules/unictype/property-ids-trinary-operator: New file.
15307         * modules/unictype/property-zero-width: New file.
15308         * modules/unictype/property-space: New file.
15309         * modules/unictype/property-non-break: New file.
15310         * modules/unictype/property-iso-control: New file.
15311         * modules/unictype/property-format-control: New file.
15312         * modules/unictype/property-dash: New file.
15313         * modules/unictype/property-hyphen: New file.
15314         * modules/unictype/property-punctuation: New file.
15315         * modules/unictype/property-line-separator: New file.
15316         * modules/unictype/property-paragraph-separator: New file.
15317         * modules/unictype/property-quotation-mark: New file.
15318         * modules/unictype/property-sentence-terminal: New file.
15319         * modules/unictype/property-terminal-punctuation: New file.
15320         * modules/unictype/property-currency-symbol: New file.
15321         * modules/unictype/property-math: New file.
15322         * modules/unictype/property-other-math: New file.
15323         * modules/unictype/property-paired-punctuation: New file.
15324         * modules/unictype/property-left-of-pair: New file.
15325         * modules/unictype/property-combining: New file.
15326         * modules/unictype/property-composite: New file.
15327         * modules/unictype/property-decimal-digit: New file.
15328         * modules/unictype/property-numeric: New file.
15329         * modules/unictype/property-diacritic: New file.
15330         * modules/unictype/property-extender: New file.
15331         * modules/unictype/property-ignorable-control: New file.
15332         * modules/unictype/property-test: New file.
15333         * modules/unictype/property-byname: New file.
15334         * modules/unictype/property-all: New file.
15335         * modules/unictype/scripts: New file.
15336         * modules/unictype/scripts-all: New file.
15337         * modules/unictype/block-of: New file.
15338         * modules/unictype/block-test: New file.
15339         * modules/unictype/block-list: New file.
15340         * modules/unictype/block-all: New file.
15341         * modules/unictype/syntax-c-whitespace: New file.
15342         * modules/unictype/syntax-java-whitespace: New file.
15343         * modules/unictype/syntax-c-ident: New file.
15344         * modules/unictype/syntax-java-ident: New file.
15345         * modules/unictype/ctype-alnum: New file.
15346         * modules/unictype/ctype-alpha: New file.
15347         * modules/unictype/ctype-cntrl: New file.
15348         * modules/unictype/ctype-digit: New file.
15349         * modules/unictype/ctype-graph: New file.
15350         * modules/unictype/ctype-lower: New file.
15351         * modules/unictype/ctype-print: New file.
15352         * modules/unictype/ctype-punct: New file.
15353         * modules/unictype/ctype-space: New file.
15354         * modules/unictype/ctype-upper: New file.
15355         * modules/unictype/ctype-xdigit: New file.
15356         * modules/unictype/ctype-blank: New file.
15357         * lib/unictype/bidi_byname.c: New file.
15358         * lib/unictype/bidi_name.c: New file.
15359         * lib/unictype/bidi_of.c: New file.
15360         * lib/unictype/bidi_test.c: New file.
15361         * lib/unictype/bitmap.h: New file.
15362         * lib/unictype/block_test.c: New file.
15363         * lib/unictype/blocks.c: New file.
15364         * lib/unictype/categ_C.c: New file.
15365         * lib/unictype/categ_Cc.c: New file.
15366         * lib/unictype/categ_Cf.c: New file.
15367         * lib/unictype/categ_Cn.c: New file.
15368         * lib/unictype/categ_Co.c: New file.
15369         * lib/unictype/categ_Cs.c: New file.
15370         * lib/unictype/categ_L.c: New file.
15371         * lib/unictype/categ_Ll.c: New file.
15372         * lib/unictype/categ_Lm.c: New file.
15373         * lib/unictype/categ_Lo.c: New file.
15374         * lib/unictype/categ_Lt.c: New file.
15375         * lib/unictype/categ_Lu.c: New file.
15376         * lib/unictype/categ_M.c: New file.
15377         * lib/unictype/categ_Mc.c: New file.
15378         * lib/unictype/categ_Me.c: New file.
15379         * lib/unictype/categ_Mn.c: New file.
15380         * lib/unictype/categ_N.c: New file.
15381         * lib/unictype/categ_Nd.c: New file.
15382         * lib/unictype/categ_Nl.c: New file.
15383         * lib/unictype/categ_No.c: New file.
15384         * lib/unictype/categ_P.c: New file.
15385         * lib/unictype/categ_Pc.c: New file.
15386         * lib/unictype/categ_Pd.c: New file.
15387         * lib/unictype/categ_Pe.c: New file.
15388         * lib/unictype/categ_Pf.c: New file.
15389         * lib/unictype/categ_Pi.c: New file.
15390         * lib/unictype/categ_Po.c: New file.
15391         * lib/unictype/categ_Ps.c: New file.
15392         * lib/unictype/categ_S.c: New file.
15393         * lib/unictype/categ_Sc.c: New file.
15394         * lib/unictype/categ_Sk.c: New file.
15395         * lib/unictype/categ_Sm.c: New file.
15396         * lib/unictype/categ_So.c: New file.
15397         * lib/unictype/categ_Z.c: New file.
15398         * lib/unictype/categ_Zl.c: New file.
15399         * lib/unictype/categ_Zp.c: New file.
15400         * lib/unictype/categ_Zs.c: New file.
15401         * lib/unictype/categ_and.c: New file.
15402         * lib/unictype/categ_and_not.c: New file.
15403         * lib/unictype/categ_byname.c: New file.
15404         * lib/unictype/categ_name.c: New file.
15405         * lib/unictype/categ_none.c: New file.
15406         * lib/unictype/categ_of.c: New file.
15407         * lib/unictype/categ_or.c: New file.
15408         * lib/unictype/categ_test.c: New file.
15409         * lib/unictype/combining.c: New file.
15410         * lib/unictype/ctype_alnum.c: New file.
15411         * lib/unictype/ctype_alpha.c: New file.
15412         * lib/unictype/ctype_blank.c: New file.
15413         * lib/unictype/ctype_cntrl.c: New file.
15414         * lib/unictype/ctype_digit.c: New file.
15415         * lib/unictype/ctype_graph.c: New file.
15416         * lib/unictype/ctype_lower.c: New file.
15417         * lib/unictype/ctype_print.c: New file.
15418         * lib/unictype/ctype_punct.c: New file.
15419         * lib/unictype/ctype_space.c: New file.
15420         * lib/unictype/ctype_upper.c: New file.
15421         * lib/unictype/ctype_xdigit.c: New file.
15422         * lib/unictype/decdigit.c: New file.
15423         * lib/unictype/digit.c: New file.
15424         * lib/unictype/identsyntaxmap.h: New file.
15425         * lib/unictype/mirror.c: New file.
15426         * lib/unictype/numeric.c: New file.
15427         * lib/unictype/pr_alphabetic.c: New file.
15428         * lib/unictype/pr_ascii_hex_digit.c: New file.
15429         * lib/unictype/pr_bidi_arabic_digit.c: New file.
15430         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
15431         * lib/unictype/pr_bidi_block_separator.c: New file.
15432         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
15433         * lib/unictype/pr_bidi_common_separator.c: New file.
15434         * lib/unictype/pr_bidi_control.c: New file.
15435         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
15436         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
15437         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
15438         * lib/unictype/pr_bidi_european_digit.c: New file.
15439         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
15440         * lib/unictype/pr_bidi_left_to_right.c: New file.
15441         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
15442         * lib/unictype/pr_bidi_other_neutral.c: New file.
15443         * lib/unictype/pr_bidi_pdf.c: New file.
15444         * lib/unictype/pr_bidi_segment_separator.c: New file.
15445         * lib/unictype/pr_bidi_whitespace.c: New file.
15446         * lib/unictype/pr_byname.c: New file.
15447         * lib/unictype/pr_byname.gperf: New file.
15448         * lib/unictype/pr_combining.c: New file.
15449         * lib/unictype/pr_composite.c: New file.
15450         * lib/unictype/pr_currency_symbol.c: New file.
15451         * lib/unictype/pr_dash.c: New file.
15452         * lib/unictype/pr_decimal_digit.c: New file.
15453         * lib/unictype/pr_default_ignorable_code_point.c: New file.
15454         * lib/unictype/pr_deprecated.c: New file.
15455         * lib/unictype/pr_diacritic.c: New file.
15456         * lib/unictype/pr_extender.c: New file.
15457         * lib/unictype/pr_format_control.c: New file.
15458         * lib/unictype/pr_grapheme_base.c: New file.
15459         * lib/unictype/pr_grapheme_extend.c: New file.
15460         * lib/unictype/pr_grapheme_link.c: New file.
15461         * lib/unictype/pr_hex_digit.c: New file.
15462         * lib/unictype/pr_hyphen.c: New file.
15463         * lib/unictype/pr_id_continue.c: New file.
15464         * lib/unictype/pr_id_start.c: New file.
15465         * lib/unictype/pr_ideographic.c: New file.
15466         * lib/unictype/pr_ids_binary_operator.c: New file.
15467         * lib/unictype/pr_ids_trinary_operator.c: New file.
15468         * lib/unictype/pr_ignorable_control.c: New file.
15469         * lib/unictype/pr_iso_control.c: New file.
15470         * lib/unictype/pr_join_control.c: New file.
15471         * lib/unictype/pr_left_of_pair.c: New file.
15472         * lib/unictype/pr_line_separator.c: New file.
15473         * lib/unictype/pr_logical_order_exception.c: New file.
15474         * lib/unictype/pr_lowercase.c: New file.
15475         * lib/unictype/pr_math.c: New file.
15476         * lib/unictype/pr_non_break.c: New file.
15477         * lib/unictype/pr_not_a_character.c: New file.
15478         * lib/unictype/pr_numeric.c: New file.
15479         * lib/unictype/pr_other_alphabetic.c: New file.
15480         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
15481         * lib/unictype/pr_other_grapheme_extend.c: New file.
15482         * lib/unictype/pr_other_id_continue.c: New file.
15483         * lib/unictype/pr_other_id_start.c: New file.
15484         * lib/unictype/pr_other_lowercase.c: New file.
15485         * lib/unictype/pr_other_math.c: New file.
15486         * lib/unictype/pr_other_uppercase.c: New file.
15487         * lib/unictype/pr_paired_punctuation.c: New file.
15488         * lib/unictype/pr_paragraph_separator.c: New file.
15489         * lib/unictype/pr_pattern_syntax.c: New file.
15490         * lib/unictype/pr_pattern_white_space.c: New file.
15491         * lib/unictype/pr_private_use.c: New file.
15492         * lib/unictype/pr_punctuation.c: New file.
15493         * lib/unictype/pr_quotation_mark.c: New file.
15494         * lib/unictype/pr_radical.c: New file.
15495         * lib/unictype/pr_sentence_terminal.c: New file.
15496         * lib/unictype/pr_soft_dotted.c: New file.
15497         * lib/unictype/pr_space.c: New file.
15498         * lib/unictype/pr_terminal_punctuation.c: New file.
15499         * lib/unictype/pr_test.c: New file.
15500         * lib/unictype/pr_titlecase.c: New file.
15501         * lib/unictype/pr_unassigned_code_value.c: New file.
15502         * lib/unictype/pr_unified_ideograph.c: New file.
15503         * lib/unictype/pr_uppercase.c: New file.
15504         * lib/unictype/pr_variation_selector.c: New file.
15505         * lib/unictype/pr_white_space.c: New file.
15506         * lib/unictype/pr_xid_continue.c: New file.
15507         * lib/unictype/pr_xid_start.c: New file.
15508         * lib/unictype/pr_zero_width.c: New file.
15509         * lib/unictype/scripts.c: New file.
15510         * lib/unictype/sy_c_ident.c: New file.
15511         * lib/unictype/sy_c_whitespace.c: New file.
15512         * lib/unictype/sy_java_ident.c: New file.
15513         * lib/unictype/sy_java_whitespace.c: New file.
15514
15515         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
15516         Unicode 5.0.0.
15517         * lib/unictype/blocks.h: Likewise.
15518         * lib/unictype/categ_C.h: Likewise.
15519         * lib/unictype/categ_Cc.h: Likewise.
15520         * lib/unictype/categ_Cf.h: Likewise.
15521         * lib/unictype/categ_Cn.h: Likewise.
15522         * lib/unictype/categ_Co.h: Likewise.
15523         * lib/unictype/categ_Cs.h: Likewise.
15524         * lib/unictype/categ_L.h: Likewise.
15525         * lib/unictype/categ_Ll.h: Likewise.
15526         * lib/unictype/categ_Lm.h: Likewise.
15527         * lib/unictype/categ_Lo.h: Likewise.
15528         * lib/unictype/categ_Lt.h: Likewise.
15529         * lib/unictype/categ_Lu.h: Likewise.
15530         * lib/unictype/categ_M.h: Likewise.
15531         * lib/unictype/categ_Mc.h: Likewise.
15532         * lib/unictype/categ_Me.h: Likewise.
15533         * lib/unictype/categ_Mn.h: Likewise.
15534         * lib/unictype/categ_N.h: Likewise.
15535         * lib/unictype/categ_Nd.h: Likewise.
15536         * lib/unictype/categ_Nl.h: Likewise.
15537         * lib/unictype/categ_No.h: Likewise.
15538         * lib/unictype/categ_P.h: Likewise.
15539         * lib/unictype/categ_Pc.h: Likewise.
15540         * lib/unictype/categ_Pd.h: Likewise.
15541         * lib/unictype/categ_Pe.h: Likewise.
15542         * lib/unictype/categ_Pf.h: Likewise.
15543         * lib/unictype/categ_Pi.h: Likewise.
15544         * lib/unictype/categ_Po.h: Likewise.
15545         * lib/unictype/categ_Ps.h: Likewise.
15546         * lib/unictype/categ_S.h: Likewise.
15547         * lib/unictype/categ_Sc.h: Likewise.
15548         * lib/unictype/categ_Sk.h: Likewise.
15549         * lib/unictype/categ_Sm.h: Likewise.
15550         * lib/unictype/categ_So.h: Likewise.
15551         * lib/unictype/categ_Z.h: Likewise.
15552         * lib/unictype/categ_Zl.h: Likewise.
15553         * lib/unictype/categ_Zp.h: Likewise.
15554         * lib/unictype/categ_Zs.h: Likewise.
15555         * lib/unictype/categ_of.h: Likewise.
15556         * lib/unictype/combining.h: Likewise.
15557         * lib/unictype/ctype_alnum.h: Likewise.
15558         * lib/unictype/ctype_alpha.h: Likewise.
15559         * lib/unictype/ctype_blank.h: Likewise.
15560         * lib/unictype/ctype_cntrl.h: Likewise.
15561         * lib/unictype/ctype_digit.h: Likewise.
15562         * lib/unictype/ctype_graph.h: Likewise.
15563         * lib/unictype/ctype_lower.h: Likewise.
15564         * lib/unictype/ctype_print.h: Likewise.
15565         * lib/unictype/ctype_punct.h: Likewise.
15566         * lib/unictype/ctype_space.h: Likewise.
15567         * lib/unictype/ctype_upper.h: Likewise.
15568         * lib/unictype/ctype_xdigit.h: Likewise.
15569         * lib/unictype/decdigit.h: Likewise.
15570         * lib/unictype/digit.h: Likewise.
15571         * lib/unictype/mirror.h: Likewise.
15572         * lib/unictype/numeric.h: Likewise.
15573         * lib/unictype/pr_alphabetic.h: Likewise.
15574         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15575         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15576         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15577         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15578         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15579         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15580         * lib/unictype/pr_bidi_control.h: Likewise.
15581         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15582         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15583         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15584         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15585         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15586         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15587         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15588         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15589         * lib/unictype/pr_bidi_pdf.h: Likewise.
15590         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15591         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15592         * lib/unictype/pr_combining.h: Likewise.
15593         * lib/unictype/pr_composite.h: Likewise.
15594         * lib/unictype/pr_currency_symbol.h: Likewise.
15595         * lib/unictype/pr_dash.h: Likewise.
15596         * lib/unictype/pr_decimal_digit.h: Likewise.
15597         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15598         * lib/unictype/pr_deprecated.h: Likewise.
15599         * lib/unictype/pr_diacritic.h: Likewise.
15600         * lib/unictype/pr_extender.h: Likewise.
15601         * lib/unictype/pr_format_control.h: Likewise.
15602         * lib/unictype/pr_grapheme_base.h: Likewise.
15603         * lib/unictype/pr_grapheme_extend.h: Likewise.
15604         * lib/unictype/pr_grapheme_link.h: Likewise.
15605         * lib/unictype/pr_hex_digit.h: Likewise.
15606         * lib/unictype/pr_hyphen.h: Likewise.
15607         * lib/unictype/pr_id_continue.h: Likewise.
15608         * lib/unictype/pr_id_start.h: Likewise.
15609         * lib/unictype/pr_ideographic.h: Likewise.
15610         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15611         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15612         * lib/unictype/pr_ignorable_control.h: Likewise.
15613         * lib/unictype/pr_iso_control.h: Likewise.
15614         * lib/unictype/pr_join_control.h: Likewise.
15615         * lib/unictype/pr_left_of_pair.h: Likewise.
15616         * lib/unictype/pr_line_separator.h: Likewise.
15617         * lib/unictype/pr_logical_order_exception.h: Likewise.
15618         * lib/unictype/pr_lowercase.h: Likewise.
15619         * lib/unictype/pr_math.h: Likewise.
15620         * lib/unictype/pr_non_break.h: Likewise.
15621         * lib/unictype/pr_not_a_character.h: Likewise.
15622         * lib/unictype/pr_numeric.h: Likewise.
15623         * lib/unictype/pr_other_alphabetic.h: Likewise.
15624         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15625         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15626         * lib/unictype/pr_other_id_continue.h: Likewise.
15627         * lib/unictype/pr_other_id_start.h: Likewise.
15628         * lib/unictype/pr_other_lowercase.h: Likewise.
15629         * lib/unictype/pr_other_math.h: Likewise.
15630         * lib/unictype/pr_other_uppercase.h: Likewise.
15631         * lib/unictype/pr_paired_punctuation.h: Likewise.
15632         * lib/unictype/pr_paragraph_separator.h: Likewise.
15633         * lib/unictype/pr_pattern_syntax.h: Likewise.
15634         * lib/unictype/pr_pattern_white_space.h: Likewise.
15635         * lib/unictype/pr_private_use.h: Likewise.
15636         * lib/unictype/pr_punctuation.h: Likewise.
15637         * lib/unictype/pr_quotation_mark.h: Likewise.
15638         * lib/unictype/pr_radical.h: Likewise.
15639         * lib/unictype/pr_sentence_terminal.h: Likewise.
15640         * lib/unictype/pr_soft_dotted.h: Likewise.
15641         * lib/unictype/pr_space.h: Likewise.
15642         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15643         * lib/unictype/pr_titlecase.h: Likewise.
15644         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15645         * lib/unictype/pr_unified_ideograph.h: Likewise.
15646         * lib/unictype/pr_uppercase.h: Likewise.
15647         * lib/unictype/pr_variation_selector.h: Likewise.
15648         * lib/unictype/pr_white_space.h: Likewise.
15649         * lib/unictype/pr_xid_continue.h: Likewise.
15650         * lib/unictype/pr_xid_start.h: Likewise.
15651         * lib/unictype/pr_zero_width.h: Likewise.
15652         * lib/unictype/scripts.h: Likewise.
15653         * lib/unictype/scripts_byname.gperf: Likewise.
15654         * lib/unictype/sy_c_ident.h: Likewise.
15655         * lib/unictype/sy_c_whitespace.h: Likewise.
15656         * lib/unictype/sy_java_ident.h: Likewise.
15657         * lib/unictype/sy_java_whitespace.h: Likewise.
15658
15659         * lib/unictype/Makefile: New file.
15660         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
15661         glibc.
15662         * lib/unictype/3level.h: New file, copied from glibc.
15663         * lib/unictype/3levelbit.h: New file.
15664
15665 2007-11-11  Bruno Haible  <bruno@clisp.org>
15666
15667         * modules/gperf: New file.
15668         * modules/iconv_open (Depends-on): Add it.
15669         (Makefile.am): Remove the GPERF definition.
15670
15671 2007-11-11  Bruno Haible  <bruno@clisp.org>
15672
15673         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
15674         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
15675
15676 2007-11-11  Bruno Haible  <bruno@clisp.org>
15677
15678         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
15679         (usage): Remove function.
15680
15681 2007-11-11  Bruno Haible  <bruno@clisp.org>
15682
15683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
15684         gl_FUNC_CEILF_LIBS.
15685         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
15686         gl_FUNC_CEIL_LIBS.
15687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
15688         gl_FUNC_CEILL_LIBS.
15689         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
15690         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
15691         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
15692
15693 2007-11-11  Bruno Haible  <bruno@clisp.org>
15694
15695         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
15696         roundf were declared but do not exist on functions.
15697         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
15698         roundl were declared but do not exist on functions.
15699         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
15700         HAVE_FLOORL_AND_CEILL, respectively.
15701         Needed for Sun C on Solaris 10.
15702
15703 2007-11-11  Bruno Haible  <bruno@clisp.org>
15704
15705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
15706         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
15707         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
15708         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
15709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
15710         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
15711         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
15712         HAVE_DECL_ROUNDF.
15713         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
15714         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
15715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
15716         of HAVE_DECL_ROUND*.
15717         * modules/math (Makefile.am): Update.
15718
15719 2007-11-10  Bruno Haible  <bruno@clisp.org>
15720
15721         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
15722         ptrdiff_t as m4/intl.m4.
15723
15724 2007-11-10  Jim Meyering  <meyering@redhat.com>
15725
15726         Avoid link failure for the argmatch test.
15727         * tests/test-argmatch.c (usage): Define function to avoid a link
15728         failure: argmatch_die requires a usage function.
15729
15730 2007-11-09  Bruno Haible  <bruno@clisp.org>
15731
15732         * doc/functions/snprintf.texi: Mention BeOS deficiency.
15733         * doc/functions/vsnprintf.texi: Likewise.
15734         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
15735         with a size argument < 2.
15736
15737 2007-11-09  Bruno Haible  <bruno@clisp.org>
15738
15739         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
15740         buffer. Fixes an inefficiency introduced on 2007-11-03.
15741
15742 2007-11-09  Bruno Haible  <bruno@clisp.org>
15743
15744         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
15745         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
15746
15747 2007-11-08  Jim Meyering  <meyering@redhat.com>
15748
15749         Change cache variable name prefix "jm_" to "gl_" everywhere.
15750         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
15751         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
15752         * m4/uptime.m4: s/gl_/jm_/
15753
15754 2007-11-07  Bruno Haible  <bruno@clisp.org>
15755
15756         Update to GNU gettext 0.17.
15757         * m4/intl.m4: Update to GNU gettext 0.17.
15758         * m4/po.m4: Likewise.
15759         * modules/gettext (Files): Remove m4/ulonglong.m4.
15760         (configure.ac): Require gettext infrastructure from version 0.17.
15761
15762 2007-11-06  Bruno Haible  <bruno@clisp.org>
15763
15764         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
15765         symbolic values are not defined in a public header.
15766         * lib/freadable.c (freadable) [QNX]: Likewise.
15767         * lib/freadahead.c (freadahead) [QNX]: Likewise.
15768         * lib/freading.c (freading) [QNX]: Likewise.
15769         * lib/fseterr.c (fseterr) [QNX]: Likewise.
15770         * lib/fwritable.c (fwritable) [QNX]: Likewise.
15771         * lib/fwriting.c (fwriting) [QNX]: Likewise.
15772         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
15773         Reported by Alain Magloire.
15774
15775         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
15776
15777 2007-11-05  Bruno Haible  <bruno@clisp.org>
15778
15779         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
15780         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
15781         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
15782         Reported by Eric Blake.
15783
15784 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15785             Bruno Haible  <bruno@clisp.org>
15786
15787         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
15788         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
15789         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
15790         (malloc): Undefine also before including <stdlib.h>.
15791         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
15792         Needed on OSF/1 4.0.
15793
15794 2007-11-05  Jim Meyering  <meyering@redhat.com>
15795
15796         git-version-gen: sync from coreutils.
15797         * build-aux/git-version-gen: Add comments.
15798         Change the first '-' to '.' in the snapshot version string,
15799         e.g., 6.9-377-08144 -> 6.9.377-08144
15800         Remove first parameter.
15801         Don't declare a version "-dirty" merely because a time
15802         stamp has changed.
15803
15804 2007-11-04  Bruno Haible  <bruno@clisp.org>
15805
15806         * lib/lock.h: Protect all macro definitions containing an 'if'
15807         statement through a "do { ... } while (0)".
15808         * lib/tls.h: Likewise.
15809
15810 2007-11-04  Bruno Haible  <bruno@clisp.org>
15811
15812         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
15813
15814 2007-11-04  Bruno Haible  <bruno@clisp.org>
15815
15816         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
15817         * modules/fprintf-posix (Depends-on): Add nocrash.
15818         * modules/snprintf-posix (Depends-on): Likewise.
15819         * modules/sprintf-posix (Depends-on): Likewise.
15820         * modules/vasnprintf-posix (Depends-on): Likewise.
15821         * modules/vasprintf-posix (Depends-on): Likewise.
15822         * modules/vfprintf-posix (Depends-on): Likewise.
15823         * modules/vsnprintf-posix (Depends-on): Likewise.
15824         * modules/vsprintf-posix (Depends-on): Likewise.
15825         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15826         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15827         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15828         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15829         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15830         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15831         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15832
15833 2007-11-04  Bruno Haible  <bruno@clisp.org>
15834
15835         * modules/nocrash: New file.
15836         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
15837         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
15838
15839 2007-11-04  Bruno Haible  <bruno@clisp.org>
15840
15841         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
15842         precision handling.
15843         * tests/test-vasprintf-posix.c (test_function): Likewise.
15844         * tests/test-snprintf-posix.h (test_function): Likewise.
15845         * tests/test-sprintf-posix.h (test_function): Likewise.
15846
15847         Fix *printf behaviour for large precisions on mingw and BeOS.
15848         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
15849         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
15850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
15851         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15852         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15853         gl_PRINTF_PRECISION and test its result. Invoke
15854         gl_PREREQ_VASNPRINTF_PRECISION.
15855         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15856         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15857         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15858         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15859         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15860         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15862         * doc/functions/fprintf.texi: Update.
15863         * doc/functions/printf.texi: Update.
15864         * doc/functions/snprintf.texi: Update.
15865         * doc/functions/sprintf.texi: Update.
15866         * doc/functions/vfprintf.texi: Update.
15867         * doc/functions/vprintf.texi: Update.
15868         * doc/functions/vsnprintf.texi: Update.
15869         * doc/functions/vsprintf.texi: Update.
15870
15871 2007-11-04  Bruno Haible  <bruno@clisp.org>
15872
15873         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
15874
15875 2007-11-04  Bruno Haible  <bruno@clisp.org>
15876
15877         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
15878         Reported by Sylvain Beucler <beuc@gnu.org>.
15879
15880 2007-11-03  Bruno Haible  <bruno@clisp.org>
15881
15882         * tests/test-fprintf-posix2.sh: New file.
15883         * tests/test-fprintf-posix2.c: New file.
15884         * modules/fprintf-posix-tests (Files): Add them.
15885         (TESTS): Add test-fprintf-posix2.sh.
15886         (configure.ac): Check for getrlimit and setrlimit.
15887         (check_PROGRAMS): Add test-fprintf-posix2.
15888
15889         * tests/test-printf-posix2.sh: New file.
15890         * tests/test-printf-posix2.c: New file.
15891         * modules/printf-posix-tests (Files): Add them.
15892         (TESTS): Add test-printf-posix2.sh.
15893         (configure.ac): Check for getrlimit and setrlimit.
15894         (check_PROGRAMS): Add test-printf-posix2.
15895
15896         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
15897         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
15898         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
15899         (decode_double): New function, copied from decode_long_double.
15900         (scale10_round_decimal_decoded): New function, extracted from
15901         scale10_round_decimal_long_double.
15902         (scale10_round_decimal_long_double): Use it.
15903         (scale10_round_decimal_double): New function.
15904         (floorlog10): New function.
15905         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
15906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
15907         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15909         gl_PRINTF_ENOMEM and test its result. Invoke
15910         gl_PREREQ_VASNPRINTF_ENOMEM.
15911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15918         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15919         * modules/snprintf-posix (Depends-on): Likewise.
15920         * modules/sprintf-posix (Depends-on): Likewise.
15921         * modules/vasnprintf-posix (Depends-on): Likewise.
15922         * modules/vasprintf-posix (Depends-on): Likewise.
15923         * modules/vfprintf-posix (Depends-on): Likewise.
15924         * modules/vsnprintf-posix (Depends-on): Likewise.
15925         * modules/vsprintf-posix (Depends-on): Likewise.
15926         * doc/functions/fprintf.texi: Update.
15927         * doc/functions/printf.texi: Update.
15928         * doc/functions/snprintf.texi: Update.
15929         * doc/functions/sprintf.texi: Update.
15930         * doc/functions/vfprintf.texi: Update.
15931         * doc/functions/vprintf.texi: Update.
15932         * doc/functions/vsnprintf.texi: Update.
15933         * doc/functions/vsprintf.texi: Update.
15934
15935 2007-11-03  Bruno Haible  <bruno@clisp.org>
15936
15937         * modules/frexp-nolibm-tests: New file.
15938
15939         * modules/frexp-nolibm: New file.
15940         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15941
15942 2007-11-03  Bruno Haible  <bruno@clisp.org>
15943
15944         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15945         value is C99 compliant.
15946         Needed for OSF/1 5.1.
15947
15948 2007-11-03  Bruno Haible  <bruno@clisp.org>
15949
15950         Fix out-of-memory handling of vasnprintf.
15951         * lib/printf-parse.c: Include <errno.h>.
15952         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15953         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15954         is already set.
15955
15956 2007-11-02  Eric Blake  <ebb9@byu.net>
15957
15958         Fix tests on cygwin.
15959         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15960
15961 2007-11-01  Bruno Haible  <bruno@clisp.org>
15962
15963         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15964         warning.
15965         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15966         needed for POSIX compatibility.
15967
15968 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15969
15970         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15971         for compatibility with GNU.
15972
15973 2007-11-01  Bruno Haible  <bruno@clisp.org>
15974
15975         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15976         (putenv): Renamed from rpl_putenv. Change argument type from
15977         'const char *' to 'char *'.
15978         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15979         of defining putenv in config.h, just set REPLACE_PUTENV.
15980         * modules/putenv (Depends-on): Add stdlib.
15981         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15982         (Include): Use <stdlib.h>.
15983         * lib/stdlib.in.h (putenv): New declaration.
15984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15985         REPLACE_PUTENV.
15986         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15987         REPLACE_PUTENV.
15988         Needed for MacOS X 10.5.0.
15989         Reported by Peter O'Gorman <peter@pogma.com>.
15990
15991 2007-11-01  Jim Meyering  <meyering@redhat.com>
15992
15993         Treat an empty date string exactly like "0".
15994         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15995         if the remaining date string (to be parsed) is empty, use "0".
15996         Reported by Mischa Molhoek and discussed in this thread:
15997         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15998
15999 2007-10-31  Bruno Haible  <bruno@clisp.org>
16000
16001         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
16002         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
16003         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
16004         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
16005         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
16006         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
16007
16008 2007-10-31  Bruno Haible  <bruno@clisp.org>
16009
16010         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
16011         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
16012         (AC_TYPE_LONG_LONG_INT): Use it.
16013         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
16014         it as well.
16015         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
16016         to m4/longlong.m4.
16017         * modules/stdint (Files): Remove m4/ulonglong.m4.
16018         * modules/strtoull (Files): Use m4/longlong.m4 instead of
16019         m4/ulonglong.m4.
16020         * modules/strtoumax (Files): Likewise.
16021
16022 2007-10-30  Bruno Haible  <bruno@clisp.org>
16023
16024         * modules/xvasprintf-posix: New file.
16025         Suggested by Eric Blake.
16026
16027 2007-10-30  Bruno Haible  <bruno@clisp.org>
16028
16029         * modules/xprintf-posix-tests: New file.
16030         * tests/test-xprintf-posix.sh: New file.
16031         * tests/test-xprintf-posix.c: New file.
16032         * tests/test-xfprintf-posix.c: New file.
16033
16034         * modules/xprintf-posix: New file.
16035
16036 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16037
16038         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
16039         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
16040         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
16041
16042 2007-10-29  Bruno Haible  <bruno@clisp.org>
16043
16044         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
16045         contain the special marker '_cv_'.
16046         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16047         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16048         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16049         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16050         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16051         Reported by Ralf Wildenhues.
16052
16053 2007-10-29  Bruno Haible  <bruno@clisp.org>
16054
16055         * gnulib-tool (func_import): When --lgpl is not specified, set
16056         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
16057         GPLv3.
16058         Reported by Simon Josefsson.
16059
16060 2007-10-28  Bruno Haible  <bruno@clisp.org>
16061
16062         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
16063         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
16064         HAVE_DECL_ISFINITE.
16065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
16066         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
16067         HAVE_DECL_ISFINITE.
16068
16069 2007-10-28  Bruno Haible  <bruno@clisp.org>
16070
16071         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
16072         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
16073
16074 2007-10-28  Bruno Haible  <bruno@clisp.org>
16075
16076         Fix link errors with Sun C 5.0 on Solaris 10.
16077         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
16078         function is declared but not present in the compiler's libm.
16079         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16080         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16081         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
16082         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
16083         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
16084         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
16085         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
16086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
16087         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
16088         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
16089         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
16090         HAVE_DECL_FLOORL.
16091
16092 2007-10-28  Bruno Haible  <bruno@clisp.org>
16093
16094         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
16095         gl_FUNC_FLOORL. Cache the result.
16096         (gl_FUNC_FLOORL): Use it.
16097         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
16098         gl_FUNC_CEILL. Cache the result.
16099         (gl_FUNC_CEILL): Use it.
16100
16101         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
16102         gl_FUNC_FLOOR. Cache the result.
16103         (gl_FUNC_FLOOR): Use it.
16104         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
16105         gl_FUNC_CEIL. Cache the result.
16106         (gl_FUNC_CEIL): Use it.
16107
16108         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
16109         gl_FUNC_FLOORF. Cache the result.
16110         (gl_FUNC_FLOORF): Use it.
16111         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
16112         gl_FUNC_CEILF. Cache the result.
16113         (gl_FUNC_CEILF): Use it.
16114
16115 2007-10-28  Bruno Haible  <bruno@clisp.org>
16116
16117         * gnulib-tool: Allow specifying the LGPL version number through
16118         --lgpl=2 or --lgpl=3.
16119         (func_usage): Document --lgpl with argument.
16120         Handle --lgpl=... arguments.
16121         (func_import): Recognize also gl_LGPL calls with an argument. When
16122         --lgpl=2 is used and the module's license is just LGPL, report an
16123         error. Set sed_transform_lib_file according to the lgpl variable. In
16124         the generated files, use --lgpl or gl_LGPL invocations with argument,
16125         if necessary.
16126         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
16127         an LGPv2+ license.
16128         * doc/gnulib-tool.texi (Modified imports): Update explanation of
16129         gl_LGPL macro.
16130
16131 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16132             Bruno Haible  <bruno@clisp.org>
16133
16134         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
16135         (u16_uctomb_aux): Likewise.
16136         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
16137         !HAVE_INLINE.
16138         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
16139
16140 2007-10-28  Bruno Haible  <bruno@clisp.org>
16141
16142         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
16143         Invoke AM_GETTEXT_OPTION if it exists.
16144         * modules/vasprintf: Likewise.
16145         * modules/verror: Likewise.
16146         * modules/xprintf: Likewise.
16147         * modules/xvasprintf: Likewise.
16148
16149 2007-10-27  Ben Pfaff  <blp@gnu.org>
16150
16151         * lib/math.in.h: Define isfinite macro and prototypes for
16152         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
16153         implementations.
16154         * m4/math_h.m4: New substitutions for isfinite module.
16155         * lib/isfinite.c: New file.
16156         * m4/isfinite.m4: New file.
16157         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
16158         * modules/isfinite: New file.
16159         * modules/isfinite-tests: New file.
16160         * tests/tests-isfinite.c: New file.
16161         * doc/functions/isfinite.texi: Mention isfinite module.
16162         * MODULES.html.sh: Mention new module.
16163
16164 2007-10-27  Ben Pfaff  <blp@gnu.org>
16165
16166         Ralf Wildenhues reported that Tru64 4.0D declares the round
16167         functions but does not have definitions.
16168         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
16169         cannot be found in any library, set the output variable to
16170         "missing" instead of "".
16171         * m4/round.m4: Also use our substitute if we cannot find round in
16172         any library, even if it is declared.
16173         * m4/roundf.m4: Likewise for roundf.
16174         * m4/roundl.m4: Likewise for roundl.
16175         * lib/math.in.h: Undefine roundf, round, roundl before defining
16176         their replacements, to allow for hypothetical systems where these
16177         may be defined as macros but not available in libraries.
16178
16179 2007-10-27  Bruno Haible  <bruno@clisp.org>
16180
16181         * doc/gnulib.texi: Invoke @firstparagraphindent.
16182         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
16183         changes in gnulib.
16184         (Source changes): New section.
16185
16186 2007-10-26  Bruno Haible  <bruno@clisp.org>
16187
16188         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
16189         borrowed from autoconf.
16190
16191 2007-10-26  Bruno Haible  <bruno@clisp.org>
16192
16193         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
16194         strerror returned the empty string. Needed on HP-UX 11.00.
16195
16196 2007-10-24  Micah Cowan  <micah@cowan.name>
16197
16198         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
16199         * build-aux/bootstrap: Remove support for now-unnecessary option,
16200         --cvs-user, and envvars CVS_USER, CVS_RSH.
16201
16202 2007-10-24  Jim Meyering  <meyering@redhat.com>
16203
16204         Avoid diagnostics from sha1sum when there is no cached checksum.
16205         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
16206         if the po.s1 file hasn't been created yet.
16207
16208         * build-aux/bootstrap: Sync from coreutils:
16209         2007-10-24  Jim Meyering  <meyering@redhat.com>
16210         Get gnulib from the git repository, not from an obsolete cvs one.
16211         * build-aux/bootstrap: Suggestion from Micah Cowan.
16212         2007-10-04  Jim Meyering  <jim@meyering.net>
16213         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
16214         (update_po_files): Work also when there are no .po files in po/.
16215
16216 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16217
16218         * README: Append ".git" to git and cg examples.
16219         Problem reported by Benoit Sigoure.
16220
16221 2007-10-23  Micah Cowan  <micah@cowan.name>
16222
16223         * users.txt: Add wget.
16224
16225 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16226
16227         Fix linking of some unistdio tests on FreeBSD.
16228         * modules/unistdio/u16-vsnprintf-tests
16229         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
16230         * modules/unistdio/u16-vsprintf-tests
16231         (test_u16_vsnprintf1_LDADD): Likewise.
16232         * modules/unistdio/u32-vsnprintf-tests
16233         (test_u32_vsnprintf1_LDADD): Likewise.
16234         * modules/unistdio/u32-vsprintf-tests
16235         (test_u32_vsprintf1_LDADD): Likewise.
16236         * modules/unistdio/u8-vsnprintf-tests
16237         (test_u8_vsnprintf1_LDADD): Likewise.
16238         * modules/unistdio/u8-vsprintf-tests
16239         (test_u8_vsprintf1_LDADD): Likewise.
16240         * modules/unistdio/ulc-vsnprintf-tests
16241         (test_ulc_vsnprintf1_LDADD): Likewise.
16242         * modules/unistdio/ulc-vsprintf-tests
16243         (test_ulc_vsprintf1_LDADD): Likewise.
16244
16245         Fix linking of some uniconv tests on FreeBSD.
16246         * modules/uniconv/u16-conv-from-enc-tests
16247         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
16248         * modules/uniconv/u16-conv-to-enc-tests
16249         (test_u16_conv_to_enc_LDADD): Likewise.
16250         * modules/uniconv/u16-strconv-from-enc-tests
16251         (test_u16_strconv_from_enc_LDADD): Likewise.
16252         * modules/uniconv/u16-strconv-to-enc-tests
16253         (test_u16_strconv_to_enc_LDADD): Likewise.
16254         * modules/uniconv/u32-conv-from-enc-tests
16255         (test_u32_conv_from_enc_LDADD): Likewise.
16256         * modules/uniconv/u32-conv-to-enc-tests
16257         (test_u32_conv_to_enc_LDADD): Likewise.
16258         * modules/uniconv/u32-strconv-from-enc-tests
16259         (test_u32_strconv_from_enc_LDADD): Likewise.
16260         * modules/uniconv/u32-strconv-to-enc-tests
16261         (test_u32_strconv_to_enc_LDADD): Likewise.
16262         * modules/uniconv/u8-conv-from-enc-tests
16263         (test_u8_conv_from_enc_LDADD): Likewise.
16264         * modules/uniconv/u8-conv-to-enc-tests
16265         (test_u8_conv_to_enc_LDADD): Likewise.
16266         * modules/uniconv/u8-strconv-from-enc-tests
16267         (test_u8_strconv_from_enc_LDADD): Likewise.
16268         * modules/uniconv/u8-strconv-to-enc-tests
16269         (test_u8_strconv_to_enc_LDADD): Likewise.
16270
16271 2007-10-22  Bruno Haible  <bruno@clisp.org>
16272
16273         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
16274         size.
16275
16276 2007-10-22  Eric Blake  <ebb9@byu.net>
16277
16278         Tweak x*printf documentation.
16279         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
16280         variable name and comments.
16281         Suggested by Bruno Haible.
16282
16283 2007-10-22  Bruno Haible  <bruno@clisp.org>
16284
16285         * lib/acl.c (copy_acl): Fix file name in comment.
16286
16287 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
16288
16289         Fix Tru64 problem with stdbool.h.
16290         * lib/stdbool.in.h (false, true):
16291         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
16292         Don't declare as an enum in this situation; it runs afoul of Tru64.
16293         Problem reported by Steven M. Schweda in
16294         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
16295
16296 2007-10-22  Eric Blake  <ebb9@byu.net>
16297
16298         Also wrap vf?printf.
16299         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
16300         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
16301         (xvprintf, xvfprintf): New functions.
16302
16303 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16304
16305         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
16306         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
16307
16308         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
16309         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
16310
16311 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
16314         by Bruno Haible.
16315
16316 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16317
16318         * lib/getloadavg.c
16319         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
16320         Undef `sys' after including sys/table.h, for Tru64 4.0D.
16321
16322         * tests/test-i-ring.c: Work for C89.
16323
16324 2007-10-22  Bruno Haible  <bruno@clisp.org>
16325
16326         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
16327         -1u, in preprocessor expression, so that we don't test for the bug
16328         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
16329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
16330
16331 2007-10-22  Eric Blake  <ebb9@byu.net>
16332
16333         * tests/test-yesno.sh: Silence stderr during test.
16334
16335 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16336
16337         * modules/crypto/gc-camellia: New file.
16338
16339         * m4/gc-camellia.m4: New file.
16340
16341         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
16342
16343         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
16344
16345 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16346
16347         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
16348         --help to stdout.  Reported by sms@antinode.org (Steven
16349         M. Schweda).
16350
16351 2007-10-22  Simon Josefsson  <simon@josefsson.org>
16352
16353         * users.txt: Fix link to libksba.
16354
16355 2007-10-21  Ben Pfaff  <blp@gnu.org>
16356
16357         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
16358         round.c roundf implementation that depends on floorf and ceilf to
16359         be tested unconditionally.
16360
16361 2007-10-21  Ben Pfaff  <blp@gnu.org>
16362
16363         * m4/check-libm-func.m4: Removed.
16364         * m4/check-math-lib.m4: New file.
16365         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
16366         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
16367         definition and lack of AC_LIBOBJ([roundf]).
16368         * m4/roundl.m4: Ditto, and similarly for roundl.
16369         * modules/round: Reference new m4 file.
16370         * modules/roundf: Ditto.
16371         * modules/roundl: Ditto.
16372         * tests/test-round2.c (main): Use ROUND instead of round.
16373         Bug report from Bruno Haible.
16374
16375 2007-10-21  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
16378         context.
16379
16380 2007-10-21  Bruno Haible  <bruno@clisp.org>
16381
16382         * tests/test-wcwidth.c (main): Allow negative result for some control
16383         characters.
16384
16385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
16386         Needed on OSF/1 5.1.
16387
16388 2007-10-21  Bruno Haible  <bruno@clisp.org>
16389
16390         * tests/test-floorf1.c: Include isnanf.h.
16391         (main): Use isnanf() instead of isnan().
16392         * tests/test-ceilf1.c: Include isnanf.h.
16393         (main): Use isnanf() instead of isnan().
16394         * tests/test-truncf1.c: Include isnanf.h.
16395         (main): Use isnanf() instead of isnan().
16396         * tests/test-roundf1.c: Include isnanf.h.
16397         (main): Use isnanf() instead of isnan().
16398
16399 2007-10-21  Eric Blake  <ebb9@byu.net>
16400
16401         * users.txt: Update URL for m4.
16402
16403 2007-10-21  Bruno Haible  <bruno@clisp.org>
16404
16405         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
16406
16407 2007-10-21  Bruno Haible  <bruno@clisp.org>
16408
16409         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
16410         Git's management files if the CVS files are not present.
16411
16412 2007-10-20  Bruno Haible  <bruno@clisp.org>
16413
16414         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
16415         gcc-3.4.x.
16416
16417 2007-10-20  Ben Pfaff  <blp@gnu.org>
16418
16419         * lib/math.in.h: Declare round, roundf, roundl if we are providing
16420         implementations.
16421         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
16422         * lib/round.c: New file.
16423         * lib/roundf.c: New file.
16424         * lib/roundl.c: New file.
16425         * m4/round.m4: New file.
16426         * m4/roundf.m4: New file.
16427         * m4/roundl.m4: New file.
16428         * m4/check-libm-func-m4: New file.
16429         * modules/math: Replace round, roundf, roundl related @VARS@ in
16430         math.in.h.
16431         * modules/round: New file.
16432         * modules/round-tests: New file.
16433         * modules/roundf: New file.
16434         * modules/roundf-tests: New file.
16435         * modules/roundl: New file.
16436         * modules/roundl-tests: New file.
16437         * tests/test-round1.c: New file.
16438         * tests/test-round2.c: New file.
16439         * tests/test-roundf1.c: New file.
16440         * tests/test-roundf2.c: New file.
16441         * tests/test-roundl.c: New file.
16442         * doc/functions/round.texi: Mention round module.
16443         * doc/functions/roundf.texi: Mention roundf module.
16444         * doc/functions/roundl.texi: Mention roundl module.
16445         * MODULES.html.sh: Mention new modules.
16446         Thanks to Bruno Haible for suggestions.
16447
16448 2007-10-20  Jim Meyering  <meyering@redhat.com>
16449
16450         * lib/xprintf.c: Include <config.h> unconditionally.
16451
16452         Change xprintf's license to GPL.
16453         * modules/xprintf (License): s/LGPL/GPL/, since this module
16454         depends on modules (exit and exitfail) which are GPL.
16455         Suggestion from Bruno Haible.
16456
16457         xprintf fixes.
16458         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
16459         Use a clearer diagnostic.
16460         Patch from Bruno Haible.
16461
16462 2007-10-20  Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
16465         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
16466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16467
16468 2007-10-20  Bruno Haible  <bruno@clisp.org>
16469
16470         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
16471         precision in the comparison result > x - 1 or similar.
16472         * tests/test-ceilf2.c (correct_result_p): Likewise.
16473         * tests/test-truncf2.c (correct_result_p): Likewise.
16474         * tests/test-trunc2.c (correct_result_p): Likewise.
16475         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16476
16477 2007-10-20  Bruno Haible  <bruno@clisp.org>
16478
16479         * modules/ceil: New file.
16480         * m4/ceil.m4: New file.
16481         * doc/functions/ceil.texi: Mention the 'ceil' module.
16482
16483 2007-10-20  Bruno Haible  <bruno@clisp.org>
16484
16485         * modules/floor: New file.
16486         * m4/floor.m4: New file.
16487         * doc/functions/floor.texi: Mention the 'floor' module.
16488
16489 2007-10-20  Bruno Haible  <bruno@clisp.org>
16490
16491         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
16492         of %a.
16493         * modules/floorf-tests (Depends-on): Likewise.
16494         * modules/truncf-tests (Depends-on): Likewise.
16495         * modules/trunc-tests (Depends-on): Likewise.
16496         Reported by Ben Pfaff.
16497
16498 2007-10-19  Jim Meyering  <meyering@redhat.com>
16499
16500         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
16501         Don't bother testing specific errno values.  Just test ferror.
16502
16503         New module: xprintf
16504         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
16505
16506 2007-10-19  Bruno Haible  <bruno@clisp.org>
16507
16508         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
16509         syntax.
16510         * modules/javaexec (Makefile.am): Likewise.
16511         * modules/relocatable-prog (Makefile.am): Likewise.
16512         Suggested by Jim Meyering.
16513
16514 2007-10-18  Bruno Haible  <bruno@clisp.org>
16515
16516         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
16517         Reported by Jim Meyering.
16518
16519 2007-10-18  Eric Blake  <ebb9@byu.net>
16520
16521         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
16522
16523 2007-10-18  Bruno Haible  <bruno@clisp.org>
16524
16525         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
16526         the format string into writable memory. Needed in Fortify conditions.
16527
16528 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
16529             Bruno Haible  <bruno@clisp.org>
16530
16531         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
16532         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
16533         * modules/trim (Depends-on): Add mbchar.
16534         (configure.ac): Add gl_FUNC_MBRTOWC.
16535         (Makefile.am): Augment lib_SOURCES.
16536
16537 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         Modify glob.c to use fstatat and dirfd, to simplify it.
16540         Suggested by Eric Blake.
16541         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
16542         Don't include <stdbool.h>; not used.
16543         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
16544         (link_exists_p): Simplify implementation, since we can now assume
16545         dirfd and fstatat.
16546         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
16547
16548 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16549
16550         * gnulib-tool (func_get_dependencies): Fix sed script to
16551         match only tests.
16552
16553 2007-10-17  Bruno Haible  <bruno@clisp.org>
16554
16555         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
16556         allow locale names without encoding suffix.
16557         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16559
16560 2007-10-16  Bruno Haible  <bruno@clisp.org>
16561
16562         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
16563         * lib/getgroups.c (getgroups): Likewise.
16564         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
16565
16566 2007-10-16  Bruno Haible  <bruno@clisp.org>
16567
16568         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
16569         * modules/malloc-posix (License): Likewise.
16570         * modules/realloc-posix (License): Likewise.
16571         * modules/calloc-posix (License): Likewise.
16572         * modules/intprops (License): Change from GPL to LGPL, with
16573         Paul Eggert's approval.
16574
16575 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16576
16577         Merge glibc changes into lib/glob.c.
16578
16579         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
16580         2007-10-15 04:59:03 UTC.  Here are the changes:
16581
16582         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
16583
16584         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
16585
16586         * lib/glob.c: Add some branch prediction throughout.
16587
16588         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
16589
16590         [BZ #5103]
16591         * lib/glob.c (glob): Recognize patterns starting \/.
16592
16593         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
16594
16595         [BZ #3996]
16596         * lib/glob.c (attribute_hidden): Define if not defined.
16597         (glob): Unescape dirname, filename or username when needed and not
16598         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
16599         is NULL.  Handle unescaped [ in pattern without closing ].
16600         Don't pass GLOB_CHECK down to recursive glob for directories.
16601         (__glob_pattern_type): New function.
16602         (__glob_pattern_p): Implement using __glob_pattern_type.
16603         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
16604         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
16605         Remove unreachable code.
16606
16607         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
16608
16609         * lib/glob.c (glob_in_dir): Add some comments and asserts to
16610         explain why there are no leaks.
16611
16612         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
16613
16614         [BZ #3253]
16615         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
16616         time, rather allocate increasingly bigger arrays of pointers, if
16617         possible with alloca, if too large with malloc.
16618
16619 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16620
16621         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
16622         Problem reported by H.Merijn Brand in
16623         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
16624         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
16625         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
16626
16627 2007-10-15  Bruno Haible  <bruno@clisp.org>
16628
16629         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
16630         with explicit rpl_ prefix.
16631         * lib/fopen.c (fopen): Likewise.
16632         * lib/freopen.c (freopen): Likewise.
16633         * lib/iconv.c (iconv): Likewise.
16634         * lib/iconv_close.c (iconv_close): Likewise.
16635
16636 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16637
16638         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
16639
16640 2007-10-15  Bruno Haible  <bruno@clisp.org>
16641
16642         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
16643         <stddef.h> instead of <stdlib.h> since we only need NULL.
16644         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16645
16646 2007-10-15  Bruno Haible  <bruno@clisp.org>
16647
16648         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
16649         Replace paragraph talking about LIBOBJS.
16650         Reported by Colin Watson <cjwatson@debian.org>.
16651
16652 2007-10-15  Bruno Haible  <bruno@clisp.org>
16653
16654         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
16655         <stdlib.h> before using NULL.
16656
16657 2007-10-15  Simon Josefsson  <simon@josefsson.org>
16658
16659         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
16660         Reported by Albert Chin <china@thewrittenword.com>.
16661
16662 2007-10-14  Bruno Haible  <bruno@clisp.org>
16663
16664         * modules/iconv_open-utf-tests: New file.
16665         * tests/test-iconv-utf.c: New file.
16666
16667         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
16668         * modules/iconv_open-utf: New file.
16669         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
16670         (iconv, iconv_close): New declarations.
16671         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
16672         be defined.
16673         (iconv_open): Add special handling of conversion between UTF-8 and
16674         UTF-{16,32}{BE,LE}.
16675         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
16676         * lib/iconv_close.c: New file.
16677         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
16678         gl_FUNC_ICONV_OPEN.
16679         (gl_FUNC_ICONV_OPEN): Use it.
16680         (gl_FUNC_ICONV_OPEN_UTF): New macro.
16681         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
16682         and REPLACE_ICONV_UTF.
16683         * modules/iconv_open (Depends-on): Add c-strcase.
16684         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
16685         ICONV_CONST.
16686         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
16687
16688 2007-10-13  Albert Chin  <china@thewrittenword.com>
16689             Bruno Haible  <bruno@clisp.org>
16690
16691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
16692         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
16693
16694 2007-10-13  Bruno Haible  <bruno@clisp.org>
16695
16696         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
16697         defined, use the ISO C99 inline semantics.
16698         * lib/argp.h (ARGP_EI): Likewise.
16699
16700 2007-10-13  Bruno Haible  <bruno@clisp.org>
16701
16702         Handle 'inline' change in gcc 4.3.0.
16703         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
16704         argp_fmtstream_write, argp_fmtstream_set_lmargin,
16705         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
16706         argp_fmtstream_point): Disable 'extern' declaration if the function
16707         definition is going to be provided inline.
16708         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
16709         semantics, not the ISO C99 inline semantics.
16710         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
16711         'extern' declaration if the function definition is going to be provided
16712         inline.
16713         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
16714         the GNU C inline semantics, not the ISO C99 inline semantics. With
16715         GCC 4.2, avoid a warning.
16716
16717 2007-10-13  Bruno Haible  <bruno@clisp.org>
16718
16719         * lib/freading.h (freading): Enable the use of __freading for
16720         glibc >= 2.7.
16721         * lib/freading.c (freading): Likewise.
16722
16723 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16724
16725         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
16726         "warning: C99 inline functions are not supported; using GNU89".
16727
16728 2007-10-12  Bruno Haible  <bruno@clisp.org>
16729
16730         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
16731         of 2.
16732         * tests/test-ceilf2.c: New file.
16733         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
16734
16735         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
16736         * modules/ceilf-tests: Update.
16737
16738 2007-10-12  Bruno Haible  <bruno@clisp.org>
16739
16740         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
16741         of 2.
16742         * tests/test-floorf2.c: New file.
16743         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
16744
16745         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
16746         * modules/floorf-tests: Update.
16747
16748 2007-10-12  Bruno Haible  <bruno@clisp.org>
16749
16750         * tests/test-trunc2.c: New file.
16751         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
16752
16753         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
16754         * modules/trunc-tests: Update.
16755
16756 2007-10-12  Bruno Haible  <bruno@clisp.org>
16757
16758         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
16759         of 2.
16760         * tests/test-truncf2.c: New file.
16761         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
16762
16763         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
16764         * modules/truncf-tests: Update.
16765
16766 2007-10-11  Eric Blake  <ebb9@byu.net>
16767
16768         Don't claim strerror is broken on Interix.
16769         * doc/functions/strerror.texi (strerror): Known broken systems are
16770         now Solaris 8, and not Interix.
16771         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
16772         Interix on cross-compile.
16773         Reported by Martin Koeppe in
16774         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
16775
16776 2007-10-11  Bruno Haible  <bruno@clisp.org>
16777
16778         * modules/i-ring-tests: New file.
16779         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
16780         instead of assert.
16781
16782 2007-10-11  Bruno Haible  <bruno@clisp.org>
16783
16784         * modules/filenamecat-tests: New file.
16785         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
16786         * lib/filenamecat.c: Remove test code.
16787
16788 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16789
16790         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
16791
16792         * lib/strerror.c: Include <string.h> always, to test interface,
16793         and to remove the need for the dummy.
16794         Include intprops.h to compute width instead of doing it ourselves
16795         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
16796         (strerror): Define it to return NULL if there's no system strerror.
16797         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
16798         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
16799         ancient pre-strerror Unix systems well any more.  Saying "unknown
16800         system error" is enough.
16801         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
16802         simpler strerror.c implementation.
16803         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
16804         Simplify the tests to reflect the simpler strerror implementation.
16805         * modules/strerror (Depends-on): Add intprops.
16806
16807 2007-10-09  Eric Blake  <ebb9@byu.net>
16808
16809         Silence test-fpending.
16810         * modules/fpending-tests (Files): Add wrapper script.
16811         * tests/test-fpending.sh: New file.
16812
16813 2007-10-09  Bruno Haible  <bruno@clisp.org>
16814
16815         * MODULES.html.sh (func_module): Don't create a hyperlink for
16816         function names like 'printf_frexp'.
16817         (Misc): Add crc, memxor.
16818         (Characteristics of floating types): New section.
16819         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
16820         isnanf-nolibm, signbit, trunc, truncf, truncl.
16821         (Enhancements for ISO C 99 functions): New subsection Input/output.
16822         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
16823         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
16824         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
16825         (Compatibility checks for POSIX:2001 functions): Add clock-time.
16826         (Enhancements for POSIX:2001 functions): Add chdir-long.
16827         (File system functions): Add areadlink, chdir-safer, read-file.
16828         Remove cycle-check.
16829         (File system as inode set): New section.
16830         (Date and time): Add gethrxtime.
16831         (Multithreading): Add openmp.
16832         (Internationalization functions): Add localename.
16833         (Unicode string functions): Add unistr/u*-mbsnlen.
16834         (Support for maintaining and releasing projects): Add git-version-gen.
16835         (Lone files): Remove directories.
16836
16837 2007-10-08  Ben Pfaff  <blp@gnu.org>
16838
16839         * lib/xmalloca.h: Fix typo in comment.
16840
16841 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16842
16843         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
16844         when avoiding problems with integer overflow.  Use a portable test
16845         instead.
16846
16847 2007-10-08  Simon Josefsson  <simon@josefsson.org>
16848
16849         * modules/dummy (License): Change to LGPLv2+.
16850         * modules/float (License): Likewise
16851         * modules/realloc (License): Likewise
16852         * modules/stdlib (License): Likewise
16853
16854 2007-10-07  Bruno Haible  <bruno@clisp.org>
16855
16856         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
16857         * floor.c (TWO_MANT_DIG): Likewise.
16858         * ceil.c (TWO_MANT_DIG): Likewise.
16859         Reported by Ben Pfaff.
16860
16861 2007-10-07  Bruno Haible  <bruno@clisp.org>
16862
16863         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
16864         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
16865         * lib/frexp.c (FUNC): Likewise.
16866         * lib/printf-frexp.h (printf_frexp): Likewise.
16867         * lib/printf-frexpl.h (printf_frexpl): Likewise.
16868         * lib/printf-frexp.c (FUNC): Likewise.
16869         Suggested by Jim Meyering.
16870
16871 2007-10-07  Jim Meyering  <meyering@redhat.com>
16872
16873         Make xnanosleep's integer overflow test more robust.
16874         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
16875         so that gcc-4.3.0 doesn't optimize away this test for overflow.
16876
16877 2007-10-07  Bruno Haible  <bruno@clisp.org>
16878
16879         * NEWS: Mention the license change.
16880
16881         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
16882         abbreviations in the modules files.
16883
16884         Change copyright notice from GPLv2+ to GPLv3+.
16885         * README: Change copyright notice.
16886         * MODULES.html.sh: Likewise.
16887         * build-aux/bootstrap.conf: Likewise.
16888         * build-aux/config.libpath: Likewise.
16889         * build-aux/csharpcomp.sh.in: Likewise.
16890         * build-aux/csharpexec.sh.in: Likewise.
16891         * build-aux/install-reloc: Likewise.
16892         * build-aux/javacomp.sh.in: Likewise.
16893         * build-aux/javaexec.sh.in: Likewise.
16894         * build-aux/ldd.sh.in: Likewise.
16895         * build-aux/reloc-ldflags: Likewise.
16896         * build-aux/relocatable.sh.in: Likewise.
16897         * build-aux/x-to-1.in: Likewise.
16898         * check-module: Likewise.
16899         * config/srclistvars.sh: Likewise.
16900         * gnulib-tool: Likewise.
16901         * lib/acl-internal.h: Likewise.
16902         * lib/acl.c: Likewise.
16903         * lib/acl.h: Likewise.
16904         * lib/acl_entries.c: Likewise.
16905         * lib/areadlink-with-size.c: Likewise.
16906         * lib/areadlink.c: Likewise.
16907         * lib/areadlink.h: Likewise.
16908         * lib/argmatch.c: Likewise.
16909         * lib/argmatch.h: Likewise.
16910         * lib/argp-ba.c: Likewise.
16911         * lib/argp-eexst.c: Likewise.
16912         * lib/argp-fmtstream.c: Likewise.
16913         * lib/argp-fmtstream.h: Likewise.
16914         * lib/argp-fs-xinl.c: Likewise.
16915         * lib/argp-help.c: Likewise.
16916         * lib/argp-namefrob.h: Likewise.
16917         * lib/argp-parse.c: Likewise.
16918         * lib/argp-pin.c: Likewise.
16919         * lib/argp-pv.c: Likewise.
16920         * lib/argp-pvh.c: Likewise.
16921         * lib/argp-xinl.c: Likewise.
16922         * lib/argp.h: Likewise.
16923         * lib/at-func.c: Likewise.
16924         * lib/atanl.c: Likewise.
16925         * lib/backupfile.c: Likewise.
16926         * lib/backupfile.h: Likewise.
16927         * lib/basename.c: Likewise.
16928         * lib/binary-io.h: Likewise.
16929         * lib/byteswap.in.h: Likewise.
16930         * lib/c-stack.c: Likewise.
16931         * lib/c-stack.h: Likewise.
16932         * lib/c-strcasestr.c: Likewise.
16933         * lib/c-strcasestr.h: Likewise.
16934         * lib/c-strstr.c: Likewise.
16935         * lib/c-strstr.h: Likewise.
16936         * lib/c-strtod.c: Likewise.
16937         * lib/calloc.c: Likewise.
16938         * lib/canon-host.c: Likewise.
16939         * lib/canon-host.h: Likewise.
16940         * lib/canonicalize-lgpl.c: Likewise.
16941         * lib/canonicalize.c: Likewise.
16942         * lib/canonicalize.h: Likewise.
16943         * lib/ceil.c: Likewise.
16944         * lib/ceilf.c: Likewise.
16945         * lib/ceill.c: Likewise.
16946         * lib/chdir-long.c: Likewise.
16947         * lib/chdir-long.h: Likewise.
16948         * lib/chdir-safer.c: Likewise.
16949         * lib/chdir-safer.h: Likewise.
16950         * lib/chown.c: Likewise.
16951         * lib/classpath.c: Likewise.
16952         * lib/classpath.h: Likewise.
16953         * lib/clean-temp.c: Likewise.
16954         * lib/clean-temp.h: Likewise.
16955         * lib/cloexec.c: Likewise.
16956         * lib/close-stream.c: Likewise.
16957         * lib/closein.c: Likewise.
16958         * lib/closein.h: Likewise.
16959         * lib/closeout.c: Likewise.
16960         * lib/closeout.h: Likewise.
16961         * lib/concat-filename.c: Likewise.
16962         * lib/copy-file.c: Likewise.
16963         * lib/copy-file.h: Likewise.
16964         * lib/count-one-bits.h: Likewise.
16965         * lib/crc.c: Likewise.
16966         * lib/crc.h: Likewise.
16967         * lib/creat-safer.c: Likewise.
16968         * lib/csharpcomp.c: Likewise.
16969         * lib/csharpcomp.h: Likewise.
16970         * lib/csharpexec.c: Likewise.
16971         * lib/csharpexec.h: Likewise.
16972         * lib/cycle-check.c: Likewise.
16973         * lib/cycle-check.h: Likewise.
16974         * lib/diacrit.c: Likewise.
16975         * lib/diacrit.h: Likewise.
16976         * lib/diffseq.h: Likewise.
16977         * lib/dirchownmod.c: Likewise.
16978         * lib/dirent.in.h: Likewise.
16979         * lib/dirfd.c: Likewise.
16980         * lib/dirfd.h: Likewise.
16981         * lib/dirname.c: Likewise.
16982         * lib/dirname.h: Likewise.
16983         * lib/dummy.c: Likewise.
16984         * lib/dup-safer.c: Likewise.
16985         * lib/dup2.c: Likewise.
16986         * lib/eealloc.h: Likewise.
16987         * lib/error.c: Likewise.
16988         * lib/error.h: Likewise.
16989         * lib/euidaccess.c: Likewise.
16990         * lib/exclude.c: Likewise.
16991         * lib/exclude.h: Likewise.
16992         * lib/execute.c: Likewise.
16993         * lib/execute.h: Likewise.
16994         * lib/exitfail.c: Likewise.
16995         * lib/exitfail.h: Likewise.
16996         * lib/expl.c: Likewise.
16997         * lib/fatal-signal.c: Likewise.
16998         * lib/fatal-signal.h: Likewise.
16999         * lib/fbufmode.c: Likewise.
17000         * lib/fbufmode.h: Likewise.
17001         * lib/fchdir.c: Likewise.
17002         * lib/fchmodat.c: Likewise.
17003         * lib/fchownat.c: Likewise.
17004         * lib/fcntl--.h: Likewise.
17005         * lib/fcntl-safer.h: Likewise.
17006         * lib/fcntl.in.h: Likewise.
17007         * lib/fd-safer.c: Likewise.
17008         * lib/fflush.c: Likewise.
17009         * lib/file-has-acl.c: Likewise.
17010         * lib/file-set.c: Likewise.
17011         * lib/file-type.c: Likewise.
17012         * lib/file-type.h: Likewise.
17013         * lib/fileblocks.c: Likewise.
17014         * lib/filemode.c: Likewise.
17015         * lib/filemode.h: Likewise.
17016         * lib/filename.h: Likewise.
17017         * lib/filenamecat.c: Likewise.
17018         * lib/filenamecat.h: Likewise.
17019         * lib/findprog.c: Likewise.
17020         * lib/findprog.h: Likewise.
17021         * lib/float.in.h: Likewise.
17022         * lib/floor.c: Likewise.
17023         * lib/floorf.c: Likewise.
17024         * lib/floorl.c: Likewise.
17025         * lib/fopen-safer.c: Likewise.
17026         * lib/fopen.c: Likewise.
17027         * lib/fpending.c: Likewise.
17028         * lib/fpending.h: Likewise.
17029         * lib/fprintf.c: Likewise.
17030         * lib/fprintftime.h: Likewise.
17031         * lib/fpucw.h: Likewise.
17032         * lib/fpurge.c: Likewise.
17033         * lib/fpurge.h: Likewise.
17034         * lib/freadable.c: Likewise.
17035         * lib/freadable.h: Likewise.
17036         * lib/freadahead.c: Likewise.
17037         * lib/freadahead.h: Likewise.
17038         * lib/freading.c: Likewise.
17039         * lib/freading.h: Likewise.
17040         * lib/free.c: Likewise.
17041         * lib/freopen.c: Likewise.
17042         * lib/frexp.c: Likewise.
17043         * lib/frexpl.c: Likewise.
17044         * lib/fseek.c: Likewise.
17045         * lib/fseterr.c: Likewise.
17046         * lib/fseterr.h: Likewise.
17047         * lib/fstatat.c: Likewise.
17048         * lib/fstrcmp.c: Likewise.
17049         * lib/fstrcmp.h: Likewise.
17050         * lib/fsusage.c: Likewise.
17051         * lib/fsusage.h: Likewise.
17052         * lib/ftell.c: Likewise.
17053         * lib/ftello.c: Likewise.
17054         * lib/fts-cycle.c: Likewise.
17055         * lib/fts.c: Likewise.
17056         * lib/fts_.h: Likewise.
17057         * lib/full-read.c: Likewise.
17058         * lib/full-read.h: Likewise.
17059         * lib/full-write.c: Likewise.
17060         * lib/full-write.h: Likewise.
17061         * lib/fwritable.c: Likewise.
17062         * lib/fwritable.h: Likewise.
17063         * lib/fwriteerror.c: Likewise.
17064         * lib/fwriteerror.h: Likewise.
17065         * lib/fwriting.c: Likewise.
17066         * lib/fwriting.h: Likewise.
17067         * lib/gcd.c: Likewise.
17068         * lib/gcd.h: Likewise.
17069         * lib/getcwd.c: Likewise.
17070         * lib/getdate.h: Likewise.
17071         * lib/getdate.y: Likewise.
17072         * lib/getdomainname.c: Likewise.
17073         * lib/getdomainname.h: Likewise.
17074         * lib/getgroups.c: Likewise.
17075         * lib/gethostname.c: Likewise.
17076         * lib/gethrxtime.c: Likewise.
17077         * lib/gethrxtime.h: Likewise.
17078         * lib/getloadavg.c: Likewise.
17079         * lib/getndelim2.c: Likewise.
17080         * lib/getndelim2.h: Likewise.
17081         * lib/getnline.c: Likewise.
17082         * lib/getnline.h: Likewise.
17083         * lib/getopt.c: Likewise.
17084         * lib/getopt.in.h: Likewise.
17085         * lib/getopt1.c: Likewise.
17086         * lib/getopt_int.h: Likewise.
17087         * lib/getpagesize.h: Likewise.
17088         * lib/getsubopt.c: Likewise.
17089         * lib/gettime.c: Likewise.
17090         * lib/getugroups.c: Likewise.
17091         * lib/getugroups.h: Likewise.
17092         * lib/getusershell.c: Likewise.
17093         * lib/gl_anyavltree_list1.h: Likewise.
17094         * lib/gl_anyavltree_list2.h: Likewise.
17095         * lib/gl_anyhash_list1.h: Likewise.
17096         * lib/gl_anyhash_list2.h: Likewise.
17097         * lib/gl_anylinked_list1.h: Likewise.
17098         * lib/gl_anylinked_list2.h: Likewise.
17099         * lib/gl_anyrbtree_list1.h: Likewise.
17100         * lib/gl_anyrbtree_list2.h: Likewise.
17101         * lib/gl_anytree_list1.h: Likewise.
17102         * lib/gl_anytree_list2.h: Likewise.
17103         * lib/gl_anytree_oset.h: Likewise.
17104         * lib/gl_anytreehash_list1.h: Likewise.
17105         * lib/gl_anytreehash_list2.h: Likewise.
17106         * lib/gl_array_list.c: Likewise.
17107         * lib/gl_array_list.h: Likewise.
17108         * lib/gl_array_oset.c: Likewise.
17109         * lib/gl_array_oset.h: Likewise.
17110         * lib/gl_avltree_list.c: Likewise.
17111         * lib/gl_avltree_list.h: Likewise.
17112         * lib/gl_avltree_oset.c: Likewise.
17113         * lib/gl_avltree_oset.h: Likewise.
17114         * lib/gl_avltreehash_list.c: Likewise.
17115         * lib/gl_avltreehash_list.h: Likewise.
17116         * lib/gl_carray_list.c: Likewise.
17117         * lib/gl_carray_list.h: Likewise.
17118         * lib/gl_linked_list.c: Likewise.
17119         * lib/gl_linked_list.h: Likewise.
17120         * lib/gl_linkedhash_list.c: Likewise.
17121         * lib/gl_linkedhash_list.h: Likewise.
17122         * lib/gl_list.c: Likewise.
17123         * lib/gl_list.h: Likewise.
17124         * lib/gl_oset.c: Likewise.
17125         * lib/gl_oset.h: Likewise.
17126         * lib/gl_rbtree_list.c: Likewise.
17127         * lib/gl_rbtree_list.h: Likewise.
17128         * lib/gl_rbtree_oset.c: Likewise.
17129         * lib/gl_rbtree_oset.h: Likewise.
17130         * lib/gl_rbtreehash_list.c: Likewise.
17131         * lib/gl_rbtreehash_list.h: Likewise.
17132         * lib/gl_sublist.c: Likewise.
17133         * lib/gl_sublist.h: Likewise.
17134         * lib/group-member.c: Likewise.
17135         * lib/group-member.h: Likewise.
17136         * lib/hard-locale.c: Likewise.
17137         * lib/hard-locale.h: Likewise.
17138         * lib/hash-pjw.c: Likewise.
17139         * lib/hash-pjw.h: Likewise.
17140         * lib/hash-triple.c: Likewise.
17141         * lib/hash.c: Likewise.
17142         * lib/hash.h: Likewise.
17143         * lib/human.c: Likewise.
17144         * lib/human.h: Likewise.
17145         * lib/i-ring.c: Likewise.
17146         * lib/i-ring.h: Likewise.
17147         * lib/idcache.c: Likewise.
17148         * lib/imaxabs.c: Likewise.
17149         * lib/imaxdiv.c: Likewise.
17150         * lib/inet_pton.c: Likewise.
17151         * lib/inet_pton.h: Likewise.
17152         * lib/intprops.h: Likewise.
17153         * lib/inttostr.c: Likewise.
17154         * lib/inttostr.h: Likewise.
17155         * lib/inttypes.in.h: Likewise.
17156         * lib/isapipe.c: Likewise.
17157         * lib/isdir.c: Likewise.
17158         * lib/isnan.c: Likewise.
17159         * lib/isnan.h: Likewise.
17160         * lib/isnanf.c: Likewise.
17161         * lib/isnanf.h: Likewise.
17162         * lib/isnanl-nolibm.h: Likewise.
17163         * lib/isnanl.c: Likewise.
17164         * lib/isnanl.h: Likewise.
17165         * lib/javacomp.c: Likewise.
17166         * lib/javacomp.h: Likewise.
17167         * lib/javaexec.c: Likewise.
17168         * lib/javaexec.h: Likewise.
17169         * lib/javaversion.c: Likewise.
17170         * lib/javaversion.h: Likewise.
17171         * lib/javaversion.java: Likewise.
17172         * lib/lbrkprop.h: Likewise.
17173         * lib/lchmod.h: Likewise.
17174         * lib/lchown.c: Likewise.
17175         * lib/ldexpl.c: Likewise.
17176         * lib/linebreak.c: Likewise.
17177         * lib/linebreak.h: Likewise.
17178         * lib/linebuffer.c: Likewise.
17179         * lib/linebuffer.h: Likewise.
17180         * lib/locale.in.h: Likewise.
17181         * lib/logl.c: Likewise.
17182         * lib/long-options.c: Likewise.
17183         * lib/long-options.h: Likewise.
17184         * lib/lstat.c: Likewise.
17185         * lib/lstat.h: Likewise.
17186         * lib/math.in.h: Likewise.
17187         * lib/mbchar.c: Likewise.
17188         * lib/mbchar.h: Likewise.
17189         * lib/mbfile.h: Likewise.
17190         * lib/mbiter.h: Likewise.
17191         * lib/mbscasecmp.c: Likewise.
17192         * lib/mbscasestr.c: Likewise.
17193         * lib/mbschr.c: Likewise.
17194         * lib/mbscspn.c: Likewise.
17195         * lib/mbslen.c: Likewise.
17196         * lib/mbsncasecmp.c: Likewise.
17197         * lib/mbsnlen.c: Likewise.
17198         * lib/mbspbrk.c: Likewise.
17199         * lib/mbspcasecmp.c: Likewise.
17200         * lib/mbsrchr.c: Likewise.
17201         * lib/mbssep.c: Likewise.
17202         * lib/mbsspn.c: Likewise.
17203         * lib/mbsstr.c: Likewise.
17204         * lib/mbstok_r.c: Likewise.
17205         * lib/mbswidth.c: Likewise.
17206         * lib/mbswidth.h: Likewise.
17207         * lib/mbuiter.h: Likewise.
17208         * lib/memcasecmp.c: Likewise.
17209         * lib/memcasecmp.h: Likewise.
17210         * lib/memchr.c: Likewise.
17211         * lib/memcmp.c: Likewise.
17212         * lib/memcoll.c: Likewise.
17213         * lib/memcoll.h: Likewise.
17214         * lib/memcpy.c: Likewise.
17215         * lib/memrchr.c: Likewise.
17216         * lib/mkancesdirs.c: Likewise.
17217         * lib/mkdir-p.c: Likewise.
17218         * lib/mkdir-p.h: Likewise.
17219         * lib/mkdir.c: Likewise.
17220         * lib/mkdirat.c: Likewise.
17221         * lib/mkdtemp.c: Likewise.
17222         * lib/mkstemp-safer.c: Likewise.
17223         * lib/mkstemp.c: Likewise.
17224         * lib/modechange.c: Likewise.
17225         * lib/modechange.h: Likewise.
17226         * lib/mountlist.c: Likewise.
17227         * lib/mountlist.h: Likewise.
17228         * lib/mpsort.c: Likewise.
17229         * lib/nanosleep.c: Likewise.
17230         * lib/obstack.c: Likewise.
17231         * lib/obstack.h: Likewise.
17232         * lib/open-safer.c: Likewise.
17233         * lib/open.c: Likewise.
17234         * lib/openat-die.c: Likewise.
17235         * lib/openat-priv.h: Likewise.
17236         * lib/openat-proc.c: Likewise.
17237         * lib/openat.c: Likewise.
17238         * lib/openat.h: Likewise.
17239         * lib/pagealign_alloc.c: Likewise.
17240         * lib/pagealign_alloc.h: Likewise.
17241         * lib/physmem.c: Likewise.
17242         * lib/physmem.h: Likewise.
17243         * lib/pipe-safer.c: Likewise.
17244         * lib/pipe.c: Likewise.
17245         * lib/pipe.h: Likewise.
17246         * lib/posixtm.c: Likewise.
17247         * lib/posixtm.h: Likewise.
17248         * lib/posixver.c: Likewise.
17249         * lib/printf-frexp.c: Likewise.
17250         * lib/printf-frexp.h: Likewise.
17251         * lib/printf-frexpl.c: Likewise.
17252         * lib/printf-frexpl.h: Likewise.
17253         * lib/printf.c: Likewise.
17254         * lib/progname.c: Likewise.
17255         * lib/progname.h: Likewise.
17256         * lib/progreloc.c: Likewise.
17257         * lib/putenv.c: Likewise.
17258         * lib/quote.c: Likewise.
17259         * lib/quote.h: Likewise.
17260         * lib/quotearg.c: Likewise.
17261         * lib/quotearg.h: Likewise.
17262         * lib/raise.c: Likewise.
17263         * lib/readline.c: Likewise.
17264         * lib/readline.h: Likewise.
17265         * lib/readlink.c: Likewise.
17266         * lib/readtokens.c: Likewise.
17267         * lib/readtokens.h: Likewise.
17268         * lib/readtokens0.c: Likewise.
17269         * lib/readtokens0.h: Likewise.
17270         * lib/readutmp.c: Likewise.
17271         * lib/readutmp.h: Likewise.
17272         * lib/realloc.c: Likewise.
17273         * lib/relocwrapper.c: Likewise.
17274         * lib/rename-dest-slash.c: Likewise.
17275         * lib/rename.c: Likewise.
17276         * lib/rmdir.c: Likewise.
17277         * lib/rpmatch.c: Likewise.
17278         * lib/safe-read.c: Likewise.
17279         * lib/safe-read.h: Likewise.
17280         * lib/safe-write.c: Likewise.
17281         * lib/safe-write.h: Likewise.
17282         * lib/same-inode.h: Likewise.
17283         * lib/same.c: Likewise.
17284         * lib/same.h: Likewise.
17285         * lib/save-cwd.c: Likewise.
17286         * lib/save-cwd.h: Likewise.
17287         * lib/savedir.c: Likewise.
17288         * lib/savedir.h: Likewise.
17289         * lib/savewd.c: Likewise.
17290         * lib/savewd.h: Likewise.
17291         * lib/search.in.h: Likewise.
17292         * lib/setenv.c: Likewise.
17293         * lib/setenv.h: Likewise.
17294         * lib/settime.c: Likewise.
17295         * lib/sh-quote.c: Likewise.
17296         * lib/sh-quote.h: Likewise.
17297         * lib/sig2str.c: Likewise.
17298         * lib/sig2str.h: Likewise.
17299         * lib/signal.in.h: Likewise.
17300         * lib/signbitd.c: Likewise.
17301         * lib/signbitf.c: Likewise.
17302         * lib/signbitl.c: Likewise.
17303         * lib/sigprocmask.c: Likewise.
17304         * lib/sincosl.c: Likewise.
17305         * lib/sleep.c: Likewise.
17306         * lib/sprintf.c: Likewise.
17307         * lib/sqrtl.c: Likewise.
17308         * lib/stat-time.h: Likewise.
17309         * lib/stdio--.h: Likewise.
17310         * lib/stdio-safer.h: Likewise.
17311         * lib/stdlib--.h: Likewise.
17312         * lib/stdlib-safer.h: Likewise.
17313         * lib/stdlib.in.h: Likewise.
17314         * lib/stpcpy.c: Likewise.
17315         * lib/stpncpy.c: Likewise.
17316         * lib/strchrnul.c: Likewise.
17317         * lib/strcspn.c: Likewise.
17318         * lib/strerror.c: Likewise.
17319         * lib/strftime.c: Likewise.
17320         * lib/strftime.h: Likewise.
17321         * lib/striconveh.c: Likewise.
17322         * lib/striconveh.h: Likewise.
17323         * lib/striconveha.c: Likewise.
17324         * lib/striconveha.h: Likewise.
17325         * lib/stripslash.c: Likewise.
17326         * lib/strnlen1.c: Likewise.
17327         * lib/strnlen1.h: Likewise.
17328         * lib/strtod.c: Likewise.
17329         * lib/strtoimax.c: Likewise.
17330         * lib/strtok_r.c: Likewise.
17331         * lib/strtol.c: Likewise.
17332         * lib/strtoll.c: Likewise.
17333         * lib/strtoul.c: Likewise.
17334         * lib/strtoull.c: Likewise.
17335         * lib/sysexits.in.h: Likewise.
17336         * lib/tempname.c: Likewise.
17337         * lib/tempname.h: Likewise.
17338         * lib/timespec.h: Likewise.
17339         * lib/tls.c: Likewise.
17340         * lib/tls.h: Likewise.
17341         * lib/tmpdir.c: Likewise.
17342         * lib/tmpdir.h: Likewise.
17343         * lib/tmpfile-safer.c: Likewise.
17344         * lib/tmpfile.c: Likewise.
17345         * lib/trigl.c: Likewise.
17346         * lib/trigl.h: Likewise.
17347         * lib/trim.c: Likewise.
17348         * lib/trim.h: Likewise.
17349         * lib/trunc.c: Likewise.
17350         * lib/truncf.c: Likewise.
17351         * lib/truncl.c: Likewise.
17352         * lib/tsearch.c: Likewise.
17353         * lib/unicodeio.c: Likewise.
17354         * lib/unicodeio.h: Likewise.
17355         * lib/unistd--.h: Likewise.
17356         * lib/unistd-safer.h: Likewise.
17357         * lib/unistdio/ulc-fprintf.c: Likewise.
17358         * lib/unistdio/ulc-vfprintf.c: Likewise.
17359         * lib/unlinkdir.c: Likewise.
17360         * lib/unlinkdir.h: Likewise.
17361         * lib/unlocked-io.h: Likewise.
17362         * lib/unsetenv.c: Likewise.
17363         * lib/userspec.c: Likewise.
17364         * lib/utime.c: Likewise.
17365         * lib/utimecmp.c: Likewise.
17366         * lib/utimecmp.h: Likewise.
17367         * lib/utimens.c: Likewise.
17368         * lib/verify.h: Likewise.
17369         * lib/verror.c: Likewise.
17370         * lib/verror.h: Likewise.
17371         * lib/version-etc-fsf.c: Likewise.
17372         * lib/version-etc.c: Likewise.
17373         * lib/version-etc.h: Likewise.
17374         * lib/vfprintf.c: Likewise.
17375         * lib/vprintf.c: Likewise.
17376         * lib/vsprintf.c: Likewise.
17377         * lib/w32spawn.h: Likewise.
17378         * lib/wait-process.c: Likewise.
17379         * lib/wait-process.h: Likewise.
17380         * lib/wcwidth.c: Likewise.
17381         * lib/write-any-file.c: Likewise.
17382         * lib/xalloc-die.c: Likewise.
17383         * lib/xalloc.h: Likewise.
17384         * lib/xasprintf.c: Likewise.
17385         * lib/xgetcwd.c: Likewise.
17386         * lib/xgetcwd.h: Likewise.
17387         * lib/xgetdomainname.c: Likewise.
17388         * lib/xgetdomainname.h: Likewise.
17389         * lib/xgethostname.c: Likewise.
17390         * lib/xmalloc.c: Likewise.
17391         * lib/xmalloca.c: Likewise.
17392         * lib/xmalloca.h: Likewise.
17393         * lib/xmemcoll.c: Likewise.
17394         * lib/xnanosleep.c: Likewise.
17395         * lib/xreadlink.c: Likewise.
17396         * lib/xreadlink.h: Likewise.
17397         * lib/xsetenv.c: Likewise.
17398         * lib/xsetenv.h: Likewise.
17399         * lib/xstriconv.c: Likewise.
17400         * lib/xstriconv.h: Likewise.
17401         * lib/xstrndup.c: Likewise.
17402         * lib/xstrndup.h: Likewise.
17403         * lib/xstrtod.c: Likewise.
17404         * lib/xstrtod.h: Likewise.
17405         * lib/xstrtol-error.c: Likewise.
17406         * lib/xstrtol.c: Likewise.
17407         * lib/xstrtol.h: Likewise.
17408         * lib/xtime.h: Likewise.
17409         * lib/xvasprintf.c: Likewise.
17410         * lib/xvasprintf.h: Likewise.
17411         * lib/yesno.c: Likewise.
17412         * lib/yesno.h: Likewise.
17413         * posix-modules: Likewise.
17414         * tests/test-alloca-opt.c: Likewise.
17415         * tests/test-arcfour.c: Likewise.
17416         * tests/test-arctwo.c: Likewise.
17417         * tests/test-argmatch.c: Likewise.
17418         * tests/test-argp-2.sh: Likewise.
17419         * tests/test-argp.c: Likewise.
17420         * tests/test-arpa_inet.c: Likewise.
17421         * tests/test-array_list.c: Likewise.
17422         * tests/test-array_oset.c: Likewise.
17423         * tests/test-atexit.c: Likewise.
17424         * tests/test-avltree_list.c: Likewise.
17425         * tests/test-avltree_oset.c: Likewise.
17426         * tests/test-avltreehash_list.c: Likewise.
17427         * tests/test-base64.c: Likewise.
17428         * tests/test-binary-io.c: Likewise.
17429         * tests/test-byteswap.c: Likewise.
17430         * tests/test-c-ctype.c: Likewise.
17431         * tests/test-c-strcasecmp.c: Likewise.
17432         * tests/test-c-strcasestr.c: Likewise.
17433         * tests/test-c-strncasecmp.c: Likewise.
17434         * tests/test-c-strstr.c: Likewise.
17435         * tests/test-canonicalize-lgpl.c: Likewise.
17436         * tests/test-canonicalize.c: Likewise.
17437         * tests/test-carray_list.c: Likewise.
17438         * tests/test-ceilf.c: Likewise.
17439         * tests/test-ceill.c: Likewise.
17440         * tests/test-count-one-bits.c: Likewise.
17441         * tests/test-crc.c: Likewise.
17442         * tests/test-dirname.c: Likewise.
17443         * tests/test-fbufmode.c: Likewise.
17444         * tests/test-fcntl.c: Likewise.
17445         * tests/test-fflush.c: Likewise.
17446         * tests/test-floorf.c: Likewise.
17447         * tests/test-floorl.c: Likewise.
17448         * tests/test-fopen.c: Likewise.
17449         * tests/test-fprintf-posix.c: Likewise.
17450         * tests/test-fprintf-posix.h: Likewise.
17451         * tests/test-fpurge.c: Likewise.
17452         * tests/test-freadable.c: Likewise.
17453         * tests/test-freadahead.c: Likewise.
17454         * tests/test-freading.c: Likewise.
17455         * tests/test-freopen.c: Likewise.
17456         * tests/test-frexp.c: Likewise.
17457         * tests/test-frexpl.c: Likewise.
17458         * tests/test-fseek.c: Likewise.
17459         * tests/test-fseeko.c: Likewise.
17460         * tests/test-fseterr.c: Likewise.
17461         * tests/test-fstrcmp.c: Likewise.
17462         * tests/test-ftell.c: Likewise.
17463         * tests/test-ftello.c: Likewise.
17464         * tests/test-fwritable.c: Likewise.
17465         * tests/test-fwriting.c: Likewise.
17466         * tests/test-getaddrinfo.c: Likewise.
17467         * tests/test-getpass.c: Likewise.
17468         * tests/test-gettimeofday.c: Likewise.
17469         * tests/test-hmac-md5.c: Likewise.
17470         * tests/test-hmac-sha1.c: Likewise.
17471         * tests/test-iconv.c: Likewise.
17472         * tests/test-iconvme.c: Likewise.
17473         * tests/test-inttypes.c: Likewise.
17474         * tests/test-isnan.c: Likewise.
17475         * tests/test-isnanf.c: Likewise.
17476         * tests/test-isnanl-nolibm.c: Likewise.
17477         * tests/test-isnanl.c: Likewise.
17478         * tests/test-isnanl.h: Likewise.
17479         * tests/test-ldexpl.c: Likewise.
17480         * tests/test-linked_list.c: Likewise.
17481         * tests/test-linkedhash_list.c: Likewise.
17482         * tests/test-locale.c: Likewise.
17483         * tests/test-localename.c: Likewise.
17484         * tests/test-lock.c: Likewise.
17485         * tests/test-lseek.c: Likewise.
17486         * tests/test-malloca.c: Likewise.
17487         * tests/test-math.c: Likewise.
17488         * tests/test-mbscasecmp.c: Likewise.
17489         * tests/test-mbscasestr1.c: Likewise.
17490         * tests/test-mbscasestr2.c: Likewise.
17491         * tests/test-mbscasestr3.c: Likewise.
17492         * tests/test-mbscasestr4.c: Likewise.
17493         * tests/test-mbschr.c: Likewise.
17494         * tests/test-mbscspn.c: Likewise.
17495         * tests/test-mbsncasecmp.c: Likewise.
17496         * tests/test-mbspbrk.c: Likewise.
17497         * tests/test-mbspcasecmp.c: Likewise.
17498         * tests/test-mbsrchr.c: Likewise.
17499         * tests/test-mbsspn.c: Likewise.
17500         * tests/test-mbsstr1.c: Likewise.
17501         * tests/test-mbsstr2.c: Likewise.
17502         * tests/test-mbsstr3.c: Likewise.
17503         * tests/test-md5.c: Likewise.
17504         * tests/test-memmem.c: Likewise.
17505         * tests/test-netinet_in.c: Likewise.
17506         * tests/test-open.c: Likewise.
17507         * tests/test-printf-frexp.c: Likewise.
17508         * tests/test-printf-frexpl.c: Likewise.
17509         * tests/test-printf-posix.c: Likewise.
17510         * tests/test-printf-posix.h: Likewise.
17511         * tests/test-rbtree_list.c: Likewise.
17512         * tests/test-rbtree_oset.c: Likewise.
17513         * tests/test-rbtreehash_list.c: Likewise.
17514         * tests/test-read-file.c: Likewise.
17515         * tests/test-rijndael.c: Likewise.
17516         * tests/test-search.c: Likewise.
17517         * tests/test-signbit.c: Likewise.
17518         * tests/test-sleep.c: Likewise.
17519         * tests/test-snprintf-posix.c: Likewise.
17520         * tests/test-snprintf-posix.h: Likewise.
17521         * tests/test-snprintf.c: Likewise.
17522         * tests/test-sprintf-posix.c: Likewise.
17523         * tests/test-sprintf-posix.h: Likewise.
17524         * tests/test-stat-time.c: Likewise.
17525         * tests/test-stdbool.c: Likewise.
17526         * tests/test-stdint.c: Likewise.
17527         * tests/test-stdio.c: Likewise.
17528         * tests/test-stdlib.c: Likewise.
17529         * tests/test-stpncpy.c: Likewise.
17530         * tests/test-strcasestr.c: Likewise.
17531         * tests/test-striconv.c: Likewise.
17532         * tests/test-striconveh.c: Likewise.
17533         * tests/test-striconveha.c: Likewise.
17534         * tests/test-string.c: Likewise.
17535         * tests/test-sys_select.c: Likewise.
17536         * tests/test-sys_socket.c: Likewise.
17537         * tests/test-sys_stat.c: Likewise.
17538         * tests/test-sys_time.c: Likewise.
17539         * tests/test-sysexits.c: Likewise.
17540         * tests/test-time.c: Likewise.
17541         * tests/test-tls.c: Likewise.
17542         * tests/test-trunc.c: Likewise.
17543         * tests/test-truncf.c: Likewise.
17544         * tests/test-truncl.c: Likewise.
17545         * tests/test-unistd.c: Likewise.
17546         * tests/test-vasnprintf-posix.c: Likewise.
17547         * tests/test-vasnprintf-posix2.c: Likewise.
17548         * tests/test-vasnprintf.c: Likewise.
17549         * tests/test-vasprintf-posix.c: Likewise.
17550         * tests/test-vasprintf.c: Likewise.
17551         * tests/test-verify.c: Likewise.
17552         * tests/test-vfprintf-posix.c: Likewise.
17553         * tests/test-vprintf-posix.c: Likewise.
17554         * tests/test-vsnprintf-posix.c: Likewise.
17555         * tests/test-vsnprintf.c: Likewise.
17556         * tests/test-vsprintf-posix.c: Likewise.
17557         * tests/test-wchar.c: Likewise.
17558         * tests/test-wctype.c: Likewise.
17559         * tests/test-wcwidth.c: Likewise.
17560         * tests/test-xstrtol.c: Likewise.
17561         * tests/test-xvasprintf.c: Likewise.
17562         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17563         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17564         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17565         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17566         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17567         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17568         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17569         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17570         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17571         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17572         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17573         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17574         * tests/uniname/test-uninames.c: Likewise.
17575         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17576         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
17577         * tests/unistdio/test-u16-printf1.h: Likewise.
17578         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17579         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17580         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17581         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17582         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17583         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17584         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17585         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
17586         * tests/unistdio/test-u32-printf1.h: Likewise.
17587         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17588         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17589         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17590         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17591         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17592         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17593         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17594         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
17595         * tests/unistdio/test-u8-printf1.h: Likewise.
17596         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17597         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17598         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17599         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17600         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17601         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17602         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17603         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
17604         * tests/unistdio/test-ulc-printf1.h: Likewise.
17605         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17606         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17607         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17608         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17609         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17610         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17611         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17612         * tests/uniwidth/test-u16-width.c: Likewise.
17613         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17614         * tests/uniwidth/test-u32-width.c: Likewise.
17615         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17616         * tests/uniwidth/test-u8-width.c: Likewise.
17617         * tests/uniwidth/test-uc_width.c: Likewise.
17618         * config/srclist-update: Likewise.
17619         (fixlicense): Update to GPLv3+.
17620
17621         Change copyright notice from LGPLv2.1+ to LGPLv3+.
17622         * tests/test-tsearch.c: Change copyright notice.
17623
17624         Change copyright notice from LGPLv2.0+ to LGPLv3+.
17625         * lib/c-strcaseeq.h: Change copyright notice.
17626         * lib/streq.h: Likewise.
17627         * lib/uniconv.h: Likewise.
17628         * lib/uniconv/u-conv-from-enc.h: Likewise.
17629         * lib/uniconv/u-conv-to-enc.h: Likewise.
17630         * lib/uniconv/u-strconv-from-enc.h: Likewise.
17631         * lib/uniconv/u-strconv-to-enc.h: Likewise.
17632         * lib/uniconv/u16-conv-from-enc.c: Likewise.
17633         * lib/uniconv/u16-conv-to-enc.c: Likewise.
17634         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
17635         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
17636         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
17637         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
17638         * lib/uniconv/u32-conv-from-enc.c: Likewise.
17639         * lib/uniconv/u32-conv-to-enc.c: Likewise.
17640         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
17641         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
17642         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
17643         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
17644         * lib/uniconv/u8-conv-from-enc.c: Likewise.
17645         * lib/uniconv/u8-conv-to-enc.c: Likewise.
17646         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
17647         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
17648         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
17649         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
17650         * lib/uniname.h: Likewise.
17651         * lib/uniname/uniname.c: Likewise.
17652         * lib/unistdio.h: Likewise.
17653         * lib/unistdio/u-asnprintf.h: Likewise.
17654         * lib/unistdio/u-asprintf.h: Likewise.
17655         * lib/unistdio/u-printf-args.c: Likewise.
17656         * lib/unistdio/u-printf-args.h: Likewise.
17657         * lib/unistdio/u-printf-parse.h: Likewise.
17658         * lib/unistdio/u-snprintf.h: Likewise.
17659         * lib/unistdio/u-sprintf.h: Likewise.
17660         * lib/unistdio/u-vasprintf.h: Likewise.
17661         * lib/unistdio/u-vsnprintf.h: Likewise.
17662         * lib/unistdio/u-vsprintf.h: Likewise.
17663         * lib/unistdio/u16-asnprintf.c: Likewise.
17664         * lib/unistdio/u16-asprintf.c: Likewise.
17665         * lib/unistdio/u16-printf-parse.c: Likewise.
17666         * lib/unistdio/u16-snprintf.c: Likewise.
17667         * lib/unistdio/u16-sprintf.c: Likewise.
17668         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
17669         * lib/unistdio/u16-u16-asprintf.c: Likewise.
17670         * lib/unistdio/u16-u16-snprintf.c: Likewise.
17671         * lib/unistdio/u16-u16-sprintf.c: Likewise.
17672         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
17673         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
17674         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
17675         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
17676         * lib/unistdio/u16-vasnprintf.c: Likewise.
17677         * lib/unistdio/u16-vasprintf.c: Likewise.
17678         * lib/unistdio/u16-vsnprintf.c: Likewise.
17679         * lib/unistdio/u16-vsprintf.c: Likewise.
17680         * lib/unistdio/u32-asnprintf.c: Likewise.
17681         * lib/unistdio/u32-asprintf.c: Likewise.
17682         * lib/unistdio/u32-printf-parse.c: Likewise.
17683         * lib/unistdio/u32-snprintf.c: Likewise.
17684         * lib/unistdio/u32-sprintf.c: Likewise.
17685         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
17686         * lib/unistdio/u32-u32-asprintf.c: Likewise.
17687         * lib/unistdio/u32-u32-snprintf.c: Likewise.
17688         * lib/unistdio/u32-u32-sprintf.c: Likewise.
17689         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
17690         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
17691         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
17692         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
17693         * lib/unistdio/u32-vasnprintf.c: Likewise.
17694         * lib/unistdio/u32-vasprintf.c: Likewise.
17695         * lib/unistdio/u32-vsnprintf.c: Likewise.
17696         * lib/unistdio/u32-vsprintf.c: Likewise.
17697         * lib/unistdio/u8-asnprintf.c: Likewise.
17698         * lib/unistdio/u8-asprintf.c: Likewise.
17699         * lib/unistdio/u8-printf-parse.c: Likewise.
17700         * lib/unistdio/u8-snprintf.c: Likewise.
17701         * lib/unistdio/u8-sprintf.c: Likewise.
17702         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
17703         * lib/unistdio/u8-u8-asprintf.c: Likewise.
17704         * lib/unistdio/u8-u8-snprintf.c: Likewise.
17705         * lib/unistdio/u8-u8-sprintf.c: Likewise.
17706         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
17707         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
17708         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
17709         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
17710         * lib/unistdio/u8-vasnprintf.c: Likewise.
17711         * lib/unistdio/u8-vasprintf.c: Likewise.
17712         * lib/unistdio/u8-vsnprintf.c: Likewise.
17713         * lib/unistdio/u8-vsprintf.c: Likewise.
17714         * lib/unistdio/ulc-asnprintf.c: Likewise.
17715         * lib/unistdio/ulc-asprintf.c: Likewise.
17716         * lib/unistdio/ulc-printf-parse.c: Likewise.
17717         * lib/unistdio/ulc-snprintf.c: Likewise.
17718         * lib/unistdio/ulc-sprintf.c: Likewise.
17719         * lib/unistdio/ulc-vasnprintf.c: Likewise.
17720         * lib/unistdio/ulc-vasprintf.c: Likewise.
17721         * lib/unistdio/ulc-vsnprintf.c: Likewise.
17722         * lib/unistdio/ulc-vsprintf.c: Likewise.
17723         * lib/unistr.h: Likewise.
17724         * lib/unistr/u-cpy-alloc.h: Likewise.
17725         * lib/unistr/u-cpy.h: Likewise.
17726         * lib/unistr/u-endswith.h: Likewise.
17727         * lib/unistr/u-move.h: Likewise.
17728         * lib/unistr/u-set.h: Likewise.
17729         * lib/unistr/u-startswith.h: Likewise.
17730         * lib/unistr/u-stpcpy.h: Likewise.
17731         * lib/unistr/u-stpncpy.h: Likewise.
17732         * lib/unistr/u-strcat.h: Likewise.
17733         * lib/unistr/u-strcpy.h: Likewise.
17734         * lib/unistr/u-strcspn.h: Likewise.
17735         * lib/unistr/u-strdup.h: Likewise.
17736         * lib/unistr/u-strlen.h: Likewise.
17737         * lib/unistr/u-strncat.h: Likewise.
17738         * lib/unistr/u-strncpy.h: Likewise.
17739         * lib/unistr/u-strnlen.h: Likewise.
17740         * lib/unistr/u-strpbrk.h: Likewise.
17741         * lib/unistr/u-strspn.h: Likewise.
17742         * lib/unistr/u-strstr.h: Likewise.
17743         * lib/unistr/u-strtok.h: Likewise.
17744         * lib/unistr/u16-check.c: Likewise.
17745         * lib/unistr/u16-chr.c: Likewise.
17746         * lib/unistr/u16-cmp.c: Likewise.
17747         * lib/unistr/u16-cpy-alloc.c: Likewise.
17748         * lib/unistr/u16-cpy.c: Likewise.
17749         * lib/unistr/u16-endswith.c: Likewise.
17750         * lib/unistr/u16-mblen.c: Likewise.
17751         * lib/unistr/u16-mbsnlen.c: Likewise.
17752         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17753         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17754         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17755         * lib/unistr/u16-mbtouc.c: Likewise.
17756         * lib/unistr/u16-mbtoucr.c: Likewise.
17757         * lib/unistr/u16-move.c: Likewise.
17758         * lib/unistr/u16-next.c: Likewise.
17759         * lib/unistr/u16-prev.c: Likewise.
17760         * lib/unistr/u16-set.c: Likewise.
17761         * lib/unistr/u16-startswith.c: Likewise.
17762         * lib/unistr/u16-stpcpy.c: Likewise.
17763         * lib/unistr/u16-stpncpy.c: Likewise.
17764         * lib/unistr/u16-strcat.c: Likewise.
17765         * lib/unistr/u16-strchr.c: Likewise.
17766         * lib/unistr/u16-strcmp.c: Likewise.
17767         * lib/unistr/u16-strcpy.c: Likewise.
17768         * lib/unistr/u16-strcspn.c: Likewise.
17769         * lib/unistr/u16-strdup.c: Likewise.
17770         * lib/unistr/u16-strlen.c: Likewise.
17771         * lib/unistr/u16-strmblen.c: Likewise.
17772         * lib/unistr/u16-strmbtouc.c: Likewise.
17773         * lib/unistr/u16-strncat.c: Likewise.
17774         * lib/unistr/u16-strncmp.c: Likewise.
17775         * lib/unistr/u16-strncpy.c: Likewise.
17776         * lib/unistr/u16-strnlen.c: Likewise.
17777         * lib/unistr/u16-strpbrk.c: Likewise.
17778         * lib/unistr/u16-strrchr.c: Likewise.
17779         * lib/unistr/u16-strspn.c: Likewise.
17780         * lib/unistr/u16-strstr.c: Likewise.
17781         * lib/unistr/u16-strtok.c: Likewise.
17782         * lib/unistr/u16-to-u32.c: Likewise.
17783         * lib/unistr/u16-to-u8.c: Likewise.
17784         * lib/unistr/u16-uctomb-aux.c: Likewise.
17785         * lib/unistr/u16-uctomb.c: Likewise.
17786         * lib/unistr/u32-check.c: Likewise.
17787         * lib/unistr/u32-chr.c: Likewise.
17788         * lib/unistr/u32-cmp.c: Likewise.
17789         * lib/unistr/u32-cpy-alloc.c: Likewise.
17790         * lib/unistr/u32-cpy.c: Likewise.
17791         * lib/unistr/u32-endswith.c: Likewise.
17792         * lib/unistr/u32-mblen.c: Likewise.
17793         * lib/unistr/u32-mbsnlen.c: Likewise.
17794         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17795         * lib/unistr/u32-mbtouc.c: Likewise.
17796         * lib/unistr/u32-mbtoucr.c: Likewise.
17797         * lib/unistr/u32-move.c: Likewise.
17798         * lib/unistr/u32-next.c: Likewise.
17799         * lib/unistr/u32-prev.c: Likewise.
17800         * lib/unistr/u32-set.c: Likewise.
17801         * lib/unistr/u32-startswith.c: Likewise.
17802         * lib/unistr/u32-stpcpy.c: Likewise.
17803         * lib/unistr/u32-stpncpy.c: Likewise.
17804         * lib/unistr/u32-strcat.c: Likewise.
17805         * lib/unistr/u32-strchr.c: Likewise.
17806         * lib/unistr/u32-strcmp.c: Likewise.
17807         * lib/unistr/u32-strcpy.c: Likewise.
17808         * lib/unistr/u32-strcspn.c: Likewise.
17809         * lib/unistr/u32-strdup.c: Likewise.
17810         * lib/unistr/u32-strlen.c: Likewise.
17811         * lib/unistr/u32-strmblen.c: Likewise.
17812         * lib/unistr/u32-strmbtouc.c: Likewise.
17813         * lib/unistr/u32-strncat.c: Likewise.
17814         * lib/unistr/u32-strncmp.c: Likewise.
17815         * lib/unistr/u32-strncpy.c: Likewise.
17816         * lib/unistr/u32-strnlen.c: Likewise.
17817         * lib/unistr/u32-strpbrk.c: Likewise.
17818         * lib/unistr/u32-strrchr.c: Likewise.
17819         * lib/unistr/u32-strspn.c: Likewise.
17820         * lib/unistr/u32-strstr.c: Likewise.
17821         * lib/unistr/u32-strtok.c: Likewise.
17822         * lib/unistr/u32-to-u16.c: Likewise.
17823         * lib/unistr/u32-to-u8.c: Likewise.
17824         * lib/unistr/u32-uctomb.c: Likewise.
17825         * lib/unistr/u8-check.c: Likewise.
17826         * lib/unistr/u8-chr.c: Likewise.
17827         * lib/unistr/u8-cmp.c: Likewise.
17828         * lib/unistr/u8-cpy-alloc.c: Likewise.
17829         * lib/unistr/u8-cpy.c: Likewise.
17830         * lib/unistr/u8-endswith.c: Likewise.
17831         * lib/unistr/u8-mblen.c: Likewise.
17832         * lib/unistr/u8-mbsnlen.c: Likewise.
17833         * lib/unistr/u8-mbtouc-aux.c: Likewise.
17834         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17835         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17836         * lib/unistr/u8-mbtouc.c: Likewise.
17837         * lib/unistr/u8-mbtoucr.c: Likewise.
17838         * lib/unistr/u8-move.c: Likewise.
17839         * lib/unistr/u8-next.c: Likewise.
17840         * lib/unistr/u8-prev.c: Likewise.
17841         * lib/unistr/u8-set.c: Likewise.
17842         * lib/unistr/u8-startswith.c: Likewise.
17843         * lib/unistr/u8-stpcpy.c: Likewise.
17844         * lib/unistr/u8-stpncpy.c: Likewise.
17845         * lib/unistr/u8-strcat.c: Likewise.
17846         * lib/unistr/u8-strchr.c: Likewise.
17847         * lib/unistr/u8-strcmp.c: Likewise.
17848         * lib/unistr/u8-strcpy.c: Likewise.
17849         * lib/unistr/u8-strcspn.c: Likewise.
17850         * lib/unistr/u8-strdup.c: Likewise.
17851         * lib/unistr/u8-strlen.c: Likewise.
17852         * lib/unistr/u8-strmblen.c: Likewise.
17853         * lib/unistr/u8-strmbtouc.c: Likewise.
17854         * lib/unistr/u8-strncat.c: Likewise.
17855         * lib/unistr/u8-strncmp.c: Likewise.
17856         * lib/unistr/u8-strncpy.c: Likewise.
17857         * lib/unistr/u8-strnlen.c: Likewise.
17858         * lib/unistr/u8-strpbrk.c: Likewise.
17859         * lib/unistr/u8-strrchr.c: Likewise.
17860         * lib/unistr/u8-strspn.c: Likewise.
17861         * lib/unistr/u8-strstr.c: Likewise.
17862         * lib/unistr/u8-strtok.c: Likewise.
17863         * lib/unistr/u8-to-u16.c: Likewise.
17864         * lib/unistr/u8-to-u32.c: Likewise.
17865         * lib/unistr/u8-uctomb-aux.c: Likewise.
17866         * lib/unistr/u8-uctomb.c: Likewise.
17867         * lib/unitypes.h: Likewise.
17868         * lib/uniwidth.h: Likewise.
17869         * lib/uniwidth/cjk.h: Likewise.
17870         * lib/uniwidth/u16-strwidth.c: Likewise.
17871         * lib/uniwidth/u16-width.c: Likewise.
17872         * lib/uniwidth/u32-strwidth.c: Likewise.
17873         * lib/uniwidth/u32-width.c: Likewise.
17874         * lib/uniwidth/u8-strwidth.c: Likewise.
17875         * lib/uniwidth/u8-width.c: Likewise.
17876         * lib/uniwidth/width.c: Likewise.
17877
17878 2007-10-07  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
17881         The file is still under LGPL (see modules/inttypes).
17882
17883 2007-10-06  Bruno Haible  <bruno@clisp.org>
17884
17885         * modules/trunc (Dependencies): Add 'extensions'.
17886         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
17887         Reported by Ben Pfaff <blp@gnu.org>.
17888
17889 2007-10-06  Bruno Haible  <bruno@clisp.org>
17890
17891         * modules/freopen-tests: New file.
17892         * tests/test-freopen.c: New file.
17893
17894         * modules/fopen-tests: New file.
17895         * tests/test-fopen.c: New file.
17896
17897         * modules/fopen: New file.
17898         * lib/fopen.c: New file.
17899         * m4/fopen.m4: New file.
17900         * modules/freopen: New file.
17901         * lib/freopen.c: New file.
17902         * m4/freopen.m4: New file.
17903         * lib/stdio.in.h (fopen, freopen): New declarations.
17904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17905         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17906         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
17907         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17908         * doc/functions/fopen.texi: Mention the 'fopen' module.
17909         * doc/functions/freopen.texi: Mention the 'freopen' module.
17910
17911 2007-10-06  Bruno Haible  <bruno@clisp.org>
17912
17913         * modules/open-tests: New file.
17914         * tests/test-open.c: New file.
17915
17916         * modules/open: New file.
17917         * lib/open.c: New file.
17918         * m4/open.m4: New file.
17919         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17920         lib/open.c does.
17921         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17922         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17923         macros.
17924         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17925         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17926         REPLACE_OPEN.
17927         * doc/functions/open.texi: Mention the 'open' module.
17928
17929 2007-10-04  Bruno Haible  <bruno@clisp.org>
17930
17931         * modules/ceill-tests: New file.
17932         * tests/test-ceill.c: New file.
17933
17934         * modules/ceill: New file.
17935         * lib/ceill.c: Replace entire file.
17936         * m4/ceill.m4: New file.
17937         * lib/math.in.h (ceill): Replace declaration.
17938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17939         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17940         * doc/functions/ceill.texi: Mention the 'ceill' module.
17941         * modules/mathl (Files): Remove lib/ceill.c.
17942         (Depends-on): Add ceill.
17943
17944 2007-10-04  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/ceilf-tests: New file.
17947         * tests/test-ceilf.c: New file.
17948
17949         * modules/ceilf: New file.
17950         * lib/ceil.c: New file.
17951         * lib/ceilf.c: New file.
17952         * m4/ceilf.m4: New file.
17953         * lib/math.in.h (ceilf): New declaration.
17954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17955         HAVE_DECL_CEILF.
17956         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17957         HAVE_DECL_CEILF.
17958         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17959
17960 2007-10-04  Bruno Haible  <bruno@clisp.org>
17961
17962         * modules/floorl-tests: New file.
17963         * tests/test-floorl.c: New file.
17964
17965         * modules/floorl: New file.
17966         * lib/floorl.c: Replace entire file.
17967         * m4/floorl.m4: New file.
17968         * lib/math.in.h (floorl): Replace declaration.
17969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17970         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17971         * doc/functions/floorl.texi: Mention the 'floorl' module.
17972         * modules/mathl (Files): Remove lib/floorl.c.
17973         (Depends-on): Add floorl.
17974
17975 2007-10-04  Bruno Haible  <bruno@clisp.org>
17976
17977         * modules/floorf-tests: New file.
17978         * tests/test-floorf.c: New file.
17979
17980         * modules/floorf: New file.
17981         * lib/floor.c: New file.
17982         * lib/floorf.c: New file.
17983         * m4/floorf.m4: New file.
17984         * lib/math.in.h (floorf): New declaration.
17985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17986         HAVE_DECL_FLOORF.
17987         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17988         HAVE_DECL_FLOORF.
17989         * doc/functions/floorf.texi: Mention the 'floorf' module.
17990
17991 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17992             Bruno Haible  <bruno@clisp.org>
17993
17994         Advertise for the Git server instead of the CVS server.
17995         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17996         repository instead of the CVS one.
17997         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17998         about all VCS systems generically.
17999         * doc/gnulib.texi (Introduction): Capitalize `Git'.
18000
18001 2007-10-04  Bruno Haible  <bruno@clisp.org>
18002
18003         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
18004         means.
18005         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
18006
18007 2007-10-04  Bruno Haible  <bruno@clisp.org>
18008
18009         * modules/truncl-tests: New file.
18010         * tests/test-truncl.c: New file.
18011
18012         * modules/truncl: New file.
18013         * lib/truncl.c: New file.
18014         * m4/truncl.m4: New file.
18015         * lib/math.in.h (truncl): New declaration.
18016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
18017         HAVE_DECL_TRUNCL.
18018         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
18019         HAVE_DECL_TRUNCL.
18020         * doc/functions/truncl.texi: Mention the 'truncl' module.
18021
18022 2007-10-04  Bruno Haible  <bruno@clisp.org>
18023
18024         * modules/truncf-tests: New file.
18025         * tests/test-truncf.c: New file.
18026
18027         * modules/truncf: New file.
18028         * lib/trunc.c: Make paramerizable through USE_* macros.
18029         * lib/truncf.c: New file.
18030         * m4/truncf.m4: New file.
18031         * lib/math.in.h (truncf): New declaration.
18032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
18033         HAVE_DECL_TRUNCF.
18034         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
18035         HAVE_DECL_TRUNCF.
18036         * doc/functions/truncf.texi: Mention the 'truncf' module.
18037
18038 2007-10-03  Bruno Haible  <bruno@clisp.org>
18039
18040         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
18041         augmentation also for tests modules.
18042         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
18043         * modules/atexit-tests (Makefile.am): Likewise.
18044         * modules/binary-io-tests (Makefile.am): Likewise.
18045         * modules/c-strcase-tests (Makefile.am): Likewise.
18046         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
18047         * modules/canonicalize-tests (Makefile.am): Likewise.
18048         * modules/closein-tests (Makefile.am): Likewise.
18049         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18050         * modules/freadahead-tests (Makefile.am): Likewise.
18051         * modules/fseek-tests (Makefile.am): Likewise.
18052         * modules/fseeko-tests (Makefile.am): Likewise.
18053         * modules/ftell-tests (Makefile.am): Likewise.
18054         * modules/ftello-tests (Makefile.am): Likewise.
18055         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
18056         * modules/isnanl-tests (Makefile.am): Likewise.
18057         * modules/lseek-tests (Makefile.am): Likewise.
18058         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18059         * modules/mbscasestr-tests (Makefile.am): Likewise.
18060         * modules/mbschr-tests (Makefile.am): Likewise.
18061         * modules/mbscspn-tests (Makefile.am): Likewise.
18062         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18063         * modules/mbspbrk-tests (Makefile.am): Likewise.
18064         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18065         * modules/mbsrchr-tests (Makefile.am): Likewise.
18066         * modules/mbsspn-tests (Makefile.am): Likewise.
18067         * modules/mbsstr-tests (Makefile.am): Likewise.
18068         * modules/printf-posix-tests (Makefile.am): Likewise.
18069         * modules/snprintf-posix-tests (Makefile.am): Likewise.
18070         * modules/sprintf-posix-tests (Makefile.am): Likewise.
18071         * modules/tsearch-tests (Makefile.am): Likewise.
18072         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18073         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18074         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18075         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18076         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18077         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18078         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18079         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18080         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
18081         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
18082         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18083         * modules/xstrtol-tests (Makefile.am): Likewise.
18084         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18085         * modules/yesno-tests (Makefile.am): Likewise.
18086
18087 2007-10-03  Bruno Haible  <bruno@clisp.org>
18088
18089         * modules/trunc-tests: New file.
18090         * tests/test-trunc.c: New file.
18091
18092         * modules/trunc: New file.
18093         * lib/trunc.c: New file.
18094         * m4/trunc.m4: New file.
18095         * lib/math.in.h (trunc): New declaration.
18096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
18097         HAVE_DECL_TRUNC.
18098         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
18099         HAVE_DECL_TRUNC.
18100         * doc/functions/trunc.texi: Mention the 'trunc' module.
18101
18102 2007-10-03  Bruno Haible  <bruno@clisp.org>
18103
18104         * tests/test-fpending.c: New file, mostly copied
18105         from coreutils/lib/t-fpending.c.
18106         * modules/fpending-tests: New file.
18107
18108 2007-10-03  Bruno Haible  <bruno@clisp.org>
18109
18110         Port the stdio extensions to QNX (untested).
18111         * lib/fseterr.c (fseterr): Add support for QNX.
18112         * lib/fbufmode.c (fbufmode): Likewise.
18113         * lib/freadable.c (freadable): Likewise.
18114         * lib/fwritable.c (fwritable): Likewise.
18115         * lib/freading.c (freading): Likewise.
18116         * lib/fwriting.c (fwriting): Likewise.
18117         * lib/freadahead.c (freadahed): Likewise.
18118         * lib/fpurge.c (fpurge): Likewise.
18119         * lib/fseeko.c (rpl_fseeko): Likewise.
18120
18121 2007-10-03  Bruno Haible  <bruno@clisp.org>
18122             Jim Meyering  <jim@meyering.net>
18123             Eric Blake  <ebb9@byu.net>
18124
18125         * doc/relocatable.texi: Use @command instead of @program.
18126
18127 2007-10-02  Jim Meyering  <jim@meyering.net>
18128
18129         Perform one more "_.h" -> ".in.h" substitution.
18130         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
18131         instead of unistd_.h here, too.
18132
18133 2007-10-01  Bruno Haible  <bruno@clisp.org>
18134
18135         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
18136         Needed for the alloca-opt module.
18137
18138 2007-09-30  Bruno Haible  <bruno@clisp.org>
18139
18140         * lib/alloca.in.h: Renamed from lib/alloca_.h.
18141         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
18142         alloca_.h.
18143         * lib/argz.in.h: Renamed from lib/argz_.h.
18144         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
18145         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
18146         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
18147         byteswap_.h.
18148         * lib/dirent.in.h: Renamed from lib/dirent_.h.
18149         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
18150         dirent_.h.
18151         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
18152         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
18153         fcntl_.h.
18154         * lib/float.in.h: Renamed from lib/float_.h.
18155         * modules/float (Files, Makefile.am): Use float.in.h instead of
18156         float_.h.
18157         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
18158         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
18159         fnmatch_.h.
18160         * lib/getopt.in.h: Renamed from lib/getopt_.h.
18161         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
18162         getopt_.h.
18163         * lib/glob.in.h: Renamed from lib/glob_.h.
18164         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
18165         * lib/iconv.in.h: Renamed from lib/iconv_.h.
18166         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
18167         iconv_.h.
18168         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
18169         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
18170         inttypes_.h.
18171         * lib/locale.in.h: Renamed from lib/locale_.h.
18172         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
18173         locale_.h.
18174         * lib/math.in.h: Renamed from lib/math_.h.
18175         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
18176         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
18177         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
18178         of netinet_in_.h. Add dependency.
18179         * lib/poll.in.h: Renamed from lib/poll_.h.
18180         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
18181         * lib/search.in.h: Renamed from lib/search_.h.
18182         * modules/search (Files, Makefile.am): Use search.in.h instead of
18183         search_.h.
18184         * lib/signal.in.h: Renamed from lib/signal_.h.
18185         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
18186         _signal.h.
18187         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
18188         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
18189         stdbool_.h.
18190         * lib/stdint.in.h: Renamed from lib/stdint_.h.
18191         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
18192         stdint_.h.
18193         * lib/stdio.in.h: Renamed from lib/stdio_.h.
18194         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
18195         stdio_.h.
18196         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
18197         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
18198         stdlib_.h.
18199         * lib/string.in.h: Renamed from lib/string_.h.
18200         * modules/string (Files, Makefile.am): Use string.in.h instead of
18201         string_.h.
18202         * doc/gnulib-tool.texi (Initial import): Update.
18203         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
18204         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
18205         of sys_select_.h. Add dependency.
18206         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
18207         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
18208         of sys_socket_.h.
18209         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
18210         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
18211         sys_stat_.h.
18212         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
18213         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
18214         sys_time_.h.
18215         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
18216         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
18217         sysexits_.h.
18218         * lib/time.in.h: Renamed from lib/time_.h.
18219         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
18220         * lib/unistd.in.h: Renamed from lib/unistd_.h.
18221         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
18222         unistd_.h.
18223         * lib/wchar.in.h: Renamed from lib/wchar_.h.
18224         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
18225         wchar_.h.
18226         * lib/wctype.in.h: Renamed from lib/wctype_.h.
18227         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
18228         wctype_.h.
18229         * build-aux/bootstrap (slurp): Update.
18230         * lib/.cppi-disable: Update.
18231
18232 2007-09-30  Bruno Haible  <bruno@clisp.org>
18233
18234         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
18235         Needed on BeOS.
18236
18237 2007-09-30  Bruno Haible  <bruno@clisp.org>
18238
18239         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
18240
18241 2007-09-29  Bruno Haible  <bruno@clisp.org>
18242
18243         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
18244
18245 2007-09-29  Bruno Haible  <bruno@clisp.org>
18246
18247         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
18248         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
18249         * build-aux/install-reloc: Compile also areadlink.c.
18250         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
18251
18252 2007-09-29  Bruno Haible  <bruno@clisp.org>
18253
18254         * gnulib-tool (func_emit_initmacro_done): Indentation.
18255
18256 2007-09-29  Bruno Haible  <bruno@clisp.org>
18257
18258         * README: Add CVS checkout update instructions.
18259         Info from Bob Proulx <bob@proulx.com>.
18260
18261 2007-09-28  Eric Blake  <ebb9@byu.net>
18262
18263         Provide move-if-change.
18264         * build-aux/move-if-change: New file, based on best practice
18265         rather than any canonical upstream location.
18266
18267 2007-09-28  Jim Meyering  <jim@meyering.net>
18268
18269         Fix canonicalize loop-detection corner case.
18270         Do not attempt to stat the symlink values stored via seen_triple.
18271         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
18272         on linux-2.6.18, (but not 2.6.22).
18273         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
18274         triple_compare.  The former compares dev,ino,filename, while the latter
18275         would actually stat dirname(filename) when dev and ino were equal.
18276         * lib/hash-triple.c: Install <string.h>.
18277         (STREQ): Define.
18278         (triple_compare_ino_str): New function.
18279         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
18280
18281 2007-09-28  Eric Blake  <ebb9@byu.net>
18282
18283         Enforce that AC_REPLACE_FUNCS files exist.
18284         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
18285         override check for typos.
18286
18287         Fix test-closein on Solaris 10.
18288         * tests/test-closein.c (main): Don't assume stdin can be inherited
18289         closed on all systems.
18290         * tests/test-closein.sh: Likewise.
18291         Reported by Piotr Tarnowski.
18292
18293 2007-09-28  Jim Meyering  <jim@meyering.net>
18294
18295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
18296
18297 2007-09-27  Jim Meyering  <jim@meyering.net>
18298
18299         canonicalize: Avoid a false-positive cycle failure.
18300         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
18301         Sort.  Remove cycle-check.
18302         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
18303         not cycle-check.h.
18304         (seen_triple): New function.
18305         (canonicalize_filename_mode): Use it instead of cycle-check.
18306         * tests/test-canonicalize.c: Add a test for this bug.
18307         * tests/test-canonicalize.sh: Set up and run the test.
18308
18309         New module, file-set, from coreutils.
18310         * modules/file-set: Define it.
18311         * lib/file-set.c, lib/file-set.h: Implement.
18312
18313         New module, hash-triple, from coreutils.
18314         * modules/hash-triple: Define it.
18315         * lib/hash-triple.c, lib/hash-triple.h: Implement.
18316
18317 2007-09-25  Eric Blake  <ebb9@byu.net>
18318
18319         Fix strerror on Interix.
18320         * lib/string_.h (strerror): Declare replacement.
18321         * doc/functions/strerror.texi (strerror): Document the Interix
18322         shortcoming.
18323         * modules/string (Makefile.am): Support new hooks.
18324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
18325         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
18326         gl_FUNC_STRERROR_SEPARATE.
18327         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
18328         * lib/strerror.c (rpl_strerror): Provide replacement.
18329         * modules/strerror (Depends-on): Add string.
18330         (configure.ac): Detect use of module.
18331         * tests/test-strerror.c: New file.
18332         * modules/strerror-tests: New test module.
18333         * modules/argp (Depends-on): Add strerror.
18334         * modules/error (Depends-on): Likewise.
18335         Reported by Martin Koeppe.
18336
18337 2007-09-24  Bruno Haible  <bruno@clisp.org>
18338
18339         * README: Update git instructions.
18340
18341 2007-09-24  Eric Blake  <ebb9@byu.net>
18342
18343         Revert fpending breakage from 2007-09-08.
18344         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
18345         __fpending.c.
18346
18347 2007-09-24  Jim Meyering  <jim@meyering.net>
18348
18349         filenamecat.c: Add a test.
18350         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
18351         showing how the function works when DIR is the empty string.
18352
18353 2007-09-21  Simon Josefsson  <simon@josefsson.org>
18354
18355         * tests/test-canonicalize.sh: Turn on executable bit.
18356
18357 2007-09-19  Eric Blake  <ebb9@byu.net>
18358
18359         * README: Update CVS instructions.
18360
18361 2007-09-18  Bruno Haible  <bruno@clisp.org>
18362
18363         * modules/areadlink: New file.
18364         * lib/areadlink.h (areadlink): New declaration.
18365         * lib/areadlink.c: New file, based on lib/xreadlink.c.
18366
18367 2007-09-17  Jim Meyering  <jim@meyering.net>
18368
18369         * lib/savewd.c (ESTALE) [!defined]: Define.
18370         Reported to be required on Interix by Martin Koeppe.
18371
18372 2007-09-17  Bruno Haible  <bruno@clisp.org>
18373
18374         * gnulib-tool (func_version): Use $version.
18375
18376 2007-09-16  Bruno Haible  <bruno@clisp.org>
18377
18378         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
18379         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
18380         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
18381         Reported by Greg Schafer <gschafer@zip.com.au>.
18382
18383 2007-09-15  Bruno Haible  <bruno@clisp.org>
18384
18385         * gnulib-tool (sed): Try a little harder to make bash understand the
18386         alias.
18387         Reported by Bruce Korb <bruce.korb@gmail.com>.
18388
18389 2007-09-13  Eric Blake  <ebb9@byu.net>
18390
18391         * ChangeLog: Remove conflict markers.
18392
18393 2007-09-13  Simon Josefsson  <simon@josefsson.org>
18394
18395         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
18396         Reported by Bruno Haible <bruno@clisp.org>.
18397
18398 2007-09-12  Bruno Haible  <bruno@clisp.org>
18399
18400         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
18401         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
18402         is not defined.
18403
18404 2007-09-12  Eric Blake  <ebb9@byu.net>
18405
18406         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
18407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
18408         Autoconf definition.
18409         * modules/euidaccess (Depends-on): Add extensions, for
18410         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
18411         * modules/fnmatch (Depends-on): Likewise.
18412         * modules/getaddrinfo (Depends-on): Likewise.
18413         * modules/getdelim (Depends-on): Likewise.
18414         * modules/getline (Depends-on): Likewise.
18415         * modules/getsubopt (Depends-on): Likewise.
18416         * modules/gettext (Depends-on): Likewise.
18417         * modules/group-member (Depends-on): Likewise.
18418         * modules/mbchar (Depends-on): Likewise.
18419         * modules/memmem (Depends-on): Likewise.
18420         * modules/mempcpy (Depends-on): Likewise.
18421         * modules/memrchr (Depends-on): Likewise.
18422         * modules/pagealign_alloc (Depends-on): Likewise.
18423         * modules/readutmp (Depends-on): Likewise.
18424         * modules/stpcpy (Depends-on): Likewise.
18425         * modules/stpncpy (Depends-on): Likewise.
18426         * modules/strchrnul (Depends-on): Likewise.
18427         * modules/strndup (Depends-on): Likewise.
18428         * modules/strsep (Depends-on): Likewise.
18429         * modules/strverscmp (Depends-on): Likewise.
18430         * modules/vasprintf (Depends-on): Likewise.
18431         * modules/wcwidth (Depends-on): Likewise.
18432         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
18433         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
18434         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
18435         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
18436         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18437         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18438         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
18439         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18440         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
18441         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18443         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18445         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18446         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
18447         * m4/readutmp.m4 (gl_READUTMP): Likewise.
18448         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18449         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18450         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18451         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18454         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18455         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
18456         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
18457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18458         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
18459         so that lock.m4 can be used in gettext without extensions module.
18460
18461 2007-09-11  Bruno Haible  <bruno@clisp.org>
18462
18463         * m4/isc-posix.m4: Remove file.
18464         Suggested by Eric Blake.
18465
18466 2007-09-11  Eric Blake  <ebb9@byu.net>
18467
18468         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
18469
18470 2007-09-10  Bruno Haible  <bruno@clisp.org>
18471
18472         * posix-modules: Fix typo in error message.
18473         Reported by Matt <mkraai@beckman.com>.
18474
18475 2007-09-09  Bruno Haible  <bruno@clisp.org>
18476
18477         * doc/functions/getdelim.texi: Update list of platforms lacking the
18478         function.
18479         * doc/functions/getline.texi: Likewise.
18480
18481 2007-09-09  Jim Meyering  <jim@meyering.net>
18482
18483         * lib/hash.c (hash_initialize): Detect calloc failure.
18484         Reported by Bruno Haible.
18485
18486 2007-09-09  Bruno Haible  <bruno@clisp.org>
18487
18488         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
18489         malloc or realloc fails.
18490
18491 2007-09-09  Bruno Haible  <bruno@clisp.org>
18492
18493         * modules/getcwd (Depends-on): Add malloc-posix.
18494         * modules/glob (Depends-on): Likewise.
18495         * modules/putenv (Depends-on): Likewise.
18496         * modules/strdup (Depends-on): Likewise.
18497         * modules/getdelim (Depends-on): Add realloc-posix.
18498         * modules/read-file (Depends-on): Likewise.
18499
18500 2007-09-09  Bruno Haible  <bruno@clisp.org>
18501
18502         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
18503         (gl_FUNC_MALLOC_POSIX): Require it.
18504         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
18505         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
18506         * modules/realloc (Files): Add m4/malloc.m4.
18507         * modules/calloc (Files): Likewise.
18508
18509 2007-09-09  Bruno Haible  <bruno@clisp.org>
18510
18511         * modules/malloc-posix: New file.
18512         * modules/malloc (Depends-on): Add malloc-posix.
18513         * lib/malloc.c: Include errno.h.
18514         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
18515         and a POSIX-compatible malloc into a single function. Set ENOMEM
18516         when returning NULL.
18517         * m4/malloc.m4: New file.
18518         * doc/functions/malloc.texi: Mention the malloc-posix module.
18519         * lib/stdlib_.h (malloc): New declaration.
18520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18521         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
18522         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
18523         and HAVE_MALLOC_POSIX.
18524
18525 2007-09-09  Bruno Haible  <bruno@clisp.org>
18526
18527         * modules/realloc-posix: New file.
18528         * modules/realloc (Depends-on): Add realloc-posix.
18529         * lib/realloc.c: Include errno.h.
18530         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
18531         and a POSIX-compatible realloc into a single function. Set ENOMEM
18532         when returning NULL.
18533         * m4/realloc.m4: New file.
18534         * doc/functions/realloc.texi: Mention the realloc-posix module.
18535         * lib/stdlib_.h (realloc): New declaration.
18536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18537         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
18538         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
18539         and HAVE_REALLOC_POSIX.
18540
18541 2007-09-09  Bruno Haible  <bruno@clisp.org>
18542
18543         * modules/calloc-posix: New file.
18544         * modules/calloc (Depends-on): Add calloc-posix.
18545         * lib/calloc.c: Include errno.h.
18546         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
18547         and a POSIX-compatible calloc into a single function. Set ENOMEM
18548         when returning NULL.
18549         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
18550         * doc/functions/calloc.texi: Mention the calloc-posix module.
18551         * lib/stdlib_.h (calloc): New declaration.
18552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18553         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
18554         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
18555         and HAVE_CALLOC_POSIX.
18556
18557 2007-09-09  Bruno Haible  <bruno@clisp.org>
18558
18559         Allow for modules to show an arbitrary notice.
18560         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
18561         * gnulib-tool: New option --extract-notice.
18562         (func_usage): Document it.
18563         (sed_extract_prog): Update.
18564         (func_get_notice): New function.
18565         (func_modules_notice): New function.
18566         (func_import, func_create_testdir): Invoke it.
18567         Suggested by Jim Meyering.
18568
18569 2007-09-09  Bruno Haible  <bruno@clisp.org>
18570
18571         * gnulib-tool: New options --verbose, --quiet.
18572         (func_usage): Document them.
18573         (verbose): New variable.
18574         (func_execute_command): New function.
18575         (func_import): Don't show the module list and the file list if
18576         $verbose < 0.
18577         (func_create_testdir): Likewise. Use func_execute_command.
18578         (func_create_megatestdir): Use func_execute_command.
18579
18580 2007-09-08  Bruno Haible  <bruno@clisp.org>
18581
18582         * gnulib-tool (func_import): Prefer rsync over wget when available,
18583         for fetching the PO files.
18584
18585 2007-09-08  Bruno Haible  <bruno@clisp.org>
18586
18587         * posix-modules: New file. Portions copied from gnulib-tool.
18588         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
18589
18590 2007-09-08  Jim Meyering  <jim@meyering.net>
18591
18592         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
18593         * lib/fpending.h: Rename from __fpending.h.
18594         * lib/fpending.c: Rename from __fpending.c.
18595         Include "fpending.h", not "__fpending.h".
18596         * lib/__fpending.h, lib/__fpending.c: Remove files.
18597         * modules/fpending (Files): Reflect new file names.
18598         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
18599
18600 2007-09-08  Bruno Haible  <bruno@clisp.org>
18601
18602         * m4/inttypes-h.m4: Remove stub file.
18603
18604 2007-09-07  Simon Josefsson  <simon@josefsson.org>
18605
18606         * doc/headers/stdint.texi: Discuss #include_next issue.
18607
18608 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18609
18610         * build-aux/bootstrap: Remove obsolete comment about wget --help.
18611
18612 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18613
18614         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
18615         in variable name.
18616
18617 2007-09-03  Jim Meyering  <jim@meyering.net>
18618
18619         New module: git-version-gen.
18620         * modules/git-version-gen: New file.
18621
18622         Import changes from coreutils for bootstrap script.
18623
18624         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
18625
18626         bootstrap: uses rsync to download the .po files
18627         * build-aux/bootstrap (po_download_command_format): New global.
18628         (download_po_files): Use rsync.
18629         (update_po_files): Don't remove .po files after download,
18630         so future rsync runs can take advantage of the copies.
18631
18632         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
18633
18634         Solve the unnecessary-.po-file-regeneration problem once and for all.
18635         * build-aux/bootstrap (download_po_files): New function, renamed from
18636         get_translations.  Now, downloads, but doesn't update LINGUAS.
18637         (update_po_files): New function.
18638
18639         bootstrap: Ignore more.
18640         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
18641         uniwidth to e.g., lib/.gitignore.
18642         (slurp): Handle the sys_stat_.h -> sys mapping, too.
18643
18644         * build-aux/bootstrap: New setting: vc_ignore.
18645         (insert_sorted_if_absent): Create $file if absent.
18646         Adapt to new, possibly empty, list: $vc_ignore.
18647
18648         bootstrap: generate more ignorable names
18649         * build-aux/bootstrap (slurp): When generating ignorable names,
18650         also map .sin to .sed, .gperf to .c, and .y to .c.
18651
18652 2007-09-03  Jim Meyering  <jim@meyering.net>
18653
18654         * build-aux/git-version-gen: New file, from coreutils.  For details, see
18655         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
18656
18657 2007-09-02  Bruno Haible  <bruno@clisp.org>
18658
18659         Fix mis-recognition of 'mcs' on QNX 6.
18660         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
18661         output contains the string "Mono".
18662         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
18663         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
18664
18665 2007-09-01  Bruno Haible  <bruno@clisp.org>
18666
18667         Fix collision between uniwidth/* and linebreak modules.
18668         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
18669         u32_width): Remove declarations.
18670         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
18671         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
18672         streq3, streq2, streq1, streq0): Remove functions.
18673         (STREQ): Remove macro.
18674         (is_cjk_encoding): Remove function.
18675         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
18676         (uc_width, u8_width, u16_width, u32_width): Remove functions.
18677         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
18678         * NEWS: Document the change.
18679
18680 2007-09-01  Bruno Haible  <bruno@clisp.org>
18681
18682         * lib/streq.h: Add double-inclusion guard.
18683
18684 2007-09-01  Karl Berry  <karl@gnu.org>
18685
18686         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
18687
18688 2007-08-28  Jim Meyering  <jim@meyering.net>
18689
18690         Rename mreadlink_with_size to areadlink_with_size.
18691         * NEWS: Document the change.
18692         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
18693         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
18694         * lib/mreadlink.h: Rename this to...
18695         * lib/areadlink.h: ...this.
18696         * modules/mreadlink-with-size: Rename this to...
18697         * modules/areadlink-with-size: ...this.
18698         * lib/canonicalize.c: Reflect the renaming.
18699         * modules/canonicalize: Likewise.
18700
18701 2007-08-26  Bruno Haible  <bruno@clisp.org>
18702
18703         * gnulib-tool (func_import): When deciding which files to remove,
18704         consider also dangling symbolic links.
18705         Reported by Eric Blake.
18706
18707 2007-08-26  Bruno Haible  <bruno@clisp.org>
18708
18709         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
18710
18711 2007-08-23  Simon Josefsson  <simon@josefsson.org>
18712
18713         * lib/readline.c: Don't include getline.h, the prototype is now
18714         found in stdio.h.
18715
18716 2007-08-23  Jim Meyering  <jim@meyering.net>
18717
18718         Getdelim touchup.
18719         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
18720         around the funlockfile call, since funlockfile never sets errno.
18721         Don't set errno upon failed realloc.
18722
18723 2007-08-22  Eric Blake  <ebb9@byu.net>
18724
18725         Getline touchups.
18726         * lib/getdelim.c (getdelim): Revert regression that required *n to
18727         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
18728         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
18729         getdelim, rather than whether implementation is missing.
18730         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
18731         * lib/stdio_.h (getline): Also declare if replacement is
18732         required.
18733         * doc/functions/getdelim.texi: New file.
18734         * doc/functions/getline.texi: Likewise.
18735         * doc/gnulib.texi (Function Substitutes): Add new files.
18736         Reported by Bruno Haible.
18737
18738 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
18739
18740         * users.txt: Add Guile.
18741
18742 2007-08-22  Eric Blake  <ebb9@byu.net>
18743
18744         * tests/test-getdelim.c (main): Use remove, not unlink.
18745         * tests/test-getline.c (main): Likewise.
18746
18747         Move getline and getdelim into stdio.h, per POSIX 200x.
18748         * modules/getline (Files): Remove getline.h.
18749         (Depends-on): Add stdio.
18750         (configure.ac): Add module indicator.
18751         * modules/getdelim (Files): Remove getdelim.h.
18752         (Depends-on): Add stdio.
18753         (configure.ac): Add module indicator.
18754         * modules/stdio (Makefile.am): Work with new indicators.
18755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18756         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
18757         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18758         * lib/getdelim.h: Delete.
18759         * lib/getline.h: Delete.
18760         * lib/stdio_.h (getdelim, getline): Declare.
18761         * modules/getdelim-tests: New module.
18762         * modules/getline-tests: Likewise.
18763         * tests/test-getdelim.c: New file.
18764         * tests/test-getline.c: Likewise.
18765         * NEWS: Document the change.
18766         * lib/getline.c: Update choice of header.
18767         * lib/csharpcomp.c: Likewise.
18768         * lib/getpass.c: Likewise.
18769         * lib/javacomp.c: Likewise.
18770         * lib/javaversion.c: Likewise.
18771         * lib/yesno.c: Likewise.
18772         * lib/getdelim.c: Likewise.
18773         (getdelim): Set errno on failure, and avoid memory leak.
18774
18775 2007-08-19  Bruno Haible  <bruno@clisp.org>
18776
18777         * modules/closein (Depends-on): Add freadahead.
18778         * lib/closein.c: Include freadahead.h.
18779         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
18780         is zero.
18781
18782 2007-08-19  Bruno Haible  <bruno@clisp.org>
18783
18784         * modules/freadahead-tests: New file.
18785         * tests/test-freadahead.sh: New file.
18786         * tests/test-freadahead.c: New file.
18787
18788         * modules/freadahead: New file.
18789         * lib/freadahead.h: New file.
18790         * lib/freadahead.c: New file.
18791         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18792         fbufmode, fpurge, freadable, fwritable.
18793
18794 2007-08-19  Eric Blake  <ebb9@byu.net>
18795
18796         Test yesno in combination with closein.
18797         * lib/yesno.c (yesno): Document use of stdin.
18798         * modules/yesno-tests (Files): New module.
18799         * tests/test-yesno.c (main): New file.
18800         * tests/test-yesno.sh: Likewise.
18801
18802 2007-08-19  Bruno Haible  <bruno@clisp.org>
18803
18804         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
18805         * lib/fseeko.c (rpl_fseeko): Likewise.
18806         * lib/fseterr.c (fseterr): Likewise.
18807
18808 2007-08-19  Bruno Haible  <bruno@clisp.org>
18809
18810         * tests/test-lseek.c (main): Disable a test for BeOS.
18811         * doc/functions/lseek.texi: Document the BeOS bug.
18812
18813 2007-08-19  Bruno Haible  <bruno@clisp.org>
18814             Eric Blake  <ebb9@byu.net>
18815
18816         * lib/lseek.c: Include <sys/stat.h>.
18817         (rpl_lseek): Add workaround code also for Unix platforms.
18818         Needed for BeOS.
18819         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
18820         * doc/functions/lseek.texi: Document BeOS definiency.
18821
18822 2007-08-18  Bruno Haible  <bruno@clisp.org>
18823
18824         * modules/fstrcmp-tests: New file.
18825         * tests/test-fstrcmp.c: New file.
18826
18827 2007-08-18  Bruno Haible  <bruno@clisp.org>
18828
18829         * modules/fstrcmp: New file, from GNU gettext with modifications.
18830         * lib/fstrcmp.h: New file, from GNU gettext.
18831         * lib/fstrcmp.c: New file, from GNU gettext.
18832         * MODULES.html.sh (String handling): Add fstrcmp.
18833
18834 2007-08-18  Bruno Haible  <bruno@clisp.org>
18835
18836         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
18837         'bool'.
18838         (diag, compareseq): Remove const from the ctxt argument.
18839         (USE_HEURISTIC): Undefine at the end.
18840
18841 2007-08-18  Jim Meyering  <jim@meyering.net>
18842
18843         New file: lib/idcache.h
18844         * NEWS: Mention the addition.
18845         * modules/idcache (Files): Add lib/idcache.h
18846         * lib/idcache.c: Include "idcache.h".
18847         Don't include <sys/types.h>.
18848         Add a FIXME comment.
18849         Move file-scoped "static" declarations to the top.
18850         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
18851
18852 2007-08-17  Bruno Haible  <bruno@clisp.org>
18853         and Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         * MODULES.html.sh: Add diffseq.
18856         * modules/diffseq: New file.
18857         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
18858         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
18859
18860 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18861
18862         Import changes from coreutils for bootstrap script.
18863
18864         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         * build-aux/bootstrap (slurp): Work even in environments where
18867         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
18868         current code does not slurp files whose names start with ".", and
18869         this looks like it might be a troublesome area.
18870
18871         2007-07-11  Jim Meyering  <jim@meyering.net>
18872
18873         If there's a GPL vN copyright comment, require that N == 3.
18874
18875         2007-07-08  Jim Meyering  <jim@meyering.net>
18876
18877         Run the coreutils-specific code only if tests/Makefile.am.in exists.
18878         * build-aux/bootstrap (mam_template): Move definition out of loop.
18879
18880         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
18881
18882         * build-aux/bootstrap (symlink_to_dir): Rename function from
18883         symlink_to_gnulib.  Add a directory parameter.  Update all
18884         callers.
18885         (cp_mark_as_generated): Also check for -- and link to -- files in
18886         gl/.
18887
18888         2007-07-08  Jim Meyering  <jim@meyering.net>
18889
18890         Adapt to deeper hierarchy in gnulib.
18891         * build-aux/bootstrap (symlink_to_dir): If the destination
18892         directory doesn't exist, create it. This is required at least for
18893         "lib/uniwidth/cjk.h".
18894
18895         2007-05-15  Jim Meyering  <jim@meyering.net>
18896
18897         * build-aux/bootstrap: Now that generated Makefile.am files
18898         are no longer under version control, they must be created at
18899         bootstrap time.
18900
18901 2007-08-14  Ben Pfaff  <blp@gnu.org>
18902
18903         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
18904
18905 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18906
18907         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
18908         given the changes below.
18909         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
18910         even on hosts that have padding bits beyond the supported 64.
18911
18912 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18913
18914         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
18915         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
18916         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
18917         depends on it.
18918         (xstrtol_error): Remove.
18919         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18920         but with a different signature.
18921         (ATTRIBUTE_NORETURN, __attribute__): New macros.
18922         * lib/xstrtol-error.c: Include exitfail.h.
18923         (xstrtol_fatal): New function, with a different signature from the
18924         old xstrtol_error, so that the caller need not worry about passing
18925         in an exit status, or about storage management of the option argument.
18926         (xstrtol_error): Now a static function.  Redo signature to
18927         implement xstrtol_fatal.  Output the correct number of hyphens in
18928         front of the option so that the caller need not worry about
18929         storage management.
18930         (N_): New macro.
18931         (_): Remove; not used now.
18932         * modules/xstrtol: Depend on getopt.
18933         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18934         of old STRTOL_FATAL_ERROR macro.
18935         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18936         of test program.
18937         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18938         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18939
18940 2007-08-08  Eric Blake  <ebb9@byu.net>
18941
18942         * lib/xstrtol-error.c: Add missing include.
18943
18944         Move xstrtol messages into gnulib domain, when --pobase is used.
18945         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18946         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18947         * modules/xstrtol (Files): Distribute new file.
18948         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18949         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18950         * tests/test-xstrtol.c: ...into new file.
18951         * tests/test-xstrtoul.c: Also test xstrtoul.
18952         * tests/test-xstrtoimax.c: Also test xstrtoimax.
18953         * tests/test-xstrtoumax.c: Also test xstrtoumax.
18954         * tests/test-xstrtol.sh: Drive the tests.
18955         * tests/test-xstrtoimax.sh: Likewise.
18956         * tests/test-xstrtoumax.sh: Likewise.
18957         * modules/xstrtol-tests: New module.
18958         * modules/xstrtoimax-tests: Likewise.
18959         * modules/xstrtoumax-tests: Likewise.
18960
18961 2007-08-08  Jim Meyering  <jim@meyering.net>
18962
18963         New function: mfile_name_concat.
18964         * lib/filenamecat.c (mfile_name_concat): New function, just like
18965         file_name_concat, but return NULL upon failure rather than exiting
18966         with a diagnostic.
18967         * lib/filenamecat.h: Declare it.
18968
18969 2007-08-07  Bruno Haible  <bruno@clisp.org>
18970
18971         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18972         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18973         warning from gcc.
18974         Reported by Eric Blake.
18975
18976 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18977
18978         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18979         * modules/crypto/arcfour (License): Likewise.
18980         * modules/crypto/des-tests (License): Likewise.
18981         * modules/crypto/gc-arctwo-tests (License): Likewise.
18982         * modules/crypto/gc-des-tests (License): Likewise.
18983         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18984         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18985         * modules/crypto/gc-md2-tests (License): Likewise.
18986         * modules/crypto/gc-md4-tests (License): Likewise.
18987         * modules/crypto/gc-md5-tests (License): Likewise.
18988         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18989         * modules/crypto/gc-rijndael-tests (License): Likewise.
18990         * modules/crypto/gc-sha1-tests (License): Likewise.
18991         * modules/crypto/gc-tests (License): Likewise.
18992         * modules/crypto/hmac-md5 (License): Likewise.
18993         * modules/crypto/hmac-sha1 (License): Likewise.
18994         * modules/crypto/md2-tests (License): Likewise.
18995         * modules/crypto/md4-tests (License): Likewise.
18996         * modules/crypto/md5 (License): Likewise.
18997         * modules/crypto/rijndael (License): Likewise.
18998         * modules/crypto/sha1 (License): Likewise.
18999         * modules/memxor (License): Likewise.
19000
19001 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19002         and Bruno Haible  <bruno@clisp.org>
19003
19004         * NEWS: Describe interface changes to human, xstrtol.
19005         * lib/human.h: Include <xstrtol.h>.
19006         (human_options): Return enum strtol_error, not int.  Remove
19007         bool arg; take int * instead.
19008         * lib/human.c: Don't include "gettext.h".
19009         (_): Remove; no longer used.
19010         Don't include <xstrtol.h>, since human.h does it.
19011         (human_options): Adjust to abovementioned interface changes.
19012         Do not report error to stderr; that's now the caller's
19013         responsibility.
19014         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
19015         interface change.
19016         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
19017         Str, Argument_type_string.  All uses changed.  Put " argument"
19018         in diagnostics to make them clearer.  Change wording of suffix
19019         message for clarity.
19020         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
19021         Argument_type_string.
19022         (STRTOL_FATAL_WARN): Remove; no longer used.
19023         * modules/human (Depends-on): Remove gettext-h.
19024
19025 2007-08-06  Simon Josefsson  <simon@josefsson.org>
19026
19027         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
19028
19029 2007-07-31  Bruno Haible  <bruno@clisp.org>
19030
19031         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
19032         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
19033         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
19034
19035 2007-07-31  Bruno Haible  <bruno@clisp.org>
19036
19037         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
19038         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
19039
19040 2007-07-30  Bruno Haible  <bruno@clisp.org>
19041
19042         * modules/base64 (License): Use the synonymous term "LGPLv2+".
19043         * modules/c-ctype (License): Likewise.
19044         * modules/c-strcase (License): Likewise.
19045         * modules/check-version (License): Likewise.
19046         * modules/iconv (License): Likewise.
19047         * modules/iconv_open (License): Likewise.
19048         * modules/read-file (License): Likewise.
19049         * modules/striconv (License): Likewise.
19050         * modules/strverscmp (License): Likewise.
19051         * modules/vasprintf (License): Likewise.
19052         * modules/crypto/des (License): Likewise.
19053         * modules/crypto/gc (License): Likewise.
19054         * modules/crypto/gc-arcfour (License): Likewise.
19055         * modules/crypto/gc-arctwo (License): Likewise.
19056         * modules/crypto/gc-des (License): Likewise.
19057         * modules/crypto/gc-hmac-md5 (License): Likewise.
19058         * modules/crypto/gc-hmac-sha1 (License): Likewise.
19059         * modules/crypto/gc-md2 (License): Likewise.
19060         * modules/crypto/gc-md4 (License): Likewise.
19061         * modules/crypto/gc-md5 (License): Likewise.
19062         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
19063         * modules/crypto/gc-random (License): Likewise.
19064         * modules/crypto/gc-rijndael (License): Likewise.
19065         * modules/crypto/gc-sha1 (License): Likewise.
19066         * modules/crypto/md2 (License): Likewise.
19067         * modules/crypto/md4 (License): Likewise.
19068
19069 2007-07-30  Jim Meyering  <jim@meyering.net>
19070
19071         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
19072         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
19073         it has valid stat data.  This bug would cause du not to count the
19074         sizes of inaccessible directories.
19075         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
19076         in <http://bugzilla.redhat.com/250077>.
19077
19078 2007-07-25  Peter O'Gorman  <peter@pogma.com>
19079             Bruno Haible  <bruno@clisp.org>
19080
19081         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
19082         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
19083         #include_next, gives a diagnostic about it, but reports no error in
19084         the exit code.
19085         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19086
19087 2007-07-24  Ben Pfaff  <blp@gnu.org>
19088
19089         Improve name: "count-one-bits" is better than "popcount".
19090         * MODULES.html.sh: Update name.
19091         * lib/popcount.h: Renamed lib/count-one-bits.h.
19092         (popcount): Renamed count_one_bits.
19093         (popcountl): Renamed count_one_bits_l.
19094         (popcountll): Renamed count_one_bits_ll.
19095         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
19096         * modules/popcount: Renamed module/count-one-bits.
19097         * modules/popcount-tests: Renamed module/count-one-bits-tests.
19098         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
19099
19100 2007-07-23  Ben Pfaff  <blp@gnu.org>
19101
19102         * lib/popcount.h (popcount32): Reduce size of constants, to allow
19103         better code generation, and add U to large constants to avoid
19104         warnings, in non-GCC case.
19105         Suggested by Bruno Haible.
19106
19107 2007-07-23  Ben Pfaff  <blp@gnu.org>
19108
19109         * lib/popcount.h: Use verify_true instead of if...abort.
19110         * modules/popcount: Depend on verify module.
19111         Suggested by Jim Meyering.
19112
19113 2007-07-23  Bruno Haible  <bruno@clisp.org>
19114
19115         * gnulib-tool (func_import): Create a .cvsignore file also when the
19116         directory is not yet in CVS but the toplevel directory is. When
19117         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
19118         Reported by Karl Berry.
19119
19120 2007-07-22  Ben Pfaff  <blp@gnu.org>
19121
19122         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
19123         case.
19124         Suggested by Eric Blake.
19125
19126 2007-07-22  Ben Pfaff  <blp@gnu.org>
19127
19128         New module: popcount.
19129         * MODULES.html.sh: Add popcount.
19130         * modules/popcount: New file.
19131         * modules/popcount-tests: New file.
19132         * tests/test-popcount.c: New file.
19133         * lib/popcount.h: New file.
19134         * m4/popcount.m4: New file.
19135
19136 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19137
19138         * build-aux/announce-gen: Update to GPLv3.
19139
19140         * build-aux/config.guess: Update from config.
19141
19142 2007-07-21  Bruno Haible  <bruno@clisp.org>
19143
19144         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
19145         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
19146
19147 2007-07-20  Jim Meyering  <jim@meyering.net>
19148
19149         * check-module: Diagnose a self-dependency.
19150
19151 2007-07-19  Bruno Haible  <bruno@clisp.org>
19152
19153         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
19154         empty.
19155         Reported by Eric Blake.
19156
19157 2007-07-18  Bruno Haible  <bruno@clisp.org>
19158
19159         * gnulib-tool: New options --po-base, --po-domain.
19160         (func_usage): Document them.
19161         (pobase, po_domain): New variables.
19162         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
19163         DEFAULT_TEXT_DOMAIN.
19164         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
19165         (func_import): Consider pobase and po_domain. Create a po/ directory.
19166         (func_create_testdir): Set pobase and po_domain to empty.
19167         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
19168         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
19169
19170 2007-07-18  Bruno Haible  <bruno@clisp.org>
19171
19172         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19173         EXTRA_DIST augmentation for files in build-aux/.
19174
19175 2007-07-16  Bruno Haible  <bruno@clisp.org>
19176
19177         * modules/lseek (License): Use the synonymous term "LGPLv2+".
19178         * modules/getdelim (License): Likewise.
19179
19180 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19181
19182         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
19183         * modules/d-type (License): Likewise.
19184         * modules/extensions (License): Likewise.
19185         * modules/fnmatch (License): Likewise.
19186         * modules/fseeko (License): Likewise.
19187         * modules/getaddrinfo (License): Likewise.
19188         * modules/getline (License): Likewise.
19189         * modules/getlogin_r (License): Likewise.
19190         * modules/getpass (License): Likewise.
19191         * modules/gettimeofday (License): Likewise.
19192         * modules/glob (License): Likewise.
19193         * modules/inet_ntop (License): Likewise.
19194         * modules/malloc (License): Likewise.
19195         * modules/malloca (License): Likewise.
19196         * modules/memmem (License): Likewise.
19197         * modules/mempcpy (License): Likewise.
19198         * modules/memset (License): Likewise.
19199         * modules/minmax (License): Likewise.
19200         * modules/mktime (License): Likewise.
19201         * modules/netinet_in (License): Likewise.
19202         * modules/pathmax (License): Likewise.
19203         * modules/poll (License): Likewise.
19204         * modules/regex (License): Likewise.
19205         * modules/snprintf (License): Likewise.
19206         * modules/stdbool (License): Likewise.
19207         * modules/stdint (License): Likewise.
19208         * modules/stdio (License): Likewise.
19209         * modules/strcase (License): Likewise.
19210         * modules/strcasestr (License): Likewise.
19211         * modules/strdup (License): Likewise.
19212         * modules/string (License): Likewise.
19213         * modules/strndup (License): Likewise.
19214         * modules/strnlen (License): Likewise.
19215         * modules/strpbrk (License): Likewise.
19216         * modules/strptime (License): Likewise.
19217         * modules/strsep (License): Likewise.
19218         * modules/sys_select (License): Likewise.
19219         * modules/sys_socket (License): Likewise.
19220         * modules/sys_stat (License): Likewise.
19221         * modules/sys_time (License): Likewise.
19222         * modules/time (License): Likewise.
19223         * modules/time_r (License): Likewise.
19224         * modules/timegm (License): Likewise.
19225         * modules/unistd (License): Likewise.
19226         * modules/vsnprintf (License): Likewise.
19227         * modules/wctype (License): Likewise.
19228
19229 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19230
19231         * modules/argz (License): LGPLv2+.
19232
19233 2007-07-15  Karl Berry  <karl@gnu.org>
19234
19235         * doc/gnulib.texi: revise node structure per new fdl.texi.
19236
19237 2007-07-14  Bruno Haible  <bruno@clisp.org>
19238
19239         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
19240         the output file.
19241         * lib/uniname/uninames.h: Regenerated.
19242
19243 2007-07-14  Karl Berry  <karl@gnu.org>
19244
19245         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
19246         omitting sectioning and index commands.
19247
19248 2007-07-13  Bruno Haible  <bruno@clisp.org>
19249
19250         New gnulib-tool option --more-symlinks.
19251         * gnulib-tool (func_usage): Document --more-symlinks.
19252         (do_copyrights): New variable.
19253         Recognize option --more-symlinks.
19254         (func_import): Don't add a copyright notice transform to
19255         sed_transform_lib_file if do_copyrights is empty.
19256
19257 2007-07-13  Bruno Haible  <bruno@clisp.org>
19258
19259         * lib/vasnprintf.c (decimal_point_char): Define also if
19260         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
19261         && !NEED_PRINTF_DIRECTIVE_A.
19262         Reported by Clemens Koller <clemens.koller@anagramm.de> via
19263         Gary V. Vaughan <gary@gnu.org>.
19264
19265 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19266
19267         * lib/inttypes_.h: Undo previous change, since it was fixed
19268         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
19269
19270 2007-07-13  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
19273         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
19274
19275 2007-07-13  Jim Meyering  <jim@meyering.net>
19276
19277         df: Don't fail for Tru64's "file-on-file mount".
19278         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
19279         so we fall through and use statfs instead.  Details here:
19280         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
19281         Reported by Albert Chin.
19282
19283 2007-07-13  Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
19286         * modules/configmake (License): Likewise.
19287         * modules/gettext (License): Likewise.
19288         * modules/gettext-h (License): Likewise.
19289         * modules/include_next (License): Likewise.
19290         * modules/link-warning (License): Likewise.
19291         * modules/localcharset (License): Likewise.
19292         * modules/localename (License): Likewise.
19293         * modules/lock (License): Likewise.
19294         * modules/relocatable-lib-lgpl (License): Likewise.
19295         * modules/size_max (License): Likewise.
19296         * modules/vasnprintf (License): Likewise.
19297         * modules/wchar (License): Likewise.
19298         * modules/xsize (License): Likewise.
19299
19300 2007-07-13  Bruno Haible  <bruno@clisp.org>
19301
19302         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
19303         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
19304
19305 2007-07-12  Bruno Haible  <bruno@clisp.org>
19306
19307         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
19308         in the modules files.
19309
19310 2007-07-11  Karl Berry  <karl@gnu.org>
19311
19312         * MODULES.html.sh (func_module): use
19313          sed -e '\|^'"${includefile}"'$|d'
19314          instead of /.../d, to avoid errors on $includefile's containing /.
19315
19316 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19317
19318         * gnulib-tool (func_import): Avoid duplication of --avoid
19319         statements
19320         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
19321         names to `_' in variable names.
19322
19323 2007-07-10  Eric Blake  <ebb9@byu.net>
19324
19325         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
19326         * NEWS: Document this change.
19327
19328 2007-07-08  Bruno Haible  <bruno@clisp.org>
19329
19330         Update to Unicode 5.0.
19331         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
19332         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
19333         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
19334         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
19335         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
19336         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
19337         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
19338         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
19339         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
19340         U+10A3F, U+1D242..U+1D244.
19341         (nonspacing_table_ind): Update.
19342         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
19343         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
19344
19345 2007-07-08  Bruno Haible  <bruno@clisp.org>
19346
19347         Update to Unicode 5.0.
19348         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
19349         code transform. Extend the name index field of unicode_name_to_code and
19350         unicode_code_to_name from 16 to 24 bits.
19351         * lib/uniname/uniname.c (unicode_character_name,
19352         unicode_name_character): Add the range 0x12xxx to the code transform.
19353         * lib/uniname/uninames.h: Regenerated.
19354         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
19355
19356 2007-07-07  Bruno Haible  <bruno@clisp.org>
19357
19358         * modules/wcwidth-tests: New file.
19359         * tests/test-wcwidth.c: New file.
19360
19361         Work around MacOS X wcwidth() bug.
19362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
19363         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
19364         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
19365         original wcwidth in non-UTF-8 locales.
19366         * modules/wcwidth (Depends-on): Add localcharset, streq,
19367         uniwidth/width.
19368         * doc/functions/wcwidth.texi: Update.
19369
19370 2007-07-07  Bruno Haible  <bruno@clisp.org>
19371
19372         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
19373         (wcwidth): New declaration.
19374         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
19375         macros.
19376         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
19377         here. Prepare for creating <wchar.h> unconditionally.
19378         * modules/wchar (Depends-on): Add link-warning.
19379         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
19380         REPLACE_WCWIDTH, and GL_LINK_WARNING.
19381         * lib/wcwidth.h: Remove file.
19382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
19383         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
19384         * modules/wcwidth (Files): Remove lib/wcwidth.h.
19385         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
19386         (Include): Replace wcwidth.h with <wchar.h>.
19387         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
19388         * lib/mbchar.h: Don't include wcwidth.h.
19389         * lib/mbswidth.c: Likewise.
19390         * NEWS: Mention the change.
19391
19392 2007-07-07  Bruno Haible  <bruno@clisp.org>
19393
19394         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
19395         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
19396         definition with an external declaration.
19397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
19398         defined as a function. Remove AC_C_INLINE requirement.
19399         * modules/wcwidth (Files): Add lib/wcwidth.c.
19400         (Makefile.am): Remove redundant statement.
19401
19402 2007-07-07  Bruno Haible  <bruno@clisp.org>
19403
19404         * MODULES.html.sh (Unicode string functions): Add the new modules.
19405
19406         * tests/uniwidth/test-u32-strwidth.c: New file.
19407         * modules/uniwidth/u32-strwidth-tests: New file.
19408
19409         * lib/uniwidth/u32-strwidth.c: New file.
19410         * modules/uniwidth/u32-strwidth: New file.
19411
19412         * tests/uniwidth/test-u16-strwidth.c: New file.
19413         * modules/uniwidth/u16-strwidth-tests: New file.
19414
19415         * lib/uniwidth/u16-strwidth.c: New file.
19416         * modules/uniwidth/u16-strwidth: New file.
19417
19418         * tests/uniwidth/test-u8-strwidth.c: New file.
19419         * modules/uniwidth/u8-strwidth-tests: New file.
19420
19421         * lib/uniwidth/u8-strwidth.c: New file.
19422         * modules/uniwidth/u8-strwidth: New file.
19423
19424         * tests/uniwidth/test-u32-width.c: New file.
19425         * modules/uniwidth/u32-width-tests: New file.
19426
19427         * lib/uniwidth/u32-width.c: New file.
19428         * modules/uniwidth/u32-width: New file.
19429
19430         * tests/uniwidth/test-u16-width.c: New file.
19431         * modules/uniwidth/u16-width-tests: New file.
19432
19433         * lib/uniwidth/u16-width.c: New file.
19434         * modules/uniwidth/u16-width: New file.
19435
19436         * tests/uniwidth/test-u8-width.c: New file.
19437         * modules/uniwidth/u8-width-tests: New file.
19438
19439         * lib/uniwidth/u8-width.c: New file.
19440         * modules/uniwidth/u8-width: New file.
19441
19442         * tests/uniwidth/test-uc_width.c: New file.
19443         * modules/uniwidth/width-tests: New file.
19444
19445         * lib/uniwidth/width.c: New file, from GNU libiconv.
19446         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
19447         * modules/uniwidth/width: New file.
19448
19449         * lib/uniwidth.h: New file, from GNU libiconv.
19450         * modules/uniwidth/base: New file.
19451
19452 2007-07-07  Bruno Haible  <bruno@clisp.org>
19453
19454         * lib/uniname.h: New file, from GNU gettext.
19455         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
19456         * lib/uniname/uninames.h: New file, from GNU gettext.
19457         * lib/uniname/uniname.c: New file, from GNU gettext.
19458         * tests/uniname/test-uninames.sh: New file.
19459         * tests/uniname/test-uninames.c: New file, from GNU gettext.
19460         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
19461         * modules/uniname/base: New file.
19462         * modules/uniname/uniname: New file.
19463         * modules/uniname/uniname-tests: New file.
19464         * MODULES.html.sh (Unicode string functions): Add the new modules.
19465
19466 2007-07-06  Bruno Haible  <bruno@clisp.org>
19467
19468         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
19469
19470 2007-07-06  Bruno Haible  <bruno@clisp.org>
19471
19472         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
19473         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
19474         includes <cygwin/sys_time.h> which includes <sys/select.h> which
19475         include <sys/time.h>.
19476         Reported by Eric Blake.
19477
19478 2007-07-06  Eric Blake  <ebb9@byu.net>
19479
19480         Fix testing canonicalize on cygwin.
19481         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19482         Revert patch from 2007-06-19.
19483         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
19484         canonicalize module is also in use.
19485         * tests/test-canonicalize.c: New file.
19486         * tests/test-canonicalize.sh: Likewise.
19487         * modules/canonicalize-tests: Likewise.
19488
19489 2007-07-06  Jim Meyering  <jim@meyering.net>
19490
19491         * lib/getugroups.c (getugroups): Detect getgrent failure.
19492         Adjust comment to reflect reality: this function may return -1.
19493
19494 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19495
19496         * build-aux/bootstrap (TP_URL,get_translations): Update to use
19497         the new TP address.
19498         (usage): Fix typo
19499         (gnulib_mk): New variable.
19500
19501 2007-07-05  Jim Meyering  <jim@meyering.net>
19502
19503         Don't let endgrent clobber errno, no matter how improbable.
19504         * lib/getugroups.c (getugroups): Save and restore errno around
19505         endgrent call.
19506
19507         Close the group DB even when failing with 2^31 or more members.
19508         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
19509
19510 2007-07-04  Jim Meyering  <jim@meyering.net>
19511
19512         * lib/getugroups.h: New file.
19513         * lib/getugroups.c: Include "getugroups.h".
19514         Remove uses of "register" keyword.
19515         Move local variable, "cp", down into scope where used.
19516         Give "username" parameter the "const" attribute.
19517         * modules/getugroups (Files): Add lib/getugroups.h
19518
19519 2007-07-04  Karl Berry  <karl@gnu.org>
19520
19521         * MODULES.html.sh (func_all_modules): Complete rename of
19522         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
19523
19524 2007-07-02  Bruno Haible  <bruno@clisp.org>
19525
19526         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
19527         mode, when inttypes.h comes from gnulib.
19528         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19529
19530 2007-07-02  Simon Josefsson  <simon@josefsson.org>
19531
19532         * NEWS: Mention lgpl module name change.
19533
19534         * modules/lgpl-2.1: Renamed from lgpl.
19535
19536         * NEWS: Mention gpl module name change.
19537
19538         * modules/gpl-3.0: New file, based on gpl-2.0.
19539
19540         * modules/gpl-2.0: Renamed from gpl.
19541
19542         * modules/gpl: Fix filename, doc/gpl.texi is now found at
19543         doc/gpl-2.0.texi.
19544
19545 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19546
19547         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
19548         #define __STDC_LIMIT_MACROS temporarily while including
19549         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
19550         Problem reported by Joel E. Denny in
19551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
19552
19553 2007-07-01  Bruno Haible  <bruno@clisp.org>
19554
19555         * lib/unistdio.h: New file.
19556         * lib/unistdio/u-asnprintf.h: New file.
19557         * lib/unistdio/u-asprintf.h: New file.
19558         * lib/unistdio/u-printf-args.c: New file.
19559         * lib/unistdio/u-printf-args.h: New file.
19560         * lib/unistdio/u-printf-parse.h: New file.
19561         * lib/unistdio/u-snprintf.h: New file.
19562         * lib/unistdio/u-sprintf.h: New file.
19563         * lib/unistdio/u-vasprintf.h: New file.
19564         * lib/unistdio/u-vsnprintf.h: New file.
19565         * lib/unistdio/u-vsprintf.h: New file.
19566         * lib/unistdio/ulc-asnprintf.c: New file.
19567         * lib/unistdio/ulc-asprintf.c: New file.
19568         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
19569         * lib/unistdio/ulc-printf-parse.c: New file.
19570         * lib/unistdio/ulc-snprintf.c: New file.
19571         * lib/unistdio/ulc-sprintf.c: New file.
19572         * lib/unistdio/ulc-vasnprintf.c: New file.
19573         * lib/unistdio/ulc-vasprintf.c: New file.
19574         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
19575         * lib/unistdio/ulc-vsnprintf.c: New file.
19576         * lib/unistdio/ulc-vsprintf.c: New file.
19577         * lib/unistdio/u8-asnprintf.c: New file.
19578         * lib/unistdio/u8-asprintf.c: New file.
19579         * lib/unistdio/u8-printf-parse.c: New file.
19580         * lib/unistdio/u8-snprintf.c: New file.
19581         * lib/unistdio/u8-sprintf.c: New file.
19582         * lib/unistdio/u8-vasnprintf.c: New file.
19583         * lib/unistdio/u8-vasprintf.c: New file.
19584         * lib/unistdio/u8-vsnprintf.c: New file.
19585         * lib/unistdio/u8-vsprintf.c: New file.
19586         * lib/unistdio/u8-u8-asnprintf.c: New file.
19587         * lib/unistdio/u8-u8-asprintf.c: New file.
19588         * lib/unistdio/u8-u8-snprintf.c: New file.
19589         * lib/unistdio/u8-u8-sprintf.c: New file.
19590         * lib/unistdio/u8-u8-vasnprintf.c: New file.
19591         * lib/unistdio/u8-u8-vasprintf.c: New file.
19592         * lib/unistdio/u8-u8-vsnprintf.c: New file.
19593         * lib/unistdio/u8-u8-vsprintf.c: New file.
19594         * lib/unistdio/u16-asnprintf.c: New file.
19595         * lib/unistdio/u16-asprintf.c: New file.
19596         * lib/unistdio/u16-printf-parse.c: New file.
19597         * lib/unistdio/u16-snprintf.c: New file.
19598         * lib/unistdio/u16-sprintf.c: New file.
19599         * lib/unistdio/u16-vasnprintf.c: New file.
19600         * lib/unistdio/u16-vasprintf.c: New file.
19601         * lib/unistdio/u16-vsnprintf.c: New file.
19602         * lib/unistdio/u16-vsprintf.c: New file.
19603         * lib/unistdio/u16-u16-asnprintf.c: New file.
19604         * lib/unistdio/u16-u16-asprintf.c: New file.
19605         * lib/unistdio/u16-u16-snprintf.c: New file.
19606         * lib/unistdio/u16-u16-sprintf.c: New file.
19607         * lib/unistdio/u16-u16-vasnprintf.c: New file.
19608         * lib/unistdio/u16-u16-vasprintf.c: New file.
19609         * lib/unistdio/u16-u16-vsnprintf.c: New file.
19610         * lib/unistdio/u16-u16-vsprintf.c: New file.
19611         * lib/unistdio/u32-asnprintf.c: New file.
19612         * lib/unistdio/u32-asprintf.c: New file.
19613         * lib/unistdio/u32-printf-parse.c: New file.
19614         * lib/unistdio/u32-snprintf.c: New file.
19615         * lib/unistdio/u32-sprintf.c: New file.
19616         * lib/unistdio/u32-vasnprintf.c: New file.
19617         * lib/unistdio/u32-vasprintf.c: New file.
19618         * lib/unistdio/u32-vsnprintf.c: New file.
19619         * lib/unistdio/u32-vsprintf.c: New file.
19620         * lib/unistdio/u32-u32-asnprintf.c: New file.
19621         * lib/unistdio/u32-u32-asprintf.c: New file.
19622         * lib/unistdio/u32-u32-snprintf.c: New file.
19623         * lib/unistdio/u32-u32-sprintf.c: New file.
19624         * lib/unistdio/u32-u32-vasnprintf.c: New file.
19625         * lib/unistdio/u32-u32-vasprintf.c: New file.
19626         * lib/unistdio/u32-u32-vsnprintf.c: New file.
19627         * lib/unistdio/u32-u32-vsprintf.c: New file.
19628         * tests/unistdio/test-ulc-asnprintf1.c: New file.
19629         * tests/unistdio/test-ulc-asnprintf1.h: New file.
19630         * tests/unistdio/test-ulc-printf1.h: New file.
19631         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
19632         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
19633         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
19634         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
19635         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
19636         * tests/unistdio/test-ulc-vasprintf1.c: New file.
19637         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
19638         * tests/unistdio/test-ulc-vsprintf1.c: New file.
19639         * tests/unistdio/test-u8-asnprintf1.c: New file.
19640         * tests/unistdio/test-u8-asnprintf1.h: New file.
19641         * tests/unistdio/test-u8-printf1.h: New file.
19642         * tests/unistdio/test-u8-vasnprintf1.c: New file.
19643         * tests/unistdio/test-u8-vasnprintf2.c: New file.
19644         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
19645         * tests/unistdio/test-u8-vasnprintf3.c: New file.
19646         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
19647         * tests/unistdio/test-u8-vasprintf1.c: New file.
19648         * tests/unistdio/test-u8-vsnprintf1.c: New file.
19649         * tests/unistdio/test-u8-vsprintf1.c: New file.
19650         * tests/unistdio/test-u16-asnprintf1.c: New file.
19651         * tests/unistdio/test-u16-asnprintf1.h: New file.
19652         * tests/unistdio/test-u16-printf1.h: New file.
19653         * tests/unistdio/test-u16-vasnprintf1.c: New file.
19654         * tests/unistdio/test-u16-vasnprintf2.c: New file.
19655         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
19656         * tests/unistdio/test-u16-vasnprintf3.c: New file.
19657         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
19658         * tests/unistdio/test-u16-vasprintf1.c: New file.
19659         * tests/unistdio/test-u16-vsnprintf1.c: New file.
19660         * tests/unistdio/test-u16-vsprintf1.c: New file.
19661         * tests/unistdio/test-u32-asnprintf1.c: New file.
19662         * tests/unistdio/test-u32-asnprintf1.h: New file.
19663         * tests/unistdio/test-u32-printf1.h: New file.
19664         * tests/unistdio/test-u32-vasnprintf1.c: New file.
19665         * tests/unistdio/test-u32-vasnprintf2.c: New file.
19666         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
19667         * tests/unistdio/test-u32-vasnprintf3.c: New file.
19668         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
19669         * tests/unistdio/test-u32-vasprintf1.c: New file.
19670         * tests/unistdio/test-u32-vsnprintf1.c: New file.
19671         * tests/unistdio/test-u32-vsprintf1.c: New file.
19672         * modules/unistdio/base: New file.
19673         * modules/unistdio/u-printf-args: New file.
19674         * modules/unistdio/ulc-asnprintf: New file.
19675         * modules/unistdio/ulc-asprintf: New file.
19676         * modules/unistdio/ulc-fprintf: New file.
19677         * modules/unistdio/ulc-printf-parse: New file.
19678         * modules/unistdio/ulc-snprintf: New file.
19679         * modules/unistdio/ulc-sprintf: New file.
19680         * modules/unistdio/ulc-vasnprintf: New file.
19681         * modules/unistdio/ulc-vasprintf: New file.
19682         * modules/unistdio/ulc-vfprintf: New file.
19683         * modules/unistdio/ulc-vsnprintf: New file.
19684         * modules/unistdio/ulc-vsprintf: New file.
19685         * modules/unistdio/u8-asnprintf: New file.
19686         * modules/unistdio/u8-asprintf: New file.
19687         * modules/unistdio/u8-printf-parse: New file.
19688         * modules/unistdio/u8-snprintf: New file.
19689         * modules/unistdio/u8-sprintf: New file.
19690         * modules/unistdio/u8-vasnprintf: New file.
19691         * modules/unistdio/u8-vasprintf: New file.
19692         * modules/unistdio/u8-vsnprintf: New file.
19693         * modules/unistdio/u8-vsprintf: New file.
19694         * modules/unistdio/u8-u8-asnprintf: New file.
19695         * modules/unistdio/u8-u8-asprintf: New file.
19696         * modules/unistdio/u8-u8-snprintf: New file.
19697         * modules/unistdio/u8-u8-sprintf: New file.
19698         * modules/unistdio/u8-u8-vasnprintf: New file.
19699         * modules/unistdio/u8-u8-vasprintf: New file.
19700         * modules/unistdio/u8-u8-vsnprintf: New file.
19701         * modules/unistdio/u8-u8-vsprintf: New file.
19702         * modules/unistdio/u16-asnprintf: New file.
19703         * modules/unistdio/u16-asprintf: New file.
19704         * modules/unistdio/u16-printf-parse: New file.
19705         * modules/unistdio/u16-snprintf: New file.
19706         * modules/unistdio/u16-sprintf: New file.
19707         * modules/unistdio/u16-vasnprintf: New file.
19708         * modules/unistdio/u16-vasprintf: New file.
19709         * modules/unistdio/u16-vsnprintf: New file.
19710         * modules/unistdio/u16-vsprintf: New file.
19711         * modules/unistdio/u16-u16-asnprintf: New file.
19712         * modules/unistdio/u16-u16-asprintf: New file.
19713         * modules/unistdio/u16-u16-snprintf: New file.
19714         * modules/unistdio/u16-u16-sprintf: New file.
19715         * modules/unistdio/u16-u16-vasnprintf: New file.
19716         * modules/unistdio/u16-u16-vasprintf: New file.
19717         * modules/unistdio/u16-u16-vsnprintf: New file.
19718         * modules/unistdio/u16-u16-vsprintf: New file.
19719         * modules/unistdio/u32-asnprintf: New file.
19720         * modules/unistdio/u32-asprintf: New file.
19721         * modules/unistdio/u32-printf-parse: New file.
19722         * modules/unistdio/u32-snprintf: New file.
19723         * modules/unistdio/u32-sprintf: New file.
19724         * modules/unistdio/u32-vasnprintf: New file.
19725         * modules/unistdio/u32-vasprintf: New file.
19726         * modules/unistdio/u32-vsnprintf: New file.
19727         * modules/unistdio/u32-vsprintf: New file.
19728         * modules/unistdio/u32-u32-asnprintf: New file.
19729         * modules/unistdio/u32-u32-asprintf: New file.
19730         * modules/unistdio/u32-u32-snprintf: New file.
19731         * modules/unistdio/u32-u32-sprintf: New file.
19732         * modules/unistdio/u32-u32-vasnprintf: New file.
19733         * modules/unistdio/u32-u32-vasprintf: New file.
19734         * modules/unistdio/u32-u32-vsnprintf: New file.
19735         * modules/unistdio/u32-u32-vsprintf: New file.
19736         * modules/unistdio/ulc-asnprintf-tests: New file.
19737         * modules/unistdio/ulc-vasnprintf-tests: New file.
19738         * modules/unistdio/ulc-vasprintf-tests: New file.
19739         * modules/unistdio/ulc-vsnprintf-tests: New file.
19740         * modules/unistdio/ulc-vsprintf-tests: New file.
19741         * modules/unistdio/u8-asnprintf-tests: New file.
19742         * modules/unistdio/u8-vasnprintf-tests: New file.
19743         * modules/unistdio/u8-vasprintf-tests: New file.
19744         * modules/unistdio/u8-vsnprintf-tests: New file.
19745         * modules/unistdio/u8-vsprintf-tests: New file.
19746         * modules/unistdio/u16-asnprintf-tests: New file.
19747         * modules/unistdio/u16-vasnprintf-tests: New file.
19748         * modules/unistdio/u16-vasprintf-tests: New file.
19749         * modules/unistdio/u16-vsnprintf-tests: New file.
19750         * modules/unistdio/u16-vsprintf-tests: New file.
19751         * modules/unistdio/u32-asnprintf-tests: New file.
19752         * modules/unistdio/u32-vasnprintf-tests: New file.
19753         * modules/unistdio/u32-vasprintf-tests: New file.
19754         * modules/unistdio/u32-vsnprintf-tests: New file.
19755         * modules/unistdio/u32-vsprintf-tests: New file.
19756         * MODULES.html.sh (Unicode string functions): Add the new modules.
19757
19758 2007-07-01  Bruno Haible  <bruno@clisp.org>
19759
19760         * lib/sprintf.c (sprintf): Limit the available length estimation,
19761         to avoid address wraparound.
19762         * lib/vsprintf.c (vsprintf): Likewise.
19763         * modules/sprintf-posix (Dependencies): Add stdint.
19764         * modules/vsprintf-posix (Dependencies): Likewise.
19765
19766 2007-07-01  Bruno Haible  <bruno@clisp.org>
19767
19768         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
19769         Windows PATH as well. Conservative double-quoting. Comments.
19770
19771 2007-07-01  Bruno Haible  <bruno@clisp.org>
19772             Eric Blake  <ebb9@byu.net>
19773             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19774
19775         * gnulib-tool (self_abspathname): Fix algorithm to cope with
19776         empty components in $PATH, denoting '.'.
19777
19778 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19779
19780         * gnulib-tool: Fix indentation.
19781         (func_create_megatestdir): Likewise.
19782         Report by Bruno Haible.
19783
19784 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19785
19786         Sync from Automake.
19787         * build-aux/gnupload: Fix shell portability issues with for loops.
19788         Report by Karl Berry.
19789
19790 2007-06-29  Simon Josefsson  <simon@josefsson.org>
19791
19792         * build-aux/maint.mk (POURL): Use translationproject.org.
19793
19794 2007-06-27  Simon Josefsson  <simon@josefsson.org>
19795             Bruno Haible  <bruno@clisp.org>
19796
19797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
19798         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
19799         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
19800         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
19801         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
19802
19803 2007-06-27  Bruno Haible  <bruno@clisp.org>
19804
19805         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
19806         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
19807
19808 2007-06-26  Karl Berry  <karl@gnu.org>
19809
19810         * MODULES.html.sh: remove xreadlink-with-size.
19811
19812 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19813
19814         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
19815         method that I hope also handles the double-include problem noted
19816         by Bruno Haible in
19817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
19818
19819 2007-06-23  Bruno Haible  <bruno@clisp.org>
19820
19821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19822         Don't let the 'mostlyclean' target fail if the last subdirectory could
19823         not be removed.
19824         Reported by Karl Berry.
19825
19826 2007-06-23  Bruno Haible  <bruno@clisp.org>
19827
19828         * gnulib-tool (echo): Add a speedier workaround for ksh.
19829         * tests/test-echo.sh: Likewise.
19830
19831 2007-06-23  Bruno Haible  <bruno@clisp.org>
19832
19833         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
19834         * tests/test-echo.sh: Likewise.
19835
19836 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19837
19838         * gnulib-tool (IFS): Initialize early, so we don't set it to
19839         empty later.
19840         (self_abspathname): Rewrite algorithm to set it, reindent.
19841         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19842         (func_create_megatestdir): Merge some sed scripts.
19843
19844 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
19847         exposed by Sun Studio 11 cc on Solaris 8.
19848
19849 2007-06-22  Bruno Haible  <bruno@clisp.org>
19850
19851         * gnulib-tool (echo): Ensure the echo primitive does not interpret
19852         backslashes.
19853         * tests/test-echo.sh: New file.
19854
19855 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19856
19857         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
19858         simplify `sed_replace_build_aux' scripts, they are portable but
19859         echoing them with `echo' is not.
19860         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
19861
19862 2007-06-21  Karl Berry  <karl@gnu.org>
19863
19864         * config/srclist.txt: guess we can't handle the licenses via
19865         srclist at the moment.
19866
19867 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         * MODULES.html.sh: Add include_next.
19870         * modules/include_next: New file.
19871
19872 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19873
19874         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
19875         INCLUDE_NEXT.
19876         (gl_CHECK_NEXT_HEADERS): New macro.
19877         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
19878         the obsolescent gl_ABSOLUTE_HEADER.
19879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19880         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19881         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19882         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19883         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19884         * m4/math_h.m4 (gl_MATH_H): Likewise.
19885         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19886         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19887         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19888         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19889         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19890         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19893         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19896         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19897         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
19898         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19899         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19900         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19901         * m4/inttypes.m4 (gl_INTTYPES_H): Define
19902         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
19903         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
19904         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
19905         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
19906         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
19907         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
19908         * lib/float_.h: Likewise.
19909         * lib/inttypes_.h: Likewise.
19910         * lib/math_.h: Likewise.
19911         * lib/search_.h: Likewise.
19912         * lib/signal_.h: Likewise.
19913         * lib/stdint_.h: Likewise.
19914         * lib/stdio_.h: Likewise.
19915         * lib/stdlib_.h: Likewise.
19916         * lib/string_.h: Likewise.
19917         * lib/sys_stat_.h: Likewise.
19918         * lib/sys_time_.h: Likewise.
19919         * lib/time_.h: Likewise.
19920         * lib/unistd_.h: Likewise.
19921         * lib/wchar_.h: Likewise.
19922         * lib/wctype_.h: Likewise.
19923         * lib/dirent_.h: Likewise.
19924         * lib/iconv_.h: Likewise.
19925         * lib/locale_.h: Likewise.
19926         * lib/netinet_in_.h: Likewise.
19927         * lib/sys_select_.h: Likewise.
19928         * lib/sys_socket_.h: Likewise.
19929         * lib/sysexits_.h: Likewise.
19930         * modules/fcntl (Depends-on): Depend on include_next, not
19931         absolute_header.
19932         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19933         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19934         * modules/fchdir: Likewise.
19935         * modules/float: Likewise.
19936         * modules/iconv_open: Likewise.
19937         * modules/inttypes: Likewise.
19938         * modules/locale: Likewise.
19939         * modules/math: Likewise.
19940         * modules/netinet_in: Likewise.
19941         * modules/search: Likewise.
19942         * modules/signal: Likewise.
19943         * modules/stdint: Likewise.
19944         * modules/stdio: Likewise.
19945         * modules/stdlib: Likewise.
19946         * modules/string: Likewise.
19947         * modules/sys_select: Likewise.
19948         * modules/sys_socket: Likewise.
19949         * modules/sys_stat: Likewise.
19950         * modules/sys_time: Likewise.
19951         * modules/sysexits: Likewise.
19952         * modules/time: Likewise.
19953         * modules/unistd: Likewise.
19954         * modules/wchar: Likewise.
19955         * modules/wctype: Likewise.
19956         * modules/sys_stat: Change maintainer to "all".
19957         * modules/unistd: Likewise.
19958
19959 2007-06-20  Karl Berry  <karl@gnu.org>
19960
19961         * config/srclist.txt: track www changes in license files.
19962
19963 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
19964
19965         * build-aux/bootstrap: Remove stray dot.
19966         Make sure build_aux settings are honored when linking
19967         gnulib_extra_files.
19968
19969 2007-06-19  Eric Blake  <ebb9@byu.net>
19970
19971         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19972         Allow compilation on cygwin.
19973
19974 2007-06-19  Jim Meyering  <jim@meyering.net>
19975
19976         xreadlink-with-size: Remove module.  No longer used.
19977         Ex-callers now use xreadlink or mreadlink-with-size.
19978         * modules/xreadlink-with-size: Remove module.
19979         * lib/xreadlink-with-size.c: Remove file.
19980         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19981         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19982         just before the function definition *is* accurate.
19983
19984         Eliminate one way canonicalize_filename_mode could exit.
19985         * lib/canonicalize.c (canonicalize_filename_mode):
19986         Use mreadlink_with_size, not xreadlink_with_size.
19987
19988 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19989
19990         Detect porting problems to FreeBSD/arm, which has time_t wider than
19991         long int.  Original problem reported for GNU diff by Xin Li in
19992         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19993         * modules/getdate (Depends-on): Add intprops, verify.
19994         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19995         is an integer type no wider than long int.
19996
19997 2007-06-18  Jim Meyering  <jim@meyering.net>
19998
19999         New module: mreadlink-with-size.
20000         * MODULES.html.sh: Add mreadlink-with-size.
20001         * modules/mreadlink-with-size: New module
20002         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
20003         not xreadlink-with-size.
20004         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
20005
20006 2007-06-16  Bruno Haible  <bruno@clisp.org>
20007
20008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
20009         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
20010         Reported by Gary V. Vaughan <gary@gnu.org>.
20011
20012 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20013
20014         Revamp lchown so that it lives in unistd.h where it belongs.
20015         * lib/lchown.h: Remove.
20016         * lib/dirchownmod.c: Don't include lib/lchown.h.
20017         * lib/fchownat.c: Likewise.
20018         * lib/openat.c: Likewise.
20019         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
20020         does not follow symlinks.
20021         (EOPNOTSUPP): Define if not defined.
20022         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
20023         is defined to 0.
20024         (lchown): New decl.
20025         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
20026         Do not check for lchown decl.
20027         Set REPLACE_LCHOWN.
20028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
20029         REPLACE_LCHOWN.
20030         * modules/chown: Make it clear it follows symlinks.
20031         * modules/lchown: Make it clear it doesn't follow symlinks.
20032         (Files): Remove lib/lchown.h
20033         (Depends-on): Add unistd.
20034         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
20035         (Include): Include <unistd.h>, not "lchown.h".
20036         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
20037         REPLACE_LCHOWN.
20038
20039 2007-06-15  Jim Meyering  <jim@meyering.net>
20040
20041         Change license (GPL to LGPL) of fsusage and dependents.
20042         * modules/fsusage (License): Change to LGPL.
20043         * modules/full-read (License): Likewise.
20044         * modules/full-write (License): Likewise.
20045         * modules/safe-read (License): Likewise.
20046         * modules/safe-write (License): Likewise.
20047
20048 2007-06-14  Ben Pfaff  <blp@gnu.org>
20049
20050         Missing part of allocsa -> malloca transition.
20051         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
20052         gl_MALLOCA.
20053
20054 2007-06-12  Bruno Haible  <bruno@clisp.org>
20055
20056         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
20057         to ia64, x86_64, i386.
20058         Reported by Eric Blake.
20059
20060 2007-06-12  Bruno Haible  <bruno@clisp.org>
20061
20062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
20063         cross-compiling to x86_64.
20064
20065 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
20066
20067         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
20068         glitch reported by Ralf Wildenhues in
20069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
20070
20071         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
20072         Vin Shelton.
20073
20074 2007-06-11  Bruno Haible  <bruno@clisp.org>
20075
20076         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
20077         replacement string.
20078         Reported by Eric Blake.
20079
20080 2007-06-10  Bruno Haible  <bruno@clisp.org>
20081
20082         Prepare vasnprintf code for use with Unicode strings.
20083         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
20084         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
20085         TYPE_U32_STRING.
20086         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
20087         a_u32_string variants.
20088         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
20089         * lib/printf-args.c: Don't include config.h and the specification
20090         header if PRINTF_FETCHARGS is already defined.
20091         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
20092         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
20093         TYPE_U16_STRING, TYPE_U32_STRING.
20094         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
20095         u16_directive, u16_directives, u32_directive, u32_directives): New
20096         types.
20097         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
20098         New declarations.
20099         * lib/printf-parse.c: Don't include config.h and the specification
20100         header if PRINTF_PARSE is already defined. Eliminate the set of
20101         parameters for WIDE_CHAR_VERSION; the user of this file must provide
20102         them now. Include c-ctype.h.
20103         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
20104         directive and CHAR_T_ONLY_ASCII.
20105         * lib/vasnprintf.c: Don't include config.h and the specification header
20106         if VASNPRINTF is already defined.
20107         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
20108         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
20109         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
20110         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
20111         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
20112         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
20113         code accordingly.
20114         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
20115         pad_ourselves also in this case, with the 'c' and 's' directives, and
20116         with a different notion of "width".
20117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
20118
20119 2007-06-10  Bruno Haible  <bruno@clisp.org>
20120
20121         * modules/unistr/u32-mbsnlen: New file.
20122         * lib/unistr/u32-mbsnlen.c: New file.
20123
20124         * modules/unistr/u16-mbsnlen: New file.
20125         * lib/unistr/u16-mbsnlen.c: New file.
20126
20127         * modules/unistr/u8-mbsnlen: New file.
20128         * lib/unistr/u8-mbsnlen.c: New file.
20129
20130         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
20131         declarations.
20132
20133 2007-06-10  Bruno Haible  <bruno@clisp.org>
20134
20135         * lib/string_.h (mbsnlen): New declaration.
20136         * lib/mbsnlen.c: New file.
20137         * m4/mbsnlen.m4: New file.
20138         * modules/mbsnlen: New file.
20139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
20140         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
20141         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
20142
20143 2007-06-10  Bruno Haible  <bruno@clisp.org>
20144
20145         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
20146
20147 2007-06-10  Bruno Haible  <bruno@clisp.org>
20148
20149         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
20150         * lib/mbuiter.h: Likewise.
20151
20152 2007-06-10  Bruno Haible  <bruno@clisp.org>
20153
20154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
20155         declaration.
20156
20157 2007-06-10  Karl Berry  <karl@gnu.org>
20158
20159         * config/srclist.txt: remove gettext entries, Bruno prefers
20160         to update individually.
20161
20162 2007-06-10  Bruno Haible  <bruno@clisp.org>
20163
20164         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
20165         'maxlen'. Ensure only length + width bytes are allocated, not
20166         length + 1 + width.
20167
20168 2007-06-09  Bruno Haible  <bruno@clisp.org>
20169
20170         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
20171         (CHAR_T): Remove macro.
20172         (VASNPRINTF): Update.
20173
20174 2007-06-09  Bruno Haible  <bruno@clisp.org>
20175
20176         * MODULES.html.sh (Unicode string functions): Add the new modules.
20177
20178         * modules/uniconv/u32-conv-to-enc: New file.
20179         * lib/uniconv/u32-conv-to-enc.c: New file.
20180         * modules/uniconv/u32-conv-to-enc-tests: New file.
20181         * tests/uniconv/test-u32-conv-to-enc.c: New file.
20182
20183         * modules/uniconv/u16-conv-to-enc: New file.
20184         * lib/uniconv/u16-conv-to-enc.c: New file.
20185         * lib/uniconv/u-conv-to-enc.h: New file.
20186         * modules/uniconv/u16-conv-to-enc-tests: New file.
20187         * tests/uniconv/test-u16-conv-to-enc.c: New file.
20188
20189         * modules/uniconv/u8-conv-to-enc: New file.
20190         * lib/uniconv/u8-conv-to-enc.c: New file.
20191         * modules/uniconv/u8-conv-to-enc-tests: New file.
20192         * tests/uniconv/test-u8-conv-to-enc.c: New file.
20193
20194         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20195         u32_conv_to_encoding): New declarations.
20196
20197 2007-06-09  Bruno Haible  <bruno@clisp.org>
20198
20199         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
20200
20201 2007-06-09  Bruno Haible  <bruno@clisp.org>
20202
20203         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
20204         * modules/malloca: Renamed from modules/allocsa, updated.
20205         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
20206         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
20207         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
20208         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
20209         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
20210         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
20211         * modules/xmalloca: Renamed from modules/xallocsa, updated.
20212         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
20213         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
20214         * modules/c-strcasestr (Depends-on): Update.
20215         * lib/c-strcasestr.c: Update.
20216         * modules/c-strstr (Depends-on): Update.
20217         * lib/c-strstr.c: Update.
20218         * modules/canonicalize-lgpl (Depends-on): Update.
20219         * lib/canonicalize-lgpl.c: Update.
20220         * modules/clean-temp (Depends-on): Update.
20221         * lib/clean-temp.c: Update.
20222         * modules/csharpcomp (Depends-on): Update.
20223         * lib/csharpcomp.c: Update.
20224         * modules/csharpexec (Depends-on): Update.
20225         * lib/csharpexec.c: Update.
20226         * modules/javacomp (Depends-on): Update.
20227         * lib/javacomp.c: Update.
20228         * modules/javaexec (Depends-on): Update.
20229         * lib/javaexec.c: Update.
20230         * modules/mbscasestr (Depends-on): Update.
20231         * lib/mbscasestr.c: Update.
20232         * modules/mbsstr (Depends-on): Update.
20233         * lib/mbsstr.c: Update.
20234         * modules/setenv (Depends-on): Update.
20235         * lib/setenv.c: Update.
20236         * modules/strcasestr (Depends-on): Update.
20237         * lib/strcasestr.c: Update.
20238         * modules/striconveha (Depends-on): Update.
20239         * lib/striconveha.c: Update.
20240         * modules/relocatable-prog-wrapper (Files): Update.
20241         * lib/relocwrapper.c: Update.
20242         * build-aux/install-reloc: Update.
20243         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
20244
20245 2007-06-08  Bruno Haible  <bruno@clisp.org>
20246
20247         Port to uClibc.
20248         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
20249         * lib/fpurge.c (fpurge): Likewise.
20250         * lib/freading.c (freading): Likewise.
20251         * lib/fseeko.c (rpl_fseeko): Likewise.
20252         * lib/fseterr.c (fseterr): Likewise.
20253         * lib/fwriting.c (fwriting): Likewise.
20254         * tests/test-fflush.c (main): Avoid a failure on uClibc.
20255
20256 2007-06-08  Bruno Haible  <bruno@clisp.org>
20257
20258         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
20259         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
20260         * modules/gettext (Files): Add m4/intlmacosx.m4.
20261
20262 2007-06-07  Bruno Haible  <bruno@clisp.org>
20263
20264         * modules/localename-tests: New file.
20265         * tests/test-localename.c: New file.
20266
20267         New module 'localename'.
20268         * lib/localename.h: New file.
20269         * lib/localename.c: New file, from GNU gettext.
20270         * m4/localename.m4: New file.
20271         * modules/localename: New file.
20272
20273 2007-06-07  Bruno Haible  <bruno@clisp.org>
20274
20275         Work around the lack of <wchar.h> on some builds of uClibc.
20276         * doc/headers/wchar.texi: Update.
20277         * lib/wchar_.h: Include <wchar.h> only if it exists.
20278         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
20279         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
20280         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
20281         doesn't exist.
20282         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
20283         * modules/mbfile (Depends-on): Add wchar.
20284         * modules/mbiter (Depends-on): Likewise.
20285         * modules/mbuiter (Depends-on): Likewise.
20286         Reported by Simon Josefsson.
20287
20288 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
20289
20290         Work around problem reported by Steven M. Schweda in
20291         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
20292         Tru64 5.1B with the Compaq compiler environment installed declares
20293         an 'isblank' function but does not define it in the C library.
20294         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
20295         * lib/regex_internal.h (isblank): Likewise.
20296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
20297         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20298
20299 2007-06-05  Bruno Haible  <bruno@clisp.org>
20300
20301         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
20302         ia64.
20303         * modules/printf-safe: New file.
20304         * modules/fprintf-posix (Depends-on): Add printf-safe.
20305         * modules/printf-posix (Depends-on): Likewise.
20306         * modules/snprintf-posix (Depends-on): Likewise.
20307         * modules/sprintf-posix (Depends-on): Likewise.
20308         * modules/vasnprintf-posix (Depends-on): Likewise.
20309         * modules/vasprintf-posix (Depends-on): Likewise.
20310         * modules/vfprintf-posix (Depends-on): Likewise.
20311         * modules/vprintf-posix (Depends-on): Likewise.
20312         * modules/vsnprintf-posix (Depends-on): Likewise.
20313         * modules/vsprintf-posix (Depends-on): Likewise.
20314         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
20315         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
20316         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
20317         "no" on i386, x86_64, ia64.
20318         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
20319         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20320         on i386, x86_64, ia64.
20321         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
20322         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20323         on i386, x86_64, ia64.
20324         * tests/test-vasnprintf-posix.c: Include float.h.
20325         (LDBL80_WORDS): New macro.
20326         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20327         on i386, x86_64, ia64.
20328         * tests/test-vasprintf-posix.c: Include float.h.
20329         (LDBL80_WORDS): New macro.
20330         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
20331         on i386, x86_64, ia64.
20332         * tests/test-snprintf-posix.c: Include float.h.
20333         * tests/test-sprintf-posix.c: Likewise.
20334         * tests/test-vsnprintf-posix.c: Likewise.
20335         * tests/test-vsprintf-posix.c: Likewise.
20336
20337 2007-06-05  Bruno Haible  <bruno@clisp.org>
20338
20339         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
20340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
20341         non-IEEE numbers on i386, x86_64, ia64.
20342         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
20343         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
20344         * tests/test-isnanl.h: Include float.h.
20345         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
20346
20347 2007-06-05  Bruno Haible  <bruno@clisp.org>
20348
20349         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
20350         also the %a / %A. Handle the %a / %A code before this extra handling.
20351
20352 2007-06-05  Bruno Haible  <bruno@clisp.org>
20353
20354         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
20355         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
20356
20357 2007-06-05  Bruno Haible  <bruno@clisp.org>
20358
20359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
20360         typo in variable name.
20361
20362 2007-06-05  Eric Blake  <ebb9@byu.net>
20363
20364         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
20365         Reported by Simon Josefsson.
20366
20367 2007-06-04  Bruno Haible  <bruno@clisp.org>
20368
20369         Avoid test failures on some PowerPC platforms.
20370         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
20371         Define differently for PowerPC.
20372         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
20373         Reported by Gary V. Vaughan <gary@gnu.org>.
20374
20375 2007-06-02  Bruno Haible  <bruno@clisp.org>
20376
20377         Fix test-stdint failure on FreeBSD/ia64.
20378         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
20379         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
20380         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
20381         * doc/headers/stdint.texi: Update.
20382
20383 2007-06-01  Bruno Haible  <bruno@clisp.org>
20384
20385         * tests/test-binary-io.c (main): Pass a third argument to open().
20386         Reported by Gary V. Vaughan <gary@gnu.org>.
20387
20388 2007-06-01  Bruno Haible  <bruno@clisp.org>
20389
20390         * doc/functions/frexpl.texi: Update for mingw.
20391
20392 2007-06-01  Bruno Haible  <bruno@clisp.org>
20393
20394         * tests/test-lseek.c (main): Disable test of errno for invalid third
20395         argument.
20396         * doc/functions/lseek.texi: Update.
20397         Reported by Gary V. Vaughan <gary@gnu.org>.
20398
20399 2007-05-28  Bruno Haible  <bruno@clisp.org>
20400
20401         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
20402
20403 2007-05-31  Eric Blake  <ebb9@byu.net>
20404
20405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
20406         cross compiling.
20407
20408 2007-05-30  Eric Blake  <ebb9@byu.net>
20409         and Bruno Haible  <bruno@clisp.org>
20410
20411         Work around mingw test failures exposed by m4-1.4.9b.
20412         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
20413         * tests/test-unistd.c: Disable uid_t and git_t tests for the
20414         moment.
20415
20416 2007-05-30  Bruno Haible  <bruno@clisp.org>
20417
20418         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
20419         assuming that they are closed. Needed on HP-UX 11.
20420
20421 2007-05-29  Bruno Haible  <bruno@clisp.org>
20422
20423         Fix a problem with #include_next.
20424         * lib/dirent_.h: Split the double-inclusion guard.
20425         * lib/fcntl_.h: Likewise.
20426         * lib/float_.h: Likewise.
20427         * lib/iconv_.h: Likewise.
20428         * lib/inttypes_.h: Likewise.
20429         * lib/locale_.h: Likewise.
20430         * lib/math_.h: Likewise.
20431         * lib/netinet_in_.h: Likewise.
20432         * lib/search_.h: Likewise.
20433         * lib/signal_.h: Likewise.
20434         * lib/stdint_.h: Likewise.
20435         * lib/stdio_.h: Likewise.
20436         * lib/stdlib_.h: Likewise.
20437         * lib/string_.h: Likewise.
20438         * lib/sys_select_.h: Likewise.
20439         * lib/sys_socket_.h: Likewise.
20440         * lib/sys_stat_.h: Likewise.
20441         * lib/sys_time_.h: Likewise.
20442         * lib/sysexits_.h: Likewise.
20443         * lib/time_.h: Likewise.
20444         * lib/unistd_.h: Likewise.
20445         * lib/wchar_.h: Likewise.
20446         * lib/wctype_.h: Likewise.
20447
20448 2007-05-29  Bruno Haible  <bruno@clisp.org>
20449
20450         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
20451         for the moment.
20452
20453 2007-05-29  Bruno Haible  <bruno@clisp.org>
20454
20455         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
20456         invocation.
20457         Reported by Eric Blake.
20458
20459 2007-05-29  Bruno Haible  <bruno@clisp.org>
20460
20461         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
20462         compiling case.
20463
20464 2007-05-29  Eric Blake  <ebb9@byu.net>
20465             Bruno Haible  <bruno@clisp.org>
20466
20467         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
20468         cross compiles.
20469
20470 2007-05-28  Eric Blake  <ebb9@byu.net>
20471
20472         * modules/closein-tests (test_closein_LDADD): Support test on
20473         cygwin with libtool.
20474
20475 2007-05-28  Bruno Haible  <bruno@clisp.org>
20476
20477         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
20478         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20479         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20480         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20481         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20482         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20483         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20484         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20485         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20486
20487 2007-05-28  Eric Blake  <ebb9@byu.net>
20488
20489         Unconditionally include <config.h> in unit tests.
20490         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
20491         * tests/test-allocsa.c, tests/test-arcfour.c,
20492         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
20493         tests/test-array_list.c, tests/test-array_oset.c,
20494         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
20495         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
20496         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
20497         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
20498         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
20499         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
20500         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
20501         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
20502         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
20503         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
20504         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
20505         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
20506         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
20507         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
20508         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
20509         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
20510         test-md5.c, test-memmem.c, test-printf-posix.c,
20511         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
20512         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
20513         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
20514         test-strcasestr.c, test-striconv.c, test-striconveh.c,
20515         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
20516         test-vasnprintf-posix2.c, test-vasnprintf.c,
20517         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
20518         test-vfprintf-posix.c, test-vprintf-posix.c,
20519         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
20520         test-xvasprintf.c: Likewise.
20521
20522 2007-05-28  Bruno Haible  <bruno@clisp.org>
20523
20524         * gnulib-tool (func_import): Remember the --with-tests command-line
20525         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
20526         Reported by Eric Blake.
20527
20528 2007-05-28  Bruno Haible  <bruno@clisp.org>
20529
20530         * modules/ftell-tests: New file.
20531         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
20532         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
20533
20534         * lib/ftell.c: New file.
20535         * modules/ftell: New file.
20536         * m4/ftell.m4: New file.
20537         * doc/functions/ftell.texi: Update.
20538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
20539         REPLACE_FTELL.
20540         * lib/stdio_.h (rpl_ftell): New declaration.
20541         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
20542         REPLACE_FTELL.
20543
20544 2007-05-28  Eric Blake  <ebb9@byu.net>
20545
20546         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
20547
20548 2007-05-28  Bruno Haible  <bruno@clisp.org>
20549
20550         * modules/fseek-tests: New file.
20551         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
20552         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
20553
20554         * lib/fseek.c: New file.
20555         * modules/fseek: New file.
20556         * m4/fseek.m4: New file.
20557         * doc/functions/fseek.texi: Update.
20558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
20559         REPLACE_FSEEK.
20560         * lib/stdio_.h (rpl_fseek): New declaration.
20561         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
20562         REPLACE_FSEEK.
20563
20564 2007-05-28  Bruno Haible  <bruno@clisp.org>
20565
20566         * lib/stdio_.h (fflush): More comments.
20567
20568 2007-05-28  Bruno Haible  <bruno@clisp.org>
20569
20570         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
20571         runtime test.
20572
20573 2007-05-28  Eric Blake  <ebb9@byu.net>
20574
20575         Improve lseek module.
20576         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
20577         * lib/unistd_.h (lseek): Scale back link warning message.
20578         * tests/test-lseek.c: Beef up test.
20579         * tests/test-lseek.sh: Exercise more facets of lseek.
20580         Reported by Bruno Haible.
20581
20582 2007-05-28  Bruno Haible  <bruno@clisp.org>
20583
20584         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
20585         to define.
20586
20587 2007-05-27  Bruno Haible  <bruno@clisp.org>
20588
20589         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
20590
20591 2007-05-27  Bruno Haible  <bruno@clisp.org>
20592
20593         * modules/openmp: New file.
20594         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
20595         Noah Misch.
20596
20597 2007-05-26  Bruno Haible  <bruno@clisp.org>
20598
20599         * modules/chdir-long (Depends-on): Add fchdir.
20600         * modules/chdir-safer (Depends-on): Likewise.
20601         * modules/fts (Depends-on): Likewise.
20602         * modules/fts-lgpl (Depends-on): Likewise.
20603         * modules/openat (Depends-on): Likewise.
20604         * modules/savewd (Depends-on): Likewise.
20605
20606 2007-05-24  Eric Blake  <ebb9@byu.net>
20607
20608         Fix lseek on mingw.
20609         * modules/lseek: New module.
20610         * m4/lseek.m4: New file.
20611         * lib/lseek.c: New file.
20612         * modules/lseek-tests: New file.
20613         * tests/test-lseek.c: New file.
20614         * tests/test-lseek.sh: New file.
20615         * MODULES.html.sh: Document lseek module.
20616         * modules/fflush (Depends-on): Add lseek, fseeko.
20617         * modules/fseeko (Depends-on): Likewise.
20618         * modules/ftello (Depends-on): Likewise.
20619         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
20620         broken.
20621         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
20622         broken.
20623         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
20624         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
20625         * lib/ftello.c (rpl_ftello): Likewise.
20626         * tests/test-fseeko.c (main): Test this.
20627         * tests/test-fseeko.sh: Likewise.
20628         * tests/test-ftello.c (main): Likewise.
20629         * tests/test-ftello.sh: Likewise.
20630         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
20631         implies replacing fseek.
20632         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
20633         HAVE_FTELLO.
20634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
20635         * modules/unistd (Makefile.am): Likewise.
20636         * lib/unistd_.h (lseek): Declare a replacement.
20637         * doc/functions/lseek.texi (lseek): Document this fix.
20638         * doc/functions/fseek.texi (fseek): Likewise.
20639         * doc/functions/ftell.texi (ftell): Likewise.
20640
20641 2007-05-24  Bruno Haible  <bruno@clisp.org>
20642
20643         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
20644         in the printed representation of a NaN.
20645         * tests/test-vasprintf-posix.c (test_function): Likewise.
20646         * tests/test-snprintf-posix.h (test_function): Likewise.
20647         * tests/test-sprintf-posix.h (test_function): Likewise.
20648         Reported by Eric Blake.
20649
20650 2007-05-23  Eric Blake  <ebb9@byu.net>
20651
20652         Fix fseeko/ftello on cygwin 1.5.24.
20653         * doc/functions/fseeko.texi (fseeko): Document the fix.
20654         * doc/functions/ftello.texi (ftello): Document the fix.
20655         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
20656         * doc/functions/stdout.text (stdout): New file.
20657         * doc/functions/stderr.text (stderr): New file.
20658         * doc/gnulib.texi (Function Substitutes): Use new files.
20659         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
20660         prior to 1.7.0.
20661         * tests/test-ftello.c (main): Likewise for ftello.
20662         * tests/test-fseeko.sh: New file.
20663         * tests/test-ftello.sh: New file.
20664         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
20665         with seekable stdin.
20666         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
20667         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
20668         (gl_REPLACE_FSEEKO): New macro.
20669         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
20670         * modules/fseeko (Files): Distribute fseeko.c.
20671         * modules/ftello (Files): Distribute ftello.c.
20672         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
20673         mode.
20674         * lib/ftello.c (rpl_ftello): New file.
20675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
20676         fseeko, ftello.
20677         (gl_STDIN_LARGE_OFFSET): New macro.
20678         * modules/stdio (Makefile.am): Perform the replacement.
20679         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
20680
20681 2007-05-23  Bruno Haible  <bruno@clisp.org>
20682
20683         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
20684         GNULIB_POSIXCHECK is defined.
20685
20686 2007-05-21  Bruno Haible  <bruno@clisp.org>
20687
20688         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
20689         Check also the output for NaN arguments. When cross-compiling, guess
20690         no on IRIX.
20691         * lib/vasnprintf.c: Update comments.
20692         * tests/test-vasnprintf-posix.c (strisnan): New function.
20693         (test_function): Use it.
20694         * tests/test-vasprintf-posix.c (strisnan): New function.
20695         (test_function): Use it.
20696         * tests/test-snprintf-posix.h (strisnan): New function.
20697         (test_function): Use it.
20698         * tests/test-sprintf-posix.h (strisnan): New function.
20699         (test_function): Use it.
20700         Reported by Eric Blake.
20701
20702 2007-05-20  Bruno Haible  <bruno@clisp.org>
20703
20704         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
20705         numbers that fails on BeOS.
20706         * doc/functions/frexpl.texi: Update.
20707
20708 2007-05-20  Jim Meyering  <jim@meyering.net>
20709
20710         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
20711         forced upon us by glibc-2.6.
20712
20713 2007-05-20  Bruno Haible  <bruno@clisp.org>
20714
20715         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
20716         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
20717         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
20718         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
20719         NEED_PRINTF_INFINITE.
20720         (is_infinitel): New function.
20721         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
20722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
20723         gl_PREREQ_VASNPRINTF_INFINITE.
20724         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
20725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20726         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
20727         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
20728         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
20729         gl_PREREQ_VASNPRINTF_INFINITE.
20730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20737         * doc/functions/fprintf.texi: Update.
20738         * doc/functions/printf.texi: Update.
20739         * doc/functions/snprintf.texi: Update.
20740         * doc/functions/sprintf.texi: Update.
20741         * doc/functions/vfprintf.texi: Update.
20742         * doc/functions/vprintf.texi: Update.
20743         * doc/functions/vsnprintf.texi: Update.
20744         * doc/functions/vsprintf.texi: Update.
20745
20746 2007-05-20  Bruno Haible  <bruno@clisp.org>
20747
20748         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
20749         was not found in libc.
20750         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20751
20752 2007-05-20  Bruno Haible  <bruno@clisp.org>
20753
20754         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20755         printed as "-nan" instead of "nan".
20756         * tests/test-vasprintf-posix.c (test_function): Likewise.
20757         * tests/test-snprintf-posix.h (test_function): Likewise.
20758         * tests/test-sprintf-posix.h (test_function): Likewise.
20759         Needed for HP-UX 11.
20760
20761 2007-05-20  Jim Meyering  <jim@meyering.net>
20762
20763         Fix buggy test for the fchownat-deref bug.
20764         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
20765         symlink required for the run-test.  Without it, this test would
20766         always declare that fchownat doesn't work, and client code would
20767         unnecessarily use the replacement function with fixed libc.
20768         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
20769         Reported by Greg Schafer.
20770
20771 2007-05-19  Bruno Haible  <bruno@clisp.org>
20772
20773         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
20774         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
20775         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
20776         Needed for IRIX 6.5 and Solaris 2.5.1.
20777
20778 2007-05-19  Bruno Haible  <bruno@clisp.org>
20779
20780         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
20781         (test_function): Skip tests involving -0.0 on platforms where
20782         -0.0 = 0.0.
20783         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
20784         (test_function): Skip tests involving -0.0 on platforms where
20785         -0.0 = 0.0.
20786         * tests/test-snprintf-posix.h (have_minus_zero): New function.
20787         (test_function): Skip tests involving -0.0 on platforms where
20788         -0.0 = 0.0.
20789         * tests/test-sprintf-posix.h (have_minus_zero): New function.
20790         (test_function): Skip tests involving -0.0 on platforms where
20791         -0.0 = 0.0.
20792         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
20793         tests.
20794         * tests/test-printf-posix.h (test_function): Likewise.
20795         * tests/test-printf-posix.output: Remove all -0.0 related results.
20796         Needed for IRIX 6.5.
20797
20798 2007-05-19  Bruno Haible  <bruno@clisp.org>
20799
20800         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20801         printed as "nan0x7fffffff" instead of "nan".
20802         * tests/test-vasprintf-posix.c (test_function): Likewise.
20803         * tests/test-snprintf-posix.h (test_function): Likewise.
20804         * tests/test-sprintf-posix.h (test_function): Likewise.
20805         * tests/test-fprintf-posix.h (NaN): Remove macro.
20806         (test_function): Remove all NaN related tests.
20807         * tests/test-printf-posix.h (NaN): Remove macro.
20808         (test_function): Remove all NaN related tests.
20809         * tests/test-printf-posix.output: Remove all NaN related results.
20810         Needed for IRIX 6.5.
20811
20812 2007-05-19  Bruno Haible  <bruno@clisp.org>
20813
20814         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
20815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20816
20817 2007-05-19  Bruno Haible  <bruno@clisp.org>
20818
20819         * lib/float_.h: New file.
20820         * m4/float_h.m4: New file.
20821         * modules/float: New file.
20822         * modules/isnanl (Dependencies): Add float.
20823         * modules/isnanl-nolibm (Dependencies): Likewise.
20824         * modules/mathl (Dependencies): Likewise.
20825         * modules/printf-frexpl (Dependencies): Likewise.
20826         * modules/signbit (Dependencies): Likewise.
20827         * modules/vasnprintf (Dependencies): Likewise.
20828         * doc/headers/float.texi: Update.
20829
20830 2007-05-19  Jim Meyering  <jim@meyering.net>
20831
20832         * lib/utimens.c (gl_futimens): Rename from futimens,
20833         now that glibc-2.6 declares futimens.
20834         * lib/utimens.h: Likewise.
20835
20836 2007-05-19  Bruno Haible  <bruno@clisp.org>
20837
20838         Avoid test failures on mingw.
20839         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
20840         * tests/test-printf-posix.sh: Likewise.
20841         * tests/test-vfprintf-posix.sh: Likewise.
20842         * tests/test-vprintf-posix.sh: Likewise.
20843
20844 2007-05-19  Bruno Haible  <bruno@clisp.org>
20845
20846         Fix *printf result for NaN, Inf, -0.0 on mingw.
20847         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
20848         * lib/vasnprintf.c: Include math.h and isnan.h.
20849         (is_infinite_or_zero): New function.
20850         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
20851         values in the %f, %F, %e, %E, %g, %G directives.
20852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
20853         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20854         gl_PRINTF_INFINITE and test its result. Invoke
20855         gl_PREREQ_VASNPRINTF_INFINITE.
20856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20860         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20862         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20863         * doc/functions/fprintf.texi: Update.
20864         * doc/functions/printf.texi: Update.
20865         * doc/functions/snprintf.texi: Update.
20866         * doc/functions/sprintf.texi: Update.
20867         * doc/functions/vfprintf.texi: Update.
20868         * doc/functions/vprintf.texi: Update.
20869         * doc/functions/vsnprintf.texi: Update.
20870         * doc/functions/vsprintf.texi: Update.
20871
20872 2007-05-19  Bruno Haible  <bruno@clisp.org>
20873
20874         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
20875         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
20876         Instead of multiplying with 10^k, set extra_zeroes to k.
20877         (scale10_round_long_double): Remove function.
20878
20879 2007-05-18  Bruno Haible  <bruno@clisp.org>
20880
20881         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
20882         introduced on 2007-05-06.
20883
20884 2007-05-18  Bruno Haible  <bruno@clisp.org>
20885
20886         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
20887         %g directives.
20888         * tests/test-vasprintf-posix.c (test_function): Likewise.
20889         * tests/test-snprintf-posix.h (test_function): Likewise.
20890         * tests/test-sprintf-posix.h (test_function): Likewise.
20891
20892 2007-05-18  Bruno Haible  <bruno@clisp.org>
20893
20894         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
20895         (strmatch): New function.
20896         (test_function): Test the %f directive on numbers of various exponents.
20897         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
20898         (strmatch): New function.
20899         (test_function): Test the %f directive on numbers of various exponents.
20900         * tests/test-snprintf-posix.h (strmatch): New function.
20901         (test_function): Test the %f directive on numbers of various exponents.
20902         * tests/test-sprintf-posix.h (strmatch): New function.
20903         (test_function): Test the %f directive on numbers of various exponents.
20904         * tests/test-snprintf-posix.c (SIZEOF): New macro.
20905         * tests/test-sprintf-posix.c (SIZEOF): New macro.
20906         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
20907         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
20908
20909 2007-05-18  Bruno Haible  <bruno@clisp.org>
20910
20911         Add support for 'long double' number output.
20912         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
20913         * lib/vasnprintf.c: Include math.h and float+.h.
20914         (mp_limb_t): New type.
20915         (GMP_LIMB_BITS): New macro.
20916         (mp_twolimb_t): New type.
20917         (GMP_TWOLIMB_BITS): New macro.
20918         (mpn_t): New type.
20919         (multiply, divide, convert_to_decimal, decode_long_double,
20920         scale10_round_long_double, scale10_round_decimal_long_double,
20921         floorlog10l): New functions.
20922         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20923         for the %f, %F, %e, %E, %g, %G directives.
20924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20926         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20927         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20935         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20936         * modules/snprintf-posix (Depends-on): Likewise.
20937         * modules/sprintf-posix (Depends-on): Likewise.
20938         * modules/vasnprintf-posix (Depends-on): Likewise.
20939         * modules/vasprintf-posix (Depends-on): Likewise.
20940         * modules/vfprintf-posix (Depends-on): Likewise.
20941         * modules/vsnprintf-posix (Depends-on): Likewise.
20942         * modules/vsprintf-posix (Depends-on): Likewise.
20943         * modules/vasnprintf (Files): Add lib/float+.h.
20944         * doc/functions/fprintf.texi: Update.
20945         * doc/functions/printf.texi: Update.
20946         * doc/functions/snprintf.texi: Update.
20947         * doc/functions/sprintf.texi: Update.
20948         * doc/functions/vfprintf.texi: Update.
20949         * doc/functions/vprintf.texi: Update.
20950         * doc/functions/vsnprintf.texi: Update.
20951         * doc/functions/vsprintf.texi: Update.
20952
20953 2007-05-18  Bruno Haible  <bruno@clisp.org>
20954
20955         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20956
20957 2007-05-18  Bruno Haible  <bruno@clisp.org>
20958
20959         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20960         for printing 64-bit integers. Needed for mingw.
20961
20962 2007-05-18  Bruno Haible  <bruno@clisp.org>
20963
20964         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20965         gl_FUNC_FREXPL_WORKS.
20966         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20967
20968 2007-05-18  Bruno Haible  <bruno@clisp.org>
20969
20970         * modules/frexpl-nolibm-tests: New file.
20971
20972         * modules/frexpl-nolibm: New file.
20973         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20974
20975 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20978         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20979         GCC 4.2, which otherwise issues a lot of warnings.
20980         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20981         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20982         Likewise.
20983         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20984         * modules/iconv_open (iconv.h): Likewise.
20985         * modules/locale (locale.h): Likewise.
20986         * modules/netinet_in (netinet/in.h): Likewise.
20987         * modules/sys_select (sys_select.h): Likewise.
20988         * modules/sys_socket (sys/socket.h): Likewise.
20989         * modules/sys_stat (sys/stat.h): Likewise.
20990         * modules/sysexits (sysexits.h): Likewise.
20991         * modules/unistd (unistd.h): Likewise.
20992
20993 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20994
20995         * modules/closein-tests (Makefile.am): Distribute
20996         `test-closein.sh'.
20997
20998 2007-05-17  Bruno Haible  <bruno@clisp.org>
20999
21000         * tests/test-printf-posix.output: Renamed from
21001         tests/test-fprintf-posix.out.
21002         * modules/fprintf-posix-tests: Update.
21003         * modules/printf-posix-tests: Update.
21004         * modules/vfprintf-posix-tests: Update.
21005         * modules/vprintf-posix-tests: Update.
21006         * tests/test-fprintf-posix.sh: Update.
21007         * tests/test-printf-posix.sh: Update.
21008         * tests/test-vfprintf-posix.sh: Update.
21009         * tests/test-vprintf-posix.sh: Update.
21010         Reported by Ralf Wildenhues.
21011
21012 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21013
21014         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
21015         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
21016         GCC 4.2, which otherwise issues a lot of warnings.
21017         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
21018         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
21019         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
21020         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
21021         it should no longer be needed.
21022         * lib/string_.h: Likewise.
21023         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
21024         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
21025         * modules/inttypes (inttypes.h): Likewise.
21026         * modules/math (math.h): Likewise.
21027         * modules/search (search.h): Likewise.
21028         * modules/signal (signal.h): Likewise.
21029         * modules/stdint (stdint.h): Likewise.
21030         * modules/stdio (stdio.h): Likewise.
21031         * modules/stdlib (stdlib.h): Likewise.
21032         * modules/string (string.h): Likewise.
21033         * modules/sys_time (sys/time.h): Likewise.
21034         * modules/time (time.h): Likewise.
21035         * modules/wchar (wchar.h): Likewise.
21036         * modules/wctype (wtype.h): Likewise.
21037
21038 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21039
21040         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
21041
21042 2007-05-13  Bruno Haible  <bruno@clisp.org>
21043
21044         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
21045         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21046         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
21047         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21048         (gl_PREREQ_STRTOK_R): Don't require it here.
21049
21050 2007-05-13  Bruno Haible  <bruno@clisp.org>
21051
21052         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
21053         when used in C++ mode.
21054
21055 2007-05-12  Bruno Haible  <bruno@clisp.org>
21056
21057         * lib/linebuffer.h: Tweak doc.
21058         * lib/linebuffer.c: Likewise.
21059
21060 2007-05-12  James Youngman  <jay@gnu.org>
21061
21062         * lib/linebuffer.c (readlinebuffer_delim): New function,
21063         like readlinebuffer, but use a caller-specified delimiter.
21064         (readlinebuffer): Just call readlinebuffer_delim with '\n'
21065         as the delimiter.
21066         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
21067
21068 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21069
21070         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
21071         * modules/openat (Files): Remove openat-die.c.
21072         (Depends-on): Add openat-die.
21073         * modules/openat-die: New module.
21074
21075 2007-05-06  Bruno Haible  <bruno@clisp.org>
21076
21077         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
21078         Update with info about Cygwin.
21079         * doc/functions/fprintf.texi: Update.
21080         * doc/functions/printf.texi: Update.
21081         * doc/functions/snprintf.texi: Update.
21082         * doc/functions/sprintf.texi: Update.
21083         * doc/functions/vfprintf.texi: Update.
21084         * doc/functions/vprintf.texi: Update.
21085         * doc/functions/vsnprintf.texi: Update.
21086         * doc/functions/vsprintf.texi: Update.
21087         Reported by Eric Blake.
21088
21089 2007-05-06  Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
21092         padding ourselves for the floating-point directives.
21093         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
21094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
21095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21096         gl_PRINTF_FLAG_ZERO and test its result. Invoke
21097         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
21098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
21100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21105         * tests/test-snprintf-posix.h (test_function): Also check the width
21106         and some flags in the %f directive.
21107         * tests/test-sprintf-posix.h (test_function): Likewise.
21108         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21109         * tests/test-vasprintf-posix.c (test_function): Likewise.
21110         * doc/functions/fprintf.texi: Update.
21111         * doc/functions/printf.texi: Update.
21112         * doc/functions/snprintf.texi: Update.
21113         * doc/functions/sprintf.texi: Update.
21114         * doc/functions/vfprintf.texi: Update.
21115         * doc/functions/vprintf.texi: Update.
21116         * doc/functions/vsnprintf.texi: Update.
21117         * doc/functions/vsprintf.texi: Update.
21118
21119 2007-05-06  Bruno Haible  <bruno@clisp.org>
21120
21121         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
21122         pass the ' flag character to sprintf or snprintf.
21123         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
21124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
21125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21126         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
21127         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
21128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
21130         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21132         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21134         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21135         * tests/test-snprintf-posix.h (test_function): Also check the grouping
21136         flag.
21137         * tests/test-sprintf-posix.h (test_function): Likewise.
21138         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21139         * tests/test-vasprintf-posix.c (test_function): Likewise.
21140         * doc/functions/fprintf.texi: Update.
21141         * doc/functions/printf.texi: Update.
21142         * doc/functions/snprintf.texi: Update.
21143         * doc/functions/sprintf.texi: Update.
21144         * doc/functions/vfprintf.texi: Update.
21145         * doc/functions/vprintf.texi: Update.
21146         * doc/functions/vsnprintf.texi: Update.
21147         * doc/functions/vsprintf.texi: Update.
21148
21149 2007-05-01  Bruno Haible  <bruno@clisp.org>
21150
21151         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
21152
21153 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
21154
21155         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
21156         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
21157
21158 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21159
21160         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
21161         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
21162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
21163
21164 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
21165
21166         * lib/argp-help.c (struct hol_entry): New member `ord'.
21167         (HOL_ENTRY_PTRCMP): Use ord for comparison
21168         (hol_sort): Initialize ord.
21169
21170 2007-05-01  Bruno Haible  <bruno@clisp.org>
21171
21172         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
21173         Reported by Eric Blake.
21174         * doc/gnulib.texi (Function Substitutes): Update.
21175
21176 2007-05-01  Bruno Haible  <bruno@clisp.org>
21177
21178         * doc/functions.texi: Remove file, now redundant through
21179         doc/functions/*.texi.
21180
21181 2007-05-01  Bruno Haible  <bruno@clisp.org>
21182
21183         * modules/argp (Depends-on): Add sleep.
21184
21185 2007-05-01  Bruno Haible  <bruno@clisp.org>
21186
21187         * modules/sleep-tests: New file.
21188         * tests/test-sleep.c: New file.
21189
21190         * modules/sleep: New file.
21191         * lib/sleep.c: New file.
21192         * m4/sleep.m4: New file.
21193         * lib/unistd_.h (sleep): New declaration.
21194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
21195         HAVE_SLEEP.
21196         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
21197         * doc/functions/sleep.texi: Document the sleep module.
21198
21199 2007-05-01  Bruno Haible  <bruno@clisp.org>
21200
21201         * lib/sigprocmask.h: Remove file.
21202         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
21203         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
21204         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
21205         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
21206         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
21207         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
21208         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
21209         HAVE_SIGSET_T as a shell variable.
21210         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
21211         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
21212         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
21213         (Depends-on): Add signal. Remove verify.
21214         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
21215         (Include): Mention <signal.h> instead of sigprocmask.h.
21216         * NEWS: Mention the change.
21217         * lib/fatal-signal.c: Don't include sigprocmask.h.
21218
21219 2007-05-01  Bruno Haible  <bruno@clisp.org>
21220
21221         * modules/signal: New file.
21222         * lib/signal_.h: New file.
21223         * m4/signal_h.m4: New file.
21224
21225 2007-05-01  Bruno Haible  <bruno@clisp.org>
21226
21227         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
21228         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
21229         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
21230         HAVE_WCTYPE_CTMP_BUG into wctype.h.
21231
21232 2007-05-01  Bruno Haible  <bruno@clisp.org>
21233
21234         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
21235         configure time.
21236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
21237         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
21238         * modules/sys_stat (Makefile.am): Substitute their values into
21239         sys/stat.h.
21240
21241 2007-05-01  Bruno Haible  <bruno@clisp.org>
21242
21243         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
21244         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
21245         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
21246
21247 2007-05-01  Bruno Haible  <bruno@clisp.org>
21248
21249         * doc/header/assert.texi: Undo last change: don't mention the gnulib
21250         'assert' module here.
21251
21252 2007-05-01  Bruno Haible  <bruno@clisp.org>
21253
21254         * doc/functions/*.texi: New files.
21255         * doc/functions/google-ranking.txt: New file.
21256         * doc/gnulib.texi (Function Substitutes): New chapter.
21257         (ctime, inet_ntoa): Remove sections.
21258         * doc/ctime.texi: Remove file.
21259         * doc/inet_ntoa.texi: Remove file.
21260         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
21261         dependencies.
21262         (%.info): New rule, specifying a --reference-limit.
21263
21264 2007-05-01  Bruno Haible  <bruno@clisp.org>
21265
21266         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
21267
21268 2007-05-01  Bruno Haible  <bruno@clisp.org>
21269
21270         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
21271         the portability of 'mkdir' to mingw systems.
21272
21273 2007-05-01  Bruno Haible  <bruno@clisp.org>
21274
21275         * doc/headers/google-ranking.txt: New file.
21276
21277 2007-04-30  Eric Blake  <ebb9@byu.net>
21278
21279         Prefer fseeko to fseek.
21280         * modules/getpass (Depends-on): Add fseeko.
21281         * lib/getpass.c (getpass): Use fseeko, not fseek.
21282
21283 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
21284
21285         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
21286         assumes the sorting is stable, while most qsort implementations
21287         are not.  Use argument addresses to ensure they never compare as
21288         equal.
21289
21290         * tests/test-argp-2.sh (usage-indent test): Fix output
21291         (func_compare): Restore diff options
21292         * tests/test-argp.c: Restore #include "progname.h"
21293
21294 2007-04-29  Bruno Haible  <bruno@clisp.org>
21295
21296         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
21297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21298         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
21299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21300         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
21301         (configure.ac): Define CHECK_SNPRINTF_POSIX.
21302         (TESTS, check_PROGRAMS): Add test-snprintf.
21303         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
21304         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
21305         (TESTS, check_PROGRAMS): Add test-vsnprintf.
21306         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
21307         assertions that fail on HP-UX, OSF/1, or IRIX.
21308         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
21309
21310 2007-04-29  Bruno Haible  <bruno@clisp.org>
21311
21312         * MODULES.html.sh (posix_functions): Remove 'contents'.
21313
21314 2007-04-29  Karl Berry  <karl@gnu.org>
21315
21316         * config/srclist.txt (gendocs_template_min): new entry.
21317
21318 2007-04-29  Bruno Haible  <bruno@clisp.org>
21319
21320         Work around fpurge bug on BSD systems.
21321         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
21322         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
21323         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
21324         fpurge to rpl_fpurge if the system already has this function.
21325         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
21326         the case where the system already has this function. Correct invariants
21327         on BSD systems.
21328         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
21329         BSD systems.
21330
21331 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
21332
21333         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
21334         proposed by Sven Verdoolaege.
21335
21336         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
21337         options.
21338         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
21339         (usage and help tests): Update
21340
21341 2007-04-29  Bruno Haible  <bruno@clisp.org>
21342
21343         * tests/test-fflush.c (main): Use a file of size 17, not 10.
21344         Print more information in case of failure. Disable a test on BeOS.
21345
21346 2007-04-29  Bruno Haible  <bruno@clisp.org>
21347
21348         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
21349         This helps debugging on systems on which no gdb is available.
21350
21351 2007-04-29  Bruno Haible  <bruno@clisp.org>
21352
21353         * lib/freading.h: Improve comments.
21354         * lib/fwriting.h: Likewise.
21355         * tests/test-freading.c (main): Don't check freading immediately after
21356         repositioning. Needed for glibc.
21357
21358 2007-04-29  Bruno Haible  <bruno@clisp.org>
21359
21360         * lib/freading.c (freading): Trivial simplification.
21361
21362 2007-04-28  Bruno Haible  <bruno@clisp.org>
21363
21364         * tests/test-fwriting.c (main): Also test the interaction between
21365         fflush and fwriting.
21366         * modules/fwriting-tests (Depends-on): Add fflush.
21367
21368         * tests/test-freading.c (main): Also test the interaction between
21369         fflush and freading.
21370         * modules/freading-tests (Depends-on): Add fflush.
21371
21372 2007-04-28  Bruno Haible  <bruno@clisp.org>
21373
21374         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
21375         fseeko and ftello.
21376         Suggested by Eric Blake.
21377
21378 2007-04-28  Jim Meyering  <jim@meyering.net>
21379
21380         Avoid false-negative in gl_STDINT_H's C99 conformance test.
21381         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
21382         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
21383
21384 2007-04-27  Eric Blake  <ebb9@byu.net>
21385
21386         * doc/headers/assert.texi (assert.h): Document assert module use.
21387
21388 2007-04-27  Bruno Haible  <bruno@clisp.org>
21389
21390         * doc/headers/*.texi: New files.
21391         * doc/gnulib.texi (Header File Substitutes): New chapter.
21392         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
21393         dependencies.
21394         (standards.info ,standards.html, standards.dvi): Update dependencies.
21395         (mostlyclean, clean): New targets.
21396
21397 2007-04-27  Bruno Haible  <bruno@clisp.org>
21398
21399         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
21400         * modules/sysexits (Files, Makefile.am): Update.
21401
21402         * lib/sys_socket_.h: Renamed from lib/socket_.h.
21403         * modules/sys_socket (Files, Makefile.am): Update.
21404
21405         * lib/sys_stat_.h: Renamed from lib/stat_.h.
21406         * modules/sys_stat (Files, Makefile.am): Update.
21407
21408 2007-04-27  Eric Blake  <ebb9@byu.net>
21409
21410         * lib/freading.h: Improve comments.
21411         * lib/fwriting.h: Likewise.
21412         * lib/fflush.c: Likewise.
21413
21414         Fix closein for mingw.
21415         * modules/closein-tests: Add tests for closein.
21416         * tests/test-closein.c: New file.
21417         * tests/test-closein.sh: Likewise.
21418         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
21419         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
21420
21421 2007-04-27  Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
21424         version is < 6.
21425         * lib/math_.h [__DECC]: Likewise.
21426         * lib/stdio_.h [__DECC]: Likewise.
21427         * lib/stdlib_.h [__DECC]: Likewise.
21428         * lib/string_.h [__DECC]: Likewise.
21429         * lib/time_.h [__DECC]: Likewise.
21430         * lib/wchar_.h [__DECC]: Likewise.
21431         * lib/wctype_.h [__DECC]: Likewise.
21432
21433 2007-04-27  Bruno Haible  <bruno@clisp.org>
21434
21435         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
21436
21437 2007-04-27  Bruno Haible  <bruno@clisp.org>
21438
21439         * lib/fflush.c: Add comments.
21440         * modules/fpurge-tests (Depends-on): Add fflush.
21441         * modules/freadable-tests (Depends-on): Likewise.
21442         * modules/fwritable-tests (Depends-on): Likewise.
21443
21444 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
21445
21446         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
21447         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
21448         Report by Bruno Haible <bruno@clisp.org>.
21449
21450 2007-04-26  Eric Blake  <ebb9@byu.net>
21451
21452         Fix fflush on mingw.
21453         * modules/fflush (Depends-on): Add freading.
21454         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
21455         but unread data.
21456
21457 2007-04-26  Eric Blake  <ebb9@byu.net>
21458         and Bruno Haible  <bruno@clisp.org>
21459
21460         Implement freading and fwriting.
21461         * lib/freading.c: New file.
21462         * lib/freading.h: Likewise.
21463         * m4/freading.m4: Likewise.
21464         * modules/freading: Likewise.
21465         * modules/freading-tests: Likewise.
21466         * tests/test-freading.c: Likewise.
21467         * lib/fwriting.c: New file.
21468         * lib/fwriting.h: Likewise.
21469         * m4/fwriting.m4: Likewise.
21470         * modules/fwriting: Likewise.
21471         * modules/fwriting-tests: Likewise.
21472         * tests/test-fwriting.c: Likewise.
21473         * MODULES.html.sh (File stream based Input/Output): Mention them.
21474
21475 2007-04-26  Bruno Haible  <bruno@clisp.org>
21476
21477         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
21478         'long' when we assume it.
21479         Suggested by Eric Blake.
21480
21481 2007-04-26  Bruno Haible  <bruno@clisp.org>
21482
21483         Ensure fseeko, ftello are declared on glibc systems.
21484         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
21485         * modules/fseeko (configure.ac-early): Likewise.
21486         * modules/ftello (configure.ac-early): Likewise.
21487         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
21488         AC_FUNC_FSEEKO for this.
21489         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
21490         (gl_CHECK_FSEEKO): Remove macro.
21491
21492 2007-04-26  Bruno Haible  <bruno@clisp.org>
21493
21494         * tests/test-fflush.c (main): Also check the ftell result after
21495         fflush and fseek/fseeko.
21496         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
21497         file descriptor position cache in the stream.
21498         * lib/fseeko.c (rpl_fseeko): Likewise.
21499
21500 2007-04-26  Bruno Haible  <bruno@clisp.org>
21501
21502         * modules/fflush-tests (Depends-on): Add fseeko.
21503
21504 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
21505             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21506
21507         * lib/argz_.h: ensure error_t definition is obtained in same
21508         mechanism system argz.h would have.
21509         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
21510         argz facilities are known bad.  Err on the side of caution if
21511         cross-compiling.
21512
21513 2007-04-25  Eric Blake  <ebb9@byu.net>
21514
21515         * lib/fpurge.c (includes): Use stdlib.h for free.
21516         * tests/test-fflush.c (main): Also test fflush-fseeko.
21517
21518 2007-04-25  Bruno Haible  <bruno@clisp.org>
21519
21520         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
21521         * lib/fseeko.c: New file.
21522         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
21523         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
21524         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
21525         gl_FUNC_FSEEKO.
21526         (gl_FUNC_FSEEKO): Invoke it.
21527         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
21528         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
21529         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
21530
21531 2007-04-25  Bruno Haible  <bruno@clisp.org>
21532
21533         * modules/fflush (Depends-on): Add ftello.
21534
21535 2007-04-25  Bruno Haible  <bruno@clisp.org>
21536
21537         * modules/ftello-tests: New file.
21538         * tests/test-ftello.c: New file.
21539
21540         * modules/ftello: New file.
21541         * m4/ftello.m4: New file.
21542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
21543         HAVE_FTELLO.
21544         * lib/stdio_.h (ftello): New declaration.
21545         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
21546         HAVE_FTELLO.
21547
21548 2007-04-25  Bruno Haible  <bruno@clisp.org>
21549
21550         * modules/fseeko-tests: New file.
21551         * tests/test-fseeko.c: New file.
21552
21553         * modules/fseeko: New file.
21554         * m4/fseeko.m4: New file.
21555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
21556         HAVE_FSEEKO.
21557         * lib/stdio_.h (fseeko): New declaration.
21558         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
21559         HAVE_FSEEKO.
21560
21561 2007-04-25  Bruno Haible  <bruno@clisp.org>
21562
21563         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
21564
21565 2007-04-25  Bruno Haible  <bruno@clisp.org>
21566
21567         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
21568         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
21569         * tests/test-unistd.c: Likewise.
21570         * tests/test-fcntl.c: Likewise.
21571
21572 2007-04-23  Eric Blake  <ebb9@byu.net>
21573
21574         * lib/fflush.c: Fix missing include.
21575         Reported by Bruno Haible.
21576
21577 2007-04-23  Bruno Haible  <bruno@clisp.org>
21578
21579         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
21580         Reported by Eric Blake.
21581
21582 2007-04-23  Bruno Haible  <bruno@clisp.org>
21583
21584         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
21585
21586 2007-04-23  Bruno Haible  <bruno@clisp.org>
21587
21588         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
21589
21590 2007-04-23  Bruno Haible  <bruno@clisp.org>
21591
21592         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
21593         Needed on HP-UX 11.
21594
21595 2007-04-16  Eric Blake  <ebb9@byu.net>
21596
21597         Make fflush rely on fpurge.
21598         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
21599         open coding all variants.
21600         * modules/fflush (Depends-on): Add fpurge and unistd.
21601         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
21602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
21603
21604         Fix --with-tests compilation on cygwin.
21605         * modules/argmatch-tests (Makefile.am): List gnulib library first
21606         in LDADD.
21607         * modules/argp-tests (Makefile.am): Likewise.
21608         * modules/array-list-tests (Makefile.am): Likewise.
21609         * modules/array-oset-tests (Makefile.am): Likewise.
21610         * modules/avltree-list-tests (Makefile.am): Likewise.
21611         * modules/avltree-oset-tests (Makefile.am): Likewise.
21612         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21613         * modules/carray-list-tests (Makefile.am): Likewise.
21614         * modules/dirname-tests (Makefile.am): Likewise.
21615         * modules/frexp-tests (Makefile.am): Likewise.
21616         * modules/isnanl-tests (Makefile.am): Likewise.
21617         * modules/linked-list-tests (Makefile.am): Likewise.
21618         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21619         * modules/lock-tests (Makefile.am): Likewise.
21620         * modules/rbtree-list-tests (Makefile.am): Likewise.
21621         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21622         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21623         * modules/tls-tests (Makefile.am): Likewise.
21624         * modules/tsearch-tests (Makefile.am): Likewise.
21625         * modules/xvasprintf-tests (Makefile.am): Likewise.
21626
21627         Fix fpurge for cygwin.
21628         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
21629         value.
21630         * modules/fpurge-tests (Depends-on): Clean up trash.
21631
21632 2007-04-16  Simon Josefsson  <simon@josefsson.org>
21633
21634         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
21635
21636         * m4/autobuild.m4: Re-indent.
21637
21638 2007-04-13  Bruno Haible  <bruno@clisp.org>
21639
21640         * modules/fpurge-tests: New file.
21641         * tests/test-fpurge.c: New file.
21642
21643         * modules/fpurge: New file.
21644         * lib/fpurge.h: New file.
21645         * lib/fpurge.c: New file.
21646         * m4/fpurge.m4: New file.
21647
21648 2007-04-13  Bruno Haible  <bruno@clisp.org>
21649
21650         * modules/fbufmode-tests: New file.
21651         * tests/test-fbufmode.c: New file.
21652
21653         * modules/fbufmode: New file.
21654         * lib/fbufmode.h: New file.
21655         * lib/fbufmode.c: New file.
21656         * m4/fbufmode.m4: New file.
21657
21658 2007-04-13  Bruno Haible  <bruno@clisp.org>
21659
21660         * modules/fwritable-tests: New file.
21661         * tests/test-fwritable.c: New file.
21662
21663         * modules/fwritable: New file.
21664         * lib/fwritable.h: New file.
21665         * lib/fwritable.c: New file.
21666         * m4/fwritable.m4: New file.
21667
21668 2007-04-13  Bruno Haible  <bruno@clisp.org>
21669
21670         * modules/freadable-tests: New file.
21671         * tests/test-freadable.c: New file.
21672
21673         * modules/freadable: New file.
21674         * lib/freadable.h: New file.
21675         * lib/freadable.c: New file.
21676         * m4/freadable.m4: New file.
21677
21678 2007-04-13  Bruno Haible  <bruno@clisp.org>
21679
21680         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
21681         MOSTLYCLEANFILES.
21682
21683 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
21686         gzip bootstrap.conf to avoid dragging in i18n machinery.
21687         (gnulib_tool_option): Use it.
21688
21689 2007-04-13  Bruno Haible  <bruno@clisp.org>
21690
21691         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
21692         %F directives.
21693         * tests/test-vasprintf-posix.c (test_function): Likewise.
21694         * tests/test-snprintf-posix.h (test_function): Likewise.
21695         * tests/test-sprintf-posix.h (test_function): Likewise.
21696         * tests/test-fprintf-posix.h (test_function): Likewise.
21697         * tests/test-printf-posix.h (test_function): Likewise.
21698         * tests/test-fprintf-posix.out: Likewise.
21699
21700 2007-04-13  Bruno Haible  <bruno@clisp.org>
21701
21702         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
21703         * modules/tls-tests (configure.ac): Likewise.
21704         Reported by Arto C. Nirkko <anirkko@insel.ch>.
21705
21706 2007-04-13  Bruno Haible  <bruno@clisp.org>
21707
21708         * lib/tls.c (glthread_tls_get): Fix return type.
21709         Patch by Arto C. Nirkko <anirkko@insel.ch>.
21710
21711 2007-04-12  Eric Blake  <ebb9@byu.net>
21712
21713         * modules/gettime (Depends-on): Remove gettime.
21714         Reported by Dmitry V. Levin.
21715
21716 2007-04-12  Bruno Haible  <bruno@clisp.org>
21717
21718         * modules/fflush (Include): Mention <stdio.h>.
21719         * modules/strtoimax (Include): Mention <inttypes.h>.
21720         * modules/strtoumax (Include): Likewise.
21721
21722 2007-04-12  Eric Blake  <ebb9@byu.net>
21723
21724         * .cvsignore: New file.
21725         * .gitignore: Likewise.
21726
21727 2007-04-12  Bruno Haible  <bruno@clisp.org>
21728
21729         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
21730         not before, since $(LDADD) often contains libgnu.a.
21731         * modules/striconv-tests (test_striconv_LDADD): Likewise.
21732         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
21733         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
21734         Needed on Cygwin.
21735
21736 2007-04-12  Eric Blake  <ebb9@byu.net>
21737
21738         Work around glibc's failure to flush stdin on fclose.
21739         * lib/closein.c (close_stdin): Flush stdin before closing.
21740
21741         Work around glibc's failure to reset seekable stdin on exit.
21742         * modules/closein: New module.
21743         * lib/closein.c: New file.
21744         * lib/closein.h: Likewise.
21745         * m4/closein.m4: Likewise.
21746         * MODULES.html.sh (File stream based Input/Output): Document it.
21747
21748 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21749
21750         * gnulib-tool: Rename generated 'autobuild' script to
21751         'do-autobuild' in --create-megatestdir output.
21752
21753         * doc/gnulib.texi (Build robot for gnulib): Fix.
21754
21755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21756
21757         * modules/sysexits (Depends-on): Add absolute-header.
21758
21759 2007-04-12  Eric Blake  <ebb9@byu.net>
21760
21761         No need to preserve errno on success.
21762         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
21763         Reported by Bruno Haible.
21764
21765 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21766
21767         * MODULES.html.sh (Support for maintaining and releasing
21768         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
21769
21770 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21771
21772         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
21773
21774 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21775
21776         * modules/autobuild: New module.
21777
21778         * m4/autobuild.m4: New file.
21779
21780 2007-04-11  Bruno Haible  <bruno@clisp.org>
21781
21782         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
21783         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
21784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
21785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
21786         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21790         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21791         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
21793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
21796         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21797         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
21799         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21800         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
21802         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21803         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
21805         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21806         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
21808         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21809         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21810         Reported by Eric Blake.
21811
21812 2007-04-11  Bruno Haible  <bruno@clisp.org>
21813
21814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
21815
21816 2007-04-10  Bruno Haible  <bruno@clisp.org>
21817
21818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
21819         for NaN and Infinity. Needed on FreeBSD 6.1.
21820         * tests/test-vasnprintf-posix.c (test_function): Undo last change
21821         regarding results for "%010a" of Infinity and NaN.
21822         * tests/test-vasprintf-posix.c (test_function): Likewise.
21823         * tests/test-snprintf-posix.h (test_function): Likewise.
21824         * tests/test-sprintf-posix.h (test_function): Likewise.
21825         * tests/test-fprintf-posix.h (test_function): Likewise.
21826         * tests/test-printf-posix.h (test_function): Likewise.
21827         * tests/test-fprintf-posix.out: Likewise.
21828
21829 2007-04-10  Bruno Haible  <bruno@clisp.org>
21830
21831         * modules/locale-tests: New file.
21832         * tests/test-locale.c: New file.
21833
21834         * modules/locale: New file.
21835         * lib/locale_.h: New file.
21836         * m4/locale_h.m4: New file.
21837
21838 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
21839             Bruno Haible  <bruno@clisp.org>
21840
21841         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
21842         be determined, test for availability of the copysignf, copysign,
21843         copysignl functions.
21844         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
21845         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
21846         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
21847
21848 2007-04-09  Eric Blake  <ebb9@byu.net>
21849
21850         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
21851         * modules/stdio (Makefile.am): Support fflush.
21852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21853         * modules/fflush: New file.
21854         * lib/fflush.c: Likewise.
21855         * m4/fflush.m4: Likewise.
21856         * modules/fflush-tests: New test.
21857         * tests/test-fflush.c: Likewise.
21858         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
21859
21860 2007-04-06  Bruno Haible  <bruno@clisp.org>
21861
21862         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
21863         (VASNPRINTF): Use signbit for faster determination whether to print a
21864         minus sign.
21865         * modules/vasnprintf (Files): Remove lib/float+.h.
21866         * modules/fprintf-posix (Depends-on): Add signbit.
21867         * modules/snprintf-posix (Depends-on): Likewise.
21868         * modules/sprintf-posix (Depends-on): Likewise.
21869         * modules/vasnprintf-posix (Depends-on): Likewise.
21870         * modules/vasprintf-posix (Depends-on): Likewise.
21871         * modules/vfprintf-posix (Depends-on): Likewise.
21872         * modules/vsnprintf-posix (Depends-on): Likewise.
21873         * modules/vsprintf-posix (Depends-on): Likewise.
21874
21875 2007-04-06  Bruno Haible  <bruno@clisp.org>
21876
21877         * tests/test-frexp.c (main): Test also the sign bit of zero results.
21878         * tests/test-frexpl.c (main): Likewise.
21879         * tests/test-ldexpl.c (main): Likewise.
21880         * modules/frexp-tests (Depends-on): Add signbit.
21881         * modules/frexpl-tests (Depdends-on): Likewise.
21882         * modules/ldexpl-tests (Depdends-on): Likewise.
21883
21884 2007-04-06  Bruno Haible  <bruno@clisp.org>
21885
21886         * modules/signbit-tests: New file.
21887         * tests/test-signbit.c: New file.
21888
21889         * modules/signbit: New file.
21890         * lib/signbitf.c: New file.
21891         * lib/signbitd.c: New file.
21892         * lib/signbitl.c: New file.
21893         * m4/signbit.m4: New file.
21894         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
21895         (signbit): New macro.
21896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
21897         REPLACE_SIGNBIT.
21898         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
21899         REPLACE_FREXPL into math.h.
21900
21901 2007-04-06  Bruno Haible  <bruno@clisp.org>
21902
21903         * modules/isnanf-nolibm-tests: New file.
21904         * tests/test-isnanf.c: New file.
21905
21906         * modules/isnanf-nolibm: New file.
21907         * lib/isnanf.h: New file.
21908         * lib/isnanf.c: New file.
21909         * lib/isnan.c: Consider the USE_FLOAT macro.
21910         * m4/isnanf.m4: New file.
21911
21912 2007-04-06  Bruno Haible  <bruno@clisp.org>
21913
21914         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
21915         (Link): New section.
21916
21917         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21918
21919 2007-04-06  Bruno Haible  <bruno@clisp.org>
21920
21921         Assume the 'long double' type.
21922         * m4/longdouble.m4: Remove file.
21923         * config/srclist.txt: Don't mention longdouble.m4.
21924         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21925         * lib/float+.h: Likewise.
21926         * lib/frexp.c: Likewise.
21927         * lib/printf-args.h: Likewise.
21928         * lib/printf-args.c: Likewise.
21929         * lib/printf-frexp.c: Likewise.
21930         * lib/printf-parse.c: Likewise.
21931         * lib/vasnprintf.c: Likewise.
21932         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21933         * m4/intl.m4: Likewise.
21934         * m4/isnanl.m4: Likewise.
21935         * m4/printf.m4: Likewise.
21936         * m4/printf-frexpl.m4: Likewise.
21937         * m4/vasnprintf.m4: Likewise.
21938         * modules/allocsa (Files): Remove m4/longdouble.m4.
21939         * modules/gettext (Files): Likewise.
21940         * modules/relocatable-prog-wrapper (Files): Likewise.
21941         * modules/vasnprintf (Files): Likewise.
21942         * modules/isnanl (Files): Likewise.
21943         (Include): Simplify.
21944         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21945         (Include): Simplify.
21946         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21947         (Include): Simplify.
21948         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21949         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21950         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21951         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21952         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21953         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21954         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21955         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21956         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21958         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21960         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21961         * tests/test-isnanl.c: Likewise.
21962         * tests/test-snprintf-posix.h: Likewise.
21963         * tests/test-sprintf-posix.h: Likewise.
21964         * tests/test-vasnprintf-posix.c: Likewise.
21965         * tests/test-vasnprintf-posix2.c: Likewise.
21966         * tests/test-vasprintf-posix.c: Likewise.
21967
21968 2007-04-06  Bruno Haible  <bruno@clisp.org>
21969
21970         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21971         * lib/math_.h [__DECC]: Include the overridden include file through
21972         #include_next, outside the double-inclusion guard.
21973         * lib/stdio_.h [__DECC]: Likewise.
21974         * lib/stdlib_.h [__DECC]: Likewise.
21975         * lib/string_.h [__DECC]: Likewise.
21976         * lib/time_.h [__DECC]: Likewise.
21977         * lib/wchar_.h [__DECC]: Likewise.
21978         * lib/wctype_.h [__DECC]: Likewise.
21979         * lib/inttypes_.h [__DECC]: Likewise.
21980         Reported by Albert Chin <china@thewrittenword.com> in
21981         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21982
21983 2007-04-04  Eric Blake  <ebb9@byu.net>
21984
21985         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21986         1.5.x.
21987
21988 2007-04-04  Bruno Haible  <bruno@clisp.org>
21989
21990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21991         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21992
21993 2007-04-04  Bruno Haible  <bruno@clisp.org>
21994
21995         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21996         results for "%010a" of Infinity and NaN.
21997         * tests/test-vasprintf-posix.c (test_function): Likewise.
21998         * tests/test-snprintf-posix.h (test_function): Likewise.
21999         * tests/test-sprintf-posix.h (test_function): Likewise.
22000         * tests/test-fprintf-posix.h (test_function): Remove these tests.
22001         * tests/test-printf-posix.h (test_function): Likewise.
22002         * tests/test-fprintf-posix.out: Update.
22003         Needed for FreeBSD 6.1.
22004
22005 2007-04-04  Bruno Haible  <bruno@clisp.org>
22006
22007         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
22008         directly used by the gnulib modules nor by gnulib-tool.
22009
22010 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         * DEPENDENCIES: Give overall description of version dependency
22013         desirability.  Use more-typical names for apps.
22014         Add shell, coreutils, diffutils, grep, tar, gzip.
22015
22016 2007-04-04  Simon Josefsson  <simon@josefsson.org>
22017
22018         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
22019
22020 2007-04-04  Karl Berry  <karl@gnu.org>
22021
22022         * MODULES.html.sh (func_module): missing '.
22023
22024 2007-04-03  Bruno Haible  <bruno@clisp.org>
22025
22026         * modules/argmatch-tests (Makefile.am): New variable
22027         test_argmatch_LDADD.
22028         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
22029         * modules/array-list-tests (Makefile.am): New variable
22030         test_array_list_LDADD.
22031         * modules/array-oset-tests (Makefile.am): New variable
22032         test_array_oset_LDADD.
22033         * modules/avltree-list-tests (Makefile.am): New variable
22034         test_avltree_list_LDADD.
22035         * modules/avltree-oset-tests (Makefile.am): New variable
22036         test_avltree_oset_LDADD.
22037         * modules/avltreehash-list-tests (Makefile.am): New variable
22038         test_avltreehash_list_LDADD.
22039         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
22040         test_canonicalize_lgpl_LDADD.
22041         * modules/carray-list-tests (Makefile.am): New variable
22042         test_carray_list_LDADD.
22043         * modules/dirname-tests (Makefile.am): New variable
22044         test_dirname_LDADD.
22045         * modules/linked-list-tests (Makefile.am): New variable
22046         test_linked_list_LDADD.
22047         * modules/linkedhash-list-tests (Makefile.am): New variable
22048         test_linkedhash_list_LDADD.
22049         * modules/rbtree-list-tests (Makefile.am): New variable
22050         test_rbtree_list_LDADD.
22051         * modules/rbtree-oset-tests (Makefile.am): New variable
22052         test_rbtree_oset_LDADD.
22053         * modules/rbtreehash-list-tests (Makefile.am): New variable
22054         test_rbtreehash_list_LDADD.
22055         * modules/xvasprintf-tests (Makefile.am): New variable
22056         test_xvasprintf_LDADD.
22057         Reported by Eric Blake.
22058
22059 2007-04-03  Eric Blake  <ebb9@byu.net>
22060
22061         * DEPENDENCIES: Weaken m4 requirements.
22062
22063 2007-04-03  Bruno Haible  <bruno@clisp.org>
22064
22065         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
22066         * modules/isnanl-tests (configure.ac): Likewise.
22067
22068 2007-04-03  Ben Pfaff  <blp@gnu.org>
22069
22070         * modules/iconv_open: Add $(srcdir)/ to source directory
22071         references in Makefile fragments that call gperf, to fix VPATH
22072         builds.
22073
22074 2007-04-03  Bruno Haible  <bruno@clisp.org>
22075
22076         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
22077         * lib/ldexpl.c: Undo last change.
22078
22079 2007-04-03  Bruno Haible  <bruno@clisp.org>
22080
22081         * modules/printf-frexpl (Depends-on): Undo last change.
22082         (Files): Add m4/ldexpl.m4.
22083
22084 2007-04-03  Bruno Haible  <bruno@clisp.org>
22085
22086         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
22087         * modules/isnanl (Link): New section.
22088
22089         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
22090         * modules/frexp (Link): New section.
22091
22092         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
22093         * modules/frexpl (Link): New section.
22094
22095         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
22096         * modules/ldexpl (Link): New section.
22097
22098 2007-04-03  Bruno Haible  <bruno@clisp.org>
22099
22100         * modules/TEMPLATE-EXTENDED: New file.
22101         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
22102
22103 2007-04-03  Bruno Haible  <bruno@clisp.org>
22104
22105         * DEPENDENCIES: New file.
22106         Suggested by Simon Josefsson.
22107
22108 2007-04-03  Bruno Haible  <bruno@clisp.org>
22109
22110         * doc/gnulib.texi: Escape @.
22111
22112 2007-04-03  James Youngman  <jay@gnu.org>
22113         and Paul Eggert  <eggert@cs.ucla.edu>
22114
22115         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
22116         birthtime on all systems that have birthtime, not just those which
22117         use st_birthtimensec rather than st_birthtim.  Putting zero in
22118         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
22119         that the birth time is not available for files on an NFS mount.
22120
22121 2007-04-03  Simon Josefsson  <simon@josefsson.org>
22122
22123         * modules/memxor: Move back from crypto/, suggested by Bruno.
22124         * modules/crypto/hmac-sha1: Fix memxor dependency.
22125
22126         * modules/crypto/gc: Moved from ../.
22127
22128 2007-04-02  Eric Blake  <ebb9@byu.net>
22129
22130         * lib/ldexpl.c (includes): Avoid libm.
22131
22132         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
22133
22134 2007-04-02  Bruno Haible  <bruno@clisp.org>
22135
22136         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
22137         on IRIX.
22138
22139 2007-04-02  Bruno Haible  <bruno@clisp.org>
22140
22141         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
22142         x86 or x86_64 platforms running MacOS X.
22143         Reported by Ryan Schmidt <@ryandesign.com>.
22144
22145 2007-04-02  Bruno Haible  <bruno@clisp.org>
22146
22147         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
22148         i386.
22149
22150 2007-04-01  Simon Josefsson  <simon@josefsson.org>
22151
22152         * modules/crypto/arcfour: Moved from ../.
22153         * modules/crypto/arcfour-tests: Moved from ../.
22154         * modules/crypto/arctwo: Moved from ../.
22155         * modules/crypto/arctwo-tests: Moved from ../.
22156         * modules/crypto/des: Moved from ../.
22157         * modules/crypto/des-tests: Moved from ../.
22158         * modules/crypto/gc-arcfour: Moved from ../.
22159         * modules/crypto/gc-arcfour-tests: Moved from ../.
22160         * modules/crypto/gc-arctwo: Moved from ../.
22161         * modules/crypto/gc-arctwo-tests: Moved from ../.
22162         * modules/crypto/gc-des: Moved from ../.
22163         * modules/crypto/gc-des-tests: Moved from ../.
22164         * modules/crypto/gc-hmac-md5: Moved from ../.
22165         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
22166         * modules/crypto/gc-hmac-sha1: Moved from ../.
22167         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
22168         * modules/crypto/gc-md2: Moved from ../.
22169         * modules/crypto/gc-md2-tests: Moved from ../.
22170         * modules/crypto/gc-md4: Moved from ../.
22171         * modules/crypto/gc-md4-tests: Moved from ../.
22172         * modules/crypto/gc-md5: Moved from ../.
22173         * modules/crypto/gc-md5-tests: Moved from ../.
22174         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
22175         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
22176         * modules/crypto/gc-random: Moved from ../.
22177         * modules/crypto/gc-rijndael: Moved from ../.
22178         * modules/crypto/gc-rijndael-tests: Moved from ../.
22179         * modules/crypto/gc-sha1: Moved from ../.
22180         * modules/crypto/gc-sha1-tests: Moved from ../.
22181         * modules/crypto/gc-tests: Moved from ../.
22182         * modules/crypto/hmac-md5: Moved from ../.
22183         * modules/crypto/hmac-md5-tests: Moved from ../.
22184         * modules/crypto/hmac-sha1: Moved from ../.
22185         * modules/crypto/hmac-sha1-tests: Moved from ../.
22186         * modules/crypto/md2: Moved from ../.
22187         * modules/crypto/md2-tests: Moved from ../.
22188         * modules/crypto/md4: Moved from ../.
22189         * modules/crypto/md4-tests: Moved from ../.
22190         * modules/crypto/md5: Moved from ../.
22191         * modules/crypto/md5-tests: Moved from ../.
22192         * modules/crypto/memxor: Moved from ../.
22193         * modules/crypto/rijndael: Moved from ../.
22194         * modules/crypto/rijndael-tests: Moved from ../.
22195         * modules/crypto/sha1: Moved from ../.
22196
22197 2007-03-30  James Youngman  <jay@gnu.org>
22198
22199         * tests/test-stat-time.c (prepare_test): use chmod() rather than
22200         rename() to change the ctime of a file (because ctime is unaffected
22201         by rename on jfs2 on AIX 5.1).
22202         (main): Start by doing cleanup, in case a previous run failed leaving
22203         test files behind.
22204
22205 2007-03-31  Bruno Haible  <bruno@clisp.org>
22206
22207         Support old proprietary implementations of iconv.
22208         * modules/iconv_open: New file.
22209         * lib/iconv_.h: New file.
22210         * m4/iconv_h.m4: New file.
22211         * lib/iconv_open.c: New file.
22212         * lib/iconv_open-aix.gperf: New file.
22213         * lib/iconv_open-hpux.gperf: New file.
22214         * lib/iconv_open-irix.gperf: New file.
22215         * lib/iconv_open-osf.gperf: New file.
22216         * m4/iconv_open.m4: New file.
22217         * modules/linebreak (Depends-on): Add iconv_open.
22218         * modules/striconv (Depends-on): Likewise.
22219         * modules/striconveh (Depends-on): Likewise.
22220         * modules/unicodeio (Depends-on): Likewise.
22221         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
22222         (iconv_t)(-1).
22223         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
22224         conversion if cd is (iconv_t)(-1).
22225         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
22226         is not possible.
22227
22228 2007-03-31  Bruno Haible  <bruno@clisp.org>
22229
22230         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
22231         work on Solaris either. Protect also second use of "autodetect_jp".
22232
22233 2007-03-31  Bruno Haible  <bruno@clisp.org>
22234
22235         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
22236         the function is not present.
22237
22238 2007-03-31  Bruno Haible  <bruno@clisp.org>
22239
22240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
22241         the function is not present.
22242
22243 2007-03-31  Bruno Haible  <bruno@clisp.org>
22244
22245         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
22246         a bug in HP-UX iconv_open().
22247
22248 2007-03-31  Bruno Haible  <bruno@clisp.org>
22249
22250         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
22251         (Mathematics <math.h>): New section, add fpieee.
22252         (Input/output <stdio.h>): Add fseterr.
22253         (Mathematics <math.h>): New section, add printf-frexp.
22254         (Container data structures): Add sublist.
22255         (Core language properties): Add fpucw, inline.
22256         (Functions for greatest-width integer types <inttypes.h>): Add
22257         imaxabs, imaxdiv, inttypes.
22258         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
22259         isnanl-nolibm, ldexp.
22260         (Mathematics <math.h>): New section, add printf-frexpl.
22261         (Support for systems lacking POSIX:2001): Add fprintf-posix,
22262         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
22263         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
22264         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
22265         (Unicode string functions): Add unistr/u*-mbtoucr.
22266         (Java): Add javacomp-script, javaexec-script.
22267         (C#): Add csharpcomp-script, csharpexec-script.
22268         (Support for building libraries and executables): Add havelib,
22269         relocatable-*.
22270         (Support for maintaining and releasing projects): Renamed from
22271         'Support for maintaining and release projects'. Add announce-gen.
22272
22273 2007-03-31  Bruno Haible  <bruno@clisp.org>
22274
22275         * README: Talk primarily about git.
22276         (git and CVS): Renamed from CVS.
22277         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
22278         gnulib is available through git.
22279         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
22280
22281 2007-03-30  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
22284         * lib/poll_.h: Likewise.
22285         * lib/stat_.h: Likewise.
22286         * lib/sys_time_.h: Likewise.
22287         * lib/sysexit_.h: Likewise.
22288         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
22289         * lib/stdbool_.h: Likewise.
22290         * lib/byteswap_.h: Add double-inclusion guard.
22291
22292 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
22293
22294         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
22295
22296 2007-03-30  Karl Berry  <karl@gnu.org>
22297
22298         * config/srclist-update: double space after USA in the license
22299         substitution, since that's how it's usually (?) written.
22300
22301 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
22304         reported by Bruno Haible.
22305
22306 2007-03-29  Bruno Haible  <bruno@clisp.org>
22307
22308         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
22309         a bug in AIX iconv().
22310
22311 2007-03-29  Bruno Haible  <bruno@clisp.org>
22312
22313         * modules/ldexpl-tests: New file.
22314         * tests/test-ldexpl.c: New file.
22315
22316 2007-03-29  Bruno Haible  <bruno@clisp.org>
22317
22318         * lib/ldexpl.c: Include fpucw.h.
22319         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
22320         multiplication.
22321         * modules/ldexpl (Depends-on): Add fpucw.
22322
22323 2007-03-29  Bruno Haible  <bruno@clisp.org>
22324
22325         * modules/ldexpl: New file.
22326         * m4/ldexpl.m4: New file.
22327         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
22328         set.
22329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
22330         REPLACE_LDEXPL.
22331         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
22332         REPLACE_LDEXPL.
22333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22334         gl_FUNC_LDEXPL_WORKS.
22335         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
22336         * modules/mathl (Files): Remove lib/ldexpl.c.
22337         (Depends-on): Add ldexpl.
22338
22339 2007-03-29  Bruno Haible  <bruno@clisp.org>
22340
22341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
22342
22343 2007-03-29  Bruno Haible  <bruno@clisp.org>
22344
22345         * tests/test-striconveh.c (main): Don't assume that a direct conversion
22346         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
22347         and possibly also HP-UX.
22348         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
22349         work on AIX, IRIX, HP-UX, OSF/1.
22350         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22351         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22352         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22353         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22354         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
22355         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22356
22357 2007-03-29  Bruno Haible  <bruno@clisp.org>
22358
22359         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
22360
22361 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
22362
22363         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
22364         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
22365
22366 2007-03-29  Eric Blake  <ebb9@byu.net>
22367
22368         * lib/acl-internal.h: Remove redundant include.
22369         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
22370         Cygwin when a file is locked.
22371
22372 2007-03-29  Bruno Haible  <bruno@clisp.org>
22373
22374         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
22375         file.
22376         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
22377
22378 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
22381         try to remove a parent directory if the child couldn't be removed
22382         (except for the first rmdir, which could fail because the child
22383         doesn't exist).  Problem reported by Jeff Blaine in
22384         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
22385
22386 2007-03-28  Bruno Haible  <bruno@clisp.org>
22387
22388         * lib/striconveh.c (utf8conv_carefully): New function.
22389         (mem_cd_iconveh_internal): Invoke it.
22390
22391 2007-03-28  Bruno Haible  <bruno@clisp.org>
22392
22393         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
22394         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
22395         input.
22396         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
22397         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
22398         unistr/u8-uctomb.
22399
22400 2007-03-28  Bruno Haible  <bruno@clisp.org>
22401
22402         * modules/unistr/u8-mbtoucr: New file.
22403         * lib/unistr/u8-mbtoucr.c: New file.
22404         * modules/unistr/u16-mbtoucr: New file.
22405         * lib/unistr/u16-mbtoucr.c: New file.
22406         * modules/unistr/u16-mbtoucr: New file.
22407         * lib/unistr/u16-mbtoucr.c: New file.
22408         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
22409
22410 2007-03-27  Simon Josefsson  <simon@josefsson.org>
22411             Bruno Haible  <bruno@clisp.org>
22412
22413         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
22414         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
22415         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
22416
22417         * m4/stdio_h.m4: Add stubs for vasprintf too.
22418
22419         * modules/stdio: Support vasprintf in sed command.
22420
22421         * modules/vasprintf: Depend on stdio for prototypes.  Remove
22422         vasprintf.h.  Add stdio module indicator.
22423
22424         * lib/stdio_.h: Declare asprintf and vasprintf, based on
22425         vasprintf.h.
22426
22427         * lib/vasprintf.h: File removed.
22428
22429         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
22430         * lib/vasprintf.c: Ditto.
22431         * lib/xvasprintf.c: Ditto.
22432         * tests/test-vasprintf-posix.c: Ditto.
22433         * tests/test-vasprintf.c: Ditto.
22434
22435 2007-03-27  Bruno Haible  <bruno@clisp.org>
22436
22437         Make vasnprintf multithread-safe.
22438         * lib/vasnprintf.c (decimal_point_char): New function.
22439         (VASNPRINTF): Use it.
22440         Suggested by Simon Josefsson.
22441
22442 2007-03-27  Eric Blake  <ebb9@byu.net>
22443
22444         Support sub-second birthtime on cygwin.
22445         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
22446         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
22447         (get_stat_birthtime): Also work with st_birthtim.
22448
22449 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22450
22451         * lib/stat-time.h (USE_BIRTHTIME): Remove.
22452         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
22453         (get_stat_birthtime_ns): Do not try to use "spare" fields.
22454         (get_stat_birthtime_ns): Simplify compile-time tests.
22455         (get_stat_birthtime): Change the API to look like
22456         get_stat_mtime etc., except return a negative tv_nsec on error.
22457         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
22458         Don't check for "spare" fields.
22459         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
22460         or for struct stat.st_birthtime, as these tests aren't used.
22461         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
22462
22463 2007-03-27  Bruno Haible  <bruno@clisp.org>
22464
22465         * lib/stat-time.h: Include <sys/stat.h>.
22466
22467 2007-03-27  James Youngman  <jay@gnu.org>
22468
22469         * lib/stat-time.h (get_stat_birthtime): New function for
22470           retrieving st_birthtime as provided by UFS2 (hence *BSD).
22471         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
22472           and its variants.
22473         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
22474         * modules/stat-time-test: New file.
22475         * tests/test-stat-time.c: New test, devised by Bruno Haible.
22476
22477 2007-03-26  Bruno Haible  <bruno@clisp.org>
22478
22479         Better support of signalling NaNs.
22480         * lib/atanl.c: Include isnanl.h.
22481         (atanl): Perform test for NaN at the beginning of the function and
22482         through a call to isnanl.
22483         * lib/cosl.c: Include isnanl.h.
22484         (cosl): Perform test for NaN at the beginning of the function and
22485         through a call to isnanl.
22486         * lib/ldexpl.c: Include isnanl.h.
22487         (ldexpl): Perform test for NaN through a call to isnanl.
22488         * lib/logl.c: Include isnanl.h.
22489         (logl): Perform test for NaN at the beginning of the function and
22490         through a call to isnanl.
22491         * lib/sinl.c: Include isnanl.h.
22492         (sinl): Perform test for NaN at the beginning of the function and
22493         through a call to isnanl.
22494         * lib/sqrtl.c: Include isnanl.h.
22495         (sqrtl): Perform test for NaN at the beginning of the function and
22496         through a call to isnanl.
22497         * lib/tanl.c: Include isnanl.h.
22498         (tanl): Perform test for NaN at the beginning of the function and
22499         through a call to isnanl.
22500         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
22501         * modules/mathl (Depends-on): Add isnanl.
22502
22503 2007-03-26  Eric Blake  <ebb9@byu.net>
22504
22505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
22506         regression in logic sense of previous patch.
22507
22508 2007-03-26  Bruno Haible  <bruno@clisp.org>
22509
22510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
22511         unportable shell command "if ! ...".
22512         Reported by Ralf Wildenhues.
22513
22514 2007-03-25  Bruno Haible  <bruno@clisp.org>
22515
22516         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
22517         <sysexits.h> file, and only add EX_CONFIG.
22518         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
22519         absolute file name and whether it is sufficient. Substitute also
22520         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
22521         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
22522         ABSOLUTE_SYSEXITS_H into sysexits.h.
22523
22524 2007-03-25  Bruno Haible  <bruno@clisp.org>
22525
22526         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
22527         hints is NULL.
22528
22529 2007-03-25  Bruno Haible  <bruno@clisp.org>
22530
22531         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
22532         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22533
22534 2007-03-25  Bruno Haible  <bruno@clisp.org>
22535
22536         * lib/vasnprintf.c: Include langinfo.h.
22537         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
22538         multithread-safe.
22539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
22540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
22541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
22547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22548         Reported by Simon Josefsson.
22549
22550 2007-03-25  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
22553         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
22554         * modules/vasnprintf (Depends-on): Add stdint.
22555
22556 2007-03-25  Bruno Haible  <bruno@clisp.org>
22557
22558         * modules/fpieee: New file.
22559         * m4/fpieee.m4: New file.
22560         * modules/isnan-nolibm (Depends-on): Add fpieee.
22561         * modules/isnanl-nolibm (Depends-on): Add fpieee.
22562         * modules/isnanl (Depends-on): Add fpieee.
22563
22564 2007-03-25  Bruno Haible  <bruno@clisp.org>
22565
22566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
22567
22568 2007-03-25  Bruno Haible  <bruno@clisp.org>
22569
22570         Avoid test failures on IRIX 6.5.
22571         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
22572         (main): Use it.
22573         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
22574         macros.
22575         (main): Use them.
22576
22577 2007-03-25  Bruno Haible  <bruno@clisp.org>
22578
22579         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
22580         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
22581         exists but doesn't work.
22582         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
22583         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
22584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
22585         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
22586
22587 2007-03-25  Bruno Haible  <bruno@clisp.org>
22588
22589         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
22590         returns inf. Needed on IRIX 6.5.
22591
22592 2007-03-25  Bruno Haible  <bruno@clisp.org>
22593
22594         * tests/test-frexpl.c: Include isnanl-nolibm.h.
22595         (main): Use isnanl instead of x != x idiom.
22596         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
22597
22598         * tests/test-frexp.c: Include isnan.h.
22599         (main): Use isnan instead of x != x idiom.
22600         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
22601
22602 2007-03-25  Bruno Haible  <bruno@clisp.org>
22603
22604         * tests/test-frexp.c (NaN): New function/macro.
22605         (main): Use it instead of 0.0 / 0.0.
22606         * tests/test-isnan.c (NaN): New function/macro.
22607         (main): Use it instead of 0.0 / 0.0.
22608         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
22609         (test_function): Use it instead of 0.0 / 0.0.
22610         * tests/test-vasprintf-posix.c (NaN): New function/macro.
22611         (test_function): Use it instead of 0.0 / 0.0.
22612         * tests/test-snprintf-posix.h (NaN): New function/macro.
22613         (test_function): Use it instead of 0.0 / 0.0.
22614         * tests/test-sprintf-posix.h (NaN): New function/macro.
22615         (test_function): Use it instead of 0.0 / 0.0.
22616         * tests/test-fprintf-posix.h (NaN): New function/macro.
22617         (test_function): Use it instead of 0.0 / 0.0.
22618         * tests/test-printf-posix.h (NaN): New function/macro.
22619         (test_function): Use it instead of 0.0 / 0.0.
22620
22621         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
22622
22623 2007-03-25  Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
22626
22627 2007-03-25  Bruno Haible  <bruno@clisp.org>
22628
22629         * lib/regexec.c (merge_state_with_log): Make static.
22630
22631 2007-03-25  Bruno Haible  <bruno@clisp.org>
22632
22633         * lib/trigl.c (kernel_rem_pio2): Make static.
22634
22635 2007-03-25  Bruno Haible  <bruno@clisp.org>
22636
22637         * lib/sincosl.c (sincosl_table): Make static.
22638
22639 2007-03-25  Bruno Haible  <bruno@clisp.org>
22640
22641         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
22642         if the compiler does not support C99.
22643
22644 2007-03-25  Bruno Haible  <bruno@clisp.org>
22645
22646         * modules/time (Makefile.am): Ensure all rule action lines start with a
22647         tab.
22648
22649 2007-03-24  Bruno Haible  <bruno@clisp.org>
22650
22651         * modules/tsearch-tests: New file.
22652         * tests/test-tsearch.sh: New file.
22653         * tests/test-tsearch.c: New file, mostly copied from glibc.
22654
22655         * modules/search-tests: New file.
22656         * tests/test-search.c: New file.
22657
22658         * modules/search: New file.
22659         * lib/search_.h: New file, incorporating lib/tsearch.h.
22660         * m4/search_h.m4: New file.
22661         * lib/tsearch.h: Remove file.
22662         * lib/tsearch.c: Include search.h instead of tsearch.h.
22663         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
22664         HAVE_TSEARCH.
22665         * modules/tsearch (Files): Remove lib/tsearch.h.
22666         (Depends-on): Add search.
22667         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
22668         (Include): Change tsearch.h into search.h.
22669
22670 2007-03-24  Bruno Haible  <bruno@clisp.org>
22671
22672         * modules/fpucw: New file.
22673         * lib/fpucw.h: New file.
22674         * lib/frexp.c: Include fpucw.h.
22675         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22676         (FUNC): Use them.
22677         * lib/printf-frexp.c: Include fpucw.h.
22678         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22679         (FUNC): Use them.
22680         * lib/vasnprintf.c: Include fpucw.h.
22681         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
22682         'long double' calculations.
22683         * tests/test-frexpl.c: Include fpucw.h.
22684         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22685         * tests/test-printf-frexpl.c: Include fpucw.h.
22686         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22687         * modules/frexpl (Depends-on): Add fpucw.
22688         * modules/printf-frexpl (Depends-on): Likewise.
22689         * modules/fprintf-posix (Depends-on): Likewise.
22690         * modules/snprintf-posix (Depends-on): Likewise.
22691         * modules/sprintf-posix (Depends-on): Likewise.
22692         * modules/vasnprintf-posix (Depends-on): Likewise.
22693         * modules/vasprintf-posix (Depends-on): Likewise.
22694         * modules/vfprintf-posix (Depends-on): Likewise.
22695         * modules/vsnprintf-posix (Depends-on): Likewise.
22696         * modules/vsprintf-posix (Depends-on): Likewise.
22697         * modules/frexpl-tests (Depends-on): Likewise.
22698         * modules/printf-frexpl-tests (Depends-on): Likewise.
22699
22700 2007-03-24  Bruno Haible  <bruno@clisp.org>
22701
22702         * lib/float+.h: New file.
22703         * lib/isnan.c: Include float+.h.
22704         (SIZE): New macro.
22705         (FUNC): Compare only SIZE bytes of the value.
22706         * lib/vasnprintf.c: Include float+.h.
22707         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
22708         SIZEOF_LDBL or SIZEOF_DBL bytes.
22709         * modules/isnan-nolibm (Files): Add lib/float+.h.
22710         * modules/isnanl-nolibm (Files): Add lib/float+.h.
22711         * modules/isnanl (Files): Add lib/float+.h.
22712         * modules/vasnprintf (Files): Add lib/float+.h.
22713
22714 2007-03-24  Bruno Haible  <bruno@clisp.org>
22715
22716         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
22717         include isnanl-nolibm.h.
22718
22719 2007-03-24  Bruno Haible  <bruno@clisp.org>
22720
22721         * tests/test-read-file.c (main): Don't produce spurious output for
22722         expected situations. Make the test fail if it encountered unexpected
22723         results.
22724
22725 2007-03-24  Bruno Haible  <bruno@clisp.org>
22726
22727         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
22728         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
22729
22730 2007-03-24  Bruno Haible  <bruno@clisp.org>
22731
22732         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
22733
22734 2007-03-24  Bruno Haible  <bruno@clisp.org>
22735
22736         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
22737         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
22738
22739         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
22740         * modules/utf8-ucs4: Turn into a symbolic link to module
22741         unistr/u8-mbtouc.
22742
22743         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
22744         utf8-ucs4-unsafe.
22745         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
22746         unistr/u8-mbtouc-unsafe.
22747
22748         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
22749         * modules/utf16-ucs4: Turn into a symbolic link to module
22750         unistr/u16-mbtouc.
22751
22752         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
22753         utf16-ucs4-unsafe.
22754         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
22755         unistr/u16-mbtouc-unsafe.
22756
22757         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
22758         * modules/ucs4-utf8: Turn into a symbolic link to module
22759         unistr/u8-ubtomb.
22760
22761         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
22762         * modules/ucs4-utf16: Turn into a symbolic link to module
22763         unistr/u16-ubtomb.
22764
22765 2007-03-24  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
22768         Enable the function only if HAVE_INLINE.
22769         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
22770         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22771         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
22772         Enable the function only if HAVE_INLINE.
22773         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
22774         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22775         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
22776         Enable the function only if HAVE_INLINE.
22777         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
22778         Enable the function only if HAVE_INLINE.
22779         * modules/utf8-ucs4: Update.
22780         * modules/utf8-ucs4-unsafe: Update.
22781         * modules/utf16-ucs4: Update.
22782         * modules/utf16-ucs4-unsafe: Update.
22783         * modules/ucs4-utf8: Update.
22784         * modules/ucs4-utf16: Update.
22785
22786 2007-03-24  Bruno Haible  <bruno@clisp.org>
22787
22788         * lib/utf8-ucs4.h: Remove file.
22789         * lib/utf8-ucs4-unsafe.h: Remove file.
22790         * lib/utf16-ucs4.h: Remove file.
22791         * lib/utf16-ucs4-unsafe.h: Remove file.
22792         * lib/ucs4-utf8.h: Remove file.
22793         * lib/ucs4-utf16.h: Remove file.
22794         * lib/unistr.h: Include their previous contents.
22795         * m4/utf-ucs4.m4: Remove file.
22796         * m4/ucs4-utf.m4: Remove file.
22797         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
22798         (Depends-on): Add unistr/base.
22799         (configure.ac): Remove gl_UTF_UCS4.
22800         (Makefile.am): Update.
22801         (Include): Change to unistr.h.
22802         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
22803         (Depends-on): Add unistr/base.
22804         (configure.ac): Remove gl_UTF_UCS4.
22805         (Makefile.am): Update.
22806         (Include): Change to unistr.h.
22807         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
22808         (Depends-on): Add unistr/base.
22809         (configure.ac): Remove gl_UTF_UCS4.
22810         (Makefile.am): Update.
22811         (Include): Change to unistr.h.
22812         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
22813         (Depends-on): Add unistr/base.
22814         (configure.ac): Remove gl_UTF_UCS4.
22815         (Makefile.am): Update.
22816         (Include): Change to unistr.h.
22817         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
22818         (Depends-on): Add unistr/base.
22819         (configure.ac): Remove gl_UCS4_UTF.
22820         (Makefile.am): Update.
22821         (Include): Change to unistr.h.
22822         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
22823         (Depends-on): Add unistr/base.
22824         (configure.ac): Remove gl_UCS4_UTF.
22825         (Makefile.am): Update.
22826         (Include): Change to unistr.h.
22827         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
22828         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
22829         utf8-ucs4-unsafe.h.
22830         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
22831         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
22832         utf16-ucs4-unsafe.h.
22833         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
22834         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
22835         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
22836         * lib/unistr/u8-strchr.c: Likewise.
22837         * lib/unistr/u8-strrchr.c: Likewise.
22838         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
22839         * lib/unistr/u16-strchr.c: Likewise.
22840         * lib/unistr/u16-strrchr.c: Likewise.
22841         * lib/striconveh.c: Update.
22842         * lib/linebreak.c: Update.
22843
22844 2007-03-24  Bruno Haible  <bruno@clisp.org>
22845
22846         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
22847         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
22848
22849 2007-03-22  Bruno Haible  <bruno@clisp.org>
22850
22851         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
22852
22853 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22854
22855         * MODULES.html.sh (File system functions): New module write-any-file.
22856         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
22857         * m4/write-any-file.m4: New files.
22858
22859 2007-03-23  Eric Blake  <ebb9@byu.net>
22860
22861         * gnulib-tool: Rearrange space-tab sequences, since some editors
22862         like to eat them.
22863
22864 2007-03-23  Eric Blake  <ebb9@byu.net>
22865
22866         * lib/version-etc.c (version_etc_va): Update license wording to
22867         be more concise.  Recommended by Richard Stallman.
22868
22869 2007-03-22  Bruno Haible  <bruno@clisp.org>
22870
22871         * lib/poll.c (MSG_PEEK): New fallback definition.
22872
22873 2007-03-22  Bruno Haible  <bruno@clisp.org>
22874
22875         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
22876         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
22877         (main): Update.
22878         Fixes a compilation error on BeOS.
22879
22880 2007-03-22  Bruno Haible  <bruno@clisp.org>
22881
22882         * modules/frexpl-tests: New file.
22883         * tests/test-frexpl.c: New file.
22884
22885         * modules/frexpl: New file.
22886         * m4/frexpl.m4: New file.
22887         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
22888         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
22889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
22890         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
22891         (Depends-on): Add frexpl. Remove isnanl-nolibm.
22892         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
22893
22894 2007-03-22  Bruno Haible  <bruno@clisp.org>
22895
22896         * lib/frexpl.c: Share code with lib/frexp.c.
22897         * modules/mathl (Files): Add lib/frexp.c.
22898         (Depends-on): Add isnanl-nolibm.
22899
22900 2007-03-22  Bruno Haible  <bruno@clisp.org>
22901
22902         * modules/printf-frexp (Files): Add m4/frexp.m4.
22903         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
22904         only if the found frexp function actually works.
22905
22906 2007-03-22  Bruno Haible  <bruno@clisp.org>
22907
22908         * lib/frexp.c: Remove older implementation that uses divisions.
22909
22910 2007-03-21  Bruno Haible  <bruno@clisp.org>
22911
22912         * modules/frexp-tests: New file.
22913         * tests/test-frexp.c: New file.
22914
22915         * modules/frexp: New file.
22916         * lib/frexp.c: New file.
22917         * m4/frexp.m4: New file.
22918         * lib/math_.h (frexp): New declaration.
22919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22920         REPLACE_FREXP.
22921         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22922
22923 2007-03-21  Bruno Haible  <bruno@clisp.org>
22924
22925         * modules/isnanl-tests: New file.
22926         * tests/test-isnanl.c: New file.
22927
22928         * modules/isnanl: New file.
22929         * lib/isnanl.h: New file.
22930         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22931         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22932         gl_FUNC_ISNANL_WORKS.
22933         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22934         New macros.
22935
22936 2007-03-21  Bruno Haible  <bruno@clisp.org>
22937
22938         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22939         lib/isnanl.h.
22940         (Include): Update.
22941         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22942         * lib/vasnprintf.c: Update.
22943         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22944         tests/test-isnanl.h, remove tests/test-isnanl.c.
22945         (Makefile.am): Update.
22946         * tests/test-isnanl-nolibm.c: New file.
22947         * tests/test-isnanl.h: New file.
22948         * tests/test-isnanl.c: Remove file.
22949
22950 2007-03-21  Jim Meyering  <jim@meyering.net>
22951
22952         When trying to open ".", treat ESTALE like EACCES.
22953         * lib/savewd.c (savewd_save): Resort to forking not just upon
22954         failure with EACCES, but also when errno is ESTALE.
22955
22956 2007-03-20  Bruno Haible  <bruno@clisp.org>
22957
22958         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22959         Needed on AIX 5.1. Reported by Matthew Woehlke.
22960
22961 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         Suggestions by Bruno Haible:
22964         * lib/acl-internal.h: Include "gettext.h" rather than rolling
22965         our own.
22966         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22967         * modules/acl (Depends-on): Add gettext.
22968
22969 2007-03-19  Bruno Haible  <bruno@clisp.org>
22970
22971         * modules/iconvme: Remove file.
22972         * lib/iconvme.h: Remove file.
22973         * lib/iconvme.c: Remove file.
22974         * m4/iconvme.m4: Remove file.
22975
22976 2007-03-19  Bruno Haible  <bruno@clisp.org>
22977
22978         * doc/relocatable-maint.texi: Break long shell script line.
22979         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22980
22981 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22984         handle file_has_acl.
22985         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22986         * lib/acl.c: Move header inclusions and related macro defns into
22987         lib/acl-internal.h.
22988         (S_ISLNK): Remove defn, since that's now done for us.
22989         (file_has_acl): Move to lib/file-has-acl.c.
22990         Call acl_trivial if available.  This is the crucial part of the fix.
22991         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22992         shared within the library.  Rewrite a bit, partly to make it compatible
22993         with the GNU coding style.
22994         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22995         Remove unnecessary double-quotes.
22996         Don't test for acl_to_text; the build will catch that.
22997         Replace acl_entries if it doesn't exist and it is needed.
22998         Check for -lsec and acl_trivial (as used on Solaris 10).
22999         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
23000         lib/file-has-acl.c.
23001         (Depends-on): Add sys_stat, for S_ISLNK.
23002
23003 2007-03-19  Ben Pfaff  <blp@gnu.org>
23004
23005         * doc/gnulib.texi: Fix typos.
23006         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
23007
23008 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23009
23010         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
23011         If size is zero here, buf must be zero.
23012
23013 2007-03-19  Simon Josefsson  <simon@josefsson.org>
23014
23015         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
23016         <bruno@clisp.org>.
23017
23018 2007-03-18  Bruno Haible  <bruno@clisp.org>
23019
23020         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
23021         Suggested by Eric Blake.
23022
23023 2007-03-18  Ben Pfaff  <blp@gnu.org>
23024
23025         * doc/relocatable.texi: Recommend using as prefix a directory
23026         that does not exist and will never be created.  Based on
23027         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
23028         and others.
23029
23030 2007-03-17  Bruno Haible  <bruno@clisp.org>
23031
23032         * lib/fchownat.c: Include lchown.h.
23033
23034 2007-03-17  Bruno Haible  <bruno@clisp.org>
23035
23036         Fix endless loop when the given allocated size was > INT_MAX.
23037         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
23038         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
23039         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
23040         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
23041         * lib/sprintf.c (sprintf): Likewise.
23042
23043 2007-03-17  Bruno Haible  <bruno@clisp.org>
23044
23045         * tests/test-argp-2.sh (func_compare): Output a context diff.
23046
23047 2007-03-17  Bruno Haible  <bruno@clisp.org>
23048
23049         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
23050         locale's decimal-point character.
23051
23052 2007-03-17  Bruno Haible  <bruno@clisp.org>
23053
23054         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
23055         before comparing it. Needed because on some platforms (e.g. x86) a
23056         'long double' occupies less bytes than sizeof (long double).
23057
23058 2007-03-17  Bruno Haible  <bruno@clisp.org>
23059
23060         * tests/test-crc.c (main): Make printf statements 64-bit clean.
23061         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
23062         * tests/test-getaddrinfo.c (simple): Likewise.
23063         * tests/test-read-file.c (main): Likewise.
23064
23065 2007-03-17  Bruno Haible  <bruno@clisp.org>
23066
23067         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
23068
23069 2007-03-17  Bruno Haible  <bruno@clisp.org>
23070
23071         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
23072         unused variable.
23073
23074 2007-03-17  Bruno Haible  <bruno@clisp.org>
23075
23076         * tests/test-c-strcasecmp.c: Include c-strcase.h.
23077         * tests/test-c-strncasecmp.c: Likewise.
23078
23079 2007-03-17  Bruno Haible  <bruno@clisp.org>
23080
23081         * modules/stdlib (Depends-on): Add unistd.
23082         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
23083         Needed for MacOS X 10.3.
23084
23085 2007-03-17  Bruno Haible  <bruno@clisp.org>
23086
23087         * lib/unistr/u-strdup.h: Include <stdlib.h>.
23088
23089 2007-03-17  Bruno Haible  <bruno@clisp.org>
23090
23091         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
23092
23093 2007-03-17  Bruno Haible  <bruno@clisp.org>
23094
23095         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
23096         to reflect files copied from gnulib (with or without modifications).
23097         Suggested by Jim Meyering.
23098
23099 2007-03-17  Eric Blake  <ebb9@byu.net>
23100
23101         * NEWS: Document stdlib change from 2007-02-18.
23102
23103 2007-03-17  Jim Meyering  <jim@meyering.net>
23104
23105         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
23106         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
23107         someone uses a name containing shell meta-characters.
23108         Reported by Alfred M. Szmidt.
23109
23110         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
23111
23112 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
23113
23114         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
23115         and copy gettext configuration files only if configure.ac contains
23116         a use of AM_GNU_GETTEXT_VERSION.
23117
23118 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
23119
23120         * build-aux/bootstrap (gnulib_name): New variable.
23121         (gnulib_tool_options): Use it.
23122
23123 2007-03-13  Simon Josefsson  <simon@josefsson.org>
23124
23125         * tests/test-des.c: Use new namespace.
23126
23127 2007-03-15  Bruno Haible  <bruno@clisp.org>
23128
23129         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
23130         Reported by James Youngman <jay@gnu.org>.
23131
23132 2007-03-15  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
23135         declared prototype. Needed with cc on OSF/1 5.1.
23136
23137 2007-03-15  Bruno Haible  <bruno@clisp.org>
23138
23139         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
23140         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
23141         (struct gl_list_implementation): Add dispose_fn argument to the
23142         'create_empty', 'create' methods.
23143         (struct gl_list_impl_base): Add field 'dispose_fn'.
23144         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
23145         argument.
23146         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
23147         dispose_fn argument.
23148         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
23149         dispose_fn on the dropped values.
23150         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
23151         dispose_fn argument.
23152         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
23153         dropped values.
23154         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
23155         (gl_tree_remove_node): Call dispose_fn on the dropped value.
23156         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
23157         (gl_tree_remove_node): Call dispose_fn on the dropped value.
23158         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
23159         argument.
23160         (gl_tree_list_free): Call dispose_fn on the dropped values.
23161         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
23162         the dropped values.
23163         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
23164         Add dispose_fn argument.
23165         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
23166         Call dispose_fn on the dropped values.
23167         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
23168         Add dispose_fn argument.
23169         (gl_sublist_create): Initialize the 'dispose_fn' field.
23170         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
23171         * tests/test-array_list.c (main): Update.
23172         * tests/test-carray_list.c (main): Update.
23173         * tests/test-avltree_list.c (main): Update.
23174         * tests/test-rbtree_list.c (main): Update.
23175         * tests/test-avltreehash_list.c (main): Update.
23176         * tests/test-rbtreehash_list.c (main): Update.
23177         * tests/test-linked_list.c (main): Update.
23178         * tests/test-linkedhash_list.c (main): Update.
23179         * tests/test-array_oset.c (main): Update.
23180
23181 2007-03-15  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
23184         (gl_oset_create_empty): Add dispose_fn argument.
23185         (struct gl_oset_implementation): Add dispose_fn argument to
23186         'create_empty' method.
23187         (struct gl_oset_impl_base): Add dispose_fn field.
23188         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
23189         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
23190         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
23191         values.
23192         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
23193         (gl_tree_oset_free): Call dispose_fn on the dropped values.
23194         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
23195         dropped value.
23196         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
23197         dropped value.
23198         * tests/test-array_oset.c (main): Update.
23199         * tests/test-avltree_oset.c (main): Update.
23200         * tests/test-rbtree_oset.c (main): Update.
23201         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
23202
23203 2007-03-13  Bruno Haible  <bruno@clisp.org>
23204
23205         * tests/test-stdbool.c (i): Update after last patch.
23206
23207 2007-03-12  Bruno Haible  <bruno@clisp.org>
23208
23209         * lib/quotearg.c: Include <wctype.h> early, before the definition of
23210         the iswprint macro. Needed on Solaris 2.5.1.
23211
23212 2007-03-12  Bruno Haible  <bruno@clisp.org>
23213
23214         * tests/test-printf-frexp.c (main): Declare x as volatile.
23215
23216 2007-03-12  Simon Josefsson  <simon@josefsson.org>
23217
23218         * doc/gnulib.texi (Build robot for gnulib): New section.
23219
23220 2007-03-12  Jim Meyering  <jim@meyering.net>
23221
23222         * build-aux/bootstrap: New file.
23223         * build-aux/bootstrap.conf: New file, from coreutils.
23224
23225 2007-03-11  Bruno Haible  <bruno@clisp.org>
23226
23227         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
23228
23229 2007-03-12  Simon Josefsson  <simon@josefsson.org>
23230
23231         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
23232         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
23233         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
23234
23235 2007-03-11  Bruno Haible  <bruno@clisp.org>
23236
23237         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
23238         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
23239
23240 2007-03-11  Bruno Haible  <bruno@clisp.org>
23241
23242         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
23243         formula. Needed for SunPRO C 5.0.
23244
23245 2007-03-11  Bruno Haible  <bruno@clisp.org>
23246
23247         * modules/long-options (Depends-on): Add getopt.
23248
23249 2007-03-11  Bruno Haible  <bruno@clisp.org>
23250
23251         * modules/modechange (Depends-on): Add stdbool.
23252
23253 2007-03-11  Bruno Haible  <bruno@clisp.org>
23254
23255         * modules/i-ring (Depends-on): Add stdbool.
23256
23257 2007-03-11  Bruno Haible  <bruno@clisp.org>
23258
23259         * modules/gc-des (Depends-on): Add stdbool.
23260
23261 2007-03-11  Bruno Haible  <bruno@clisp.org>
23262
23263         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
23264
23265 2007-03-11  Bruno Haible  <bruno@clisp.org>
23266
23267         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
23268
23269 2007-03-11  Bruno Haible  <bruno@clisp.org>
23270
23271         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
23272
23273 2007-03-11  Bruno Haible  <bruno@clisp.org>
23274
23275         * lib/vasnprintf.c (sprintf): Undefine.
23276
23277 2007-03-11  Bruno Haible  <bruno@clisp.org>
23278
23279         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
23280         initializers in SunPRO C and Compaq C compilers.
23281
23282 2007-03-11  Bruno Haible  <bruno@clisp.org>
23283
23284         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
23285         decrementing code ANSI C compliant.
23286
23287 2007-03-11  Bruno Haible  <bruno@clisp.org>
23288
23289         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
23290         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
23291
23292 2007-03-11  Bruno Haible  <bruno@clisp.org>
23293
23294         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
23295         <stdbool.h> substitute doesn't pass.
23296
23297 2007-03-11  Bruno Haible  <bruno@clisp.org>
23298
23299         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
23300
23301 2007-03-11  Bruno Haible  <bruno@clisp.org>
23302
23303         * gnulib-tool (func_create_megatestdir): Create also an autobuild
23304         script, for submission to autobuild.josefsson.org.
23305
23306 2007-03-10  Bruno Haible  <bruno@clisp.org>
23307
23308         * modules/canonicalize-lgpl-tests: New file.
23309         * tests/test-canonicalize-lgpl.sh: New file.
23310         * tests/test-canonicalize-lgpl.c: New file.
23311
23312         * modules/c-strcase-tests: New file.
23313         * tests/test-c-strcase.sh: New file.
23314         * tests/test-c-strcasecmp.c: New file.
23315         * tests/test-c-strncasecmp.c: New file.
23316
23317         * modules/atexit-tests: New file.
23318         * tests/test-atexit.sh: New file.
23319         * tests/test-atexit.c: New file.
23320
23321 2007-03-10  Bruno Haible  <bruno@clisp.org>
23322
23323         * tests/test-binary-io.sh: Use temporary filenames that are not so
23324         likely to clash with those of other tests (in a parallel make).
23325         * tests/test-binary-io.c: Likewise.
23326
23327 2007-03-10  Bruno Haible  <bruno@clisp.org>
23328
23329         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
23330         fallback; use #error instead.
23331         Suggested by Simon Josefsson.
23332
23333 2007-03-10  Bruno Haible  <bruno@clisp.org>
23334
23335         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
23336         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
23337         first and the last.
23338
23339 2007-03-10  Bruno Haible  <bruno@clisp.org>
23340
23341         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
23342
23343 2007-03-10  Bruno Haible  <bruno@clisp.org>
23344
23345         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
23346         "make distcheck".
23347         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
23348         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
23349         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
23350
23351 2007-03-10  Bruno Haible  <bruno@clisp.org>
23352
23353         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
23354         variable.
23355         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
23356         variable.
23357
23358 2007-03-09  Eric Blake  <ebb9@byu.net>
23359         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
23360
23361         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
23362         types are not being provided by gnulib.
23363         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
23364         types are supported.
23365
23366 2007-03-10  Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/stdio_.h (__attribute__): New macro.
23369         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
23370         vsprintf): Specify __attribute__ __format__ for GCC.
23371         Suggested by Eric Blake.
23372
23373 2007-03-09  Bruno Haible  <bruno@clisp.org>
23374
23375         * modules/printf-posix-tests: New file.
23376         * tests/test-printf-posix.sh: New file.
23377         * tests/test-printf-posix.c: New file.
23378
23379         * modules/printf-posix: New file.
23380         * lib/printf.c: New file.
23381         * m4/printf-posix-rpl.m4: New file.
23382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
23383         REPLACE_PRINTF.
23384         * lib/stdio_.h (printf): New declaration.
23385         (format, __format__, ____printf____, ____scanf____, ____strftime____,
23386         ____strfmon____): New macros.
23387         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
23388         REPLACE_PRINTF.
23389
23390 2007-03-09  Bruno Haible  <bruno@clisp.org>
23391
23392         * tests/test-vasnprintf-posix2.sh: New file.
23393         * tests/test-vasnprintf-posix2.c: New file.
23394         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
23395         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23396         (Makefile.am): Activate test-vasnprintf-posix2.sh.
23397
23398         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
23399         a locale dependent decimal point, rather than always '.'.
23400
23401 2007-03-09  Eric Blake  <ebb9@byu.net>
23402
23403         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
23404         spite of platforms like Tandem/NSK that define it to -1.
23405
23406 2007-03-08  Bruno Haible  <bruno@clisp.org>
23407
23408         * modules/vprintf-posix-tests: New file.
23409         * tests/test-vprintf-posix.sh: New file.
23410         * tests/test-vprintf-posix.c: New file.
23411         * tests/test-printf-posix.h: New file.
23412
23413         * modules/vprintf-posix: New file.
23414         * lib/vprintf.c: New file.
23415         * m4/vprintf-posix.m4: New file.
23416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
23417         REPLACE_VPRINTF.
23418         * lib/stdio_.h (vprintf): New declaration.
23419         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
23420         REPLACE_VPRINTF.
23421
23422 2007-03-08  Bruno Haible  <bruno@clisp.org>
23423
23424         * modules/fprintf-posix-tests: New file.
23425         * tests/test-fprintf-posix.sh: New file.
23426         * tests/test-fprintf-posix.c: New file.
23427
23428         * modules/fprintf-posix: New file.
23429         * lib/fprintf.c: New file.
23430         * m4/fprintf-posix.m4: New file.
23431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
23432         REPLACE_FPRINTF.
23433         * lib/stdio_.h (fprintf): New declaration.
23434         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
23435         REPLACE_FPRINTF.
23436
23437 2007-03-08  Bruno Haible  <bruno@clisp.org>
23438
23439         * modules/vfprintf-posix-tests: New file.
23440         * tests/test-vfprintf-posix.sh: New file.
23441         * tests/test-vfprintf-posix.c: New file.
23442         * tests/test-fprintf-posix.h: New file.
23443         * tests/test-fprintf-posix.out: New file.
23444
23445         * modules/vfprintf-posix: New file.
23446         * lib/vfprintf.c: New file.
23447         * m4/vfprintf-posix.m4: New file.
23448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
23449         REPLACE_VFPRINTF.
23450         * lib/stdio_.h (vfprintf): New declaration.
23451         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
23452         REPLACE_VFPRINTF.
23453
23454 2007-03-08  Bruno Haible  <bruno@clisp.org>
23455
23456         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
23457
23458 2007-03-08  Bruno Haible  <bruno@clisp.org>
23459
23460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
23461         instead of 'expr' invocations.
23462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23467         Suggested by Paul Eggert.
23468
23469 2007-03-08  Bruno Haible  <bruno@clisp.org>
23470
23471         * modules/fseterr-tests: New file.
23472         * tests/test-fseterr.c: New file.
23473
23474         * modules/fseterr: New file.
23475         * lib/fseterr.h: New file.
23476         * lib/fseterr.c: New file.
23477
23478 2007-03-08  Bruno Haible  <bruno@clisp.org>
23479
23480         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
23481         * lib/getopt_.h: Likewise.
23482         * lib/mbswidth.h: Likewise.
23483         * lib/setenv.h: Likewise.
23484         * lib/vasnprintf.h: Likewise.
23485         * lib/vasprintf.h: Likewise.
23486         * lib/verror.h: Likewise.
23487         * lib/xsetenv.h: Likewise.
23488         * lib/xvasprintf.h: Likewise.
23489
23490 2007-03-08  Jim Meyering  <jim@meyering.net>
23491
23492         * users.txt: Add parted.
23493
23494         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
23495
23496 2007-03-07  Bruno Haible  <bruno@clisp.org>
23497
23498         * m4/printf.m4: Make the shell script snippets copy&pastable.
23499
23500 2007-03-02  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/netinet_in_.h: New file.
23503         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
23504         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
23505         * modules/netinet_in (Files): Add lib/netinet_in_.h.
23506         (Depends-on): Add absolute-header.
23507         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
23508         into netinet/in.h.
23509
23510 2007-03-03  Bruno Haible  <bruno@clisp.org>
23511
23512         * lib/sys_select_.h: New file.
23513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
23514         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
23515         * modules/sys_select (Files): Add lib/sys_select_.h.
23516         (Depends-on): Add absolute-header.
23517         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
23518         into sys/select.h.
23519
23520 2007-03-02  Bruno Haible  <bruno@clisp.org>
23521
23522         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
23523         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
23524         values.
23525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
23526         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
23527         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
23528         * modules/sys_socket (Depends-on): Add absolute-header.
23529         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
23530         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
23531         (Include): Remove requirement of inclusion of <sys/types.h>.
23532
23533 2007-03-02  Bruno Haible  <bruno@clisp.org>
23534
23535         * lib/byteswap_.h (bswap_32): Fix formula.
23536
23537 2007-03-06  Bruno Haible  <bruno@clisp.org>
23538
23539         * modules/sprintf-posix-tests: New file.
23540         * tests/test-sprintf-posix.c: New file.
23541
23542         * modules/sprintf-posix: New file.
23543         * lib/sprintf.c: New file.
23544         * m4/sprintf-posix.m4: New file.
23545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
23546         REPLACE_SPRINTF.
23547         * lib/stdio_.h (sprintf): New declaration.
23548         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
23549         REPLACE_SPRINTF.
23550
23551 2007-03-06  Bruno Haible  <bruno@clisp.org>
23552
23553         * modules/vsprintf-posix-tests: New file.
23554         * tests/test-vsprintf-posix.c: New file.
23555         * tests/test-sprintf-posix.h: New file.
23556
23557         * modules/vsprintf-posix: New file.
23558         * lib/vsprintf.c: New file.
23559         * m4/vsprintf-posix.m4: New file.
23560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
23561         REPLACE_VSPRINTF.
23562         * lib/stdio_.h (vsprintf): New declaration.
23563         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
23564         REPLACE_VSPRINTF.
23565
23566 2007-03-06  Bruno Haible  <bruno@clisp.org>
23567
23568         * modules/vsnprintf (Depend-on): Remove minmax.
23569
23570 2007-03-06  Bruno Haible  <bruno@clisp.org>
23571
23572         * modules/snprintf-posix-tests: New file.
23573         * tests/test-snprintf-posix.c: New file.
23574
23575         * modules/snprintf-posix: New file.
23576         * m4/snprintf-posix.m4: New file.
23577         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
23578         gl_FUNC_SNPRINTF.
23579         (gl_FUNC_SNPRINTF): Invoke it.
23580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
23581         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
23582         is set.
23583         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
23584
23585 2007-03-06  Bruno Haible  <bruno@clisp.org>
23586
23587         * modules/vsnprintf-posix-tests: New file.
23588         * tests/test-vsnprintf-posix.c: New file.
23589         * tests/test-snprintf-posix.h: New file.
23590
23591         * modules/vsnprintf-posix: New file.
23592         * m4/vsnprintf-posix.m4: New file.
23593         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
23594         gl_FUNC_VSNPRINTF.
23595         (gl_FUNC_VSNPRINTF): Invoke it.
23596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
23597         * lib/stdio_.h (vsnprintf): Define as a replacement if
23598         REPLACE_VSNPRINTF is set.
23599         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
23600
23601 2007-03-06  Bruno Haible  <bruno@clisp.org>
23602
23603         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
23604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
23605
23606 2007-03-06  Bruno Haible  <bruno@clisp.org>
23607
23608         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
23609         (asinl): Declare also if HAVE_DECL_ASINL is set.
23610         (atanl): Declare also if HAVE_DECL_ATANL is set.
23611         (ceill): Declare also if HAVE_DECL_CEILL is set.
23612         (cosl): Declare also if HAVE_DECL_COSL is set.
23613         (expl): Declare also if HAVE_DECL_EXPL is set.
23614         (floorl): Declare also if HAVE_DECL_FLOORL is set.
23615         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
23616         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
23617         (logl): Declare also if HAVE_DECL_LOGL is set.
23618         (sinl): Declare also if HAVE_DECL_SINL is set.
23619         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
23620         (tanl): Declare also if HAVE_DECL_TANL is set.
23621         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
23622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
23623         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
23624         declaration of frexpl, ldexpl.
23625         * modules/printf-frexpl (Depends-on): Add math.
23626         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
23627
23628 2007-03-05  Bruno Haible  <bruno@clisp.org>
23629
23630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
23631         frexpl and ldexpl are declared.
23632         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
23633
23634 2007-03-05  Bruno Haible  <bruno@clisp.org>
23635
23636         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
23637         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
23638
23639 2007-03-05  Bruno Haible  <bruno@clisp.org>
23640
23641         * lib/stdio_.h: Include <stddef.h>.
23642
23643 2007-03-05  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
23646
23647 2007-03-05  Bruno Haible  <bruno@clisp.org>
23648
23649         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
23650         NetBSD 4, from Ralf Wildenhues.
23651
23652 2007-03-04  Bruno Haible  <bruno@clisp.org>
23653
23654         * lib/vasprintf.h: Update #if logic for the case when the functions
23655         exist but are overridden.
23656
23657 2007-03-04  Bruno Haible  <bruno@clisp.org>
23658
23659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
23660         implementations: glibc-2.4 and MacOS X 10.3.
23661         * tests/test-vasnprintf-posix.c (test_function): Test also the case
23662         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
23663         * tests/test-vasprintf-posix.c (test_function): Likewise.
23664
23665 2007-03-04  Bruno Haible  <bruno@clisp.org>
23666
23667         * modules/vasprintf-posix-tests: New file.
23668         * tests/test-vasprintf-posix.c: New file.
23669
23670         * modules/vasprintf-posix: New file.
23671         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
23672         defined.
23673         * m4/vasprintf-posix.m4: New file.
23674         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
23675         gl_FUNC_VASPRINTF.
23676         (gl_FUNC_VASPRINTF): Invoke it.
23677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
23678         here.
23679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
23680
23681 2007-03-04  Bruno Haible  <bruno@clisp.org>
23682
23683         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
23684         REPLACE_GETTIMEOFDAY.
23685         * modules/sys_time (Makefile.am): Likewise.
23686         * m4/sys_time_h.m4: Likewise.
23687         * m4/gettimeofday.m4: Likewise.
23688
23689 2007-03-04  Bruno Haible  <bruno@clisp.org>
23690
23691         * modules/vasnprintf-posix-tests: New file.
23692         * tests/test-vasnprintf-posix.c: New file.
23693
23694         * modules/vasnprintf-posix: New file.
23695         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
23696         printf-frexpl.h.
23697         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
23698         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
23699         REPLACE_VASNPRINTF is defined.
23700         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
23701         gl_FUNC_VASNPRINTF.
23702         (gl_FUNC_VASNPRINTF): Invoke it.
23703         * m4/vasnprintf-posix.m4: New file.
23704         * m4/printf.m4: New file.
23705
23706 2007-03-04  Bruno Haible  <bruno@clisp.org>
23707
23708         Compile progreloc.c only if --enable-relocatable is specified.
23709         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
23710         if --enable-relocatable was specified.
23711         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
23712         lib_SOURCES.
23713
23714 2007-03-04  Jim Meyering  <jim@meyering.net>
23715
23716         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
23717         Use it consistently, rather than enumerating errno constants.
23718
23719 2007-03-04  Bruno Haible  <bruno@clisp.org>
23720
23721         * modules/xvasprintf-tests: New file.
23722         * tests/test-xvasprintf.c: New file.
23723
23724         * modules/vasprintf-tests: New file.
23725         * tests/test-vasprintf.c: New file.
23726
23727         * modules/vasnprintf-tests: New file.
23728         * tests/test-vasnprintf.c: New file.
23729
23730         * modules/vsnprintf-tests: New file.
23731         * tests/test-vsnprintf.c: New file.
23732
23733         * modules/snprintf-tests: New file.
23734         * tests/test-snprintf.c: New file.
23735
23736 2007-03-04  Bruno Haible  <bruno@clisp.org>
23737
23738         Compile relocatable.c only if --enable-relocatable is specified.
23739         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
23740         gl_RELOCATABLE_LIBRARY.
23741         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
23742         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
23743         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
23744         gl_RELOCATABLE_LIBRARY.
23745         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
23746         (Makefile.am): Remove lib_SOURCES.
23747         * modules/relocatable-lib-lgpl (configure.ac): Invoke
23748         gl_RELOCATABLE_LIBRARY.
23749         (Makefile.am): Remove lib_SOURCES.
23750         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
23751         always.
23752         * modules/relocatable-prog-wrapper (configure.ac): Invoke
23753         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
23754
23755 2007-03-04  Bruno Haible  <bruno@clisp.org>
23756
23757         * modules/argmatch-tests: New file.
23758         * tests/test-argmatch.c: New file.
23759
23760         * tests/test-allocsa.c (main): Halve the number of loop runs.
23761
23762         * modules/alloca-opt-tests: New file.
23763         * tests/test-alloca-opt.c: New file.
23764
23765 2007-03-04  Jim Meyering  <jim@meyering.net>
23766
23767         Work around difference between Linux ACLs and Solaris 10 ZFS.
23768         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
23769         for EINVAL.
23770
23771 2007-03-03  Bruno Haible  <bruno@clisp.org>
23772
23773         * modules/relocatable-prog (Depends-on): Add back progreloc's
23774         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
23775
23776 2007-03-03  Bruno Haible  <bruno@clisp.org>
23777
23778         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
23779         * modules/relocatable-lib: New file.
23780
23781 2007-03-03  Bruno Haible  <bruno@clisp.org>
23782
23783         * modules/relocatable-prog: Renamed from modules/relocatable.
23784         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
23785
23786 2007-03-03  Bruno Haible  <bruno@clisp.org>
23787
23788         * modules/relocatable-script (Files): Add doc/relocatable.texi,
23789         m4/relocatable-lib.m4.
23790         (Depends-on): Remove 'relocatable'.
23791         (configure.ac): Add gl_RELOCATABLE_NOP.
23792
23793 2007-03-03  Bruno Haible  <bruno@clisp.org>
23794
23795         * modules/relocatable-prog-wrapper: New file.
23796         * modules/relocatable (Depends-on): Add it. Remove all other
23797         dependencies except progname.
23798         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
23799
23800         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
23801         (gl_FUNC_STRERROR): Nop.
23802         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
23803
23804         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
23805         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
23806
23807         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
23808         (gl_FUNC_READLINK): Update.
23809
23810         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
23811
23812 2007-03-03  Bruno Haible  <bruno@clisp.org>
23813
23814         * lib/xreadlink.c: Include <unistd.h> unconditionally.
23815         * modules/xreadlink (Depends-on): Add unistd.
23816         * modules/xreadlink-with-size (Depends-on): Likewise.
23817
23818 2007-03-03  Bruno Haible  <bruno@clisp.org>
23819
23820         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
23821         extracted from gt_FUNC_SETENV.
23822         (gt_FUNC_SETENV): Remove macro.
23823         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
23824         remove gt_FUNC_SETENV.
23825
23826 2007-03-03  Bruno Haible  <bruno@clisp.org>
23827
23828         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
23829         ENABLE_RELOCATABLE here.
23830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
23831
23832 2007-03-03  Bruno Haible  <bruno@clisp.org>
23833
23834         * modules/rbtreehash-list-tests (Depends-on): Add progname.
23835         * tests/test-rbtreehash_list.c: Include progname.h.
23836         (main): Call set_program_name.
23837
23838         * modules/rbtree-oset-tests (Depends-on): Add progname.
23839         * tests/test-rbtree_oset.c: Include progname.h.
23840         (main): Call set_program_name.
23841
23842         * modules/rbtree-list-tests (Depends-on): Add progname.
23843         * tests/test-rbtree_list.c: Include progname.h.
23844         (main): Call set_program_name.
23845
23846         * modules/linked-list-tests (Depends-on): Add progname.
23847         * tests/test-linked_list.c: Include progname.h.
23848         (main): Call set_program_name.
23849
23850 2007-03-03  Bruno Haible  <bruno@clisp.org>
23851
23852         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
23853         All uses of __restrict changed to _Restrict_.
23854         * lib/glob_.h (__restrict): Remove macro.
23855
23856 2007-03-02  Bruno Haible  <bruno@clisp.org>
23857
23858         * modules/gettext (configure.ac): Require gettext infrastructure
23859         from version 0.16.1.
23860
23861 2007-03-02  Bruno Haible  <bruno@clisp.org>
23862
23863         * modules/linkedhash-list-tests (Depends-on): Add progname.
23864         * tests/test-linkedhash_list.c: Include progname.h.
23865         (main): Call set_program_name.
23866
23867         * modules/carray-list-tests (Depends-on): Add progname.
23868         * tests/test-carray_list.c: Include progname.h.
23869         (main): Call set_program_name.
23870
23871         * modules/avltreehash-list-tests (Depends-on): Add progname.
23872         * tests/test-avltreehash_list.c: Include progname.h.
23873         (main): Call set_program_name.
23874
23875         * modules/avltree-oset-tests (Depends-on): Add progname.
23876         * tests/test-avltree_oset.c: Include progname.h.
23877         (main): Call set_program_name.
23878
23879         * modules/avltree-list-tests (Depends-on): Add progname.
23880         * tests/test-avltree_list.c: Include progname.h.
23881         (main): Call set_program_name.
23882
23883         * modules/array-oset-tests (Depends-on): Add progname.
23884         * tests/test-array_oset.c: Include progname.h.
23885         (main): Call set_program_name.
23886
23887         * modules/array-list-tests (Depends-on): Add progname.
23888         * tests/test-array_list.c: Include progname.h.
23889         (main): Call set_program_name.
23890
23891         * modules/argp-tests (Depends-on): Add progname.
23892         * tests/test-argp.c: Include argp.h first. Include progname.h.
23893         (main): Call set_program_name.
23894
23895 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
23896
23897         * doc/gnulib-tool.texi (Initial import): Reword description of
23898         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
23899         limited effect even if defined after the first system include.
23900
23901 2007-03-01  Bruno Haible  <bruno@clisp.org>
23902
23903         * build-aux/config.libpath: Update to libtool-1.5.22.
23904         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23905
23906 2007-03-01  Bruno Haible  <bruno@clisp.org>
23907
23908         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
23909         foo_CFLAGS.
23910         Reported by Ralf Wildenhues.
23911
23912 2007-03-01  Bruno Haible  <bruno@clisp.org>
23913
23914         * build-aux/install-reloc: Remove object files left over by some
23915         compilers.
23916         Reported by Ralf Wildenhues.
23917
23918 2007-03-01  Bruno Haible  <bruno@clisp.org>
23919
23920         * build-aux/install-reloc: Break long lines.
23921
23922 2007-03-01  Bruno Haible  <bruno@clisp.org>
23923
23924         * doc/relocatable.texi: Document that it may not work on OpenBSD.
23925         Reported by Ralf Wildenhues.
23926
23927 2007-03-01  Bruno Haible  <bruno@clisp.org>
23928
23929         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23930         include ordering constraints.
23931
23932 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23933
23934         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23936         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23937         as another example.
23938         * lib/time_.h: Fix misspelling.
23939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23940         Require gl_HEADER_TIME_H_DEFAULTS.
23941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23942         * m4/time_r.m4 (gl_TIME_R): Likewise.
23943         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23944
23945 2007-03-01  Bruno Haible  <bruno@clisp.org>
23946
23947         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23948         * m4/utimens.m4 (gl_UTIMENS): Likewise.
23949
23950 2007-03-01  Jim Meyering  <jim@meyering.net>
23951
23952         * modules/xreadlink (Maintainer): Add my name.
23953         * modules/xreadlink-with-size (Depends-on): Alphabetize.
23954
23955 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
23956             Bruno Haible  <bruno@clisp.org>
23957
23958         * build-aux/install-reloc: Compile also c-ctype.c.
23959         * build-aux/relocatable.sh.in: New file.
23960         * doc/relocatable.texi: New file.
23961         * doc/relocatable-maint.texi: New file.
23962         * doc/gnulib.texi: Include relocatable-maint.texi.
23963         * lib/progreloc.c: Include unistd.h unconditionally.
23964         * lib/relocwrapper.c: Include unistd.h unconditionally.
23965         Include c-ctype.h.
23966         (add_dotbin): Use c_tolower.
23967         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23968         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23969         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23970         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23971         to m4/relocatable-lib.m4.
23972         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23973         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23974         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23975         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23976         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23977         * modules/relocatable: New file.
23978         * modules/relocatable-lib: New file.
23979         * modules/relocatable-script: New file.
23980
23981 2007-02-28  Bruno Haible  <bruno@clisp.org>
23982
23983         Import --enable-relocatable infrastructure.
23984         * build-aux/config.libpath: New file, from GNU gettext.
23985         * build-aux/install-reloc: New file, from GNU gettext.
23986         * build-aux/reloc-ldflags: New file, from GNU gettext.
23987         * lib/relocatable.h: New file, from GNU gettext.
23988         * lib/relocatable.c: New file, from GNU gettext.
23989         * lib/relocwrapper.c: New file, from GNU gettext.
23990         * m4/relocatable.m4: New file, from GNU gettext.
23991
23992 2007-02-28  Bruno Haible  <bruno@clisp.org>
23993
23994         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23995
23996         * modules/xreadlink: New file, from GNU gettext with modifications.
23997         * lib/xreadlink.c: New file, from GNU gettext.
23998         * lib/xreadlink.h: Add comments.
23999         (xreadlink): New declaration.
24000
24001         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
24002         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
24003         lib/xreadlink-with-size.c.
24004         (configure.ac): Remove gl_XREADLINK invocation.
24005         (Makefile.am): Augment lib_SOURCES.
24006         * m4/xreadlink.m4: Remove file.
24007         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
24008         (xreadlink_with_size): Renamed from xreadink.
24009         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
24010         * modules/canonicalize (Depends-on): Replace xreadlink with
24011         xreadlink-with-size.
24012         * lib/canonicalize.c (canonicalize_filename_mode): Update.
24013
24014 2007-02-25  Jim Meyering  <jim@meyering.net>
24015
24016         * build-aux/announce-gen: When complaining about excess arguments,
24017         list them.
24018
24019 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24020
24021         * README: Document signed integer overflow situation more
24022         accurately.
24023
24024 2007-02-25  Bruno Haible  <bruno@clisp.org>
24025
24026         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
24027         'a' or 'A' conversion.
24028
24029 2007-02-25  Bruno Haible  <bruno@clisp.org>
24030
24031         * modules/filename: Renamed from modules/pathname.
24032         (Files): Replace lib/pathname.h with lib/filename.h. Replace
24033         lib/concatpath.c with lib/concat-filename.c.
24034         (Makefile.am): Update.
24035         (Include): Replace pathname.h with filename.h.
24036         * lib/filename.h: Renamed from lib/pathname.h.
24037         (concatenated_filename): Renamed from concatenated_pathname.
24038         * lib/concat-filename.c: Renamed from lib/concatpath.c.
24039         (concatenated_filename): Renamed from concatenated_pathname.
24040         * lib/findprog.c: Include filename.h instead of pathname.h.
24041         (find_in_path): Update.
24042         * lib/javacomp.c: Include filename.h instead of pathname.h.
24043         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
24044         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
24045         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
24046         is_oldgcj_14_13_usable, is_javac_usable): Update.
24047         * lib/javaexec.c: Include filename.h instead of pathname.h.
24048         (execute_java_class): Update.
24049         * modules/findprog: Update.
24050         * modules/javacomp: Update.
24051         * modules/javaexec: Update.
24052         * MODULES.html.sh (File system functions): Add 'filename', remove
24053         'pathname'.
24054
24055 2007-02-25  Bruno Haible  <bruno@clisp.org>
24056
24057         * modules/printf-frexpl-tests: New file.
24058         * tests/test-printf-frexpl.c: New file.
24059
24060         * modules/printf-frexpl: New file.
24061         * lib/printf-frexpl.h: New file.
24062         * lib/printf-frexpl.c: New file.
24063         * m4/printf-frexpl.m4: New file.
24064
24065 2007-02-25  Bruno Haible  <bruno@clisp.org>
24066
24067         * modules/printf-frexp-tests: New file.
24068         * tests/test-printf-frexp.c: New file.
24069
24070         * modules/printf-frexp: New file.
24071         * lib/printf-frexp.h: New file.
24072         * lib/printf-frexp.c: New file.
24073         * m4/printf-frexp.m4: New file.
24074
24075 2007-02-25  Bruno Haible  <bruno@clisp.org>
24076
24077         Assume automake >= 1.10 for the tests.
24078         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
24079         * modules/arctwo-tests: Likewise.
24080         * modules/argp-tests: Likewise.
24081         * modules/avltree-list-tests: Likewise.
24082         * modules/avltree-oset-tests: Likewise.
24083         * modules/avltreehash-list-tests: Likewise.
24084         * modules/carray-list-tests: Likewise.
24085         * modules/crc-tests: Likewise.
24086         * modules/des-tests: Likewise.
24087         * modules/gc-arcfour-tests: Likewise.
24088         * modules/gc-arctwo-tests: Likewise.
24089         * modules/gc-des-tests: Likewise.
24090         * modules/gc-hmac-md5-tests: Likewise.
24091         * modules/gc-hmac-sha1-tests: Likewise.
24092         * modules/gc-md2-tests: Likewise.
24093         * modules/gc-md4-tests: Likewise.
24094         * modules/gc-md5-tests: Likewise.
24095         * modules/gc-pbkdf2-sha1-tests: Likewise.
24096         * modules/gc-rijndael-tests: Likewise.
24097         * modules/gc-sha1-tests: Likewise.
24098         * modules/gc-tests: Likewise.
24099         * modules/getaddrinfo-tests: Likewise.
24100         * modules/hmac-md5-tests: Likewise.
24101         * modules/hmac-sha1-tests: Likewise.
24102         * modules/linked-list-tests: Likewise.
24103         * modules/linkedhash-list-tests: Likewise.
24104         * modules/lock-tests: Likewise.
24105         * modules/md2-tests: Likewise.
24106         * modules/md4-tests: Likewise.
24107         * modules/md5-tests: Likewise.
24108         * modules/rbtree-list-tests: Likewise.
24109         * modules/rbtree-oset-tests: Likewise.
24110         * modules/rbtreehash-list-tests: Likewise.
24111         * modules/read-file-tests: Likewise.
24112         * modules/rijndael-tests: Likewise.
24113         * modules/stdint-tests: Likewise.
24114         * modules/tls-tests: Likewise.
24115
24116 2007-02-24  Bruno Haible  <bruno@clisp.org>
24117
24118         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
24119         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
24120         function; instead check whether isnan with a double argument links.
24121         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
24122         function; instead check whether isnan with a 'long double' argument
24123         links.
24124         Reported by Eric Blake <ebb9@byu.net>.
24125
24126 2007-02-24  Bruno Haible  <bruno@clisp.org>
24127
24128         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
24129         defined.
24130         * lib/isnanl.c: Remove all code. Just include isnan.c.
24131         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
24132
24133 2007-02-25  Jim Meyering  <jim@meyering.net>
24134
24135         Avoid conflicting types for 'unsetenv' on FreeBSD.
24136         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
24137         conflicting with FreeBSD's (5.0 and 6.1) function declaration
24138         in stdlib.h.
24139
24140 2007-02-24  Bruno Haible  <bruno@clisp.org>
24141
24142         * modules/isnanl-nolibm-tests: New file.
24143         * tests/test-isnanl.c: New file.
24144
24145         * modules/isnanl-nolibm: New file.
24146         * lib/isnanl.h: New file.
24147         * lib/isnanl.c: New file.
24148         * m4/isnanl.m4: New file.
24149
24150 2007-02-24  Bruno Haible  <bruno@clisp.org>
24151
24152         * modules/isnan-nolibm-tests: New file.
24153         * tests/test-isnan.c: New file.
24154
24155         * modules/isnan-nolibm: New file.
24156         * lib/isnan.h: New file.
24157         * lib/isnan.c: New file.
24158         * m4/isnan.m4: New file.
24159
24160 2007-02-24  Bruno Haible  <bruno@clisp.org>
24161
24162         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
24163         assume that an exponent fits in 20 bits.
24164
24165 2007-02-24  Jim Meyering  <jim@meyering.net>
24166
24167         * m4/regex.m4: Update the description of the configure-time option,
24168         --without-included-regex, to state accurately what the defaults are,
24169         and perhaps to give people an idea why using this option is risky.
24170
24171 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24172
24173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
24174         loops on small arguments.  This attempts to avoid the problem
24175         Bruno Haible reported for AIX 4.3.2 in
24176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
24177
24178 2007-02-23  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
24181         Needed for help2man.
24182
24183 2007-02-23  Karl Berry  <karl@gnu.org>
24184
24185         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
24186         exists, foo.h should be cvs-ignored, not committed.
24187
24188 2007-02-23  Eric Blake  <ebb9@byu.net>
24189
24190         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
24191         * lib/stat-time.h (includes): Likewise.
24192         * lib/utimecmp.c (includes): Likewise.
24193         * lib/utimens.h (includes): Likewise.
24194         * lib/getdate.y (includes): Also include "timespec.h" for use
24195         internal to the module.
24196         * modules/utimens (Depends-on): Revert yesterday's patch.
24197         * modules/nanosleep (Depends-on): Add missing dependency.
24198
24199 2007-02-22  Bruno Haible  <bruno@clisp.org>
24200
24201         * lib/glob.c: Don't include getlogin_r.h.
24202
24203 2007-02-22  Jim Meyering  <jim@meyering.net>
24204
24205         * modules/utimens (Depends-on): Add timespec, required for
24206         utimens.h's inclusion of timespec.h.
24207
24208 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
24211         long unreadable paths in GNU/Linux.  Problem reported by Andreas
24212         Schwab in
24213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
24214         I'll try to think of a better way to fix the Solaris problem.
24215
24216         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
24217         like glibc; on Solaris 10, it fails with errno == EINVAL.
24218         POSIX says the behavior is unspecified if the first argument is NULL,
24219         so play it safe and never pass NULL to the system getcwd.
24220
24221 2007-02-21  Jim Meyering  <jim@meyering.net>
24222
24223         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
24224         of gettimeofday.  It would conflict with the one now always
24225         provided via sys_time_.h.  Reported by Matthew Woehlke, as
24226         an IRIX 6.5 build failure.
24227
24228 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24229
24230         Minor fixups to port to Solaris 10 with Sun C 5.8.
24231         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
24232         * modules/getcwd (Depends-on): Add dirfd.
24233         * lib/putenv.c (putenv): #undef it.
24234         (rpl_putenv): New decl.
24235         (malloc, free): Include <stdlib.h> rather than prototyping separately.
24236
24237 2007-02-20  Bruno Haible  <bruno@clisp.org>
24238
24239         * modules/stdio-tests: New file.
24240         * tests/test-stdio.c: New file.
24241
24242         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
24243         (Depends-on): Add stdio.
24244         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24245         (Include): Use <stdio.h> instead of vsnprintf.h.
24246         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
24247         HAVE_DECL_VSNPRINTF.
24248         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
24249
24250         * modules/snprintf (Files): Remove lib/snprintf.h.
24251         (Depends-on): Add stdio.
24252         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24253         (Include): Use <stdio.h> instead of snprintf.h.
24254         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
24255         HAVE_DECL_SNPRINTF.
24256         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
24257         * lib/getaddrinfo.c: Likewise.
24258
24259         * modules/stdio: New file.
24260         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
24261         * lib/snprintf.h: Remove file.
24262         * lib/vsnprintf.h: Remove file.
24263         * lib/.cppi-disable: Remove snprintf.h.
24264         * m4/stdio_h.m4: New file.
24265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
24266
24267 2007-02-20  Jim Meyering  <jim@meyering.net>
24268
24269         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
24270         used by e.g., mingw.  From Bruno Haible.
24271
24272 2007-02-19  Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
24275         warnings.
24276         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24277
24278 2007-02-19  Bruno Haible  <bruno@clisp.org>
24279
24280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
24281         from mingw users.
24282
24283 2007-02-19  Bruno Haible  <bruno@clisp.org>
24284
24285         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
24286         warnings.
24287         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
24288
24289 2007-02-19  Jim Meyering  <jim@meyering.net>
24290
24291         Don't use FD after a successful "fdopendir (fd)".
24292         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
24293         Reset it by calling dirfd on the just-obtained DIR*.
24294
24295         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
24296         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
24297
24298 2007-02-18  Bruno Haible  <bruno@clisp.org>
24299
24300         * lib/readlink.c: Include <unistd.h>.
24301         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
24302         HAVE_READLINK.
24303         * modules/readlink (Depends-on): Add unistd.
24304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24305         (Include): Add <unistd.h>.
24306
24307         * lib/getlogin_r.h: Remove file.
24308         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
24309         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
24310         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
24311         HAVE_DECL_GETLOGIN_R.
24312         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
24313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24314         (Include): Use <unistd.h> instead of getlogin_r.h.
24315
24316         * lib/getcwd.h: Remove file.
24317         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
24318         * lib/xgetcwd.c: Likewise.
24319         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
24320         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
24321         * modules/getcwd (Files): Remove lib/getcwd.h.
24322         (Depends-on): Add unistd.
24323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24324         (Include): Use <unistd.h> instad of getcwd.h.
24325
24326         * lib/ftruncate.c: Include <unistd.h> first.
24327         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
24328         Set HAVE_FTRUNCATE.
24329         * modules/ftruncate (Depends-on): Add unistd.
24330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24331
24332         * lib/fchdir.c: Include <unistd.h> first.
24333         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
24334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
24335         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
24336         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24337         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
24338
24339         * lib/dup2.c: Include <unistd.h> first.
24340         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
24341         HAVE_DUP2.
24342         * modules/dup2 (Depends-on): Add unistd.
24343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24344
24345         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
24346         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
24347         REPLACE_CHOWN. Don't define chown as a macro here.
24348         * modules/chown (Depends-on): Add unistd.
24349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24350
24351         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
24352         Add definition for GL_LINK_WARNING.
24353         (chown, dup2): New declarations.
24354         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
24355         link warning.
24356         (ftruncate): New declaration.
24357         (getcwd): New declaration, taken from old getcwd.h.
24358         (getlogin_r): New declaration, taken from old getlogin_r.h.
24359         (readlink): New declaration.
24360         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
24361         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
24362         (gl_PREREQ_UNISTD): Remove macro.
24363         (gl_UNISTD_MODULE_INDICATOR): New macro.
24364         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
24365         many new variables. Don't set UNISTD_H.
24366         * modules/unistd (Description): Change.
24367         (Depends-on): Add link-warning.
24368         (configure.ac): Update.
24369         (Makefile.am): Create unistd.h always. Substitute many new variables
24370         into it.
24371
24372 2007-02-18  Bruno Haible  <bruno@clisp.org>
24373
24374         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
24375         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
24376         HAVE_GETSUBOPT.
24377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
24378         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
24379         * lib/getsubopt.h: Remove file.
24380         * modules/getsubopt (Files): Remove lib/getsubopt.h.
24381         (Depends-on): Add stdlib.
24382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24383         (Includes): Use <stdlib.h> instead of getsubopt.h.
24384         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
24385         Set HAVE_GETSUBOPT.
24386         * lib/getsubopt.c: Don't include getsubopt.h.
24387
24388 2007-02-18  Bruno Haible  <bruno@clisp.org>
24389
24390         * modules/fchdir (Depends-on): Add dup2.
24391
24392 2007-02-18  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/stdlib_.h: Handle glibc's special invocation convention
24395         specially.
24396
24397 2007-02-18  Bruno Haible  <bruno@clisp.org>
24398
24399         * modules/stdlib-tests: New file.
24400         * tests/test-stdlib.c: New file.
24401
24402         * modules/mkstemp (Files): Remove lib/mkstemp.h.
24403         (Depends-on): Add stdlib.
24404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24405         (Includes): Use <stdlib.h> instead of mkstemp.h.
24406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24407         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
24408         * lib/mkstemp.c: Don't include mkstemp.h.
24409         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
24410         * lib/stdlib--.h: Don't include mkstemp.h.
24411
24412         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
24413         (Depends-on): Add stdlib.
24414         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24415         (Includes): Use <stdlib.h> instead of mkdtemp.h.
24416         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
24417         HAVE_MKDTEMP.
24418         * lib/mkdtemp.c: Don't include mkdtemp.h.
24419         * lib/clean-temp.c: Don't include mkdtemp.h.
24420
24421         * modules/exit (Files): Remove lib/exit.h.
24422         (Depends-on): Add stdlib.
24423         (Makefile.am): Remove lib_SOURCES.
24424         (Include): Use <stdlib.h> instead of exit.h.
24425         * lib/argmatch.c: Don't include exit.h.
24426         * lib/execute.c: Likewise.
24427         * lib/pagealign_alloc.c: Likewise.
24428         * lib/pipe.c: Likewise.
24429         * lib/wait-process.c: Likewise.
24430         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
24431         * lib/exitfail.c: Likewise.
24432         * lib/savewd.c: Likewise.
24433         * lib/xsetenv.c: Likewise.
24434
24435         * modules/stdlib: New file.
24436         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
24437         and extra comments about mkstemp().
24438         * lib/exit.h: Remove file.
24439         * lib/mkdtemp.h: Remove file.
24440         * lib/mkstemp.h: Remove file.
24441         * m4/stdlib_h.m4: New file.
24442         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
24443
24444 2007-02-18  Bruno Haible  <bruno@clisp.org>
24445
24446         * modules/math-tests: New file.
24447         * tests/test-math.c: New file.
24448
24449         * modules/math: New file.
24450         * modules/mathl (Files): Remove lib/mathl.h.
24451         (Depends-on): Add math.
24452         (Makefile.am): Don't mention mathl.h.
24453         (Include): Use <math.h> instead of mathl.h.
24454         * lib/math_.h: New file.
24455         * lib/mathl.h: Remove file.
24456         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
24457         mathl.h.
24458         * lib/asinl.c: Likewise.
24459         * lib/atanl.c: Likewise.
24460         * lib/ceill.c: Likewise.
24461         * lib/cosl.c: Likewise.
24462         * lib/expl.c: Likewise.
24463         * lib/floorl.c: Likewise.
24464         * lib/frexpl.c: Likewise.
24465         * lib/ldexpl.c: Likewise.
24466         * lib/logl.c: Likewise.
24467         * lib/sincosl.c: Likewise.
24468         * lib/sinl.c: Likewise.
24469         * lib/sqrtl.c: Likewise.
24470         * lib/tanl.c: Likewise.
24471         * lib/trigl.c: Likewise.
24472         * m4/math_h.m4: New file.
24473         * MODULES.html.sh (Mathematics): Add math.
24474
24475 2007-02-17  Bruno Haible  <bruno@clisp.org>
24476
24477         * modules/wctype-tests: New file.
24478         * tests/test-wctype.c: New file.
24479
24480         * modules/wchar-tests: New file.
24481         * tests/test-wchar.c: New file.
24482
24483         * modules/unistd-tests: New file.
24484         * tests/test-unistd.c: New file.
24485
24486         * modules/time-tests: New file.
24487         * tests/test-time.c: New file.
24488
24489         * modules/sysexits-tests: New file.
24490         * tests/test-sysexits.c: New file.
24491
24492         * modules/sys_time-tests: New file.
24493         * tests/test-sys_time.c: New file.
24494
24495         * modules/sys_stat-tests: New file.
24496         * tests/test-sys_stat.c: New file.
24497
24498         * modules/sys_socket-tests: New file.
24499         * tests/test-sys_socket.c: New file.
24500
24501         * modules/sys_select-tests: New file.
24502         * tests/test-sys_select.c: New file.
24503
24504         * modules/string-tests: New file.
24505         * tests/test-string.c: New file.
24506
24507         * modules/stdbool-tests: New file.
24508         * tests/test-stdbool.c: New file.
24509
24510         * modules/netinet_in-tests: New file.
24511         * tests/test-netinet_in.c: New file.
24512
24513         * modules/inttypes-tests: New file.
24514         * tests/test-inttypes.c: New file.
24515
24516         * modules/fcntl-tests: New file.
24517         * tests/test-fcntl.c: New file.
24518
24519         * modules/byteswap-tests: New file.
24520         * tests/test-byteswap.c: New file.
24521
24522         * modules/arpa_inet-tests: New file.
24523         * tests/test-arpa_inet.c: New file.
24524
24525 2007-02-17  Bruno Haible  <bruno@clisp.org>
24526
24527         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
24528         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
24529         if the corresponding module is not enabled. Emit link warnings if
24530         the function is used nevertheless.
24531         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
24532         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
24533         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
24534         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
24535         * modules/inttypes (Depends-on): Add link-warning.
24536         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24537         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
24538         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
24539         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
24540         * modules/imaxdiv (configure.ac): Likewise.
24541         * modules/strtoimax (configure.ac): Likewise.
24542         * modules/strtoumax (configure.ac): Likewise.
24543
24544 2007-02-17  Bruno Haible  <bruno@clisp.org>
24545
24546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
24547         gl_STRING_MODULE_INDICATOR_DEFAULTS.
24548         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
24549         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
24550
24551 2007-02-17  Bruno Haible  <bruno@clisp.org>
24552
24553         * modules/link-warning: New file.
24554         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
24555         * lib/string_.h (GL_LINK_WARNING): Remove definition.
24556         * modules/string (Depends-on): Add link-warning.
24557         (Makefile.am): Copy the contents of build-aux/link-warning.h into
24558         string.h.
24559         * MODULES.html.sh (Support for building libraries and executables): Add
24560         link-warning.
24561
24562 2007-02-17  Bruno Haible  <bruno@clisp.org>
24563
24564         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
24565         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
24566         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
24567         long lines.
24568
24569 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
24570             Bruno Haible  <bruno@clisp.org>
24571
24572         * modules/tmpfile: New file.
24573         * lib/tmpfile.c: New file.
24574         * m4/tmpfile.m4: New file.
24575         * MODULES.html.sh (func_all_modules): New section "Input/output".
24576
24577 2007-02-15  Bruno Haible  <bruno@clisp.org>
24578
24579         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
24580         (supports_delete_on_close): New function.
24581         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
24582
24583 2007-02-14  Bruno Haible  <bruno@clisp.org>
24584
24585         * modules/mbspcasecmp-tests: New file.
24586         * tests/test-mbspcasecmp.sh: New file.
24587         * tests/test-mbspcasecmp.c: New file.
24588
24589         New module mbspcasecmp.
24590         * modules/mbspcasecmp: New file.
24591         * lib/mbspcasecmp.c: New file.
24592         * lib/string_.h (strncasecmp): Change warning message.
24593         (mbspcasecmp): New declaration.
24594         * m4/mbspcasecmp.m4: New file.
24595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24596         GNULIB_MBSPCASECMP.
24597         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
24598         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
24599
24600 2007-02-14  Bruno Haible  <bruno@clisp.org>
24601
24602         * modules/mbsncasecmp-tests: New file.
24603         * tests/test-mbsncasecmp.sh: New file.
24604         * tests/test-mbsncasecmp.c: New file.
24605
24606         New module mbsncasecmp.
24607         * modules/mbsncasecmp: New file.
24608         * lib/mbsncasecmp.c: New file.
24609         * lib/string_.h (mbsncasecmp): New declaration.
24610         * m4/mbsncasecmp.m4: New file.
24611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24612         GNULIB_MBSNCASECMP.
24613         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
24614         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
24615
24616 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24617
24618         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
24619         Verify that it doesn't overlap with our flags.
24620         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
24621         do not have the desired effect in multibyte locales; instead, use
24622         mbscasecmp.
24623         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
24624         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
24625         we don't require GNU fnmatch ourselves (if our users require it, they
24626         should do so explicitly).
24627
24628         Fix regex code so it doesn't rely on strcasecmp.
24629         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
24630         Otherwise, include gnulib's langinfo.h.
24631         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
24632         undesirable behavior in non-C locales.  Instead, rely on localecharset.
24633         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
24634         * modules/regex (FILES): Remove m4/codeset.m4.
24635         (Depends-on): Add localcharset.  Remove strcase.
24636
24637 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24638
24639         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
24640         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24641
24642 2007-02-13  Bruno Haible  <bruno@clisp.org>
24643
24644         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
24645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24646
24647 2007-02-12  Bruno Haible  <bruno@clisp.org>
24648
24649         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24650         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
24651         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
24652         time warning rather than a link error.
24653
24654 2007-02-12  Bruno Haible  <bruno@clisp.org>
24655
24656         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
24657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24659
24660 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24661
24662         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
24663         args, not 2.
24664
24665 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24666
24667         New module 'time', so that apps can include <time.h> as per
24668         POSIX and GNU instead of separate include files like time_r.h
24669         and timegm.h.  This implementation tries out a simpler approach
24670         for replacing decls in standard include files (as compared to
24671         the string module), somewhat as an experiment.
24672
24673         * config/srclist.txt: Comment out mktime.c for now.
24674         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
24675         since it doesn't apply any more.  Use generic wording instead.
24676         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
24677         'time'.
24678         * lib/time_.h, m4/time_h.m4, modules/time: New files.
24679         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
24680         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
24681         Don't include <sys/types.h>; no longer needed since we assume C89.
24682         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
24683         * lib/strftime.c: Likewise.
24684         * lib/time_r.c: Likewise.
24685         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
24686         * lib/nanosleep.c: Include <time.h> first, to check interface.
24687         * lib/strptime.c: Likewise.
24688         * lib/time_r.c: Likewise.
24689         * lib/timegm.c: Likewise.
24690         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
24691         needed.
24692         * lib/timegm.c: Don't include timegm.h; no longer needed.
24693         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
24694         time.h now handles any problems in that area.
24695         (struct timespec, nanosleep): Remove; time.h now arranges for these.
24696         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
24697         that time.h defines struct timespec.
24698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
24699         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
24700         handles that.
24701         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
24702         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
24703         needed.  Set REPLACE_LOCALTIME.
24704         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
24705         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
24706         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
24707         nanosleep; time_h.m4 now does that.  Don't require
24708         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
24709         module handles this now.
24710         * modules/getdate (Depends-on): Remove timespec.  Add time.
24711         * modules/nanosleep (Depends-on): Likewise.
24712         * modules/stat-time (Depends-on): Likewise.
24713         * modules/nanosleep (Include): Include time.h, not timespec.h.
24714         * modules/strptime (Files): Remove lib/strptime.h.
24715         (Depends-on): Add extensions, time.
24716         (Include): Include time.h, not strptime.h.
24717         * modules/time_r (Files): Remove lib/time_r.h.
24718         (Depends-on): Add time.
24719         (Include): Include time.h, not time_r.h.
24720         * modules/timegm: Likewise.
24721         * modules/timespec (Description): Now does timespec-related decls
24722         of our own, instead of struct timespec itself.
24723         (Depends-on): Add time; remove extensions.
24724         (Maintainer): Add self.
24725         * modules/utimecmp (Depends-on): Add time; remove timespec.
24726         * modules/utimens (Depends-on): Likewise.
24727         * modules/xnanosleep (Depends-on): Likewise.
24728
24729 2007-02-11  Bruno Haible  <bruno@clisp.org>
24730
24731         * lib/c-strstr.c: Include allocsa.h.
24732         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24733         * lib/c-strcasestr.c: Include allocsa.h.
24734         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24735         * lib/strcasestr.c: Include allocsa.h.
24736         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24737         * lib/mbsstr.c: Include allocsa.h.
24738         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24739         allocsa/freesa instead of malloc/free.
24740         * lib/mbscasestr.c: Include allocsa.h.
24741         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24742         allocsa/freesa instead of malloc/free.
24743         * modules/c-strstr (Depends-on): Add allocsa.
24744         * modules/c-strcasestr (Depends-on): Likewise.
24745         * modules/strcasestr (Depends-on): Likewise.
24746         * modules/mbsstr (Depends-on): Likewise.
24747         * modules/mbscasestr (Depends-on): Likewise.
24748
24749 2007-02-11  Bruno Haible  <bruno@clisp.org>
24750
24751         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
24752
24753         * modules/mbsspn-tests: New file.
24754         * tests/test-mbsspn.sh: New file.
24755         * tests/test-mbsspn.c: New file.
24756
24757 2007-02-11  Bruno Haible  <bruno@clisp.org>
24758
24759         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
24760
24761         * modules/mbspbrk-tests: New file.
24762         * tests/test-mbspbrk.sh: New file.
24763         * tests/test-mbspbrk.c: New file.
24764
24765 2007-02-11  Bruno Haible  <bruno@clisp.org>
24766
24767         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
24768         unneeded cast.
24769
24770         * modules/mbscspn-tests: New file.
24771         * tests/test-mbscspn.sh: New file.
24772         * tests/test-mbscspn.c: New file.
24773
24774 2007-02-11  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/mbscasecmp-tests: New file.
24777         * tests/test-mbscasecmp.sh: New file.
24778         * tests/test-mbscasecmp.c: New file.
24779
24780 2007-02-11  Bruno Haible  <bruno@clisp.org>
24781
24782         Ensure O(n) worst-case complexity of mbscasestr.
24783         * lib/mbscasestr.c: Include stdbool.h.
24784         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24785         functions.
24786         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
24787         the bookkeeping indicates that it's worth it.
24788         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
24789
24790         * modules/mbscasestr-tests: New file.
24791         * tests/test-mbscasestr1.c: New file.
24792         * tests/test-mbscasestr2.sh: New file.
24793         * tests/test-mbscasestr2.c: New file.
24794         * tests/test-mbscasestr3.sh: New file.
24795         * tests/test-mbscasestr3.c: New file.
24796         * tests/test-mbscasestr4.sh: New file.
24797         * tests/test-mbscasestr4.c: New file.
24798         * m4/locale-tr.m4: New file.
24799
24800 2007-02-11  Bruno Haible  <bruno@clisp.org>
24801
24802         Ensure O(n) worst-case complexity of mbsstr.
24803         * lib/mbsstr.c: Include stdbool.h.
24804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24805         functions.
24806         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
24807         bookkeeping indicates that it's worth it.
24808         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
24809
24810         * modules/mbsstr-tests: New file.
24811         * tests/test-mbsstr1.c: New file.
24812         * tests/test-mbsstr2.sh: New file.
24813         * tests/test-mbsstr2.c: New file.
24814         * tests/test-mbsstr3.sh: New file.
24815         * tests/test-mbsstr3.c: New file.
24816         * m4/locale-fr.m4: New file.
24817
24818 2007-02-11  Bruno Haible  <bruno@clisp.org>
24819
24820         * lib/mbsrchr.c (mbsrchr): Fix bug.
24821
24822         * modules/mbsrchr-tests: New file.
24823         * tests/test-mbsrchr.sh: New file.
24824         * tests/test-mbsrchr.c: New file.
24825
24826 2007-02-11  Bruno Haible  <bruno@clisp.org>
24827
24828         * lib/mbschr.c (mbschr): Fix bug.
24829
24830         * modules/mbschr-tests: New file.
24831         * tests/test-mbschr.sh: New file.
24832         * tests/test-mbschr.c: New file.
24833         * m4/locale-zh.m4: New file.
24834
24835 2007-02-11  Bruno Haible  <bruno@clisp.org>
24836
24837         Support for copying multibyte string iterators.
24838         * lib/mbiter.h: Include <string.h>.
24839         (mbiter_multi_copy): New function.
24840         (mbi_copy): New macro.
24841         * lib/mbuiter.h: Include <string.h>.
24842         (mbuiter_multi_copy): New function.
24843         (mbui_copy): New macro.
24844
24845 2007-02-11  Bruno Haible  <bruno@clisp.org>
24846
24847         New module mbslen.
24848         * modules/mbslen: New file.
24849         * lib/mbslen.c: New file.
24850         * lib/string_.h (mbslen): New declaration.
24851         * m4/mbslen.m4: New file.
24852         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24853         GNULIB_MBSLEN.
24854         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
24855         * MODULES.html.sh (Internationalization functions): Add mbslen.
24856
24857 2007-02-11  Bruno Haible  <bruno@clisp.org>
24858
24859         Ensure O(n) worst-case complexity of strcasestr substitute.
24860         * lib/strcasestr.c: Include stdbool.h.
24861         (knuth_morris_pratt): New function.
24862         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24863         bookkeeping indicates that it's worth it.
24864         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
24865
24866         * modules/strcasestr-tests: New file.
24867         * tests/test-strcasestr.c: New file.
24868
24869 2007-02-11  Bruno Haible  <bruno@clisp.org>
24870
24871         Ensure O(n) worst-case complexity of c_strcasestr.
24872         * lib/c-strcasestr.c: Include stdbool.h, string.h.
24873         (knuth_morris_pratt): New function.
24874         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
24875         the bookkeeping indicates that it's worth it.
24876         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
24877
24878         * modules/c-strcasestr-tests: New file.
24879         * tests/test-c-strcasestr.c: New file.
24880
24881 2007-02-11  Bruno Haible  <bruno@clisp.org>
24882
24883         Ensure O(n) worst-case complexity of c_strstr.
24884         * lib/c-strstr.c: Include stdbool.h, string.h.
24885         (knuth_morris_pratt): New function.
24886         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24887         bookkeeping indicates that it's worth it.
24888         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
24889
24890         * lib/c-strstr.c: Complete rewrite for maintainability.
24891
24892         * modules/c-strstr-tests: New file.
24893         * tests/test-c-strstr.c: New file.
24894
24895 2007-02-11  Bruno Haible  <bruno@clisp.org>
24896
24897         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
24898         5.2.1 and earlier, whereby \055 was treated just like the range
24899         delimiter '-'.
24900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24901
24902 2007-02-08  Bruno Haible  <bruno@clisp.org>
24903
24904         * modules/regex (Depends-on): Add stdbool.
24905         Reported by Dalibor Topic <robilad@kaffe.org>.
24906
24907 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24908
24909         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
24910         Prefer returning from main to exiting from it.
24911         Remove unnecessary parens after sizeof.
24912
24913 2007-02-05  Bruno Haible  <bruno@clisp.org>
24914
24915         New module mbssep.
24916         * modules/mbssep: New file.
24917         * lib/mbssep.c: New file.
24918         * lib/string_.h (strsep): Add a conditional link warning.
24919         (mbssep): New declaration.
24920         * m4/mbssep.m4: New file.
24921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24922         GNULIB_MBSSEP.
24923         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24924         * MODULES.html.sh (Internationalization functions): Add mbssep.
24925
24926 2007-02-05  Bruno Haible  <bruno@clisp.org>
24927
24928         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24929         Optimize search in case of 1 delimiter.
24930
24931 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24932
24933         * lib/acl.h: Include sys/types.h before sys/acl.h.
24934
24935 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24936
24937         Merge upstream fix for glibc bugzilla #3957:
24938
24939         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
24940
24941         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24942         bit for RE_HAT_LISTS_NOT_NEWLINE.
24943         (build_charclass_op): Remove bogus comment.
24944
24945 2007-02-05  Simon Josefsson  <simon@josefsson.org>
24946
24947         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24948
24949 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24950
24951         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24952         * lib/memmem.c [!defined _LIBC]: Include config.h.
24953
24954 2007-02-04  Bruno Haible  <bruno@clisp.org>
24955
24956         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24957         warning message.
24958
24959 2007-02-04  Bruno Haible  <bruno@clisp.org>
24960
24961         New module mbstok_r.
24962         * modules/mbstok_r: New file.
24963         * lib/mbstok_r.c: New file.
24964         * lib/string_.h (strtok_r): Change argument names to match the
24965         comments. Add a conditional link warning.
24966         (mbstok_r): New declaration.
24967         * m4/mbstok_r.m4: New file.
24968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24969         GNULIB_MBSTOK_R.
24970         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24971         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24972
24973 2007-02-04  Bruno Haible  <bruno@clisp.org>
24974
24975         New module mbsspn.
24976         * modules/mbsspn: New file.
24977         * lib/mbsspn.c: New file.
24978         * lib/string_.h (strspn): Add a conditional link warning.
24979         (mbsspn): New declaration.
24980         * m4/mbsspn.m4: New file.
24981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24982         GNULIB_MBSSPN.
24983         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24984         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24985
24986 2007-02-04  Bruno Haible  <bruno@clisp.org>
24987
24988         New module mbspbrk.
24989         * modules/mbspbrk: New file.
24990         * lib/mbspbrk.c: New file.
24991         * lib/string_.h (strpbrk): Add a conditional link warning.
24992         (mbspbrk): New declaration.
24993         * m4/mbspbrk.m4: New file.
24994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24995         GNULIB_MBSPBRK.
24996         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24997         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24998
24999 2007-02-04  Bruno Haible  <bruno@clisp.org>
25000
25001         New module mbscspn.
25002         * modules/mbscspn: New file.
25003         * lib/mbscspn.c: New file.
25004         * lib/string_.h (strcspn): Add a conditional link warning.
25005         (mbscspn): New declaration.
25006         * m4/mbscspn.m4: New file.
25007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25008         GNULIB_MBSCSPN.
25009         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
25010         * MODULES.html.sh (Internationalization functions): Add mbscspn.
25011
25012 2007-02-04  Bruno Haible  <bruno@clisp.org>
25013
25014         New module mbscasestr, reduced goal of strcasestr.
25015         * modules/mbscasestr: New file.
25016         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
25017         (mbscasestr): Renamed from strcasestr.
25018         * lib/strcasestr.c: Don't include mbuiter.h.
25019         (strcasestr): Remove support for multibyte locales.
25020         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
25021         Change the conditional link warning.
25022         (mbscasestr): New declaration.
25023         * m4/mbscasestr.m4: New file.
25024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
25025         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
25026         REPLACE_STRCASESTR.
25027         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
25028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25029         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
25030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
25031         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
25032         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
25033         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
25034         (Depends-on): Remove mbuiter.
25035         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
25036
25037 2007-02-04  Bruno Haible  <bruno@clisp.org>
25038
25039         Simplify handling of strncasecmp.
25040         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
25041         the conditional link warning.
25042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25043         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
25044         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
25045         * modules/strcase (configure.ac): Don't invoke
25046         gl_STRING_MODULE_INDICATOR.
25047         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
25048
25049 2007-02-04  Bruno Haible  <bruno@clisp.org>
25050
25051         New module mbscasecmp, reduced goal of strcasecmp.
25052         * modules/mbscasecmp: New file.
25053         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
25054         (mbscasecmp): Renamed from strcasecmp.
25055         * lib/strcasecmp.c: Don't include mbuiter.h.
25056         (strcasecmp): Remove support for multibyte locales.
25057         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
25058         Change the conditional link warning.
25059         (mbscasecmp): New declaration.
25060         * m4/mbscasecmp.m4: New file.
25061         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
25062         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
25063         REPLACE_STRCASECMP.
25064         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
25065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25066         GNULIB_MBSCASECMP.
25067         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
25068         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
25069         * modules/strcase (Files): Remove m4/mbrtowc.m4.
25070         (Depends-on): Remove mbuiter.
25071         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
25072
25073 2007-02-04  Bruno Haible  <bruno@clisp.org>
25074
25075         New module mbsstr. Remove module strstr.
25076         * modules/mbsstr: New file.
25077         * modules/strstr: Remove file.
25078         * lib/mbsstr.c: Renamed from lib/strstr.c.
25079         (mbsstr): Renamed from strstr.
25080         * lib/string_.h (strstr): Remove declaration. Change the conditional
25081         link warning.
25082         (mbsstr): New declaration.
25083         * m4/mbsstr.m4: New file.
25084         * m4/strstr.m4: Remove file.
25085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25086         REPLACE_STRSTR.
25087         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
25088         Don't initialize GNULIB_STRSTR.
25089         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
25090         substitute GNULIB_STRSTR and REPLACE_STRSTR.
25091         * MODULES.html.sh (Internationalization functions): Add mbsstr.
25092         (Support for systems lacking ANSI C 89): Remove strstr.
25093
25094 2007-02-04  Bruno Haible  <bruno@clisp.org>
25095
25096         New module mbsrchr.
25097         * modules/mbsrchr: New file.
25098         * lib/mbsrchr.c: New file.
25099         * lib/string_.h (strrchr): Add a conditional link warning.
25100         (mbsrchr): New declaration.
25101         * m4/mbsrchr.m4: New file.
25102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25103         GNULIB_MBSRCHR.
25104         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
25105         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
25106
25107 2007-02-04  Bruno Haible  <bruno@clisp.org>
25108
25109         New module mbschr.
25110         * modules/mbschr: New file.
25111         * lib/mbschr.c: New file.
25112         * lib/string_.h (strchr): Add a conditional link warning.
25113         (mbschr): New declaration.
25114         * m4/mbschr.m4: New file.
25115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25116         GNULIB_MBSCHR.
25117         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
25118         * MODULES.html.sh (Internationalization functions): Add mbschr.
25119
25120 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
25123
25124         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
25125
25126 2007-02-04  Bruno Haible  <bruno@clisp.org>
25127
25128         New module description section 'configure.ac-early'.
25129         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
25130         (func_get_autoconf_early_snippet): New function.
25131         (func_import, func_create_testdir): Use it. Remove special cases for
25132         modules 'extensions' and 'lock'.
25133         * modules/extensions (configure.ac-early): Require
25134         gl_USE_SYSTEM_EXTENSIONS.
25135         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
25136
25137 2007-02-04  Bruno Haible  <bruno@clisp.org>
25138
25139         Make use of gcj-4.3's -fsource and -ftarget option.
25140         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
25141         and if so try the options -fsource and -ftarget.
25142         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
25143         source_version, ftarget_option, target_version arguments.
25144         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
25145         (is_envjavac_oldgcj_14_14_usable): Renamed from
25146         is_envjavac_gcj_14_14_usable.
25147         (is_envjavac_oldgcj_14_13_usable): Renamed from
25148         is_envjavac_gcj_14_13_usable.
25149         (is_gcj_present): Update.
25150         (is_gcj_43, is_gcj43_usable): New functions.
25151         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
25152         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
25153         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
25154         try the options -fsource and -ftarget.
25155
25156 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25157
25158         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
25159         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
25160         larger value.
25161
25162 2007-02-03  Jim Meyering  <jim@meyering.net>
25163
25164         Give tools a better chance to allocate space for very large buffers.
25165         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
25166
25167         Make pwd and readlink work also when run with an unreadable parent dir
25168         on systems with openat support.
25169         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
25170         provided getcwd function, even when we have openat support.
25171         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
25172
25173 2007-02-02  Bruno Haible  <bruno@clisp.org>
25174
25175         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
25176         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
25177         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
25178         portability problems if one of these functions is only used on specific
25179         platforms.
25180         Reported by Paul Eggert.
25181
25182 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25183
25184         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
25185         is causing more trouble than it's curing.
25186         * lib/regex_internal.h (__mempcpy): Remove.
25187         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
25188         (and make the code a tad smaller to boot).
25189         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
25190
25191 2007-02-02  Jim Meyering  <jim@meyering.net>
25192
25193         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
25194         section, not in the Makefile.am: one.
25195
25196 2007-02-02  Eric Blake  <ebb9@byu.net>
25197
25198         * lib/strchrnul.c: Always include config.h first.
25199
25200         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
25201         gnulib strstr is not necessary here.
25202
25203 2007-02-02  Simon Josefsson  <simon@josefsson.org>
25204
25205         * m4/socklen.m4: Fix typo.
25206
25207 2007-02-02  Eric Blake  <ebb9@byu.net>
25208
25209         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
25210         * modules/netinet_in (Makefile.am): Likewise.
25211
25212 2007-02-01  Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/string_.h (GL_LINK_WARNING): New macro.
25215         (strcasecmp, strstr, strcasestr): If provided by the system,
25216         conditionally define as a macro that leads to a warning instead of to
25217         an error.
25218         (strncasecmp): Conditionally define as a macro that leads to a warning.
25219
25220 2007-02-01  Karl Berry  <karl@gnu.org>
25221
25222         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
25223
25224 2007-02-01  Bruno Haible  <bruno@clisp.org>
25225
25226         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
25227         renamings.
25228
25229 2007-02-01  Eric Blake  <ebb9@byu.net>
25230
25231         * modules/regex (Depends-on): Revert dependence on mempcpy.
25232         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
25233         module's definition of mempcpy.
25234         Reported by Paul Eggert.
25235
25236 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
25237
25238         * lib/string_.h: If the gnulib module XYZ is not present, undefine
25239         the symbol XYZ before redefining it.  This fixes a problem with
25240         programs that don't use XYZ, when compiled on systems that define
25241         XYZ to something else.
25242
25243 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
25244
25245         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
25246         occurs when "mkdir -m foo" creates a setgid directory that is (1)
25247         writeable to group or other and (2) is intended to have a special
25248         mode bit that is set or cleared.  In such a case, the directory
25249         should be neither group- nor other-writeable until the special
25250         mode bits are right.
25251
25252 2007-01-31  Eric Blake  <ebb9@byu.net>
25253
25254         * modules/mountlist (Depends-on): Add strstr.
25255
25256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
25257         bug.
25258         * modules/string (Makefile.am): Remove redundant replacement.
25259         * modules/regex (Depends-on): Add mempcpy.
25260
25261 2007-01-31  Bruno Haible  <bruno@clisp.org>
25262
25263         New module description field 'Link'.
25264         * gnulib-tool (func_usage): Document --extract-link-directive.
25265         (sed_extract_prog): Recognize 'Link' directive.
25266         (func_get_link_directive): New function.
25267         (func_import): Show summary of link directives.
25268         Handle --extract-link-directive option.
25269         * modules/acl (Link): New section.
25270         * modules/clock-time (Link): New section.
25271         * modules/euidaccess (Link): New section.
25272         * modules/gettext (Link): New section.
25273         * modules/iconv (Link): New section.
25274         * modules/lock (Link): New section.
25275         * modules/nanosleep (Link): New section.
25276         * modules/readline (Link): New section.
25277
25278 2007-01-27  Bruno Haible  <bruno@clisp.org>
25279
25280         Enforce the use of gnulib modules for unportable <string.h> functions.
25281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
25282         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
25283         (gl_HEADER_STRING_H_BODY): Require it.
25284         * lib/string_.h: If the gnulib module XYZ is not present, redefine
25285         the symbol XYZ to one that gives a link error.
25286         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
25287         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
25288         * modules/mempcpy (configure.ac): Likewise.
25289         * modules/memrchr (configure.ac): Likewise.
25290         * modules/stpcpy (configure.ac): Likewise.
25291         * modules/stpncpy (configure.ac): Likewise.
25292         * modules/strcase (configure.ac): Likewise.
25293         * modules/strcasestr (configure.ac): Likewise.
25294         * modules/strchrnul (configure.ac): Likewise.
25295         * modules/strdup (configure.ac): Likewise.
25296         * modules/strndup (configure.ac): Likewise.
25297         * modules/strnlen (configure.ac): Likewise.
25298         * modules/strpbrk (configure.ac): Likewise.
25299         * modules/strsep (configure.ac): Likewise.
25300         * modules/strstr (configure.ac): Likewise.
25301         * modules/strtok_r (configure.ac): Likewise.
25302
25303 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
25304
25305         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
25306
25307 2007-01-30  Jim Meyering  <jim@meyering.net>
25308
25309         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
25310
25311 2007-01-29  Bruno Haible  <bruno@clisp.org>
25312
25313         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
25314         * lib/execute.c: Likewise.
25315         * lib/pipe.c: Likewise.
25316         * lib/printf-args.h: Likewise.
25317         * lib/printf-args.c: Likewise.
25318         * lib/printf-parse.c: Likewise.
25319         * lib/vasnprintf.c: Likewise.
25320
25321 2007-01-29  Eric Blake  <ebb9@byu.net>
25322
25323         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
25324         declaration.
25325
25326 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25327
25328         * lib/strptime.h (strptime): Use 'restrict' for args where
25329         POSIX requires this.
25330         * lib/strptime.c (strptime): Likewise.
25331         Change license notice from LGPL to GPL, since gnulib-tool will
25332         change this as needed.
25333         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
25334         defined.
25335         Include "strptime.h" first, to check interface.
25336         Do not #undef _LIBC and _NL_CURRENT.
25337         Do not include <stdlib.h>; no longer needed.
25338         Include "time_r.h" and declare ptime_locale_status
25339         only if _LIBC is not defined.
25340         (__P): Remove unused macro.
25341         (match_string): Bring back glibc version, but use it only if _LIBC
25342         is defined.
25343         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
25344         Remove unnecessary assertion and abort() call.
25345         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
25346         * m4/strptime.m4: Fix serial number comment.
25347         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
25348         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
25349         (Depends-on): Add time_r.
25350
25351 2007-01-29  Bruno Haible  <bruno@clisp.org>
25352
25353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25354         strptime.
25355         * modules/strptime (Depends-on): Add stdbool.
25356         * lib/strptime.h: Include <time.h> always. Add comments.
25357
25358 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25359
25360         * modules/strptime: New file.
25361         * lib/strptime.h: New file.
25362         * lib/strptime.c: New file.
25363         * m4/strptime.m4: New file.
25364
25365 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25366
25367         * MODULES.html.sh: New module mpsort.
25368         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
25369
25370         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
25371         a circularity problem with HP-UX ia64 reported by Bob Proulx in
25372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
25373         All uses changed.
25374         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
25375         All uses changed.
25376         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
25377         to _Restrict_.
25378         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
25379         the parameter matches the prototype.
25380
25381 2007-01-28  Jim Meyering  <jim@meyering.net>
25382
25383         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
25384         sys/time.h here, reverting that part of the previous patch:
25385         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
25386
25387 2007-01-28  Bruno Haible  <bruno@clisp.org>
25388
25389         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
25390         value of $(SYS_TIME_H).
25391         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
25392         remove it conditionally, too. [added by Jim Meyering]
25393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
25394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25395         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
25396         GETTIMEOFDAY_REPLACEMENT to 1.
25397
25398 2007-01-28  Bruno Haible  <bruno@clisp.org>
25399
25400         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
25401         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
25402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
25403         Set UNISTD_H instead of UNISTD_H2.
25404         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
25405
25406 2007-01-28  Bruno Haible  <bruno@clisp.org>
25407
25408         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
25409         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
25410
25411 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25412
25413         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
25414         (func_create_testdir): Ensure C locale for `grep' and `tr'
25415         character ranges.
25416         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
25417         ACLOCAL_AMFLAGS parsing state machine.
25418
25419 2007-01-27  Bruno Haible  <bruno@clisp.org>
25420
25421         * modules/unistr/base: Update.
25422
25423 2007-01-27  Bruno Haible  <bruno@clisp.org>
25424
25425         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
25426         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
25427         * modules/unistr/u32-mbtouc-unsafe: Renamed from
25428         modules/unistr/u32-mbtouc.
25429         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
25430         * lib/unistr.h: Update.
25431         * lib/linebreak.c: Update.
25432         * modules/unistr/u32-mbtouc: Renamed from
25433         modules/unistr/u32-mbtouc-safe.
25434         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
25435         * lib/unistr.h: Update.
25436         * lib/unistr/u32-to-u8.c: Update.
25437         * lib/unistr/u32-to-u16.c: Update.
25438
25439 2007-01-27  Bruno Haible  <bruno@clisp.org>
25440
25441         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
25442         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
25443         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
25444         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
25445         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
25446         * modules/unistr/u16-mbtouc-unsafe: Renamed from
25447         modules/unistr/u16-mbtouc.
25448         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
25449         * lib/unistr.h: Update.
25450         * lib/linebreak.c: Update.
25451         * modules/linebreak: Update.
25452         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
25453         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
25454         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
25455         * modules/unistr/u16-mbtouc: Renamed from
25456         modules/unistr/u16-mbtouc-safe.
25457         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
25458         * lib/unistr.h: Update.
25459         * lib/unistr/u16-to-u8.c: Update.
25460         * modules/unistr/u16-to-u8: Update.
25461         * lib/unistr/u16-to-u32.c: Update.
25462         * modules/unistr/u16-to-u32: Update.
25463
25464 2007-01-27  Bruno Haible  <bruno@clisp.org>
25465
25466         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
25467         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
25468         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
25469         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
25470         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
25471         * modules/unistr/u8-mbtouc-unsafe: Renamed from
25472         modules/unistr/u8-mbtouc.
25473         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
25474         * lib/unistr.h: Update.
25475         * lib/striconveh.c: Update.
25476         * modules/striconveh: Update.
25477         * lib/linebreak.c: Update.
25478         * modules/linebreak: Update.
25479         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
25480         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
25481         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
25482         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
25483         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
25484         * lib/unistr.h: Update.
25485         * lib/striconveh.c: Update.
25486         * modules/striconveh: Update.
25487         * lib/unistr/u8-to-u16.c: Update.
25488         * modules/unistr/u8-to-u16: Update.
25489         * lib/unistr/u8-to-u32.c: Update.
25490         * modules/unistr/u8-to-u32: Update.
25491
25492 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25493
25494         Sync from Libtool.
25495         * lib/argz.c: Do not include strings.h nor memory.h, include
25496         string.h unconditionally.  Patch by Simon Josefsson.
25497
25498 2007-01-27  Bruno Haible  <bruno@clisp.org>
25499
25500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
25501         from gl_HEADER_STRING_H_BODY.
25502         (gl_HEADER_STRING_H_BODY): Require it.
25503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
25504         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25505         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25506         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25508         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
25509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25510         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25511         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
25512         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25513         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25514         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
25515         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25516         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25517         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25518
25519 2007-01-27  Bruno Haible  <bruno@clisp.org>
25520
25521         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
25522         check_PROGRAMS into noinst_PROGRAMS.
25523         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
25524         check_PROGRAMS in this case.
25525         (func_import): Set for_test to false.
25526         (func_create_testdir): Set for_test to true.
25527
25528 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25529             Bruno Haible  <bruno@clisp.org>
25530
25531         * modules/strcasestr (Files): Remove lib/strcasestr.h.
25532         (Depends-on): Add string.
25533         (Includes): Use <string.h> instead of strcasestr.h.
25534         * modules/string (Makefile.am): Also substitute the value of
25535         REPLACE_STRCASESTR.
25536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
25537         assume strcasestr is declared in <string.h> not <strings.h>. Also
25538         set REPLACE_STRCASESTR.
25539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
25540         REPLACE_STRCASESTR.
25541         * lib/strcasestr.h: Remove file.
25542         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
25543         * lib/string_.h (strcasestr): New declaration.
25544
25545 2007-01-27  Bruno Haible  <bruno@clisp.org>
25546
25547         * lib/string_.h: Use 'extern'.
25548
25549 2007-01-27  Jim Meyering  <jim@meyering.net>
25550
25551         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
25552         of set-but-not-used local, "q".
25553
25554         * lib/mempcpy.c: Include <config.h> before <string.h>.
25555         This fixes a compilation error on HP-UX, due to the system's
25556         "restrict"-using mempcpy prototype.
25557
25558 2007-01-26  Bruno Haible  <bruno@clisp.org>
25559
25560         Small optimization.
25561         * lib/javacomp.c: Include c-strstr.h.
25562          (is_envjavac_gcj): Use c_strstr instead of strstr.
25563         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
25564
25565 2007-01-26  Bruno Haible  <bruno@clisp.org>
25566
25567         * MODULES.html.sh (Unicode string functions): Add the new modules.
25568
25569         * modules/uniconv/u32-strconv-to-locale: New file.
25570         * lib/uniconv/u32-strconv-to-locale.c: New file.
25571
25572         * modules/uniconv/u16-strconv-to-locale: New file.
25573         * lib/uniconv/u16-strconv-to-locale.c: New file.
25574
25575         * modules/uniconv/u8-strconv-to-locale: New file.
25576         * lib/uniconv/u8-strconv-to-locale.c: New file.
25577
25578         * modules/uniconv/u32-strconv-from-locale: New file.
25579         * lib/uniconv/u32-strconv-from-locale.c: New file.
25580
25581         * modules/uniconv/u16-strconv-from-locale: New file.
25582         * lib/uniconv/u16-strconv-from-locale.c: New file.
25583
25584         * modules/uniconv/u8-strconv-from-locale: New file.
25585         * lib/uniconv/u8-strconv-from-locale.c: New file.
25586
25587         * modules/uniconv/u32-strconv-to-enc: New file.
25588         * lib/uniconv/u32-strconv-to-enc.c: New file.
25589         * modules/uniconv/u32-strconv-to-enc-tests: New file.
25590         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
25591
25592         * modules/uniconv/u16-strconv-to-enc: New file.
25593         * lib/uniconv/u16-strconv-to-enc.c: New file.
25594         * lib/uniconv/u-strconv-to-enc.h: New file.
25595         * modules/uniconv/u16-strconv-to-enc-tests: New file.
25596         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
25597
25598         * modules/uniconv/u8-strconv-to-enc: New file.
25599         * lib/uniconv/u8-strconv-to-enc.c: New file.
25600         * modules/uniconv/u8-strconv-to-enc-tests: New file.
25601         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
25602
25603         * modules/uniconv/u32-strconv-from-enc: New file.
25604         * lib/uniconv/u32-strconv-from-enc.c: New file.
25605         * modules/uniconv/u32-strconv-from-enc-tests: New file.
25606         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
25607
25608         * modules/uniconv/u16-strconv-from-enc: New file.
25609         * lib/uniconv/u16-strconv-from-enc.c: New file.
25610         * modules/uniconv/u16-strconv-from-enc-tests: New file.
25611         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
25612
25613         * modules/uniconv/u8-strconv-from-enc: New file.
25614         * lib/uniconv/u8-strconv-from-enc.c: New file.
25615         * lib/uniconv/u-strconv-from-enc.h: New file.
25616         * modules/uniconv/u8-strconv-from-enc-tests: New file.
25617         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
25618
25619         * modules/uniconv/u32-conv-from-enc: New file.
25620         * lib/uniconv/u32-conv-from-enc.c: New file.
25621         * modules/uniconv/u32-conv-from-enc-tests: New file.
25622         * tests/uniconv/test-u32-conv-from-enc.c: New file.
25623
25624         * modules/uniconv/u16-conv-from-enc: New file.
25625         * lib/uniconv/u16-conv-from-enc.c: New file.
25626         * lib/uniconv/u-conv-from-enc.h: New file.
25627         * modules/uniconv/u16-conv-from-enc-tests: New file.
25628         * tests/uniconv/test-u16-conv-from-enc.c: New file.
25629
25630         * modules/uniconv/u8-conv-from-enc: New file.
25631         * lib/uniconv/u8-conv-from-enc.c: New file.
25632         * modules/uniconv/u8-conv-from-enc-tests: New file.
25633         * tests/uniconv/test-u8-conv-from-enc.c: New file.
25634
25635         * modules/uniconv/base: New file.
25636         * lib/uniconv.h: New file.
25637
25638 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25639
25640         * doc/gnulib-tool.texi (Initial import): Update to match current
25641         behavior with strdup module.
25642         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
25643         * lib/memmem.h: Remove; all uses removed.  This is now done
25644         by <string.h>.
25645         * lib/mempcpy.h: Likewise.
25646         * lib/memrchr.h: Likewise.
25647         * lib/stpcpy.h: Likewise.
25648         * lib/stpncpy.h: Likewise.
25649         * lib/strcase.h: Likewise.
25650         * lib/strchrnul.h: Likewise.
25651         * lib/strdup.h: Likewise.
25652         * lib/strndup.h: Likewise.
25653         * lib/strnlen.h: Likewise.
25654         * lib/strpbrk.h: Likewise.
25655         * lib/strsep.h: Likewise.
25656         * lib/strstr.h: Likewise.
25657         * lib/strtok_r.h: Likewise.
25658         * lib/string_.h: New file.
25659         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
25660         Rely on <string.h> instead.
25661         * lib/canon-host.c: Likewise.
25662         * lib/chdir-long.c: Likewise.
25663         * lib/concatpath.c: Likewise.
25664         * lib/exclude.c: Likewise.
25665         * lib/fchdir.c: Likewise.
25666         * lib/getaddrinfo.c: Likewise.
25667         * lib/getcwd.c: Likewise.
25668         * lib/getsubopt.c: Likewise.
25669         * lib/glob.c: Likewise.
25670         * lib/hard-locale.c: Likewise.
25671         * lib/iconvme.c: Likewise.
25672         * lib/javacomp.c: Likewise.
25673         * lib/mempcpy.c: Likewise.
25674         * lib/memrchr.c: Likewise.
25675         * lib/regex_internal.h: Likewise.
25676         * lib/stpncpy.c: Likewise.
25677         * lib/strcasecmp.c: Likewise.
25678         * lib/strchrnul.c: Likewise.
25679         * lib/strdup.c: Likewise.
25680         * lib/striconv.c: Likewise.
25681         * lib/striconveh.c: Likewise.
25682         * lib/striconveha.c: Likewise.
25683         * lib/strncasecmp.c: Likewise.
25684         * lib/strndup.c: Likewise.
25685         * lib/strnlen.c: Likewise.
25686         * lib/strsep.c: Likewise.
25687         * lib/strstr.c: Likewise.
25688         * lib/strtok_r.c: Likewise.
25689         * lib/userspec.c: Likewise.
25690         * lib/w32spawn.h: Likewise.
25691         * lib/xstrndup.c: Likewise.
25692         * lib/mountlist.c (strstr): Remove decl.
25693         * m4/string_h.m4: New file.
25694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
25695         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
25696         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
25697         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
25698         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
25699         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
25700         Set REPLACE_STRCASECMP if necessary.
25701         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
25702         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
25703         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
25704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
25705         HAVE_DECL_STRDUP if necessary.
25706         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
25707         since gl_FUNC_STRNDUP does that now.
25708         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
25709         Check for decl here...
25710         (gl_PREREQ_STRNLEN): ... not here.
25711         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
25712         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
25713         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
25714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
25715         necessary.
25716         * modules/string: New file.
25717         * modules/memmem (Files): Remove special-purpose include file.
25718         (Depends-on): Add string.
25719         (Include): Include <string.h>, not the removed file.
25720         * modules/mempcpy: Likewise.
25721         * modules/memrchr: Likewise.
25722         * modules/stpcpy: Likewise.
25723         * modules/stpncpy: Likewise.
25724         * modules/strcase: Likewise.
25725         * modules/strchrnul: Likewise.
25726         * modules/strdup: Likewise.
25727         * modules/strndup: Likewise.
25728         * modules/strnlen: Likewise.
25729         * modules/strpbrk: Likewise.
25730         * modules/strsep: Likewise.
25731         * modules/strstr: Likewise.
25732         * modules/strtok_r: Likewise.
25733         * tests/test-dirname.c: Don't include "strdup.h", since
25734         <string.h> now suffices.
25735         * tests/test-memmem.c: Don't include "memmem.h", since
25736         <string.h> now suffices.
25737
25738 2007-01-25  Bruno Haible  <bruno@clisp.org>
25739
25740         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
25741         *resultp is 0.
25742
25743         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
25744         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
25745         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
25746         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
25747
25748         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
25749         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
25750         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
25751         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
25752         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
25753         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
25754
25755 2007-01-24  Bruno Haible  <bruno@clisp.org>
25756
25757         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
25758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
25759         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
25760         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
25761         gl_FUNC_FTS_CORE.
25762         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
25763         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
25764         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25765         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
25766         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
25767         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
25768         gl_FUNC_FCHOWNAT.
25769         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
25770         gl_FUNC_STRFTIME.
25771         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
25772         Reported by Ralf Wildenhues.
25773
25774 2007-01-24  Bruno Haible  <bruno@clisp.org>
25775
25776         Drop AC_REQUIRE calls that are redundant with the module dependencies.
25777         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
25778         gl_GETADDRINFO.
25779         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
25780         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
25781         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
25782
25783 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
25786         Don't use 'exit'; just return from 'main'.
25787         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
25788
25789         * lib/fnmatch_.h: Readjust white space and comments to match
25790         glibc, to avoid spurious diffs.
25791
25792 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25793
25794         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
25795         2004-12-01 change by Jakub Jelinek, since this code won't compile
25796         if !LIBC.  Problem reported by Bob Proulx.
25797
25798 2007-01-23  Bruno Haible  <bruno@clisp.org>
25799
25800         * lib/striconveh.c: Include c-strcaseeq.h.
25801         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
25802         * modules/striconveh (Depends-on): Add c-strcaseeq.
25803
25804 2007-01-23  Bruno Haible  <bruno@clisp.org>
25805
25806         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
25807
25808         * modules/c-strcaseeq: New file.
25809         * lib/c-strcaseeq.h: New file.
25810
25811         * modules/streq: New file.
25812         * lib/streq.h: New file.
25813
25814 2007-01-23  Bruno Haible  <bruno@clisp.org>
25815
25816         * modules/striconveha-tests: New file.
25817         * tests/test-striconveha.c: New file.
25818
25819         * lib/striconveha.h: Include <stdbool.h>.
25820         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
25821         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
25822         (mem_iconveha_notranslit): Renamed from mem_iconveha.
25823         (mem_iconveha): New function.
25824         (str_iconveha_notranslit): Renamed from str_iconveha.
25825         (str_iconveha): New function.
25826         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
25827         c-strcase.
25828
25829 2007-01-23  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
25832         encodings without forgiving before trying any encoding with handler.
25833         (str_iconveha): Try all encodings without forgiving before trying any
25834         encoding with handler.
25835
25836 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25837
25838         Import the following changes from libc.
25839
25840         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25841
25842         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
25843
25844         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25845
25846         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
25847         normal_bracket label.
25848
25849         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
25850
25851         [BZ #361]
25852         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
25853         to normal_bracket after fetching the next character.
25854
25855 2007-01-22  Bruno Haible  <bruno@clisp.org>
25856
25857         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
25858         argument.
25859         * lib/striconveh.c (iconv_carefully_1): New function.
25860         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
25861         argument.
25862         (str_cd_iconveh): Update.
25863         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
25864         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
25865         * tests/test-striconveh.c (MAGIC): New macro.
25866         (new_offsets): New function.
25867         (main): Test call with and without offsets.
25868
25869 2007-01-22  Bruno Haible  <bruno@clisp.org>
25870
25871         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
25872         * modules/sys_select (Makefile.am): Likewise.
25873         * modules/sys_socket (Makefile.am): Likewise.
25874         * modules/sys_time (Makefile.am): Likewise.
25875
25876 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25877
25878         * modules/gettimeofday (License): Change from GPL to LGPL, since
25879         gettimeofday is a library function.
25880
25881 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25882
25883         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
25884
25885 2007-01-21  Bruno Haible  <bruno@clisp.org>
25886
25887         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
25888
25889 2007-01-21  Bruno Haible  <bruno@clisp.org>
25890
25891         * modules/striconveha: New file.
25892         * lib/striconveha.h: New file.
25893         * lib/striconveha.c: New file.
25894         * MODULES.html.sh (Internationalization functions): Add striconveha.
25895         * lib/striconv.c (str_iconv): Optimize the case of an empty input
25896         string.
25897         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
25898
25899 2007-01-21  Bruno Haible  <bruno@clisp.org>
25900
25901         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
25902         * lib/striconveh.c (str_iconveh): Likewise.
25903
25904 2007-01-21  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/striconveh.h (mem_iconveh): New declaration.
25907         * lib/striconveh.c (mem_iconveh): New function.
25908         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
25909
25910 2007-01-21  Bruno Haible  <bruno@clisp.org>
25911
25912         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
25913
25914         * lib/striconveh.h (mem_cd_iconveh): Change specification.
25915         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
25916         original result buffer.
25917         (str_cd_iconveh): Update.
25918         * tests/test-striconveh.c (main): Update.
25919
25920         * lib/striconv.h (mem_cd_iconv): Change specification.
25921         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25922         result buffer.
25923         (str_cd_iconv): Update.
25924         * tests/test-striconv.c (main): Update.
25925
25926 2007-01-21  Bruno Haible  <bruno@clisp.org>
25927
25928         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25929
25930 2007-01-20  Jim Meyering  <jim@meyering.net>
25931
25932         * lib/userspec.c (parse_with_separator): If a user or group string
25933         starts with "+", skip the corresponding name-to-ID look-up, since
25934         such a look-up must fail: user and group names may not include "+".
25935
25936 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         * lib/poll.c: Include sys/time.h and time.h unconditionally,
25939         since we now assume the sys_time module.
25940         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25941         check for sys/time.h; no longer needed.
25942         * modules/poll (Depends-on): Depend on sys_time.
25943
25944 2007-01-18  Bruno Haible  <bruno@clisp.org>
25945
25946         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25947         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25948
25949         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25950         gettimeofday.
25951
25952         * tests/test-gettimeofday.c: Include <time.h>.
25953         (dummy): Remove variable.
25954
25955         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25956         gl_HEADER_SYS_TIME_H.
25957         (gl_HEADER_SYS_TIME_H): New macro.
25958
25959         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25960         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25962         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25963         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25965         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25966         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25967         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25968         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25969         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25970
25971         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25972         last change; it caused a compilation error when cross-compiling to
25973         Cygwin.
25974
25975 2007-01-18  Jim Meyering  <jim@meyering.net>
25976
25977         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25978         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25979         than the race-prone "test -d sys || mkdir sys".
25980         (configure.ac): Use AC_PROG_MKDIR_P.
25981         * modules/sys_select: Likewise.
25982         * modules/sys_socket: Likewise.
25983         * modules/sys_time: Likewise.
25984
25985 2007-01-18  Eric Blake  <ebb9@byu.net>
25986
25987         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25988         replace gettimeofday.
25989         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25990         name, to avoid infinite recursion.
25991
25992 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25993
25994         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25995         module sys_time.
25996         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25997         assume timespec.h defines struct timeval.
25998         * lib/settime.c: Likewise.
25999         * lib/utimens.c: Likewise.
26000         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
26001         since we now assume the gettimeofday module.
26002         * lib/tempname.c (__gen_tempname): Likewise.
26003         * lib/gettimeofday.h: Remove.
26004         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
26005         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
26006         Include <time.h>, for 'time()'.
26007         (localtime_buffer_addr): Also use this workaround if
26008         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
26009         to simplify the uses.  All uses changed.
26010         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
26011         that #undef is inside {}, and 'const' follows type name consistently.
26012         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
26013         (gettimeofday): Do not use the maximum possible value for
26014         tv->tv_usec, since that might break usages other than ls.c.
26015         Instead, we'll leave ls.c alone.  This undoes today's patch
26016         by Bruno.  Add a compile-time warning for 1s-clock resolution;
26017         we've never observed the problem but might as well keep the
26018         canary.
26019         * lib/nanosleep.c: Include timespec.h first, for interface check.
26020         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
26021         now assume the sys_time module.
26022         * lib/tempname.c: Likewise.
26023         * lib/timespec.h: Likewise.
26024         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
26025         needed.
26026         * lib/strftime.c: Likewise.
26027         * lib/timespec.h: Likewise.
26028         * lib/posixtm.c: Include posixtm.h first, for interface check.
26029         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
26030         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
26031         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
26032         * lib/sys_time_.h: New file.
26033         * lib/timespec.h (struct timespec): Use long int, not long.
26034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
26035         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
26036         Remove obsolescent call to AC_HEADER_TIME.
26037         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
26040         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
26041         Likewise.
26042         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
26043         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
26044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
26045         into the sys_time module.  Check for gettimeofday just once.
26046         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
26047         for gettimeofday signature to just check the signature.  Merely
26048         compile it, since linking doesn't test signature.  Improve test for
26049         whether gettimeofday.o is actually needed.
26050         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
26051         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
26052         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
26053         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
26054         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
26055         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
26056         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
26057         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
26058         than worrying about sys/time.h.
26059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26060         Don't bother worrying about TIME_WITH_SYS_TIME.
26061         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26062         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
26063         * m4/sys_time_h.m4: New file.
26064         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
26065         Don't include sys/time.h.  Return from main rather than exiting.
26066         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
26067         all uses changed.
26068         * modules/gethrxtime (Depends-on): Add sys_time.
26069         * modules/gettime (Depends-on): Likewise.
26070         * modules/gettimeofday (Depends-on): Likewise.
26071         * modules/nanosleep (Depends-on): Likewise.
26072         * modules/settime (Depends-on): Likewise.
26073         * modules/tempname (Depends-on): Likewise.
26074         * modules/utimens (Depends-on): Likewise.
26075         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
26076         (Include:) Change back to <sys/time.h>.
26077         (Maintainer:) Add self.
26078         * modules/sys_time: New file.
26079         * modules/tempname (Depends-on): Add gettimeofday.
26080         * tests/test-gettimeofday.c: Include <sys/time.h>
26081         rather than gettimeofday.h.
26082
26083 2007-01-17  Bruno Haible  <bruno@clisp.org>
26084
26085         * gnulib-tool (func_get_license): Revert last patch. Instead, let
26086         the license default to GPL.
26087         (func_create_testdir): Don't complain if a module is LGPL and its
26088         tests module depends on GPLed modules.
26089
26090 2007-01-17  Bruno Haible  <bruno@clisp.org>
26091
26092         * lib/gettimeofday.c (gettimeofday): Add code for the case
26093         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
26094         maximum possible value for tv->tv_usec, rather than the minimum one.
26095
26096 2005-10-08  Martin Lambers  <marlam@marlam.de>
26097 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26098 2007-01-16  Bruno Haible  <bruno@clisp.org>
26099
26100         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
26101         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
26102         gl_FUNC_GETTIMEOFDAY.
26103         (Include): Add gettimeofday.h.
26104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
26105         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
26106         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
26107         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
26108         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
26109         * lib/gettimeofday.h: New file.
26110         * lib/gettimeofday.c: Include <sys/timeb.h>.
26111         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
26112         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
26113         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
26114         fall back on time().
26115
26116         * tests/test-gettimeofday.c: New file.
26117         * modules/gettimeofday-tests: New file.
26118
26119 2007-01-16  Eric Blake  <ebb9@byu.net>
26120
26121         * modules/fnmatch (Depends-on): Depend on wchar.
26122         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
26123         * m4/fnmatch.m4: Likewise.
26124         * modules/mbchar (Makefile.am): Assume <wchar.h>.
26125         * m4/mbchar.m4: Likewise.
26126         * modules/mbswidth (Depends-on): Depend on wchar.
26127         * lib/mbswidth.c: Assume <wchar.h>.
26128         * m4/mbswidth.m4: Likewise.
26129         * modules/quotearg (Depends-on): Depend on wchar.
26130         * lib/quotearg.c: Assume <wchar.h>.
26131         * m4/quotearg.m4: Likewise.
26132         * modules/regex (Depends-on): Depend on wchar.
26133         * lib/regex_internal.h: Assume <wchar.h>.
26134         * m4/regex.m4: Likewise.
26135         * modules/stdint (Depends-on): Depend on wchar.
26136         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
26137         * m4/stdint.m4: Likewise.
26138         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
26139         * modules/strftime (Depends-on): Depend on wchar.
26140         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
26141         * modules/strtol (Depends-on): Depend on wchar.
26142         * lib/strtol.c: Assume <wchar.h>.
26143         * modules/wcwidth (Depends-on): Depend on wchar.
26144         * lib/wcwidth.h: Assume <wchar.h>.
26145         * m4/wcwidth.m4: Likewise.
26146
26147 2007-01-16  Bruno Haible  <bruno@clisp.org>
26148
26149         * modules/csharpexec-script: New, created from...
26150         * modules/csharpexec: ... this.
26151
26152 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26153
26154         * modules/javaexec-script: New, created from...
26155         * modules/javaexec: ... this.
26156
26157 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26158
26159         * modules/poll (Dependencies): Add sys_select.
26160
26161 2007-01-15  Jim Meyering  <jim@meyering.net>
26162
26163         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
26164         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
26165         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
26166         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
26167
26168 2007-01-15  Bruno Haible  <bruno@clisp.org>
26169
26170         * modules/striconveh: New file.
26171         * lib/striconveh.h: New file.
26172         * lib/striconveh.c: New file.
26173         * MODULES.html.sh (Internationalization functions): Add striconveh.
26174
26175         * modules/striconveh-tests: New file.
26176         * tests/test-striconveh.c: New file.
26177
26178 2007-01-15  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
26181         not from GNU libiconv or GNU libc.
26182
26183 2007-01-15  Bruno Haible  <bruno@clisp.org>
26184
26185         * doc/gnulib-intro.texi (Copyright): Explain the different license
26186         terms for module descriptions, autoconf macros, tests, documentation.
26187
26188 2007-01-14  Bruno Haible  <bruno@clisp.org>
26189
26190         * modules/striconv-tests: New file.
26191         * tests/test-striconv.c: New file.
26192
26193 2007-01-14  Bruno Haible  <bruno@clisp.org>
26194
26195         * modules/iconv-tests: New file.
26196         * tests/test-iconv.c: New file.
26197
26198 2007-01-14  Bruno Haible  <bruno@clisp.org>
26199
26200         * gnulib-tool (func_get_license): For test modules, use the license of
26201         the main module.
26202
26203 2007-01-14  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/iconv (Include): Clarify that <iconv.h> can only be included
26206         if iconv is found to exist.
26207
26208 2007-01-14  Bruno Haible  <bruno@clisp.org>
26209
26210         * modules/c-ctype-tests: New file.
26211         * tests/test-c-ctype.c: New file.
26212
26213 2007-01-14  Bruno Haible  <bruno@clisp.org>
26214
26215         * modules/binary-io-tests: New file.
26216         * tests/test-binary-io.sh: New file.
26217         * tests/test-binary-io.c: New file.
26218
26219 2007-01-14  Bruno Haible  <bruno@clisp.org>
26220
26221         * modules/array-oset-tests: New file.
26222         * tests/test-array_oset.c: New file.
26223
26224 2007-01-14  Bruno Haible  <bruno@clisp.org>
26225
26226         * modules/array-list-tests: New file.
26227         * tests/test-array_list.c: New file.
26228
26229 2007-01-14  Bruno Haible  <bruno@clisp.org>
26230
26231         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
26232         and make.
26233         Reported by Simon Josefsson in
26234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
26235
26236 2007-01-14  Bruno Haible  <bruno@clisp.org>
26237
26238         * modules/allocsa-tests: New file.
26239         * tests/test-allocsa.c: New file.
26240
26241 2007-01-14  Bruno Haible  <bruno@clisp.org>
26242
26243         * modules/fchdir (Depends-on): Add absolute-header.
26244         * modules/unistd (Depends-on): Likewise.
26245
26246 2006-12-30  Bruno Haible  <bruno@clisp.org>
26247
26248         * modules/fchdir: New file.
26249         * modules/unistd (Files): Add lib/unistd_.h.
26250         (Makefile.am): Generate unistd.h from unistd_.h.
26251         * lib/fchdir.c: New file.
26252         * lib/dirent_.h: New file.
26253         * lib/unistd_.h: New file.
26254         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
26255         * m4/fchdir.m4: New file.
26256         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
26257         (gl_HEADER_UNISTD): Invoke it.
26258         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
26259         function.
26260         * lib/backupfile.c (opendir, closedir): Undefine.
26261         * lib/chown.c (open, close): Undefine.
26262         * lib/clean-temp.c (open, close): Undefine.
26263         * lib/copy-file.c (open, close): Undefine.
26264         * lib/execute.c (open, close): Undefine.
26265         * lib/fsusage.c (open, close): Undefine.
26266         * lib/gc-gnulib.c (open, close): Undefine.
26267         * lib/getcwd.c (opendir, closedir): Undefine.
26268         * lib/glob.c (opendir, closedir): Undefine.
26269         * lib/javacomp.c (open, close): Undefine.
26270         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
26271         * lib/openat-proc.c (open, close): Undefine.
26272         * lib/pagealign_alloc.c (open, close): Undefine.
26273         * lib/pipe.c (open, close): Undefine.
26274         * lib/progreloc.c (open, close): Undefine.
26275         * lib/savedir.c (opendir, closedir): Undefine.
26276         * lib/utime.c (open, close): Undefine.
26277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
26278
26279 2007-01-10  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
26282
26283 2007-01-12  Eric Blake  <ebb9@byu.net>
26284
26285         Provide a robust <wchar.h>.  Further simplifications are now
26286         possible in other modules, but not included here.
26287         * modules/wchar: New module.
26288         * m4/wchar.m4: New file.
26289         * lib/wchar_.h: Likewise.
26290         * modules/mbchar (Depends-on): Depend on wchar, as the first use
26291         of the new module.
26292         * MODULES.html.sh (Extended multibyte and wide character utilities):
26293         New section.
26294
26295 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
26296
26297         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
26298         to a reasonable default for memory allocation.
26299         (xreadlink): Don't allocate a huge buffer, to work around a buggy
26300         file system that reports garbage st_size values for symlinks.
26301         Problem reported by Liyang Hu.
26302
26303 2007-01-11  Simon Josefsson  <simon@josefsson.org>
26304
26305         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
26306         Emacs .#* auto-save files).
26307
26308 2007-01-11  Bruno Haible  <bruno@clisp.org>
26309
26310         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
26311         directory.
26312
26313 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26314
26315         Use @...@ consistently in lib/wctype_.h.
26316         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
26317         on it being set to 1 or 0.
26318         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
26319         go back to AC_SUBSTing it.
26320         * modules/wctype (Makefile.am): Undo previous change.
26321
26322 2007-01-10  Eric Blake  <ebb9@byu.net>
26323
26324         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
26325         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
26326         * modules/wctype (Makefile.am): Likewise.
26327         Reported by Chris McGuire.
26328
26329 2007-01-10  Jim Meyering  <jim@meyering.net>
26330
26331         fts.c: a small readability/maintainability improvement
26332         * lib/fts.c (fts_read): Make this code slightly more readable and
26333         maintainable by hoisting the "sp->fts_cur = p" assignments to
26334         immediately follow the statements that set P.  Derived from
26335         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
26336
26337 2007-01-10  Eric Blake  <ebb9@byu.net>
26338
26339         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
26340         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
26341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26342         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26343         Reported by Chris McGuire.
26344
26345 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26346
26347         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
26348         in sed script.
26349
26350 2007-01-09  Bruno Haible  <bruno@clisp.org>
26351
26352         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
26353         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
26354         variables.
26355         (func_module): Use them.
26356
26357 2007-01-09  Bruno Haible  <bruno@clisp.org>
26358
26359         * modules/unistr/base: New file.
26360         * lib/unistr.h: New file.
26361
26362         * modules/unistr/u8-to-u16: New file.
26363         * lib/unistr/u8-to-u16.c: New file.
26364
26365         * modules/unistr/u8-to-u32: New file.
26366         * lib/unistr/u8-to-u32.c: New file.
26367
26368         * modules/unistr/u16-to-u8: New file.
26369         * lib/unistr/u16-to-u8.c: New file.
26370
26371         * modules/unistr/u16-to-u32: New file.
26372         * lib/unistr/u16-to-u32.c: New file.
26373
26374         * modules/unistr/u32-to-u8: New file.
26375         * lib/unistr/u32-to-u8.c: New file.
26376
26377         * modules/unistr/u32-to-u16: New file.
26378         * lib/unistr/u32-to-u16.c: New file.
26379
26380         * modules/unistr/u8-check: New file.
26381         * modules/unistr/u16-check: New file.
26382         * modules/unistr/u32-check: New file.
26383         * lib/unistr/u8-check.c: New file.
26384         * lib/unistr/u16-check.c: New file.
26385         * lib/unistr/u32-check.c: New file.
26386
26387         * modules/unistr/u8-chr: New file.
26388         * modules/unistr/u16-chr: New file.
26389         * modules/unistr/u32-chr: New file.
26390         * lib/unistr/u8-chr.c: New file.
26391         * lib/unistr/u16-chr.c: New file.
26392         * lib/unistr/u32-chr.c: New file.
26393
26394         * modules/unistr/u8-cmp: New file.
26395         * modules/unistr/u16-cmp: New file.
26396         * modules/unistr/u32-cmp: New file.
26397         * lib/unistr/u8-cmp.c: New file.
26398         * lib/unistr/u16-cmp.c: New file.
26399         * lib/unistr/u32-cmp.c: New file.
26400
26401         * modules/unistr/u8-cpy: New file.
26402         * modules/unistr/u16-cpy: New file.
26403         * modules/unistr/u32-cpy: New file.
26404         * lib/unistr/u8-cpy.c: New file.
26405         * lib/unistr/u16-cpy.c: New file.
26406         * lib/unistr/u32-cpy.c: New file.
26407         * lib/unistr/u-cpy.h: New file.
26408
26409         * modules/unistr/u8-cpy-alloc: New file.
26410         * modules/unistr/u16-cpy-alloc: New file.
26411         * modules/unistr/u32-cpy-alloc: New file.
26412         * lib/unistr/u8-cpy-alloc.c: New file.
26413         * lib/unistr/u16-cpy-alloc.c: New file.
26414         * lib/unistr/u32-cpy-alloc.c: New file.
26415         * lib/unistr/u-cpy-alloc.h: New file.
26416
26417         * modules/unistr/u8-endswith: New file.
26418         * modules/unistr/u16-endswith: New file.
26419         * modules/unistr/u32-endswith: New file.
26420         * lib/unistr/u8-endswith.c: New file.
26421         * lib/unistr/u16-endswith.c: New file.
26422         * lib/unistr/u32-endswith.c: New file.
26423         * lib/unistr/u-endswith.h: New file.
26424
26425         * modules/unistr/u8-mblen: New file.
26426         * modules/unistr/u16-mblen: New file.
26427         * modules/unistr/u32-mblen: New file.
26428         * lib/unistr/u8-mblen.c: New file.
26429         * lib/unistr/u16-mblen.c: New file.
26430         * lib/unistr/u32-mblen.c: New file.
26431
26432         * modules/unistr/u8-mbtouc: New file.
26433         * modules/unistr/u16-mbtouc: New file.
26434         * modules/unistr/u32-mbtouc: New file.
26435         * lib/unistr/u8-mbtouc.c: New file.
26436         * lib/unistr/u16-mbtouc.c: New file.
26437         * lib/unistr/u32-mbtouc.c: New file.
26438
26439         * modules/unistr/u8-mbtouc-safe: New file.
26440         * modules/unistr/u16-mbtouc-safe: New file.
26441         * modules/unistr/u32-mbtouc-safe: New file.
26442         * lib/unistr/u8-mbtouc-safe.c: New file.
26443         * lib/unistr/u16-mbtouc-safe.c: New file.
26444         * lib/unistr/u32-mbtouc-safe.c: New file.
26445
26446         * modules/unistr/u8-move: New file.
26447         * modules/unistr/u16-move: New file.
26448         * modules/unistr/u32-move: New file.
26449         * lib/unistr/u8-move.c: New file.
26450         * lib/unistr/u16-move.c: New file.
26451         * lib/unistr/u32-move.c: New file.
26452         * lib/unistr/u-move.h: New file.
26453
26454         * modules/unistr/u8-next: New file.
26455         * modules/unistr/u16-next: New file.
26456         * modules/unistr/u32-next: New file.
26457         * lib/unistr/u8-next.c: New file.
26458         * lib/unistr/u16-next.c: New file.
26459         * lib/unistr/u32-next.c: New file.
26460
26461         * modules/unistr/u8-prev: New file.
26462         * modules/unistr/u16-prev: New file.
26463         * modules/unistr/u32-prev: New file.
26464         * lib/unistr/u8-prev.c: New file.
26465         * lib/unistr/u16-prev.c: New file.
26466         * lib/unistr/u32-prev.c: New file.
26467
26468         * modules/unistr/u8-set: New file.
26469         * modules/unistr/u16-set: New file.
26470         * modules/unistr/u32-set: New file.
26471         * lib/unistr/u8-set.c: New file.
26472         * lib/unistr/u16-set.c: New file.
26473         * lib/unistr/u32-set.c: New file.
26474         * lib/unistr/u-set.h: New file.
26475
26476         * modules/unistr/u8-startswith: New file.
26477         * modules/unistr/u16-startswith: New file.
26478         * modules/unistr/u32-startswith: New file.
26479         * lib/unistr/u8-startswith.c: New file.
26480         * lib/unistr/u16-startswith.c: New file.
26481         * lib/unistr/u32-startswith.c: New file.
26482         * lib/unistr/u-startswith.h: New file.
26483
26484         * modules/unistr/u8-stpcpy: New file.
26485         * modules/unistr/u16-stpcpy: New file.
26486         * modules/unistr/u32-stpcpy: New file.
26487         * lib/unistr/u8-stpcpy.c: New file.
26488         * lib/unistr/u16-stpcpy.c: New file.
26489         * lib/unistr/u32-stpcpy.c: New file.
26490         * lib/unistr/u-stpcpy.h: New file.
26491
26492         * modules/unistr/u8-stpncpy: New file.
26493         * modules/unistr/u16-stpncpy: New file.
26494         * modules/unistr/u32-stpncpy: New file.
26495         * lib/unistr/u8-stpncpy.c: New file.
26496         * lib/unistr/u16-stpncpy.c: New file.
26497         * lib/unistr/u32-stpncpy.c: New file.
26498         * lib/unistr/u-stpncpy.h: New file.
26499
26500         * modules/unistr/u8-strcat: New file.
26501         * modules/unistr/u16-strcat: New file.
26502         * modules/unistr/u32-strcat: New file.
26503         * lib/unistr/u8-strcat.c: New file.
26504         * lib/unistr/u16-strcat.c: New file.
26505         * lib/unistr/u32-strcat.c: New file.
26506         * lib/unistr/u-strcat.h: New file.
26507
26508         * modules/unistr/u8-strchr: New file.
26509         * modules/unistr/u16-strchr: New file.
26510         * modules/unistr/u32-strchr: New file.
26511         * lib/unistr/u8-strchr.c: New file.
26512         * lib/unistr/u16-strchr.c: New file.
26513         * lib/unistr/u32-strchr.c: New file.
26514
26515         * modules/unistr/u8-strcmp: New file.
26516         * modules/unistr/u16-strcmp: New file.
26517         * modules/unistr/u32-strcmp: New file.
26518         * lib/unistr/u8-strcmp.c: New file.
26519         * lib/unistr/u16-strcmp.c: New file.
26520         * lib/unistr/u32-strcmp.c: New file.
26521
26522         * modules/unistr/u8-strcpy: New file.
26523         * modules/unistr/u16-strcpy: New file.
26524         * modules/unistr/u32-strcpy: New file.
26525         * lib/unistr/u8-strcpy.c: New file.
26526         * lib/unistr/u16-strcpy.c: New file.
26527         * lib/unistr/u32-strcpy.c: New file.
26528         * lib/unistr/u-strcpy.h: New file.
26529
26530         * modules/unistr/u8-strcspn: New file.
26531         * modules/unistr/u16-strcspn: New file.
26532         * modules/unistr/u32-strcspn: New file.
26533         * lib/unistr/u8-strcspn.c: New file.
26534         * lib/unistr/u16-strcspn.c: New file.
26535         * lib/unistr/u32-strcspn.c: New file.
26536         * lib/unistr/u-strcspn.h: New file.
26537
26538         * modules/unistr/u8-strdup: New file.
26539         * modules/unistr/u16-strdup: New file.
26540         * modules/unistr/u32-strdup: New file.
26541         * lib/unistr/u8-strdup.c: New file.
26542         * lib/unistr/u16-strdup.c: New file.
26543         * lib/unistr/u32-strdup.c: New file.
26544         * lib/unistr/u-strdup.h: New file.
26545
26546         * modules/unistr/u8-strlen: New file.
26547         * modules/unistr/u16-strlen: New file.
26548         * modules/unistr/u32-strlen: New file.
26549         * lib/unistr/u8-strlen.c: New file.
26550         * lib/unistr/u16-strlen.c: New file.
26551         * lib/unistr/u32-strlen.c: New file.
26552         * lib/unistr/u-strlen.h: New file.
26553
26554         * modules/unistr/u8-strmblen: New file.
26555         * modules/unistr/u16-strmblen: New file.
26556         * modules/unistr/u32-strmblen: New file.
26557         * lib/unistr/u8-strmblen.c: New file.
26558         * lib/unistr/u16-strmblen.c: New file.
26559         * lib/unistr/u32-strmblen.c: New file.
26560
26561         * modules/unistr/u8-strmbtouc: New file.
26562         * modules/unistr/u16-strmbtouc: New file.
26563         * modules/unistr/u32-strmbtouc: New file.
26564         * lib/unistr/u8-strmbtouc.c: New file.
26565         * lib/unistr/u16-strmbtouc.c: New file.
26566         * lib/unistr/u32-strmbtouc.c: New file.
26567
26568         * modules/unistr/u8-strncat: New file.
26569         * modules/unistr/u16-strncat: New file.
26570         * modules/unistr/u32-strncat: New file.
26571         * lib/unistr/u8-strncat.c: New file.
26572         * lib/unistr/u16-strncat.c: New file.
26573         * lib/unistr/u32-strncat.c: New file.
26574         * lib/unistr/u-strncat.h: New file.
26575
26576         * modules/unistr/u8-strncmp: New file.
26577         * modules/unistr/u16-strncmp: New file.
26578         * modules/unistr/u32-strncmp: New file.
26579         * lib/unistr/u8-strncmp.c: New file.
26580         * lib/unistr/u16-strncmp.c: New file.
26581         * lib/unistr/u32-strncmp.c: New file.
26582
26583         * modules/unistr/u8-strncpy: New file.
26584         * modules/unistr/u16-strncpy: New file.
26585         * modules/unistr/u32-strncpy: New file.
26586         * lib/unistr/u8-strncpy.c: New file.
26587         * lib/unistr/u16-strncpy.c: New file.
26588         * lib/unistr/u32-strncpy.c: New file.
26589         * lib/unistr/u-strncpy.h: New file.
26590
26591         * modules/unistr/u8-strnlen: New file.
26592         * modules/unistr/u16-strnlen: New file.
26593         * modules/unistr/u32-strnlen: New file.
26594         * lib/unistr/u8-strnlen.c: New file.
26595         * lib/unistr/u16-strnlen.c: New file.
26596         * lib/unistr/u32-strnlen.c: New file.
26597         * lib/unistr/u-strnlen.h: New file.
26598
26599         * modules/unistr/u8-strpbrk: New file.
26600         * modules/unistr/u16-strpbrk: New file.
26601         * modules/unistr/u32-strpbrk: New file.
26602         * lib/unistr/u8-strpbrk.c: New file.
26603         * lib/unistr/u16-strpbrk.c: New file.
26604         * lib/unistr/u32-strpbrk.c: New file.
26605         * lib/unistr/u-strpbrk.h: New file.
26606
26607         * modules/unistr/u8-strrchr: New file.
26608         * modules/unistr/u16-strrchr: New file.
26609         * modules/unistr/u32-strrchr: New file.
26610         * lib/unistr/u8-strrchr.c: New file.
26611         * lib/unistr/u16-strrchr.c: New file.
26612         * lib/unistr/u32-strrchr.c: New file.
26613
26614         * modules/unistr/u8-strspn: New file.
26615         * modules/unistr/u16-strspn: New file.
26616         * modules/unistr/u32-strspn: New file.
26617         * lib/unistr/u8-strspn.c: New file.
26618         * lib/unistr/u16-strspn.c: New file.
26619         * lib/unistr/u32-strspn.c: New file.
26620         * lib/unistr/u-strspn.h: New file.
26621
26622         * modules/unistr/u8-strstr: New file.
26623         * modules/unistr/u16-strstr: New file.
26624         * modules/unistr/u32-strstr: New file.
26625         * lib/unistr/u8-strstr.c: New file.
26626         * lib/unistr/u16-strstr.c: New file.
26627         * lib/unistr/u32-strstr.c: New file.
26628         * lib/unistr/u-strstr.h: New file.
26629
26630         * modules/unistr/u8-strtok: New file.
26631         * modules/unistr/u16-strtok: New file.
26632         * modules/unistr/u32-strtok: New file.
26633         * lib/unistr/u8-strtok.c: New file.
26634         * lib/unistr/u16-strtok.c: New file.
26635         * lib/unistr/u32-strtok.c: New file.
26636         * lib/unistr/u-strtok.h: New file.
26637
26638         * modules/unistr/u8-uctomb: New file.
26639         * modules/unistr/u16-uctomb: New file.
26640         * modules/unistr/u32-uctomb: New file.
26641         * lib/unistr/u8-uctomb.c: New file.
26642         * lib/unistr/u16-uctomb.c: New file.
26643         * lib/unistr/u32-uctomb.c: New file.
26644
26645         * MODULES.html.sh (Unicode string functions): Add the new modules.
26646
26647 2007-01-08  Bruno Haible  <bruno@clisp.org>
26648
26649         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
26650         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
26651         subdirectories.
26652
26653 2007-01-08  Karl Berry  <karl@gnu.org>
26654
26655         * doc/error.texi: mention that main() fns must set program_name
26656         when progname is used.
26657
26658 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
26661         WCTYPE_H is empty, for the benefit of builds from non-distclean
26662         directories.  Problem reported by Eric Blake in
26663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
26664
26665 2007-01-08  Bruno Haible  <bruno@clisp.org>
26666
26667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
26668         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
26669         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
26670         PROVIDE_CANONICALIZE_FILENAME_MODE.
26671         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
26672
26673 2007-01-08  Bruno Haible  <bruno@clisp.org>
26674
26675         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
26676         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
26677         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
26678         * lib/fts.c: Likewise.
26679         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
26680
26681 2006-12-25  Bruno Haible  <bruno@clisp.org>
26682
26683         * modules/utf8-ucs4-safe: New file.
26684         * lib/utf8-ucs4-safe.h: New file.
26685         * lib/unistr/utf8-ucs4-safe.c: New file.
26686
26687         * modules/utf16-ucs4-safe: New file.
26688         * lib/utf16-ucs4-safe.h: New file.
26689         * lib/unistr/utf16-ucs4-safe.c: New file.
26690
26691         * MODULES.html.sh (Unicode string functions): Add the new modules.
26692
26693 2007-01-08  Bruno Haible  <bruno@clisp.org>
26694
26695         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
26696         (Depends-on): Add unitypes.
26697         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26698         (u8_mbtouc_aux): Move out to separate file.
26699         (u8_mbtouc): Use ucs4_t, uint8_t types.
26700         * lib/unistr/utf8-ucs4.c: New file.
26701
26702         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
26703         (Depends-on): Add unitypes.
26704         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26705         (u16_mbtouc_aux): Move out to separate file.
26706         (u16_mbtouc): Use ucs4_t, uint16_t types.
26707         * lib/unistr/utf16-ucs4.c: New file.
26708
26709         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
26710         (Depends-on): Add unitypes.
26711         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
26712         (u8_uctomb_aux): Move out to separate file.
26713         (u8_uctomb): Use ucs4_t, uint8_t types.
26714         * lib/unistr/ucs4-utf8.c: New file.
26715
26716         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
26717         (Depends-on): Add unitypes.
26718         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
26719         (u16_uctomb_aux): Move out to separate file.
26720         (u16_uctomb): Use ucs4_t, uint16_t types.
26721         * lib/unistr/ucs4-utf16.c: New file.
26722
26723 2006-12-25  Bruno Haible  <bruno@clisp.org>
26724
26725         * modules/unitypes: New file.
26726         * lib/unitypes.h: New file.
26727         * MODULES.html.sh (func_all_modules): New section "Unicode string
26728         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
26729         this section. Add unitypes.
26730
26731 2007-01-08  Bruno Haible  <bruno@clisp.org>
26732
26733         Avoid variable names that conflict with those from libtool.
26734         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
26735         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
26736         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
26737         library_names_spec to acl_library_names_spec, hardcode_* to
26738         acl_hardcode_*.
26739         Reported by Ralf Wildenhues.
26740
26741 2007-01-08  Bruno Haible  <bruno@clisp.org>
26742
26743         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
26744         definition.
26745         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
26746         definition.
26747         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
26748         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
26749         definition.
26750         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
26751         definition.
26752         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
26753         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
26754         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
26755         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
26756         definition.
26757         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
26758         definition.
26759         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
26760         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
26761         GC_USE_<algorithm>.
26762         * lib/gc-libgcrypt.c: Likewise.
26763         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
26764         * modules/gc-arctwo (configure.ac): Likewise.
26765         * modules/gc-des (configure.ac): Likewise.
26766         * modules/gc-hmac-md5 (configure.ac): Likewise.
26767         * modules/gc-hmac-sha1 (configure.ac): Likewise.
26768         * modules/gc-md2 (configure.ac): Likewise.
26769         * modules/gc-md4 (configure.ac): Likewise.
26770         * modules/gc-md5 (configure.ac): Likewise.
26771         * modules/gc-random (configure.ac): Likewise.
26772         * modules/gc-rijndael (configure.ac): Likewise.
26773         * modules/gc-sha1 (configure.ac): Likewise.
26774
26775 2007-01-08  Bruno Haible  <bruno@clisp.org>
26776
26777         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
26778         macro definition.
26779         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
26780         definition.
26781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
26782         definition.
26783         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
26784         * modules/fcntl-safer (configure.ac): Likewise.
26785         * modules/fopen-safer (configure.ac): Likewise.
26786         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
26787         GNULIB_FWRITEERROR macro definition.
26788
26789 2007-01-08  Bruno Haible  <bruno@clisp.org>
26790
26791         * m4/gnulib-common.m4: New file.
26792         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
26793         (func_get_filelist): Add m4/gnulib-common.m4.
26794
26795 2007-01-08  Bruno Haible  <bruno@clisp.org>
26796
26797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
26798         command.
26799
26800 2007-01-08  Jim Meyering  <jim@meyering.net>
26801
26802         Use a more robust test for a "can't happen" condition.
26803         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
26804         narrowed the st_size value.  Presuming the "can't happen" condition
26805         is true, that narrowing could conceivably convert an invalid st_size
26806         value into a valid one.  Instead, use a change based on Matthew
26807         Woehlke's original patch.
26808
26809         Slight readability improvement: use an assert-like macro
26810         in place of literal "abort ()" uses.
26811         * lib/fts.c (fts_assert): Define.
26812         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
26813         Use this macro instead of a bare 'abort'.
26814
26815 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26816
26817         Don't worry about using IRIX 5.3's wctype.h broken definitions;
26818         simply work around them.
26819         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
26820         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
26821         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
26822         declaring.
26823         Don't bother to define as macros, since the standard doesn't require it.
26824         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
26825         longer worry about IRIX 5.3.
26826         (HAVE_WCTYPE_CTMP_BUG): Remove.
26827
26828 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26829
26830         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
26831         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
26832         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26833         Problems reported by Georg Schwarz for IRIX 5.3.
26834
26835         * gnulib-tool (autoconf_minversion): Take the maximum version number
26836         found, not the minimum.  Problem reported by James Youngman.
26837
26838 2007-01-03  Karl Berry  <karl@gnu.org>
26839
26840         * doc/error.texi: new file, explaining interaction with progname.
26841         * doc/gnulib.texi: include it.  Update copyright.
26842
26843 2007-01-03  Simon Josefsson  <simon@josefsson.org>
26844
26845         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
26846         AC_CANONICAL_HOST, to improve autobuild outputs.
26847
26848 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
26849             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26850
26851         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
26852         sockets, server sockets, and other file descriptors.  Count errors
26853         to compute the return value.  Reorder the code a bit to be easier
26854         to follow.  Don't set event bits that were not requested (except
26855         POLLERR and POLLHUP).
26856
26857 2007-01-01  Bruno Haible  <bruno@clisp.org>
26858
26859         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
26860
26861 2007-01-03  Jim Meyering  <jim@meyering.net>
26862
26863         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
26864
26865 2007-01-02  Bruno Haible  <bruno@clisp.org>
26866
26867         * modules/settime (Include): Require timespec.h.
26868         * modules/nanosleep (Include): Likewise.
26869
26870 2007-01-01  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_emit_copyright_notice): Bump year.
26873         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
26874
26875 2007-01-01  Bruno Haible  <bruno@clisp.org>
26876
26877         Improve support for OpenBSD.
26878         * build-aux/config.rpath (libname_spec): Export.
26879         (library_names_spec): New variable. Export.
26880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
26881         library_names_spec from the config.rpath output. Locate shared library
26882         through the name pattern in library_names_spec.
26883
26884 2007-01-01  Eric Blake  <ebb9@byu.net>
26885
26886         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
26887
26888 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26889
26890         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
26891         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
26892         assume the C locale, and avoid an "eval" that could cause trouble.
26893         Problem with SORT reported by Bob Proulx.
26894
26895         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
26896         Define.  Trivial patch from Henning Nielsen Lund, originally
26897         sent to bug-grep@gnu.org today.
26898
26899 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26900
26901         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
26902         struct stat.  Problem reported by Henning Nielsen Lund.
26903         * lib/acl.c: Include acl.h first, to check interface.  Don't
26904         bother to include sys/types.h and sys/stat.h again.
26905
26906 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26907
26908         Import the following change from libc; problem reported by
26909         Sven Verdoolaege.
26910
26911         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
26912
26913         [BZ #1373]
26914         * lib/argp.h: Remove __NTH for __argp_usage inline function.
26915
26916 2006-12-28  Jim Meyering  <jim@meyering.net>
26917
26918         * build-aux/announce-gen: Do not assume that the package
26919         builds any of tar.gz, tar.bz2, and .xdelta files.
26920         Suggestion from Simon Josefsson.
26921
26922 2006-12-28  Simon Josefsson  <simon@josefsson.org>
26923
26924         * modules/announce-gen: New file.
26925
26926 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26927
26928         * lib/mbchar.h: Just include <wctype.h>; the wctype module
26929         handles its gotchas now.
26930         * lib/mbswidth.c: Likewise.
26931         * lib/wcwidth.h: Likewise.
26932         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26933         and iswcntrl; the wctype module does this stuff now.
26934         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26936         * modules/mbchar (Depends-on): Add wctype.
26937         * modules/mbswidth (Depends-on): Likewise.
26938         * modules/wcwidth (Depends-on): Likewise.
26939
26940 2006-12-27  Eric Blake  <ebb9@byu.net>
26941
26942         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26943         module uses more than what <wctype.h> is required to provide.
26944
26945 2006-12-26  Eric Blake  <ebb9@byu.net>
26946
26947         * gnulib-tool (sed_extract_prog): Avoid space-tab.
26948
26949 2006-12-26  Eric Blake  <ebb9@byu.net>
26950
26951         * modules/absolute-header: New module.
26952         * modules/fcntl (Depends-on): Depend on it.
26953         * modules/inttypes (Depends-on): Likewise.
26954         * modules/stdint (Depends-on): Likewise.
26955         * modules/sys_stat (Depends-on): Likewise.
26956         * modules/wctype (Depends-on): Likewise.
26957         * MODULES.html.sh (Support for building libraries and
26958         executables): Document it.
26959
26960 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         * gnulib-tool (SED): Remove, undoing previous change.
26963         The problem was that it broke coreutils on Solaris, because
26964         "sed --posix" leaked into a makefile.
26965         (sed): New alias, if 'alias' and GNU sed.
26966
26967 2006-12-24  Jim Meyering  <jim@meyering.net>
26968
26969         Work around an fchownat bug in glibc-2.4:
26970         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26971         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26972         in spite of the -P option.
26973         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26974         New macros.
26975         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26976         * modules/openat (Files): Add lib/fchownat.c.
26977         * lib/openat.c (fchownat): Don't define here.  Move to...
26978         * lib/fchownat.c: ...this new file.
26979
26980 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26981
26982         Fix bug reported by Bruno Haible in
26983         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26984         where quotearg.c didn't compile on Mac OS X 10.2 because it
26985         lacks <wchar.h> and wint_t.
26986         * lib/wctype_.h (__wctype_wint_t): New type.
26987         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26988         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26989         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26990         Arg is now of type __wctype_wint_t, not wint_t.
26991         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26992         substitute HAVE_WINT_T.
26993         * modules/wctype (Files): Add m4/wint_t.m4.
26994         (wctype.h): Substitute HAVE_WINT_T.
26995
26996 2006-12-23  Bruno Haible  <bruno@clisp.org>
26997
26998         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26999
27000 2006-12-23  Bruno Haible  <bruno@clisp.org>
27001
27002         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
27003         S_ISLNK.
27004         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
27005         mingw.
27006
27007 2006-12-22  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/copy-file.c: Include acl.h.
27010         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
27011         Close the file descriptors only after being done with copy_acl.
27012         * modules/copy-file (Depends-on): Add acl.
27013
27014 2006-12-22  Bruno Haible  <bruno@clisp.org>
27015
27016         * gnulib-tool (SED): New variable.
27017         Use $SED instead of sed everywhere.
27018
27019 2006-12-22  Bruno Haible  <bruno@clisp.org>
27020
27021         * modules/no-c++: New file.
27022         * m4/no-c++.m4: New file.
27023         * MODULES.html.sh (Support for building libraries and executables):
27024         Add no-c++.
27025
27026 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
27029         Include <limits.h>, and use its INT_MAX to rewrite the
27030         j loop so that it does not overflow 'int'.  Problem reported by
27031         Ralf Wildenhues in
27032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
27033         Play it safe by shifting left by 1 rather than multiplying by 2,
27034         as GCC is less likely to optimize this away when the value
27035         is signed (when it assumes overflow leads to undefined behavior).
27036         Also, don't assume time_t uses two's complement.
27037
27038 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27039
27040         * MODULES.html.sh: New module wctype.
27041         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
27042         * lib/fnmatch.c: Don't bother to include <wchar.h> before
27043         <wctype.h>, since the new wctype module should fix this.
27044         * lib/quotearg.c: Include <wctype.h> unconditionally, since
27045         the wctype module should arrange for it.
27046         * lib/regex_internal.h: Likewise.
27047         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
27048         since the wctype module should handle this now.
27049         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
27050         * modules/fnmatch (Depends-on): Add wctype.
27051         * modules/quotearg (Depends-on): Likewise.
27052         * modules/regex (Depends-on): Likewise.
27053
27054 2006-12-19  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/strdup.h [C++]: Wrap definitions in extern "C".
27057         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
27058
27059 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27060
27061         * modules/savewd (Depends-on): Fix dependency on fcntl.
27062
27063 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27064
27065         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
27066         conforms to C99, rather than relying on the user's environment
27067         setting of STDINT_H.
27068
27069 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27070         and Eric Blake  <ebb9@byu.net>
27071
27072         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
27073         This is more consistent with the other defines here.
27074         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
27075         Port to z/OS.  Problem reported by Paul Gilmartin.
27076         Change local vars to use gl_ prefix rather than ac_.
27077         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
27078         with other defines.
27079         * modules/double-slash-root: New module.
27080         * modules/dirname (Files): Remove m4/double-slash-root.m4.
27081         (Depends-on): Add double-slash-root.
27082         * MODULES.html.sh (File system functions): Mention new module.
27083
27084 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
27085
27086         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
27087         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
27088         This is for the benefit of gzip, which doesn't do i18n.
27089
27090 2006-12-12  Jim Meyering  <jim@meyering.net>
27091
27092         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
27093         Reported by Andreas Schwab <schwab@suse.de>.
27094
27095 2006-12-12  Bruno Haible  <bruno@clisp.org>
27096
27097         Merge these changes.
27098         2006-09-05  Bruno Haible  <bruno@clisp.org>
27099         * lib/iconvme.c (iconv_string): No need to save and restore errno when
27100         iconv_alloc succeeded.
27101         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
27102         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
27103         test for " && dest " at the end - dest is always != NULL there. Call
27104         iconv with 4xNULL arguments initially, to reset the state. Call iconv
27105         with 2xNULL arguments, also to flush the state storage. Handle the
27106         IRIX iconv behaviour. Realloc the final result, to throw away unused
27107         memory.
27108
27109 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
27110
27111         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
27112         and fchmodat unconditionally, since glibc 2.4 has them.
27113         Problem reported by Arkadiusz Miskiewicz.
27114
27115 2006-12-10  Bruno Haible  <bruno@clisp.org>
27116
27117         * gnulib-tool (func_import): Show the include files only for those
27118         modules that are copied and specified.
27119         Reported by Karl Berry.
27120
27121 2006-12-08  Jim Meyering  <jim@meyering.net>
27122
27123         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
27124         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
27125
27126         * build-aux/announce-gen: Add two new options, both optional:
27127         --bootstrap-tools=TOOL_LIST
27128               a comma-separated list of tools, e.g.,
27129               autoconf,automake,bison,gnulib
27130         --gnulib-snapshot-date=DATE
27131               if gnulib is in the bootstrap tool list,
27132               then report this as the snapshot date.
27133               If not specified, use the current date/time.
27134               If you specify a date here, be sure it's UTC.
27135
27136 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27137
27138         * tests/test-argp-2.sh: Fix test to match actual output.
27139         (func_compare): Fix sed script to be portable.
27140
27141 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
27142
27143         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
27144         workaround for this case.  It is not autoconfigured now; offhand
27145         it's hard to see how to autoconfigure it.
27146
27147 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
27150         a directory that is about to be chowned.  Such a directory's
27151         initial file permissions should permit the owner only and this
27152         should not be changed until after the chown, since the group and
27153         other bits would be incorrect if they granted permission before
27154         the chown.
27155
27156         Fix porting problem for iswctype reported by Georg Schwarz in:
27157         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
27158         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
27159         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
27160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
27161         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27162
27163 2006-12-03  Jim Meyering  <jim@meyering.net>
27164
27165         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
27166         p->fts_statp may not yet be defined.
27167         (fts_read): Instead, set it in the caller, once p->fts_statp is
27168         sure to be defined, and corresponds to a top-level directory.
27169         This bug made du -x fail.  Here's the coreutils test case:
27170         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
27171         Reported by Mike Frysinger.
27172
27173 2006-12-01  Jim Meyering  <jim@meyering.net>
27174
27175         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
27176         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
27177         Reported by Simon Josefsson.
27178
27179 2006-11-30  Jim Meyering  <jim@meyering.net>
27180
27181         * m4/warning.m4: Use the all-permissive copyright notice
27182         recommended by RMS (rather than LGPL).
27183         * m4/vararrays.m4: Likewise.
27184         * m4/flexmember.m4: Likewise.
27185
27186 2006-11-29  Bruno Haible  <bruno@clisp.org>
27187
27188         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
27189         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
27190         using +=.
27191         Reported by Simon Josefsson <simon@josefsson.org>.
27192
27193 2006-11-28  James Youngman <jay@gnu.org>
27194
27195         * README: Advise users that they might find the bug-gnulib@gnu.org
27196         and autotools-announce@gnu.org mailing lists useful.
27197
27198 2006-11-28  Bruno Haible  <bruno@clisp.org>
27199
27200         * m4/ptrdiff_max.m4: Remove file.
27201
27202 2006-11-21  Bruno Haible  <bruno@clisp.org>
27203
27204         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
27205         _AC_COMPUTE_INT.
27206         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27207         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
27208         _AC_COMPUTE_INT.
27209         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27210         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
27211         _AC_COMPUTE_INT.
27212         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27213
27214 2006-11-28  Jim Meyering  <jim@meyering.net>
27215
27216         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
27217         warning from "gcc -Wshadow" about shadowing the builtin.
27218
27219 2006-11-27  Bruno Haible  <bruno@clisp.org>
27220
27221         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
27222         _AC_COMPUTE_INT.
27223         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
27224
27225 2006-11-27  Bruno Haible  <bruno@clisp.org>
27226             Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
27229
27230 2006-11-26  Bruno Haible  <bruno@clisp.org>
27231
27232         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
27233         noinst_LTLIBRARIES.
27234
27235 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
27236             Bruno Haible  <bruno@clisp.org>
27237
27238         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
27239         if compiling with "gcc -ansi".
27240
27241 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27242
27243         Fix some incompatibilities with gcc -ansi -pedantic.
27244         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
27245         if compiling pedantically with GCC, unless it's C99 or later.
27246         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
27247         it mishandles gcc -ansi -pedantic as well.
27248         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
27249         if gcc -pedantic.
27250         * lib/regexec.c (check_node_accept_bytes): Don't use auto
27251         initializers for struct if -pedantic, unless it's C99 or later.
27252
27253 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
27254
27255         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
27256         Don't close an fd more than once. Identical atimes indicate
27257         success, not failure.
27258
27259 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
27260
27261         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
27262
27263 2006-11-23  Jim Meyering  <jim@meyering.net>
27264
27265         * build-aux/announce-gen: New file.  From coreutils.
27266
27267 2006-11-22  Jim Meyering  <jim@meyering.net>
27268
27269         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
27270         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
27271         (fts_read): Use a temporary to narrow the overused st_size member
27272         before using it in a switch statement.  Reported by Matthew Woehlke.
27273
27274         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
27275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27276
27277 2006-11-20  Bruno Haible  <bruno@clisp.org>
27278
27279         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
27280         changequote instead of pairs of brackets.
27281         Reported by Andreas Schwab <schwab@suse.de>.
27282
27283 2006-11-21  Jim Meyering  <jim@meyering.net>
27284
27285         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
27286         so as to remain compatible with older compilers.
27287         Patch from Michael Deutschmann.
27288
27289 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27290
27291         * MODULES.html.sh (File system functions): Add openat.
27292
27293         * lib/openat.h (rpl_fstatat): New macro, if
27294         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
27295         (fstatat): Define to rpl_fstatat under the same conditions,
27296         unless COMPILING_FSTATAT.
27297         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
27298         seems to have the bug.
27299         * lib/fstatat.c: New file.
27300         * modules/openat (Files): Add it.
27301
27302 2006-11-20  Bruno Haible  <bruno@clisp.org>
27303
27304         * Makefile: New file.
27305
27306 2006-11-20  Jim Meyering  <jim@meyering.net>
27307
27308         The beginnings of syntax-related checks for gnulib.
27309         * lib/Makefile: New file.
27310         * lib/t-idcache: New script.  Ensure that the two halves of
27311         idcache.c stay in sync.
27312
27313         * lib/idcache.c: Adjust comments in user- and group- portions to
27314         be more accurate, and to be consistent with one another.
27315
27316 2006-11-20  Jim Meyering  <jim@meyering.net>
27317
27318         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
27319         continue using the flexible array member (thus, this module performs
27320         half as many malloc calls), with the addition that...
27321         (getgroup, getuser): Consistently record a non-match via an empty
27322         "name" string, and map an empty string match to a NULL return value.
27323         * modules/idcache (Depends-on): Re-add flexmember.
27324
27325         * lib/idcache.c (getuser): Remove all uses of the register keyword.
27326         (getuidbyname, getgroup, getgidbyname): Likewise.
27327
27328         Use cleaner syntax: NULL rather than 0.
27329         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
27330
27331 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27332
27333         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
27334         It mishandled the case where the group was missing.
27335         Problem reported by Greg Schafer.
27336         * modules/idcache: Likewise.
27337
27338 2006-11-18  Jim Meyering  <jim@meyering.net>
27339
27340         * check-module (%exempt_header): Add exception for some
27341         conditionally-included headers.
27342
27343         * modules/i-ring (Depends-on): Add verify.
27344         (License): Change to LGPL.
27345
27346 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27347
27348         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
27349         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
27350         and inttostr.h.  Use snprintf rather than uinttostr, so that
27351         LGPLed code doesn't depend on GPLed.
27352
27353 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27354
27355         * modules/inline (License): Change from GPL to LGPL.
27356
27357 2006-11-17  Jim Meyering  <jim@meyering.net>
27358
27359         * modules/d-type (License): Switch to LGPL.
27360
27361 2006-11-15  Bruno Haible  <bruno@clisp.org>
27362
27363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
27364
27365 2006-11-15  Eric Blake  <ebb9@byu.net>
27366
27367         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
27368         the module dependency.
27369
27370 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27371             Bruno Haible  <bruno@clisp.org>
27372
27373         * gnulib-tool (func_create_testdir): Add license consistency check.
27374
27375 2006-11-15  Eric Blake  <ebb9@byu.net>
27376
27377         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
27378         random "(cached)" in configure output.
27379
27380 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27381
27382         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
27383         test for conforming inttypes.h is both announced and cached.
27384
27385         * MODULES.html.sh (seen_modules, seen_files): New variables.
27386         (func_module): Rewrite to use a few less gnulib-tool and sed
27387         invocations.  Avoid a couple of quadratic algorithms for ...
27388         (missed_modules, missed_files): ... these, with ...
27389         (func_append, func_tmpdir): ... these new functions, from
27390         gnulib-tool.  Analogously, install traps for cleanup.
27391
27392         * tests/test-gc.c (main): Remove unused variables.
27393         * tests/test-read-file.c: Include stdlib.h, for 'free'.
27394
27395 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27396
27397         * modules/inttostr (License): Change to LGPL.
27398
27399 2006-11-14  Eric Blake  <ebb9@byu.net>
27400
27401         * modules/tempname (License): Change to LGPL.
27402
27403 2006-11-14  Eric Blake  <ebb9@byu.net>
27404
27405         * doc/functions.texi (Function Portability): *printf functions on
27406         Cygwin now understand all POSIX size specifiers.
27407
27408 2006-11-14  Bruno Haible  <bruno@clisp.org>
27409
27410         * modules/c-ctype (License): Change to LGPL.
27411
27412 2006-11-12  Bruno Haible  <bruno@clisp.org>
27413
27414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27415         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
27416         for GNOME libraries, for which the include files are installed in
27417         subdirectories of $prefix/include.
27418
27419 2006-11-12  Bruno Haible  <bruno@clisp.org>
27420
27421         * m4/lib-link.m4: Require at least autoconf-2.54.
27422         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
27423         name to underscores for the --with option.
27424
27425 2006-11-13  Bruno Haible  <bruno@clisp.org>
27426
27427         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
27428         the tests directory.
27429         Reported by Ralf Wildenhues.
27430
27431 2006-11-13  Bruno Haible  <bruno@clisp.org>
27432
27433         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
27434         (func_emit_initmacro_end): Undo the override here.
27435         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
27436         Works around the famous automake error in coreutils.
27437
27438 2006-11-13  Eric Blake  <ebb9@byu.net>
27439
27440         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
27441         element, not its node.
27442
27443 2006-11-12  Bruno Haible  <bruno@clisp.org>
27444
27445         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
27446         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
27447
27448 2006-11-12  Bruno Haible  <bruno@clisp.org>
27449
27450         * gnulib-tool: New option --local-symlink.
27451         (func_usage): Document it.
27452         (lsymbolic): New variable.
27453         (func_import, func_create_testdir): If --symlink was not specified,
27454         test whether --local-symlink was specified and the file comes from
27455         the local_gnulib_dir.
27456
27457 2006-11-12  Bruno Haible  <bruno@clisp.org>
27458
27459         * gnulib-tool (func_ln): New function.
27460         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
27461
27462 2006-11-12  Bruno Haible  <bruno@clisp.org>
27463
27464         Finish support for source files in subdirectories.
27465         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
27466         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
27467         AUTOMAKE_OPTIONS.
27468         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
27469
27470 2006-11-12  Bruno Haible  <bruno@clisp.org>
27471
27472         * gnulib-tool (func_get_automake_snippet): Synthesize also an
27473         EXTRA_lib_SOURCES augmentation.
27474         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
27475
27476 2006-11-12  Jim Meyering  <jim@meyering.net>
27477
27478         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
27479         file descriptors.  This also averts a failure on systems with
27480         native openat support when a traversed directory lacks "x" access.
27481         * lib/fts_.h: Include "i-ring.h"
27482         (struct FTS) [fts_fd_ring]: New member.
27483         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
27484         (FCHDIR): Add parentheses.
27485         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
27486         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
27487         When descending, rather than simply closing the previous
27488         fts_cwd_fd value, push that file descriptor onto the ring.
27489         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
27490         (fts_open): Initialize the new fd_ring member.
27491         (fts_close): Clear the ring.
27492         (fts_safe_changedir): When possible, use our new fd_ring to skip
27493         the diropen and fstat and dev/ino comparison that would normally
27494         accompany a virtual `chdir ("..")'.
27495
27496         * modules/fts (Depends-on): Add i-ring.
27497         * modules/i-ring: New module.
27498         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
27499         * m4/i-ring.m4: New file.
27500
27501 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27502
27503         * gnulib-tool (func_create_testdir): Fix replacement of
27504         `build-aux' in configure.ac.  Run autotools in gltests
27505         subdirectory.
27506         (func_create_testdir, func_create_megatestdir, test): There is
27507         no need for '--force' in most autotool invocations in a new
27508         tree.  Actually fail the whole test if any of the tools, or the
27509         configure or make stages fail.
27510
27511         Sync from Automake.
27512         * build-aux/gnupload: Revert last change.  Add pointer to upload
27513         instructions of the GNU Maintenance Instructions.
27514         Suggestion by Karl Berry.
27515
27516 2006-11-10  Jim Meyering  <jim@meyering.net>
27517
27518         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
27519
27520 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
27523         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
27524         (bind_textdomain_codeset) [! ENABLE_NLS]:
27525         Evaluate all the arguments.  That way, callers get compatible behavior
27526         if the arguments have side effects.  Also, it avoids some GCC
27527         diagnostics in some cases; Joel E. Denny reported problems when Bison
27528         was configured with --enable-gcc-warnigs.
27529
27530 2006-11-10  Jim Meyering  <jim@meyering.net>
27531
27532         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
27533         relevant options in CFLAGS (like -O, -fno-inline) are taken into
27534         account.
27535
27536 2006-11-10  Jim Meyering  <jim@meyering.net>
27537
27538         * modules/inline: New file/module.
27539         * modules/xalloc (Files): Remove m4/inline.m4.
27540         (Depends-on): Add inline, instead.
27541         * modules/oset: Likewise.
27542         * modules/list: Likewise.
27543
27544 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
27547         Problem reported by Matthew Woehlke.
27548
27549 2006-11-09  Bruno Haible  <bruno@clisp.org>
27550
27551         * lib/tempname.c (gen_tempname): Remove variant that invokes
27552         __gen_tempname.
27553         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
27554         __gen_tempname.
27555
27556 2006-11-08  Bruno Haible  <bruno@clisp.org>
27557
27558         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
27559         to 'yes' instead of 'cross-compiling'.
27560
27561 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
27562
27563         * lib/quotearg.h (quotearg_free): New decl.
27564         * lib/quotearg.c (quotearg_free): New function.
27565         (slot0, nslots, slotvec0, slotvec):
27566         Now file-scope so that quotearg_free can get at them.
27567
27568 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27569
27570         Sync from Automake.
27571         * build-aux/gnupload: Add missing 'gnu' to example URL.
27572         Report by Karl Berry.
27573
27574 2006-11-08  Bruno Haible  <bruno@clisp.org>
27575
27576         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
27577         Suggested by Paul Eggert.
27578
27579 2006-11-08  Jim Meyering  <jim@meyering.net>
27580
27581         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
27582         It's already included if !_LIBC.
27583         (fts_safe_changedir): Add a comment.
27584
27585 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27586
27587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
27588         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
27589         Matthew Woehlke.
27590
27591         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
27592         definitions up, to avoid colliding with change below.
27593         (static_inline) [HAVE_INLINE]: New macro.
27594         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
27595         Provide extern decls when !HAVE_INLINE.  Do not define unless
27596         static_inline is defined, either by us or by xmalloc.c.  Use
27597         static_inline rather than static inline.
27598         (XCALLOC): Optimize sizeof(T) = 1 case.
27599         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
27600
27601 2006-11-07  Bruno Haible  <bruno@clisp.org>
27602
27603         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
27604         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
27605         AC_C_INLINE.
27606         * modules/xalloc (Files): Add m4/inline.m4.
27607
27608 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27609
27610         * README: Fix typo.
27611         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
27612         (Miscellanous Notes): ...from this.
27613
27614 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27615
27616         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27617         Mention that offsetof should be used instead of sizeof.
27618         From Bruno Haible.
27619
27620 2006-11-07  Bruno Haible  <bruno@clisp.org>
27621
27622         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
27623
27624 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27625
27626         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27627         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
27628         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27629         (gl_tree_add_before, gl_tree_add_after):
27630         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
27631         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
27632         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27633         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
27634         (gl_linked_add_after, gl_linked_add_at): Likewise.
27635         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
27636         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27637         (gl_tree_add_before, gl_tree_add_after): Likewise.
27638         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
27639         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
27640         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27641
27642 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27643
27644         * lib/gl_oset.h: Use C comment style, not C++ comment style.
27645
27646 2006-11-06  Bruno Haible  <bruno@clisp.org>
27647
27648         * m4/inline.m4: New file.
27649         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
27650         * modules/list (Files): Add m4/inline.m4.
27651         * modules/oset (Files): Likewise.
27652
27653 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27654
27655         * lib/idcache.c: Include <stddef.h>, for offsetof.
27656         (struct userid.name): Change from char * to a flexible array member.
27657         All uses changed.
27658         * modules/idcache (Depends-on): Add flexmember.
27659
27660         * MODULES.html.sh (Core language properties): New module flexmember.
27661         * modules/flexmember, m4/flexmember.m4: New files.
27662
27663         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
27664         inline functions that are identical with the old xnmalloc_inline,
27665         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
27666         that we can avoid some unnecessary integer multiplications and
27667         divisions in the common case where the element size is known at
27668         compile time.
27669         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
27670         needed.
27671         (xnboundedmalloc): Remove.
27672         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
27673         arguments, for consistency with rest of this header.
27674         (xcharalloc): Rewrite using XNMALLOC.
27675         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
27676         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
27677         versions have been moved to lib/xalloc.h and renamed to be the
27678         non-*_inline versions.
27679         (xmalloc, xrealloc): Implement without reference to the xnmalloc
27680         and xnrealloc functions, since those functions are now inline and
27681         now call us.
27682         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
27683         renaming described above.
27684         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
27685         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
27686         captures the dependency in AC_C_INLINE.
27687
27688         New module canonicalize-lgpl, proposed by Charles Wilson in
27689         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
27690         with a few small changes afterwards.
27691         * MODULES.html.sh (File system functions): New module
27692         canonicalize-lgpl.
27693         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
27694         and canonicalize_file_name.
27695         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
27696         * modules/canonicalize-lgpl: New files.
27697
27698 2006-11-05  Bruno Haible  <bruno@clisp.org>
27699
27700         * gnulib-tool (func_import, func_create_testdir): Create directories
27701         also for files in subdirectories of lib/.
27702
27703 2006-11-05  Bruno Haible  <bruno@clisp.org>
27704
27705         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
27706         ANSI C compliant.
27707
27708 2006-11-03  Bruno Haible  <bruno@clisp.org>
27709
27710         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27711         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
27712         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
27713         (xnboundedmalloc): New inline function.
27714         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
27715         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
27716         xmalloc.
27717         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
27718         xmalloc.
27719         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
27720         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
27721         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
27722         xmalloc.
27723         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27724         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
27725         xmalloc.
27726         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
27727         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27728         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
27729         xmalloc.
27730         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27731         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
27732         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27733         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
27734         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
27735         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
27736         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
27737
27738 2006-11-03  Bruno Haible  <bruno@clisp.org>
27739
27740         * lib/c-ctype.h [C++]: Define functions without name mangling.
27741         * lib/fwriteerror.h [C++]: Likewise.
27742         * lib/gcd.h [C++]: Likewise.
27743         * lib/linebreak.h [C++]: Likewise.
27744
27745 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27746
27747         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
27748         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
27749         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
27750         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
27751         Check for functions and headers just once.
27752         Check for declaration of canonicalize_file_name.
27753         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
27754
27755 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27756
27757         * gnulib-tool (func_import): Fix typo in actioncmd.
27758
27759 2006-11-02  Bruno Haible  <bruno@clisp.org>
27760
27761         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
27762         newline sequence in the Makefile.am snippet as a space, like "make"
27763         does.
27764         Reported by Roger Persson <perrog@gmail.com>.
27765
27766 2006-11-01  Bruno Haible  <bruno@clisp.org>
27767
27768         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
27769         already declared in <string.h>.
27770         * lib/strcase.h (strncasecmp): Don't declare it if yes.
27771
27772 2006-11-01  Bruno Haible  <bruno@clisp.org>
27773
27774         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
27775         * lib/strcase.h: Include <string.h>.
27776         (strcasecmp): Define to rpl_strcasecmp here.
27777
27778 2006-11-01  Bruno Haible  <bruno@clisp.org>
27779
27780         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
27781
27782 2006-11-01  Eric Blake  <ebb9@byu.net>
27783
27784         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
27785
27786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
27787
27788 2006-10-29  Bruno Haible  <bruno@clisp.org>
27789
27790         Make it compile in C++ mode.
27791         * lib/full-write.c (full_rw): Add a cast.
27792
27793 2006-11-01  Bruno Haible  <bruno@clisp.org>
27794
27795         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
27796         be POSIX compliant.
27797         Reported by Roger Persson <perrog@gmail.com>.
27798
27799 2006-11-01  Eric Blake  <ebb9@byu.net>
27800
27801         * lib/getopt_.h: Fix comments.
27802
27803 2006-10-31  Eric Blake  <ebb9@byu.net>
27804
27805         * modules/tmpdir (Depends-on): Add sys_stat.
27806         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
27807         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27808         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
27809         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
27810         tempname.
27811
27812 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27813
27814         Avoid some C++ diagnostics reported by Bruno Haible.
27815         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
27816         xmalloc.
27817         (quotearg_alloc): Use xcharalloc rather than xmalloc.
27818         (struct slotvec): Move to top level.
27819         (quotearg_n_options): Rewrite to avoid xmalloc.
27820         * lib/xalloc.h (xcharalloc): New function.
27821         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
27822         [defined __cplusplus]: Add function template that provides result
27823         type propagation.  This part of the change is from Bruno Haible.
27824
27825 2006-10-29  Bruno Haible  <bruno@clisp.org>
27826
27827         Make it compile in C++ mode.
27828         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
27829         * lib/strnlen1.c (strnlen1): Cast memchr result.
27830         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
27831         * lib/clean-temp.c (string_equals, string_hash): Add casts.
27832         (create_temp_dir): Rename local variable 'template'.
27833         (compile_csharp_using_sscli): Add cast.
27834         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
27835         * lib/findprog.c (find_in_path): Likewise.
27836         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
27837         * lib/wait-process.c (register_slave_subprocess): Likewise.
27838
27839 2006-10-22  Bruno Haible  <bruno@clisp.org>
27840
27841         * modules/tsearch: New file.
27842         * lib/tsearch.h: New file.
27843         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
27844         * m4/tsearch.m4: New file.
27845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
27846
27847 2006-10-29  Eric Blake  <ebb9@byu.net>
27848
27849         * lib/arcfour.c: Assume config.h.
27850         * lib/arctwo.c: Likewise.
27851         * lib/base64.c: Likewise.
27852         * lib/check-version.c: Likewise.
27853         * lib/crc.c: Likewise.
27854         * lib/des.c: Likewise.
27855         * lib/gc-gnulib.c: Likewise.
27856         * lib/gc-libgcrypt.c: Likewise.
27857         * lib/gc-pbkdf2-sha1.c: Likewise.
27858         * lib/getaddrinfo.c: Likewise.
27859         * lib/getdelim.c: Likewise.
27860         * lib/getline.c: Likewise.
27861         * lib/hmac-md5.c: Likewise.
27862         * lib/hmac-sha1.c: Likewise.
27863         * lib/iconvme.c: Likewise.
27864         * lib/md2.c: Likewise.
27865         * lib/md4.c: Likewise.
27866         * lib/memxor.c: Likewise.
27867         * lib/read-file.c: Likewise.
27868         * lib/readline.c: Likewise.
27869         * lib/rijndael-alg-fst.c: Likewise.
27870         * lib/rijndael-api-fst.c: Likewise.
27871         * lib/xgetdomainname.c: Likewise.
27872
27873 2006-10-28  Eric Blake  <ebb9@byu.net>
27874
27875         * lib/xstrndup.c: Assume config.h.
27876
27877 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27878
27879         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
27880         stat-macros.h is now for our own macros, whereas stat_h is for
27881         macros in the <sys/stat.h> name space.
27882         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
27883         (STAT_MACROS_H): Remove.
27884         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
27885         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
27886         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
27887         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
27888         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
27889         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
27890         Move these macros to ...
27891         * lib/stat_.h: here.  Don't include stat-macros.h.
27892         * lib/canonicalize.c: Don't include stat-macros.h.
27893         * lib/chown.c: Likewise.
27894         * lib/euidaccess.c: Likewise.
27895         * lib/file-type.c: Likewise.
27896         * lib/filemode.c: Likewise.
27897         * lib/glob.c: Likewise.
27898         * lib/isapipe.c: Likewise.
27899         * lib/lchown.c: Likewise.
27900         * lib/lstat.c: Likewise.
27901         * lib/mkdir-p.c: Likewise.
27902         * lib/rmdir.c: Likewise.
27903         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
27904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
27905         unless mkdir isn't declared, to speed up 'configure'.
27906         Always create sys/stat.h, since it's unlikely any real sys/stat.h
27907         would define all the S_* symbols.
27908         * modules/canonicalize (Depends-on):
27909         Depend on sys_stat, not stat-macros.
27910         * modules/chown: Likewise.
27911         * modules/euidaccess: Likewise.
27912         * modules/filemode: Likewise.
27913         * modules/file-type: Likewise.
27914         * modules/glob: Likewise.
27915         * modules/isapipe: Likewise.
27916         * modules/lchown: Likewise.
27917         * modules/lstat: Likewise.
27918         * modules/mkancesdirs: Likewise.
27919         * modules/rmdir: Likewise.
27920         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27921         * modules/modechange: Likewise.
27922         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27923         (configure.ac): Remove gl_STAT_MACROS.
27924         * modules/sys_stat (Depends-on): Remove stat-macros.
27925
27926 2006-10-27  Bruno Haible  <bruno@clisp.org>
27927
27928         * m4/signed.m4: Remove file.
27929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27930         invocation.
27931         * modules/vasnprintf (Files): Remove m4/signed.m4.
27932
27933 2006-10-27  Bruno Haible  <bruno@clisp.org>
27934
27935         Update to GNU gettext 0.16.
27936         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27937         m4/inttypes-h.m4, m4/signed.m4.
27938         * m4/gettext.m4: Update to GNU gettext 0.16.
27939         * m4/intl.m4: New file, from GNU gettext.
27940         * m4/intldir.m4: New file, from GNU gettext.
27941         * config/srclist.txt: Update
27942
27943 2006-10-27  Eric Blake  <ebb9@byu.net>
27944
27945         * MODULES.html.sh: Document tempname.
27946         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27947         dependencies.
27948         (Files): Move lib/tempname.c...
27949         * modules/tempname: ...to this new module.
27950         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27951         (gl_PREREQ_TEMPNAME): Move...
27952         * m4/tempname.m4: ...to this new file.
27953         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27954         * modules/sys_stat (Depends-on): Add stat-macros.
27955         * lib/stat_.h (includes): Pick up stat macros.
27956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27957         if stat macros are broken.
27958         * lib/tempname.c (includes): No need to include "stat-macros.h".
27959         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27960         (direxists, __path_search) [!_LIBC]: Don't compile these in
27961         gnulib; the tmpdir module covers that.
27962         * lib/tempname.h: New file.
27963
27964 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27965
27966         * COPYING: Explain how gnulib-tool converts licence headers.
27967         Almost all wording by Eric Blake.
27968
27969 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         * lib/mbchar.h (is_basic_table): Make read-only.
27972         * lib/mbchar.c (is_basic_table): Likewise.
27973         Reported by John Darrington.
27974
27975 2006-10-25  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/progname.h (set_program_name): Undefine before defining.
27978
27979 2006-10-25  Bruno Haible  <bruno@clisp.org>
27980
27981         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27982         false for non-gcc C++ compilers.
27983         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27984
27985 2006-10-24  Bruno Haible  <bruno@clisp.org>
27986
27987         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27988         iconv implementations like Irix iconv.
27989
27990 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27991
27992         * modules/vararrays: New file.
27993         * m4/vararrays.m4: New file, taken from diffutils.
27994         * MODULES.html.sh: New module vararrays.
27995
27996 2006-10-24  Karl Berry  <karl@gnu.org>
27997
27998         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27999         Don't call GNU Unix.
28000
28001 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28002
28003         * users.txt: Add Libtool.
28004
28005         Sync from Libtool:
28006
28007         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28008
28009         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
28010         to gnulib's policy of including config.h unconditionally.
28011
28012 2006-10-24  Bruno Haible  <bruno@clisp.org>
28013
28014         * modules/wcwidth (Files): Add m4/wint_t.m4.
28015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
28016         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
28017
28018 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28019
28020         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
28021         to pacify GCC with some -W flags enabled.  Problem reported by
28022         Bruno Haible.
28023
28024 2006-10-24  Jim Meyering  <jim@meyering.net>
28025
28026         * MODULES.html.sh: Remove uinttostr.  It's not a module.
28027         Reported by Karl Berry.
28028
28029 2006-10-23  Bruno Haible  <bruno@clisp.org>
28030
28031         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
28032
28033 2006-10-24  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/gl_list.h: Use C comment style, not C++ comment style.
28036
28037 2006-10-23  Eric Blake  <ebb9@byu.net>
28038
28039         * lib/getaddrinfo.c (includes): Add missing include.
28040
28041 2006-10-23  Bruno Haible  <bruno@clisp.org>
28042             Paul Eggert  <eggert@cs.ucla.edu>
28043
28044         Ability to rename obstack_free.
28045         * lib/obstack.h (__obstack_free): New macro. Declare instead of
28046         obstack_free.
28047         (obstack_free): Invoke the __obstack_free macro.
28048         * lib/obstack.c (obstack_free): Use __obstack_free macro.
28049
28050 2006-10-23  Bruno Haible  <bruno@clisp.org>
28051             Paul Eggert  <eggert@cs.ucla.edu>
28052
28053         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
28054         __argc, __argv from the declaration. (They are defined as macros on
28055         mingw.)
28056
28057 2006-10-22  Bruno Haible  <bruno@clisp.org>
28058
28059         * doc/gnulib-intro.texi: New file.
28060         * doc/gnulib.texi: Include it.
28061
28062 2006-10-21  Bruno Haible  <bruno@clisp.org>
28063
28064         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
28065         "Introduction", "Miscellanous Notes", "Particular Modules".
28066
28067 2006-10-21  Bruno Haible  <bruno@clisp.org>
28068
28069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28070         Change mostlyclean-local rule to avoid sh syntax error from bash
28071         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
28072
28073 2006-10-23  Jim Meyering  <jim@meyering.net>
28074
28075         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
28076         in place of snprintf.
28077
28078         * modules/inttostr (Files): Add lib/uinttostr.c.
28079         * lib/uinttostr.c (inttostr): New file/function.
28080         * lib/inttostr.h (uinttostr): Declare.
28081         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
28082         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28083         Add uinttostr.
28084         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
28085
28086 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
28087
28088         * lib/canonicalize.c (ELOOP): Define if not already defined.
28089         Problem reported by Bruno Haible in
28090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
28091
28092 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
28093
28094         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
28095         Problem reported by Perry Smith and Ville Laurikari.
28096
28097         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
28098         uses.
28099
28100 2006-10-19  Bruno Haible  <bruno@clisp.org>
28101
28102         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
28103         for mingw.
28104
28105 2006-10-19  Bruno Haible  <bruno@clisp.org>
28106
28107         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
28108         Needed for mingw.
28109
28110 2006-10-19  Bruno Haible  <bruno@clisp.org>
28111
28112         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
28113
28114 2006-10-19  Bruno Haible  <bruno@clisp.org>
28115
28116         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
28117         it.
28118
28119 2006-10-19  Bruno Haible  <bruno@clisp.org>
28120
28121         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
28122         invocation.
28123
28124 2006-10-19  Bruno Haible  <bruno@clisp.org>
28125
28126         * gnulib-tool (func_create_testdir): Don't include ftruncate and
28127         mountlist by default.
28128
28129 2006-10-16  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/c-strstr.c: Include c-strstr.h.
28132
28133 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
28134
28135         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
28136         in a slash.
28137
28138 2006-10-18  Bruno Haible  <bruno@clisp.org>
28139
28140         * lib/lock.h [C++]: Wrap definitions in extern "C".
28141
28142 2006-10-18  Bruno Haible  <bruno@clisp.org>
28143
28144         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
28145         gl_LIBOBJS list.
28146
28147 2006-10-18  Bruno Haible  <bruno@clisp.org>
28148
28149         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
28150
28151 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
28152
28153         * lib/xstrtol.h: Include gettext.h.
28154         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
28155         Problem reported by Eric Blake.
28156         * modules/xstrtol (Depends-on): Add gettext-h.
28157
28158 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
28159
28160         * lib/strftime.c (advance): New macro.
28161         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
28162         incomplete type, so you can't add 0 to it.  Problem and patch
28163         reported by Eelco Dolstra for dietlibc.
28164
28165 2006-10-18  Jim Meyering  <jim@meyering.net>
28166
28167         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
28168         type for a local, and rename it: s/up/user_proc/.
28169
28170 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28171
28172         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
28173         READ_UTMP_USER_PROCESS.
28174         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
28175
28176 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28177
28178         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
28179         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
28180
28181 2006-10-17  Eric Blake  <ebb9@byu.net>
28182
28183         * lib/sigprocmask.c (sigprocmask): Fix typo.
28184
28185         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
28186
28187         * modules/clean-temp (Makefile.am): Don't add to make output...
28188         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
28189         config.h.
28190
28191 2006-10-17  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
28194         differently if DEFAULT_TEXT_DOMAIN is set.
28195
28196 2006-10-16  Bruno Haible  <bruno@clisp.org>
28197
28198         * lib/clean-temp.c: Include fwriteerror.h.
28199
28200 2006-10-16  Bruno Haible  <bruno@clisp.org>
28201
28202         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
28203
28204 2006-10-16  Bruno Haible  <bruno@clisp.org>
28205
28206         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
28207         * lib/sigprocmask.h: Include <sys/types.h>.
28208         (sigset_t): Use the system's definition if present.
28209
28210 2006-10-17  Eric Blake  <ebb9@byu.net>
28211
28212         * lib/xvasprintf.c (includes): Assume config.h.
28213         * lib/xasprintf.c (includes): Likewise.
28214
28215 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28216
28217         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
28218         at least as wide as intmax_t.
28219
28220 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
28221
28222         (Imported from Automake.)
28223         * build-aux/gnupload: Update to version 1.1 of directive file.
28224
28225 2006-10-16  Eric Blake  <ebb9@byu.net>
28226
28227         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
28228         match Automake 1.10a.
28229
28230 2006-10-14  Bruno Haible  <bruno@clisp.org>
28231
28232         * modules/sigprocmask: New file.
28233         * lib/sigprocmask.h: New file.
28234         * lib/sigprocmask.c: New file.
28235         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
28236         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
28237         request sigprocmask.o.
28238         (gl_PREREQ_SIGPROCMASK): New macro.
28239         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
28240         (Depends-on): Add sigprocmask.
28241         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
28242         gt_SIGNALBLOCKING. Test for 'raise' only once.
28243         * lib/fatal-signal.c: Include sigprocmask.h.
28244         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
28245         unblock_fatal_signals): Define always.
28246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28247         sigprocmask.
28248
28249 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28250
28251         Sync from Automake.
28252         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
28253         which incorrectly sets the mode of an existing destination
28254         directory.  In some cases the unpatched install-sh could do the
28255         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
28256         system.  We hope this is rare in practice, but it's clearly worth
28257         fixing.  Problem reported by Alex Unleashed in
28258         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
28259         Also, don't bother to check for -m bugs unless we're using -m;
28260         suggested by Stepan Kasal.
28261
28262 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28263
28264         Sync from Automake.
28265         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
28266         `-c' flag, so they appear at the same position as in %FASTDEP%
28267         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
28268         which ignores unknown options only after the first non-option.
28269         Bug report against M4 by Nelson H. F. Beebe.
28270
28271 2006-10-13  Jim Meyering  <jim@meyering.net>
28272
28273         Fix a bug in yesterday's change.
28274         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
28275         p->fts_statp->st_dev would be used uninitialized.
28276         Ensures that we always call fts_stat on the very first entry.
28277         Miklos Szeredi reported that find -xdev stopped working.
28278
28279 2006-10-12  Bruno Haible  <bruno@clisp.org>
28280
28281         * gnulib-tool (func_get_automake_snippet): Append an automatically
28282         computed EXTRA_DIST augmentation.
28283         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
28284         * modules/alloca-opt (Makefile.am): Likewise.
28285         * modules/allocsa (Makefile.am): Likewise.
28286         * modules/arcfour (Makefile.am): Likewise.
28287         * modules/arctwo (Makefile.am): Likewise.
28288         * modules/argmatch (Makefile.am): Likewise.
28289         * modules/argz (Makefile.am): Likewise.
28290         * modules/atexit (Makefile.am): Likewise.
28291         * modules/backupfile (Makefile.am): Likewise.
28292         * modules/byteswap (Makefile.am): Likewise.
28293         * modules/c-strtod (Makefile.am): Likewise.
28294         * modules/c-strtold (Makefile.am): Likewise.
28295         * modules/calloc (Makefile.am): Likewise.
28296         * modules/canon-host (Makefile.am): Likewise.
28297         * modules/canonicalize (Makefile.am): Likewise.
28298         * modules/chdir-long (Makefile.am): Likewise.
28299         * modules/chdir-safer (Makefile.am): Likewise.
28300         * modules/check-version (Makefile.am): Likewise.
28301         * modules/chown (Makefile.am): Likewise.
28302         * modules/cloexec (Makefile.am): Likewise.
28303         * modules/close-stream (Makefile.am): Likewise.
28304         * modules/closeout (Makefile.am): Likewise.
28305         * modules/crc (Makefile.am): Likewise.
28306         * modules/csharpexec (Makefile.am): Likewise.
28307         * modules/cycle-check (Makefile.am): Likewise.
28308         * modules/des (Makefile.am): Likewise.
28309         * modules/dev-ino (Makefile.am): Likewise.
28310         * modules/dirfd (Makefile.am): Likewise.
28311         * modules/dirname (Makefile.am): Likewise.
28312         * modules/dup2 (Makefile.am): Likewise.
28313         * modules/eealloc (Makefile.am): Likewise.
28314         * modules/error (Makefile.am): Likewise.
28315         * modules/euidaccess (Makefile.am): Likewise.
28316         * modules/exclude (Makefile.am): Likewise.
28317         * modules/exitfail (Makefile.am): Likewise.
28318         * modules/fcntl-safer (Makefile.am): Likewise.
28319         * modules/fcntl (Makefile.am): Likewise.
28320         * modules/file-type (Makefile.am): Likewise.
28321         * modules/fileblocks (Makefile.am): Likewise.
28322         * modules/filemode (Makefile.am): Likewise.
28323         * modules/filenamecat (Makefile.am): Likewise.
28324         * modules/fnmatch (Makefile.am): Likewise.
28325         * modules/fopen-safer (Makefile.am): Likewise.
28326         * modules/fpending (Makefile.am): Likewise.
28327         * modules/fprintftime (Makefile.am): Likewise.
28328         * modules/free (Makefile.am): Likewise.
28329         * modules/fsusage (Makefile.am): Likewise.
28330         * modules/ftruncate (Makefile.am): Likewise.
28331         * modules/fts (Makefile.am): Likewise.
28332         * modules/gc-arcfour (Makefile.am): Likewise.
28333         * modules/gc-des (Makefile.am): Likewise.
28334         * modules/gc-hmac-md5 (Makefile.am): Likewise.
28335         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
28336         * modules/gc-md4 (Makefile.am): Likewise.
28337         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
28338         * modules/gc-sha1 (Makefile.am): Likewise.
28339         * modules/gc (Makefile.am): Likewise.
28340         * modules/getaddrinfo (Makefile.am): Likewise.
28341         * modules/getcwd (Makefile.am): Likewise.
28342         * modules/getdelim (Makefile.am): Likewise.
28343         * modules/getdomainname (Makefile.am): Likewise.
28344         * modules/getgroups (Makefile.am): Likewise.
28345         * modules/gethostname (Makefile.am): Likewise.
28346         * modules/gethrxtime (Makefile.am): Likewise.
28347         * modules/getline (Makefile.am): Likewise.
28348         * modules/getloadavg (Makefile.am): Likewise.
28349         * modules/getlogin_r (Makefile.am): Likewise.
28350         * modules/getndelim2 (Makefile.am): Likewise.
28351         * modules/getopt (Makefile.am): Likewise.
28352         * modules/getpagesize (Makefile.am): Likewise.
28353         * modules/getpass-gnu (Makefile.am): Likewise.
28354         * modules/getpass (Makefile.am): Likewise.
28355         * modules/getsubopt (Makefile.am): Likewise.
28356         * modules/gettime (Makefile.am): Likewise.
28357         * modules/gettimeofday (Makefile.am): Likewise.
28358         * modules/getugroups (Makefile.am): Likewise.
28359         * modules/getusershell (Makefile.am): Likewise.
28360         * modules/glob (Makefile.am): Likewise.
28361         * modules/group-member (Makefile.am): Likewise.
28362         * modules/hard-locale (Makefile.am): Likewise.
28363         * modules/hash (Makefile.am): Likewise.
28364         * modules/hmac-md5 (Makefile.am): Likewise.
28365         * modules/hmac-sha1 (Makefile.am): Likewise.
28366         * modules/human (Makefile.am): Likewise.
28367         * modules/idcache (Makefile.am): Likewise.
28368         * modules/imaxabs (Makefile.am): Likewise.
28369         * modules/imaxdiv (Makefile.am): Likewise.
28370         * modules/inet_ntop (Makefile.am): Likewise.
28371         * modules/inet_pton (Makefile.am): Likewise.
28372         * modules/intprops (Makefile.am): Likewise.
28373         * modules/inttostr (Makefile.am): Likewise.
28374         * modules/inttypes (Makefile.am): Likewise.
28375         * modules/isapipe (Makefile.am): Likewise.
28376         * modules/javaversion (Makefile.am): Likewise.
28377         * modules/lchmod (Makefile.am): Likewise.
28378         * modules/lchown (Makefile.am): Likewise.
28379         * modules/localcharset (Makefile.am): Likewise.
28380         * modules/long-options (Makefile.am): Likewise.
28381         * modules/lstat (Makefile.am): Likewise.
28382         * modules/malloc (Makefile.am): Likewise.
28383         * modules/mathl (Makefile.am): Likewise.
28384         * modules/mbchar (Makefile.am): Likewise.
28385         * modules/md2 (Makefile.am): Likewise.
28386         * modules/md4 (Makefile.am): Likewise.
28387         * modules/md5 (Makefile.am): Likewise.
28388         * modules/memcasecmp (Makefile.am): Likewise.
28389         * modules/memchr (Makefile.am): Likewise.
28390         * modules/memcmp (Makefile.am): Likewise.
28391         * modules/memcoll (Makefile.am): Likewise.
28392         * modules/memcpy (Makefile.am): Likewise.
28393         * modules/memmem (Makefile.am): Likewise.
28394         * modules/memmove (Makefile.am): Likewise.
28395         * modules/mempcpy (Makefile.am): Likewise.
28396         * modules/memrchr (Makefile.am): Likewise.
28397         * modules/memset (Makefile.am): Likewise.
28398         * modules/memxor (Makefile.am): Likewise.
28399         * modules/mkancesdirs (Makefile.am): Likewise.
28400         * modules/mkdir-p (Makefile.am): Likewise.
28401         * modules/mkdir (Makefile.am): Likewise.
28402         * modules/mkdtemp (Makefile.am): Likewise.
28403         * modules/mkstemp (Makefile.am): Likewise.
28404         * modules/mktime (Makefile.am): Likewise.
28405         * modules/modechange (Makefile.am): Likewise.
28406         * modules/mountlist (Makefile.am): Likewise.
28407         * modules/nanosleep (Makefile.am): Likewise.
28408         * modules/obstack (Makefile.am): Likewise.
28409         * modules/openat (Makefile.am): Likewise.
28410         * modules/pagealign_alloc (Makefile.am): Likewise.
28411         * modules/pathmax (Makefile.am): Likewise.
28412         * modules/physmem (Makefile.am): Likewise.
28413         * modules/poll (Makefile.am): Likewise.
28414         * modules/posixtm (Makefile.am): Likewise.
28415         * modules/posixver (Makefile.am): Likewise.
28416         * modules/putenv (Makefile.am): Likewise.
28417         * modules/quote (Makefile.am): Likewise.
28418         * modules/quotearg (Makefile.am): Likewise.
28419         * modules/raise (Makefile.am): Likewise.
28420         * modules/read-file (Makefile.am): Likewise.
28421         * modules/readline (Makefile.am): Likewise.
28422         * modules/readlink (Makefile.am): Likewise.
28423         * modules/readtokens (Makefile.am): Likewise.
28424         * modules/readutmp (Makefile.am): Likewise.
28425         * modules/realloc (Makefile.am): Likewise.
28426         * modules/regex (Makefile.am): Likewise.
28427         * modules/rename-dest-slash (Makefile.am): Likewise.
28428         * modules/rename (Makefile.am): Likewise.
28429         * modules/rijndael (Makefile.am): Likewise.
28430         * modules/rmdir (Makefile.am): Likewise.
28431         * modules/rpmatch (Makefile.am): Likewise.
28432         * modules/safe-read (Makefile.am): Likewise.
28433         * modules/safe-write (Makefile.am): Likewise.
28434         * modules/same-inode (Makefile.am): Likewise.
28435         * modules/same (Makefile.am): Likewise.
28436         * modules/save-cwd (Makefile.am): Likewise.
28437         * modules/savedir (Makefile.am): Likewise.
28438         * modules/setenv (Makefile.am): Likewise.
28439         * modules/settime (Makefile.am): Likewise.
28440         * modules/sha1 (Makefile.am): Likewise.
28441         * modules/sig2str (Makefile.am): Likewise.
28442         * modules/snprintf (Makefile.am): Likewise.
28443         * modules/stat-macros (Makefile.am): Likewise.
28444         * modules/stat-time (Makefile.am): Likewise.
28445         * modules/stdbool (Makefile.am): Likewise.
28446         * modules/stdint (Makefile.am): Likewise.
28447         * modules/stdlib-safer (Makefile.am): Likewise.
28448         * modules/stpcpy (Makefile.am): Likewise.
28449         * modules/stpncpy (Makefile.am): Likewise.
28450         * modules/strcase (Makefile.am): Likewise.
28451         * modules/strcasestr (Makefile.am): Likewise.
28452         * modules/strchrnul (Makefile.am): Likewise.
28453         * modules/strcspn (Makefile.am): Likewise.
28454         * modules/strdup (Makefile.am): Likewise.
28455         * modules/strerror (Makefile.am): Likewise.
28456         * modules/strftime (Makefile.am): Likewise.
28457         * modules/strndup (Makefile.am): Likewise.
28458         * modules/strnlen (Makefile.am): Likewise.
28459         * modules/strpbrk (Makefile.am): Likewise.
28460         * modules/strsep (Makefile.am): Likewise.
28461         * modules/strstr (Makefile.am): Likewise.
28462         * modules/strtod (Makefile.am): Likewise.
28463         * modules/strtoimax (Makefile.am): Likewise.
28464         * modules/strtok_r (Makefile.am): Likewise.
28465         * modules/strtol (Makefile.am): Likewise.
28466         * modules/strtoll (Makefile.am): Likewise.
28467         * modules/strtoul (Makefile.am): Likewise.
28468         * modules/strtoull (Makefile.am): Likewise.
28469         * modules/strtoumax (Makefile.am): Likewise.
28470         * modules/strverscmp (Makefile.am): Likewise.
28471         * modules/sys_socket (Makefile.am): Likewise.
28472         * modules/sys_stat (Makefile.am): Likewise.
28473         * modules/sysexits (Makefile.am): Likewise.
28474         * modules/time_r (Makefile.am): Likewise.
28475         * modules/timegm (Makefile.am): Likewise.
28476         * modules/timespec (Makefile.am): Likewise.
28477         * modules/tmpfile-safer (Makefile.am): Likewise.
28478         * modules/trim (Makefile.am): Likewise.
28479         * modules/unistd-safer (Makefile.am): Likewise.
28480         * modules/unlinkdir (Makefile.am): Likewise.
28481         * modules/unlocked-io (Makefile.am): Likewise.
28482         * modules/userspec (Makefile.am): Likewise.
28483         * modules/utime (Makefile.am): Likewise.
28484         * modules/utimecmp (Makefile.am): Likewise.
28485         * modules/utimens (Makefile.am): Likewise.
28486         * modules/vasnprintf (Makefile.am): Likewise.
28487         * modules/vasprintf (Makefile.am): Likewise.
28488         * modules/vsnprintf (Makefile.am): Likewise.
28489         * modules/xalloc (Makefile.am): Likewise.
28490         * modules/xgetcwd (Makefile.am): Likewise.
28491         * modules/xnanosleep (Makefile.am): Likewise.
28492         * modules/xreadlink (Makefile.am): Likewise.
28493         * modules/xstrtod (Makefile.am): Likewise.
28494         * modules/xstrtol (Makefile.am): Likewise.
28495         * modules/xstrtold (Makefile.am): Likewise.
28496         * modules/yesno (Makefile.am): Likewise.
28497         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
28498
28499 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28500
28501         * modules/error (Makefile.am): Distribute files through
28502         EXTRA_DIST, not lib_SOURCES.
28503
28504 2006-10-12  Eric Blake  <ebb9@byu.net>
28505
28506         * modules/error (Makefile.am): Distribute files in /lib.
28507         * modules/obstack (Makefile.am): Likewise.
28508
28509 2006-10-12  Bruno Haible  <bruno@clisp.org>
28510
28511         * modules/acl (Makefile.am): Distribute all files in lib/ through
28512         EXTRA_DIST.
28513         * modules/arcfour (Makefile.am): Likewise.
28514         * modules/arctwo (Makefile.am): Likewise.
28515         * modules/argmatch (Makefile.am): Likewise.
28516         * modules/argz (Makefile.am): Likewise.
28517         * modules/atexit (Makefile.am): Likewise.
28518         * modules/backupfile (Makefile.am): Likewise.
28519         * modules/c-strtod (Makefile.am): Likewise.
28520         * modules/c-strtold (Makefile.am): Likewise.
28521         * modules/calloc (Makefile.am): Likewise.
28522         * modules/canon-host (Makefile.am): Likewise.
28523         * modules/canonicalize (Makefile.am): Likewise.
28524         * modules/chdir-long (Makefile.am): Likewise.
28525         * modules/chdir-safer (Makefile.am): Likewise.
28526         * modules/check-version (Makefile.am): Likewise.
28527         * modules/chown (Makefile.am): Likewise.
28528         * modules/cloexec (Makefile.am): Likewise.
28529         * modules/close-stream (Makefile.am): Likewise.
28530         * modules/closeout (Makefile.am): Likewise.
28531         * modules/crc (Makefile.am): Likewise.
28532         * modules/cycle-check (Makefile.am): Likewise.
28533         * modules/des (Makefile.am): Likewise.
28534         * modules/dirfd (Makefile.am): Likewise.
28535         * modules/dirname (Makefile.am): Likewise.
28536         * modules/dup2 (Makefile.am): Likewise.
28537         * modules/euidaccess (Makefile.am): Likewise.
28538         * modules/exclude (Makefile.am): Likewise.
28539         * modules/exitfail (Makefile.am): Likewise.
28540         * modules/fcntl-safer (Makefile.am): Likewise.
28541         * modules/file-type (Makefile.am): Likewise.
28542         * modules/fileblocks (Makefile.am): Likewise.
28543         * modules/filemode (Makefile.am): Likewise.
28544         * modules/filenamecat (Makefile.am): Likewise.
28545         * modules/fnmatch (Makefile.am): Likewise.
28546         * modules/fopen-safer (Makefile.am): Likewise.
28547         * modules/fpending (Makefile.am): Likewise.
28548         * modules/fprintftime (Makefile.am): Likewise.
28549         * modules/free (Makefile.am): Likewise.
28550         * modules/fsusage (Makefile.am): Likewise.
28551         * modules/ftruncate (Makefile.am): Likewise.
28552         * modules/fts (Makefile.am): Likewise.
28553         * modules/gc (Makefile.am): Likewise.
28554         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
28555         * modules/getaddrinfo (Makefile.am): Likewise.
28556         * modules/getcwd (Makefile.am): Likewise.
28557         * modules/getdelim (Makefile.am): Likewise.
28558         * modules/getdomainname (Makefile.am): Likewise.
28559         * modules/getgroups (Makefile.am): Likewise.
28560         * modules/gethostname (Makefile.am): Likewise.
28561         * modules/gethrxtime (Makefile.am): Likewise.
28562         * modules/getline (Makefile.am): Likewise.
28563         * modules/getloadavg (Makefile.am): Likewise.
28564         * modules/getlogin_r (Makefile.am): Likewise.
28565         * modules/getopt (Makefile.am): Likewise.
28566         * modules/getpass (Makefile.am): Likewise.
28567         * modules/getpass-gnu (Makefile.am): Likewise.
28568         * modules/getsubopt (Makefile.am): Likewise.
28569         * modules/gettime (Makefile.am): Likewise.
28570         * modules/gettimeofday (Makefile.am): Likewise.
28571         * modules/getugroups (Makefile.am): Likewise.
28572         * modules/getusershell (Makefile.am): Likewise.
28573         * modules/glob (Makefile.am): Likewise.
28574         * modules/group-member (Makefile.am): Likewise.
28575         * modules/hard-locale (Makefile.am): Likewise.
28576         * modules/hash (Makefile.am): Likewise.
28577         * modules/hmac-md5 (Makefile.am): Likewise.
28578         * modules/hmac-sha1 (Makefile.am): Likewise.
28579         * modules/human (Makefile.am): Likewise.
28580         * modules/idcache (Makefile.am): Likewise.
28581         * modules/imaxabs (Makefile.am): Likewise.
28582         * modules/imaxdiv (Makefile.am): Likewise.
28583         * modules/inet_ntop (Makefile.am): Likewise.
28584         * modules/inet_pton (Makefile.am): Likewise.
28585         * modules/inttostr (Makefile.am): Likewise.
28586         * modules/isapipe (Makefile.am): Likewise.
28587         * modules/lchown (Makefile.am): Likewise.
28588         * modules/long-options (Makefile.am): Likewise.
28589         * modules/lstat (Makefile.am): Likewise.
28590         * modules/malloc (Makefile.am): Likewise.
28591         * modules/mathl (Makefile.am): Likewise.
28592         * modules/mbchar (Makefile.am): Likewise.
28593         * modules/md2 (Makefile.am): Likewise.
28594         * modules/md4 (Makefile.am): Likewise.
28595         * modules/md5 (Makefile.am): Likewise.
28596         * modules/memcasecmp (Makefile.am): Likewise.
28597         * modules/memchr (Makefile.am): Likewise.
28598         * modules/memcmp (Makefile.am): Likewise.
28599         * modules/memcoll (Makefile.am): Likewise.
28600         * modules/memcpy (Makefile.am): Likewise.
28601         * modules/memmem (Makefile.am): Likewise.
28602         * modules/memmove (Makefile.am): Likewise.
28603         * modules/mempcpy (Makefile.am): Likewise.
28604         * modules/memrchr (Makefile.am): Likewise.
28605         * modules/memset (Makefile.am): Likewise.
28606         * modules/memxor (Makefile.am): Likewise.
28607         * modules/mkancesdirs (Makefile.am): Likewise.
28608         * modules/mkdir (Makefile.am): Likewise.
28609         * modules/mkdir-p (Makefile.am): Likewise.
28610         * modules/mkdtemp (Makefile.am): Likewise.
28611         * modules/mkstemp (Makefile.am): Likewise.
28612         * modules/mktime (Makefile.am): Likewise.
28613         * modules/modechange (Makefile.am): Likewise.
28614         * modules/mountlist (Makefile.am): Likewise.
28615         * modules/nanosleep (Makefile.am): Likewise.
28616         * modules/openat (Makefile.am): Likewise.
28617         * modules/pagealign_alloc (Makefile.am): Likewise.
28618         * modules/physmem (Makefile.am): Likewise.
28619         * modules/poll (Makefile.am): Likewise.
28620         * modules/posixtm (Makefile.am): Likewise.
28621         * modules/posixver (Makefile.am): Likewise.
28622         * modules/putenv (Makefile.am): Likewise.
28623         * modules/quote (Makefile.am): Likewise.
28624         * modules/quotearg (Makefile.am): Likewise.
28625         * modules/raise (Makefile.am): Likewise.
28626         * modules/read-file (Makefile.am): Likewise.
28627         * modules/readline (Makefile.am): Likewise.
28628         * modules/readlink (Makefile.am): Likewise.
28629         * modules/readtokens (Makefile.am): Likewise.
28630         * modules/readutmp (Makefile.am): Likewise.
28631         * modules/realloc (Makefile.am): Likewise.
28632         * modules/regex (Makefile.am): Likewise.
28633         * modules/rename (Makefile.am): Likewise.
28634         * modules/rename-dest-slash (Makefile.am): Likewise.
28635         * modules/rijndael (Makefile.am): Likewise.
28636         * modules/rmdir (Makefile.am): Likewise.
28637         * modules/rpmatch (Makefile.am): Likewise.
28638         * modules/safe-read (Makefile.am): Likewise.
28639         * modules/safe-write (Makefile.am): Likewise.
28640         * modules/same (Makefile.am): Likewise.
28641         * modules/save-cwd (Makefile.am): Likewise.
28642         * modules/savedir (Makefile.am): Likewise.
28643         * modules/setenv (Makefile.am): Likewise.
28644         * modules/settime (Makefile.am): Likewise.
28645         * modules/sha1 (Makefile.am): Likewise.
28646         * modules/sig2str (Makefile.am): Likewise.
28647         * modules/snprintf (Makefile.am): Likewise.
28648         * modules/stdlib-safer (Makefile.am): Likewise.
28649         * modules/stpcpy (Makefile.am): Likewise.
28650         * modules/stpncpy (Makefile.am): Likewise.
28651         * modules/strcase (Makefile.am): Likewise.
28652         * modules/strcasestr (Makefile.am): Likewise.
28653         * modules/strchrnul (Makefile.am): Likewise.
28654         * modules/strcspn (Makefile.am): Likewise.
28655         * modules/strdup (Makefile.am): Likewise.
28656         * modules/strerror (Makefile.am): Likewise.
28657         * modules/strftime (Makefile.am): Likewise.
28658         * modules/strndup (Makefile.am): Likewise.
28659         * modules/strnlen (Makefile.am): Likewise.
28660         * modules/strpbrk (Makefile.am): Likewise.
28661         * modules/strsep (Makefile.am): Likewise.
28662         * modules/strstr (Makefile.am): Likewise.
28663         * modules/strtod (Makefile.am): Likewise.
28664         * modules/strtoimax (Makefile.am): Likewise.
28665         * modules/strtok_r (Makefile.am): Likewise.
28666         * modules/strtol (Makefile.am): Likewise.
28667         * modules/strtoll (Makefile.am): Likewise.
28668         * modules/strtoul (Makefile.am): Likewise.
28669         * modules/strtoull (Makefile.am): Likewise.
28670         * modules/strtoumax (Makefile.am): Likewise.
28671         * modules/strverscmp (Makefile.am): Likewise.
28672         * modules/time_r (Makefile.am): Likewise.
28673         * modules/timegm (Makefile.am): Likewise.
28674         * modules/tmpfile-safer (Makefile.am): Likewise.
28675         * modules/unistd-safer (Makefile.am): Likewise.
28676         * modules/unlinkdir (Makefile.am): Likewise.
28677         * modules/userspec (Makefile.am): Likewise.
28678         * modules/utime (Makefile.am): Likewise.
28679         * modules/utimecmp (Makefile.am): Likewise.
28680         * modules/utimens (Makefile.am): Likewise.
28681         * modules/vasnprintf (Makefile.am): Likewise.
28682         * modules/vasprintf (Makefile.am): Likewise.
28683         * modules/vsnprintf (Makefile.am): Likewise.
28684         * modules/xalloc (Makefile.am): Likewise.
28685         * modules/xgetcwd (Makefile.am): Likewise.
28686         * modules/xnanosleep (Makefile.am): Likewise.
28687         * modules/xreadlink (Makefile.am): Likewise.
28688         * modules/xstrtod (Makefile.am): Likewise.
28689         * modules/xstrtol (Makefile.am): Likewise.
28690         * modules/xstrtold (Makefile.am): Likewise.
28691         * modules/yesno (Makefile.am): Likewise.
28692
28693 2006-10-12  Jim Meyering  <jim@meyering.net>
28694
28695         * m4/getloadavg.m4: Revert the change below.
28696
28697         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
28698         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
28699         fail with a symlink, which is what coreutils' ./bootstrap now
28700         creates by default.
28701
28702 2006-10-12  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
28705         mingw.
28706         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
28707         MSVC and mingw explicitly.
28708
28709 2006-10-11  Simon Josefsson  <jas@extundo.com>
28710             Bruno Haible  <bruno@clisp.org>
28711
28712         Add support for multiple gnulib-tool invocations in the scope of a
28713         single configure.ac file.
28714         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
28715         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
28716         with the same contents as the _LIBADD variable.
28717         (func_emit_initmacro_start, func_emit_initmacro_end,
28718         func_emit_initmacro_done): New functions.
28719         (func_import, func_create_testdir): Invoke them. Allow the identifiers
28720         gl_LIBOBJS and gl_LTLIBOBJS.
28721
28722 2006-10-11  Bruno Haible  <bruno@clisp.org>
28723
28724         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
28725         (func_create_testdir): Don't create po/Makefile.am, don't invoke
28726         autoreconf. Instead, invoke autopoint explicitly but move back the
28727         *.m4 files from gnulib.
28728
28729 2006-10-11  Bruno Haible  <bruno@clisp.org>
28730
28731         * gnulib-tool (func_usage): Make module names after --create-testdir
28732         optional.
28733         (func_create_testdir): If no module was specified, use nearly all
28734         modules.
28735
28736 2006-10-12  Jim Meyering  <jim@meyering.net>
28737
28738         Big performance improvement for fts-based tools that use FTS_NOSTAT.
28739         Avoid spurious inode-mismatch problems on non-POSIX file systems.
28740         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
28741         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
28742         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
28743         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
28744         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
28745         (fts_set_stat_required): New function.
28746         (fts_open): Defer the calls to fts_stat, if possible or requested.
28747         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
28748         into fts_stat itself.
28749         (fts_read): Perform any required (deferred) fts_stat call.
28750         (fts_build): Likewise, for the directory we're about to open and read.
28751         In the readdir loop, carefully decide whether each entry will require
28752         an eventual call to fts_stat, using dirent.d_type info if available.
28753         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
28754         a command line argument into this function.  Update all callers.
28755         Map a return value of FTS_DOT to FTS_D for a command line argument.
28756         * modules/fts (Depends-on): Add d-type.  Alphabetize.
28757         Thanks to Miklos Szeredi for his tenacity and for the initial
28758         bug report about "find" failing on a FUSE-based file system.
28759
28760         * lib/fts.c (fts_open): Use consistent indentation.
28761
28762 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28763
28764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
28765         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
28766         reported by Jim Meyering.  All uses of cache variables renamed
28767         to match Autoconf's.
28768         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
28769         the other one.
28770
28771         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28772         Fix misspelling in diagnostic.
28773
28774 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28775
28776         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
28777         defined.  Problem reported by Matthew Woehlke.
28778
28779         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
28780         Add support for Tandem NonStop R series.
28781         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
28782         Use new macro.
28783
28784         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
28785         (has_trailing_slash): Omit size arg; all callers changed.
28786         Omit 'inline', since it doesn't help performance and we'd
28787         need to configure it.
28788         Don't count //, ///, etc. as having a trailing slash.
28789         As a side effect, this removes a C99ism reported by Matthew Woehlke.
28790         (rpl_rename_dest_slash): On failure, use rename's errno rather
28791         than (in some cases) an incorrect or junk errno.
28792         Simplify code by removing need to compute length; this does
28793         cause it to make two passes instead of one over the file name,
28794         but it's worth it.
28795
28796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
28797         change, since Autoconf's version may no longer be appropriate now
28798         that we are using CVS Autoconf's version.  Add support for Tandem.
28799
28800 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28801             Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
28804         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
28805         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
28806         gl_AC_TYPE_LONG_LONG.
28807
28808         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
28809         instead of HAVE_LONG_LONG.
28810         * lib/printf-args.c (printf_fetchargs): Likewise.
28811         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28812         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
28814         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
28815         gl_AC_TYPE_LONG_LONG.
28816
28817 2006-10-11  Bruno Haible  <bruno@clisp.org>
28818
28819         * m4/longlong.m4: Add comments.
28820         * m4/ulonglong.m4: Likewise.
28821
28822 2006-10-10  Bruno Haible  <bruno@clisp.org>
28823
28824         Make it possible to #define stpcpy, strdup to aliases.
28825         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
28826         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
28827
28828 2006-10-10  Bruno Haible  <bruno@clisp.org>
28829
28830         Make it possible to #define gcd to an alias.
28831         * lib/gcd.c: Include config.h.
28832
28833 2006-10-10  Bruno Haible  <bruno@clisp.org>
28834
28835         Make it possible to #define c_isascii to an alias.
28836         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
28837         defined. Undefine the macros before defining them, to avoid gcc
28838         warnings.
28839         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
28840         define NO_C_CTYPE_MACROS early.
28841
28842 2006-10-10  Bruno Haible  <bruno@clisp.org>
28843
28844         Make it possible to #define set_program_name to an alias.
28845         * lib/progname.c: Don't undefine set_program_name; instead, undefine
28846         ENABLE_RELOCATABLE early.
28847
28848 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28849
28850         Port to Tandem NSK OSS, which has 64-bit signed int but at most
28851         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
28852         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
28853         More generally, don't assume that 64-bit signed int is available
28854         if unsigned int is, and vice versa.
28855         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
28856         unsigned symbols, not on their signed counterparts.
28857         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
28858         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
28859         (UINT64_C, UINTMAX_C):
28860         Likewise.
28861         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
28862         unsigned counterparts.
28863         (Have_long_long, Unsigned): New macros.
28864         (Int): Renamed from INT.
28865         (strtoimax): Use the new macros.
28866         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
28867         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
28868         * modules/inttypes (inttypes.h): Substitute
28869         HAVE_UNSIGNED_LONG_LONG_INT.
28870         * modules/stdint (stdint.h): Likewise.
28871         (Files): Add m4/ulonglong.m4.
28872
28873 2006-10-10  Bruno Haible  <bruno@clisp.org>
28874
28875         Fix a gcc -Wshadow warning.
28876         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
28877         to 'bucket'.
28878         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
28879         gl_linked_indexof_from_to): Likewise.
28880         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
28881         Likewise.
28882         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
28883         Likewise.
28884         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
28885         Reported by Eric Blake.
28886
28887 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28888
28889         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
28890         for NetBSD.  Problem reported by Bruno Haible.
28891
28892 2006-10-09  Jim Meyering  <jim@meyering.net>
28893
28894         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
28895         Patch from Bruno Haible.
28896
28897 2006-10-09  Jim Meyering  <jim@meyering.net>
28898
28899         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28900         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
28901         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
28902
28903 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         Don't include <config.h> twice; this doesn't work in some cases,
28906         e.g., when config.h has "#define intmax_t long long int" and
28907         we include <config.h>, <inttypes.h>, <config.h> in that order.
28908         Problem reported by Matthew Woehlke in:
28909         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
28910         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
28911         * lib/fts-cycle.c: Don't include config.h.
28912         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
28913         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28914         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
28915         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
28916         inttypes.h.
28917         * lib/xstrtoumax.c: Likewise.
28918         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28919         __strtol and the like, so that this module is more like its siblings.
28920         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28921         Remove; no longer needed now that we assume gnulib inttypes.h.
28922
28923 2006-10-08  Bruno Haible  <bruno@clisp.org>
28924
28925         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28926         option.
28927
28928 2006-10-07  Jim Meyering  <jim@meyering.net>
28929
28930         * modules/inttypes (inttypes.h): Revert what seems to have been
28931         an inadvertent part of today's change: use "|", not "/" in the
28932         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28933
28934 2006-10-07  Bruno Haible  <bruno@clisp.org>
28935
28936         * modules/sublist: New file.
28937
28938 2006-10-07  Bruno Haible  <bruno@clisp.org>
28939
28940         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28941         * modules/argz (argz.h): Likewise.
28942         * modules/arpa_inet (arpa/inet.h): Likewise.
28943         * modules/byteswap (byteswap.h): Likewise.
28944         * modules/configmake (configmake.h): Likewise.
28945         * modules/fcntl (fcntl.h): Likewise.
28946         * modules/fnmatch (fnmatch.h): Likewise.
28947         * modules/getopt (getopt.h): Likewise.
28948         * modules/glob (glob.h): Likewise.
28949         * modules/inttypes (inttypes.h): Likewise.
28950         * modules/netinet_in (netinet/in.h): Likewise.
28951         * modules/poll (poll.h): Likewise.
28952         * modules/stdbool (stdbool.h): Likewise.
28953         * modules/stdint (stdint.h): Likewise.
28954         * modules/sys_select (sys/select.h): Likewise.
28955         * modules/sys_socket (sys/socket.h): Likewise.
28956         * modules/sys_stat (sys/stat.h): Likewise.
28957         * modules/sysexits (sysexits.h): Likewise.
28958         * modules/unistd (unistd.h): Likewise.
28959         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28960         Add a "DO NOT EDIT" comment to the generated file.
28961         (func_import): Likewise for gnulib-comp.m4.
28962
28963 2006-10-07  Bruno Haible  <bruno@clisp.org>
28964
28965         * lib/gl_sublist.h: New file.
28966         * lib/gl_sublist.c: New file.
28967
28968 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28969
28970         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28971         name (relative to the original working directory) and the file
28972         name component (relative to the temporary working directory).  All
28973         callers changed.
28974         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28975         * lib/mkdir-p.c (make_dir_parents): Likewise.
28976         * lib/mkdir-p.h (make_dir_parents): Likewise.
28977
28978 2006-10-06  Eric Blake  <ebb9@byu.net>
28979
28980         Define several macros for use by the clean-temp module.
28981         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28982         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28983         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28984
28985         * lib/clean-temp.h (close_stream_temp): New declaration.
28986         * lib/clean-temp.c (includes): Pull in headers according to what
28987         other modules are in use.
28988         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28989
28990 2006-10-06  Bruno Haible  <bruno@clisp.org>
28991
28992         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28993         instead of fopen, fwriteerror.
28994
28995 2006-10-06  Bruno Haible  <bruno@clisp.org>
28996
28997         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28998         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28999         int.
29000         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
29001         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
29002         Return an error indicator.
29003         Suggested by Eric Blake.
29004
29005 2006-10-06  Bruno Haible  <bruno@clisp.org>
29006
29007         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
29008         Reported by Eric Blake.
29009
29010 2006-10-06  Bruno Haible  <bruno@clisp.org>
29011
29012         * modules/closeout (Description): Mention stderr too.
29013
29014 2006-10-06  Bruno Haible  <bruno@clisp.org>
29015         and Paul Eggert  <eggert@cs.ucla.edu>
29016
29017         * lib/closeout.c (close_stdout): Also close stderr.
29018         * lib/closeout.h: Update comment.
29019
29020 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
29023         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
29024         * lib/dirchownmod.c: Include lchown.h.
29025         * lib/lchown.c: Don't include files that lchown.h now includes.
29026         Don't declare chown, since lchown.h now does that.
29027         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
29028         (lchown): Define to rpl_chown if lchown is declared but
29029         does not exist.  Declare using a prototype if lchown is not
29030         declared.  Add a copyright notice.
29031         * lib/mkstemp.h: Include <unistd.h>.
29032         * lib/openat.c: Include lchown.h.
29033
29034         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
29035         we now test for that separately.
29036         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
29037         rather than O_NOFOLLOW, when testing whether it's possible to
29038         avoid a race condition reliably.
29039         * lib/savewd.c (savewd_chdir): Likewise.
29040
29041         Remove macros that are no longer needed now that stdint.h is
29042         reliable.
29043         * lib/fsusage.c (UINTMAX_MAX): Remove.
29044         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
29045         * lib/utimecmp.c (SIZE_MAX): Remove.
29046
29047         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
29048
29049         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
29050         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
29051         O_NOATIME works.
29052
29053 2006-10-05  Bruno Haible  <bruno@clisp.org>
29054
29055         * lib/gl_list.h (gl_sortedlist_search_from_to,
29056         gl_sortedlist_indexof_from_to): New declarations.
29057         (gl_list_implementation): New fields sortedlist_search_from_to,
29058         sortedlist_indexof_from_to.
29059         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
29060         inline functions.
29061         * lib/gl_list.c (gl_sortedlist_search_from_to,
29062         gl_sortedlist_indexof_from_to): New functions.
29063         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
29064         function.
29065         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
29066         (gl_array_sortedlist_search_from_to): New function.
29067         (gl_array_list_implementation): Update.
29068         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
29069         function.
29070         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
29071         (gl_carray_sortedlist_search_from_to): New function.
29072         (gl_carray_list_implementation): Update.
29073         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
29074         gl_linked_sortedlist_indexof_from_to): New functions.
29075         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
29076         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
29077         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
29078         gl_tree_sortedlist_indexof_from_to): New functions.
29079         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
29080         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
29081         Update.
29082         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
29083         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
29084         Update.
29085
29086 2006-10-05  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
29089         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
29090         (struct gl_list_implementation): Add fields search_from_to,
29091         indexof_from_to. Remove fields search, indexof.
29092         (gl_list_search): Use the search_from_to method.
29093         (gl_list_search_from, gl_list_search_from_to): New functions.
29094         (gl_list_indexof): Use the indexof_from_to method.
29095         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
29096         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
29097         (gl_list_search_from, gl_list_search_from_to): New functions.
29098         (gl_list_indexof): Use the indexof_from_to method.
29099         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
29100         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
29101         gl_array_indexof. Add start_index, end_index arguments.
29102         (gl_array_search_from_to): Renamed from gl_array_search. Add
29103         start_index, end_index arguments.
29104         (gl_array_remove, gl_array_list_implementation): Update.
29105         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
29106         gl_carray_indexof. Add start_index, end_index arguments.
29107         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
29108         start_index, end_index arguments.
29109         (gl_carray_remove, gl_carray_list_implementation): Update.
29110         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
29111         gl_linked_search. Add start_index, end_index arguments.
29112         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
29113         start_index, end_index arguments.
29114         (gl_linked_remove): Update.
29115         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
29116         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
29117         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
29118         field to 'size_t'.
29119         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
29120         gl_tree_search. Add start_index, end_index arguments.
29121         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
29122         start_index, end_index arguments.
29123         (gl_tree_remove): Update.
29124         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
29125         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
29126         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
29127         function.
29128         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
29129         gl_tree_search. Add start_index, end_index arguments.
29130         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
29131         start_index, end_index arguments.
29132         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
29133         Update.
29134         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
29135
29136 2006-10-05  Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
29139
29140         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
29141         fwriteerror_temp): New declarations.
29142         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
29143         (descriptors): New variable.
29144         (cleanup): First, close the descriptors.
29145         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
29146         fclose_temp, fwriteerror_temp): New functions.
29147
29148 2006-10-04  Jim Meyering  <jim@meyering.net>
29149
29150         * lib/fts.c (fts_open): Tiny comment change.
29151
29152 2006-10-04  Bruno Haible  <bruno@clisp.org>
29153
29154         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
29155         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
29156         gl_LOCK_BODY.
29157         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
29158         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
29159         gl_LOCK_EARLY_BODY.
29160         (gl_LOCK): Require gl_LOCK_BODY.
29161
29162 2006-10-04  Bruno Haible  <bruno@clisp.org>
29163
29164         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
29165         (gl_oset_search_atleast): New declaration.
29166         (struct gl_oset_implementation): Add field 'search_atleast'.
29167         (gl_oset_search_atleast): New inline function.
29168         * lib/gl_oset.c (gl_oset_search_atleast): New function.
29169         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
29170         (gl_array_oset_implementation): Update.
29171         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
29172         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
29173         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
29174
29175 2006-10-04  Bruno Haible  <bruno@clisp.org>
29176
29177         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
29178
29179 2006-10-03  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
29182         from gl_avltreehash_list_implementation.
29183
29184 2006-10-03  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/gl_oset.c (gl_oset_add): Fix return type.
29187
29188 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
29189
29190         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
29191
29192 2006-10-02  Eric Blake  <ebb9@byu.net>
29193
29194         * modules/strnlen (Depends-on): Add extensions.
29195
29196 2006-10-02  Eric Blake  <ebb9@byu.net>
29197
29198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
29199         definition in 2.60+.
29200
29201 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
29202
29203         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
29204         checks.
29205
29206 2006-10-02  Bruno Haible  <bruno@clisp.org>
29207
29208         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
29209         to the AUTOMAKE_OPTIONS.
29210         Reported by Jim Meyering.
29211
29212 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
29213
29214         Work around bug in Solaris 10 /proc file system:
29215         /proc/self/fd/NNN/.. isn't the parent directory of
29216         the directory whose file descriptor is NNN.  This needs to
29217         be worked around at run time, not compile time, since a
29218         program might be built on Solaris 8, where things work, and
29219         run on Solaris 10.
29220         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
29221         to use the following interface instead:
29222         (OPENAT_BUFFER_SIZE): New macro.
29223         (openat_proc_name): New function.
29224         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
29225         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
29226         Likewise.
29227         * lib/openat-proc.c: New file.
29228         * modules/openat (Files): Add lib/openat-proc.c.
29229         (Depends-on): Add same-inode, stdbool.
29230         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
29231
29232 2006-09-29  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
29235         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
29236         argument. Set stdout_closed before testing for ferror, not after.
29237         (fwriteerror, fwriteerror_no_ebadf): New functions.
29238
29239 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29240
29241         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
29242
29243 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
29244
29245         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
29246         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
29247
29248 2006-09-28  Jim Meyering  <jim@meyering.net>
29249
29250         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
29251         Include <unistd.h>.
29252
29253 2006-09-28  Bruno Haible  <bruno@clisp.org>
29254
29255         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
29256         * modules/linkedhash-list (Depends-on): Likewise.
29257         * modules/rbtreehash-list (Depends-on): Likewise.
29258
29259 2006-09-28  Bruno Haible  <bruno@clisp.org>
29260
29261         * lib/strndup.h: Simplify the redefinition of strndup.
29262         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
29263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
29264
29265 2006-09-28  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
29268         * lib/gl_linkedhash_list.c: Likewise.
29269         * lib/gl_rbtreehash_list.c: Likewise.
29270
29271 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
29274         getaddrinfo.
29275
29276         * lib/__fpending.h: Don't include <stdio_ext.h> unless
29277         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
29278         it causes <stdio_ext.h> to cause a compile-time error.
29279         Problem reported by Nelson H. F. Beebe.
29280         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
29281         of HAVE_DECL___PENDING.
29282
29283         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
29284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
29285         declaration.
29286
29287 2006-09-27  Jim Meyering  <jim@meyering.net>
29288
29289         This file could end up with a definition for a function
29290         named __strndup, rather than rpl_strndup on a system with
29291         incomplete weak_alias support.
29292         * lib/strndup.c (strndup): Rename from __strndup.
29293         Remove #defines that used to map __strndup to strndup.
29294         Don't use K&R prototypes.
29295         Remove LIBC-related code, since this file is not sync'd with glibc.
29296         * lib/strndup.h: Revamp, accordingly.
29297         * m4/strndup.m4: Modernize.
29298
29299 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29300
29301         * modules/savewd (Depends-on): Add 'raise'.
29302         * lib/savewd.c: Include <signal.h>, for 'raise'.
29303
29304 2006-09-26  Jim Meyering  <jim@meyering.net>
29305
29306         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
29307         when we detect Darwin 8.7.0's acl_get_file bug.
29308         Rearrange to perform the new (below) run-test while $LIBS
29309         contains any acl-related library.  Set USE_ACL at the end.
29310         (gl_ACL_GET_FILE): New function.
29311
29312 2006-09-26  Eric Blake  <ebb9@byu.net>
29313
29314         * lib/verror.c: Include <config.h> unconditionally.
29315
29316 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         * modules/clock-time (Maintainer): Add self.
29319         * modules/getlogin_r (Depends-on): Add extensions.
29320
29321 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29322
29323         * modules/clock-time: New module.
29324         * modules/nanosleep (Depends-on): Add clock-time.
29325         * modules/gethrxtime (Depends-on): Likewise.
29326         * modules/gettime (Depends-on): Likewise.
29327         * modules/settime (Depends-on): Likewise.
29328
29329         * modules/fts-lgpl: Depend on openat.
29330         * modules/mkancesdirs: Depend on savewd.
29331         * modules/mkdir-p: Likewise.
29332
29333 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29334
29335         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
29336
29337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
29338         `gl_have_arbitrary_file_name_length_limit' to
29339         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
29340         actually works between configure runs.
29341
29342 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29343             Bruno Haible  <bruno@clisp.org>
29344
29345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
29346
29347 2006-09-25  Jim Meyering  <jim@meyering.net>
29348
29349         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
29350         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
29351
29352 2006-09-25  Eric Blake  <ebb9@byu.net>
29353
29354         * gnulib-tool (func_import, func_create_testdir): Fix typos in
29355         exec's in 2006-09-18 patch when shuffling fds.
29356
29357 2006-09-25  Bruno Haible  <bruno@clisp.org>
29358
29359         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
29360         Reported by Jim Meyering.
29361
29362 2006-09-24  Jim Meyering  <jim@meyering.net>
29363
29364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
29365         compare a pointer against a literal "0".  That caused failures with
29366         at least HP-UX's hpcc.
29367
29368 2006-09-22  Simon Josefsson  <jas@extundo.com>
29369
29370         * modules/gc-sha1:
29371         * modules/gc-md4:
29372         * modules/gc-hmac-sha1:
29373         * modules/gc-hmac-md5:
29374         * modules/gc-des:
29375         * modules/gc-arcfour: Distribute more files.
29376
29377 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29378
29379         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
29380         (gl_linked_iterator_from_to): Initialize struct completely.
29381         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
29382         (gl_tree_iterator_from_to): Likewise
29383         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
29384         * lib/gl_array_list.c [lint] (gl_array_iterator)
29385         (gl_array_iterator_from_to): Likewise.
29386         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
29387         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
29388         (gl_carray_iterator_from_to): Likewise.
29389
29390         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
29391         * lib/md4.c (md4_process_block): Remove unused variable.
29392         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
29393         parentheses for clarity.
29394
29395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29396
29397         * modules/bison-i18n (Depends-on): Add gettext.
29398
29399 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29400
29401         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
29402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29403         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
29404         also add missing comma that caused broken test.
29405         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
29406         stdlib.h, for `abort'.
29407         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
29408         variables.
29409         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
29410         include unistd.h if present, for `rmdir'.
29411         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
29412         variables.
29413         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
29414         in the process include standard headers for prototypes.
29415         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
29416         gets declared on GNU/Linux.
29417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
29418         unistd.h, for `rmdir'.
29419         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
29420
29421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
29422         always true.
29423         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
29424
29425         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
29426
29427 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29428
29429         * gnulib-tool (func_version): Create output all at once.  This
29430         may help avoid triggering unnecessary SIGPIPEs, and at any
29431         rate it doesn't hurt.
29432
29433 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29434             Bruno Haible  <bruno@clisp.org>
29435
29436         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
29437         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29438         * m4/signed.m4 (bh_C_SIGNED): Likewise.
29439
29440         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
29441         (gl_FUNC_VASPRINTF): Invoke it.
29442
29443 2006-09-22  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
29446         getloadavg.c as first argument.
29447
29448 2006-09-22  Bruno Haible  <bruno@clisp.org>
29449
29450         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
29451         at the beginning of the gl_INIT macro.
29452         * modules/getloadavg (configure.ac): Pass $gl_source_base to
29453         gl_GETLOADAVG.
29454
29455 2006-09-22  Bruno Haible  <bruno@clisp.org>
29456
29457         * gnulib-tool (func_create_megatestdir): Don't include the config-h
29458         module.
29459         Suggested by Ralf Wildenhues.
29460
29461 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29462
29463         Import this patch from libc:
29464
29465         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
29466
29467         * lib/regex_internal.c (re_string_reconstruct): Handle
29468         offset < pstr->valid_raw_len && pstr->offsets_needed case.
29469         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
29470         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
29471         re_string_context_at.
29472
29473         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
29474         now requires it.
29475         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
29476         gl_REGEX now does it for us.
29477         (gl_REGEX): Add test taken from
29478         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
29479
29480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
29481         Check that large offsets work.  Modernize Autoconf usages.
29482         Prefer "yes" to mean a good thing rather than a bad.
29483         Don't put "#define mkstemp" in config.h, as this might interfere
29484         with standard system headers that "#define mkstemp mkstemp64".
29485
29486         * modules/mkstemp (Depends-on): Add extensions, so that
29487         mkstemp is visible on some platforms.
29488         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
29489         (Include): Change to "mkstemp.h" from <stdlib.h>.
29490         (Files): Add mkstemp.h.
29491
29492         * lib/mkstemp.h: New file, since some standard headers
29493         #define mkstemp.
29494         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
29495         Include "mkstemp.h".
29496         Make the _LIBC code resemble glibc original more,
29497         e.g., use K&R style.
29498         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
29499         (mkstemp): Remove, since mkstemp.h does this for us.
29500         * lib/stdlib--.h: Include mkstemp.h.
29501
29502         Import this patch from libc:
29503
29504         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29505
29506         * lib/tempname.c (__gen_tempname): Change attempts_min
29507         into a macro.  Use preprocessor to decide how to initialize
29508         attempts [Coverity CID 67].
29509
29510 2006-09-20  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/mkdtemp.c: Import from libc.
29513         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
29514                 * sysdeps/posix/tempname.c (__gen_tempname): Change
29515                 attempts_min into a macro.  Use preprocessor to decide how to
29516                 initialize attempts [Coverity CID 67].
29517         2001-11-27  Paul Eggert  <eggert@twinsun.com>
29518                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
29519                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
29520
29521 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29522
29523         * gnulib-tool (func_exit): New function, to allow to pass the
29524         exit status portably through the trap.  Use everywhere.
29525         (--help, --version): Signal a write error.
29526         (trap): catch SIGPIPE, for write errors.
29527         Exit at the end of the trap, with the correct exit status.
29528
29529 2006-09-19  Karl Berry  <karl@gnu.org>
29530
29531         * doc/gnulib.texi: note about the license texinfo files.
29532
29533 2006-09-19  Eric Blake  <ebb9@byu.net>
29534
29535         * gnulib-tool: Avoid space-tab.
29536
29537 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29538
29539         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
29540         that prevented coreutils 6.1 from building.  Problem reported
29541         by Petter Reinholdtsen.
29542
29543 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29544
29545         * gnulib-tool (avoidlist): Fix typo that broke options like
29546         --avoid=lock that are used by coreutils bootstrap.
29547
29548 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
29549
29550         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
29551         more systematically.
29552
29553 2006-09-18  Jim Meyering  <jim@meyering.net>
29554
29555         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
29556
29557 2006-09-18  Bruno Haible  <bruno@clisp.org>
29558
29559         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
29560
29561 2006-09-18  Bruno Haible  <bruno@clisp.org>
29562
29563         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
29564         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
29565         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
29566         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
29567         * m4/gettext.m4: Require autoconf >= 2.52.
29568         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
29569         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
29570         of gl_cv_header_inttypes_h.
29571
29572 2006-09-18  Bruno Haible  <bruno@clisp.org>
29573
29574         * lib/javaversion.c: Include configmake.h.
29575
29576 2006-09-18  Bruno Haible  <bruno@clisp.org>
29577
29578         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
29579         avoid that the while loops be executed in a subshell.
29580
29581 2006-09-18  Bruno Haible  <bruno@clisp.org>
29582
29583         * MODULES.html.sh (func_module): Break long lines.
29584         Suggested by Bruce Korb <bkorb@gnu.org>.
29585
29586 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29587
29588         Speed up by a factor of 1.12.
29589         * gnulib-tool (nl): New variable.
29590         (func_import): Rewrite include directive extraction to only read each
29591         directive once.
29592
29593 2006-09-17  Bruno Haible  <bruno@clisp.org>
29594
29595         * modules/javaversion (Makefile.am): Remove DEFS setting.
29596         (Depends-on): Add configmake, for PKGDATADIR definition.
29597
29598 2006-09-17  Bruno Haible  <bruno@clisp.org>
29599
29600         * gnulib-tool (func_create_testdir): Rewrite all files at once.
29601
29602 2006-09-17  Bruno Haible  <bruno@clisp.org>
29603
29604         * gnulib-tool (func_append): New function, stolen from libtool.m4.
29605         (func_modules_transitive_closure, func_modules_add_dummy,
29606         func_modules_to_filelist, func_import, func_create_testdir,
29607         func_create_megatestdir, ...): Use it wherever possible.
29608         Suggested by Ralf Wildenhues.
29609
29610 2006-09-16  Karl Berry  <karl@gnu.org>
29611
29612         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
29613         to avoid sectioning errors.
29614         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
29615         [ifinfo]: blank line after @center-ed titles.
29616         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
29617         Spell FSF address consistently with others.
29618         (These changes approved by rms.)
29619
29620 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29621
29622         Speed up by a factor of 1.61.
29623         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
29624         already checked module names again.
29625
29626 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29627
29628         Speed up by a factor of 1.13.
29629         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
29630         for new_files, and the input to func_add_or_update.
29631
29632 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29633
29634         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
29635         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
29636
29637 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29638
29639         * modules/mkancesdirs (Depends-on): Add fcntl.
29640         * modules/savewd: New file.
29641         * MODULES.html.sh (File system functions): Add savewd.
29642
29643         * modules/configmake (Makefile.am): Add support for the
29644         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
29645
29646 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29647
29648         * m4/savewd.m4: New file.
29649
29650 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29651
29652         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
29653         (dirchownmod): New arg FD.  All callers changed.
29654         Use FD rather than opening the directory ourself, as opening is
29655         now the caller's responsibility.
29656         * lib/dirchownmod.h: Likewise.
29657         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
29658         hosts that require <sys/types.h> before <sys/stat.h>.  Include
29659         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
29660         (test_dir): Remove.
29661         (mkancesdirs): Return length of prefix of FILE that has already
29662         been made, or -2 if there is a child doing the work.  Redo
29663         algorithm so that it is O(N) rather than O(N**2).  Optimize away
29664         ".", and treat ".." specially since it might stray back into
29665         already-created areas.  Use a subprocess if necessary.  New arg
29666         WD; all users changed.  MAKE_DIR function should now return 1
29667         if it creates a directory that is not readable.  Return -2 if
29668         a child process is spun off.
29669         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
29670         Adjust signature to match code.
29671         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
29672         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
29673         all users changed.
29674         * lib/savewd.c, lib/savewd.h: New files.
29675
29676 2006-09-15  Jim Meyering  <jim@meyering.net>
29677
29678         * modules/rename-dest-slash: New module.
29679         * MODULES.html.sh (posix_compat): Add it here.
29680
29681         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
29682
29683 2006-09-15  Jim Meyering  <jim@meyering.net>
29684
29685         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
29686         file.
29687
29688         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
29689
29690 2006-09-15  Jim Meyering  <jim@meyering.net>
29691
29692         * lib/rename-dest-slash.c (has_trailing_slash): Use
29693         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
29694         (rpl_rename_dest_slash): Perform the cheaper trailing slash
29695         test before testing whether SRC is a directory.
29696         Suggestions from Bruno Haible.
29697
29698         Avoid a warning about an unused variable.
29699         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
29700         into the #ifdef block where it's used.
29701
29702         * lib/rename-dest-slash.c: New file.
29703
29704 2006-09-14  Bruno Haible  <bruno@clisp.org>
29705
29706         * lib/allocsa.c: Include <config.h> unconditionally.
29707         * lib/asnprintf.c: Likewise.
29708         * lib/asprintf.c: Likewise.
29709         * lib/c-strcasecmp.c: Likewise.
29710         * lib/c-strcasestr.c: Likewise.
29711         * lib/c-strncasecmp.c: Likewise.
29712         * lib/c-strstr.c: Likewise.
29713         * lib/classpath.c: Likewise.
29714         * lib/clean-temp.c: Likewise.
29715         * lib/concatpath.c: Likewise.
29716         * lib/copy-file.c: Likewise.
29717         * lib/csharpcomp.c: Likewise.
29718         * lib/csharpexec.c: Likewise.
29719         * lib/execute.c: Likewise.
29720         * lib/fatal-signal.c: Likewise.
29721         * lib/findprog.c: Likewise.
29722         * lib/fwriteerror.c: Likewise.
29723         * lib/gl_array_list.c: Likewise.
29724         * lib/gl_array_oset.c: Likewise.
29725         * lib/gl_avltree_list.c: Likewise.
29726         * lib/gl_avltree_oset.c: Likewise.
29727         * lib/gl_avltreehash_list.c: Likewise.
29728         * lib/gl_carray_list.c: Likewise.
29729         * lib/gl_linked_list.c: Likewise.
29730         * lib/gl_linkedhash_list.c: Likewise.
29731         * lib/gl_list.c: Likewise.
29732         * lib/gl_oset.c: Likewise.
29733         * lib/gl_rbtree_list.c: Likewise.
29734         * lib/gl_rbtree_oset.c: Likewise.
29735         * lib/gl_rbtreehash_list.c: Likewise.
29736         * lib/imaxabs.c: Likewise.
29737         * lib/imaxdiv.c: Likewise.
29738         * lib/javacomp.c: Likewise.
29739         * lib/javaexec.c: Likewise.
29740         * lib/javaversion.c: Likewise.
29741         * lib/linebreak.c: Likewise.
29742         * lib/localcharset.c: Likewise.
29743         * lib/lock.c: Likewise.
29744         * lib/mbchar.c: Likewise.
29745         * lib/mbswidth.c: Likewise.
29746         * lib/mkdtemp.c: Likewise.
29747         * lib/pipe.c: Likewise.
29748         * lib/printf-args.c: Likewise.
29749         * lib/printf-parse.c: Likewise.
29750         * lib/progname.c: Likewise.
29751         * lib/progreloc.c: Likewise.
29752         * lib/readlink.c: Likewise.
29753         * lib/sh-quote.c: Likewise.
29754         * lib/stpcpy.c: Likewise.
29755         * lib/stpncpy.c: Likewise.
29756         * lib/strcasecmp.c: Likewise.
29757         * lib/strcasestr.c: Likewise.
29758         * lib/strcspn.c: Likewise.
29759         * lib/striconv.c: Likewise.
29760         * lib/strncasecmp.c: Likewise.
29761         * lib/strnlen1.c: Likewise.
29762         * lib/strstr.c: Likewise.
29763         * lib/strtok_r.c: Likewise.
29764         * lib/tls.c: Likewise.
29765         * lib/tmpdir.c: Likewise.
29766         * lib/unicodeio.c: Likewise.
29767         * lib/unsetenv.c: Likewise.
29768         * lib/vasnprintf.c: Likewise.
29769         * lib/vasprintf.c: Likewise.
29770         * lib/wait-process.c: Likewise.
29771         * lib/xallocsa.c: Likewise.
29772         * lib/xsetenv.c: Likewise.
29773         * lib/xstriconv.c: Likewise.
29774
29775 2006-09-13  Simon Josefsson  <jas@extundo.com>
29776
29777         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
29778         that internally, suggested by Ralf Wildenhues
29779         <Ralf.Wildenhues@gmx.de>.
29780
29781 2006-09-13  Simon Josefsson  <jas@extundo.com>
29782
29783         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
29784         @LIBOBJS@.
29785         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29786
29787 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         * lib/_fpending.c: Include <config.h> unconditionally, since we no
29790         longer worry about uses that don't define HAVE_CONFIG_H.
29791         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
29792         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
29793         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
29794         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
29795         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
29796         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
29797         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
29798         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
29799         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
29800         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
29801         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
29802         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
29803         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
29804         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
29805         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
29806         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
29807         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
29808         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
29809         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
29810         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
29811         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
29812         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
29813         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
29814         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
29815         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
29816         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
29817         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
29818         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
29819         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
29820         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
29821         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
29822         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
29823         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
29824         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
29825         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
29826         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
29827         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
29828         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
29829         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
29830         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
29831         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
29832         Likewise.
29833
29834 2006-09-13  Eric Blake  <ebb9@byu.net>
29835
29836         * lib/getopt.c: Fix typo in last commit.
29837
29838 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29839
29840         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
29841         dgettext.
29842
29843 2006-09-12  Jim Meyering  <jim@meyering.net>
29844
29845         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
29846         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
29847         Reported by Nelson H. F. Beebe.
29848
29849 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29850
29851         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
29852         program_invocation_name and program_invocation_short_name are
29853         initialized.
29854         * lib/argp-namefrob.h: Move declarations of program_invocation_name
29855         and program_invocation_short_name to argp.h, so they are visible
29856         to user programs.
29857         * lib/argp.h: Likewise
29858
29859 2006-09-10  Bruno Haible  <bruno@clisp.org>
29860
29861         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29862         m4/inttypes_h.m4, m4/uintmax_t.m4.
29863
29864 2006-09-10  Bruno Haible  <bruno@clisp.org>
29865
29866         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
29867         gl_AC_TYPE_UINTMAX_T.
29868
29869 2006-09-10  Bruno Haible  <bruno@clisp.org>
29870
29871         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
29872
29873 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29874
29875         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
29876         convention.  Text proposed by Bruno Haible.
29877         (struct argp_option): Document the use of N_() wrappers.
29878
29879         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
29880         '\v', and translate the two parts separately, instead of feeding
29881         the whole string to gettext.  This allows to exclude
29882         '\v' from the strings visible to the translator by writing doc
29883         strings as N_("..") "\v" N_("..").
29884
29885 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
29886
29887         * config/srclist.txt: Undo latest change; the bug was fixed.
29888
29889 2006-09-09  Bruno Haible  <bruno@clisp.org>
29890
29891         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
29892         assignments if building a library without libtool.
29893         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
29894         in func_emit_lib_Makefile_am.
29895         (func_import): When building a static library libfoo.a, arrange to
29896         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
29897         (func_create_testdir): Likewise.
29898         * modules/gc (configure.ac, Makefile.am): If building statically,
29899         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
29900         * modules/iconvme (configure.ac, Makefile.am): Likewise.
29901         * modules/striconv (configure.ac, Makefile.am): Likewise.
29902         Based on a suggestion by Ralf Wildenhues.
29903
29904 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29905
29906         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29907         Check for unistd.h too, since Autoconf doesn't assume POSIX.
29908         Also:
29909
29910         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29911         Add year_2050_test to catch glibc bug 2821
29912         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29913
29914         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29915         Prefer #ifdef to #if.
29916
29917         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29918         Return from 'main' instead of calling 'exit'.
29919
29920 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29921
29922         * lib/mktime.c (guess_time_tm): Fix bug where mktime
29923         returned the maximum time_t value rather than (time_t) -1.
29924         Problem originally reported by William Bardwell
29925         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29926
29927         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29928         Moved to here ...
29929         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29930         ... from here.
29931
29932 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29933
29934         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29935         2821 is fixed.
29936
29937 2006-09-08  Jim Meyering  <jim@meyering.net>
29938
29939         Don't make generated files read-only.  That would bother too many
29940         people.  However, do retain the ability to work when targets are
29941         read-only: remove the destination and temporary files before writing
29942         them (when generated via sed or echo), or by using the -f option for
29943         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
29944         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29945         * modules/byteswap, modules/configmake, modules/fcntl:
29946         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29947         * modules/localcharset, modules/netinet_in, modules/poll:
29948         * modules/stdbool, modules/stdint, modules/sys_select:
29949         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29950
29951 2006-09-08  Jim Meyering  <jim@meyering.net>
29952
29953         Avoid new build failure on FreeBSD 6.0.
29954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29955         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
29956         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29957
29958 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29959
29960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29961
29962 2006-09-07  Jim Meyering  <jim@meyering.net>
29963
29964         Fix global typo in last change: use chmod u-w, not chmod u-x.
29965         Spotted by Paul Eggert and Bruce Korb.
29966         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29967         * modules/byteswap, modules/configmake, modules/fcntl:
29968         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29969         * modules/localcharset, modules/netinet_in, modules/poll:
29970         * modules/stdbool, modules/stdint, modules/sys_select:
29971         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29972
29973 2006-09-06  Jim Meyering  <jim@meyering.net>
29974
29975         Make generated files be read-only.
29976         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29977         Ensure that each generated file is now read-only.
29978         * modules/argz: Likewise.
29979         * modules/arpa_inet: Likewise.
29980         * modules/byteswap: Likewise.
29981         * modules/configmake: Likewise.
29982         * modules/fcntl: Likewise.
29983         * modules/fnmatch: Likewise.
29984         * modules/getopt: Likewise.
29985         * modules/glob: Likewise.
29986         * modules/inttypes: Likewise.
29987         * modules/netinet_in: Likewise.
29988         * modules/poll: Likewise.
29989         * modules/stdbool: Likewise.
29990         * modules/stdint: Likewise.
29991         * modules/sys_select: Likewise.
29992         * modules/sys_socket: Likewise.
29993         * modules/sys_stat: Likewise.
29994         * modules/sysexits: Likewise.
29995         * modules/localcharset: Same as above, but continue using temporary
29996         file named "t-$@" (why different?) rather than the "$@-t" used
29997         everywhere else.
29998
29999         * modules/sysexits (Makefile.am): Replace literal occurrences
30000         of "sysexit.h" more readable, and more consistent, "$@".
30001
30002 2006-09-06  Bruno Haible  <bruno@clisp.org>
30003
30004         * modules/striconv: New file.
30005         * modules/xstriconv: New file.
30006         * MODULES.html.sh (Internationalization functions): Add striconv,
30007         xstriconv.
30008
30009 2006-09-06  Bruno Haible  <bruno@clisp.org>
30010
30011         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
30012         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
30013         not using libtool correctly.
30014
30015 2006-09-06  Bruno Haible  <bruno@clisp.org>
30016
30017         * lib/striconv.h: New file.
30018         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
30019         iconvstring.c.
30020         * lib/xstriconv.h: New file.
30021         * lib/xstriconv.c: New file.
30022
30023 2006-09-06  Bruno Haible  <bruno@clisp.org>
30024
30025         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30026         lib_..._LDFLAGS.
30027
30028 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30029
30030         * lib/argz_.h: Sync from Libtool.
30031
30032         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
30033                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30034
30035         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
30036
30037 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
30038
30039         * modules/trim: New file.
30040
30041 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
30042
30043         * lib/trim.h: New file.
30044         * lib/trim.c: New file.
30045
30046 2006-09-05  Bruno Haible  <bruno@clisp.org>
30047
30048         * MODULES.html.sh (String handling): Add trim.
30049
30050 2006-09-04  Karl Berry  <karl@gnu.org>
30051
30052         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
30053         until next release.
30054
30055 2006-09-03  Bruno Haible  <bruno@clisp.org>
30056
30057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
30058         correctly.
30059
30060 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30061
30062         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
30063         not gl_GETLOADAVG.  Omit unneeded semicolons.
30064         Problems reported by Ralf Wildenhues in
30065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
30066         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
30067         at the end, which is the usual gnulib style.
30068
30069         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
30070         of doing all the work ourselves.
30071         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
30072         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
30073
30074 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30075
30076         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
30077         Problem reported by Ralf Wildenhues in
30078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
30079
30080         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
30081         HAVE_STRUCT_STATFS_F_FSTYPENAME.
30082
30083 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30084
30085         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
30086         yesterday's patch by changing test -n to test -z.
30087
30088 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30089
30090         * modules/getloadavg (Files): Add m4/getloadavg.m4.
30091         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
30092         the former is now obsolescent.
30093
30094         * modules/chdir-long (Depends-on): Add fcntl.
30095
30096 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
30099         obsolescent, and programs should use gnulib instead.
30100         * m4/getloadavg.m4: New file, with contents taken from Autoconf
30101         but with prefixes changed.
30102
30103 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30104
30105         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
30106         or stdbool.h, because they might not exist while configuring.
30107
30108         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
30109         Don't include unistd.h or limits.h; not needed, since chdir-long.h
30110         does that for us.
30111         (O_DIRECTORY): Remove.
30112
30113 2006-08-31  Eric Blake  <ebb9@byu.net>
30114
30115         * gnulib-tool: Don't let emacs change spaces to TAB.
30116
30117 2006-08-31  Bruno Haible  <bruno@clisp.org>
30118
30119         * gnulib-tool: When calling func_import more than once, do it in a
30120         subshell.
30121         Reported by Eric Blake <ebb9@byu.net>.
30122
30123 2006-08-31  Bruno Haible  <bruno@clisp.org>
30124
30125         * gnulib-tool (nl): Remove variable.
30126         (sed_transform_lib_file): Use more robust test for config-h module.
30127         (func_import): Fix typo in 2006-08-25 patch.
30128
30129 2006-08-31  Bruno Haible  <bruno@clisp.org>
30130
30131         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
30132         specified, augment Makefile.am variables instead of assigning them.
30133
30134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         Work around a bug in both the Linux and SunOS 64-bit kernels:
30137         nanosleep mishandles sleeps for longer than 2**31 seconds.
30138         Problem reported by Frank v Waveren in
30139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
30140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
30141         Check for nanosleep bug.
30142         (LIB_NANOSLEEP): Append clock_gettime library if needed.
30143
30144 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30145
30146         Work around a bug in both the Linux and SunOS 64-bit kernels:
30147         nanosleep mishandles sleeps for longer than 2**31 seconds.
30148         Problem reported by Frank v Waveren in
30149         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
30150         * lib/nanosleep.c (BILLION): New constant.
30151         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
30152         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
30153         implementation.
30154
30155 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30156
30157         * modules/nanosleep (Depends-on): Add gettime.
30158
30159 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30160         and Simon Josefsson  <jas@extundo.com>
30161         and Oskar Liljeblad  <oskar@osk.mine.nu>
30162
30163         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
30164         * gnulib-tool (func_import): New license type 'unmodifiable license
30165         text'.
30166         * modules/fdl: Use it.  Longer description.
30167         * module/gpl, module/lgpl: New files.
30168
30169 2006-08-30  Jim Meyering  <jim@meyering.net>
30170
30171         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
30172         shadowing the parameter.
30173
30174 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30175
30176         Sync from Libtool:
30177
30178         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30179
30180         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
30181         sharing with gnulib.  Report by Eric Blake.
30182
30183 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30184
30185         * modules/isapipe: New file.
30186         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
30187
30188 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * modules/configmake (Makefile.am): Add a comment, and omit
30191         the CONFIGMAKE_ prefix from generated macro names.  Suggested
30192         by Bruno Haible.
30193
30194 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30195
30196         * m4/isapipe.m4: New file.
30197
30198 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
30199
30200         * lib/isapipe.c, lib/isapipe.h: New files.
30201
30202 2006-08-29  Jim Meyering  <jim@meyering.net>
30203
30204         * modules/configmake (Makefile.am): Make configmake.h depend on
30205         Makefile.  Otherwise, a stale configmake.h could hang around.
30206
30207 2006-08-29  Eric Blake  <ebb9@byu.net>
30208
30209         * lib/error.c (error_at_line, print_errno_message): Match libc, after
30210         resolution of upstream bug 3044.
30211
30212 2006-08-29  Bruno Haible  <bruno@clisp.org>
30213
30214         * modules/localcharset (Depends-on): Add configmake.
30215         (Makefile.am): Remove setting of LIBDIR through DEFS.
30216
30217 2006-08-29  Bruno Haible  <bruno@clisp.org>
30218
30219         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
30220         defined.
30221
30222 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30223
30224         * modules/fcntl: New file.
30225         * modules/chdir-safer (Depends-on): Add fcntl.
30226         * modules/fts: Likewise.
30227         * modules/mkdir-p: Likewise.
30228
30229         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
30230         This undoes the most recent change, since we're now addressing the
30231         problem in a different way.
30232
30233         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
30234         into output, since the output might be called Makefile.am even
30235         if $makefile_name is something different.
30236         (func_import): Use $makefile_am rather than
30237         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
30238         empty.
30239
30240         * modules/inttypes (Files): Add m4/inttypes-h.m4.
30241
30242 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30243
30244         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
30245         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
30246         recent change to stdint.m4, since we're now addressing the problem in a
30247         different way.
30248
30249 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30250
30251         * m4/fcntl_h.m4: New file.
30252
30253 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30254
30255         * lib/fcntl_.h: New file.
30256         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
30257         the fcntl module.
30258         * lib/dirchownmod.c: Likewise.
30259         * lib/fts.c: Likewise.
30260
30261         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
30262         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
30263         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
30264         just before including <inttypes.h>, to avoid circular inclusion.
30265
30266 2006-08-28  Jim Meyering  <jim@meyering.net>
30267
30268         * doc/visibility.texi: Actually read and correct the grammar of the
30269         sentence affected by yesterday's change.
30270
30271 2006-08-28  Eric Blake  <ebb9@byu.net>
30272
30273         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
30274         needs wrapper.
30275
30276 2006-08-28  Eric Blake  <ebb9@byu.net>
30277
30278         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
30279
30280 2006-08-28  Eric Blake  <ebb9@byu.net>
30281
30282         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
30283
30284 2006-08-28  Bruno Haible  <bruno@clisp.org>
30285
30286         * modules/c-strstr: New file, from GNU gettext.
30287         * MODULES.html.sh (String handling): Add c-strstr.
30288
30289 2006-08-28  Bruno Haible  <bruno@clisp.org>
30290
30291         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
30292         macros.
30293         Reported by Eric Blake.
30294
30295 2006-08-28  Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
30298         (VASNPRINTF): Return a string of length > INT_MAX without failing.
30299         * lib/vasprintf.c: Include errno.h, limits.h.
30300         (EOVERFLOW): New fallback definition.
30301         (vasprintf): Test here whether the string length is > INT_MAX.
30302         * lib/vsnprintf.c: Include errno.h, limits.h.
30303         (EOVERFLOW): New fallback definition.
30304         (vsnprintf): Fix bug when generated string was too long for the buffer.
30305         Test here whether the string length is > INT_MAX.
30306
30307 2006-08-28  Bruno Haible  <bruno@clisp.org>
30308
30309         * lib/inttypes_.h (SCNX*): Remove definitions.
30310         Reported by Eric Blake.
30311
30312 2006-08-28  Bruno Haible  <bruno@clisp.org>
30313
30314         * lib/c-strstr.h: New file, from GNU gettext.
30315         * lib/c-strstr.c: New file, from GNU gettext.
30316
30317 2006-08-28  Bruno Haible  <bruno@clisp.org>
30318
30319         * gnulib-tool: Reorder some statements.
30320
30321 2006-08-28  Bruno Haible  <bruno@clisp.org>
30322
30323         * gnulib-tool: New option --makefile-name.
30324         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
30325         $makefile_name.
30326         (func_import): Write $makefile_name to the cache file, and read it from
30327         there unless explicitly specified. Use $makefile_name as file name
30328         instead of Makefile.am. Adjust the recommendations accordingly.
30329
30330 2006-08-28  Bruno Haible  <bruno@clisp.org>
30331
30332         * gnulib-tool (func_verify_module): Check against misapplying patch.
30333
30334 2006-08-28  Bruno Haible  <bruno@clisp.org>
30335
30336         * gnulib-tool (func_relativize, func_relconcat): New functions.
30337         Give an error if --local-dir is given with --update.
30338         Remove trailing slashes from $local_gnulib_dir.
30339         (func_import): Store the relativized $local_gnulib_dir in
30340         gnulib-cache.m4, and read it from there if not specified explicitly.
30341
30342 2006-08-28  Bruno Haible  <bruno@clisp.org>
30343
30344         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
30345         is the current directory. Respect also $local_gnulib_dir.
30346
30347 2006-08-28  Bruno Haible  <bruno@clisp.org>
30348             Simon Josefsson  <jas@extundo.com>
30349
30350         BeOS portability.
30351         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
30352
30353 2006-08-27  Jim Meyering  <jim@meyering.net>
30354
30355         * doc/visibility.texi: Remove duplicate word: "pointer".
30356
30357 2006-08-26  Bruno Haible  <bruno@clisp.org>
30358
30359         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
30360         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
30361         (Makefile.am): Create inttypes.h from inttypes_.h.
30362         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
30363
30364         * modules/imaxabs: New file.
30365
30366         * modules/imaxdiv: New file.
30367
30368 2006-08-26  Bruno Haible  <bruno@clisp.org>
30369
30370         * m4/inttypes.m4: New file.
30371         * m4/_inttypes_h.m4: Remove file.
30372         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
30373         PRI_MACROS_BROKEN.
30374         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
30375
30376         * m4/imaxabs.m4: New file.
30377
30378         * m4/imaxdiv.m4: New file.
30379
30380 2006-08-26  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/inttypes_.h: New file.
30383         * lib/inttypes.h: Remove file.
30384         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
30385
30386         * lib/imaxabs.c: New file.
30387
30388         * lib/imaxdiv.c: New file.
30389
30390 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30391
30392         New config-h module, so that "make" output needn't be cluttered
30393         by -DHAVE_CONFIG_H.
30394         * MODULES.html.sh (Support for building libraries and executables):
30395         Add config-h.
30396         * modules/config-h: New file.
30397         * gnulib-tool (nl, sed_transform_lib_file): New vars.
30398         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
30399         the config-h module is used.
30400
30401         New configmake module, so that "make" output needn't be cluttered
30402         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
30403         * MODULES.html.sh (Support for building libraries and executables):
30404         Add configmake.
30405         * modules/configmake: New file.
30406
30407 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30408
30409         * m4/config-h.m4: New file.
30410
30411 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30412
30413         * config/srclist.txt: Add elisp-comp.
30414
30415 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30416
30417         * MODULES.html.sh (Support for building libraries and executables):
30418         Add elisp-comp.
30419         * build-aux/elisp-comp: New file.
30420         * modules/elisp-comp: New file.
30421
30422 2006-08-24  Bruno Haible  <bruno@clisp.org>
30423
30424         * gnulib-tool (func_create_testdir): Use non-default values of
30425         sourcebase and m4base.
30426
30427 2006-08-24  Bruno Haible  <bruno@clisp.org>
30428
30429         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
30430         HTML structure.
30431
30432 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30433
30434         * modules/openat (Depends-on): Add lchown.
30435
30436 2006-08-23  Bruno Haible  <bruno@clisp.org>
30437
30438         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
30439         of gl_LOCK_EARLY instead of gl_LOCK.
30440
30441 2006-08-23  Bruno Haible  <bruno@clisp.org>
30442
30443         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
30444         on OSF/1 to no.
30445         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
30446
30447 2006-08-23  Bruno Haible  <bruno@clisp.org>
30448
30449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
30450         as unusable.
30451
30452         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
30453         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
30454         (gl_LOCK): New macro.
30455
30456 2006-08-22  Simon Josefsson  <jas@extundo.com>
30457
30458         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
30459         to md5 module.
30460
30461 2006-08-22  Simon Josefsson  <jas@extundo.com>
30462
30463         * MODULES.html.sh: Add "Support for maintaining and release
30464         projects".
30465
30466         * build-aux/gnupload: New file, from coreutils.
30467
30468 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30469
30470         Avoid the need for AC_LIBSOURCES in m4 macros.
30471         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
30472         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
30473         * modules/check-version (EXTRA_DIST): Add check-version.h.
30474         * modules/crc (EXTRA_DIST): Add crc.h.
30475         * modules/des (EXTRA_DIST): Add des.h.
30476         * modules/gc (EXTRA_DIST): Add gc.h.
30477         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
30478         * modules/getline (EXTRA_DIST): Add getline.h.
30479         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
30480         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
30481         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
30482         * modules/md2 (EXTRA_DIST): Add md2.h.
30483         * modules/md4 (EXTRA_DIST): Add md4.h.
30484         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
30485         * modules/read-file (EXTRA_DIST): Add read-file.h.
30486         * modules/readline (EXTRA_DIST): Add readline.h.
30487         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
30488         rijndael-api-fst.h.
30489
30490 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30491
30492         * m4/rijndael.m4 (gl_ARCFOUR):
30493         * m4/arctwo.m4 (gl_ARCTWO):
30494         * m4/check-version.m4 (gl_CHECK_VERSION):
30495         * m4/crc.m4 (gl_CRC):
30496         * m4/des.m4 (gl_DES):
30497         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
30498         * m4/gc.m4 (gl_GC):
30499         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
30500         * m4/getline.m4 (gl_FUNC_GETLINE):
30501         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
30502         * m4/hmac-md5.m4 (gl_HMAC_MD5):
30503         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
30504         * m4/md2.m4 (gl_MD2):
30505         * m4/md4.m4 (gl_MD4):
30506         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
30507         * m4/read-file.m4 (gl_FUNC_READ_FILE):
30508         * m4/readline.m4 (gl_FUNC_READLINE):
30509         * m4/rijndael.m4 (gl_RIJNDAEL):
30510         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30511         to get the necessary .h files and whatnot.
30512
30513 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
30516         gnulib rather than the other way around.
30517         * config/srclistvars.sh (COREUTILS): Remove.
30518
30519 2006-08-22  Jim Meyering  <jim@meyering.net>
30520
30521         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
30522
30523         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
30524
30525 2006-08-22  Eric Blake  <ebb9@byu.net>
30526
30527         * modules/regexprops-generic: New file.
30528         * MODULES.html.sh (Support for building documentation): List it.
30529
30530 2006-08-22  Eric Blake  <ebb9@byu.net>
30531
30532         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
30533         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
30535         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30536
30537 2006-08-22  Bruno Haible  <bruno@clisp.org>
30538
30539         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
30540         and lib_LTLIBRARIES like the other lib_* variables.
30541
30542 2006-08-22  Bruno Haible  <bruno@clisp.org>
30543
30544         * build-aux/x-to-1.in: New file, from GNU gettext.
30545
30546 2006-08-22  Bruno Haible  <bruno@clisp.org>
30547
30548         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
30549         <utmpx.h> exists.
30550
30551 2006-08-22  Bruno Haible  <bruno@clisp.org>
30552
30553         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
30554         <utmpx.h> exists.
30555
30556 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30557
30558         BeOS portability.
30559         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
30560         exist.
30561         Problem reported by Bruno Haible.
30562
30563 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         Avoid the need for AC_LIBSOURCES in m4 macros.
30566         * modules/acl (EXTRA_DIST): Add acl.h.
30567         * modules/argmatch (Files): Add m4/argmatch.m4.
30568         (configure.ac): Add gl_ARGMATCH.
30569         (EXTRA_DIST): Renamed from lib_SOURCES, for
30570         consistency with the other modules.  Remove argmatch.c.
30571         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
30572         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
30573         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
30574         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
30575         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
30576         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
30577         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
30578         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
30579         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
30580         * modules/closeout (EXTRA_DIST): Add closeout.h.
30581         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
30582         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
30583         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
30584         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
30585         dirname.h; remove basename.c and stripslash.c.
30586         * modules/exclude (EXTRA_DIST): Add exclude.h.
30587         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
30588         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
30589         * modules/file-type (EXTRA_DIST): Add file-type.h.
30590         * modules/filemode (EXTRA_DIST): Add filemode.h.
30591         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
30592         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30593         * modules/fpending (EXTRA_DIST): Add __fpending.h.
30594         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
30595         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
30596         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
30597         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
30598         * modules/getdate (EXTRA_DIST): Add getdate.c.
30599         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
30600         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
30601         * modules/getpass (EXTRA_DIST): Add getpass.h.
30602         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
30603         * modules/group-member (EXTRA_DIST): Add group-member.h.
30604         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
30605         * modules/hash (EXTRA_DIST): Add hash.h.
30606         * modules/human (EXTRA_DIST): Add human.h.
30607         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
30608         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
30609         * modules/lchown (EXTRA_DIST): Add lchown.h.
30610         * modules/long-options (EXTRA_DIST): Add long-options.h.
30611         * modules/lstat (EXTRA_DIST): Add lstat.h.
30612         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
30613         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
30614         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
30615         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
30616         * modules/memxor (EXTRA_DIST): Add memxor.h.
30617         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
30618         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
30619         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
30620         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
30621         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
30622         * modules/physmem (EXTRA_DIST): Add physmem.h.
30623         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
30624         * modules/posixver (EXTRA_DIST): Add posixver.h.
30625         * modules/quote (EXTRA_DIST): Add quote.h.
30626         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
30627         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
30628         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
30629         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
30630         regex_internal.h regexec.c.
30631         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
30632         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
30633         * modules/same (EXTRA_DIST): Add same.h.
30634         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
30635         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
30636         * modules/savedir (EXTRA_DIST): Add savedir.h.
30637         * modules/sha1 (EXTRA_DIST): Add sha1.h.
30638         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
30639         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
30640         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
30641         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
30642         * modules/strdup (EXTRA_DIST): Add strdup.h.
30643         * modules/strftime (EXTRA_DIST): Add strftime.h.
30644         * modules/strndup (EXTRA_DIST): Add strndup.h.
30645         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
30646         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
30647         * modules/time_r (EXTRA_DIST): Add time_r.h.
30648         * modules/timespec (EXTRA_DIST): Add timespec.h.
30649         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30650         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
30651         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
30652         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
30653         * modules/userspec (EXTRA_DIST): Add userspec.h.
30654         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
30655         * modules/utimens (EXTRA_DIST): Add utimens.h.
30656         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
30657         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
30658         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
30659         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
30660         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
30661         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
30662         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
30663         * modules/yesno (EXTRA_DIST): Add yesno.h.
30664
30665 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30666
30667         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
30668
30669         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
30670         * m4/dev-ino.m4, same-inode.m4: Remove.
30671
30672         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
30673         * m4/acl.m4 (AC_FUNC_ACL):
30674         * m4/backupfile.m4 (gl_BACKUPFILE):
30675         * m4/c-strtod.m4 (gl_C99_STRTOLD):
30676         * m4/canon-host.m4 (gl_CANON_HOST):
30677         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
30679         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
30680         * m4/cloexec.m4 (gl_CLOEXEC):
30681         * m4/close-stream.m4 (gl_CLOSE_STREAM):
30682         * m4/closeout.m4 (gl_CLOSEOUT):
30683         * m4/dirfd.m4 (gl_FUNC_DIRFD):
30684         * m4/dirname.m4 (gl_DIRNAME):
30685         * m4/exclude.m4 (gl_EXCLUDE):
30686         * m4/exitfail.m4 (gl_EXITFAIL):
30687         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
30688         * m4/file-type.m4 (gl_FILE_TYPE):
30689         * m4/filemode.m4 (gl_FILEMODE):
30690         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
30691         * m4/fpending.m4 (gl_FUNC_FPENDING):
30692         * m4/fprintftime.m4 (gl_FPRINTFTIME):
30693         * m4/fts.m4 (gl_FUNC_FTS):
30694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
30695         * m4/getdate.m4 (gl_GETDATE):
30696         * m4/gethrxtime.m4 (gl_GETHRXTIME):
30697         * m4/getpagesize.m4 (gl_GETPAGESIZE):
30698         * m4/getpass.m4 (gl_FUNC_GETPASS):
30699         * m4/gettime.m4 (gl_GETTIME):
30700         * m4/getugroups.m4 (gl_GETUGROUPS):
30701         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
30702         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
30703         * m4/hard-locale.m4 (gl_HARD_LOCALE):
30704         * m4/hash.m4 (gl_HASH):
30705         * m4/idcache.m4 (gl_IDCACHE):
30706         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
30707         * m4/lchown.m4 (gl_FUNC_LCHOWN):
30708         * m4/long-options.m4 (gl_LONG_OPTIONS):
30709         * m4/lstat.m4 (gl_FUNC_LSTAT):
30710         * m4/md5.m4 (gl_MD5):
30711         * m4/memcasecmp.m4 (gl_MEMCASECMP):
30712         * m4/memcoll.m4 (gl_MEMCOLL):
30713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
30714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
30715         * m4/memxor.m4 (gl_MEMXOR):
30716         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
30717         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
30718         * m4/modechange.m4 (gl_MODECHANGE):
30719         * m4/mountlist.m4 (gl_MOUNTLIST):
30720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30721         * m4/openat.m4 (gl_FUNC_OPENAT):
30722         * m4/pathmax.m4 (gl_PATHMAX):
30723         * m4/physmem.m4 (gl_PHYSMEM):
30724         * m4/posixtm.m4 (gl_POSIXTM):
30725         * m4/posixver.m4 (gl_POSIXVER):
30726         * m4/quote.m4 (gl_QUOTE):
30727         * m4/quotearg.m4 (gl_QUOTEARG):
30728         * m4/readtokens.m4 (gl_READTOKENS):
30729         * m4/readutmp.m4 (gl_READUTMP):
30730         * m4/regex.m4 (gl_REGEX):
30731         * m4/safe-read.m4 (gl_SAFE_READ):
30732         * m4/safe-write.m4 (gl_SAFE_WRITE):
30733         * m4/same.m4 (gl_SAME):
30734         * m4/save-cwd.m4 (gl_SAVE_CWD):
30735         * m4/savedir.m4 (gl_SAVEDIR):
30736         * m4/settime.m4 (gl_SETTIME):
30737         * m4/sha1.m4 (gl_SHA1):
30738         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
30739         * m4/stat-macros.m4 (gl_STAT_MACROS):
30740         * m4/stat-time.m4 (gl_STAT_TIME):
30741         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
30742         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
30743         * m4/strdup.m4 (gl_FUNC_STRDUP):
30744         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
30745         * m4/strndup.m4 (gl_FUNC_STRNDUP):
30746         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
30747         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
30748         * m4/time_r.m4 (gl_TIME_R):
30749         * m4/timespec.m4 (gl_TIMESPEC):
30750         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
30751         * m4/unlinkdir.m4 (gl_UNLINKDIR):
30752         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
30753         * m4/userspec.m4 (gl_USERSPEC):
30754         * m4/utimecmp.m4 (gl_UTIMECMP):
30755         * m4/utimens.m4 (gl_UTIMENS):
30756         * m4/xalloc.m4 (gl_XALLOC):
30757         * m4/xgetcwd.m4 (gl_XGETCWD):
30758         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
30759         * m4/xreadlink.m4 (gl_XREADLINK):
30760         * m4/xstrtod.m4 (gl_XSTRTOD):
30761         * m4/yesno.m4 (gl_YESNO):
30762         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30763         to get the necessary .h files and whatnot.
30764
30765 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
30766             Bruno Haible  <bruno@clisp.org>
30767
30768         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
30769         /bin/sh understanding of '!' conditional negation.
30770
30771 2006-08-21  Jim Meyering  <jim@meyering.net>
30772
30773         * modules/openat (Depends-on): Really alphabetize.
30774
30775         * modules/acl (Depends-on): Add error and quote.
30776
30777         * check-module (find_included_lib_files): Add at-func.c to the
30778         ok-to-include-more-than-once white list.
30779
30780         * modules/openat (Depends-on): Add lstat.  Alphabetize.
30781
30782 2006-08-21  Bruno Haible  <bruno@clisp.org>
30783
30784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30785         Emit a pkgdata_DATA variable only if some snippets add contents to it.
30786         Reported by Martin Lambers <marlam@marlam.de>.
30787
30788 2006-08-21  Bruno Haible  <bruno@clisp.org>
30789
30790         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
30791         specify an installation location, don't emit a noinst_LIBRARIES or
30792         noinst_LTLIBRARIES assignment.
30793
30794 2006-08-21  Bruno Haible  <bruno@clisp.org>
30795
30796         BeOS portability.
30797         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
30798         BeOS has mbrtowc() but no <wctype.h>.
30799
30800 2006-08-21  Bruno Haible  <bruno@clisp.org>
30801
30802         BeOS portability.
30803         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
30804         exist.
30805
30806 2006-08-21  Bruno Haible  <bruno@clisp.org>
30807
30808         BeOS portability.
30809         * lib/mbchar.h: Include <wctype.h> only if it exists.
30810
30811 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30812
30813         Remove files that are no longer needed by their respective modules.
30814         * m4/obstack.m4: Remove.
30815         * m4/strerror_r.m4: Remove.
30816         * m4/uint32_t.m4: Remove.
30817         * m4/uintptr_t.m4: Remove.
30818         * m4/ullong_max.m4: Remove.
30819         * m4/xstrtoimax.m4: Remove.
30820         * m4/xstrtoumax.m4: Remove.
30821
30822         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
30823         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
30824         dependencies now capture this.
30825
30826         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30827         Do not use AC_LIBSOURCES, since gnulib modules now do this.
30828         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
30829         * m4/human.m4 (gl_HUMAN): Likewise.
30830         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
30831         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
30832
30833         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
30834
30835         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
30836         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
30837         stdint.
30838         * m4/human.m4 (gl_HUMAN): Likewise.
30839         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
30840         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
30841         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30842         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30843         * m4/xstrtol (gl_XSTRTOL): Likewise.
30844
30845         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
30846         AC_TYPE_LONG_LONG_INT.
30847         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30848         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
30849         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
30850         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30851
30852         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
30853         on stdbool.
30854
30855         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
30856         (gl_PREREQ_XSTRTOUL): Remove.
30857
30858         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
30859
30860         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
30861         mode.
30862
30863 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30864
30865         Add and change modules to make it easier for coreutils to use
30866         gnulib-tool.
30867         * modules/backupfile (Files): Remove m4/d-ino.m4.
30868         (Depends-on): Add d-ino.
30869         * modules/cycle-check (Depends-on): Add stdint.
30870         (lib_SOURCES): Add cycle-check.h.
30871         * modules/d-ino: New module.
30872         * modules/d-type: New module.
30873         * modules/error (Files): Remove m4/strerror_r.m4.
30874         * modules/filemode (Files): Add m4/st_dm_mode.m4.
30875         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
30876         m4/inttypes_h.m4, m4/uintmax_t.m4.
30877         (Depends-on): Add stdint.
30878         (lib_SOURCES): Add fsusage.h.
30879         * modules/getcwd (Files): Remove d-ino.m4.
30880         (Depends-on): Add d-ino.
30881         * modules/getndelim2 (Depends-on): Add stdint.
30882         * modules/glob (Files): Remove m4/d-type.m4.
30883         (Depends-on): Add d-type.
30884         * modules/host-os: New module.
30885         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
30886         m4/inttypes_h.m4, m4/uintmax_t.m4.
30887         * Depends-on: Add stdint.
30888         (lib_SOURCES): Add human.h.
30889         * modules/inttostr (Files): Remove m4/intmax_t.m4,
30890         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
30891         m4/uintmax_t.m4, m4/ulonglong.m4.
30892         (Depends-on): Add stdint.
30893         (EXTRA_DIST): Add inttostr.h.
30894         * modules/lchmod: New module.
30895         * modules/link-follow: New module.
30896         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
30897         (Depends-on): Add lchmod.
30898         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
30899         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
30900         (Depends-on): Add stdint.
30901         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
30902         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
30903         (Depends-on): Add stdint.
30904         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
30905         * modules/perl: New module.
30906         * modules/regex (Depends-on): Add stdint.
30907         * modules/rmdir-errno: New module.
30908         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30909         m4/intmax_t.m4.
30910         (Depends-on): Add stdint.
30911         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30912         m4/uintmax_t.m4.
30913         (Depends-on): Add stdint.
30914         * modules/unlink-busy: New module.
30915         * modules/utimecmp (Depends-on): Add stdint.
30916         * modules/uptime: New module.
30917         * modules/winsz-ioctl: New module.
30918         * modules/winsz-termios: New module.
30919         * modules/xnanosleep (Depends-on): Add nanosleep.
30920         * modules/ullong_max: Remove.
30921         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30922         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30923         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30924         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30925         (Depends-on): Add inttypes.
30926         (lib_SOURCES): Add xstrtol.h.
30927         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30928         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30929         * MODULES.html.sh: Move 'assert' into the assert section.
30930         Move 'dummy' into the linking section.
30931         Remove ullong_max.
30932         Add section for compatibility checks for POSIX:2001 functions,
30933         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30934         winsz-ioctl, and winsz-termios into it.
30935         Add lchmod.
30936         Add top-level Misc section and put host-os, perl, and uptime
30937         into it.
30938
30939 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30940
30941         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30942         now assume the stdint module.  Do not include inttypes.h.
30943         * lib/fsusage.h: Likewise.
30944         * lib/getndelim2.c: Likewise.
30945         * lib/human.h: Likewise.
30946         * lib/inttostr.h: Likewise.
30947         * lib/obstack.c: Likewise.
30948         * lib/regex_internal.h: Likewise.
30949         * lib/tempname.c: Likewise.
30950         * lib/utimecmp.c: Likewise.
30951         * lib/xstrtol.h: Likewise.
30952
30953         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30954
30955         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30956         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30957         * lib/xtime.h: Likewise.
30958
30959 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30960
30961         * modules/openat (Files): Add lib/fchmodat.c.
30962         Fixes problem reported by Jay Youngman.
30963
30964 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30965
30966         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
30967         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
30968
30969 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30970             Bruno Haible  <bruno@clisp.org>
30971
30972         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30973         and is a script that invokes bison. Tighten the code. Add comments.
30974
30975 2006-08-18  Jim Meyering  <jim@meyering.net>
30976
30977         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30978         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30979         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30980         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30981
30982 2006-08-18  Bruno Haible  <bruno@clisp.org>
30983
30984         * modules/bison-i18n: New file.
30985         * MODULES.html.sh (Internationalization functions): Add it.
30986
30987 2006-08-18  Bruno Haible  <bruno@clisp.org>
30988
30989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30990         sys/statvfs.h. When getmntinfo was found, check its declaration and
30991         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30992
30993 2006-08-18  Bruno Haible  <bruno@clisp.org>
30994
30995         * m4/bison-i18n.m4: New file, from bison.
30996
30997 2006-08-18  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
31000         (ME_DUMMY): Treat "kernfs" as a dummy.
31001         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
31002
31003 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31004
31005         Update from coreutils.
31006
31007         2006-08-15  Jim Meyering  <jim@meyering.net>
31008
31009         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
31010
31011         2006-01-17  Jim Meyering  <jim@meyering.net>
31012
31013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
31014
31015         2006-01-11  Jim Meyering  <jim@meyering.net>
31016
31017         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
31018         Check for the lchmod function.
31019
31020 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31021
31022         Update from coreutils.
31023
31024         * lib/__fpending.h: Add copyright notice.
31025         * lib/fprintftime.h: Likewise.
31026         * lib/savedir.c: Use (C) in copyright notice.
31027         * lib/savedir.h: Likewise.
31028
31029         2006-08-15  Jim Meyering  <jim@meyering.net>
31030
31031         * lib/at-func.c: New file, with the logic of all emulated at-functions.
31032         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
31033         in support of the EXPECTED_ERRNO macro.
31034         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
31035         definitions.  Instead, define the appropriate symbols and include
31036         "at-func.c".
31037         * lib/mkdirat.c (mkdirat): Likewise.
31038         * lib/fchmodat.c (fchmodat): Likewise.
31039         (ENOSYS): Remove definition.
31040         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
31041         it.  Don't include "unistd--.h" -- it wasn't ever used.
31042
31043         2006-01-17  Jim Meyering  <jim@meyering.net>
31044
31045         Rewrite fts.c not to change the current working directory,
31046         by using openat, fstatat, fdopendir, etc..
31047
31048         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
31049         (HAVE_OPENAT_SUPPORT): Define.
31050         [_LIBC] (fchdir): Don't undef or define; no longer used.
31051         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
31052         Now, this `function' always succeeds, and consumes its file descriptor
31053         parameter -- so callers must not close such FDs.  Update callers.
31054         (diropen_fd, opendirat, cwd_advance_fd): New functions.
31055         (diropen): Add parameter, SP.  Adjust all callers.
31056         Implement using diropen_fd, rather than open.
31057         (fts_open): Initialize new member, fts_cwd_fd.
31058         Remove fts_rft-setting code.
31059         (fts_close): Close fts_cwd_fd, if necessary.
31060         (__opendir2): Define in terms of opendir or opendirat,
31061         depending on whether the FST_NOCHDIR flag is set.
31062         (fts_build): Since fts_safe_changedir consumes its FD, and since
31063         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
31064         and close the dup'd file descriptor upon failure.
31065         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
31066         (fts_safe_changedir): Tweak semantics to reflect that this function
31067         now calls cwd_advance_fd and hence consumes its FD argument.
31068         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
31069         [struct FTS] (fts_rft): Remove now-unused member.
31070         [struct FTS] (fts_cycle.state): Improve comment.
31071
31072         * lib/openat.c (openat_needs_fchdir): New function.
31073         * lib/openat.h (openat_needs_fchdir): Declare it.
31074
31075 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31076
31077         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
31078         Problem and fix reported by Pádraig Brady in
31079         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
31080
31081 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31082
31083         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
31084
31085 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31086
31087         * lib/memcoll.c (memcoll): Optimize for the common case where the
31088         arguments are bytewise equal.
31089
31090 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31091
31092         * doc/regexprops-generic.texi: Add a copyright notice.
31093
31094 2006-08-15  Bruno Haible  <bruno@clisp.org>
31095
31096         * modules/tmpdir (License): Change to LGPL.
31097
31098 2006-08-15  Bruno Haible  <bruno@clisp.org>
31099
31100         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
31101         module.
31102
31103 2006-08-14  Simon Josefsson  <jas@extundo.com>
31104
31105         * config/srclist.txt: Add gnupload.
31106
31107 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31108
31109         Change copyright notice from LGPL 2 to GPL 2, since that's the
31110         standard form used in the gnulib repository.
31111         * tests/test-lock.c: Likewise.
31112         * tests/test-stdint.c: Likewise.
31113         * tests/test-tls.c: Likewise.
31114
31115         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
31116         prelude-manager.  User shorter URLs for GNU projects, without '?'.
31117         Add copyright notice.
31118
31119         * check-module: Add copyright notice.  Output a copyright
31120         notice if "--version" is specified.
31121         * modules/COPYING: New file.
31122         * tests/test-getaddrinfo.c: Add copyright notice.
31123         * tests/test-verify.c: Likewise.
31124
31125 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31126
31127         Change copyright notice from LGPL 2 to GPL 2, since that's the
31128         standard form used in the gnulib repository.
31129         * lib/lock.c: LGPL -> GPL.
31130         * lib/lock.h: Likewise.
31131         * lib/strnlen1.c: Likewise.
31132         * lib/strnlen1.h: Likewise.
31133         * lib/tls.c: Likewise.
31134         * lib/tls.h: Likewise.
31135         * lib/tmpdir.c: Likewise.
31136
31137         * lib/TODO: Remove; this belongs only in coreutils.
31138
31139 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31140
31141         Add copyright notices to long-enough files that lack them, since
31142         otherwise the files aren't clearly free.  Use the same notice that
31143         getdate.texi already uses.
31144         * doc/alloca-opt.texi: Add copyright notice.
31145         * doc/alloca.texi: Likewise.
31146         * doc/ctime.texi: Likewise.
31147         * doc/functions.texi: Likewise.
31148         * doc/gcd.texi: Likewise.
31149         * doc/gnulib-tool.texi: Likewise.
31150         * doc/inet_ntoa.texi: Likewise.
31151         * doc/visibility.texi: Likewise.
31152
31153         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
31154         * doc/quote.texi: Add copyright notice.
31155
31156         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
31157         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
31158         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
31159         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
31160         is now obsolete, and give a pointer to the Sun list.
31161         Add copyright notice.
31162
31163 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31164
31165         * config/srclistvars.sh: Add copyright notice.
31166
31167 2006-08-14  Eric Blake  <ebb9@byu.net>
31168
31169         Import the following change from libc:
31170
31171         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
31172
31173         Upstream bug 2997.
31174         * lib/misc/error.c: Add space between program name and message if file
31175         name is missing.
31176
31177 2006-08-12  Karl Berry  <karl@gnu.org>
31178
31179         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
31180         remove, these originate in gnulib now.
31181
31182 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31183
31184         * doc/Makefile (standards.info standards.html standards.dvi):
31185         Also depend on make-stds.texi.
31186
31187 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31188
31189         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
31190         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
31191
31192         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
31193         in wchar_t.  Problem reported by Eric Blake.
31194
31195         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
31196         LEN is smaller than SIZE.  Suggested by Bruno Haible.
31197         Also, help the compiler to keep LEN in a register.
31198
31199 2006-08-11  Eric Blake  <ebb9@byu.net>
31200
31201         * users.txt: Sort.  Add tar.
31202
31203 2006-08-11  Bruno Haible  <bruno@clisp.org>
31204
31205         * users.txt: New file.
31206
31207 2006-08-11  Bruno Haible  <bruno@clisp.org>
31208
31209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
31210         before <wchar.h>. Needed for OSF/1 and BSD/OS.
31211
31212 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31213
31214         * modules/snprintf (Depends-on): Remove minmax.
31215         (Maintainer): Add self and Bruno.
31216
31217 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31218
31219         * lib/.cppi-disable: Add snprintf.h, socket_.h.
31220         * lib/snprintf.c: Include <errno.h> and <limits.h>.
31221         (EOVERFLOW): Define if the system does not.
31222         Do not include "minmax.h"; it wasn't used.
31223         (snprintf): Don't assume size_t promotes to an unsigned type.
31224         Fix bug when generated string was too long for the buffer: the
31225         buffer's contents are supposed to be the initial prefix of the
31226         output.  Don't assume vasnprintf returns EOVERFLOW if the size
31227         exceeds INT_MAX; do the check ourselves.
31228
31229         Import the following changes from libc:
31230
31231         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
31232
31233         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
31234         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
31235         set wc to the byte which couldn't be converted.
31236         (re_string_reconstruct): Don't clear valid_raw_len before calling
31237         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
31238         tip_context using re_string_context_at.
31239
31240         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
31241
31242         * lib/posix/regex.h: g++ still cannot handled [restrict].
31243
31244         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
31245
31246         * lib/posix/regex.h: Remove special handling for VMS.
31247
31248 2006-08-10  Jim Meyering  <jim@meyering.net>
31249
31250         * modules/same-inode: New module.
31251         * modules/dev-ino: New module.
31252         * modules/cycle-check: Depend on these modules, rather than simply
31253         including their .h files.
31254         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
31255         required via m4/cycle-check.m4.
31256         * modules/same: Depend on new same-inode module, rather than
31257         including same-inode.h.
31258         * modules/chdir-safer: New file.
31259
31260         * modules/chown (Depends-on): Add stat-macros.
31261
31262 2006-08-10  Jim Meyering  <jim@meyering.net>
31263
31264         * m4/cycle-check.m4: New file.
31265         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
31266         * m4/dev-ino.m4, m4/same-inode.m4: New files.
31267
31268 2006-08-10  Eric Blake  <ebb9@byu.net>
31269
31270         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
31271         in from original proposal.
31272
31273 2006-08-10  Eric Blake  <ebb9@byu.net>
31274         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31275
31276         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
31277         namespace.
31278
31279 2006-08-10  Bruno Haible  <bruno@clisp.org>
31280
31281         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
31282         as well.
31283
31284 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31285
31286         Sync from coreutils.
31287
31288         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
31289
31290         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
31291         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
31292
31293 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31294
31295         * modules/restrict: Remove; no longer needed now that we assume
31296         Autoconf 2.59 or later.
31297         * MODULES.html.sh: Remove 'restrict'.
31298         * modules/argp (Depends-on): Remove 'restrict'.
31299         * modules/base64 (Depends-on): Likewise.
31300         * modules/gc (Depends-on): Likewise.
31301         * modules/getaddrinfo (Depends-on): Likewise.
31302         * modules/glob (Depends-on): Likewise.
31303         * modules/inet_ntop (Depends-on): Likewise.
31304         * modules/inet_pton (Depends-on): Likewise.
31305         * modules/memxor (Depends-on): Likewise.
31306         * modules/regex (Depends-on): Likewise.
31307         * modules/strtok_r (Depends-on): Likewise.
31308         * modules/time_r (Depends-on): Likewise.
31309
31310 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31311
31312         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
31313         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
31314         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31315         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
31316         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
31317         * m4/memxor.m4 (gl_MEMXOR): Likewise.
31318         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
31319         gl_C_RESTRICT replaced by AC_C_RESTRICT.
31320
31321         Merge from coreutils.
31322         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
31323         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
31324         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31325         * m4/time_r.m4 (gl_TIME_R): Likewise.
31326
31327 2006-08-09  Karl Berry  <karl@gnu.org>
31328
31329         * config/srclist.txt: no more gettext-tools, per Bruno.
31330
31331 2006-08-08  Eric Blake  <ebb9@byu.net>
31332
31333         * modules/verror: New module.
31334         * MODULES.html.sh: Document it.
31335
31336 2006-08-08  Eric Blake  <ebb9@byu.net>
31337
31338         * lib/verror.h, lib/verror.c: New files.
31339
31340 2006-08-08  Eric Blake  <ebb9@byu.net>
31341
31342         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
31343         verror_at_line output complies with GNU Coding Standards even when
31344         file is NULL.
31345
31346 2006-08-07  Bruno Haible  <bruno@clisp.org>
31347
31348         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
31349         versions of AIX.
31350         Reported by Ralf Wildenhues.
31351
31352 2006-08-07  Bruno Haible  <bruno@clisp.org>
31353
31354         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
31355         in an AC_DEFUN. Needed so that the autoconf snippets can use
31356         AC_REQUIRE.
31357
31358 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31359
31360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31361         Initialize pkgdata_DATA.
31362         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
31363         overriding it.
31364
31365 2006-08-06  Eric Blake  <ebb9@byu.net>
31366
31367         * lib/error.h: Fold in some upstream changes from glibc.
31368         * lib/error.c: Likewise.
31369
31370 2006-08-04  Bruno Haible  <bruno@clisp.org>
31371
31372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31373         Make the mostlyclean-local rule depend on mostlyclean-generic.
31374         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
31375
31376 2006-07-31  Bruno Haible  <bruno@clisp.org>
31377
31378         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
31379         <stdlib.h>, <string.h>.
31380
31381 2006-07-30  Bruno Haible  <bruno@clisp.org>
31382
31383         * modules/readlink (License): Change to LGPL.
31384
31385 2006-07-30  Bruno Haible  <bruno@clisp.org>
31386
31387         * modules/javaversion (Makefile.am): Distribute javaversion.java and
31388         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
31389         set PKGDATADIR to point to it.
31390
31391 2006-07-30  Bruno Haible  <bruno@clisp.org>
31392
31393         * modules/csharpexec (configure.ac): Comment out macro invocation.
31394         * modules/javaexec (configure.ac): Likewise.
31395         * modules/javacomp-script (configure.ac): Likewise.
31396
31397         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
31398
31399 2006-07-30  Bruno Haible  <bruno@clisp.org>
31400
31401         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
31402         linked-list.
31403
31404 2006-07-30  Bruno Haible  <bruno@clisp.org>
31405
31406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
31407
31408 2006-07-30  Bruno Haible  <bruno@clisp.org>
31409
31410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31411         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
31412         get removed.
31413
31414 2006-07-29  Bruno Haible  <bruno@clisp.org>
31415
31416         Make it possible for gnulib-tool to work with locally modified or
31417         augmented gnulib repositories.
31418         * gnulib-tool (func_usage): Document --local-dir option.
31419         (local_gnulib_dir): New variable.
31420         Handle --local-dir option.
31421         (func_lookup_file): New function.
31422         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
31423         (func_get_description, func_get_filelist, func_get_description,
31424         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
31425         func_get_automake_snippet, func_get_include_directive,
31426         func_get_license, func_get_maintainer): Use func_lookup_file.
31427         (func_import, func_create_testdir): Use func_lookup_file.
31428
31429 2006-07-29  Bruno Haible  <bruno@clisp.org>
31430
31431         * modules/setenv (Depends-on): Add unistd.
31432
31433 2006-07-29  Bruno Haible  <bruno@clisp.org>
31434
31435         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
31436
31437 2006-07-29  Bruno Haible  <bruno@clisp.org>
31438
31439         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
31440
31441 2006-07-29  Bruno Haible  <bruno@clisp.org>
31442
31443         * gnulib-tool (import, update): If there is no Makefile.am, look at
31444         aclocal.m4, instead of bailing out.
31445
31446 2006-07-29  Bruno Haible  <bruno@clisp.org>
31447
31448         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
31449         Categorize the options by when they are useful.
31450
31451 2006-07-29  Bruno Haible  <bruno@clisp.org>
31452
31453         * gnulib-tool (func_usage): Document option --no-libtool.
31454         Handle option --no-libtool.
31455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
31456         for changed semantics of $libtool variable.
31457         (func_import): Likewise. If libtool is not used, show this through
31458         an option --no-libtool.
31459         (func_create_testdir): Update.
31460
31461 2006-07-29  Bruno Haible  <bruno@clisp.org>
31462
31463         * gnulib-tool (func_import): Extend error message about missing
31464         --doc-base.
31465
31466 2006-07-29  Bruno Haible  <bruno@clisp.org>
31467
31468         * gnulib-tool (func_import): Don't create the $docbase directory if
31469         there is no file to store there.
31470
31471 2006-07-29  Bruno Haible  <bruno@clisp.org>
31472
31473         * gnulib-tool (autoconf_minversion): If a --dir option is given and
31474         relevant, look for configure.ac there, not in the current directory.
31475         Also use a simple search for AC_PREREQ, not "autoconf --trace".
31476
31477 2006-07-29  Bruno Haible  <bruno@clisp.org>
31478
31479         * gnulib-tool (SORT): New variable.
31480         (func_usage): Undocument --assume-autoconf option.
31481         Remove --assume-autoconf option handling.
31482         (autoconf_minversion): Determine from the contents of configure.ac.
31483         (func_import): Remove autoconf_minversion handling.
31484         Suggested by Eric Blake.
31485
31486 2006-07-29  Bruno Haible  <bruno@clisp.org>
31487
31488         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
31489
31490 2006-07-29  Bruno Haible  <bruno@clisp.org>
31491
31492         * config/srclist.txt (*setenv.[ch]): Remove rules.
31493
31494 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31495
31496         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
31497
31498 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31499
31500         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
31501         arpa/inet.h.
31502
31503 2006-07-28  Simon Josefsson  <jas@extundo.com>
31504
31505         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
31506         * modules/inet_pton (Depends-on): Likewise.
31507
31508 2006-07-28  Simon Josefsson  <jas@extundo.com>
31509
31510         * m4/netinet_in_h.m4: New file.
31511
31512 2006-07-28  Simon Josefsson  <jas@extundo.com>
31513
31514         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
31515         #include's.
31516
31517 2006-07-28  Simon Josefsson  <jas@extundo.com>
31518
31519         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
31520         #include's.
31521
31522 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
31523
31524         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
31525         setgid on directories only if they set these bits.
31526         * lib/modechange.h: Remove obsolete comment about masks.
31527
31528 2006-07-28  Eric Blake  <ebb9@byu.net>
31529
31530         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
31531         macro expansion.
31532
31533 2006-07-28  Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
31536
31537 2006-07-28  Bruno Haible  <bruno@clisp.org>
31538
31539         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
31540
31541 2006-07-28  Bruno Haible  <bruno@clisp.org>
31542
31543         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31544         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31545         Define fallbacks.
31546         Avoids link error on FreeBSD 4.x.
31547         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31548
31549         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
31550         encoding.
31551         * lib/mbswidth.c (iswcntrl): Likewise.
31552
31553 2006-07-27  Bruno Haible  <bruno@clisp.org>
31554
31555         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
31556         test.
31557
31558 2006-07-27  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
31561         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
31562         defined.
31563
31564 2006-07-26  Eric Blake  <ebb9@byu.net>
31565
31566         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
31567
31568 2006-07-26  Eric Blake  <ebb9@byu.net>
31569
31570         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
31571         like mingw that lack mkstemp.
31572         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
31573         avoid compilation warning on mingw.
31574
31575 2006-07-26  Bruno Haible  <bruno@clisp.org>
31576
31577         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
31578         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
31579         INT_FAST*_MIN, INTPTR_MIN.
31580
31581 2006-07-25  Bruno Haible  <bruno@clisp.org>
31582
31583         * modules/version-etc (Depends-on): Add stdarg.
31584
31585 2006-07-25  Bruno Haible  <bruno@clisp.org>
31586
31587         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
31588         complex commands.
31589
31590 2006-07-25  Bruno Haible  <bruno@clisp.org>
31591
31592         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
31593         defined in <stdarg.h> or config.h.
31594
31595 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31596
31597         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
31598         (gl_STDIO_SAFER): Remove.
31599
31600 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31601
31602         * MODULES.html.sh (File stream based Input/Output):
31603         Add fopen-safer, tmpfile-safer; remove stdio-safer.
31604         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
31605         * modules/fopen-safer, modules/tmpfile-safer: New files.
31606         * modules/stdio-safer: Remove.
31607
31608 2006-07-24  Bruno Haible  <bruno@clisp.org>
31609
31610         * modules/tmpdir: New file.
31611         * MODULES.html.sh (File system functions): Add it.
31612
31613 2006-07-24  Bruno Haible  <bruno@clisp.org>
31614
31615         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
31616         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
31617
31618 2006-07-24  Bruno Haible  <bruno@clisp.org>
31619
31620         * modules/clean-temp: New file.
31621
31622 2006-07-24  Bruno Haible  <bruno@clisp.org>
31623
31624         * m4/tmpdir.m4: New file, from GNU gettext.
31625
31626 2006-07-24  Bruno Haible  <bruno@clisp.org>
31627
31628         * lib/tmpdir.h: New file, from GNU gettext.
31629         * lib/tmpdir.c: New file, from GNU gettext.
31630
31631 2006-07-24  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/clean-temp.h: New file, from GNU gettext.
31634         * lib/clean-temp.c: New file, from GNU gettext.
31635
31636 2006-07-23  Eric Blake  <ebb9@byu.net>
31637
31638         * modules/stdio-safer (Files): Add tmpfile-safer.c.
31639         (Depends-on): Add binary-io.
31640
31641 2006-07-23  Eric Blake  <ebb9@byu.net>
31642
31643         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
31644
31645 2006-07-23  Eric Blake  <ebb9@byu.net>
31646
31647         * lib/tmpfile-safer.c: New file.
31648         * lib/stdio-safer.h (fopen_safer): Add prototype.
31649         * lib/stdio--.h (tmpfile): Make safer.
31650
31651 2006-07-23  Bruno Haible  <bruno@clisp.org>
31652
31653         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
31654         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
31655         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
31656         gl_linked_remove_at): Use it.
31657
31658 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31659         and Simon Josefsson <jas@extundo.com>
31660
31661         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
31662
31663         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
31664
31665 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31666
31667         * modules/close-stream: New file.
31668         * modules/closeout (Description): Make it clear that it exits
31669         with a diagnostic on error.
31670         (Depends-on): Add close-stream.  Remove fpending, stdbool.
31671         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
31672
31673 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31674
31675         * m4/close-stream.m4: New file.
31676
31677 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31678
31679         * lib/close-stream.c, lib/close-stream.h: New files.
31680
31681 2006-07-22  Bruno Haible  <bruno@clisp.org>
31682
31683         Merge from GNU gettext 0.15.
31684
31685         2006-05-01  Bruno Haible  <bruno@clisp.org>
31686
31687                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
31688
31689         2006-07-22  Bruno Haible  <bruno@clisp.org>
31690
31691                 * modules/javaversion: New file.
31692                 * MODULES.html.sh (Java): Add javaversion.
31693
31694         2006-03-12  Bruno Haible  <bruno@clisp.org>
31695
31696                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
31697
31698         2005-12-04  Bruno Haible  <bruno@clisp.org>
31699
31700                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
31701                 (untested).
31702
31703         2006-06-21  Bruno Haible  <bruno@clisp.org>
31704
31705                 Avoid warnings from recent versions of mcs.
31706                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
31707                 -o, -L, -r any more. Use options documented since mcs-1.0
31708                 instead. Similarly for -g.
31709
31710         2005-12-04  Bruno Haible  <bruno@clisp.org>
31711
31712                 * build-aux/csharpcomp.sh.in: Suffix for resources is
31713                 .resources, not .resource.
31714
31715         2005-07-09  Bruno Haible  <bruno@clisp.org>
31716
31717                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
31718                 add a .dll suffix.
31719                 Reported by Mark Junker <mjscod@gmx.de>.
31720
31721         2006-07-22  Bruno Haible  <bruno@clisp.org>
31722
31723                 * modules/gettext: Upgrade to gettext-0.15.
31724                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
31725                 m4/visibility.m4.
31726                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
31727
31728 2006-07-22  Bruno Haible  <bruno@clisp.org>
31729
31730         Merge from GNU gettext 0.15.
31731
31732         2006-03-25  Bruno Haible  <bruno@clisp.org>
31733
31734                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
31735
31736         2006-07-21  Bruno Haible  <bruno@clisp.org>
31737
31738                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
31739                 "1.1".
31740
31741         2006-05-09  Bruno Haible  <bruno@clisp.org>
31742
31743                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
31744                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
31745                 for the conftestver execution.
31746
31747         2006-05-01  Bruno Haible  <bruno@clisp.org>
31748
31749                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
31750                 optional target-version argument. Verify that the compiler
31751                 groks source of the specified source-version, or add -source
31752                 option as necessary. Verify that the compiler produces
31753                 bytecode in the specified target-version, or add -target and
31754                 -source options as necessary. Make the result of the test
31755                 available as variable CONF_JAVAC. Also log error output in
31756                 config.log.
31757
31758         2006-03-11  Bruno Haible  <bruno@clisp.org>
31759
31760                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
31761
31762         2006-05-09  Bruno Haible  <bruno@clisp.org>
31763
31764                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
31765                 CLASSPATH_SEPARATOR to a semicolon.
31766
31767         2006-03-12  Bruno Haible  <bruno@clisp.org>
31768
31769                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
31770                 available as variable CONF_JAVA, for subsequent autoconf
31771                 tests. Also log error output in config.log.
31772
31773         2006-07-19  Bruno Haible  <bruno@clisp.org>
31774
31775                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
31776                 that getline works on glibc2 systems. Needed to avoid trouble
31777                 in relocatable.c.
31778                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
31779
31780         2005-12-04  Bruno Haible  <bruno@clisp.org>
31781
31782                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
31783                 launcher (untested).
31784
31785         2005-12-04  Bruno Haible  <bruno@clisp.org>
31786
31787                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
31788
31789         2006-07-22  Bruno Haible  <bruno@clisp.org>
31790
31791                 * gettext.m4: Update from GNU gettext-0.15.
31792                 * nls.m4: Likewise.
31793                 * po.m4: Likewise.
31794                 * inttypes-pri.m4: Likewise.
31795                 * inttypes-h.m4: Renamed from inttypes.m4.
31796                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
31797
31798 2006-07-22  Bruno Haible  <bruno@clisp.org>
31799
31800         Merge from GNU gettext 0.15.
31801
31802         2005-07-05  Bruno Haible  <bruno@clisp.org>
31803
31804                 * printf-args.c (printf_fetchargs): Work around broken
31805                 definition of wint_t on mingw.
31806
31807         2005-02-12  Bruno Haible  <bruno@clisp.org>
31808
31809                 * xallocsa.h: Add extern "C" for C++.
31810
31811         2006-05-17  Bruno Haible  <bruno@clisp.org>
31812
31813                 Cygwin portability.
31814                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
31815
31816         2006-04-30  Bruno Haible  <bruno@clisp.org>
31817
31818                 * progreloc.c: Include <mach-o/dyld.h> if available.
31819                 (find_executable): Use _NSGetExecutablePath when possible.
31820
31821         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31822
31823                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
31824                 function.
31825
31826         2005-12-29  Bruno Haible  <bruno@clisp.org>
31827
31828                 * progreloc.c (set_program_name_and_installdir): Fix
31829                 compilation error.
31830
31831         2005-12-04  Bruno Haible  <bruno@clisp.org>
31832
31833                 Cygwin portability.
31834                 * progreloc.c: Include <windows.h> also on Cygwin.
31835                 (find_executable): Add support for Cygwin.
31836                 (set_program_name_and_installdir): Handle also platforms with
31837                 nonempty EXEEXT.
31838
31839         2006-07-11  Bruno Haible  <bruno@clisp.org>
31840
31841                 * javacomp.c: Fix a comment.
31842                 Reported by Jim Meyering.
31843
31844         2006-04-30  Bruno Haible  <bruno@clisp.org>
31845
31846                 * javacomp.h (compile_java_class): Add source_version,
31847                 target_version arguments.
31848                 * javacomp.c: Rewritten to choose only a compiler that
31849                 respects the specified source_version and target_version.
31850
31851         2006-06-27  Bruno Haible  <bruno@clisp.org>
31852
31853                 Assume correct S_ISDIR macro.
31854                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
31855
31856         2006-07-22  Bruno Haible  <bruno@clisp.org>
31857
31858                 * javaversion.h: New file, from GNU gettext.
31859                 * javaversion.c: New file, from GNU gettext.
31860                 * javaversion.java: New file, from GNU gettext.
31861                 * javaversion.class: New file, from GNU gettext.
31862
31863         2006-05-17  Bruno Haible  <bruno@clisp.org>
31864
31865                 Cygwin portability.
31866                 * javaexec.c (execute_java_class): Test for jview program
31867                 also on Cygwin.
31868
31869         2006-04-09  Bruno Haible  <bruno@clisp.org>
31870
31871                 * fatal-signal.c: Don't include string.h.
31872                 (at_fatal_signal): Use a copying loop instead of memcpy.
31873
31874         2005-12-04  Bruno Haible  <bruno@clisp.org>
31875
31876                 * csharpexec.c: Add support for 'clix' launcher (untested).
31877                 (execute_csharp_using_sscli): New function.
31878                 (execute_csharp_program): Call it.
31879
31880         2006-06-21  Bruno Haible  <bruno@clisp.org>
31881
31882                 Avoid warnings from recent versions of mcs.
31883                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
31884                 -o, -L, -r any more. Use options documented since mcs-1.0
31885                 instead. Similarly for -g.
31886
31887         2005-07-09  Bruno Haible  <bruno@clisp.org>
31888
31889                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
31890                 add a .dll suffix.
31891                 Reported by Mark Junker <mjscod@gmx.de>.
31892
31893         2006-06-17  Bruno Haible  <bruno@clisp.org>
31894
31895                 * config.charset: Update for NetBSD 3.0.
31896
31897         2006-05-17  Bruno Haible  <bruno@clisp.org>
31898
31899                 Cygwin portability.
31900                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
31901
31902         2006-05-16  Bruno Haible  <bruno@clisp.org>
31903
31904                 * localcharset.c [CYGWIN]: Include <windows.h>.
31905                 (get_charset_aliases): For Cygwin, return the same CPxxx
31906                 aliases list as under WIN32.
31907                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
31908                 the environment variables. Fall back to GetACP().
31909
31910         2006-04-05  Bruno Haible  <bruno@clisp.org>
31911
31912                 * config.charset: Update Juan Manuel Guerrero's address.
31913
31914         2005-02-12  Bruno Haible  <bruno@clisp.org>
31915
31916                 * allocsa.h: Add extern "C" for C++.
31917
31918         2005-02-10  Bruno Haible  <bruno@clisp.org>
31919
31920                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31921                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31922
31923         2006-07-22  Bruno Haible  <bruno@clisp.org>
31924
31925                 * gettext.h: Update to GNU gettext-0.15.
31926
31927 2006-07-22  Bruno Haible  <bruno@clisp.org>
31928
31929         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31930         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31931         lib-prefix.m4, longdouble.m4, ssize_t.m4.
31932
31933 2006-07-21  Eric Blake  <ebb9@byu.net>
31934
31935         * modules/stdlib-safer: New file.
31936         * MODULES.html.sh (File stream based Input/Output): Add
31937         stdlib-safer.
31938
31939 2006-07-21  Eric Blake  <ebb9@byu.net>
31940
31941         * lib/stdlib-safer.h: New file from coreutils, required by
31942         stdlib--.h.
31943
31944 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31945
31946         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31947
31948 2006-07-20  Bruno Haible  <bruno@clisp.org>
31949
31950         * gnulib-tool: Recognize new option --assume-autoconf.
31951         (autoconf_minversion): New variable.
31952         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31953
31954 2006-07-20  Bruno Haible  <bruno@clisp.org>
31955
31956         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31957
31958 2006-07-19  Derek R. Price  <derek@ximbiot.com>
31959
31960         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31961         Reindent and repaginate.
31962
31963 2006-07-19  Derek Price  <derek@ximbiot.com>
31964
31965         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
31966         Correct grammar.
31967
31968 2006-07-17  Bruno Haible  <bruno@clisp.org>
31969
31970         * modules/list: New file.
31971         * modules/array-list: New file.
31972         * modules/carray-list, modules/carray-list-tests: New files.
31973         * modules/linked-list, modules/linked-list-tests: New files.
31974         * modules/avltree-list, modules/avltree-list-tests: New files.
31975         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31976         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31977         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31978         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31979         * modules/oset: New file.
31980         * modules/array-oset: New file.
31981         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31982         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31983         * tests/test-carray_list.c: New file.
31984         * tests/test-linked_list.c: New file.
31985         * tests/test-avltree_list.c: New file.
31986         * tests/test-rbtree_list.c: New file.
31987         * tests/test-linkedhash_list.c: New file.
31988         * tests/test-avltreehash_list.c: New file.
31989         * tests/test-rbtreehash_list.c: New file.
31990         * tests/test-avltree_oset.c: New file.
31991         * tests/test-rbtree_oset.c: New file.
31992         * MODULES.html.sh (Container data structures): New section.
31993
31994 2006-07-17  Bruno Haible  <bruno@clisp.org>
31995
31996         * m4/gl_list.m4: New file.
31997
31998 2006-07-17  Bruno Haible  <bruno@clisp.org>
31999
32000         * lib/gl_list.h: New file.
32001         * lib/gl_list.c: New file.
32002         * lib/gl_array_list.h: New file.
32003         * lib/gl_array_list.c: New file.
32004         * lib/gl_carray_list.h: New file.
32005         * lib/gl_carray_list.c: New file.
32006         * lib/gl_linked_list.h: New file.
32007         * lib/gl_linked_list.c: New file.
32008         * lib/gl_anylinked_list1.h: New file.
32009         * lib/gl_anylinked_list2.h: New file.
32010         * lib/gl_avltree_list.h: New file.
32011         * lib/gl_avltree_list.c: New file.
32012         * lib/gl_anyavltree_list1.h: New file.
32013         * lib/gl_anyavltree_list2.h: New file.
32014         * lib/gl_rbtree_list.h: New file.
32015         * lib/gl_rbtree_list.c: New file.
32016         * lib/gl_anyrbtree_list1.h: New file.
32017         * lib/gl_anyrbtree_list2.h: New file.
32018         * lib/gl_anytree_list1.h: New file.
32019         * lib/gl_anytree_list2.h: New file.
32020         * lib/gl_linkedhash_list.h: New file.
32021         * lib/gl_linkedhash_list.c: New file.
32022         * lib/gl_anyhash_list1.h: New file.
32023         * lib/gl_anyhash_list2.h: New file.
32024         * lib/gl_avltreehash_list.h: New file.
32025         * lib/gl_avltreehash_list.c: New file.
32026         * lib/gl_rbtreehash_list.h: New file.
32027         * lib/gl_rbtreehash_list.c: New file.
32028         * lib/gl_anytreehash_list1.h: New file.
32029         * lib/gl_anytreehash_list2.h: New file.
32030
32031         * lib/gl_oset.h: New file.
32032         * lib/gl_oset.c: New file.
32033         * lib/gl_array_oset.h: New file.
32034         * lib/gl_array_oset.c: New file.
32035         * lib/gl_avltree_oset.h: New file.
32036         * lib/gl_avltree_oset.c: New file.
32037         * lib/gl_rbtree_oset.h: New file.
32038         * lib/gl_rbtree_oset.c: New file.
32039         * lib/gl_anytree_oset.h: New file.
32040
32041 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32042
32043         * m4/mkancesdirs.m4: New file.
32044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
32045         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
32046         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
32047         it.
32048
32049 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
32052         * lib/mkancesdirs.h: New files.
32053         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
32054         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
32055         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
32056         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
32057         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
32058         callers changed.  Revamp internals significantly, by not
32059         attempting to create directories that are temporarily more
32060         permissive than the final results.  Do not attempt to use
32061         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
32062         This removes some race conditions, fixes some bugs, and simplifies
32063         things.  Use new dirchownmod function to do owner and mode changes.
32064         * lib/mkdir-p.h: Likewise.
32065         * lib/modechange.c (octal_to_mode): New function.
32066         (struct mode_change): New member mentioned.
32067         (make_node_op_equals): New arg mentioned.  All callers changed.
32068         (mode_compile): Keep track of which mode bits the user has explicitly
32069         mentioned.
32070         (mode_adjust): New arg DIR, so that we implement the X op correctly.
32071         New arg PMODE_BITS, to keep track of which mode bits the user
32072         mentioned; it treats S_ISUID and S_ISGID speciall.
32073         All callers changed.
32074         * lib/modechange.h: Likewise.
32075
32076 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32077
32078         * MODULES.html.sh: Add mkancestors.
32079         * modules/mkancesdirs: New module.
32080         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
32081         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
32082         The chdir-safer and afs files are now orphans; I'll remove them
32083         unless someone speaks up.
32084         Add lib/dirchownmod.c, lib/dirchownmod.h.
32085         (Depends-on): Remove alloca, chown, save-cwd, dirname.
32086         Add lchown, mkancesdirs.
32087         (Maintainer): Add self.
32088
32089 2006-07-15  Karl Berry  <karl@gnu.org>
32090
32091         * gnulib-tool: help message wording/arrangement.
32092
32093 2006-07-14  Simon Josefsson  <jas@extundo.com>
32094
32095         * doc/gnulib.texi (Libtool and Windows): New section.
32096
32097 2006-07-12  Simon Josefsson  <jas@extundo.com>
32098
32099         * modules/gendocs (License): Fix license, approved by Karl.
32100
32101 2006-07-12  Eric Blake  <ebb9@byu.net>
32102
32103         * MODULES.html.sh: Add gendocs.
32104
32105 2006-07-11  Eric Blake  <ebb9@byu.net>
32106
32107         * modules/fdl: New module, to install doc/fdl.texi.
32108         * MODULES.html.sh: Add new section for documentation modules.
32109         * gnulib-tool: Avoid space-tab.
32110         (--doc-base): New option, to manage files from doc.
32111
32112 2006-07-11  Eric Blake  <ebb9@byu.net>
32113
32114         * m4/absolute-header.m4: Fix comments to match recent change.
32115
32116 2006-07-11  Eric Blake  <ebb9@byu.net>
32117
32118         * gnulib-tool: List --doc-base before --tests-base.
32119
32120 2006-07-11  Derek R. Price  <derek@ximbiot.com>
32121
32122         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
32123
32124 2006-07-11  Bruno Haible  <bruno@clisp.org>
32125
32126         * README: Mention where to put documentation.
32127
32128 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32129
32130         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
32131
32132 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
32135         to stdint.m4.
32136
32137 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
32140         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
32141         "no/such/file/stdint.h" when there is no such file, so that
32142         the resulting C code can be parsed by dodgy compilers.
32143         Problems reported by Bob Proulx.
32144
32145 2006-07-10  Derek R. Price  <derek@ximbiot.com>
32146
32147         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
32148         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
32149         macros into the GNU _D_EXACT_NAMLEN.
32150         * lib/savedir.c:  Likewise.
32151         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
32152
32153 2006-07-10  Derek R. Price  <derek@ximbiot.com>
32154         and Paul Eggert  <eggert@cs.ucla.edu>
32155
32156         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
32157         * m4/savedir.m4:
32158         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
32159         macros into the GNU _D_EXACT_NAMLEN.
32160
32161 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32162
32163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
32164         around the absolute name, to work around a problem with the HP-UX
32165         11.23 native C compiler, reported by Bob Proulx.
32166
32167 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32168
32169         * doc/maintain.texi, make-stds.texi: Sync from
32170         <http://savannah.gnu.org/projects/gnustandards>.
32171
32172 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
32175
32176 2006-07-09  Jim Meyering  <jim@meyering.net>
32177
32178         * m4/glob.m4: Remove a doubled word in a comment.
32179
32180 2006-07-09  Jim Meyering  <jim@meyering.net>
32181
32182         * lib/argp-pv.c: Remove a doubled word in a comment.
32183         * lib/check-version.c (check_version): Likewise.
32184         * lib/javacomp.c (compile_java_class): Likewise.
32185
32186 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32187
32188         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
32189         for the benefit of people using Autoconf 2.60.  If you want to
32190         support older Autoconf versions you can copy m4/onceonly_2_57.m4
32191         (or m4/onceonly.m4, if pre-2.57) manually.
32192
32193 2006-07-08  Jim Meyering  <jim@meyering.net>
32194
32195         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
32196         comment.
32197         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
32198         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
32199         comment.
32200
32201 2006-07-08  Jim Meyering  <jim@meyering.net>
32202
32203         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
32204
32205 2006-07-07  Simon Josefsson  <jas@extundo.com>
32206
32207         * tests/test-crc.c: Change expected crc value, the test vector
32208         were probably computed using the old broken crc.c?
32209
32210 2006-07-06  Simon Josefsson  <jas@extundo.com>
32211
32212         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
32213         now the canonical place for the M4 file).
32214
32215         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
32216         from the sys_socket dependency now.
32217
32218         * modules/inet_pton (Files): Ditto.
32219
32220         * modules/inet_ntop (Files): Ditto.
32221
32222 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32223
32224         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
32225         not gl_PREREQ_GETUSERSHELL.
32226
32227 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32228
32229         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
32230         with only one argument, for Autoconf 2.60.
32231         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
32232         expand to nothing, so add a shell command to avoid syntax error.
32233         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32234
32235 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32236
32237         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
32238
32239 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32240
32241         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
32242         no longer needed.  Check for isblank decl.
32243         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
32244         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
32245         of existence.
32246
32247 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32248
32249         * lib/getloadavg.c: Use __VMS, not VMS.
32250         * lib/getopt.c: Likewise.
32251         * lib/getpagesize.h: Likewise.
32252         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
32253         and probably does not work.
32254
32255 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32256
32257         * lib/.cppi-disable: Add wcwidth.
32258         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
32259         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
32260         (ISGRAPH): Remove.  All uses changed to isgraph.
32261         (FOLD) [!defined _LIBC]: Remove special case.
32262         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
32263         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
32264         HAVE_ISBLANK.
32265         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
32266         case.
32267
32268 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32269
32270         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
32271         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
32272         brackets.  Other minor changes to suppress some compiler
32273         warnings.
32274
32275 2006-07-06  Derek R. Price  <derek@ximbiot.com>
32276         and Paul Eggert  <eggert@cs.ucla.edu>
32277
32278         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
32279         of invoking obsolescent AC_HEADER_DIRENT macro.
32280         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
32281         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
32282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32284         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
32285         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32286         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
32287         * m4/readdir.m4: Remove; no longer needed.
32288
32289 2006-07-06  Derek R. Price  <derek@ximbiot.com>
32290         and Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
32293         Don't worry about this obsolete case any more.
32294         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
32295         directories.
32296         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
32297         worry about this obsolete case any more.
32298         * lib/fts.c: Likewise.
32299         * lib/getcwd.c: Likewise.
32300         * lib/glob.h: Likewise.
32301         * lib/savedir.c: Likewise.
32302
32303 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32304
32305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
32306         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
32307         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
32308         needed.
32309         All uses removed.
32310         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32311         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
32312         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
32313         needed.
32314         * m4/getdate.m4 (gl_GETDATE): Likewise.
32315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
32316         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
32317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
32318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32319         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
32320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32321         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
32322         needed.
32323
32324 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32325
32326         * lib/memcasecmp.c: Include <limits.h>.
32327         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
32328         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
32329         Don't assume isdigit succeeds only on '0' through '9'.
32330
32331 2006-07-05  Eric Blake  <ebb9@byu.net>
32332
32333         * modules/getaddrinfo (Depends-on): Add snprintf.
32334
32335 2006-07-05  Eric Blake  <ebb9@byu.net>
32336
32337         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
32338         to avoid 'header present but could not be compiled' on cygwin.
32339
32340 2006-07-05  Eric Blake  <ebb9@byu.net>
32341
32342         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
32343         missing from netdb.h.
32344         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
32345
32346 2006-07-05  Derek R. Price  <derek@ximbiot.com>
32347
32348         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
32349         no longer needed.
32350         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
32351         * m4/getdate.m4 (gl_GETDATE): Likewise.
32352         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
32353         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
32354         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
32355         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
32356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32357
32358 2006-07-05  Derek R. Price  <derek@ximbiot.com>
32359
32360         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
32361         All uses of is_space replaced by isspace.
32362         * lib/exit.h: Don't talk about STDC_HEADERS.
32363         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
32364         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
32365         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
32366         replaced by isprint etc.
32367         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
32368         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32369         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
32370         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
32371         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
32372         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
32373
32374 2006-07-05  Bruno Haible  <bruno@clisp.org>
32375
32376         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
32377         the function exists, before testing against AIX.
32378         Reported by Martin Lambers <marlam@marlam.de>.
32379
32380 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32381
32382         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
32383         From Mark D. Baushke.
32384
32385 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32386
32387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
32388         to the absolute name, not just one, to bypass Sun C 5.8's
32389         "warning: #include of /usr/include/... may be non-portable".
32390
32391 2006-07-04  Eric Blake  <ebb9@byu.net>
32392
32393         * modules/dirname-tests: New test module.
32394         * tests/test-dirname.c: New file, replacing dirname.c
32395         TEST_DIRNAME section that was recently deleted.
32396
32397 2006-07-04  Bruno Haible  <bruno@clisp.org>
32398
32399         Assume ANSI C header files and <ctype.h> functions.
32400         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
32401         (mbsnwidth): Use isprint, iscntrl instead.
32402
32403 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32404
32405         Merge from coreutils.
32406         * MODULES.html.sh: Add xstrtold.
32407         * modules/xstrtold: New file.
32408         * modules/cycle-check (Files): Add lib/same-inode.h.
32409         * modules/dirname (Files): Add m4/double-slash-root.m4.
32410         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
32411         * modules/mkdir-p (Files): Add lib/same-inode.h.
32412         * modules/same (Files): Add lib/same-inode.h.
32413
32414 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32415
32416         * m4/absolute-header.m4: Renamed from full-header-path.m4.
32417         This is to keep the terminology clean; POSIX talks about
32418         "absolute pathnames", not "full pathnames", but the GNU
32419         Coding Standards say to use "path" for something else;
32420         so use "absolute" to keep both sides happy.
32421         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
32422         Set gl_absolute_header, not gl_full_header_path.
32423         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
32424         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
32425         All uses changed.
32426
32427         Merge from coreutils.
32428
32429         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32430
32431         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
32432         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
32433         want to require the building of c-strtod.o.
32434         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
32435         needs -lm directly.
32436         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
32437
32438         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32439
32440         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
32441         --as-needed option if available.  Problem reported by Albert Chin in
32442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
32443         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
32444         cc merely issues a bunch of annoying warnings for --as-needed
32445         (this problem was reported by Bob Proulx).  Also, try linking with
32446         -lm to detect a bug in binutils 2.16 (this problem was reported
32447         by Ralf Wildenhues).
32448
32449         2006-06-18  Jim Meyering  <jim@meyering.net>
32450
32451         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
32452         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
32453         macro.
32454         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
32455         also check for glibc-2.4's abort-inducing bug.
32456
32457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
32458         Low-probability clean-up should be to use rmdir to get rid of
32459         the just-created directory, not unlink.
32460
32461         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
32462         configure fail, and request a bug report to inform us about it.
32463         Add a comment that, barring reports to the contrary, in 2007 we'll
32464         assume ftruncate is universally available.
32465
32466         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32467
32468         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
32469
32470         2006-03-12  Jim Meyering  <jim@meyering.net>
32471
32472         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
32473         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
32474         * m4/same.m4 (gl_SAME): Likewise.
32475         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
32476
32477         2006-03-11  Eric Blake  <ebb9@byu.net>
32478
32479         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
32480         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
32481         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
32482         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
32483
32484 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
32487         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
32488         reported by Mark D. Baushke, one in
32489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
32490
32491         Merge from coreutils.
32492
32493         * lib/.cppi-disable: Add stdint_.h.
32494         * lib/.cvsignore: Add stdint.h.
32495
32496         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
32499         both double and long double versions.
32500         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
32501         * lib/xstrtold.c: New file.
32502         * lib/xstrtod.h (xstrtold): New decl.
32503
32504         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * lib/filemode.c (setst): Remove.
32507         (strmode): Rewrite to avoid setst.  This makes the code shorter,
32508         (arguably) clearer, and the generated code is a bit smaller on my
32509         Debian GNU/Linux stable x86 host.
32510
32511         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         * lib/filemode.c: Include "filemode.h" first, to test the interface.
32514         Assume that filemode.h includes sys/types.h and sys/stat.h.
32515         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
32516         (ftypelet): Reorder to put common cases first, for efficiency.
32517         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
32518         to do 'M'.
32519         (strmode): Renamed from mode_string, and now stores 12 bytes instead
32520         of 10, for compatibility with FreeBSD.  All callers changed.
32521         (filemodestring): Now stores 12 bytes instead of 10, and sets file
32522         types that can't be deduced solely from st_mode.  First arg is now a
32523         const pointer.
32524         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
32525         (strmode): Renamed from mode_string.
32526         (filemodestring): New decl.
32527         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
32528         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
32529         needed.
32530         (S_ISPORT, S_ISWHT): New macros, if not already defined.
32531
32532         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32533
32534         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
32535         fsusage.h now does that.  Include fsusage.h first, to test interface.
32536         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
32537         at most one method (the old code could have generated decls that
32538         didn't conform to C89, not that this was ever exercised).
32539         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
32540
32541         2006-03-19  Jim Meyering  <jim@meyering.net>
32542
32543         Work even in a chroot where d_ino values for entries in "/"
32544         don't match the stat.st_ino values for the same names.
32545         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
32546         number, iterate through all entries again, using lstat instead.
32547         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
32548         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
32549
32550         * lib/getcwd.c (__getcwd): Clarify a comment.
32551         Use memcpy in place of a call to strcpy.
32552
32553         2006-03-12  Jim Meyering  <jim@meyering.net>
32554
32555         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
32556         matches that of the current directory (which we're about to chdir ".."
32557         out of), then save the dev-ino of the parent, instead.
32558
32559         * lib/same-inode.h (SAME_INODE): New file/macro.
32560         * lib/chdir-safer.c (SAME_INODE): Remove definition.
32561         Include "same-inode.h", instead.
32562         * lib/same.c: Likewise.
32563         * lib/cycle-check.h: Include "same-inode.h".
32564         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
32565         * lib/cycle-check.c (SAME_INODE): Remove definition.
32566         * lib/root-dev-ino.h: Include "same-inode.h".
32567
32568         2006-03-11  Eric Blake  <ebb9@byu.net>
32569
32570         * lib/same.c (same_name): s/base_name/last_component/
32571         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
32572         * lib/filenamecat.c (file_name_concat): Likewise.
32573
32574         2006-03-11  Eric Blake  <ebb9@byu.net>,
32575                     Paul Eggert  <eggert@cs.ucla.edu>
32576
32577         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
32578         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
32579         drive prefix.
32580         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
32581         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
32582         (last_component): New method.
32583         * lib/dirname.c (dir_len): Determine when drive letters need a
32584         subsequent slash.  Preserve // when it is special.
32585         (dir_name): Don't append dot when drive letter is absolute.
32586         [TEST_DIRNAME]: Move into a full-blown gnulib test.
32587         * lib/basename.c (base_name): New semantics - malloc the result.
32588         Preserve // when it is special.  Preserve relative files that look
32589         like drive letters.
32590         (base_len): Preserve // when it is special.
32591         (last_component): New method, similar to old base_name semantics.
32592         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
32593         base_name.  Strip redundant slashes from ///.
32594
32595 2006-07-03  Jim Meyering  <jim@meyering.net>
32596
32597         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
32598         macro is used before the first cycle_check call.
32599
32600 2006-07-03  Eric Blake  <ebb9@byu.net>
32601
32602         * modules/dirname (Depends-on): Add xstrndup.
32603
32604 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32605
32606         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
32607         test cases, so that config.log is a bit easier to follow.
32608
32609 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32610
32611         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
32612         both are 64 bits, since this seems to be the tradition, and this
32613         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
32614         we ever run into a host that prefers long long to long in this
32615         case, we'll need another configure-time test.  Problem reported by
32616         Jim Meyering.
32617
32618 2006-07-02  Eric Blake  <ebb9@byu.net>
32619
32620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
32621
32622 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32623
32624         * modules/inttypes (Depends-on): No longer depends on stdint.
32625         * modules/stdint (Description): Say more about assumptions.
32626         Say that the fast types might differ.  Say macros are used.
32627         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
32628         (Makefile.am): Revise list of substituted symbols to match
32629         new stdint.m4.
32630         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
32631         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
32632         * tests/test-stdint.c (verify_same_types)
32633         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
32634         the code conforms to C99/C89.
32635         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
32636         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
32637
32638 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32639
32640         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
32641         but fix a bug, by requiring at least 64 bits.
32642         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
32643         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
32644         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
32645         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
32646
32647         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
32648         changes.  Make 2.59 a prerequisite.  Check and substitute for
32649         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
32650         inttypes.h.  Do not use special include files; just use the
32651         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
32652         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
32653         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
32654         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
32655         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
32656         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
32657         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
32658         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
32659         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
32660         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
32661         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
32662         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
32663         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
32664         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
32665         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
32666         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
32667         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
32668         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
32669         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
32670         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
32671         WINT_MAX.  Check for C99 conformance more strictly, by detecting
32672         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
32673         not check for things that C99 does not require, e.g., int8_t.  If
32674         a test isn't needed unless <stdint.h> isn't working, and is
32675         unlikely to be needed for any other reason, then don't do it
32676         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
32677         size_t, since we assume C89 freestanding at least.  Do not check
32678         for sig_atomic_t, wchar_t, or wint_t, since the code now does
32679         the right thing even if the types are not defined.  Instead use:
32680         (gl_STDINT_TYPE_PROPERTIES): New macro.
32681         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
32682         testing whether <sys/types.h> clashes, as Autoconf does this for
32683         us now.  All uses removed.
32684         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
32685         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
32686         (gl_CHECK_TYPE_SAME):
32687         Remove; no longer needed.
32688         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
32689         exists, since we'll return 0 anyway in that case.
32690         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
32691
32692 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32693
32694         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
32695         possible collision with system files.
32696         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
32697         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
32698         WCHAR_MIN and WCHAR_MAX in this case.
32699         (<stddef.h>): Do not include; no longer needed.
32700         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
32701         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
32702         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
32703         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
32704         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
32705         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
32706         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
32707         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
32708         !defined(__c99))]: Include in this case too, since it's harmless
32709         now.
32710         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
32711         dangerous to do so.
32712         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
32713         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
32714         (_STDINT_MIN, _STDINT_MAX): New macros.
32715         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
32716         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
32717         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
32718         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
32719         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
32720         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
32721         macros, not typedefs; this simplifies things quite a bit.
32722         Use long int for all types narrower than int64_t.
32723         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
32724         Define in terms of long long int or int64_t or long int,
32725         not int64_t or int32_t.  This saves some compile-time testing.
32726         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
32727         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
32728         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
32729         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
32730         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
32731         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
32732         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
32733         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
32734         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
32735         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
32736         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32737         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32738         undef any previous version and define our own version, for
32739         simplicity and consistency with the new macros for types.
32740         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32741         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32742         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
32743         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
32744         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
32745         @WINT_T_SUFFIX@ to keep things simple here.
32746         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
32747         Simplify by assuming typical 8/16/32/64 host, since we're
32748         already doing that elsewhere anyway.
32749         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
32750         and assume long long int is 64 bits if available.  This
32751         speeds up 'configure'.
32752
32753 2006-07-01  Eric Blake  <ebb9@byu.net>
32754
32755         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
32756         Reported by Andreas Buening.
32757
32758 2006-07-01  Eric Blake  <ebb9@byu.net>
32759
32760         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
32761
32762 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32763
32764         * lib/getaddrinfo.c: fixed typo
32765
32766 2006-06-29  Jim Meyering  <jim@meyering.net>
32767
32768         * modules/strftime (Maintainer): Add my name, since with the
32769         FPRINTFTIME changes strftime.c has forked from glibc.
32770
32771 2006-06-29  Eric Blake  <ebb9@byu.net>
32772
32773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
32774
32775 2006-06-29  Eric Blake  <ebb9@byu.net>
32776
32777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
32778
32779 2006-06-29  Eric Blake  <ebb9@byu.net>
32780
32781         * lib/stat_.h: New file.
32782
32783 2006-06-29  Eric Blake  <ebb9@byu.net>
32784
32785         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
32786         unused static function.
32787
32788 2006-06-29  Eric Blake  <ebb9@byu.net>
32789
32790         * doc/functions.texi (Function Portability): Document missing lstat
32791         on mingw.
32792
32793 2006-06-29  Eric Blake  <ebb9@byu.net>
32794
32795         * MODULES.html.sh: Add sys_stat.
32796         * modules/sys_stat: New module.
32797         * modules/mkstemp (Depends-on): Add sys_stat.
32798
32799 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32800
32801         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
32802
32803 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32804
32805         * m4/c-bs-a.m4: Removed.
32806
32807 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32808
32809         * lib/strftime.c: Assume strftime() exists.
32810
32811 2006-06-29  Derek Price  <derek@ximbiot.com>
32812
32813         * modules/c-bs-a: Removed - \a is C89.
32814         * MODULES.html.sh: Remove c-bs-a.
32815
32816 2006-06-29  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/wcwidth (License): Change to LGPL.
32819
32820 2006-06-28  Simon Josefsson  <jas@extundo.com>
32821
32822         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
32823         on _WIN32.
32824
32825         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
32826         getnameinfo.
32827
32828 2006-06-28  Simon Josefsson  <jas@extundo.com>
32829
32830         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
32831
32832 2006-06-28  Simon Josefsson  <jas@extundo.com>
32833
32834         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
32835         functions there.  It will succeed on Windows XP, but on Windows
32836         2000 and (presumably) earlier, it will fail, and use the internal
32837         re-implementation.
32838         (use_win32_p): New function.
32839         (getaddrinfo): Use strtoul on servname, to support numeric ports.
32840         Support AI_NUMERICSERV to disable getservbyname.
32841         (getnameinfo): New function, only supports
32842         NI_NUMERICHOST|NI_NUMERICSERV for now.
32843
32844         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
32845         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
32846         getnameinfo.
32847
32848 2006-06-28  Eric Blake  <ebb9@byu.net>
32849
32850         * modules/wcwidth: New file.
32851         * modules/mbchar (Depends-on): Add wcwidth.
32852         * modules/mbswidth (Depends-on): Add wcwidth.
32853         * MODULES.html.sh: Add wcwidth.
32854
32855 2006-06-28  Eric Blake  <ebb9@byu.net>
32856
32857         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
32858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
32859
32860 2006-06-28  Eric Blake  <ebb9@byu.net>
32861
32862         * lib/xvasprintf.h: Fix comments.
32863
32864 2006-06-28  Eric Blake  <ebb9@byu.net>
32865
32866         * lib/mbchar.h (wcwidth): Include wcwidth.h.
32867         * lib/mbswidth.c (wcwidth): Move from here...
32868         * lib/wcwidth.h: ...to this new file.
32869
32870 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32871
32872         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
32873
32874         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
32875         it's obsolete.
32876         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
32877
32878 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32879
32880         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
32881         Autoconf 2.60 says this stuff was obsolete.
32882
32883 2006-06-28  Bruno Haible  <bruno@clisp.org>
32884
32885         * modules/wcwidth (Files): Add m4/wchar_t.m4.
32886
32887 2006-06-28  Bruno Haible  <bruno@clisp.org>
32888
32889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
32890         gt_TYPE_WCHAR_T.
32891
32892 2006-06-28  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
32895         declaration for wcwidth.
32896         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
32897
32898 2006-06-28  Bruno Haible  <bruno@clisp.org>
32899
32900         * lib/mkdtemp.c [MINGW]: Include <io.h>.
32901         (mkdir): Define using _mkdir.
32902
32903 2006-06-28  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/getaddrinfo.h: Fix POSIX URL.
32906         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
32907         _WIN32.
32908         (use_win32_p): Make static.
32909         (getaddrinfo): Reject service name if it is empty or does not consist
32910         solely of decimal digits, or if its value is > 65535.
32911         (getnameinfo): Remove useless casts.
32912
32913 2006-06-27  Simon Josefsson  <jas@extundo.com>
32914
32915         * modules/sys_select: New file, suggested by Bruno Haible, Paul
32916         Eggert and Martin Lambers.
32917
32918 2006-06-27  Simon Josefsson  <jas@extundo.com>
32919
32920         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32921         Eggert and Martin Lambers.
32922
32923 2006-06-27  Bruno Haible  <bruno@clisp.org>
32924
32925         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32926         result to 0, not to empty.
32927         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32928
32929 2006-06-27  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32932
32933 2006-06-26  Simon Josefsson  <jas@extundo.com>
32934
32935         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32936         present.
32937
32938 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32939
32940         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32941         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
32942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32943
32944 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
32945
32946         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32947
32948 2006-06-26  Bruno Haible  <bruno@clisp.org>
32949
32950         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32951
32952 2006-06-26  Bruno Haible  <bruno@clisp.org>
32953
32954         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32955
32956 2006-06-26  Bruno Haible  <bruno@clisp.org>
32957
32958         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32959         SGI C compiler in pre-C99 mode.
32960         Suggested by Mark D. Baushke and Larry Jones.
32961
32962 2006-06-26  Bruno Haible  <bruno@clisp.org>
32963
32964         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32965         WCHAR_MAX.
32966         Reported by Mark D. Baushke and Larry Jones.
32967
32968 2006-06-26  Bruno Haible  <bruno@clisp.org>
32969
32970         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32971         in pre-C99 mode.
32972         Suggested by Mark D. Baushke and Larry Jones.
32973
32974 2006-06-23  Simon Josefsson  <jas@extundo.com>
32975             Bruno Haible  <bruno@clisp.org>
32976
32977         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32978         Emit mostlyclean-local rule.
32979         (func_emit_tests_Makefile_am): Likewise.
32980         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32981
32982 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32983
32984         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32985
32986 2006-06-23  Bruno Haible  <bruno@clisp.org>
32987
32988         * tests/test-stdint.c: Update to match ISO C 99 Technical
32989         Corrigendum 1.
32990
32991 2006-06-23  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32994
32995 2006-06-23  Bruno Haible  <bruno@clisp.org>
32996
32997         * lib/stdint_.h: Treat IRIX like OpenBSD.
32998
32999 2006-06-23  Bruno Haible  <bruno@clisp.org>
33000
33001         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
33002         ISO C 99 Technical Corrigendum 1.
33003
33004 2006-06-22  Simon Josefsson  <jas@extundo.com>
33005
33006         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
33007         MinGW.
33008
33009 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33010
33011         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
33012         needed.  Some compiler complained about some of them.  Problem reported
33013         by Larry Jones in
33014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
33015
33016 2006-06-21  Simon Josefsson  <jas@extundo.com>
33017
33018         * tests/test-getaddrinfo.c: New file.
33019
33020         * modules/getaddrinfo-tests: New file.
33021
33022         * MODULES.html.sh: Add inet_pton.
33023
33024         * modules/inet_pton: New file.
33025
33026 2006-06-21  Simon Josefsson  <jas@extundo.com>
33027
33028         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
33029         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
33030         of using the (limited) gnulib implementation on Windows XP.
33031
33032         * m4/inet_pton.m4: New file.
33033
33034 2006-06-21  Simon Josefsson  <jas@extundo.com>
33035
33036         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
33037         variable.
33038
33039         * lib/socket_.h: Don't define WINVER.
33040
33041         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
33042         slightly modified to work in gnulib.
33043
33044 2006-06-21  Simon Josefsson  <jas@extundo.com>
33045
33046         * doc/gnulib.texi (Windows sockets): Add.
33047
33048 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33049
33050         * lib/read-file.c (fread_file): Start with buffer allocation of
33051         0 bytes rather than 1 byte; this simplifies the code.
33052         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
33053         code to free buffer and save/restore errno.
33054         (internal_read_file): Remove unused local.
33055
33056 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33057
33058         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
33059         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
33060         Problem reported by Denis Excoffier in
33061         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
33062
33063 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33064
33065         * modules/sys_socket, modules/socklen: Include sys/types since
33066         FreeBSD 4.x's sys/socket.h needs it.
33067
33068 2006-06-19  Simon Josefsson  <jas@extundo.com>
33069
33070         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
33071
33072 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
33073
33074         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
33075
33076 2006-06-19  Bruno Haible  <bruno@clisp.org>
33077
33078         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
33079         and FULL_PATH_INTTYPES_H in angle brackets.
33080         Reported by Mark D. Baushke <mdb@gnu.org>.
33081
33082 2006-06-17  Eric Blake  <ebb9@byu.net>
33083
33084         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
33085         errno.
33086
33087 2006-06-17  Bruno Haible  <bruno@clisp.org>
33088
33089         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
33090         <sys/inttypes.h>.
33091
33092 2006-06-17  Bruno Haible  <bruno@clisp.org>
33093
33094         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
33095         whether errno is declared. Assume <errno.h> declares errno.
33096
33097 2006-06-17  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
33100
33101 2006-06-17  Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
33104         problem on Solaris 2.5.1.
33105
33106 2006-06-16  Eric Blake  <ebb9@byu.net>
33107
33108         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
33109         * lib/unicodeio.c [!defined errno]: Likewise.
33110         * lib/strtol.c [!defined errno]: Likewise.
33111         * lib/strtod.c [!defined errno]: Likewise.
33112
33113 2006-06-15  Eric Blake  <ebb9@byu.net>
33114
33115         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
33116
33117 2006-06-15  Eric Blake  <ebb9@byu.net>
33118
33119         * config/srclist.txt (ssize_t.m4): Lose sync.
33120
33121 2006-06-15  Bruno Haible  <bruno@clisp.org>
33122
33123         * modules/stdint (Files): Include m4/full-header-path.m4,
33124         m4/size_max.m4, m4/wchar_t.m4.
33125         (Makefile.am): Many more substitutions.
33126         * modules/stdint-tests: New file.
33127         * tests/test-stdint.c: New file.
33128
33129 2006-06-15  Bruno Haible  <bruno@clisp.org>
33130
33131         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
33132         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
33133         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
33134         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
33135         gl_CHECK_TYPE_SAME): New macros.
33136
33137 2006-06-15  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
33140
33141 2006-06-15  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/stdint_.h: Rewritten to be fully auto-configured.
33144         Fixes bug on HP-UX/IA64.
33145
33146 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33147
33148         * lib/getdate.y (__attribute__): Don't define if already defined.
33149         Problem reported by Larry Jones.
33150         * lib/utimens.c (__attribute__): Likewise.
33151
33152 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
33153
33154         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
33155         reported by Andreas Schwab.
33156
33157 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33158             Bruno Haible  <bruno@clisp.org>
33159
33160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
33161         check for the declaration of strnlen and a run test that exposes the
33162         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
33163         rpl_strndup.
33164
33165 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33166             Bruno Haible  <bruno@clisp.org>
33167
33168         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
33169
33170 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33171
33172         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
33173         compile test, for Tru64 4.0D.
33174
33175 2006-05-28  Karl Berry  <karl@gnu.org>
33176
33177         * config/srclist.txt (printf-args.c): lose sync.
33178
33179 2006-05-26  Martin Lambers  <marlam@marlam.de>
33180
33181         * lib/getpass.c: Updates the test for the native W32 API, and adds
33182         missing includes, thus fixing compilation warnings.
33183
33184 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33185
33186         * lib/exclude.c (exclude_fnmatch): New function.
33187         (excluded_file_name): Call exclude_fnmatch.
33188         * lib/exclude.h (excluded_file_name): New prototype
33189
33190 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
33191
33192         * lib/tempname.c (small_open, large_open): New macros.
33193         (__open, __open64) [!_LIBC]: Remove.
33194         (__gen_tempname): Use small_open and large_open instead of __open
33195         and __open64.  This fixes a portability bug on HP-UX 11.11i
33196         reported by Simon Wing-Tang in
33197         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
33198
33199 2006-05-24  Bruno Haible  <bruno@clisp.org>
33200
33201         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
33202         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
33203         Reported by Thorsten Maerz <torte@netztorte.de> via
33204         Aaron Stone <aaron@serendipity.cx>.
33205
33206 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33207
33208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
33209         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
33210         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
33211         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
33212         not really conditional on the cache.
33213         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
33214
33215 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33216
33217         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
33218         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
33219         (my_usleep): Don't mishandle maximum value.
33220
33221 2006-05-19  Jim Meyering  <jim@meyering.net>
33222
33223         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
33224
33225 2006-05-17  Bruno Haible  <bruno@clisp.org>
33226
33227         Cygwin portability.
33228         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
33229
33230 2006-05-17  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/stdint_.h: Fix recognition of Cygwin.
33233
33234 2006-05-15  Bruno Haible  <bruno@clisp.org>
33235
33236         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
33237         on libtool patch by Ralf Wildenhues.
33238
33239 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33240
33241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
33242         test for C99 conformance; (bool) 0.5 is an integer constant
33243         expression, but (bool) -0.5 is not.  Problem reported by Fedor
33244         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
33245
33246 2006-05-11  Simon Josefsson  <jas@extundo.com>
33247
33248         * m4/xvasprintf.m4: Fix obvious typo.
33249
33250 2006-05-11  Jim Meyering  <jim@meyering.net>
33251
33252         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
33253         James Lemley.
33254
33255 2006-05-10  Simon Josefsson  <jas@extundo.com>
33256
33257         * lib/md4.c: Typo fix, update copyright years.
33258         (K1, K2): Don't use L because it turn computations into 64-bit on
33259         64-bit platforms.
33260
33261 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33262
33263         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
33264         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
33265         unwanted sign propagation, e.g., on hosts with 64-bit int.
33266         There still are some problems with reeelly weird theoretical hosts
33267         (e.g., 33-bit int) but it's not worth worrying about now.
33268         * lib/sha1.c (rol): Likewise.
33269         (K1, K2, K3, K4): Remove unnecessary L suffix.
33270
33271 2006-05-10  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/des.c: Cast to avoid warnings.
33274
33275 2006-05-09  Bruno Haible  <bruno@clisp.org>
33276
33277         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
33278         (Depends-on): Depend also on xsize, stdarg.
33279         (configure.ac): Add gl_XVASPRINTF.
33280
33281 2006-05-09  Bruno Haible  <bruno@clisp.org>
33282
33283         * m4/xvasprintf.m4: New file.
33284
33285 2006-05-09  Bruno Haible  <bruno@clisp.org>
33286
33287         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
33288         (EOVERFLOW): Define fallback value.
33289         (xstrcat): New function.
33290         (xvasprintf): Recognize the special case of a string concatenation.
33291
33292 2006-05-08  Eric Blake  <ebb9@byu.net>
33293
33294         * gnulib-tool (func_version): Base copyright year on CVS date.
33295         (func_emit_copyright_notice): New function.
33296         (func_emit_lib_Makefile_am): Use it.
33297         (func_emit_tests_Makefile_am): Likewise.
33298         (func_import): Likewise.
33299
33300 2006-05-08  Bruno Haible  <bruno@clisp.org>
33301
33302         * modules/stdarg: New file.
33303         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
33304
33305 2006-05-08  Bruno Haible  <bruno@clisp.org>
33306
33307         * m4/stdarg.m4: New file, from GNU gettext.
33308
33309 2006-05-08  Bruno Haible  <bruno@clisp.org>
33310
33311         * config/srclist.txt (build-aux/config.rpath): different from latest
33312         release.
33313
33314 2006-05-08  Bruno Haible  <bruno@clisp.org>
33315
33316         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
33317
33318 2006-05-05  Jim Meyering  <jim@meyering.net>
33319
33320         * m4/warning.m4: New file, derived from bison's file by the same name.
33321
33322 2006-05-03  Bruno Haible  <bruno@clisp.org>
33323
33324         * lib/stdint_.h: Shorter URL.
33325         * lib/inttypes.h: Likewise.
33326
33327 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
33330
33331 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33332
33333         * lib/verify.h: Document the internals better.  Most of this change
33334         was written by Bruno Haible.
33335
33336 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33337
33338         * doc/verify.texi: New file, partly based on a proposal by
33339         Bruno Haible.
33340
33341 2006-05-02  Bruno Haible  <bruno@clisp.org>
33342
33343         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
33344         test from here...
33345         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
33346
33347 2006-04-29  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
33350         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
33351
33352 2006-04-29  Bruno Haible  <bruno@clisp.org>
33353
33354         * gnulib-tool: Make --update option actually work.
33355
33356 2006-04-29  Bruno Haible  <bruno@clisp.org>
33357
33358         * doc/gcd.texi: New file.
33359         * doc/gnulib.texi: Include it.
33360
33361 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
33362
33363         * lib/getdate.y (get_date): When adding relative date, start with the
33364         initial time, not with the result of the first mktime call.
33365
33366 2006-04-25  Bruno Haible  <bruno@clisp.org>
33367
33368         * gnulib-tool (func_import): Output the include directives in three
33369         blocks, sorted separately.
33370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33371
33372 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33373
33374         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
33375         to define main with arguments, for C++.  Reported by Eric Blake.
33376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33377         Prefer 'int main ()' to 'int main (void)', for C++.
33378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
33380         for 'main', for C99 and C++.
33381
33382 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33383
33384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
33385         Don't assume that exit status -1 is valid.
33386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33387         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33388         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33389         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
33390         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
33391         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
33392         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
33393         functions can be used without declaring them, or that you can
33394         exit with status -1.
33395         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33396
33397 2006-04-24  Karl Berry  <karl@gnu.org>
33398
33399         * config/srclist.txt (longdouble.m4): sync lost.
33400
33401 2006-04-24  Eric Blake  <ebb9@byu.net>
33402
33403         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
33404
33405 2006-04-24  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
33408         poll() implementation in AIX.
33409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33410
33411 2006-04-24  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
33414         assigned exactly once.
33415
33416 2006-04-23  Claudio Fontana  <claudio@gnu.org>
33417             Bruno Haible  <bruno@clisp.org>
33418
33419         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
33420         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
33421         for AM_CPPFLAGS.
33422
33423 2006-04-23  Bruno Haible  <bruno@clisp.org>
33424
33425         * modules/copy-file: Depend on unistd.
33426         * modules/execute: Likewise.
33427         * modules/fatal-signal: Likewise.
33428         * modules/findprog: Likewise.
33429         * modules/mkdtemp : Likewise.
33430         * modules/pipe: Likewise.
33431         * modules/wait-process: Likewise.
33432
33433 2006-04-23  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
33436         condition was already detected.
33437         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33438
33439 2006-04-23  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/copy-file.c: Include <unistd.h> unconditionally.
33442         * lib/execute.c: Likewise.
33443         * lib/fatal-signal.c: Likewise.
33444         * lib/findprog.c: Likewise.
33445         * lib/mkdtemp.c: Likewise.
33446         * lib/pipe.h: Likewise.
33447         * lib/pipe.c: Likewise.
33448         * lib/wait-process.h: Likewise.
33449
33450 2006-04-23  Bruno Haible  <bruno@clisp.org>
33451
33452         * gnulib-tool (func_usage): Fix --import description. Document
33453         --update.
33454         (func_import): Create temporary file in a temporary directory, if
33455         --dry-run is specified. Silence errors from 'grep' when there are no
33456         m4 files in $m4dir.
33457         (func_create_testdir): Silence errors from 'grep' when there are no
33458         m4 files in $m4dir.
33459         Reported by Karl Berry <karl@freefriends.org>.
33460
33461 2006-04-20  Bruno Haible  <bruno@clisp.org>
33462
33463         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
33464         one argument, so that the code will be portable to Autoconf 2.60.
33465         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
33466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33467         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
33468
33469 2006-04-19  Derek Price  <derek@ximbiot.com>
33470             Eric Blake  <ebb9@byu.net>
33471
33472         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
33473         rather than "/full/path.h".  Update comment to match.  Shorten &
33474         generalize m4_translit call via AS_TR_CPP.
33475
33476 2006-04-19  Derek Price  <derek@ximbiot.com>
33477             Eric Blake  <ebb9@byu.net>
33478
33479         * lib/inttypes.h: Correct grammar in comment.
33480
33481 2006-04-18  Derek Price  <derek@ximbiot.com>
33482             Paul Eggert  <eggert@cs.ucla.edu>
33483
33484         * modules/inttypes: New file.
33485         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
33486
33487 2006-04-18  Derek Price  <derek@ximbiot.com>
33488             Paul Eggert  <eggert@cs.ucla.edu>
33489
33490         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
33491         New files.
33492
33493 2006-04-18  Derek Price  <derek@ximbiot.com>
33494             Paul Eggert  <eggert@cs.ucla.edu>
33495
33496         * lib/inttypes.h: New file.
33497         * lib/strtoimax.c: Assume <inttypes.h>.
33498
33499 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
33500
33501         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
33502         isn't mounted.  Problem reported by Kir Kolyshkin.
33503
33504 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33505
33506         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
33507         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
33508         Derek R. Price.
33509         * lib/regex.h (RE_DUP_MAX): Update comment to match current
33510         implementation.
33511
33512 2006-04-12  Eric Blake  <ebb9@byu.net>
33513
33514         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
33515         is now done automatically by the corresponding Autoconf macro.
33516
33517 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
33518
33519         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
33520         time_r.h.
33521
33522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33523
33524         Merge regex changes from libc, removing some of our
33525         POSIX-conformance changes that were rejected and redoing them in a
33526         less-intrusive way.
33527
33528         * lib/regcomp.c (re_compile_internal, init_dfa):
33529         Length arg is now size_t, not Idx.  All uses changed.
33530         (peek_token): Forward decl now says internal_function.
33531         (__re_error_msgid, __re_error_msgid_idx):
33532         Now static rather than extern with attribute_hidden.
33533         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
33534         For some reason libc prefers K&R style defns for external functions.
33535         (regerror) [!defined _LIBC]: Likewise.
33536         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
33537         (seek_collating_symbol_entry, lookup_collation_sequence_value):
33538         (build_range_exp, build_collating_symbol):
33539         Use K&R-style defn.
33540         (re_compile_fastmap): Use '\0' to memset, not 0.
33541         (utf8_sb_map): Make the calculations more obvious.
33542         (init_dfa, parse_bracket_exp, build_charclass_op):
33543         Call calloc and cast result, as glibc does.
33544         (init_word_char, fetch_token, peek_token, peek_token_bracket):
33545         (build_range_exp, build_collating_symbol):
33546         Now internal functions.
33547
33548         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
33549
33550         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
33551         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
33552         Don't depend on VMS; depend on __VMS instead, for POSIX
33553         namespace cleanness.
33554         (regoff_t): Define to ssize_t, not long int.
33555
33556         Remove the REG_ macros named below.  Instead, make the old names
33557         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
33558         __USE_GNU_REGEX.
33559         (REG_BACKSLASH_ESCAPE_IN_LISTS):
33560         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
33561         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
33562         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
33563         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
33564         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
33565         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
33566         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
33567         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
33568         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
33569         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
33570         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
33571         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
33572         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
33573         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
33574         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
33575         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
33576         (REG_NREGS):
33577         Remove.  All uses replaced by the old RE_* names.
33578         (RE_BACKSLASH_ESCAPE_IN_LISTS):
33579         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
33580         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
33581         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
33582         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
33583         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
33584         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
33585         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
33586         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
33587         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
33588         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
33589         Don't bother having these macros be independent of each others'
33590         values, since they no longer exist in the POSIX name space.
33591
33592         Rename the following member names back to their old names,
33593         unless !__USE_GNU_REGEX.  All uses changed back.
33594         (buffer): Renamed from re_buffer.
33595         (allocated): Renamed from re_allocated.
33596         (used): Renamed from re_used.
33597         (syntax): Renamed from re_syntax.
33598         (fastmap): Renamed from re_fastmap.
33599         (translate): Renamed from re_translate.
33600         (can_be_null): Renamed from re_can_be_null.
33601         (regs_allocated): Renamed from re_regs_allocated.
33602         (fastmap_accurate): Renamed from re_fastmap_accurate.
33603         (no_sub): Renamed from re_no_sub.
33604         (not_bol): Renamed from re_not_bol.
33605         (not_eol): Renamed from re_not_eol.
33606         (newline_anchor): Renamed from re_newline_anchor.
33607         (num_regs): Renamed from rm_num_regs.
33608         (start): Renamed from rm_start.
33609         (end): Renamed from rm_end.
33610
33611         (free_state): Move up a bit.
33612
33613         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
33614         #define to be empty.
33615         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
33616         when that is what is intended.
33617         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
33618         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
33619         (MAX): New macro.
33620         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
33621         All uses changed back to re_malloc, etc.  It's now the caller's
33622         responsibility to check for overflow; all callers changed.
33623         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
33624         (re_x2nrealloc): Remove.
33625         (free_state): Remove decl.
33626
33627         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
33628         (re_set_registers, re_exec):
33629         Use K&R-style defn.
33630
33631         2006-01-31  Roland McGrath  <roland@redhat.com>
33632
33633         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
33634         Reported by Mike Frysinger <vapier@gentoo.org>.
33635
33636         2006-01-15  Andreas Jaeger  <aj@suse.de>
33637
33638         [BZ #1950]
33639         * lib/regex_internal.c (re_string_reconstruct): Adjust for
33640         build_wcs_upper_buffer change.
33641         (build_wcs_upper_buffer): Change return type.
33642
33643         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
33644
33645         * lib/regex_internal.h: Include <stdint.h> if available.
33646
33647         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
33648
33649         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
33650
33651         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
33652
33653         * lib/regcomp.c: Adjust for changed secondary hash function.
33654
33655         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
33656
33657         * lib/regex.h: Pretty printing.
33658         Clean up namespace a bit.
33659
33660         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
33661
33662         * lib/regexec.c (update_cur_sifted_state, check_arrival,
33663         check_arrival_add_next_nodes): Avoid using uninitialized variable.
33664
33665         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33666                     Ulrich Drepper  <drepper@redhat.com>
33667
33668         [BZ #1302]
33669         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
33670         changed.
33671         (bitset_word_t): Renamed from bitset_word.  All uses changed.
33672
33673         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
33674
33675         [BZ #281]
33676         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
33677         * lib/regcomp.c: Remove unnecessary uses of
33678         unsigned RE_TRANSLATE_TYPE.
33679         * lib/regex_internal.h: Likewise.
33680         * lib/regex_internal.c: Likewise.
33681         * lib/regexec.c: Likewise.
33682         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
33683
33684         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
33685
33686         * lib/regexec.c (find_recover_state): Remove unnecessary
33687         initialization.
33688         (transit_state_bkref): Make DFA a const pointer.
33689         (get_subexp): Likewise.
33690         (check_arrival): Likewise.
33691         (update_cur_sifted_state): Likewise.
33692         (re_search_internal): Likewise.
33693         (prune_impossible_nodes): Likewise.
33694         (acquire_init_state_context): Likewise.
33695         (proceed_next_node): Likewise.
33696         (set_regs): Likewise.
33697         (free_fail_stack_return): Likewise.
33698         (check_arrival_expand_ecl): Mark DFA parameter as const.
33699         (check_arrival_expand_ecl_sub): Likewise.
33700         (check_subexp_limits): Likewise.
33701         (sub_epsilon_src_nodes):  Likewise.
33702         (add_epsilon_src_nodes):  Likewise.
33703         (merge_state_array): Likewise.
33704         (update_regs): Likewise.
33705         (build_trtable): Likewise.
33706         (sift_states_backward): Mark MCTX parameter as const.
33707         (build_sifted_states): Likewise.
33708         (update_cur_sifted_state): Likewise.
33709         (sift_states_mkref): Likewise.
33710         (check_arrival_expand_ecl): Mark eclosure as const.
33711         (check_dst_limits_calc_pos_1): Likewise.
33712         * lib/regex_internal.h (re_match_context_t): Make dfa a const
33713         pointer.
33714
33715         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
33716
33717         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
33718         (transit_state_sb): Likewise.
33719         (transit_state_mb): Likewise.
33720         (sift_states_iter_mb): Likewise.
33721         (check_arrival_add_next_nodes): Likewise.
33722         (check_node_accept_bytes): Change first parameter to pointer-to-const.
33723         [_LIBC] (re_search_2_stub): Use mempcpy.
33724
33725         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
33726         mbrtowc for very simple UTF-8 case.
33727
33728         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
33729         a pointer-to-const.
33730         (re_acquire_state_context): Likewise.
33731         * lib/regex_internal.h: Adjust prototypes.
33732
33733         * lib/regex.c: Prevent using C++ compilers.
33734
33735         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
33736         (re_acquire_state_context): Likewise.
33737
33738 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33739
33740         * modules/regex (Depends-on): Add ssize_t.
33741
33742 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33743
33744         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
33745         translation table.
33746
33747 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33748
33749         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
33750
33751 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
33752             Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
33755         <sys/types.h> and <inttypes.h>.
33756
33757 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33758
33759         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
33760         `__error_t_defined', so argp.h will not typedef the former.
33761
33762 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33763
33764         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
33765         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
33766         glibc names.  Even if glibc is changed to conform to POSIX, the
33767         traditional names will be available anyway, since regex depends on
33768         the extensions module.  Also, fix a longstanding typo in the
33769         implementation of Spencer ERE test #75 from grep 2.3.  Problems
33770         reported by Emanuele Giaquinta.  Also, change sense of cached
33771         variable, so that the message makes sense.
33772
33773 2006-03-24  Simon Josefsson  <jas@extundo.com>
33774
33775         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
33776         including some doc fixes.
33777         (base64_encode_alloc): Fix +1 bug on allocation failures.
33778
33779 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33780
33781         * lib/base64.c (base64_encode): Do not read past end of array with
33782         unsanitized input on systems with CHAR_BIT > 8.
33783
33784 2006-03-24  Eric Blake  <ebb9@byu.net>
33785
33786         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
33787
33788 2006-03-22  Karl Berry  <karl@gnu.org>
33789
33790         * config/srclist.txt (*setenv.[ch]): get from coreutils.
33791         * config/srclistvars.sh (COREUTILS): new var.
33792
33793 2006-03-17  Jim Meyering  <jim@meyering.net>
33794
33795         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
33796         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
33797
33798 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33799
33800         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
33801         no longer needs it.  Instead, check that regoff_t is as least
33802         as wide as ptrdiff_t.
33803
33804         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
33805         so that our regex.h stays compatible with the installed regex.
33806         This is helpful for installers who configure --without-included-regex.
33807         Problem reported by Emanuele Giaquinta.
33808
33809 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33810
33811         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
33812         Typedef to long int, not to off_, as POSIX will likely change
33813         in that direction.
33814
33815 2006-03-15  Eric Blake  <ebb9@byu.net>
33816
33817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
33818
33819 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33820
33821         * lib/argp-help.c (validate_uparams): Fix typo
33822         * lib/argp-parse.c (argp_default_options): Consistently begin help
33823         messages with a lowercase letter.
33824
33825 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
33826
33827         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
33828         overrun buffers and shouldn't be used (much as gets shouldn't be
33829         used).
33830         * lib/time_r.c (asctime_r, ctime_r): Likewise.
33831
33832 2006-03-08  Simon Josefsson  <jas@extundo.com>
33833
33834         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
33835         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33836
33837 2006-03-08  Simon Josefsson  <jas@extundo.com>
33838
33839         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
33840         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33841
33842 2006-03-08  Simon Josefsson  <jas@extundo.com>
33843
33844         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
33845         signal that configure disabled the device.
33846
33847 2006-03-08  Simon Josefsson  <jas@extundo.com>
33848
33849         * build-aux/maint.mk: Fix refresh-po, to handle no translated
33850         languages.
33851
33852 2006-03-07  Simon Josefsson  <jas@extundo.com>
33853
33854         * modules/getopt (Depends-on): Add unistd.
33855
33856         * modules/unistd: New file.
33857
33858 2006-03-07  Simon Josefsson  <jas@extundo.com>
33859
33860         * modules/gc-random: New file.
33861
33862 2006-03-07  Simon Josefsson  <jas@extundo.com>
33863
33864         * m4/unistd_h.m4: New file.
33865
33866 2006-03-07  Simon Josefsson  <jas@extundo.com>
33867
33868         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
33869         test to be side-effect free by storing the result in the cache
33870         variable gl_cv_lib_readline, and moving the assignment of
33871         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
33872         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33873
33874 2006-03-07  Simon Josefsson  <jas@extundo.com>
33875
33876         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
33877         error on missing devices (the functions will return an error).
33878
33879         * m4/gc.m4: Move random stuff to gc-random.m4
33880
33881 2006-03-07  Simon Josefsson  <jas@extundo.com>
33882
33883         * lib/unistd_.h: New file.
33884
33885 2006-03-07  Simon Josefsson  <jas@extundo.com>
33886
33887         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
33888
33889 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33890
33891         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
33892         Problem reported by Juan Manuel Guerrero.
33893
33894 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33895
33896         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
33897         the unistd module.
33898         * lib/getlogin_r.c: Likewise.
33899         * lib/getlogin_r.h: Likewise.
33900         * lib/glob.c: Likewise.
33901         * lib/pagealign_alloc.c: Likewise.
33902         * lib/unistd_.h: Remove; no longer needed.
33903
33904 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33905
33906         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33907         Add unistd.
33908         * modules/c-stack (Depends-on): Add unistd.
33909         * modules/getlogin_r: Likewise.
33910         * modules/glob: Likewise.
33911         * modules/pagealign_alloc: Likewise.
33912         * modules/unistd (Files): Remove lib/unistd_.h.
33913         (EXTRA_DIST): Remove.
33914         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
33915         need unistd_.h.
33916         (MOSTLYCLEANFILES): Remove unistd.h-t.
33917
33918 2006-03-03  Simon Josefsson  <jas@extundo.com>
33919
33920         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33921
33922 2006-03-03  Simon Josefsson  <jas@extundo.com>
33923
33924         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33925         libidn and bison.
33926
33927 2006-03-03  Simon Josefsson  <jas@extundo.com>
33928
33929         * build-aux/maint.mk: Add indent target.
33930
33931 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
33932
33933         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33934         our replacement poll.h in any case, to avoid a differing
33935         declaration from a system header.  Seen on AIX.
33936
33937 2006-03-01  Simon Josefsson  <jas@extundo.com>
33938
33939         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33940         <kasal@ucw.cz>.
33941
33942 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33943
33944         * modules/gettime (Depends-on): Add extensions module.
33945         * modules/nanosleep (Depends-on): Likewise.
33946         * modules/settime (Depends-on): Likewise.
33947
33948 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33949
33950         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33951         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33952         pedantically.
33953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33954         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33955
33956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33957         not "==".  Reported by Ralf Wildenhues.
33958
33959 2006-03-01  Karl Berry  <karl@gnu.org>
33960
33961         * doc/Copyright/request-*: new files, synced from gnuorg.
33962
33963 2006-03-01  Karl Berry  <karl@gnu.org>
33964
33965         * config/srclist.txt (Copyright/*): new entries.
33966
33967 2006-02-28  Simon Josefsson  <jas@extundo.com>
33968
33969         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33970
33971 2006-02-27  Simon Josefsson  <jas@extundo.com>
33972
33973         * lib/base64.h: Indent #define's.  From Jim Meyering
33974         <jim@meyering.net>.
33975
33976 2006-02-27  Jim Meyering  <jim@meyering.net>
33977
33978         Revert the change of 2006-02-24, so these files can continue
33979         to be sync'd from gettext.
33980         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33981         of `config.h'.
33982
33983 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33984
33985         * modules/intprops: New file.
33986         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33987         Add intprops.
33988         * modules/getloadavg (Files): Remove lib/intprops.h.
33989         (Depends-on): Add intprops.
33990         * modules/human: Likewise.
33991         * modules/inttostr: Likewise.
33992         * modules/openat: Likewise.
33993         * modules/sig2str: Likewise.
33994         * modules/userspec: Likewise.
33995         * modules/utimecmp: Likewise.
33996         * modules/xnanosleep: Likewise.
33997         * modules/xstrtol: Likewise.
33998
33999 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
34000
34001         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
34002         * modules/lock-tests (TESTS): Use $(EXEEXT).
34003         * modules/tls-tests: Likewise.
34004         * modules/argp-tests: Likewise.
34005         (check_PROGRAMS): New var, replacing...
34006         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
34007
34008 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34009
34010         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
34011         `config.h'.
34012
34013 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34014
34015         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
34016
34017 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34018
34019         Sync from coreutils.
34020         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
34021         gl_CHDIR_SAFER.
34022
34023 2006-02-22  Jim Meyering  <jim@meyering.net>
34024
34025         Sync from coreutils.
34026         * m4/chdir-safer.m4: New file.
34027
34028 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34029
34030         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
34031         AT_FDCWD exceeds INT_MAX.
34032         * lib/openat.h (AT_FDCWD): Likewise.
34033
34034 2006-02-17  Eric Blake  <address@hidden>
34035
34036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
34037
34038 2006-02-16  Simon Josefsson  <jas@extundo.com>
34039
34040         * modules/getaddrinfo (Depends-on): Add sys_socket.
34041
34042 2006-02-15  Simon Josefsson  <jas@extundo.com>
34043
34044         * build-aux/maint.mk: Add dsyntax-check rule.
34045
34046 2006-02-15  Eric Blake  <ebb9@byu.net>
34047
34048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
34049         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
34050         'present but cannot compile' warnings on cygwin.
34051         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
34052         use ws2tcpip.h if sys/socket.h works.
34053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
34054         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
34055
34056 2006-02-14  Simon Josefsson  <jas@extundo.com>
34057
34058         * modules/maintainer-makefile (Files): Rename.
34059
34060         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
34061         and (the local) Makefile.cfg to maint-cfg.mk.
34062
34063         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
34064         to the latter.
34065
34066         * modules/maintainer-makefile: New module.
34067
34068         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
34069         severaly stripped to make it possible to build it up from scratch
34070         with reliable tests.
34071
34072         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
34073         fixes to permit overriding the default actions when configure and
34074         makefile are not available.
34075
34076 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34077
34078         Sync from coreutils.
34079         * modules/lstat (Depends-on): Don't depend on xalloc.
34080         (License): Change from GPL to LGPL, since this is now simply a
34081         replacement for a libc function.
34082
34083 2006-02-14  Jim Meyering  <jim@meyering.net>
34084
34085         Sync from coreutils.
34086
34087         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
34088         failure on deficient systems, and simplify gnulib lgpl dependencies.
34089         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
34090         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
34091
34092         * lib/xalloc-die.c: Remove unused definition of N_.
34093
34094 2006-02-14  Jim Meyering  <jim@meyering.net>
34095
34096         Sync from coreutils.
34097         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
34098         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
34099         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
34100         double-quote uses of that variable, to accommodate the rare case in
34101         which getmntent is available in none of the libraries checked.  This
34102         happens at least on FreeBSD 5.0.
34103
34104 2006-02-13  Simon Josefsson  <jas@extundo.com>
34105
34106         * gnulib-tool (Usage): Fix --import, from
34107         karl@freefriends.org (Karl Berry).
34108
34109 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
34110
34111         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
34112
34113 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
34114
34115         * lib/argp-namefrob.h: Restore changes accidentally lost during the
34116         "autoupdate" on 2005-12-12.
34117
34118 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34119
34120         * modules/closeout (Depends-on): Remove atexit.
34121
34122 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34123
34124         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
34125         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
34126
34127 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34128
34129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
34130         __EXTENSIONS__ if this causes compilation to fail.  Problem
34131         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
34132         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
34133
34134 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34135
34136         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
34137         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
34138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
34139         All uses changed.
34140
34141 2006-01-26  Simon Josefsson  <jas@extundo.com>
34142
34143         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
34144         prototype is visible on mingw32.
34145
34146         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
34147         for mingw32.
34148
34149         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
34150         mingw32).
34151
34152 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
34153
34154         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
34155         attempt to open for write; this always fails, at least on POSIX
34156         hosts.  This reinstates the 2006-01-09 change, which was
34157         inadvertently removed.
34158
34159 2006-01-26  Bruno Haible  <bruno@clisp.org>
34160
34161         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
34162         Reported by Paul Eggert.
34163
34164 2006-01-26  Bruno Haible  <bruno@clisp.org>
34165             Paul Eggert  <eggert@cs.ucla.edu>
34166
34167         * lib/stdbool_.h (_Bool)
34168         [(! (defined __cplusplus || defined __BEOS__)
34169           && !defined __GNUC__
34170           && !(defined __HP_cc || defined __xlc__
34171                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
34172                || defined __sgi))]:
34173         #define to signed char in these cases too; this simplifies
34174         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
34175         etc., separately) and makes it more conservative.
34176
34177 2006-01-25  Simon Josefsson  <jas@extundo.com>
34178
34179         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
34180         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
34181         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
34182
34183 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34184
34185         * lib/argp-namefrob.h: Bugfix. Remove stray #
34186
34187 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34188
34189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
34190         so that we test the test.
34191         Check for yet another HP-UX cc bug involving *bool |= bool.
34192
34193 2006-01-25  Karl Berry  <karl@gnu.org>
34194
34195         * config/srclist.txt (vasnprintf.c): sync lost.
34196
34197 2006-01-25  Jim Meyering  <jim@meyering.net>
34198
34199         Sync from the stable (b5) branch of coreutils:
34200
34201         * lib/fts.c (fts_children): Don't let close() clobber errno from
34202         failed fchdir().
34203
34204         * lib/fts.c (fts_stat): When following a symlink-to-directory,
34205         don't necessarily interpret stat-fails+lstat-succeeds as indicating
34206         a dangling symlink.  That can also happen at least for ELOOP.
34207         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
34208         FYI, this bug predates the inclusion of fts.c in coreutils.
34209
34210         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
34211         in their own block, so pre-c99 compilers don't object.
34212
34213         Avoid the double-free (first in fts_read, second in fts_close) that
34214         would occur when an `active' directory is made inaccessible (e.g.,
34215         via chmod a-x) during a traversal.
34216         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
34217         before returning.  Reproduce this failure by
34218         mkdir -p a/b; cd a; chmod a-x . b
34219         Reported by Stavros Passas.
34220
34221 2006-01-25  Jim Meyering  <jim@meyering.net>
34222
34223         * lib/fileblocks.c: Remove more useless parentheses.
34224         * lib/readutmp.h: Likewise.
34225
34226 2006-01-25  Bruno Haible  <bruno@clisp.org>
34227
34228         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
34229         warnings.
34230         Reported by Paul Eggert.
34231
34232 2006-01-25  Bruno Haible  <bruno@clisp.org>
34233
34234         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
34235         rid of a trap command. For Solaris sh.
34236         Reported by Mark D. Baushke <mdb@gnu.org>.
34237
34238 2006-01-24  Simon Josefsson  <jas@extundo.com>
34239
34240         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
34241         Bruno.
34242
34243 2006-01-24  Karl Berry  <karl@gnu.org>
34244
34245         * config/srclist.txt (argp-namefrob.h): sync lost.
34246
34247 2006-01-24  Jim Meyering  <jim@meyering.net>
34248
34249         * modules/openat (Files): Add lib/intprops.h.
34250         From Mark D. Baushke.
34251
34252 2006-01-24  Jim Meyering  <jim@meyering.net>
34253
34254         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
34255         Reported by Mark D. Baushke.
34256
34257 2006-01-24  Jim Meyering  <jim@meyering.net>
34258
34259         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
34260
34261 2006-01-24  Bruno Haible  <bruno@clisp.org>
34262
34263         * modules/strnlen (Maintainer): Change from glibc to all.
34264
34265 2006-01-24  Bruno Haible  <bruno@clisp.org>
34266
34267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
34268         Patch by Paul Eggert.
34269
34270 2006-01-24  Bruno Haible  <bruno@clisp.org>
34271
34272         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
34273         already has it.
34274         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
34275         2005-11-26.
34276
34277         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
34278         'signed char' to avoid problems with the built-in _Bool type.
34279         Reported by Paul Eggert on 2005-11-26.
34280
34281 2006-01-24  Bruno Haible  <bruno@clisp.org>
34282
34283         * gnulib-tool (func_import): Avoid constructing complicated sed
34284         expressions inside backquote.
34285         Report and solution by Mark D. Baushke <mdb@gnu.org>.
34286
34287 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
34288
34289         These changes imported from libc.
34290         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
34291         test and two separate function calls.
34292         * lib/strndup.c (__strndup): Add libc_hidden_def.
34293
34294 2006-01-23  Simon Josefsson  <jas@extundo.com>
34295
34296         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
34297         Remove the test_*_SOURCES variable: automake infers it by default.
34298         * modules/tls-tests: Likewise.
34299
34300 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34301
34302         Work around porting bugs reported by Dieter in
34303         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
34304         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
34305         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
34306         Include "getopt.h" first, to check interface.
34307         (getenv): Declare only if defined HAVE_DECL_GETENV &&
34308         !HAVE_DECL_GETENV.
34309         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
34310         (__strndup): Revert to K&R-style function dfns, the glibc style.
34311         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
34312         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
34313         Include strnlen.h first, to get prototype properly.
34314         (strnlen): Renamed from __strnlen.
34315         Remove weak alias.
34316
34317 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34318
34319         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
34320
34321 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34322
34323         * config/srclist.txt: Adjust to reflect glibc reorganization.
34324         This affects only comments.
34325
34326 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34327
34328          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
34329          Reported by Bruce Korb <bkorb@gnu.org>.
34330
34331 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34332
34333         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
34334         to pacify gcc -Wswitch-default.
34335
34336 2006-01-22  Bruno Haible  <bruno@clisp.org>
34337
34338         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
34339         temporary buffer for sprintf, take into account the precision also
34340         for 'd', 'i', 'u', 'o', 'x', 'X'.
34341
34342 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34343
34344         * modules/argp-tests: New module
34345         * tests/test-argp.c: New file
34346         * tests/test-argp-2.sh: New file
34347
34348 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34349
34350         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
34351         (__argp_base_name): Removed
34352         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
34353         typo.
34354         (__argp_base_name): Provide macro definition or extern declaration
34355         depending on the configuration
34356
34357 2006-01-20  Simon Josefsson  <jas@extundo.com>
34358
34359         * modules/inet_ntop (Depends-on): Depend on sys_socket.
34360
34361 2006-01-20  Simon Josefsson  <jas@extundo.com>
34362
34363         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
34364
34365 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34366
34367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
34368         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
34369         Suggested by Bruno Haible.
34370
34371 2006-01-20  Karl Berry  <karl@gnu.org>
34372
34373         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
34374         until changes propagate, I guess.
34375
34376 2006-01-19  Simon Josefsson  <jas@extundo.com>
34377
34378         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
34379
34380 2006-01-19  Simon Josefsson  <jas@extundo.com>
34381
34382         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
34383
34384 2006-01-19  Simon Josefsson  <jas@extundo.com>
34385
34386         * gnulib-tool: Set check_PROGRAMS.
34387
34388         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34389         modules/des-tests, modules/gc-arcfour-tests,
34390         modules/gc-arctwo-tests, modules/gc-des-tests,
34391         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34392         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34393         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34394         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34395         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34396         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
34397         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
34398         test_*_SOURCES.
34399
34400 2006-01-18  Simon Josefsson  <jas@extundo.com>
34401
34402         * modules/socklen (Depends-on): Depend on sys_socket.
34403
34404 2006-01-18  Simon Josefsson  <jas@extundo.com>
34405
34406         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
34407         modules/des-tests, modules/gc-arcfour-tests,
34408         modules/gc-arctwo-tests, modules/gc-des-tests,
34409         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
34410         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
34411         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
34412         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
34413         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
34414         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
34415         $(EXEEXT) to automake TESTS variable, for mingw32.
34416
34417 2006-01-17  Simon Josefsson  <jas@extundo.com>
34418
34419         * modules/socklen (Include): Need sys/socket.h.
34420
34421 2006-01-17  Bruno Haible  <bruno@clisp.org>
34422
34423         * modules/ssize_t (Include): Add <sys/types.h>.
34424
34425 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34426
34427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
34428         it's not portable and it doesn't work with cross-compiles.
34429         Problem reported by Bruno Haible.  Fix missing-$ typo in
34430         'test "gl_cv_ignore_unused_libraries" ...' that prevented
34431         -zignore from being used with Sun's C compiler.
34432
34433 2006-01-12  Simon Josefsson  <jas@extundo.com>
34434
34435         * lib/base64.c: Fix warning, reported by Bruno Haible
34436         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
34437
34438 2006-01-12  Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/ldd: New file.
34441         * build-aux/ldd.sh.in: New file.
34442         * MODULES.html.sh (Support for building libraries and executables): Add
34443         ldd.
34444
34445 2006-01-12  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/ldd.m4: New file.
34448
34449 2006-01-12  Bruno Haible  <bruno@clisp.org>
34450
34451         * gnulib-tool (func_import, func_create_testdir): Don't go into an
34452         endless loop while replacing $auxdir with build-aux.
34453
34454 2006-01-11  Simon Josefsson  <jas@extundo.com>
34455
34456         * lib/stdint_.h (SIZE_MAX): Add missing (.
34457
34458 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
34459
34460         Sync from coreutils.
34461         * lib/md5.c: Fix commentary typos.
34462         (alignof, UNALIGNED_P): No need for a GCC-specific version.
34463         * lib/md5.h (__attribute__): Remove; unused.
34464         * lib/sha1.c: Fix commentary to match md5 better.
34465         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
34466         so that we don't need to worry about alignment.  All uses changed.
34467         This merges the 2005-10-28 md5 change into sha1.
34468
34469 2006-01-11  Jim Meyering  <jim@meyering.net>
34470
34471         Sync from coreutils.
34472         * lib/md5.c (OP): Fix spacing.
34473
34474 2006-01-11  Bruno Haible  <bruno@clisp.org>
34475
34476         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34477         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
34478         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
34479
34480 2006-01-11  Bruno Haible  <bruno@clisp.org>
34481
34482         Ensure automatic ordering between gl_LOCK and gl_ARGP.
34483         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
34484         the "early" section as well.
34485
34486 2006-01-11  Bruno Haible  <bruno@clisp.org>
34487
34488         Avoid "ar: no archive members specified" error on MacOS X.
34489         * gnulib-tool (func_modules_add_dummy): New function.
34490         (func_import, func_create_testdir): Invoke it.
34491
34492 2006-01-11  Bruno Haible  <bruno@clisp.org>
34493
34494         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
34495         with $auxdir in AC_CONFIG_FILES statements.
34496
34497 2006-01-11  Bruno Haible  <bruno@clisp.org>
34498
34499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34500         Initialize also noinst_HEADERS to empty.
34501
34502 2006-01-11  Bruno Haible  <bruno@clisp.org>
34503
34504         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
34505         variables.
34506         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
34507         autoreconf.
34508
34509 2006-01-11  Bruno Haible  <bruno@clisp.org>
34510
34511         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
34512         overridable by the user.
34513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34514
34515 2006-01-10  Simon Josefsson  <jas@extundo.com>
34516
34517         * modules/sys_socket: New file.
34518
34519 2006-01-10  Simon Josefsson  <jas@extundo.com>
34520
34521         * m4/sys_socket_h.m4: New file.
34522
34523 2006-01-10  Simon Josefsson  <jas@extundo.com>
34524
34525         * lib/socket_.h: New file.
34526
34527 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34528
34529         * modules/readutmp (Maintainer): Add myself.
34530
34531 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34532
34533         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
34534         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
34535         People who are still concerned with buggy memcmp implementations
34536         can invoke gl_FUNC_MEMCMP themselves.
34537
34538 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34539
34540         * lib/regex_internal.h (BITSET_WORD_BITS):
34541         Work around a bug in 64-bit PGC (before version 6.1-2), where the
34542         preprocessor mishandles large unsigned values as if they were signed.
34543         Problem reported by Claudio Fontana in
34544         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
34545
34546 2006-01-10  Jim Meyering  <jim@meyering.net>
34547
34548         Avoid the double-free (first in fts_read, second in fts_close) that
34549         would occur when an `active' directory is made inaccessible (e.g.,
34550         via chmod a-x) during a traversal.
34551         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
34552         before returning.  Reproduce this failure by
34553         mkdir -p a/b; cd a; chmod a-x . b
34554         Reported by Stavros Passas.
34555
34556         Sync from coreutils.
34557         * lib/sha1.c: Tweak grammar in a comment.
34558
34559 2006-01-10  Jim Meyering  <jim@meyering.net>
34560
34561         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
34562         Patch by Joerg Sonnenberger.
34563
34564 2006-01-10  Bruno Haible  <bruno@clisp.org>
34565
34566         * modules/readutmp: Depend on module free.
34567         * modules/strtok_r: Depend on module restrict.
34568
34569 2006-01-10  Bruno Haible  <bruno@clisp.org>
34570
34571         * modules/gettext (configure.ac): Add an invocation of
34572         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
34573
34574 2006-01-10  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
34577         Reported by Werner Lemberg <wl@gnu.org>.
34578
34579 2006-01-10  Bruno Haible  <bruno@clisp.org>
34580
34581         * lib/localcharset.c: Update from GNU gettext.
34582
34583 2006-01-10  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/argp.h (__const): Remove macro. Use const instead.
34586         * lib/argp-fmtstream.h (__const): Likewise.
34587         * lib/glob_.h (__const): Remove macro.
34588         * lib/glob-libc.h: Use const instead of __const.
34589
34590 2006-01-10  Bruno Haible  <bruno@clisp.org>
34591
34592         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
34593         variable.
34594         Needed to avoid an automake error regarding the 'gettext' module.
34595
34596 2006-01-09  Simon Josefsson  <jas@extundo.com>
34597
34598         * modules/inet_ntop (Depends-on): Add restrict.
34599
34600 2006-01-09  Simon Josefsson  <jas@extundo.com>
34601
34602         * modules/gc-rijndael-tests (License): Put under LGPL.
34603
34604         * modules/gc-des-tests (License): Likewise.
34605
34606         * modules/gc-arcfour-tests (License): Likewise.
34607
34608         * modules/gc-arctwo-tests (License): Likewise.
34609
34610         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
34611
34612         * modules/gc-hmac-sha1-tests (Files): Likewise.
34613
34614         * modules/gc-hmac-md5-tests (License): Likewise.
34615
34616         * modules/gc-sha1-tests (License): Likewise.
34617
34618         * modules/gc-md5-tests (License): Likewise.
34619
34620         * modules/gc-md4-tests (License): Likewise.
34621
34622         * modules/gc-md2-tests (License): Likewise.
34623
34624         * modules/gc-tests (License): Likewise.
34625
34626         * modules/des-tests (License): Likewise.
34627
34628         * modules/md4-tests (License): Likewise.
34629
34630         * modules/md2-tests (License): Likewise.
34631
34632 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34633
34634         Sync from coreutils:
34635
34636         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
34637         * modules/lib-ignore: New file.
34638         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
34639         chdir-safer.m4, lchmod.m4.
34640         * modules/openat: Add mkdirat.c, openat-priv.h.
34641
34642 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34643
34644         Sync from coreutils.
34645         * m4/lib-ignore.m4: New file.
34646         * m4/lchmod.m4: New file.
34647
34648 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34649
34650         Sync from coreutils.
34651         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
34652         for write access: POSIX says that must fail.
34653         * lib/fts.c (diropen): Likewise.
34654         * lib/save-cwd.c (save_cwd): Likewise.
34655         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
34656         well, for minor improvements on hosts that lack O_DIRECTORY.
34657         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
34658         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
34659         Fall back on chown if open failed with EACCES.
34660
34661         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
34662         Report an error at compile-time if only a 1-second nominal clock
34663         resolution is found.
34664
34665         * lib/lchmod.h: New file.
34666         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
34667         (make_dir_parents): Use lchown rather than chown, and
34668         lchmod rather than chmod.
34669
34670         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
34671         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
34672         "proc" reported by n0dalus.
34673
34674         * lib/mountlist.c: Include <limits.h>.
34675         (dev_from_mount_options)
34676         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
34677         New function.  It no longer assumes "dev=" has the System V meaning
34678         on Linux (since it doesn't).  It also parses "dev=" more carefully.
34679         (read_file_system_list)
34680         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
34681         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
34682         dev= in that case.
34683
34684         * lib/posixtm.h (PDS_PRE_2000): New macro.
34685         * lib/posixtm.c (year): Arg is now syntax_bits rather than
34686         allow_century.  All usages changed.  Reject dates outside the range
34687         1969-1999 if PDS_PRE_2000 is used.
34688
34689 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34690
34691         Sync from coreutils.
34692         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
34693         (Time of day items): Mention the possibility of leap seconds.
34694         Problem reported by Dr. David Alan Gilbert.
34695
34696 2006-01-09  Jim Meyering  <jim@meyering.net>
34697
34698         Sync from coreutils.
34699
34700         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
34701
34702         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
34703
34704         * lib/modechange.c (mode_compile): Reject an invalid mode string
34705         that starts with an octal digit.  From Andreas Gruenbacher.
34706
34707         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
34708         and dup to open_safer and dup_safer, respectively.
34709         (openat_permissive): Fix typo in comment.
34710
34711         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
34712         "gettext.h"; either no longer needed or are guaranteed by openat.h.
34713         (_): Remove; no longer needed.
34714         (openat): Renamed from rpl_openat; no need for rpl_openat
34715         since openat.h renames openat for us.
34716         Replace most of the body with a call to openat_permissive,
34717         to avoid duplicate code.
34718         Port to (probably hypothetical) environments were mode_t is
34719         wider than int.
34720         (openat_permissive): Require mode arg, so that we can check
34721         types better.  Put it just after flags.  Change cwd failure
34722         indicator from pointer-to-bool to pointer-to-errno-value.
34723         All callers changed.
34724         Invoke openat_save_fail and/or openat_restore_fail if
34725         cwd_errno is null, so that openat can call us.
34726         (openat_permissive, fdopendir, fstatat, unlinkat):
34727         Simplify errno handling to avoid some duplicate code,
34728         as it's OK to set errno on success.
34729         * lib/openat.h: Revamp code so that function macros depend on
34730         __OPENAT_PREFIX only, not also on AT_FDCWD.
34731         (openat_ro): Remove.  Caller changed to use openat_permissive.
34732         (openat_permissive): Now a macro, if not a function.
34733         (openat_restore_fail, openat_save_fail): Now always functions,
34734         since mkdirat needs them even if __OPENAT_PREFIX is defined.
34735
34736         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
34737         and openat.c.
34738         * lib/mkdirat.c: Include openat-priv.h.
34739         Remove definitions of macros defined therein.
34740         * lib/openat.c: Likewise.
34741
34742         * lib/mkdirat.c (mkdirat): New file and function.
34743         * lib/openat.h (mkdirat): Declare.
34744
34745         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
34746
34747         * lib/openat.h (openat_permissive): Declare.
34748         (openat_ro): Define.
34749
34750         * lib/openat.c (EXPECTED_ERRNO): New macro.
34751         (openat_permissive): New function -- used in remove.c rewrite.
34752         (all functions): Set errno just before returning, only if there
34753         was an actual failure.
34754         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
34755
34756         Emulate openat-family functions using Linux's procfs, if possible.
34757         Idea and some code based on Ulrich Drepper's glibc changes.
34758
34759         * lib/openat.c: (BUILD_PROC_NAME): New macro.
34760         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
34761         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
34762         before falling back on save_cwd and restore_cwd.
34763         (fdopendir, fstatat, unlinkat): Likewise.
34764
34765         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
34766         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
34767
34768         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
34769         as second argument to va_arg.  Otherwise, some versions of gcc
34770         warn that `if this code is reached, the program will abort'.
34771
34772 2006-01-09  Jim Meyering  <jim@meyering.net>
34773
34774         Sync from coreutils.
34775         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
34776         Require openat-priv.h.
34777
34778 2006-01-09  Bruno Haible  <bruno@clisp.org>
34779
34780         * modules/strnlen (Include): Use strnlen.h.
34781
34782 2006-01-09  Bruno Haible  <bruno@clisp.org>
34783
34784         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
34785
34786 2006-01-09  Bruno Haible  <bruno@clisp.org>
34787
34788         * lib/sysexit_.h (EX_OK): New macro.
34789         Suggested by Martin Lambers <marlam@marlam.de>.
34790
34791 2006-01-09  Bruno Haible  <bruno@clisp.org>
34792
34793         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
34794         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
34795
34796 2006-01-09  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
34799         numbers.
34800
34801 2006-01-09  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
34804         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
34805         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
34806         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
34807
34808 2006-01-09  Bruno Haible  <bruno@clisp.org>
34809
34810         * build-aux/javacomp.sh.in: New file, moved from lib/.
34811         * modules/javacomp-script (Files): Update.
34812         (configure.ac): Add AC_CONFIG_FILES invocation.
34813         (EXTRA_DIST): Remove variable.
34814
34815         * build-aux/javaexec.sh.in: New file, moved from lib/.
34816         * modules/javaexec (Files): Update.
34817         (configure.ac): Add AC_CONFIG_FILES invocation.
34818         (EXTRA_DIST): Remove javaexec.sh.in.
34819
34820         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
34821         * modules/csharpcomp-script (Files): Update.
34822         (configure.ac): Add AC_CONFIG_FILES invocation.
34823         (EXTRA_DIST): Remove variable.
34824
34825         * build-aux/csharpexec.sh.in: New file, moved from lib/.
34826         * modules/csharpexec (Files): Update.
34827         (configure.ac): Add AC_CONFIG_FILES invocation.
34828         (EXTRA_DIST): Remove csharpexec.sh.in.
34829
34830 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34831
34832         Sync from coreutils.
34833
34834         Add POSIX ACL support
34835         * lib/acl.h (copy_acl, set_acl): Add declarations.
34836         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
34837         systems other than Linux.
34838         (chmod_or_fchmod): New function: use fchmod when possible,
34839         and chmod otherwise.
34840         (file_has_acl): Add a POSIX ACL implementation, with a
34841         Linux-specific subcase.
34842         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
34843         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
34844         acls are unsupported.
34845         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
34846         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
34847         are unsupported.
34848
34849 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34850
34851         Sync from coreutils.
34852         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
34853
34854 2006-01-07  Bruno Haible  <bruno@clisp.org>
34855
34856         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
34857         gl_EARLY.
34858
34859 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34860
34861         * lib/strftime.c (tzname): Don't declare if it is already #defined.
34862         Problem reported for Mingw by Mark Junker.
34863
34864 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34865
34866         * README: Gnulib normally doesn't generate a tarball.
34867
34868 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
34871         long int, not int, for nanosecond counts, so that people who are
34872         used to POSIX struct timespec won't be surprised.  Reported by Jim
34873         Meyering.
34874
34875 2005-12-28  Bruno Haible  <bruno@clisp.org>
34876
34877         * build-aux/config.rpath: Update from GNU gettext.
34878
34879 2005-12-16  Jim Meyering  <jim@meyering.net>
34880
34881         * modules/fprintftime: New module.
34882         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
34883
34884 2005-12-16  Jim Meyering  <jim@meyering.net>
34885
34886         * m4/fprintftime.m4: New file.
34887
34888 2005-12-16  Jim Meyering  <jim@meyering.net>
34889
34890         * lib/fprintftime.c, lib/fprintftime.h: New files.
34891
34892 2005-12-15  Simon Josefsson  <jas@extundo.com>
34893
34894         * modules/socklen (configure.ac): Fix M4 macro name, to align with
34895         new m4/socklen.m4.
34896
34897 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34898
34899         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
34900         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
34901
34902 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34903
34904         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
34905         * lib/argp-help.c (fill_in_uparams): Check if the constructed
34906         struct uparams is valid. Fall back to the default values if it is
34907         not.
34908
34909 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34910
34911         * modules/argp (Files): Add argp-pin.c
34912         (Depends-on): dirname
34913         (lib_SOURCES): Add argp-pin.c
34914
34915 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34916
34917         * m4/argp.m4:  Check if program_invocation_name and
34918         program_invocation_short_name are declared and define appropriate
34919         macros if they are not.
34920
34921 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34922
34923         * lib/argp-help.c (__argp_base_name): New function
34924         (__argp_short_program_name): Rewrite using __argp_base_name
34925         * lib/argp-namefrob.h: Define program_invocation_name and
34926         program_invocation_short_name if requested
34927         (__argp_base_name): Add prototype
34928         * lib/argp-parse.c (argp_def): Use gettext wrappers
34929         (argp_default_parser): Use __argp_base_name
34930         * lib/argp-pin.c: New file. Defines program_invocation_name and
34931         program_invocation_short_name on systems that lack them.
34932
34933 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34934
34935         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34936         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34937         porting problem reported by Georg Schwarz in
34938         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34939
34940 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34941
34942         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34943         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34944         porting problem reported by Georg Schwarz in
34945         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34946
34947 2005-12-05  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34950         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34951         Reported by Mark Junker <mjscod@gmx.de>.
34952
34953 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34954
34955         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34956         Use implementation from Albert Chin, with some
34957         comments/corrections by Stepan Kasal and myself.
34958
34959 2005-12-02  Bruno Haible  <bruno@clisp.org>
34960
34961         * gnulib-tool (func_import): Accept GPLed build tool modules when
34962         --lgpl is given.
34963         * modules/csharpcomp-script: New file.
34964         * modules/csharpcomp: Depend on it.
34965         * modules/javacomp-script: New file.
34966         * modules/javacomp: Depend on it.
34967         Suggested by Simon Josefsson.
34968
34969 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34970
34971         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34972         statement, to work around an HP-UX 10.20 compiler bug reported by
34973         Peter O'Gorman.
34974
34975 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34976
34977         * modules/savedir (Depends-on): Add openat.
34978
34979 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34980
34981         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34982         (uintmax_t) [defined uintmax_t]: Do not declare.
34983         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34984         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34985         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34986         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34987         sake of portability to weird hosts that C allows (though we don't
34988         know of any practical examples).
34989
34990         * lib/savedir.h (fdsavedir): New decl.
34991         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34992         contains most of the former guts of savedir.
34993         (savedir): Use savedirstream.
34994         Include "openat.h".
34995
34996 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34997
34998         * modules/obstack (Files): Add m4/ulonglong.m4.
34999         Problem reported by Davide Angelocola.
35000
35001 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35002
35003         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
35004         coreutils no longer futzes with rounding modes.
35005
35006 2005-11-14  Jim Meyering  <jim@meyering.net>
35007
35008         * lib/mkstemp-safer.c: Include <config.h>, required for possible
35009         replacement of mkstemp.
35010
35011 2005-11-10  Simon Josefsson  <jas@extundo.com>
35012
35013         * lib/readline.c: Remove EOL.
35014
35015 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
35016
35017         * modules/gethrxtime (Depends-on): Add gettime.
35018
35019 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
35020
35021         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
35022         or gettimeofday; no longer needed.
35023
35024 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
35025
35026         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
35027         time business.
35028         (gethrxtime) [! (HAVE_NANOUPTIME
35029         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
35030         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
35031         our own approximation.
35032
35033 2005-11-08  Eric Blake  <ebb9@byu.net>
35034
35035         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
35036
35037 2005-11-08  Eric Blake  <ebb9@byu.net>
35038
35039         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
35040
35041 2005-11-04  Bruno Haible  <bruno@clisp.org>
35042
35043         * gnulib-tool: Implement --update mode.
35044
35045 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35046
35047         Fix porting problem reported by Theodoros V. Kalamatianos.
35048         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
35049         Don't assume that futimes failing means we must fail.
35050
35051 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35052
35053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
35054         variables to suggest the intended function of the PATH_MAX check.
35055
35056 2005-10-30  Kean Johnston  <jkj@sco.com>
35057
35058         Trivial changes to support SCO systems.
35059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
35060         as PATH_MAX.
35061         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
35062         where __ptr is null when no I/O is pending.
35063
35064 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35065
35066         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
35067         leave errno alone.  Problem reported by Dmitry V. Levin.
35068
35069 2005-10-28  Simon Josefsson  <jas@extundo.com>
35070
35071         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
35072         Test more.
35073
35074         * tests/test-gc-md2.c, tests/test-md2.c: New files.
35075
35076         * modules/md2, modules/md2-tests: New files.
35077
35078 2005-10-28  Simon Josefsson  <jas@extundo.com>
35079
35080         * m4/inet_ntop.m4: More tests.
35081
35082         * m4/gc-md2.m4, md2.m4: New file.
35083
35084 2005-10-28  Simon Josefsson  <jas@extundo.com>
35085
35086         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
35087         "restrict" keywords, as per POSIX.  Protect the function
35088         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
35089         Don't use K&R prototypes.  Check the sprintf return values.
35090         Re-define EAFNOSUPPORT if not present.  Indent.
35091
35092         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
35093         suggested by Bruno Haible <bruno@clisp.org>.
35094
35095         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
35096
35097         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
35098
35099         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
35100         libgcrypt).
35101
35102         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
35103
35104         * lib/md2.h, lib/md2.c: New files.
35105
35106 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
35107
35108         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
35109         errno alone.  Problem reported by Frederic Jolliton.
35110
35111 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
35112
35113         * modules/verify (License): Change from GPL to LGPL.  This is a
35114         tiny module and there are apparently near-equivalents that are
35115         under the BSD license.
35116
35117 2005-10-24  Simon Josefsson  <jas@extundo.com>
35118
35119         * modules/sha1: Relicense to LGPL.
35120
35121 2005-10-24  Simon Josefsson  <jas@extundo.com>
35122
35123         * lib/md4.h: Shrink buffer size, now that we changed the type.
35124
35125 2005-10-23  Simon Josefsson  <jas@extundo.com>
35126
35127         * gnulib-tool (func_import): Fix --tests-base.
35128
35129 2005-10-22  Simon Josefsson  <jas@extundo.com>
35130
35131         * modules/arcfour (Depends-on): Need stdint.
35132
35133 2005-10-22  Simon Josefsson  <jas@extundo.com>
35134
35135         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
35136         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
35137
35138 2005-10-22  Simon Josefsson  <jas@extundo.com>
35139
35140         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
35141         suggested by Bruno Haible <bruno@clisp.org>.
35142
35143 2005-10-22  Simon Josefsson  <jas@extundo.com>
35144
35145         * lib/crc.h: Include stddef.h, for size_t.
35146
35147 2005-10-22  Simon Josefsson  <jas@extundo.com>
35148
35149         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
35150         arcfour_context struct (simplify test vector testing in GNU
35151         Shishi).
35152
35153 2005-10-21  Simon Josefsson  <jas@extundo.com>
35154
35155         * modules/des, modules/des-tests: New files.
35156
35157         * modules/gc-des, modules/gc-des-tests: New files.
35158
35159         * tests/test-des.c, tests/test-gc-des.c: New file.
35160
35161 2005-10-21  Simon Josefsson  <jas@extundo.com>
35162
35163         * modules/arctwo, modules/arctwo-tests: New files.
35164
35165         * tests/test-arctwo.c: New file.
35166
35167         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
35168
35169         * tests/test-gc-arctwo.c: New file.
35170
35171 2005-10-21  Simon Josefsson  <jas@extundo.com>
35172
35173         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
35174         Bruno Haible <bruno@clisp.org>.
35175
35176         * m4/gc-des.m4: New file.
35177
35178 2005-10-21  Simon Josefsson  <jas@extundo.com>
35179
35180         * m4/arctwo.m4: New file.
35181
35182         * m4/gc-arctwo.m4: New file.
35183
35184 2005-10-21  Simon Josefsson  <jas@extundo.com>
35185
35186         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
35187         block.
35188
35189 2005-10-21  Simon Josefsson  <jas@extundo.com>
35190
35191         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
35192         <bruno@clisp.org>.
35193
35194         * lib/hmac-sha1.c (hmac_sha1): Likewise.
35195
35196         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
35197         Bruno Haible <bruno@clisp.org>.
35198
35199         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
35200         <bruno@clisp.org>.
35201
35202 2005-10-21  Simon Josefsson  <jas@extundo.com>
35203
35204         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
35205
35206 2005-10-21  Simon Josefsson  <jas@extundo.com>
35207
35208         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
35209
35210 2005-10-21  Simon Josefsson  <jas@extundo.com>
35211
35212         * lib/des.h, lib/des.c: New files.
35213
35214         * lib/gc-gnulib.c: Support DES.c
35215
35216 2005-10-21  Simon Josefsson  <jas@extundo.com>
35217
35218         * lib/arctwo.h, lib/arctwo.c: New files.
35219
35220         * lib/gc-gnulib.c: Support ARCTWO.
35221
35222 2005-10-21  Simon Josefsson  <jas@extundo.com>
35223
35224         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
35225         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35226
35227 2005-10-21  Simon Josefsson  <jas@extundo.com>
35228
35229         * gnulib-tool (func_import, func_create_testdir): Define automake
35230         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
35231         Makefile.am snippet),
35232         suggested by Bruno Haible <bruno@clisp.org>.
35233
35234         * modules/gc (Makefile.am): Use it.
35235
35236 2005-10-21  Bruno Haible  <bruno@clisp.org>
35237
35238         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
35239         patch.
35240
35241 2005-10-19  Simon Josefsson  <jas@extundo.com>
35242
35243         * tests/test-gc-rijndael.c: New file.
35244
35245         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
35246
35247 2005-10-19  Simon Josefsson  <jas@extundo.com>
35248
35249         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
35250         interface too.
35251
35252 2005-10-19  Simon Josefsson  <jas@extundo.com>
35253
35254         * tests/test-gc-arcfour.c: New file.
35255
35256         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
35257
35258 2005-10-19  Simon Josefsson  <jas@extundo.com>
35259
35260         * modules/gc-md4, modules/gc-md4-tests: New file.
35261
35262         * tests/test-gc-md4.c: New file.
35263
35264 2005-10-19  Simon Josefsson  <jas@extundo.com>
35265
35266         * m4/gc-md4.m4: New file.
35267
35268 2005-10-19  Simon Josefsson  <jas@extundo.com>
35269
35270         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
35271         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
35272         <kasal@ucw.cz>.
35273
35274 2005-10-19  Simon Josefsson  <jas@extundo.com>
35275
35276         * m4/gc-arcfour.m4: New file.
35277
35278         * m4/gc-rijndael.m4: New file.
35279
35280 2005-10-19  Simon Josefsson  <jas@extundo.com>
35281
35282         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
35283
35284 2005-10-19  Simon Josefsson  <jas@extundo.com>
35285
35286         * lib/gc-gnulib.c: Support ARCFOUR.
35287
35288 2005-10-19  Simon Josefsson  <jas@extundo.com>
35289
35290         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
35291         support.
35292
35293         * lib/gc.h: Add ECB enum type.
35294
35295         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
35296
35297 2005-10-18  Simon Josefsson  <jas@extundo.com>
35298
35299         * tests/test-md5.c: New file.
35300
35301         * modules/md5-tests: New file.
35302
35303 2005-10-18  Simon Josefsson  <jas@extundo.com>
35304
35305         * tests/test-md4.c: New file.
35306
35307         * modules/md4, modules/md4-tests: New files.
35308
35309 2005-10-18  Simon Josefsson  <jas@extundo.com>
35310
35311         * m4/md4.m4: New file.
35312
35313 2005-10-18  Simon Josefsson  <jas@extundo.com>
35314
35315         * lib/md4.h, lib/md4.c: New files, based on md5.?.
35316
35317 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
35318
35319         * gnulib-tool (func_create_testdir): Omit the second check whether
35320         BUILT_SOURCES in nonempty.
35321
35322 2005-10-17  Simon Josefsson  <jas@extundo.com>
35323
35324         * tests/test-rijndael.c: New file.
35325
35326 2005-10-17  Simon Josefsson  <jas@extundo.com>
35327
35328         * modules/sha1: Depend on stdint instead of md5.
35329
35330         * modules/md5: Depend on stdint, remove uint32_t.
35331
35332 2005-10-17  Simon Josefsson  <jas@extundo.com>
35333
35334         * modules/gc-sha1-tests: New file.
35335
35336         * tests/test-gc-sha1.c: New file.
35337
35338 2005-10-17  Simon Josefsson  <jas@extundo.com>
35339
35340         * m4/md5.m4: Remove call to uint32_t.m4.
35341
35342 2005-10-17  Simon Josefsson  <jas@extundo.com>
35343
35344         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
35345
35346         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
35347         md5.h.
35348
35349         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
35350
35351         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
35352
35353 2005-10-17  Simon Josefsson  <jas@extundo.com>
35354
35355         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
35356
35357 2005-10-17  Simon Josefsson  <jas@extundo.com>
35358
35359         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
35360
35361 2005-10-17  Simon Josefsson  <jas@extundo.com>
35362
35363         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
35364
35365         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
35366
35367 2005-10-17  Bruno Haible  <bruno@clisp.org>
35368
35369         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
35370         that it can also be used in a test.
35371
35372 2005-10-16  Bruno Haible  <bruno@clisp.org>
35373
35374         * gnulib-tool (func_emit_tests_Makefile_am): Also define
35375         TESTS_ENVIRONMENT, so that individual tests can augment it.
35376
35377         * gnulib-tool (func_create_testdir): Use an intermediate target for
35378         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
35379         macros, like $(ALLOCA_H), which cannot be passed through the command
35380         line.
35381
35382 2005-10-15  Simon Josefsson  <jas@extundo.com>
35383
35384         * modules/rijndael-tests: New file.
35385
35386         * modules/rijndael: New file.
35387
35388 2005-10-15  Simon Josefsson  <jas@extundo.com>
35389
35390         * m4/rijndael.m4: New file.
35391
35392 2005-10-15  Simon Josefsson  <jas@extundo.com>
35393
35394         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
35395
35396         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
35397
35398 2005-10-14  Simon Josefsson  <jas@extundo.com>
35399
35400         * tests/test-arcfour.c: New file.
35401
35402         * modules/arcfour, modules/arcfour-tests: New files.
35403
35404 2005-10-14  Simon Josefsson  <jas@extundo.com>
35405
35406         * m4/arcfour.m4: New file.
35407
35408 2005-10-14  Simon Josefsson  <jas@extundo.com>
35409
35410         * lib/arcfour.h, lib/arcfour.c: New files.
35411
35412 2005-10-14  Roland McGrath  <roland@redhat.com>
35413
35414         Import from libc.  [BZ #1331]
35415         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
35416         macro argument.
35417         Reported by Matej Vela <vela@debian.org>.
35418
35419 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35420
35421         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
35422         include <wchar.h>; no longer needed.
35423
35424 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35425
35426         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
35427
35428 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
35429         and  Ulrich Drepper  <drepper@redhat.com>
35430
35431         Import from libc.
35432         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
35433         instead of inline stream orientation test and two separate
35434         function calls.  Pay no attention to USE_IN_LIBIO.
35435
35436 2005-10-13  Simon Josefsson  <jas@extundo.com>
35437
35438         * modules/gc-hmac-md5-tests: New file.
35439
35440         * tests/test-gc-hmac-sha1.c: New file.
35441
35442         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
35443
35444         * modules/gc-hmac-md5-tests: New file.
35445
35446         * tests/test-gc-md5.c: New file.
35447
35448         * modules/gc-md5-tests: New file.
35449
35450 2005-10-13  Simon Josefsson  <jas@extundo.com>
35451
35452         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
35453         Move memory allocation outside of loop.
35454
35455 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
35456
35457         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
35458         intermediate directory is in a read-only file system.  Problem
35459         reported by Eric Blake.
35460
35461 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
35462
35463         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
35464
35465 2005-10-12  Simon Josefsson  <jas@extundo.com>
35466
35467         * tests/test-hmac-sha1.c: New file.
35468
35469         * modules/hmac-sha1-tests: New file.
35470
35471         * modules/hmac-sha1: New file.
35472
35473 2005-10-12  Simon Josefsson  <jas@extundo.com>
35474
35475         * modules/gc-sha1: New file.
35476
35477 2005-10-12  Simon Josefsson  <jas@extundo.com>
35478
35479         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
35480
35481         * tests/test-gc-pbkdf2-sha1.c: New file.
35482
35483 2005-10-12  Simon Josefsson  <jas@extundo.com>
35484
35485         * modules/gc-md5, modules/gc-hmac-md5: New files.
35486
35487         * modules/gc (Files): Remove md5, memxor and hmac files.
35488
35489 2005-10-12  Simon Josefsson  <jas@extundo.com>
35490
35491         * m4/gc-pbkdf2-sha1.m4: New file.
35492
35493         * m4/gc-hmac-sha1.m4: New file.
35494
35495         * m4/gc-sha1: New file.
35496
35497         * m4/hmac-sha1.m4: New file.
35498
35499 2005-10-12  Simon Josefsson  <jas@extundo.com>
35500
35501         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
35502
35503         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
35504
35505 2005-10-12  Simon Josefsson  <jas@extundo.com>
35506
35507         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
35508         suggested by Bruno Haible <bruno@clisp.org>.
35509
35510 2005-10-12  Simon Josefsson  <jas@extundo.com>
35511
35512         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
35513
35514 2005-10-12  Simon Josefsson  <jas@extundo.com>
35515
35516         * lib/gc-pbkdf2-sha1.c: New file.
35517
35518         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
35519
35520 2005-10-12  Simon Josefsson  <jas@extundo.com>
35521
35522         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
35523
35524         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
35525
35526 2005-10-12  Simon Josefsson  <jas@extundo.com>
35527
35528         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
35529         GC_USE_HMAC_MD5, respectively.
35530
35531         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
35532         (gc_md5): Fix typo.
35533
35534         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
35535
35536         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
35537
35538         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
35539
35540 2005-10-12  Bruno Haible  <bruno@clisp.org>
35541
35542         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
35543         Reported by Stepan Kasal <kasal@ucw.cz>.
35544
35545 2005-10-11  Simon Josefsson  <jas@extundo.com>
35546
35547         * tests/test-crc.c: New file.
35548
35549         * modules/crc, modules/crc-tests: New files.
35550
35551 2005-10-11  Simon Josefsson  <jas@extundo.com>
35552
35553         * m4/crc.m4: New file.
35554
35555 2005-10-11  Simon Josefsson  <jas@extundo.com>
35556
35557         * lib/gc.h: Add gc_hash and gc_hash_buffer.
35558
35559         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
35560
35561         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
35562
35563 2005-10-11  Simon Josefsson  <jas@extundo.com>
35564
35565         * lib/crc.h, lib/crc.c: New files.
35566
35567         * lib/gc.h (gc_hash_buffer): Add doc.
35568
35569 2005-10-11  Bruno Haible  <bruno@clisp.org>
35570
35571         * modules/c-strcasestr: New file.
35572         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
35573
35574 2005-10-11  Bruno Haible  <bruno@clisp.org>
35575
35576         * modules/c-strcase: New file.
35577         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
35578
35579 2005-10-11  Bruno Haible  <bruno@clisp.org>
35580
35581         * lib/strcasecmp.c: Include limits.h.
35582         (strcasecmp): Avoid integer overflow on exotic platforms.
35583         * lib/strncasecmp.c: Include limits.h.
35584         (strncasecmp): Avoid integer overflow on exotic platforms.
35585         Reported by Paul Eggert.
35586
35587 2005-10-11  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/c-strcasestr.h: New file, from GNU gettext.
35590         * lib/c-strcasestr.c: New file, from GNU gettext.
35591
35592 2005-10-11  Bruno Haible  <bruno@clisp.org>
35593
35594         * lib/c-strcase.h: New file, from GNU gettext.
35595         * lib/c-strcasecmp.c: New file, from GNU gettext.
35596         * lib/c-strncasecmp.c: New file, from GNU gettext.
35597
35598 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35599
35600         * modules/mempcpy (License): GPL -> LGPL.
35601         * modules/strchrnul (License): Likewise.
35602         * modules/sysexits (License): Likewise.
35603
35604 2005-10-08  Simon Josefsson  <jas@extundo.com>
35605
35606         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
35607
35608 2005-10-07  Simon Josefsson  <jas@extundo.com>
35609
35610         * m4/memxor.m4: Remove gl_C_RESTRICT call.
35611
35612 2005-10-06  Simon Josefsson  <jas@extundo.com>
35613
35614         * tests/test-hmac-md5.c: New file.
35615
35616         * modules/hmac-md5-tests: New file.
35617
35618         * modules/hmac-md5: New file.
35619
35620 2005-10-06  Simon Josefsson  <jas@extundo.com>
35621
35622         * m4/hmac-md5.m4: New file.
35623
35624         * m4/memxor.m4: Require gl_C_RESTRICT.
35625
35626 2005-10-06  Simon Josefsson  <jas@extundo.com>
35627
35628         * lib/memxor.c (memxor): Avoid casts and warnings.
35629
35630 2005-10-06  Simon Josefsson  <jas@extundo.com>
35631
35632         * lib/hmac-md5.c: New file.
35633
35634         * lib/hmac.h: New file.
35635
35636 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35637
35638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
35639         promotes to int, not unsigned int, to catch the AIX 5.3
35640         compiler bug.
35641
35642 2005-10-05  Simon Josefsson  <jas@extundo.com>
35643
35644         * modules/memxor: New file.
35645
35646         * modules/iconv (Files): Move config.rpath to havelib, it is used
35647         there.
35648
35649         * modules/havelib (Files): Add config.rpath.
35650
35651 2005-10-05  Simon Josefsson  <jas@extundo.com>
35652
35653         * m4/memxor.m4: New file.
35654
35655 2005-10-05  Simon Josefsson  <jas@extundo.com>
35656
35657         * lib/memxor.c (memxor): Fix compiler error.
35658
35659         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
35660         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
35661
35662         * lib/memxor.h, lib/memxor.c: New files.
35663
35664         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
35665         we assume all systems have it, suggested by Jim Meyering
35666         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
35667         any systems lack sys/socket.h; mingw32 is known to lack it, but we
35668         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
35669         same reasons.
35670
35671 2005-10-05  Simon Josefsson  <jas@extundo.com>
35672
35673         * config/srclist.txt: Add glibc bug 1423 for md5.h.
35674
35675 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
35676
35677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
35678         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
35679         needed, since the source code now assumes these .h files.
35680
35681 2005-10-05  Derek Price  <derek@ximbiot.com>
35682
35683         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
35684
35685 2005-10-05  Bruno Haible  <bruno@clisp.org>
35686
35687         * modules/stdint (License): Change to LGPL.
35688
35689 2005-10-04  Simon Josefsson  <jas@extundo.com>
35690
35691         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
35692         D. Baushke" <mdb@gnu.org>.
35693
35694 2005-10-04  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/verify.h (verify_true): Provide alternative definition for C++.
35697
35698 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
35699
35700         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
35701         (SSIZE_MAX): New macro, if not already defined.
35702         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
35703         than 2 GiB.
35704
35705 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35706
35707         Sync from coreutils.
35708         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
35709         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
35710         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
35711         ULLONG_MAX doesn't work with 2.7.2.1.
35712
35713 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35714
35715         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
35716         From Ben Pfaff.
35717
35718         * modules/exclude (Depends-on): Depend on verify.
35719         * modules/strtoimax (Depends-on): Likewise.
35720         * modules/utimecmp (Depends-on): Likewise.
35721
35722 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35723
35724         * lib/exclude.c: Include verify.h.
35725         (verify): Remove.  All callers changed to use verify.h's version.
35726         * lib/strtoimax.c: Likewise.
35727         * lib/utimecmp.c: Likewis.e
35728
35729         Sync from coreutils.
35730         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
35731         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
35732         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
35733         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
35734         bother returning ENOSYS if settimeofday or stime fails; just let
35735         them return whatever errno they want to return.
35736         * lib/utimens.c: Include unistd.h, for dup2.
35737         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
35738         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
35739
35740 2005-10-02  Jim Meyering  <jim@meyering.net>
35741
35742         Sync from coreutils.
35743         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
35744         from glibc-2.2.5 that fails for read-only files.
35745
35746 2005-10-02  Jim Meyering  <jim@meyering.net>
35747
35748         Sync from coreutils.
35749         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
35750         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
35751         `#if HAVE_CONFIG_H'.
35752         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
35753         Remove AT_FDCWD test.
35754         Do not consume the fd unless successful.
35755         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
35756         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
35757         block, so that we don't even try to compile it if settimeofday is
35758         available.  This works around a compilation failure on OSF1 V5.1,
35759         due to stime requiring a `long int*' while tv_sec is `int'.
35760
35761 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
35762
35763         Sync from coreutils.
35764         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
35765         against `yes', rather than just testing for nonempty.
35766
35767 2005-10-01  Simon Josefsson  <jas@extundo.com>
35768
35769         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
35770         and Darwin.
35771
35772         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
35773         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
35774         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
35775         freeaddrinfo and gai_strerror are declared by the POSIX headers.
35776         Check if struct addrinfo is declared.
35777
35778 2005-10-01  Simon Josefsson  <jas@extundo.com>
35779
35780         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
35781         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
35782         AI_* and EAI_* definitions.  Protect function declarations.
35783
35784 2005-10-01  Jim Meyering  <jim@meyering.net>
35785
35786         Sync from coreutils.
35787
35788         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
35789         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
35790         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
35791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35792         in the inet and nsl libraries.  Required on Solaris 5.7.
35793
35794 2005-10-01  Jim Meyering  <jim@meyering.net>
35795
35796         Sync from coreutils.
35797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35798         in the inet and nsl libraries.  Required on Solaris 5.7.
35799
35800 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
35801
35802         * lib/getdelim.c (getdelim): Remove unused variables.
35803
35804 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35805
35806         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
35807         so that the code works even with ancient cpp.  Portability problem
35808         with GCC 2.7.2.1 reported by Thomas M.Ott.
35809
35810 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35811
35812         * modules/regex (Depends-on): Add strcase.
35813
35814         * modules/gethostname (Licence): Change from GPL to LGPL, since
35815         gethostname.c is a trivial implementation of a standard library
35816         function.
35817         * modules/poll (License): Change from GPL to LGPL, since it's
35818         derived from LGPL code.
35819
35820 2005-09-27  Jim Meyering  <jim@meyering.net>
35821
35822         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
35823         HAVE_CONFIG_H.
35824
35825         * lib/intprops.h (signed_type_or_expr__): Define.
35826         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
35827         for unsigned types.
35828
35829 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35830
35831         * lib/verify.h (verify_expr): Remove, replacing with:
35832         (verify_true): New macro that returns true instead of void.
35833         (verify_type__): Remove.
35834         (verify): Use verify_true rather than verify_type__.
35835
35836 2005-09-26  Bruno Haible  <bruno@clisp.org>
35837
35838         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
35839         is necessary.
35840         (lib_SOURCES): Remove mbchar.c.
35841         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
35842         (Files): Add m4/mbrtowc.m4.
35843         * modules/mbiter: Likewise.
35844         * modules/mbuiter: Likewise.
35845
35846 2005-09-26  Bruno Haible  <bruno@clisp.org>
35847
35848         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
35849         compile mbchar.c if they are not both present.
35850         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
35851         * m4/mbiter.m4 (gl_MBITER): Likewise.
35852         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
35853         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
35854         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
35855
35856 2005-09-25  Jim Meyering  <jim@meyering.net>
35857
35858         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
35859         also uses socklen_t.
35860
35861 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35862
35863         * lib/utimens.c (ENOSYS): Define if not already defined.
35864         (futimens): Support having a null PATH if the file descriptor
35865         is nonnegative.
35866
35867         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
35868         Remove.
35869         (__attribute): Define to empty unless GCC 3.1 or later.
35870         This works around a core dump on OpenBSD 3.4, which has GCC
35871         2.95.3, which dumps core when given __attribute__(()).  It also
35872         simplifies other tests, since we really don't want to bother with
35873         worrying about which ancient version of GCC supported what.
35874         Original problem reported by Yoann Vandoorselaere, with part of
35875         the fix suggested by Derek Price.
35876
35877 2005-09-24  Jim Meyering  <jim@meyering.net>
35878
35879         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
35880         so we can once again use a positive bitfield width of 1 -- now we
35881         don't have to explain why we were using a bitfield width of 2.
35882
35883 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35884
35885         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
35886         and similarly for the other external symbols.  Problem reported
35887         by James Gallager.
35888
35889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
35890         bug reported by Jim Meyering.
35891
35892         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
35893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
35894         not needed, since socklen is a prerequisite module.
35895
35896 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35897
35898         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
35899         Problem reported by Eric Blake.
35900         (getaddrinfo): Initialize se so that it's not garbage.
35901         Redo internal storage allocation so that it doesn't make unportable
35902         assumptions about alignment.
35903         Fix a memory leak.
35904
35905         * lib/utimens.c (futimens): Use futimesat if available.
35906         Prefer it to futimes since it doesn't have the futimes bug.
35907
35908         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
35909         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
35910         Instead, declare a function that returns a pointer to an array,
35911         and use verify_type__ to declare the size of the array.
35912         Problem and germ of a solution reported by Bruno Haible.
35913         (verify_type__): Use 2, not 1, for bitfield size, to avoid
35914         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
35915
35916 2005-09-23  Jim Meyering  <jim@meyering.net>
35917
35918         Sync from coreutils.
35919         Correct build failure (socklen_t not defined) on at least
35920         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35922
35923 2005-09-23  Jim Meyering  <jim@meyering.net>
35924
35925         * modules/getaddrinfo (Depends-on): Add socklen.
35926
35927 2005-09-23  Bruno Haible  <bruno@clisp.org>
35928
35929         * tests/test-verify.c: New file.
35930
35931 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35932
35933         Sync from coreutils.
35934
35935         * modules/argmatch (Depends-on): Add verify.
35936         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35937         unistd-safer.
35938         * modules/save-cwd (Depends-on): Likewise.
35939
35940         * modules/openat (Files): Add lib/openat-die.c.
35941         (Depends-on): Remove error, exitfail.
35942         Add dirname.
35943
35944         * modules/verify: New file.
35945         * MODULES.html.sh (Diagnostics <assert.h>): New section,
35946         with "verify" module.
35947
35948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35949
35950         Sync from coreutils.
35951
35952         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35953         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35954         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35955         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35956         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35957         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35958         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35959         Don't bother checking for string.h, stdlib.h, unistd.h.
35960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35961         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35962         module's job.
35963         * m4/jm-macros.m4 (gl_MACROS): Likewise.
35964         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35965
35966         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35967         (gl_GETDATE): Use it.
35968
35969         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35970
35971 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35972
35973         Sync from coreutils.
35974
35975         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35976         stat-time.h.
35977         * lib/argmatch.h: Include verify.h
35978         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35979         (ARGMATCH_ASSERT): Remove; unused.
35980         * lib/canonicalize.c: Assume STDC_HEADERS.
35981         * lib/exclude.c: Include "strcase.h".
35982         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35983         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35984         and stdio-safer.h.
35985         (getusershell): Call fopen, not fopen_safer.
35986         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35987         Do not include unistd-safer.h.
35988         (save_cwd): Don't call fd_safer; no longer needed
35989         now that we include fcntl--.h.
35990
35991         * lib/getdate.y (relative_time): New type.
35992         (RELATIVE_TIME_0): New constant.
35993         (parser_control): Use relative_time instead of doing it ourselves.
35994         (%union): Add new relative_time rel member.
35995         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35996         Now typeless.
35997         (relunit, relunit_snumber): Now of type rel.
35998         (zone, rel, relunit, get_date): Adjust to above changes.
35999
36000         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
36001         Do not include unistd-safer.h.
36002         (getloadavg): Don't call fd_safer; no longer needed
36003         now that we include fcntl--.h.
36004
36005         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
36006         (make_dir_parents): Treat ENOSYS like EEXIST.
36007
36008         Improve quality of diagnostics on restore_cwd failure.
36009         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
36010         (make_dir_parents): Last arg is now int * (for errno), not bool *.
36011         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
36012         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
36013         each time through the loop.  Do not diagnose restore_cwd failure;
36014         that is the caller's job (and perhaps the caller does not care).
36015
36016         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
36017         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
36018         If the file already exists but is not a directory, don't bother
36019         to try to make its parents.
36020         Close potential file descriptor leak if we can't chdir("/") (!).
36021         Don't always return true if chdir($PWD) fails; return true only
36022         if the requested action was done successfully (except for the
36023         chdir($PWD)).
36024         Don't log final directory unless we actually made it.
36025         Refactor to avoid duplicate code to fix up permissions.
36026         Don't attempt to fix up parent permissions if chdir($PWD) fails.
36027
36028         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
36029         to make it a bit faster and (I hope) clearer.
36030         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
36031         Fix bug in formats like %2N.
36032
36033         * lib/verify.h: New file.
36034
36035 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36036
36037         Sync from coreutils.
36038         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
36039
36040 2005-09-22  Jim Meyering  <jim@meyering.net>
36041
36042         Sync from coreutils.
36043
36044         * m4/lstat.m4 (gl_FUNC_LSTAT):
36045         Use AC_LIBSOURCES to require lstat.c and lstat.h.
36046         Remove obsolete comment.
36047         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
36048         * m4/xstrtod.m4: Likewise.
36049
36050         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
36051
36052 2005-09-22  Jim Meyering  <jim@meyering.net>
36053
36054         Sync from coreutils.
36055
36056         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
36057
36058         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
36059         the .tm_year member, since otherwise gcc-4.0 would now warn about
36060         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
36061
36062         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
36063         order to avoid an unsuppressible warning from gcc on 64-bit systems.
36064
36065         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
36066         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
36067         when run in a time zone for which daylight savings time is in effect
36068         for the starting date.
36069
36070         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
36071         stop us from restricting permissions of just-created absolute-named
36072         directories.
36073         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
36074         to restore initial working directory.
36075         * lib/mkdir-p.c (make_dir_parents): New parameter:
36076         different_working_dir, to tell caller if/when we change the working
36077         directory and are unable to return to the initial one.
36078         * lib/mkdir-p.h (make_dir_parents): Update prototype.
36079         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
36080         `return false'.  This fixes a bug introduced on 2004-07-30.
36081
36082         * lib/openat.c (fdopendir): Be sure to close the supplied
36083         file descriptor before returning.  This makes our replacement
36084         implementation a little closer to Solaris's, where fdopendir
36085         ties the file descriptor to the returned DIR* pointer.
36086         * lib/openat.c (unlinkat): New function.
36087         * lib/openat.h (unlinkat): Add prototype.
36088         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
36089         (openat_restore_fail): Rename from openat_restore_die.
36090         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
36091
36092         Provide an alternative to exiting immediately upon save_cwd or
36093         restore_cwd failure.  Now, an application can arrange e.g.,
36094         to perform a longjump in that case.
36095         * lib/openat.c: Include dirname.h.
36096         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
36097         (rpl_openat, fdopendir, fstatat): Call openat_save_die
36098         and openat_restore_die rather than calling error directly.
36099         Don't include "error.h" or "exitfail.h"; they're no longer needed.
36100
36101         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
36102         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
36103         define.
36104
36105         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
36106         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
36107                             int utc, int nanoseconds);
36108         Background:
36109         date should not have to allocate a megabyte of virtual memory to
36110         handle a format argument like +%1048575T.  When implemented with
36111         strftime, it must allocate such a buffer, use strftime to fill it
36112         in, print it, then free it.
36113         With fprintftime, it simply prints everything and exits.
36114         With no need for memory allocation, that's one fewer way to fail.
36115         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
36116         optional field width, not before, so we accept %9:z, not %:9z.
36117         (my_strftime): Be sure to use L_('x') for literals.
36118
36119         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
36120         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
36121         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
36122         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
36123         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
36124         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
36125         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
36126         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
36127         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
36128         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
36129         * lib/xgethostname.c, lib/xreadlink.c:
36130         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
36131
36132         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
36133         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
36134         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
36135         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
36136         and don't include <sys/file.h>).
36137
36138 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
36139
36140         Sync from coreutils.
36141
36142         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
36143         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
36144         [!LDAV_DONE]: Avoid unused variable warning.
36145
36146 2005-09-21  Bruno Haible  <bruno@clisp.org>
36147
36148         * lib/unicodeio.h (unicode_to_mb): New declaration.
36149
36150 2005-09-20  Derek Price  <derek@ximbiot.com>
36151
36152         * lib/getaddrinfo.c: Don't include <netdb.h> included from
36153         getaddrinfo.h.
36154
36155 2005-09-20  Bruno Haible  <bruno@clisp.org>
36156
36157         * gnulib-tool: Remove trailing slashes from the values specified for
36158         --source-base, --m4-base, --tests-base, --aux-dir.
36159         Suggested by Simon Josefsson <jas@extundo.com>.
36160
36161 2005-09-20  Bruno Haible  <bruno@clisp.org>
36162
36163         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
36164         func_modules_to_filelist, func_import, func_create_testdir): Make all
36165         sorting results locale-independent, so that gnulib-cache.m4 doesn't
36166         change when gnulib-tool is invoked in a different locale.
36167
36168 2005-09-19  Simon Josefsson  <jas@extundo.com>
36169
36170         * m4/socklen.m4: Fix typo.
36171
36172 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36173
36174         Use a consistent style for including <config.h>.
36175         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
36176         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
36177         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
36178         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
36179         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
36180         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
36181         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
36182         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
36183         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
36184         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
36185         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
36186         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
36187         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
36188         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
36189         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
36190         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
36191         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
36192         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
36193         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
36194         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
36195         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
36196         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
36197         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
36198         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
36199         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
36200         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
36201         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
36202         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
36203         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
36204         lib/xstrtoumax.c, lib/yesno.c:
36205         Standardize inclusion of config.h.
36206         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
36207         lib/inttostr.h:  Removed inclusion of config.h from header files.
36208         * lib/inttostr.c:  Adjusted in-tree users.
36209         * lib/timespec.h: Remove superfluous warning to include config.h.
36210         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
36211         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
36212         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
36213         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
36214         config.h with HAVE_CONFIG_H.
36215
36216 2005-09-19  Jim Meyering  <jim@meyering.net>
36217
36218         * modules/pathmax (License): Change to LGPL.
36219
36220 2005-09-19  Derek Price  <derek@ximbiot.com>
36221
36222         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
36223
36224 2005-09-19  Bruno Haible  <bruno@clisp.org>
36225
36226         * gnulib-tool (import): Provide default for --tests-base.
36227
36228 2005-09-19  Bruno Haible  <bruno@clisp.org>
36229
36230         * doc/quote.texi: New file, extracted from gnulib.texi.
36231         * doc/ctime.texi: New file, extracted from gnulib.texi.
36232         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
36233         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
36234         * doc/gnulib.texi: Include them.
36235
36236 2005-09-18  Bruno Haible  <bruno@clisp.org>
36237
36238         Portability fix.
36239         * gnulib-tool (func_readlink): New function.
36240         (func_ln_if_changed): Use it.
36241
36242 2005-09-18  Bruno Haible  <bruno@clisp.org>
36243
36244         * gnulib-tool: Support --with-tests also with --import.
36245         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
36246         (func_import): Use variables $testsbase and $inctests. Emit a
36247         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
36248         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
36249         SUBDIRS += $testsdir.
36250         (func_create_testdir): Update.
36251
36252 2005-09-18  Bruno Haible  <bruno@clisp.org>
36253
36254         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
36255         instead of $dry_run.
36256         (func_cp_if_changed, func_mv_if_changed): Remove functions.
36257         (func_ln_if_changed): Don't handle dry-run here.
36258         (func_import): In dry-run mode, detect more precisely which actions
36259         would be performed, and don't use "...ing" verbs.
36260
36261 2005-09-18  Bruno Haible  <bruno@clisp.org>
36262
36263         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
36264         (func_import): Use join on two temporary files instead of three nested
36265         loops, in order to determine which files are new or old.
36266
36267 2005-09-18  Bruno Haible  <bruno@clisp.org>
36268
36269         * gnulib-tool (func_import): Comment out code that spits out the
36270         new files with --dry-run.
36271
36272 2005-09-18  Bruno Haible  <bruno@clisp.org>
36273
36274         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
36275
36276 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36277
36278         * lib/stat-time.h: New file.
36279         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
36280         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
36281         in a different way.
36282         (timespec_cmp): New function.
36283         * lib/utimecmp.c: Include stat-time.h.
36284         (SYSCALL_RESOLUTION): Depend on whether various struct stat
36285         members exist, not on the obsolescent ST_MTIM_NSEC.
36286         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
36287
36288 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36289
36290         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
36291
36292 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36293
36294         * MODULES.html.sh (File system functions): Add stat-time.
36295         * modules/stat-time: New file.
36296         * modules/timespec (Files): Remove m4/st_mtim.m4; this
36297         is now done in a different way, by the stat-time module.
36298         * modules/utimecmp (Depends-on): Add stat-time.
36299
36300 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36301
36302         * m4/st_mtim.m4: Remove.  Superseded by...
36303         * m4/stat-time.m4: New file.
36304         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
36305         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
36306
36307 2005-09-15  Derek Price  <derek@ximbiot.com>
36308
36309         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
36310
36311 2005-09-15  Derek Price  <derek@ximbiot.com>
36312
36313         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
36314         * lib/regex_internal.c: Ditto, using this...
36315         (__GNUC_PREREQ): ...new macro.
36316         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
36317         using...
36318         (__GNUC_PREREQ): ...this new macro.
36319
36320         * lib/strstr.h: Include string.h. Define strstr as a macro here.
36321
36322 2005-09-15  Derek Price  <derek@ximbiot.com>
36323             Paul Eggert  <eggert@cs.ucla.edu>
36324
36325         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
36326         changes, consolidating in...
36327         * lib/regex_internal.h: ...this file.
36328
36329 2005-09-13  Jim Meyering  <jim@meyering.net>
36330
36331         * lib/canon-host.c: Filter through gnu indent and reword comments
36332         slightly.
36333         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
36334
36335 2005-09-13  Derek Price  <derek@ximbiot.com>
36336
36337         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
36338         failure.
36339         Reported by Jim Meyering  <jim@meyering.net>.
36340
36341 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36342
36343         * lib/base64.c: Typo.
36344         (base64_encode): Put b64str in initialized data section.
36345
36346 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
36347
36348         Merge glibc and coreutils changes into gnulib, plus a few
36349         extra fixes.
36350         * lib/md5.c: Use #error rather than a string.
36351         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
36352         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
36353         (__attribute__): Define to empty for non recent-GCC.
36354         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
36355         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
36356         Renamed from their non-__ counterparts, with new macros replacing
36357         them if not _LIBC.  Add __THROW attribute.
36358         (rol): Remove.
36359         (struct md5_ctx): Align buffer if using GCC.
36360         * lib/sha1.h (struct sha1_ctx): Likewise.
36361         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
36362         The old name was backwards.
36363         (NOTSWAP): Remove; not used.
36364         (rol): New macro, moved here from md5.h.
36365         (sha1_process_block): Remove a FIXME that doesn't make sense.
36366
36367 2005-09-12  Derek Price  <derek@ximbiot.com>
36368
36369         Return usable errors from canon-host.
36370         * lib/canon-host.h: New file.
36371         * lib/canon-host.c (canon_host): Wrap...
36372         (canon_host_r): ...this new function, which now relies exclusively on
36373         getaddrinfo.
36374         (ch_strerror): New function.
36375         (last_cherror): New global.
36376         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
36377         interface.
36378         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
36379         void *.
36380         (freeaddrinfo): Free ai->ai_canonname when set.
36381
36382 2005-09-12  Derek Price  <derek@ximbiot.com>
36383
36384         Make canon-host require getaddrinfo.
36385         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
36386         AC_LIBSOURCE canon-host.h.  Call...
36387         (gl_PREREQ_CANON_HOST): ...this new function, which requires
36388         gl_GETADDRINFO.
36389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
36390
36391 2005-09-12  Derek Price  <derek@ximbiot.com>
36392
36393         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
36394         LGPL.
36395         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
36396
36397 2005-09-12  Derek Price  <derek@ximbiot.com>
36398
36399         * lib/gai_strerror.c: Include config.h when available.  Include
36400         getaddrinfo.h before other headers to test interface.
36401         Reported by Larry Jones <lawrence.jones@ugs.com>.
36402
36403 2005-09-12  Derek Price  <derek@ximbiot.com>
36404             Paul Eggert  <eggert@cs.ucla.edu>
36405
36406         * modules/glob (Files): Add glob-libc.h.
36407
36408 2005-09-12  Derek Price  <derek@ximbiot.com>
36409             Paul Eggert  <eggert@cs.ucla.edu>
36410
36411         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
36412         glob_.h, glob-libc.h.
36413         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
36414
36415 2005-09-12  Derek Price  <derek@ximbiot.com>
36416             Paul Eggert  <eggert@cs.ucla.edu>
36417
36418         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
36419         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
36420         protecting things that should be done only in gnulib contexts.
36421         * lib/glob_.h: New file, containing only the glob things needed for
36422         gnulib.
36423         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
36424         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
36425         (glob, globfree, glob_pattern_p): Now defined simply in terms of
36426         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
36427         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
36428         and to respect the namespace rules better.
36429
36430 2005-09-08  Simon Josefsson  <jas@extundo.com>
36431
36432         * modules/socklen: New file.
36433
36434 2005-09-08  Simon Josefsson  <jas@extundo.com>
36435
36436         * m4/socklen.m4: New file.
36437
36438 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36439
36440         * modules/utimens (Files): Add m4/utimbuf.m4, since
36441         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
36442         Reported by Sergey Poznyakoff.
36443
36444 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36445
36446         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
36447         definitions, since that's the preferred style in glibc.
36448         Fix a minor spacing issue, and update copyright notice to match
36449         glibc's.
36450
36451 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36452
36453         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
36454
36455 2005-09-06  Simon Josefsson  <jas@extundo.com>
36456
36457         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
36458         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
36459
36460 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36461
36462         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
36463         warning.
36464
36465 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36466
36467         * config/srclist.txt: Add glibc bug 1302.
36468
36469 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
36470
36471         Change bitset word type from unsigned int to unsigned long int,
36472         as this has better performance on typical 64-bit hosts.
36473         Port bitset code to hosts with unusual word sizes.
36474         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
36475         (build_collating_symbol):
36476         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
36477         argument is a bitset.  This is merely a style issue, but it makes
36478         it clearer that an entire array is expected.
36479         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
36480         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
36481         Port to the case where bitset_word is not the same as unsigned int.
36482         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36483         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
36484         Likewise.
36485         * lib/regexec.c (check_dst_limits_calc_pos_1,
36486         check_subexp_matching_top):
36487         (build_trtable, group_nodes_into_DFAstates):
36488         Likewise.
36489         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
36490         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
36491         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
36492         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
36493         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
36494         * lib/regcomp.c (optimize_subexps, lower_subexp):
36495         Work even if bitset_word has holes in its bitwise representation.
36496         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
36497         * lib/regexec.c (check_dst_limits_calc_pos_1,
36498         check_subexp_matching_top):
36499         Likewise.
36500         * lib/regex_internal.c (re_string_reconstruct):
36501         Don't assume UCHAR_MAX == 255.
36502         * lib/regex_internal.h (bitset_set_all): Likewise.
36503         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
36504         All uses changed.
36505         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
36506         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
36507         All uses changed.
36508         (BITSET_WORD_MAX): New macro.
36509         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
36510         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
36511         (bitset_empty, bitset_copy):
36512         Prefer sizeof (bitset) to multiplying it out ourselves.
36513         (bitset_not_merge): Remove; unused.
36514         (bitset_contain): Return bool, not unsigned int with one bit on.
36515         All callers changed.
36516         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
36517         alignment than re_node_set; do this by defining a new internal
36518         type struct dests_alloc and using it to allocate memory.
36519
36520 2005-09-05  Bruno Haible  <bruno@clisp.org>
36521
36522         * gnulib-tool (func_import): Fix comparison in handling of symbolic
36523         links.
36524
36525 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
36526
36527         * modules/size_max (Makefile.am): Add size_max.h
36528
36529 2005-09-04  Derek Price  <derek@ximbiot.com>
36530
36531         * gnulib-tool (func_import): Fix reversed $symbolic logic.
36532
36533 2005-09-03  Simon Josefsson  <jas@extundo.com>
36534
36535         * gnulib-tool: Fix typo.
36536
36537 2005-09-03  Simon Josefsson  <jas@extundo.com>
36538
36539         * config/srclist.txt: Add glibc bug 1293.
36540
36541 2005-09-03  Derek Price  <derek@ximbiot.com>
36542
36543         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
36544         From Larry Jones <lawrence.jones@ugs.com>.
36545
36546 2005-09-02  Simon Josefsson  <jas@extundo.com>
36547
36548         * modules/socklen: New file.
36549
36550 2005-09-02  Simon Josefsson  <jas@extundo.com>
36551
36552         * modules/havelib: New module.
36553
36554         * modules/gettext, modules/iconv, modules/lock, modules/readline:
36555         Use havelib.
36556
36557 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36558
36559         Check for arithmetic overflow when calculating sizes, to prevent
36560         some buffer-overflow issues.  These patches are conservative, in the
36561         sense that when I couldn't determine whether an overflow was possible,
36562         I inserted a run-time check.
36563         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
36564         macros.
36565         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
36566         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
36567         (re_xnrealloc, re_x2nrealloc): New inline functions.
36568         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
36569         parse_bracket_exp):
36570         (build_equiv_class, build_charclass): Check for arithmetic overflow
36571         in size expression calculations.
36572         * lib/regex_internal.c (re_string_realloc_buffers):
36573         (build_wcs_upper_buffer, re_node_set_add_intersect):
36574         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
36575         (re_dfa_add_node, register_state): Likewise.
36576         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
36577         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
36578         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
36579         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
36580
36581 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
36582
36583         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
36584         m4/ulonglong.m4.  Problem reported by Martin Lambers.
36585
36586 2005-09-02  Bruno Haible  <bruno@clisp.org>
36587
36588         Support for lib vs. lib64 distinction on biarch platforms.
36589         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
36590         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
36591         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
36592
36593 2005-09-02  Bruno Haible  <bruno@clisp.org>
36594
36595         * gnulib-tool (import): In the other first-use case, provide defaults
36596         as well.
36597
36598 2005-09-02  Bruno Haible  <bruno@clisp.org>
36599
36600         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
36601         patches not yet found in the latest gettext release.
36602
36603 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36604
36605         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
36606         to avoid a collision with bits/local_lim.h in glibc.
36607         All uses changed.  Problem reported by Dmitry V. Levin in
36608         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
36609
36610         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
36611         bugs in int versus size_t comparisons.
36612         (re_string_context_at): Fix bug where the code assumed that
36613         Idx is signed.
36614
36615         Use bool where appropriate.
36616         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
36617         All callers changed.
36618         (calc_eclosure_iter): Likewise, for ROOT arg.
36619         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
36620         (build_charclass_op): Likewise, for NON_MATCH arg.
36621         * lib/regex_internal.c (re_string_allocate, re_string_construct):
36622         (re_string_construct_common): Likewise, for ICASE arg.
36623         * lib/regexec.c (re_search_2_stub, re_search_stub):
36624         Likewise, for RET_LEN arg.
36625         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
36626         (set_regs): Likewise, for FL_BACKTRACK arg.
36627         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
36628         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
36629         (calc_eclosure_iter, parse_bracket_exp):
36630         Use bool for internal variables that are booleans.
36631         * lib/regexec.c (re_search_internal, check_matching,
36632         proceed_next_node):
36633         (set_regs, build_sifted_states, sift_states_bkref):
36634         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
36635         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36636         (find_collation_sequence_value):
36637         Likewise.
36638         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
36639         (re_node_set_compare):
36640         Return bool, not int. All callers changed.
36641         * lib/regexec.c (check_halt_node_context, check_dst_limits):
36642         (build_trtable, check_node_accept): Likewise.
36643         * lib/regex_internal.h: Include stdbool.h.
36644
36645         Fix bugs uncovered when converting to bool.
36646         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
36647         failure instead of charging ahead blindly.
36648         * lib/regex_internal.c (register_state): Likewise.
36649         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
36650         for freeing internal storage.
36651         (group_nodes_into_DFA_states): Use unsigned int, not int, for
36652         bitset pieces used as boolean, to avoid undefined behavior
36653         on hosts that do int overflow checking.
36654
36655 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36656
36657         * config/srclist.txt: Add glibc bugs 1285-1287.
36658
36659 2005-09-01  Jim Meyering  <jim@meyering.net>
36660
36661         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
36662         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
36663         Require gl_STAT_MACROS, too.
36664
36665 2005-09-01  Bruno Haible  <bruno@clisp.org>
36666
36667         * gnulib-tool (import): In the first-use case, provide defaults.
36668
36669 2005-09-01  Bruno Haible  <bruno@clisp.org>
36670
36671         * gnulib-tool (func_import): Remove the .tmp files.
36672
36673 2005-09-01  Bruno Haible  <bruno@clisp.org>
36674
36675         * gnulib-tool (func_import): Fix handling of symbolic links.
36676
36677 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36678
36679         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
36680         old glibc regex code mishandles strings longer than 2**31 bytes.
36681         This patch fixes this when the regex code is used in gnulib
36682         (i.e., outside glibc).
36683
36684         This patch should not affect the use of the regex code inside
36685         glibc.  No doubt this problem also needs to be handled for glibc
36686         as well, but the result will be an incompatible change to the
36687         glibc ABI, and the old ABI will have to be supported too.  That
36688         can be the the subject for another patch.
36689
36690         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
36691         governing whether the rest of this patch is active.  By default,
36692         the macro is disabled and the patch has no effect.
36693         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
36694         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
36695         (struct re_pattern_buffer, re_search, re_search_2, re_match):
36696         (re_match_2, re_set_registers): Use the new types.
36697         * lib/regex_internal.h (Idx, re_hashval_t): New types.
36698         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
36699         New macros.
36700         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
36701         (re_string_context_at, bin_tree_t, re_dfastate_t):
36702         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
36703         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
36704         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
36705         (re_string_char_size_at, re_string_wchar_at):
36706         (re_string_elem_size_at):
36707         Use the new types and macros to port to 64-bit hosts.
36708         Use unsigned types for internal values, so that the code
36709         mostly works even for arrays larger than SSIZE_MAX.
36710         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
36711         (search_duplicated_node, calc_eclosure_iter, fetch_number):
36712         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36713         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
36714         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
36715         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
36716         (calc_inveclosure, parse_dup_op, build_range_exp):
36717         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
36718         (fetch_number, create_token_tree, mark_opt_subexp):
36719         Likewise.
36720         * lib/regex_internal.c (re_string_construct_common,
36721         create_ci_newstate):
36722         (create_cd_newstate, re_string_allocate, re_string_construct):
36723         (re_string_realloc_buffers, build_wcs_upper_buffer):
36724         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36725         (re_string_reconstruct, re_string_peek_byte_case):
36726         (re_string_fetch_byte_case, re_string_context_at):
36727         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36728         (re_node_set_init_copy, re_node_set_add_intersect):
36729         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36730         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36731         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36732         (re_acquire_state, re_acquire_state_context, register_state):
36733         Likewise.
36734         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
36735         search_cur_bkref_entry):
36736         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
36737         (re_search_internal, re_search_2_stub, re_search_stub)
36738         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
36739         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
36740         (update_cur_sifted_state, check_dst_limits):
36741         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36742         (check_subexp_limits, sift_states_bkref, merge_state_array):
36743         (check_subexp_matching_top, get_subexp, get_subexp_sub):
36744         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
36745         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36746         (expand_bkref_cache, check_node_accept_bytes):
36747         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
36748         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
36749         (acquire_init_state_context, check_halt_node_context):
36750         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
36751         (sift_states_backward, clean_state_log_if_needed):
36752         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
36753         (find_recover_state, transit_state_sb, transit_state_mb):
36754         (transit_state_bkref, build_trtable, match_ctx_clean):
36755         Likewise.
36756         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
36757         to work around an assumption that REG_MISSING is negative.
36758
36759         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
36760         (seek_collating_symbol_entry) [defined _LIBC]:
36761         (lookup_collation_sequence_value) [defined _LIBC]:
36762         (build_range_exp, build_collating_symbol) [defined _LIBC]:
36763         Use prototypes rather than old-style function definitions.
36764         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
36765         (transit_state_sb) [0]:
36766         (find_collation_sequence_value) [defined _LIBC]: Likewise.
36767
36768         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
36769         rm_eo.
36770
36771         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
36772         (optimize_subexps, lower_subexp):
36773         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
36774         since the signed shift might overflow.  Use 1u<<31 instead.
36775         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36776         Likewise.
36777         * lib/regexec.c (check_dst_limits_calc_pos_1,
36778         check_subexp_matching_top): Likewise.
36779
36780         * lib/regcomp.c (optimize_subexps, lower_subexp):
36781         Use CHAR_BIT rather than 8, for clarity.
36782         * lib/regexec.c (check_dst_limits_calc_pos_1):
36783         (check_subexp_matching_top): Likewise.
36784         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
36785         have to worry about portability issues when shifting it left.
36786         Remove no-longer-needed test for table_size > 0.
36787         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
36788         in a word, as the resulting behavior is undefined.
36789         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
36790         in one case, a <= should have been an <, and in another case the
36791         whole test was missing.
36792         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
36793         the standard name CHAR_BIT.
36794         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
36795         this is not true on one's complement and signed-magnitude hosts.
36796
36797         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
36798         next_last_offset.
36799         (struct re_dfa_t): Remove unused member states_alloc.
36800         * lib/regcomp.c (init_dfa): Don't initialize unused members.
36801
36802 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36803
36804         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
36805         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
36806         and large-file glibc and in 32-bit large-file Solaris.
36807
36808 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36809
36810         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
36811         lengths fit in regoff_t; this isn't true if regoff_t is the same
36812         width as size_t.
36813         * lib/regex.c (re_search_internal): 5th arg is LAST_START
36814         (= START + RANGE) instead of RANGE.  This avoids overflow
36815         problems when regoff_t is the same width as size_t.
36816         All callers changed.
36817         (re_search_2_stub): Check for overflow when adding the
36818         sizes of the two strings.
36819         (re_search_stub): Check for overflow when adding START
36820         to RANGE; if it occurs, substitute the extreme value.
36821
36822 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36823
36824         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
36825
36826 2005-08-31  Jim Meyering  <jim@meyering.net>
36827
36828         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
36829         a pointer-to-const.
36830         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
36831         (register_state): Likewise.
36832         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
36833         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36834         (group_nodes_into_DFAstates): Likewise.
36835
36836 2005-08-31  Jim Meyering  <jim@meyering.net>
36837
36838         * check-module: Add a FIXME comment.
36839
36840 2005-08-31  Eric Blake  <ebb9@byu.net>
36841
36842         * modules/unistd-safer (Files): Add unistd--.h.
36843         * modules/stdio-safer (Files): Add stdio--.h.
36844
36845 2005-08-31  Derek Price  <derek@ximbiot.com>
36846
36847         * lib/getdelim.c (getdelim): Return EOF on EOF.
36848         Reported by Larry Jones <lawrence.jones@ugs.com>.
36849
36850 2005-08-31  Bruno Haible  <bruno@clisp.org>
36851
36852         Avoid unnecessary diffs in the generated lib/Makefile.am.
36853         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
36854         the generated files.
36855         (func_import): Don't set cmd.
36856
36857 2005-08-31  Bruno Haible  <bruno@clisp.org>
36858
36859         * lib/strstr.c: Include <stddef.h>, for NULL.
36860         * lib/strcasestr.c: Likewise.
36861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36862
36863 2005-08-31  Bruno Haible  <bruno@clisp.org>
36864
36865         * gnulib-tool: New option --macro-prefix.
36866         (func_import): Use macro_prefix.
36867         (import): Handle option --macro-prefix.
36868
36869 2005-08-31  Bruno Haible  <bruno@clisp.org>
36870
36871         * gnulib-tool (import): Rename most ac_* variables to cached_*.
36872         Also use new variables cached_lgpl, cached_libtool.
36873
36874 2005-08-31  Bruno Haible  <bruno@clisp.org>
36875
36876         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
36877         always instantiating them.
36878
36879 2005-08-31  Bruno Haible  <bruno@clisp.org>
36880
36881         * gnulib-tool (func_import): Read the previous cached settings
36882         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
36883         earlier added by gnulib but are now dropped. Warn when a gnulib file
36884         overwrites a non-gnulib file.
36885
36886 2005-08-31  Bruno Haible  <bruno@clisp.org>
36887
36888         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
36889         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
36890         projects that don't keep autogenerated files in CVS. Put into
36891         actioncmd only the specified modules, not the transitive closure.
36892
36893 2005-08-31  Bruno Haible  <bruno@clisp.org>
36894
36895         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
36896         Create directories that shall be filled.
36897         (import): Don't look for gl_* macros in configure.ac. Recurse across
36898         all directories containing a gnulib-cache.m4 files, if meaningful.
36899
36900 2005-08-31  Bruno Haible  <bruno@clisp.org>
36901
36902         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
36903         (import): Set seen_libtool when we see gl_LIBTOOL.
36904
36905 2005-08-31  Bruno Haible  <bruno@clisp.org>
36906
36907         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
36908         declaration macro definitions from generated gnulib.m4.
36909
36910 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
36911
36912         * lib/iconvme.h: Add prototype for iconv_alloc.
36913
36914 2005-08-29  Simon Josefsson  <jas@extundo.com>
36915
36916         * lib/iconvme.c: Fix errno.
36917
36918 2005-08-29  Bruno Haible  <bruno@clisp.org>
36919
36920         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36921         that it works when the directory contains spaces.
36922
36923 2005-08-29  Bruno Haible  <bruno@clisp.org>
36924
36925         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36926
36927 2005-08-29  Bruno Haible  <bruno@clisp.org>
36928
36929         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36930         Emit more advice.
36931
36932 2005-08-29  Bruno Haible  <bruno@clisp.org>
36933         and Stepan Kasal  <kasal@ucw.cz>
36934
36935         * check-module: If more parameters are given, check each of them
36936         separately; add more exceptions, as noted by Jim Meyering.
36937         (check_module): New procedure.
36938         (%exempt_header): Now contains all exceptions.
36939
36940 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
36941
36942         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36943
36944 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
36945
36946         * lib/iconvme.c: Split iconv_string into iconv_alloc.
36947
36948 2005-08-28  Bruno Haible  <bruno@clisp.org>
36949
36950         * m4/gnulib-tool.m4: New file.
36951
36952 2005-08-27  Jim Meyering  <jim@meyering.net>
36953
36954         * modules/unistd-safer (Files): Add pipe-safer.c.
36955         * modules/fcntl-safer (Files): Add creat-safer.c.
36956
36957 2005-08-27  Jim Meyering  <jim@meyering.net>
36958
36959         * m4/stdlib-safer.m4: New file.  From coreutils.
36960         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36962         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36963         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36964         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36965
36966 2005-08-27  Jim Meyering  <jim@meyering.net>
36967
36968         * lib/fopen-safer.c: Merge minor changes from coreutils.
36969         * lib/dup-safer.c: Likewise.
36970         * lib/fd-safer.c: Likewise.
36971
36972         Merge from coreutils.
36973         * lib/stdio--.h: New file.
36974         * lib/stdlib--.h: New file.
36975         * lib/mkstemp-safer.c: New file.
36976
36977         GNU tar needs these.
36978         * lib/pipe-safer.c: New file.
36979         * lib/creat-safer.c: New file.
36980         * lib/fcntl--.h (creat): Define to creat_safer.
36981         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36982         * lib/unistd--.h (pipe): Define to pipe_safer.
36983         * lib/unistd-safer.h: Declare pipe_safer.
36984
36985 2005-08-26  Simon Josefsson  <jas@extundo.com>
36986
36987         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36988         Haible <bruno@clisp.org>.
36989
36990 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36991
36992         * lib/regex_internal.h: Remove all references to
36993         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36994         or better.
36995         (bitset_not, bitset_merge, bitset_not_merge):
36996         (bitset_mask, re_string_allocate, re_string_construct):
36997         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36998         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36999         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
37000         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
37001         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
37002         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
37003         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
37004         (re_acquire_state_context):
37005         Remove unnecessary forward decls.
37006         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
37007         Put __attribute at function definition,
37008         now that the function decl has been removed.
37009         * lib/regex_internal.c (re_string_peek_byte_case):
37010         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
37011         Likewise.
37012
37013 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
37014
37015         * m4/regex.m4: Add AC_PREREQ(2.50).
37016         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
37017
37018 2005-08-25  Simon Josefsson  <jas@extundo.com>
37019
37020         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
37021         __fsetlocking.
37022
37023 2005-08-25  Simon Josefsson  <jas@extundo.com>
37024
37025         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
37026         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
37027         GLIBC specific code.
37028
37029 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37030
37031         Make regex safe for g++.  This fixes one real bug (an "err"
37032         that should have been "*err").  g++ problem reported by
37033         Sam Steingold.
37034         * lib/regex_internal.h (re_calloc): New macro, consistent with
37035         re_malloc etc.  All callers of calloc changed to use re_calloc.
37036         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
37037         not int.  All callers changed.
37038         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
37039         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
37040         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
37041         (find_recover_state): Change "err" to "*err"; this fixes what
37042         appears to be a real bug.
37043         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
37044         versus int.
37045
37046 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37047
37048         * modules/regex (Depends-on): Add malloc, since the code
37049         assumes that !malloc(0) means failure.
37050
37051 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37052
37053         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
37054
37055         alloca modernization/simplification for regex.
37056         * lib/regex.c: Remove portability cruft for alloca.  This no longer
37057         needs to be at the start of the file, and can be moved into
37058         regex_internal.h and simplified.
37059         * lib/regex_internal.h: Include <alloca.h>.
37060         (__libc_use_alloca) [!defined _LIBC]: New macro.
37061         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
37062         now works outside glibc.
37063
37064 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37065
37066         * config/srclist.txt: Add glibc bugs 1241, 1245.
37067
37068 2005-08-25  Jim Meyering  <jim@meyering.net>
37069
37070         * lib/open-safer.c: Include <config.h>.
37071         Otherwise, we'd lose LARGEFILE support in any file using
37072         e.g. "fcntl--.h"
37073
37074 2005-08-25  Bruno Haible  <bruno@clisp.org>
37075
37076         * m4/minmax.m4: Require autoconf 2.52.
37077         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
37078         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
37079         alternatives of translit over the alphabet.
37080         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
37081
37082 2005-08-24  Simon Josefsson  <jas@extundo.com>
37083
37084         * tests/test-getpass.c: New file.
37085
37086 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
37089         for GNU regex features.
37090
37091 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37092
37093         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
37094         * lib/regex.h (regerror): Likewise.
37095
37096         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
37097         requires this.  (The code never needed it.)
37098
37099         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
37100         All uses of recently-renamed identifiers changed to use the new,
37101         POSIX-compliant names.  The code will build and run just fine
37102         without these changes, but it's better to eat our own dog food
37103         and use the standard-conforming names.
37104
37105         * lib/regex.h: Fix a multitude of POSIX name space violations.
37106         These changes have an effect only for programs that define
37107         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
37108         do not change anything for programs compiled in the normal way.
37109         Also, there is no effect on the ABI.
37110
37111         (_REGEX_SOURCE): New macro.
37112         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
37113         defined and _GNU_SOURCE is not; this fixes a name space violation.
37114
37115         Rename the following macros to obey POSIX requirements.
37116         The old names are still visible as macros if _REGEX_SOURCE is defined.
37117         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
37118         RE_BACKSLASH_ESCAPE_IN_LISTS.
37119         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
37120         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
37121         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
37122         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
37123         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
37124         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
37125         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
37126         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
37127         (REG_INTERVALS): renamed from RE_INTERVALS.
37128         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
37129         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
37130         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
37131         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
37132         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
37133         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
37134         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
37135         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
37136         RE_UNMATCHED_RIGHT_PAREN_ORD.
37137         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
37138         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
37139         (REG_DEBUG): renamed from RE_DEBUG.
37140         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
37141         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
37142         unusual, since we can't clash with the POSIX REG_ICASE.
37143         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
37144         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
37145         (REG_NO_SUB): renamed from RE_NO_SUB.
37146         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
37147         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
37148         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
37149         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
37150         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
37151         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
37152         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
37153         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
37154         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
37155         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
37156         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
37157         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
37158         RE_SYNTAX_POSIX_MINIMAL_BASIC.
37159         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
37160         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
37161         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
37162         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
37163         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
37164         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
37165         (REG_FIXED): Renamed from REGS_FIXED.
37166         (REG_NREGS): Renamed from RE_NREGS.
37167
37168         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
37169         of other REG_* macros, since POSIX says the user is allowed to
37170         #undef these macros selectively.
37171
37172         (reg_errcode_t): Update comment stating what other tables need
37173         to be consistent.
37174
37175         Rename the following enum values to obey POSIX requirements.
37176         The old names are still visible as macros.
37177         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
37178         is not defined, since GNU is supposed to be a superset of POSIX as
37179         much as possible, and since we want reg_errcode_t to be a signed
37180         type for implementation consistency.
37181         (_REG_NOERROR): Renamed from REG_NOERROR.
37182         (_REG_NOMATCH): Renamed from REG_NOMATCH.
37183         (_REG_BADPAT): Renamed from REG_BADPAT.
37184         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
37185         (_REG_ECTYPE): Renamed from REG_ECTYPE.
37186         (_REG_EESCAPE): Renamed from REG_EESCAPE.
37187         (_REG_ESUBREG): Renamed from REG_ESUBREG.
37188         (_REG_EBRACK): Renamed from REG_EBRACK.
37189         (_REG_EPAREN): Renamed from REG_EPAREN.
37190         (_REG_EBRACE): Renamed from REG_EBRACE.
37191         (_REG_BADBR): Renamed from REG_BADBR.
37192         (_REG_ERANGE): Renamed from REG_ERANGE.
37193         (_REG_ESPACE): Renamed from REG_ESPACE.
37194         (_REG_BADRPT): Renamed from REG_BADRPT.
37195         (_REG_EEND): Renamed from REG_EEND.
37196         (_REG_ESIZE): Renamed from REG_ESIZE.
37197         (_REG_ERPAREN): Renamed from REG_ERPAREN.
37198         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
37199         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
37200         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
37201         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
37202
37203         (_REG_RE_NAME, _REG_RM_NAME): New macros.
37204         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
37205         changed.  But support the old name if the new one is not defined
37206         and if _REGEX_SOURCE.
37207
37208         Change the following member names in struct re_pattern_buffer.
37209         The old names are still supported if !_REGEX_SOURCE.
37210         The new names are always supported, regardless of _REGEX_SOURCE.
37211         (re_buffer): Renamed from buffer.
37212         (re_allocated): Renamed from allocated.
37213         (re_used): Renamed from used.
37214         (re_syntax): Renamed from syntax.
37215         (re_fastmap): Renamed from fastmap.
37216         (re_translate): Renamed from translate.
37217         (re_can_be_null): Renamed from can_be_null.
37218         (re_regs_allocated): Renamed from regs_allocated.
37219         (re_fastmap_accurate): Renamed from fastmap_accurate.
37220         (re_no_sub): Renamed from no_sub.
37221         (re_not_bol): Renamed from not_bol.
37222         (re_not_eol): Renamed from not_eol.
37223         (re_newline_anchor): Renamed from newline_anchor.
37224
37225         Change the following member names in struct re_registers.
37226         The old names are still supported if !_REGEX_SOURCE.
37227         The new names are always supported, regardless of _REGEX_SOURCE.
37228         (rm_num_regs): Renamed from num_regs.
37229         (rm_start): Renamed from start.
37230         (rm_end): Renamed from end.
37231
37232         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
37233         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
37234         Prepend __ to parameter names.
37235
37236         Undo yesterday's changes.
37237
37238 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37239
37240         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
37241         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
37242         lib/regex.c.
37243
37244 2005-08-24  Jim Meyering  <jim@meyering.net>
37245
37246         Sync from coreutils.
37247         * m4/fcntl-safer.m4: New file.
37248
37249         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
37250         and object files for this module.
37251
37252 2005-08-24  Jim Meyering  <jim@meyering.net>
37253
37254         Sync from coreutils.
37255         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
37256
37257 2005-08-24  Jim Meyering  <jim@meyering.net>
37258
37259         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
37260         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
37261
37262 2005-08-24  Jim Meyering  <jim@meyering.net>
37263
37264         * modules/fcntl-safer: New module.
37265         * modules/fts (Depends-on): Add fcntl-safer.
37266         * MODULES.html.sh (File descriptor based Input/Output):
37267         Add fcntl-safer.
37268
37269 2005-08-24  Bruno Haible  <bruno@clisp.org>
37270
37271         Support for unit test modules.
37272         * modules/README: Mention tests modules.
37273         * modules/TEMPLATE-TESTS: New file.
37274         * gnulib-tool: New options --extract-tests-module, --with-tests and
37275         --tests-base (unused for the moment).
37276         (testsbase, inctests): New variables.
37277         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
37278         (func_verify_module): Exclude TEMPLATE-TESTS.
37279         (func_verify_nontests_module, func_verify_tests_module): New functions.
37280         (func_get_dependencies): Add implicit dependency for tests modules.
37281         (func_get_tests_module): New function.
37282         (func_modules_transitive_closure): When --with-tests was specified,
37283         include the unit tests as well, unless explicitly avoided.
37284         (func_emit_lib_Makefile_am): Ignore the tests modules here.
37285         (func_emit_tests_Makefile_am): New function.
37286         (func_create_testdir): When --with-tests was specified, emit a
37287         tests/ directory.
37288         * MODULES.html.sh (Future developments): Update.
37289
37290 2005-08-24  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/tls-tests: New file.
37293         * tests/test-tls.c: New file, from GNU gettext.
37294
37295 2005-08-24  Bruno Haible  <bruno@clisp.org>
37296
37297         * modules/lock-tests: New file.
37298         * tests/test-lock.c: New file, from GNU gettext.
37299
37300 2005-08-24  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/lock.h: Add multiple inclusion guard.
37303         * lib/tls.h: Add multiple inclusion guard.
37304
37305 2005-08-24  Bruno Haible  <bruno@clisp.org>
37306
37307         * gnulib-tool: Add support for the --aux-dir option to
37308         --create-testdir, --create-megatestdir, --test, --megatest.
37309         (func_create_testdir, func_create_megatestdir): Optionally emit a
37310         AC_CONFIG_AUX_DIR directive.
37311         (create-testdir, create-megatestdir, test, megatest): Provide a
37312         default value for $auxdir.
37313
37314 2005-08-24  Bruno Haible  <bruno@clisp.org>
37315
37316         * gnulib-tool (import): Use compound statement instead of subshell
37317         where possible.
37318
37319 2005-08-24  Bruno Haible  <bruno@clisp.org>
37320
37321         * gnulib-tool (import): Change --aux-dir default to "build-aux".
37322
37323 2005-08-24  Bruno Haible  <bruno@clisp.org>
37324
37325         * gnulib-tool (func_version): Update.
37326
37327 2005-08-24  Bruno Haible  <bruno@clisp.org>
37328
37329         * gnulib-tool (func_import, func_create_testdir,
37330         func_create_megatestdir): Quote all autoconf macro arguments.
37331
37332 2005-08-24  Bruno Haible  <bruno@clisp.org>
37333
37334         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
37335         option --force, because --force causes the aclocal.m4 of each
37336         subdirectory to be newer than the corresponding config.h.in.
37337
37338 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37339
37340         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
37341         All contents moved to gl_REGEX.
37342         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
37343         assume that it does.
37344
37345 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37346
37347         * lib/regex.h (REG_NOSYS)
37348         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
37349         Define, since POSIX requires it as of 2001.
37350         (_REG_ENOSYS)
37351         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
37352         New private symbol, used to keep the enum signed in all cases.
37353         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
37354         Youngman in
37355         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
37356
37357         * lib/regex_internal.c (re_string_skip_chars, register_state):
37358         (calc_state_hash):
37359         Remove forward decls; no longer needed now that we use prototypes.
37360         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
37361         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
37362         (clean_state_log_if_needed): Likewise.
37363
37364 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37365
37366         * config/srclist.txt: Add glibc bugs 1231-1233.
37367
37368 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37369
37370         Fix problems reported by Sam Steingold in
37371         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
37372         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
37373         assumed that reg_errcode_t is a signed type, which is not
37374         necessarily true if _XOPEN_SOURCE is not defined.
37375         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
37376         since some compilers warn about it otherwise.
37377
37378 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37379
37380         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
37381         (init_word_char, create_initial_state, duplicate_node_closure):
37382         (fetch_token, peek_token_bracket, build_range_exp):
37383         (build_collating_symbol): Remove forward decls; no longer needed
37384         now that we use prototypes.
37385
37386         * lib/regcomp.c:
37387         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
37388         (re_compile_fastmap_iter, regcomp, regerror, regfree):
37389         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
37390         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
37391         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
37392         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
37393         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
37394         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
37395         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
37396         (build_range_exp, build_collating_symbol, parse_bracket_exp):
37397         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
37398         (build_charclass, build_charclass_op, fetch_number, create_tree):
37399         (create_token_tree, mark_opt_subexp, duplicate_tree):
37400         Use prototypes rather than old-style definitions.
37401
37402         * lib/regex_internal.c:
37403         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
37404         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
37405         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
37406         (re_string_reconstruct, re_string_peek_byte_case):
37407         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
37408         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
37409         (re_node_set_init_copy, re_node_set_add_intersect):
37410         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
37411         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
37412         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
37413         (re_acquire_state, re_acquire_state_context, register_state):
37414         (create_ci_newstate, create_cd_newstate, free_state):
37415         Likewise.
37416         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
37417         re_search_2):
37418         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
37419         (re_search_internal, prune_impossible_nodes):
37420         (acquire_init_state_context, check_matching, static):
37421         (check_halt_node_context, check_halt_state_context, proceed_next_node):
37422         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
37423         (update_regs, sift_states_backward, build_sifted_states):
37424         (clean_state_log_if_needed, merge_state_array):
37425         (update_cur_sifted_state, add_epsilon_src_nodes):
37426         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
37427         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
37428         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
37429         (find_recover_state, check_subexp_matching_top, transit_state_mb):
37430         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
37431         (check_arrival, check_arrival_add_next_nodes):
37432         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
37433         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
37434         (check_node_accept_bytes, check_node_accept, extend_buffers):
37435         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
37436         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
37437         (sift_ctx_init):
37438         Likewise.
37439
37440         * lib/regex_internal.h:
37441         (re_string_allocate, re_string_construct, re_string_reconstruct):
37442         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
37443         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
37444         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
37445         (re_string_context_at, re_string_peek_byte_case):
37446         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
37447         is defined, since we now use prototypes always.
37448
37449         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
37450         C89 or better.  All uses removed.
37451
37452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37453
37454         * config/srclist.txt: Add glibc bugs 1220-1227.
37455
37456 2005-08-20  Jim Meyering  <jim@meyering.net>
37457
37458         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
37459         of unused local, dfa.
37460
37461 2005-08-20  Bruno Haible  <bruno@clisp.org>
37462
37463         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
37464
37465 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37466
37467         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
37468         (re_node_set_insert_last, re_dfa_add_node):
37469         Rename local variables to avoid GCC shadowing warnings.
37470
37471 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37472
37473         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
37474         [defined lint]: Suppress bogus uninitialized-variable warnings.
37475
37476         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
37477         and let the caller return REG_ESPACE if out of space.  This
37478         removes an uninitialied-variable warning with GCC 4.0.1, and also
37479         avoids taking the address of a local variable.  All callers
37480         changed.
37481
37482 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37483
37484         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
37485         $LIBCSRC/posix/regexec.c.
37486         Add glibc bug 1217 for regcomp.c.
37487
37488 2005-08-19  Jim Meyering  <jim@meyering.net>
37489
37490         * lib/regexec.c (proceed_next_node): Redo local variables to
37491         avoid GCC shadowing warnings.
37492
37493 2005-08-18  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/strstr.c (strstr): Fix return value in multibyte case.
37496         * lib/strcasestr.c (strcasestr): Likewise.
37497
37498 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37499
37500         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
37501
37502 2005-08-17  Jim Meyering  <jim@meyering.net>
37503
37504         Make the %s format (seconds since the epoch) work for a negative
37505         number and when used with a zero-padded field width, e.g. %015s.
37506
37507         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
37508         label so that it precedes the code to set `digits'.  Otherwise,
37509         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
37510         print `00-22'.  Now, it prints `-0022', as it should.
37511
37512 2005-08-17  Bruno Haible  <bruno@clisp.org>
37513
37514         * modules/strstr (Files): Add m4/mbrtowc.m4.
37515         (Depends-on): Add mbuiter.
37516
37517 2005-08-17  Bruno Haible  <bruno@clisp.org>
37518
37519         * modules/strcasestr: New file.
37520         * MODULES.html.sh (String handling, based on ANSI C 89): Add
37521         strcasestr.
37522
37523 2005-08-17  Bruno Haible  <bruno@clisp.org>
37524
37525         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
37526
37527 2005-08-17  Bruno Haible  <bruno@clisp.org>
37528
37529         * modules/mbuiter: New file.
37530         * MODULES.html.sh (Extended multibyte and wide character utilities):
37531         Add mbuiter.
37532
37533 2005-08-17  Bruno Haible  <bruno@clisp.org>
37534
37535         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
37536         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
37537
37538 2005-08-17  Bruno Haible  <bruno@clisp.org>
37539
37540         * m4/strcasestr.m4: New file.
37541
37542 2005-08-17  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
37545         * lib/strstr.c: Completely rewritten, with multibyte locale support.
37546
37547 2005-08-17  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/strcasestr.h: New file.
37550         * lib/strcasestr.c: New file.
37551
37552 2005-08-17  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/strcasecmp.c: Use mbuiter.h.
37555
37556 2005-08-17  Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/mbuiter.h: New file.
37559
37560 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
37561
37562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
37563         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
37564         and gl_GETOPT are both invoked via different paths (as happens
37565         with GNU tar CVS because it uses both argp and getopt), the former
37566         wins.
37567
37568 2005-08-16  Bruno Haible  <bruno@clisp.org>
37569
37570         * modules/tls: New file.
37571         * MODULES.html.sh (Multithreading): Add tls.
37572
37573 2005-08-16  Bruno Haible  <bruno@clisp.org>
37574
37575         * modules/strnlen1: New file.
37576         * MODULES.html.sh (String handling): Add strnlen1.
37577
37578 2005-08-16  Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/strcase (Files): Add m4/mbrtowc.m4.
37581         (Depends-on): Add strnlen1, mbchar.
37582
37583 2005-08-16  Bruno Haible  <bruno@clisp.org>
37584
37585         * modules/mbiter: New file.
37586         * MODULES.html.sh (Extended multibyte and wide character utilities):
37587         Add mbiter.
37588
37589 2005-08-16  Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/mbfile: New file.
37592         * MODULES.html.sh (Extended multibyte and wide character utilities):
37593         Add mbfile.
37594
37595 2005-08-16  Bruno Haible  <bruno@clisp.org>
37596
37597         * modules/mbchar: New file.
37598         * MODULES.html.sh (Extended multibyte and wide character utilities):
37599         New section.
37600
37601 2005-08-16  Bruno Haible  <bruno@clisp.org>
37602
37603         * m4/tls.m4: New file, from GNU gettext.
37604
37605 2005-08-16  Bruno Haible  <bruno@clisp.org>
37606
37607         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
37608         always.
37609         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
37610
37611 2005-08-16  Bruno Haible  <bruno@clisp.org>
37612
37613         * m4/mbiter.m4: New file.
37614
37615 2005-08-16  Bruno Haible  <bruno@clisp.org>
37616
37617         * m4/mbfile.m4: New file.
37618
37619 2005-08-16  Bruno Haible  <bruno@clisp.org>
37620
37621         * m4/mbchar.m4: New file.
37622
37623 2005-08-16  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/tls.h: New file, from GNU gettext.
37626         * lib/tls.c: New file, from GNU gettext.
37627
37628 2005-08-16  Bruno Haible  <bruno@clisp.org>
37629
37630         * lib/strnlen1.h: New file.
37631         * lib/strnlen1.c: New file.
37632
37633 2005-08-16  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
37636         (mbi_init): Update.
37637         (mbi_avail, mbi_advance): Let the iteration end before the terminating
37638         NUL byte, not after it.
37639
37640 2005-08-16  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/strcase.h (strcasecmp): Add note in comments.
37643         * lib/strncasecmp.c: Use code from strcasecmp.c.
37644         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
37645         (strcasecmp): Work correctly in multibyte locales.
37646
37647 2005-08-16  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/mbiter.h: New file.
37650
37651 2005-08-16  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/mbfile.h: New file.
37654
37655 2005-08-16  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/mbchar.h: New file.
37658         * lib/mbchar.c: New file.
37659
37660 2005-08-16  Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
37663         the valid ones. Makes the comparison operations transitive:
37664         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
37665         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
37666
37667 2005-08-15  Simon Josefsson  <jas@extundo.com>
37668
37669         * modules/ssize_t (License): Change to 'unlimited'.
37670
37671         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
37672
37673 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37674
37675         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
37676         Add comments for each pending glibc patch.
37677
37678 2005-08-15  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/regex.h (__restrict_arr): Don't define to __restrict if
37681         __cplusplus is defined.
37682
37683 2005-08-14  Jim Meyering  <jim@meyering.net>
37684
37685         Sync from coreutils.
37686
37687         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
37688         Use the hash-table-based cycle-detection code not just when
37689         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
37690         Reported by James Youngman in
37691         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
37692         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
37693         FTS_TIGHT_CYCLE_CHECK.
37694         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
37695         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
37696         once again.
37697         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
37698         * lib/fts.c (fd_safer): Remove decl.
37699         Include fcntl--.h rather than unistd-safer.h
37700         (fts_safe_changedir): Don't call fd_safer; no longer needed
37701         now that we include fcntl--.h.
37702
37703 2005-08-12  Simon Josefsson  <jas@extundo.com>
37704
37705         * modules/getndelim2: Use ssize_t module.
37706         * modules/getnline: Likewise.
37707         * modules/safe-read: Likewise.
37708         * modules/xreadlink: Likewise.
37709
37710         * modules/ssize_t: New file.
37711
37712 2005-08-12  Simon Josefsson  <jas@extundo.com>
37713
37714         * m4/readline.m4: Look for termcap, curses or ncurses if required.
37715
37716 2005-08-12  Simon Josefsson  <jas@extundo.com>
37717
37718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37719         ssize_t.
37720
37721 2005-08-12  Simon Josefsson  <jas@extundo.com>
37722
37723         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
37724         readline, getdelim and check_version.
37725         (Support for systems lacking ISO C 99: Sizes of integer types):
37726         Add size_max.
37727
37728 2005-08-12  Bruno Haible  <bruno@clisp.org>
37729
37730         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
37731
37732 2005-08-11  Simon Josefsson  <jas@extundo.com>
37733
37734         * modules/readline: New file.
37735
37736         * modules/strnlen (Files): Add strnlen.h.
37737
37738 2005-08-11  Simon Josefsson  <jas@extundo.com>
37739
37740         * m4/readline.m4: New file.
37741
37742 2005-08-11  Simon Josefsson  <jas@extundo.com>
37743
37744         * lib/readline.h, readline.c: New file.
37745
37746 2005-08-11  Simon Josefsson  <jas@extundo.com>
37747
37748         * doc/gnulib.texi (Initial import, Finishing touches): Mention
37749         gl_AVOID.
37750
37751 2005-08-11  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/strnlen.h (strnlen): Change parameter name to match comment.
37754
37755 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
37756
37757         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
37758
37759 2005-08-10  Simon Josefsson  <jas@extundo.com>
37760
37761         * tests/test-iconvme.c: New file.
37762
37763 2005-08-10  Simon Josefsson  <jas@extundo.com>
37764
37765         * m4/strnlen.m4: New file.
37766
37767         * m4/strndup.m4: Don't check for strnlen declaration, done in
37768         strnlen.m4.
37769
37770 2005-08-10  Simon Josefsson  <jas@extundo.com>
37771
37772         * lib/strndup.c: Use strnlen.h.
37773
37774         * lib/strnlen.h: New file.
37775
37776 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37777
37778         * README: Typos.
37779
37780 2005-08-02  Simon Josefsson  <jas@extundo.com>
37781
37782         * modules/readline: New file.
37783
37784 2005-08-02  Simon Josefsson  <jas@extundo.com>
37785
37786         * modules/getdelim: New file.
37787
37788         * modules/getline: Rewrite, don't use getndelim2.
37789
37790 2005-08-02  Simon Josefsson  <jas@extundo.com>
37791
37792         * m4/getline.m4: Separate out getdelim stuff into separate module.
37793
37794         * m4/getdelim.m4: New file.
37795
37796 2005-08-02  Simon Josefsson  <jas@extundo.com>
37797
37798         * lib/getline.h, getline.c: Rewrite.
37799
37800         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
37801
37802 2005-07-31  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/lock.h (gl_lock_initializer): New macro.
37805         (gl_lock_define_initialized): Use it.
37806         (gl_rwlock_initializer): New macro.
37807         (gl_rwlock_define_initialized): Use it.
37808         (gl_recursive_lock_initializer): New macro.
37809         (gl_recursive_lock_define_initialized): Use it.
37810
37811 2005-07-30  Karl Berry  <karl@gnu.org>
37812
37813         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
37814         Report from Ben Pfaff, regarding getopt.
37815
37816 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
37817
37818         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
37819         normal way.
37820         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
37821         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
37822         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
37823         (gl_GETOPT): Use the new macros.  Most of the implementation
37824         is moved to the new macros.  This is for programs like Emacs
37825         that don't want all the functionality of gl_GETOPT.
37826
37827 2005-07-26  Bruno Haible  <bruno@clisp.org>
37828
37829         * m4/lock.m4: Update from GNU gettext.
37830
37831 2005-07-26  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/lock.h: Update from GNU gettext.
37834         * lib/lock.c: Update from GNU gettext.
37835
37836 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
37839         obsolescent AC_TRY_RUN.  Include the default includes files, for
37840         'exit'.
37841
37842 2005-07-24  Bruno Haible  <bruno@clisp.org>
37843
37844         * modules/visibility: New file.
37845         * MODULES.html.sh (Misc): Add visibility.
37846
37847 2005-07-24  Bruno Haible  <bruno@clisp.org>
37848
37849         * m4/visibility.m4: New file.
37850
37851 2005-07-24  Bruno Haible  <bruno@clisp.org>
37852
37853         * doc/visibility.texi: New file.
37854
37855 2005-07-22  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
37858         $(ALLOCA_H), redundant through BUILT_SOURCES.
37859         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
37860         redundant through BUILT_SOURCES.
37861         * modules/byteswap (Makefile.am): Remove explicit dependency on
37862         $(BYTESWAP_H), redundant through BUILT_SOURCES.
37863         * modules/fnmatch (Makefile.am): Remove explicit dependency on
37864         $(FNMATCH_H), redundant through BUILT_SOURCES.
37865         * modules/getopt (Makefile.am): Remove explicit dependency on
37866         $(GETOPT_H), redundant through BUILT_SOURCES.
37867         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
37868         redundant through BUILT_SOURCES.
37869         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
37870         redundant through BUILT_SOURCES.
37871         * modules/stdbool (Makefile.am): Remove explicit dependency on
37872         $(STDBOOL_H), redundant through BUILT_SOURCES.
37873         * modules/stdint (Makefile.am): Remove explicit dependency on
37874         $(STDINT_H), redundant through BUILT_SOURCES.
37875         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
37876         Remove explicit dependency on $(SYSEXITS_H).
37877         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
37878
37879 2005-07-18  Simon Josefsson  <jas@extundo.com>
37880
37881         * lib/check-version.c (check_version): Accept identical versions too.
37882
37883 2005-07-18  Bruno Haible  <bruno@clisp.org>
37884
37885         * modules/lock: New file.
37886         * MODULES.html.sh (Multithreading): New section.
37887
37888 2005-07-18  Bruno Haible  <bruno@clisp.org>
37889
37890         * m4/lock.m4: New file, from GNU gettext.
37891
37892 2005-07-18  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/lock.h: New file, from GNU gettext.
37895         * lib/lock.c: New file, from GNU gettext.
37896
37897 2005-07-18  Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/lock.h (gl_once_t): New type.
37900         (gl_once_define, gl_once): New macros.
37901         * lib/lock.c (fresh_once): New variable.
37902         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
37903         functions.
37904
37905 2005-07-16  Simon Josefsson  <jas@extundo.com>
37906
37907         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
37908         workaround, suggested by Bruno.
37909
37910 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37911
37912         * modules/xalloc (Depends-on): Add xalloc-die.
37913         * modules/xvasprintf (Depends-on): Add xalloc-die.
37914
37915 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37916
37917         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37918         with a minor change.
37919
37920 2005-07-15  Bruno Haible  <bruno@clisp.org>
37921
37922         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37923         When using lib/poll.c, define poll as rpl_poll.
37924
37925 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
37926
37927         * modules/argp (Depends-on): Remove unlocked-io.
37928
37929 2005-07-14  Derek Price  <derek@ximbiot.com>
37930
37931         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
37932         for glob symlink bug.
37933
37934 2005-07-14  Bruno Haible  <bruno@clisp.org>
37935
37936         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37937         Instead, test for *_unlocked function declarations directly.
37938
37939 2005-07-11  Simon Josefsson  <jas@extundo.com>
37940
37941         * modules/size_max: New file.
37942
37943         * modules/xsize: Depend on size_max module for size_max.m4.
37944
37945 2005-07-11  Simon Josefsson  <jas@extundo.com>
37946
37947         * lib/size_max.h: New file.
37948
37949 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37950
37951         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37952         copyright symbol and the year.
37953         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37954         (version_etc_va): Use parameterized copyright notice.
37955         Reword to conform to the current GNU coding standards.
37956
37957 2005-07-11  Karl Berry  <karl@gnu.org>
37958
37959         * doc/gnulib.texi (Quoting): new node.
37960         (Initial import): more info, from Patrice.
37961
37962 2005-07-11  Bruno Haible  <bruno@clisp.org>
37963
37964         * gnulib-tool (func_usage): Document option --avoid.
37965         (Command line options): Handle --avoid.
37966         (func_acceptable): New function.
37967         (func_modules_transitive_closure): Use it.
37968
37969 2005-07-11  Bruno Haible  <bruno@clisp.org>
37970
37971         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37972         Reported by Jim Meyering.
37973
37974 2005-07-10  Bruno Haible  <bruno@clisp.org>
37975
37976         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37977         Needed when size_t is smaller than 'unsigned int'.
37978         Reported by Paul Eggert.
37979
37980 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37981
37982         * modules/argp (Depends-on): Add unlocked-io
37983
37984 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37985
37986         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37987         block of defines.
37988
37989 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37990
37991         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37992         fix now.
37993
37994 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37995         and Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37998         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37999
38000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
38001
38002         * modules/regex (Files): Add lib/regex_internal.c,
38003         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
38004         (Depends-on): Add extensions.
38005         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
38006
38007 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
38008
38009         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
38010         pathconf.
38011         * m4/same.m4 (gl_SAME): Likewise.
38012         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
38013
38014         * m4/regex.m4: Adjust to new libc regex implementation.
38015         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
38016         all the .c and .h parts of (the new) regex.
38017         Quote the m4 stuff better.
38018         Check for RE_ICASE bug of old gnulib.
38019         Check for REG_STARTEND of recent libc.
38020         Rename local variables from jm_* to gl_*.
38021         Quote operand of "test -f".
38022         Say "recent enough" version of libc, not "version 2".
38023         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
38024         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
38025         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
38026         Remove check for btowc, isascii.
38027         Require AM_LANGINFO_CODESET.
38028
38029 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
38030
38031         * lib/regex.c, regex.h: Sync from libc.
38032         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
38033         * lib/regexec.c:
38034         New files, synced from libc, except that regex_internal.h
38035         currently has a small porting fix.
38036
38037 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
38038
38039         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
38040         regex_internal.c, regexec.c.
38041         Add regex_internal.h too, but as a comment, since the libc version
38042         is currently broken in gnulib mode.
38043
38044 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         Support programs like Emacs that use gnulib but not gettext.
38047         * MODULES.html.sh (Internationalization functions): Add gettext-h.
38048         * modules/gettext-h: New file.
38049         * modules/gettext (Files): Remove lib/gettext.h.
38050         (Depends-on): Add gettext-h.
38051         (Makefile.am): Remove lib_SOURCES.
38052         * modules/argmatch, modules/c-stack, modules/closeout:
38053         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
38054         * modules/execute, modules/file-type, modules/getaddrinfo:
38055         * modules/getopt, modules/human, modules/javacomp:
38056         * modules/javaexec, modules/mkdir-p, modules/obstack:
38057         * modules/openat, modules/pagealign_alloc, modules/pipe:
38058         * modules/quotearg, modules/regex, modules/rpmatch:
38059         * modules/unicodeio, modules/userspec, modules/version-etc:
38060         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
38061         * modules/xsetenv:
38062         Depend on gettext-h, not gettext.
38063
38064 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38065
38066         * gnulib-tool (func_import): Add support for 'public domain' license.
38067         * modules/alloca, modules/atexit, modules/memmove:
38068         Now public domain, not GPL.
38069         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
38070         * modules/realloc, modules/strerror, modules/strtod:
38071         Now LGPL, not GPL.
38072
38073 2005-07-05  Bruno Haible  <bruno@clisp.org>
38074
38075         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
38076         autoconf CVS. Needed for mingw.
38077
38078 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38079
38080         Remove the dependency of the strftime module on the tzset module.
38081         * modules/strftime (Depends-on): Remove dependency on tzset.
38082
38083 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38084
38085         Remove the dependency of the strftime module on the tzset module.
38086         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
38087         gl_FUNC_TZSET_CLOBBER.
38088
38089 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38090
38091         Remove the dependency of the strftime module on the tzset module.
38092         * lib/strftime.c (my_strftime)
38093         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
38094         Copy the input structure, to work around some of the bug with
38095         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
38096         Solaris releases, you should also use the tzset module, but we won't
38097         require it as a dependency any more since we don't want LGPLed code
38098         to depend on GPLed code.
38099
38100 2005-07-02  Jim Meyering  <jim@meyering.net>
38101
38102         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
38103         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
38104         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
38105         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
38106
38107 2005-07-02  Jim Meyering  <jim@meyering.net>
38108
38109         * lib/backupfile.c (backup_args): Change a `0' to NULL.
38110
38111 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
38112
38113         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
38114         declares only 'struct timespec;' (!).
38115
38116 2005-07-01  Jim Meyering  <jim@meyering.net>
38117
38118         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
38119         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
38120         * lib/save-cwd.c, tempname.c:
38121         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
38122         and don't include <sys/file.h>).
38123
38124 2005-06-29  Jim Meyering  <jim@meyering.net>
38125
38126         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
38127         type name.  Use the variable name instead.
38128         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
38129         Likewise.
38130
38131 2005-06-28  Simon Josefsson  <jas@extundo.com>
38132
38133         * modules/check-version (Files): Add check-version.m4.
38134
38135 2005-06-28  Simon Josefsson  <jas@extundo.com>
38136
38137         * m4/check-version.m4: New file, suggested by Jim Meyering
38138         <jim@meyering.net>.
38139
38140 2005-06-28  Simon Josefsson  <jas@extundo.com>
38141
38142         * lib/check-version.h, lib/check-version.c: New files.
38143
38144 2005-06-28  Simon Josefsson  <jas@extundo.com>
38145
38146         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
38147         collision with global variable.  Better indentation.  Don't
38148         increment buffer pointer beyond buffer end.  Based on comments
38149         from Paul Eggert <eggert@cs.ucla.edu>.
38150
38151         * lib/base64.h: Indent.
38152
38153 2005-06-28  Simon Josefsson  <jas@extundo.com>
38154
38155         * doc/gnulib.texi (Library version handling): New section.
38156
38157 2005-06-28  Jim Meyering  <jim@meyering.net>
38158
38159         * check-module (find_included_lib_files): Hard-code another
38160         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
38161         but modules/fts-lgpl (correctly) does not list those files.
38162
38163         * modules/canonicalize (Files): Add lib/pathmax.h.
38164
38165 2005-06-25  Simon Josefsson  <jas@extundo.com>
38166
38167         * modules/check-version: New file.
38168
38169 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
38170
38171         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
38172         initializer of struct addrinfo, as an indication that we don't
38173         care how many members the structure has.
38174
38175 2005-06-24  Derek Price  <derek@ximbiot.com>
38176         and Bruno Haible  <bruno@clisp.org>
38177
38178         Remove stat module & update lstat.
38179         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
38180         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38181         * m4/stat.m4: Remove this file.
38182
38183 2005-06-24  Derek Price  <derek@ximbiot.com>
38184         and Bruno Haible  <bruno@clisp.org>
38185
38186         Remove stat module & update lstat.
38187         * lib/stat.c: Remove this file...
38188         (slash_aware_lstat): ...moving this content and its support...
38189         * lib/lstat.c (rpl_lstat): ...into here.
38190         * lib/lstat.h: New file.
38191
38192 2005-06-24  Derek Price  <derek@ximbiot.com>
38193         and Bruno Haible  <bruno@clisp.org>
38194
38195         Remove stat module & update lstat.
38196         * config/srclist.txt (libc sources): Remove stat.
38197
38198 2005-06-24  Derek Price  <derek@ximbiot.com>
38199         and Bruno Haible  <bruno@clisp.org>
38200
38201         Remove stat module & update lstat.
38202         * MODULES.html.sh (stat): Remove.
38203         * MODULES.html: Regenerated.
38204         * modules/lstat (Description): Correct function name.
38205         (Files): Add "lstat.h".
38206         (Depends-on): Remove stat, add xalloc, stat-macros.
38207         * modules/stat: Remove this file.
38208         (Include): Add "lstat.h", remove <sys/stat.h>.
38209
38210 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38211
38212         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
38213         (ranged_convert): Don't save conversion in a temporary struct.
38214         This causes a warning with GCC 4.0.0, and anyway in the typical
38215         case it's not worth the extra 100 bytes or so of code.
38216         (ranged_convert, __mktime_internal): When calling a function via a
38217         pointer P, use P () rather than (*P) (), as we now assume C89 or
38218         better.
38219
38220 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
38223         "who -r" failed to give output.  Problem reported by Tim Waugh.
38224
38225         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
38226         (xcalloc): Use it to avoid needless tests.
38227         Problem reported by Jim Meyering.
38228
38229 2005-06-20  Derek Price  <derek@ximbiot.com>
38230
38231         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
38232         unnecessary for Autoconfs > 2.59c.
38233
38234 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38235
38236         * lib/argp.h (__option_is_short): Check upper limit of
38237         __key. Isprint() requires its argument to have the value
38238         of an unsigned char or EOF.
38239
38240 2005-06-16  Jim Meyering  <jim@meyering.net>
38241
38242         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
38243         when either N or S is zero.
38244
38245 2005-06-16  Derek Price  <derek@ximbiot.com>
38246
38247         * m4/bison.m4: Declare YACC & YFLAGS precious.
38248
38249 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
38250
38251         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
38252         multibyte string or pattern, fall back on unibyte matching.
38253         Problem reported by James Youngman.
38254
38255 2005-06-08  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/csharpcomp: New file.
38258         * MODULES.html.sh (C#): Add csharpcomp.
38259
38260 2005-06-08  Bruno Haible  <bruno@clisp.org>
38261
38262         * m4/csharpcomp.m4: New file, from GNU gettext.
38263
38264 2005-06-08  Bruno Haible  <bruno@clisp.org>
38265
38266         * lib/csharpcomp.h: New file, from GNU gettext.
38267         * lib/csharpcomp.c: New file, from GNU gettext.
38268         * lib/csharpcomp.sh.in: New file, from GNU gettext.
38269
38270 2005-06-08  Bruno Haible  <bruno@clisp.org>
38271
38272         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
38273         warning on mingw.
38274
38275 2005-06-07  Derek Price  <derek@ximbiot.com>
38276
38277         Sync from CVS.
38278         * lib/glob_.h: Indent nested #ifdef.
38279
38280 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38281
38282         Sync from coreutils.
38283         Use "file name" when talking about file names, instead of "filename"
38284         or "path", as per the GNU coding standards.
38285         * lib/mkdir-p.c: Renamed from makepath.c.
38286         (make_dir_parents): Renamed from make_path.  All callers changed.
38287         * lib/mkdir-p.h: Likewise.  All includers changed.
38288         * lib/filenamecat.c: Renamed from path-concat.c.
38289         (file_name_concat): Renamed from path_concat.  All callers changed.
38290         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
38291         * lib/filenamecat.h: Likewise.  All includers changed.
38292         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
38293         in comments or local variable names.
38294         * lib/basename.c: Likewise.
38295         * lib/canonicalize.c, canonicalize.h: Likewise.
38296         * lib/dirname.c, dirname.h: Likewise.
38297         * lib/euidaccess.c: Likewise.
38298         * lib/exclude.c: Likewise
38299         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
38300         * lib/fsusage.c, fsuage.h: Likewise.
38301         * lib/fts.c, fts_.h: Likewise.
38302         * lib/getcwd.c: Likewise.
38303         * lib/getloadavg.c: Likewise.
38304         * lib/mkstemp.c: Likewise.
38305         * lib/mountlist.c, mountlist.h: Likewise.
38306         * lib/openat.c, openat.h: Likewise.
38307         * lib/readlink-stub.c: Likewise.
38308         * lib/readutmp.c, readutmp.h: Likewise.
38309         * lib/rename.c: Likewise.
38310         * lib/rmdir.c: Likewise.
38311         * lib/same.c: Likewise.
38312         * lib/savedir.c: Likewise.
38313         * lib/stripslash.c: Likewise.
38314         * lib/tempname.c: Likewise.
38315         * lib/xreadlink.c: Likewise.
38316         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
38317         All uses changed.
38318         * lib/exclude.h: Likewise.
38319
38320         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
38321         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38322         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
38323         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38324         * lib/pathmax.h: Include <limits.h> unconditionally, since other
38325         files have been getting away with it for years (MORE/BSD 4.3
38326         is extinct now).
38327         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
38328         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
38329
38330         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
38331         Define to 256, not 255, as per modern POSIX.
38332
38333 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38334
38335         Sync from coreutils.
38336         Use "file name" when talking about file names, instead of "filename"
38337         or "path", as per the GNU coding standards.
38338         * MODULES.html.sh: mkdir-p renamed from makepath.
38339         filenamecat renamed from path-concat.
38340         * modules/filenamecat: Renamed from modules/path-concat.
38341         (Files): filenamecat.h and filenamecat.c renamed from
38342         path-concat.h and path-concat.c.
38343         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
38344         (Include): filenamecat.h, not path-concat.h.
38345         * modules/mkdir-p: Renamed from modules/makepath.
38346         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
38347         makepath.c.
38348         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
38349         (Include): mkdir-p.h, not makepath.h.
38350
38351 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38352
38353         Sync from coreutils.
38354         * m4/mkdir-p.m4: Renamed from makepath.m4.
38355         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
38356         Rename files from makepath.c to mkdir-p.c, and from
38357         makepath.h to mkdir-p.h.
38358         * m4/filenamecat.m4: Renamed from path-concat.m4.
38359         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
38360         Rename files from path-concat.c to filenamecat.c,
38361         and from path-concat.h to filenamecat.h.
38362         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
38363         "file name" in local variables or comments.
38364         * m4/rename.m4: Likewise.
38365
38366 2005-06-01  Bruno Haible  <bruno@clisp.org>
38367
38368         * modules/csharpexec: New file.
38369         * MODULES.html.sh (C#): New section.
38370
38371 2005-06-01  Bruno Haible  <bruno@clisp.org>
38372
38373         * m4/csharp.m4: New file, from GNU gettext.
38374         * m4/csharpexec.m4: New file, from GNU gettext.
38375
38376 2005-06-01  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/csharpexec.h: New file, from GNU gettext.
38379         * lib/csharpexec.c: New file, from GNU gettext.
38380         * lib/csharpexec.sh.in: New file, from GNU gettext.
38381
38382 2005-05-31  Derek Price  <derek@ximbiot.com>
38383             Paul Eggert  <eggert@cs.ucla.edu>
38384
38385         Sync from cvs.
38386         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38387
38388 2005-05-31  Derek Price  <derek@ximbiot.com>
38389             Paul Eggert  <eggert@cs.ucla.edu>
38390
38391         Sync from cvs.
38392         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
38393
38394 2005-05-29  Derek Price  <derek@ximbiot.com>
38395
38396         * config/srclist.txt (glob_.h, glob.c): Add these files.
38397
38398 2005-05-29  Derek Price  <derek@ximbiot.com>
38399
38400         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
38401         * modules/glob: New file.
38402         * modules/getlogin_r: Add link to POSIX spec in description.
38403
38404 2005-05-29  Derek Price  <derek@ximbiot.com>
38405             Paul Eggert  <eggert@cs.ucla.edu>
38406
38407         * m4/glob.m4: New file.
38408
38409 2005-05-29  Derek Price  <derek@ximbiot.com>
38410             Paul Eggert  <eggert@cs.ucla.edu>
38411
38412         * lib/glob_.h, lib/glob.c: New files.
38413
38414 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38415
38416         * modules/fts (Files): Remove m4/inttypes-pri.m4.
38417         * modules/fts-lgpl (Depends-on): Remove gettext.
38418
38419 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38420
38421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
38422         and don't require gt_INTTYPES_PRI.
38423
38424 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38425
38426         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
38427
38428         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
38429         the configuration hassle isn't worth it.
38430         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
38431         (LONGEST_MODIFIER, PRIuMAX): Remove.
38432
38433 2005-05-27  Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/getlogin_r.h: Remove second include of <stddef.h>.
38436
38437 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38438
38439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
38440         _POSIX_PTHREAD_SEMANTICS for Solaris.
38441
38442 2005-05-25  Derek Price  <derek@ximbiot.com>
38443
38444         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
38445
38446 2005-05-25  Derek Price  <derek@ximbiot.com>
38447             Paul Eggert  <eggert@cs.ucla.edu>
38448
38449         * modules/getlogin_r, m4/getlogin_r.m4: New files.
38450         * lib/getlogin_r.c, getlogin_r.h: New files.
38451
38452 2005-05-25  Bruno Haible  <bruno@clisp.org>
38453             Derek Price  <derek@ximbiot.com>
38454
38455         * lib/getlogin_r.h: Simplify API documentation.
38456
38457 2005-05-23  Derek Price  <derek@ximbiot.com>
38458
38459         * modules/minmax (Files): Add m4/minmax.m4.
38460         (configure.ac): Add gl_MINMAX.
38461
38462 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38463
38464         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
38465         so that unistd-safer.h (GPL'ed code) need not be included.
38466
38467 2005-05-22  Bruno Haible  <bruno@clisp.org>
38468
38469         * m4/minmax.m4: New file.
38470         Based on a patch by Derek Price <derek@ximbiot.com>.
38471
38472 2005-05-22  Bruno Haible  <bruno@clisp.org>
38473
38474         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
38475         (INT64_MIN): Fix definition.
38476         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
38477
38478         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
38479         NEED_SIGNED_INT_TYPES.
38480
38481         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
38482         HAVE_SYSTEM_INTTYPES.
38483
38484 2005-05-22  Bruno Haible  <bruno@clisp.org>
38485
38486         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
38487         Also include <sys/param.h> if it defines MIN, MAX.
38488         Based on a patch by Derek Price <derek@ximbiot.com>.
38489
38490 2005-05-21  Jim Meyering  <jim@meyering.net>
38491
38492         * modules/fts (Files): Add m4/inttypes-pri.m4.
38493         (Depends-on): Add lstat and remove gettext.  Alphabetize.
38494
38495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38496
38497         New fts module.
38498         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
38499         (setup_dir, free_dir): New functions.
38500         (enter_dir, leave_dir): Define trivial
38501         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
38502         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
38503         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
38504         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
38505         Move to fts-cycle.c.
38506         (fts_open): Use setup_dir.
38507         (fts_close): Use free_dir.
38508         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
38509         This adds a label and some gotos, but the alternatives were messier.
38510         Check for memory allocation failure when entering a dir.
38511         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
38512         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
38513         (FTS): New member fts_cycle, that is a union that contains the
38514         old active_dir_ht and cycle_state.  All uses changed to mention
38515         fts_cycle.ht and fts_cycle.state.
38516         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
38517         fts.c, with the following changes:
38518         (setup_dir, free_dir): New functions.
38519         (enter_dir): Now returns bool.  Return true if successful, false
38520         if memory exhausted.  All callers changed.
38521         Do not bother partly cleaning up on
38522         memory allocation failure; that is free_dir's job.
38523         However, free ad if hash_insert fails, to avoid memory leak.
38524         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
38525         fts->fts_options to see which union member to use.
38526
38527 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38528
38529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
38530         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
38531
38532 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38533
38534         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
38535
38536 2005-05-20  Jim Meyering  <jim@meyering.net>
38537
38538         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
38539         Now a macro, to pacify GCC.
38540
38541 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38542
38543         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
38544         of -1.
38545
38546 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
38547
38548         * lib/chown.c (rpl_chown): Return -1 on failure.
38549
38550 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38551
38552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
38553         Don't check for stddef.h.
38554         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
38555         don't use its results.
38556         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
38557         since we include them unconditionally.  Don't require
38558         AM_STDBOOL_H, since stdbool is a prerequisite.
38559         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
38560         since we assume C89 or better.
38561         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
38562         as we don't use their results.
38563         Don't check for fchdir, memmove, memset, strrchr, as we use
38564         them unconditionally.
38565         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
38566         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
38567
38568 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38569
38570         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
38571         Include <stddef.h> unconditionally, since we assume C89 now.
38572         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
38573         * lib/fts.c: Include fts_.h first, to check interface.
38574         Do not include intprops.h; no longer needed.
38575         Include cycle-check.h and hash.h, since fts_.h no longer does.
38576         Remove unnecessary casts of closedir to void.
38577         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
38578         decide whether to decrement nlinks.
38579         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
38580         (FTS): Use struct hash_table * instead of Hash_table, so that
38581         we no longer need to include hash.h here.
38582
38583 2005-05-18  Jim Meyering  <jim@meyering.net>
38584
38585         * modules/dirfd (License): Change to LGPL.  Most of the code
38586         is already in the public domain.
38587
38588 2005-05-18  Jim Meyering  <jim@meyering.net>
38589
38590         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
38591         Reported by Yoann Vandoorselaere.
38592
38593 2005-05-17  Jim Meyering  <jim@meyering.net>
38594
38595         * m4/fts.m4: New file, from coreutils.
38596
38597 2005-05-17  Jim Meyering  <jim@meyering.net>
38598
38599         * lib/fts.c, lib/fts_.h: New files, from coreutils.
38600
38601 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38602
38603         Sync from coreutils.
38604         * m4/unlinkdir.m4: New file.
38605
38606 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38607
38608         Sync from coreutils.
38609         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
38610         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
38611         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
38612         White space changes only.
38613         * lib/makepath.c (make_path): Port to hosts where leading "//" is
38614         special.
38615         * lib/yesno.c: Include getline.h, not ctype.h.
38616         (yesno): Don't remove leading white space; POSIX doesn't allow it.
38617         Use getline to remove arbitrary restriction on response length.
38618
38619 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38620
38621         * config/srclist-update: Spell out "Street" in FSF postal
38622         mail address; this is the style the FSF seems to prefer.
38623
38624         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
38625         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
38626         this updates FSF postal mail address.
38627
38628         Sync from coreutils.
38629         * modules/unlinkdir: New file.
38630         * modules/yesno (Depends-on): Add getline.
38631         * MODULES.html.sh (File system functions): Add unlinkdir.
38632
38633 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38634
38635         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
38636         lib/strsep.h:
38637         Change the initial comment to refer to GPL, not LGPL.
38638         gnulib-tool will change it to LGPL as needed.
38639
38640         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
38641         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
38642         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
38643         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
38644         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
38645         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
38646         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
38647         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
38648         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
38649         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
38650         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
38651         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
38652         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
38653         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
38654         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
38655         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
38656         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
38657         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
38658         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
38659         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
38660         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
38661         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
38662         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
38663         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
38664         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
38665         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
38666         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
38667         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
38668         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
38669         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
38670         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
38671         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
38672         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
38673         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
38674         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
38675         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
38676         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
38677         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
38678         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
38679         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
38680         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
38681         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
38682         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
38683         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
38684         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
38685         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
38686         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
38687         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
38688         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
38689         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
38690         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
38691         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
38692         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
38693         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
38694         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
38695         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
38696         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
38697         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
38698         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
38699         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
38700         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
38701         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
38702         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
38703         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
38704         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
38705         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
38706         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
38707         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
38708         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
38709         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
38710         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
38711         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
38712         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
38713         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
38714         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
38715         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
38716         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
38717         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
38718         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
38719         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
38720         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
38721         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
38722         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
38723         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
38724         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
38725         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
38726         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
38727         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
38728         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
38729         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
38730         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
38731         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
38732         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
38733         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
38734         lib/yesno.c, lib/yesno.h:
38735         Update FSF postal mail address.
38736
38737 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
38740         tests/test-memmem.c, tests/test-stpncpy.c:
38741         Update FSF postal mail address.
38742
38743 2005-05-13  Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
38746         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
38747         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
38748         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
38749         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
38750         Add support for 64-bit integers in the MSVC compiler.
38751
38752 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38753
38754         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
38755
38756 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
38757
38758         * gnulib-tool (func_import): Sort and uniquify recommended includes.
38759
38760 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38761
38762         * doc/getdate.texi (General date syntax): Don't say that date
38763         date --iso-8601=ns generates acceptable dates; it doesn't yet.
38764         Problem reported by Nic Ferrier.
38765
38766 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38767
38768         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
38769         specified in ai_socktype. Fix invalid ai_protocol
38770         check. ai_protocol is usually set to 0 or depending on
38771         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
38772         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
38773         ai_socktype / ai_protocol in the returned addrinfo structure.
38774
38775 2005-05-10  Simon Josefsson  <jas@extundo.com>
38776
38777         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
38778         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38779
38780 2005-05-10  Karl Berry  <karl@gnu.org>
38781
38782         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
38783         (from http://www.gnu.org/licenses).
38784         * doc/COPYING.LIB: also rename to COPYING.LESSER.
38785         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
38786         fdl.texi suffices.
38787
38788 2005-05-10  Karl Berry  <karl@gnu.org>
38789
38790         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
38791         (COPYING.DOC): remove.
38792
38793         * config/srclist-update: new FSF address.
38794
38795 2005-05-10  Derek Price  <derek@ximbiot.com>
38796
38797         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
38798         possible.
38799
38800 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38801             Bruno Haible  <bruno@clisp.org>
38802
38803         * modules/inet_ntop: New file.
38804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38805         inet_ntop.
38806
38807 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38808             Bruno Haible  <bruno@clisp.org>
38809
38810         * m4/inet_ntop.m4: New file.
38811
38812 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38813             Bruno Haible  <bruno@clisp.org>
38814
38815         * lib/inet_ntop.h: New file.
38816         * lib/inet_ntop.c: New file, from glibc with modifications.
38817
38818 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
38819
38820         * modules/time_r (License): Change to LGPL.
38821         * modules/extensions (License): Change to LGPL.  Actually,
38822         the license is more permissive than that, but currently gnulib-tool
38823         doesn't know how to handle more-permissive licenses.
38824
38825         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
38826         Problem reported by Dave Love.
38827
38828 2005-05-08  Jim Meyering  <jim@meyering.net>
38829
38830         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
38831         blank.
38832
38833 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38834
38835         * modules/argmatch (Depends-on): Add stdbool.
38836         * modules/backupfile (Depends-on): Likewise.
38837         * modules/chdir-long (Depends-on): Likewise.
38838         * modules/closeout (Depends-on): Likewise.
38839         * modules/cycle-check (Depends-on): Likewise.
38840         * modules/dirname (Depends-on): Likewise.
38841         * modules/fnmatch (Depends-on): Likewise.
38842         * modules/fsusage (Depends-on): Likewise.
38843         * modules/fwriteerror (Depends-on): Likewise.
38844         * modules/getcwd (Depends-on): Likewise.
38845         * modules/getloadavg (Depends-on): Likewise.
38846         * modules/hard-locale (Depends-on): Likewise.
38847         * modules/makepath (Depends-on): Likewise.
38848         * modules/mountlist (Depends-on): Likewise.
38849         * modules/nanosleep (Depends-on): Likewise.
38850         * modules/posixtm (Depends-on): Likewise.
38851         * modules/quotearg (Depends-on): Likewise.
38852         * modules/readtokens (Depends-on): Likewise.
38853         * modules/readtokens0 (Depends-on): Likewise.
38854         * modules/readutmp (Depends-on): Likewise.
38855         * modules/save-cwd (Depends-on): Likewise.
38856         * modules/strftime (Depends-on): Likewise.
38857         * modules/userspec (Depends-on): Likewise.
38858         * modules/utimecmp (Depends-on): Likewise.
38859         * modules/xgetcwd (Depends-on): Likewise.
38860         * modules/xnanosleep (Depends-on): Likewise.
38861         * modules/xstrtod (Depends-on): Likewise.
38862         * modules/yesno (Depends-on): Likewise.
38863
38864 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38865
38866         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
38867         needless checks.
38868
38869 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38870
38871         Merge from coreutils.  Among other things,
38872         add bulletproofing for cases where stdin, stdout, or stderr are closed.
38873         * lib/fd-safer.c: New file.
38874         * lib/fcntl-safer.h, open-safer.c: Remove.
38875         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
38876         * lib/dup-safer.c: Include unistd-safer.h first.
38877         Don't include errno.h.
38878         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
38879         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
38880         * lib/file-type.c: Rely on file-type.h change.
38881         * lib/getloadavg.c: Include unistd-safer.h.
38882         (getloadavg): Use safer open.
38883         * lib/getusershell.c: Include "stdio-safer.h".
38884         (getusershell): Use safer fopen.
38885         * lib/long-options.c (long_options): Use NULL rather than 0.
38886         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
38887         'free'.
38888         * lib/modechange.c: Likewise.
38889         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
38890         (MODE_DONE): New constant.
38891         (struct mode_change): Remove 'next' member.
38892         (make_node_op_equals): New function; like the old one of the
38893         same name, except it allocates an array.
38894         (mode_compile, mode_create_from_ref): Use it.
38895         (mode_compile): Allocate result as an array, not a linked list.
38896         Parse octal string ourself, so that we catch mistakes like "+0".
38897         (mode_adjust): Arg is an array, not a linked list.
38898         * lib/modechange.c: Include stat-macros.h, xalloc.h.
38899         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
38900         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
38901         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
38902         Remove.  This is now stat-macros.h's job.
38903         (talloc): Remove.  All callers replaced by xalloc, so that
38904         our invokers don't have to worry about reporting memory failures.
38905         (make_node_op_equals): Remove.
38906         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38907         New constants.
38908         (struct mode_change): Moved here from modechange.h.
38909         (mode_append_entry): Remove.
38910         (mode_compile): Remove MASKED_OPS arg, since it encouraged
38911         apps to have incorrect behavior.  Use simpler algorithm for head
38912         and tail.  Don't futz with umask; that's now the job of mode_adjust.
38913         Detect more invalid usages rather than having somewhat-random behavior.
38914         Don't insert an "a=" action, as that leads to incorrect behavior.
38915         (mode_compile, mode_create_from_ref): Return NULL on error instead
38916         of an enum, since now there's only one way to have an error.  All
38917         callers changed.
38918         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38919         at the correct time.  Simplify calculation of "+u" and its ilk.
38920         Don't mishandle "+X".
38921         (mode_free): Remove "register" and localize decls.
38922         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38923         (struct mode_change): Move to modechange.c; callers don't
38924         need to see this stuff.
38925         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38926         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38927         (mode_change, mode_adjust): Reflect the new signatures noted above.
38928         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38929         that might redefine system include files.
38930         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38931         (my_usleep): Use NULL rather than (void *) 0.
38932         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38933         Use siginterrupt to specify that system calls should be interrupted.
38934         (rpl_nanosleep): Move initialization of suspended closer to call of
38935         my_usleep.
38936         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
38937         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
38938         (desirable_utmp_entry): New function.
38939         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38940         using x2nrealloc, to simplify logic.
38941         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38942         size calculation.  Do not assume utmp file is a regular file.
38943         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38944         (READ_UTMP_CHECK_PIDS): New constant.
38945         * lib/save-cwd.c: Include unistd-safer.h.
38946         (save_cwd): Use fd_safer.
38947         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38948         [!_LIBC] Include "stat-macros.h" instead.
38949         * lib/unistd-safer.h (fd_safer): New decl.
38950
38951 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38952
38953         * modules/getloadavg (Depends-on): Add unistd-safer.
38954         * modules/getusershell (Depends-on): Add stdio-safer.
38955         * modules/lstat (Depends-on): Remove xalloc.
38956         * modules/mkstemp (Depends-on): Add stat-macros.
38957         * modules/modechange (Depends-on): Remove xstrtol.
38958         Add stat-macros, xalloc.
38959         * modules/save-cwd (Depends-on): Add unistd-safer.
38960         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38961         * modules/unistd-safer (Files): Add lib/fd-safer.c
38962         (Makefile.am): Remove lib_SOURCES.
38963
38964         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38965         Remove fcntl-safer; unistd-safer supersedes it.
38966
38967 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38968
38969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38970         AC_HEADER_STAT.
38971         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38972         (gl_PREREQ_CHOWN): Remove.
38973         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38974         it.  Don't require AC_HEADER_STAT.
38975         (gl_PREREQ_LSTAT): Remove.
38976         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38977         Don't require AC_HEADER_STAT.
38978         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38979         (gl_PREREQ_RMDIR): Remove.
38980         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38981         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38982         the stat-macros module a prerequisite.
38983         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38984         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38985         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38986         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38987         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38988         variable names.
38989         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38990         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38991         variable prefixes.
38992         * m4/fcntl-safer.m4: Remove.
38993         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38994         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38995         Invoke gl_PREREQ_FD_SAFER.
38996         (gl_PREREQ_FD_SAFER): New macro.
38997         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38998         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38999         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
39000         Remove duplicate call to AC_LIBOBJ(readutmp).
39001         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
39002
39003         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
39004         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
39005
39006 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
39007
39008         * MODULES.html.sh (Misc): Add byteswap.
39009
39010 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
39011
39012         * modules/getcwd (Depends-on): Add extensions.
39013         * modules/openat (Depends-on): Likewise.
39014
39015 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
39016
39017         * modules/byteswap: New file.
39018
39019 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
39020
39021         * m4/byteswap.m4: New file.
39022
39023 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
39024
39025         * lib/byteswap_.h: New file.
39026
39027 2005-04-25  Karl Berry  <karl@gnu.org>
39028
39029         * m4/gettext.m4: Update from GNU gettext 0.14.4.
39030
39031 2005-04-25  Albert Chin  <china@thewrittenword.com>
39032
39033         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
39034         Toolkit C bug.
39035
39036 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
39037
39038         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
39039         (func_ln_if_changed) Remove forcibly for no error message
39040         in case file does not exist.
39041
39042 2005-04-19  Simon Josefsson  <jas@extundo.com>
39043
39044         * gnulib-tool (Options): Make --symlink mean --symbolic.
39045
39046 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
39047
39048         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
39049
39050 2005-04-16  Simon Josefsson  <jas@extundo.com>
39051
39052         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
39053
39054 2005-04-15  Simon Josefsson  <jas@extundo.com>
39055
39056         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
39057
39058 2005-04-15  Simon Josefsson  <jas@extundo.com>
39059
39060         * gnulib-tool: Rename --symlink to --symbolic.
39061
39062 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
39063
39064         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
39065         symbolic links to files instead of copying/moving.  Add --aux-dir,
39066         specifying directory relative --dir where auxiliary build tools
39067         are placed.
39068
39069 2005-04-14  Bruno Haible  <bruno@clisp.org>
39070
39071         * modules/allocsa (License): Change to LGPL.
39072         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39073
39074 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39075
39076         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
39077         that "UTC +1 second" continues to work.  Problem reported
39078         by Dmitry V. Levin.
39079         (relunit_snumber): New rule.
39080         (relunit): Use it.
39081
39082 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39083
39084         * lib/getdate.y (universal_time_zone_table): New constant.
39085         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
39086         universal_time_zone_table.
39087         (lookup_zone): Prefer universal_time_zone_table to
39088         local_time_zone_table, so that "GMT" time stamps are allowed in
39089         London during the summer.  Problem reported by Ian Abbott.
39090
39091 2005-04-12  Jim Meyering  <jim@meyering.net>
39092
39093         * lib/human.c (humblock): Set *options even when returning due to
39094         xstrtoumax conversion failure.  Thanks to a used-uninitialized
39095         warning from gcc-4.
39096
39097 2005-04-09  Jim Meyering  <jim@meyering.net>
39098
39099         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
39100         -Wuninitialized: initialize tm0.tm_year.
39101
39102 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
39105         count, since there's no maximum.  All uses changed.
39106         Add member dsts_seen.
39107         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
39108         not being INT_MAX.
39109         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
39110         Use pc_rels_seen to decide whther a date is absolute.
39111
39112         * lib/getdate.y (number): Don't overwrite year.
39113         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
39114         check.
39115
39116 2005-04-02  Simon Josefsson  <jas@extundo.com>
39117
39118         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
39119         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
39120
39121 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
39122
39123         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
39124         where no absolute path name can be longer than PATH_MAX.
39125
39126 2005-03-27  Jim Meyering  <jim@meyering.net>
39127
39128         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
39129
39130 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
39131
39132         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
39133         "one's complement" -> "ones' complement" in comment, as per Knuth.
39134         "value of type" -> "type or expression" in comment.
39135         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
39136
39137 2005-03-26  Jim Meyering  <jim@meyering.net>
39138
39139         Comment nits.
39140         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
39141         Correct typos: s/or/of/.
39142
39143 2005-03-26  Jim Meyering  <jim@meyering.net>
39144
39145         * modules/check-include-files: Move to ../ and rename to...
39146         * check-module: ...this.
39147
39148 2005-03-25  Jim Meyering  <jim@meyering.net>
39149
39150         * modules/xvasprintf (Files): Add xalloc.h.
39151
39152 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39153
39154         * modules/gettext (Files): config/config.rpath ->
39155         build-aux/config.rpath
39156         * modules/iconv (Files): Likewise.
39157         Problem reported by Oskar Liljeblad.
39158
39159 2005-03-23  Jim Meyering  <jim@meyering.net>
39160
39161         * modules/check-include-files: New script to check for
39162         missing dependencies, multiple includes, etc.
39163
39164         * modules/c-strtold (Depends-on): Add xalloc.
39165         * modules/c-strtod (Depends-on): Add xalloc.
39166         * modules/hash (Depends-on): Add xalloc.
39167         (Files): Remove lib/xalloc.h.
39168
39169         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
39170         * modules/userspec (Files): Add lib/inttostr.h.
39171
39172 2005-03-23  Jim Meyering  <jim@meyering.net>
39173
39174         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
39175
39176 2005-03-22  Jim Meyering  <jim@meyering.net>
39177
39178         * modules/stat-macros: New module.
39179         * modules/canonicalize, modules/euidaccess, modules/file-type,
39180         * modules/filemode, modules/lchown, modules/makepath,
39181         * modules/rmdir, modules/stat: Depend on new stat-macros module
39182         rather than listing lib/stat-macros.h manually.
39183         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
39184
39185 2005-03-22  Jim Meyering  <jim@meyering.net>
39186
39187         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
39188
39189 2005-03-22  Bruno Haible  <bruno@clisp.org>
39190
39191         * config/srclist.txt: Replace target directory 'config' with
39192         'build-aux'.
39193         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
39194         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
39195         ../build-aux/.
39196
39197 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
39198
39199         * modules/chdir-long (Depends-on): Add mempcpy.
39200
39201         * modules/acl, modules/backupfile, modules/c-strtod,
39202         modules/c-strtold, modules/canon-host, modules/canonicalize,
39203         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
39204         modules/exclude, modules/exitfail, modules/file-type,
39205         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
39206         modules/getdate, modules/getline, modules/getpagesize,
39207         modules/getpass, modules/getugroups, modules/group-member,
39208         modules/hard-locale, modules/hash, modules/human, modules/idcache,
39209         modules/inttostr, modules/long-options, modules/makepath,
39210         modules/md5, modules/memcasecmp, modules/memcoll,
39211         modules/modechange, modules/mountlist, modules/path-concat,
39212         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
39213         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
39214         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
39215         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
39216         modules/strftime, modules/strndup, modules/strverscmp,
39217         modules/timespec, modules/unlocked-io, modules/userspec,
39218         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
39219         modules/yesno:
39220         Remove lib_SOURCES line from Makefile.am section, as this is now
39221         done automatically by the corresponding Autoconf macro.
39222
39223 2005-03-21  Jim Meyering  <jim@meyering.net>
39224
39225         Changes imported from coreutils.
39226
39227         * lib/cycle-check.c: Don't include xalloc.h.
39228
39229         * lib/path-concat.c: Don't include assert.h.
39230         (path_concat): Remove assertion that would have triggered
39231         for ABASE starting with more than one slash.
39232         Reported by Andreas Schwab.
39233
39234         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
39235         properly when ABASE is an absolute file name.
39236         Correct the description of this function.
39237         Include <assert.h>.
39238         Add an assertion and a test driver.
39239         This fixes a bug introduced on 2004-07-02.
39240         Andreas Schwab reported the resulting failure of cp --parents:
39241         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
39242
39243 2005-03-21  Jim Meyering  <jim@meyering.net>
39244
39245         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
39246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
39247
39248 2005-03-21  Jim Meyering  <jim@meyering.net>
39249         and  Paul Eggert  <eggert@cs.ucla.edu>
39250
39251         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
39252         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
39253         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
39254         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
39255         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
39256         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
39257         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
39258         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
39259         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
39260         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
39261         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
39262         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
39263         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
39264         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
39265         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
39266         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
39267         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
39268         for these modules.
39269
39270 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
39271
39272         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
39273         (which shouldn't happen), generate nothing instead of returning 0
39274         immediately, so that nstrftime (NULL, ...) doesn't return 0.
39275
39276 2005-03-16  Bruno Haible  <bruno@clisp.org>
39277
39278         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
39279         HAVE_LONGLONG_64BIT.
39280
39281 2005-03-16  Bruno Haible  <bruno@clisp.org>
39282
39283         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
39284         HAVE_LONGLONG_64BIT.
39285
39286 2005-03-16  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
39289         HAVE_LONGLONG_64BIT.
39290
39291 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
39292
39293         * lib/strftime.c (my_strftime): Prepend space to format so that we can
39294         reliably distinguish strftime failure from empty output on POSIX
39295         hosts.
39296
39297 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
39300         (iconv_string): Don't guess a size-zero buffer, as that might cause
39301         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
39302         result would be 'too large', where 'too large' is (heuristically)
39303         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
39304         overflow concerns.  This will prevent some unwanted malloc failures
39305         when the inputs are very large.
39306
39307 2005-03-15  Karl Berry  <karl@gnu.org>
39308
39309         * config/srclist.txt (config.rpath): from gettext.
39310         * config/config.rpath: update.
39311
39312 2005-03-15  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
39315         to 'negate'.
39316
39317         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
39318         variable.
39319
39320         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
39321         results.
39322
39323 2005-03-14  Simon Josefsson  <jas@extundo.com>
39324
39325         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
39326         <fx@gnu.org>.
39327
39328 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
39329
39330         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
39331         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
39332         intprops.h.
39333         * lib/strtol.c: Likewise.
39334
39335 2005-03-14  Jim Meyering  <jim@meyering.net>
39336
39337         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
39338         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
39339         to be nonzero so that we (and caller) can detect the difference
39340         between a valid zero-length expansion and an error return, even
39341         when the underlying strftime fails before writing anything into
39342         that location.
39343
39344 2005-03-14  Bruno Haible  <bruno@clisp.org>
39345
39346         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
39347         Update from GNU gettext 0.14.3.
39348
39349 2005-03-10  Jim Meyering  <jim@meyering.net>
39350
39351         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
39352
39353 2005-03-10  Jim Meyering  <jim@meyering.net>
39354
39355         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
39356         so that this module works on systems without fchdir.
39357
39358 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         Factor int-properties macros into a single file, except for
39361         glibc-related files.
39362         * lib/intprops.h: New file.
39363         * lib/getloadavg.c: Include it instead of limits.h.
39364         (INT_STRLEN_BOUND): Remove.
39365         * lib/human.c: Include intprops.h.
39366         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
39367         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
39368         302/1000.
39369         * lib/inttostr.h: Include intprops.h instead of limits.h.
39370         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
39371         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
39372         for consistency with intprops.h.
39373         (time_t_is_integer, twos_complement_arithmetic): Use them.
39374         * lib/sig2str.h: Include <signal.h>, intprops.h.
39375         (INT_STRLEN_BOUND): Remove.
39376         * lib/strftime.c (TYPE_SIGNED): Remove.
39377         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
39378         * lib/strtol.c: Adjust comments to match intprops.h.
39379         * lib/userspec.c: Include intprops.h.
39380         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
39381         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
39382         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
39383         instead of rolling our own expressions.
39384         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
39385
39386         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
39387         instead of int.
39388         (my_strftime): Do not mishandle years close to INT_MAX, by doing
39389         the right thing even if adding 1900 would overflow.  Similarly
39390         for tm_mon + 1 and tm_yday + 1.
39391         Make %Y always equivalent to %C%y, and similarly for %G and %g.
39392         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
39393         (DO_SIGNED_NUMBER): New macro.
39394         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
39395
39396 2005-03-07  Bruno Haible  <bruno@clisp.org>
39397
39398         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
39399
39400 2005-03-07  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
39403
39404 2005-03-04  Derek R. Price  <derek@ximbiot.com>
39405
39406         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
39407         (func_import): Only replace files via --import when they have actually
39408         changed.
39409
39410 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39411
39412         * m4/mmap-anon.m4: New file.
39413         * m4/pagealign_alloc.m4: New file.
39414
39415 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39416             Bruno Haible  <bruno@clisp.org>
39417
39418         * modules/pagealign_alloc: New file.
39419         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
39420
39421 2005-03-03  Derek R. Price  <derek@ximbiot.com>
39422             Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/pagealign_alloc.h: New file.
39425         * lib/pagealign_alloc.c: New file.
39426
39427 2005-03-03  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
39430         Use an all-permissive copyright notice, recommended by RMS.
39431
39432 2005-03-02  Bruno Haible  <bruno@clisp.org>
39433
39434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
39435         of AIX, the replacement has to be done only after <string.h> is
39436         included, therefore not in config.h. stpncpy.h does the replacement,
39437         and stpncpy.c uses it.
39438
39439 2005-03-02  Bruno Haible  <bruno@clisp.org>
39440
39441         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
39442         stpncpy.c uses it.
39443
39444 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39445
39446         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
39447         The workaround isn't strictly needed for POSIX conformance, and
39448         it's too much of a pain to configure and maintain.  We'll ask
39449         people to fix their kernels instead.
39450         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
39451         (NANOSLEEP_BUG_WORKAROUND): Remove.
39452         (xnanosleep): Remove the workaround.
39453
39454 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39455
39456         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
39457         Reported by Derek Price.
39458         (Include): Add "timespec.h".
39459
39460         * modules/xnanosleep (Depends-on): Remove gethrxtime.
39461
39462 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
39463
39464         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
39465         to detect nanosleep bug.
39466
39467 2005-03-01  Bruno Haible  <bruno@clisp.org>
39468
39469         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
39470
39471 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39472
39473         * modules/gethrxtime: New file.
39474         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
39475         (Depends-on): Add gethrxtime.
39476         (configure.ac): Add gl_XNANOSLEEP.
39477         (Makefile.am): Remove lib_SOURCES line.
39478
39479 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39480
39481         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
39482         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
39483
39484 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39485
39486         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
39487         * lib/timespec.h (gettime): Return void, since it always
39488         succeeds now.  All uses changed.
39489         * lib/gettime.c (gettime) Likewise.
39490         [HAVE_NANOTIME]: Prefer nanotime.
39491         Assume gettimeofday succeeds, as POSIX requires.
39492         Assime time () succeeds, since other code already does.
39493         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
39494         (timespec_subtract): Remove.
39495         (NANOSLEEP_BUG_WORKAROUND): New constant.
39496         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
39497         things considerably.  Use it only on GNU/Linux hosts, since the
39498         workaround shouldn't be needed elsewhere.
39499
39500 2005-02-24  Bruno Haible  <bruno@clisp.org>
39501
39502         * modules/gettext (Files): Add m4/glibc2.m4.
39503
39504 2005-02-24  Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
39507         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
39508         * m4/progtest.m4:
39509         Update from GNU gettext 0.14.2.
39510         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
39511
39512 2005-02-24  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/localcharset.c: Update from GNU gettext 0.14.2.
39515         * lib/config.charset: Update from GNU gettext 0.14.2.
39516
39517 2005-02-24  Bruno Haible  <bruno@clisp.org>
39518
39519         * lib/gettext.h: Update from GNU gettext 0.14.2.
39520
39521 2005-02-23  Simon Josefsson  <jas@extundo.com>
39522
39523         * m4/iconvme.m4: New file.
39524
39525 2005-02-23  Jim Meyering  <jim@meyering.net>
39526
39527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
39528         change.
39529         Thanks to Bruno Haible for catching it.
39530
39531 2005-02-22  Simon Josefsson  <jas@extundo.com>
39532
39533         * modules/iconvme: New file.
39534
39535         * MODULES.html.sh: Add iconvme.
39536
39537 2005-02-22  Simon Josefsson  <jas@extundo.com>
39538
39539         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
39540
39541 2005-02-22  Simon Josefsson  <jas@extundo.com>
39542
39543         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
39544
39545 2005-02-22  Jim Meyering  <jim@meyering.net>
39546
39547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
39548         s/ifndef/ifdef/.
39549
39550 2005-02-20  Neil Conway  <neilc@samurai.com>
39551
39552         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
39553         returned by OSX/Darwin if the specified buffer is not large
39554         enough for the hostname.
39555
39556 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39557
39558         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
39559         pass it to _help, otherwise the latter coredumps trying to
39560         dereference state.root_argp.
39561
39562 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39563
39564         * modules/chdir-long (Depends-on): Add memrchr.
39565         * modules/memrchr (Files): Add lib/memrchr.h.
39566         (Include): "memrchr.h".
39567
39568 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39569
39570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
39571
39572 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39573
39574         * lib/memrchr.h: New file.
39575         * lib/chdir-long.c: Include it.
39576         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
39577         Don't bother including stddef.h.
39578
39579 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39580
39581         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
39582         inclusion.
39583         Include <sys/types.h>, for dev_t.
39584         (ME_DUMMY, ME_REMOTE): Move from here....
39585         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
39586         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
39587         Dmitry V. Levin.
39588         Include mountlist.h first, to test the interface.
39589
39590 2005-01-29  Bruno Haible  <bruno@clisp.org>
39591
39592         * lib/progname.c (program_name): Initialize.
39593         Needed when linking statically on MacOS X.
39594
39595 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39596
39597         Sync from coreutils.
39598         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
39599         (Depends-on): Add c-strtod.
39600         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
39601
39602 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39603
39604         Sync from coreutils.
39605         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
39606
39607         Remove files that are specific to coreutils.
39608         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
39609
39610 2005-01-28  Bruno Haible  <bruno@clisp.org>
39611
39612         * modules/javacomp: New file.
39613         * MODULES.html.sh (Java): Add javacomp.
39614
39615 2005-01-28  Bruno Haible  <bruno@clisp.org>
39616
39617         * m4/javacomp.m4: New file, from GNU gettext.
39618
39619 2005-01-28  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/javacomp.sh.in: New file, from GNU gettext.
39622         * lib/javacomp.h: New file, from GNU gettext.
39623         * lib/javacomp.c: New file, from GNU gettext.
39624
39625 2005-01-26  Simon Josefsson  <jas@extundo.com>
39626
39627         * lib/gai_strerror.c: Use GPL in header.
39628
39629 2005-01-26  Bruno Haible  <bruno@clisp.org>
39630
39631         * modules/javaexec: New file.
39632         * MODULES.html.sh (Java): Add javaexec.
39633
39634 2005-01-26  Bruno Haible  <bruno@clisp.org>
39635
39636         * m4/javaexec.m4: New file, from GNU gettext.
39637
39638 2005-01-26  Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/javaexec.sh.in: New file, from GNU gettext.
39641         * lib/javaexec.h: New file, from GNU gettext.
39642         * lib/javaexec.c: New file, from GNU gettext.
39643
39644 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39645
39646         * modules/lchown (Depends-on): Remove lchown.h
39647
39648 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39649
39650         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
39651         must be defined if the header file was not found, in order
39652         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
39653
39654 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39655
39656         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
39657         initializers for struct pentry_state.
39658         (__argp_error): Check return value of __asprintf
39659         (__argp_failure): Translate error message
39660
39661         * lib/argp-parse.c: Removed braces around the expansion of N_()
39662
39663 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39664
39665         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
39666         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
39667         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
39668         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
39669         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
39670         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
39671         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
39672         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
39673         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
39674         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
39675         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
39676         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
39677         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
39678         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
39679         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
39680         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
39681         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
39682         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
39683         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
39684         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
39685         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
39686         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
39687         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
39688         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
39689         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
39690         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
39691         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
39692         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
39693         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
39694         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
39695         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
39696         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
39697         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
39698         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
39699         xstrtol.m4, xstrtoumax.m4, yesno.m4:
39700         Use an all-permissive copyright notice, recommended by RMS.
39701
39702 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39703
39704         * modules/chdir-long (Depends-on): Remove mempcpy.
39705
39706 2005-01-21  Jim Meyering  <jim@meyering.net>
39707
39708         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
39709         same value as for Solaris 9.
39710
39711         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
39712         component length.  This included changing the parameter to be
39713         of type `char *' rather than `char const *'.
39714         * lib/chdir-long.h (chdir_long): Update prototype.
39715
39716         * lib/openat.c (fdopendir, fstatat): New functions.
39717         * lib/openat.h: Include headers required for use of DIR and struct
39718         stat.
39719         [AT_SYMLINK_NOFOLLOW]: Define.
39720         (fdopendir, fstatat): Add prototypes.
39721
39722 2005-01-21  Bruno Haible  <bruno@clisp.org>
39723
39724         * modules/classpath: New file.
39725         * MODULES.html.sh (Java): Add classpath.
39726
39727 2005-01-21  Bruno Haible  <bruno@clisp.org>
39728
39729         * lib/classpath.h: New file, from GNU gettext.
39730         * lib/classpath.c: New file, from GNU gettext.
39731
39732 2005-01-20  Simon Josefsson  <jas@extundo.com>
39733
39734         * modules/version-etc-fsf: New file.
39735
39736 2005-01-20  Simon Josefsson  <jas@extundo.com>
39737
39738         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
39739         * lib/version-etc.c: Remove version_etc_copyright.
39740         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
39741         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
39742
39743 2005-01-20  Simon Josefsson  <jas@extundo.com>
39744
39745         * lib/base64.h (isbase64): Add.
39746
39747         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
39748         using a unsigned prototype, don't inline.
39749         (base64_decode): Use it.
39750
39751 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39752
39753         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
39754         it.
39755
39756 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         * lib/save-cwd.c (save_cwd): Remove code to support the case
39759         where fchdir is missing or flaky.
39760
39761 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
39764
39765 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39766
39767         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
39768         AC_LIBSOURCES now does this.
39769         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
39770         with new ullong_max module.
39771
39772 2005-01-19  Bruno Haible  <bruno@clisp.org>
39773
39774         * modules/sh-quote: New file.
39775         * MODULES.html.sh (Executing programs): Add sh-quote.
39776
39777 2005-01-19  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/sh-quote.h: New file, from GNU gettext.
39780         * lib/sh-quote.c: New file, from GNU gettext.
39781
39782 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         Merge from coreutils.
39785         * m4/ullong_max.m4: New file.
39786         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
39787         (gl_MACROS): Assume localeconv exists.
39788
39789 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39790
39791         Merge changes from coreutils, as described below in several
39792         changelogs dated today.
39793
39794         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
39795         (O_DIRECTORY): Remove; not needed here, since "." must be
39796         a directory.  All uses removed.
39797         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
39798         universal on Suns, and we also need to test for IRIX.
39799         Revamp code to use 'if' rather than '#if'.
39800         Avoid unnecessary comparison of cwd->desc to 0.
39801
39802         * lib/utimens.c (futimens): Robustify the previous patch, by checking
39803         for known valid error numbers rather than observed invalid ones.
39804
39805 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39806
39807         * modules/ullong_max: New file.
39808
39809         * modules/chdir-long, modules/openat: New files.
39810         * modules/save-cwd (Depends-on): Depend on chdir-long.
39811         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
39812
39813 2005-01-18  Jim Meyering  <jim@meyering.net>
39814
39815         Merge from coreutils.
39816         * m4/chdir-long.m4, m4/openat.m4: New files.
39817         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
39818         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
39819         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
39820         is sane and DOES follow symlinks.  Besides, testing 20 different
39821         systems found no broken chown implementations.
39822         Prompted by a change in rsync's copy of this macro.
39823         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
39824
39825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
39826
39827         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
39828         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
39829         NULL-means-set-to-current-time semantics.
39830         Remove temporary file immediately, rather than waiting
39831         for configure's at-exit trap code to do it.
39832
39833 2005-01-18  Jim Meyering  <jim@meyering.net>
39834
39835         * lib/version-etc.c (version_etc_copyright): Update copyright date.
39836
39837         * lib/utimens.c (futimens): Account for the fact that futimes
39838         can also fail with errno == ENOSYS or errno == ENOENT.
39839         Patch from Dmitry V. Levin.
39840
39841         Change the name of the robust chdir function from chdir to chdir_long.
39842         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
39843         (restore_cwd): Use chdir_long, not chdir.
39844         * lib/chdir-long.c: Renamed from chdir.c.
39845         * lib/chdir-long.h: Renamed from chdir.h.
39846         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
39847         Hurd.
39848
39849 2005-01-18  Bruno Haible  <bruno@clisp.org>
39850
39851         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
39852         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
39853         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
39854         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
39855         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
39856         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
39857         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
39858         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
39859         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
39860         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
39861         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
39862         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
39863         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
39864         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
39865         Use an all-permissive copyright notice, recommended by RMS.
39866
39867 2005-01-18  Bob Proulx  <bob@proulx.com>
39868
39869         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
39870         simplify offsetof() macro construct to avoid compile failure with
39871         native HP-UX 11.0 ANSI C compiler.
39872
39873 2005-01-17  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
39876         redundant because stpncpy.m4 takes care of it.
39877
39878 2005-01-17  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
39881
39882 2005-01-17  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
39885         used.
39886
39887 2005-01-17  Bruno Haible  <bruno@clisp.org>
39888
39889         * lib/fwriteerror.h (fwriteerror): Change specification to include
39890         fclose.
39891         * lib/fwriteerror.c: Include <stdbool.h>.
39892         (fwriteerror): At the end, close the file stream. Record whether
39893         stdout was already closed.
39894
39895 2005-01-17  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/execute.c (environ): Declare if needed.
39898         * lib/pipe.c (environ): Likewise.
39899         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
39900
39901 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39902
39903         * modules/argp: Depend on vsnprintf
39904
39905 2005-01-10  Jim Meyering  <jim@meyering.net>
39906
39907         * modules/closeout (Depends-on): Add atexit.
39908
39909 2005-01-06  Bruno Haible  <bruno@clisp.org>
39910
39911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
39912
39913 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39914
39915         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
39916         definitions to be after all include files, to avoid collisions.
39917         Problem reported by Bob Proulx.
39918
39919 2005-01-04  Jim Meyering  <jim@meyering.net>
39920
39921         Changes imported from coreutils.
39922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39923         as the mkstemp template, use a temporary directory and an
39924         8.3-friendly template to avoid trouble on systems like DJGPP.
39925         Reported by Juan M. Guerrero via Stepan Kasal.
39926         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39927         close. Remove the temporary directory right away, rather than waiting
39928         for configure's at-exit trap code to do it.
39929         Suggestion from Stepan Kasal.
39930
39931 2005-01-01  Simon Josefsson  <jas@extundo.com>
39932
39933         * gnulib-tool: Print #include directives when --import'ing.
39934
39935 2004-12-28  Simon Josefsson  <jas@extundo.com>
39936
39937         * tests/test-base64.c: Include required header files.  Remove
39938         unused variables.
39939
39940 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39941
39942         * modules/error (Depends-on): Remove gettext.
39943
39944 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39945
39946         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39947         not needed.  This removes a dependency on the gettext module.
39948         [defined _LIBC]: Do not include <libintl.h>; not needed.
39949
39950 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39951
39952         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39953         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39954
39955 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39956
39957         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39958         HAVE_DECL_STRTOLD.
39959
39960 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39961
39962         * modules/getdate (Depends-on): Remove alloca-opt.
39963
39964 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39965
39966         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39967
39968 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39969
39970         * lib/argp-parse.c: Include <stddef.h>.
39971         (alignof, alignto): New macros.
39972         (parser_init): Don't assume that void * is aligned sufficiently
39973         for struct option.
39974
39975         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39976         need to extend the stack.
39977         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39978         large.
39979
39980 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39981
39982         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39983
39984 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39985
39986         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39987         (2004-10-24) change.  Apparently this was a false alarm.
39988
39989         * modules/getdate: Depend on alloca-opt, not alloca.
39990
39991 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39992
39993         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39994         Remove now-obsolete comment about AIX.
39995         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39996         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39997         (YYMAXDEPTH): New macro.
39998
39999 2004-12-18  Simon Josefsson  <jas@extundo.com>
40000
40001         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
40002
40003 2004-12-18  Bruno Haible  <bruno@clisp.org>
40004
40005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
40006
40007 2004-12-18  Bruno Haible  <bruno@clisp.org>
40008
40009         * lib/fatal-signal.c (fatal_signals): Make non-const.
40010         (init_fatal_signals): New function.
40011         (uninstall_handlers, install_handlers): Ignore signals that were set to
40012         SIG_IGN.
40013         (at_fatal_signal): Call init_fatal_signals.
40014         (init_fatal_signal_set): Likewise. Ignore signals that were set to
40015         SIG_IGN.
40016         Reported by Paul Eggert.
40017
40018 2004-12-18  Bruno Haible  <bruno@clisp.org>
40019
40020         * doc/alloca.texi: New file.
40021         * doc/alloca-opt.texi: New file.
40022
40023 2004-12-17  Jim Meyering  <jim@meyering.net>
40024
40025         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
40026         Otherwise, install-sh could exit with improper exit status when
40027         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
40028
40029 2004-12-16  Simon Josefsson  <jas@extundo.com>
40030
40031         * tests/test-base64.c: Add license.
40032
40033 2004-12-15  Stepan Kasal  <address@hidden>
40034
40035         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
40036
40037 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40038
40039         * modules/getcwd (Files): Add m4/d-ino.m4.
40040         Suggested by Mark D. Baushke.
40041
40042 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
40043
40044         * lib/getdate.y (textint): New member "negative".
40045         (time_zone_hhmm): New function.
40046         Expect 14 shift-reduce conflicts, not 13.
40047         (o_colon_minutes): New rule.
40048         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
40049         (yylex): Set the "negative" member of signed numbers.
40050
40051 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
40052
40053         * doc/getdate.texi (Time of day items, Time zone items):
40054         Describe new formats +00:00, UTC+00:00.
40055
40056 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
40059         spurious "-l"s.  Problem reported by Stepan Kasal.
40060
40061 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
40062
40063         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
40064         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
40065
40066 2004-12-04  Simon Josefsson  <jas@extundo.com>
40067
40068         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
40069         Vandoorselaere <yoann@prelude-ids.org>.
40070
40071 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40072
40073         Changes imported from coreutils.
40074         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
40075         exist.
40076         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
40077
40078 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40079
40080         Changes imported from coreutils.
40081         * lib/hard-locale.c: Assume <locale.h> exists.
40082         Include "strdup.h".
40083         (GLIBC_VERSION): New macro.
40084         (hard_locale): Assume setlocale exists.
40085         Rewrite to avoid #ifdef.
40086         Use strdup rather than malloc + strcpy.
40087         * lib/human.c: Assume <locale.h> exists.
40088         (human_readable): Assume localeconv exists.
40089
40090 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40091
40092         * modules/hard-locale (Depends-on): Add strdup.
40093
40094 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40095
40096         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
40097         convert T2, not T.  (Imported from libc.)
40098
40099 2004-11-30  Simon Josefsson  <jas@extundo.com>
40100
40101         * modules/restrict (License): Change to LGPL.
40102
40103 2004-11-30  Simon Josefsson  <jas@extundo.com>
40104
40105         * m4/restrict.m4: Add copyright and copying conditions.
40106
40107 2004-11-30  Simon Josefsson  <jas@extundo.com>
40108
40109         * m4/base64.m4: New file.
40110
40111 2004-11-30  Simon Josefsson  <jas@extundo.com>
40112
40113         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
40114         base64.
40115
40116         * tests/test-base64.c: New file.
40117
40118         * modules/base64: New file.
40119
40120 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
40121
40122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
40123         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
40124
40125         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
40126
40127 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
40128
40129         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
40130         (__getcwd.c): Don't restore errno; glibc doesn't.
40131         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
40132         first, falling back to our code only if its results look suspicious.
40133         Ensure that the resulting buffer is only as large as necessary.
40134
40135         * lib/readutmp.c: Include readutmp.h first.
40136         Include <errno.h>, since readutmp.h no longer does that.
40137         * lib/readutmp.h: Don't include <errno.h>,
40138         <sys/param.h>, <time.h>; not needed to establish interface.
40139         (errno): Remove decl.
40140         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
40141         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
40142         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
40143
40144 2004-11-28  Simon Josefsson  <jas@extundo.com>
40145
40146         * lib/base64.h, base64.c: New file.
40147
40148 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
40151
40152 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40153
40154         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
40155         (Depends-on): Remove pathmax, same.  Add mempcpy.
40156         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
40157         (Makefile.am): Append getcwd.h to lib_SOURCES.
40158         (Include): Add getcwd.h.
40159         (Maintainer): Change from Jim Meyering to "all, glibc",
40160         since getdate now uses intended-for-glibc code.
40161         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
40162         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
40163
40164 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40165
40166         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
40167         HP's ANSI C compiler.
40168         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
40169         Declaring int functions causes warnings on some modern systems and
40170         shouldn't be needed to compile on ancient ones.
40171         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
40172         defined.
40173
40174         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
40175         with the following changes.
40176         (__set_errno): Parenthesize properly.
40177         Include <stdbool.h>.
40178         (MIN, MAX, MATCHING_INO): New macros.
40179         (__getcwd): Define with prototype, not K&R form.
40180         Use heuristics to allocate default buffer on stack if possible.
40181         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
40182         behavior, and to avoid the PATH_MAX limit when computing
40183         ../../../../...
40184         Use MATCHING_INO to compare inode number to file.
40185         Check for arithmetic overflow in size calculations.
40186         Fix bug in reallocation of dot array that caused getcwd to fail
40187         on directories nested deeper than 75.
40188         Be more careful about saving errno on error.
40189         Do not use realloc; use only free+malloc, as this is a bit
40190         more flexible and avoids a needless copy operation.
40191         Do not inspect st_dev and st_ino for symbolic links; POSIX
40192         doesn't specify the latter.
40193         Check for closedir errors.
40194         Avoid needless casts.
40195         Use "#ifdef weak_alias" around weak_alias, to be like other
40196         glibc code.
40197         The following changes to getcwd.c have effect only when used in
40198         gnulib; they have no effect inside glibc proper.
40199         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
40200         as alloca isn't used.
40201         (alloca, __alloca): Likewise.
40202         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
40203         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
40204         unconditionally, as gnulib assumes C89 or better.
40205         Do not include <sys/param.h>.
40206         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
40207         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
40208         better.
40209         (NULL) [!defined NULL]: Remove; we assume C89 or better.
40210         Include <dirent.h> in a way that is compatible with modern Autoconf.
40211         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
40212         New macros, if not already defined.
40213         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
40214         Use "_LIBC", not "defined _LIBC", for consistency.
40215         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
40216         a mempcpy module.
40217         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
40218         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
40219         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
40220         credit only to Jim Meyering and adjust the copyright dates.
40221         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
40222         <stdlib.h>, <unistd.h>, "pathmax.h".
40223         Instead, include "xgetcwd.h" (first) and "getcwd.h".
40224         (INITIAL_BUFFER_SIZE): Remove.
40225         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
40226
40227 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40228
40229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
40230         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
40231         Use the _ONCE methods, for efficiency.
40232         Check for fcntl.h.  In test program, include <errno.h>
40233         and <fcntl.h> if available.  Remove old K&R cruft from
40234         test program.  Check for common errors in GNU/Linux,
40235         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
40236         don't do AC_LIBOBJ, as that's getcwd.m4's job.
40237         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
40238         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
40239         name accordingly.
40240         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
40241         accommodate new getcwd.c.
40242         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
40243         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
40244         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
40245         that's all we need now.
40246
40247 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40248
40249         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
40250         argp-parse.c depends on getopt internals, that means we should
40251         always use our getopt, to be on the safe side.
40252         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
40253         order not to spoil the result of an eventual previous invocation
40254         of gl_GETOPT_SUBSTITUTE.
40255
40256 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40257
40258         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
40259         redefinition warnings. To avoid them, include the defines
40260         in `#if !defined __need_getopt ... #endif'. The only place
40261         where __getopt_argv_const is used is in definitions
40262         of getopt_long and getopt_long_only below, which are as well
40263         protected by `#ifndef __need_getopt'.
40264         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
40265         __need_getopt after including <stdio.h> and <unistd.h> These
40266         headers might have defined it.
40267
40268 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
40271
40272 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
40273
40274         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
40275         (futimens): New function, which uses futimes if available.
40276         (futimens, utimens): Support timespec==NULL, with same semantics
40277         as utime and utimens.
40278         * lib/utimens.h (futimens): New decl.
40279
40280 2004-11-23  Jim Meyering  <jim@meyering.net>
40281
40282         * lib/getopt_.h: Remove trailing blanks.
40283
40284 2004-11-23  Jim Meyering  <jim@meyering.net>
40285
40286         * lib/__fpending.c: Add comment.
40287
40288 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
40289
40290         * modules/canonicalize (Depends-on): Add xreadlink.
40291         Problem reported by James Youngman.
40292
40293 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40294
40295         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
40296         New macros.
40297         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
40298         optopt): Use them instead of invoking ## directly; otherwise, the
40299         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
40300
40301 2004-11-19  Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/strtok_r.c: Move comments from here...
40304         * lib/strtok_r.h: ... to here.
40305
40306 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40307
40308         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
40309         implementations that mishandle size_t overflow.
40310
40311 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40312
40313         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
40314         might fail.  Problem reported by Yoann Vandoorselaere.
40315         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
40316         implementations that mishandle size_t overflow.
40317
40318 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40319
40320         * modules/canon-host (Depends-on): Add strdup.
40321
40322 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40323
40324         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
40325
40326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40327
40328         * lib/canon-host.c: Include "strdup.h".
40329         (canon_host): Use getaddrinfo if available, so that IPv6 works.
40330         Use strdup instead of malloc/strcpy to duplicate strings.
40331
40332         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
40333         (human_space_before_unit): New constant.
40334         * lib/human.c (human_readable): Support it.
40335
40336         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
40337         (xgetcwd): Set errno correctly when failing.
40338         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
40339         the failure is actually due to a PATH_MAX problem.
40340
40341         Further getopt changes to make it more likely that glibc will
40342         buy the changes back.
40343         * lib/getopt.c (POSIXLY_CORRECT): New constant.
40344         (getopt): Use it, so to preserve glibc semantic
40345         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
40346         when compiling for libc.
40347         * lib/getopt_.h (__getopt_argv_const): Bring it back.
40348         (getopt_long, getopt_long_only): Use it.
40349
40350         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
40351         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
40352         (getopt): Argv is now char * const *, as per standard.
40353         (_getopt_internal_r, _getopt_internal): Argv is now char **,
40354         not char *__getopt_argv_const *.
40355         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
40356         _getopt_long_only_r): Likewise.
40357         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
40358         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
40359         _getopt_long_r, _getopt_long_only_r): Likewise.
40360         * lib/getopt_.h (__getopt_argv_const): Remove.
40361         (getopt): Argv is now char * const *, as per standard.
40362
40363         * lib/getdate.y (tORDINAL): New token.
40364         (day, relunit): Allow it for relative times.
40365         (relative_time_table): Use tORDINAL for ordinals.
40366
40367 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40368
40369         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
40370         Document that "second" isn't allowed as an ordinal number.
40371
40372 2004-11-16  Jim Meyering  <jim@meyering.net>
40373
40374         * modules/closeout (Depends-on): Add fpending.
40375
40376 2004-11-15  Jim Meyering  <jim@meyering.net>
40377
40378         * lib/closeout.c: Include "__fpending.h" once again.
40379         Include <stdbool.h>.
40380         (close_stdout): Don't fail just because stdout was closed initially,
40381         since some programs don't write to stdout in the normal course of
40382         operation (other than --version and --help), and we don't want this
40383         function to make e.g. `touch file >&-' fail.
40384         But do fail if it was closed and someone has tried to write to it.
40385         E.g., `printf foo >&-' must fail.
40386
40387 2004-11-13  Jim Meyering  <jim@meyering.net>
40388
40389         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
40390
40391 2004-11-12  Simon Josefsson  <jas@extundo.com>
40392
40393         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
40394         small doc fix is still pending.
40395
40396 2004-11-11  Simon Josefsson  <jas@extundo.com>
40397
40398         * modules/strtok_r: New file.
40399
40400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40401         strtok_r.
40402
40403 2004-11-11  Simon Josefsson  <jas@extundo.com>
40404
40405         * m4/strtok_r.m4: New file.
40406
40407         * m4/getopt.m4: Replace opterr.
40408
40409 2004-11-11  Simon Josefsson  <jas@extundo.com>
40410
40411         * lib/strtok_r.h, strtok_r.c: New file.
40412
40413 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40414
40415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
40416         of replacing opterr, getopt, etc.  This should handle the
40417         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
40418
40419 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40420
40421         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
40422         we can stop lying to compilers about the constness of argv when we
40423         are compiled outside glibc.
40424         (getopt, getopt_long, getopt_long_only): Use it.
40425         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
40426         _getopt_internal, getopt): Likewise.
40427         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
40428         _getopt_long_only_r): Likewise.
40429         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
40430         _getopt_long_r, _getopt_long_only_r): Likewise.
40431
40432         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
40433         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
40434         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
40435         the other external symbols.
40436         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
40437         declaration, since the above renaming now works around collisions.
40438
40439 2004-11-11  Jim Meyering  <jim@meyering.net>
40440
40441         * lib/linebreak.c: Remove trailing blanks.
40442         * lib/alloca_.h: Likewise.
40443         * lib/acosl.c: Likewise.
40444         * lib/euidaccess.c: Likewise.
40445         * lib/allocsa.h: Likewise.
40446
40447 2004-11-10  Simon Josefsson  <jas@extundo.com>
40448
40449         * m4/getaddrinfo.m4: New file.
40450
40451 2004-11-10  Simon Josefsson  <jas@extundo.com>
40452
40453         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
40454
40455 2004-11-10  Simon Josefsson  <jas@extundo.com>
40456
40457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40458         getaddrinfo.
40459
40460         * modules/getaddrinfo: New file.
40461
40462 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
40465
40466 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         * lib/mktime.c (SHR): New macro, which is a portable
40469         substitute for >> that should work even on Crays.
40470         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
40471         Problem reported by Mark D. Baushke in
40472         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
40473         * lib/getdate.y (SHR): Likewise.
40474         (tm_diff): Use it.
40475         * lib/strftime.c (SHR): Likewise.
40476         (tm_diff): Use it.
40477         * lib/quotearg.c (struct quoting_options): Use unsigned int for
40478         quote_these_too, so that right shifts are well defined.  All uses
40479         changed.
40480
40481 2004-11-10  Jim Meyering  <jim@meyering.net>
40482
40483         Ensure that no close failure goes unreported.
40484         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
40485         return early when it seems there's nothing to flush.
40486         Don't include __fpending.h.
40487
40488 2004-11-10  Jim Meyering  <jim@meyering.net>
40489
40490         * modules/closeout (Depends-on): Remove fpending.
40491
40492 2004-11-10  Jim Meyering  <jim@meyering.net>
40493
40494         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
40495
40496 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40497
40498         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
40499         gl_FUNC_STRFTIME.
40500         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
40501         and AC_REQUIRE when possible, to avoid duplicate checks.
40502         Check for <wchar.h>.
40503
40504 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40505
40506         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
40507
40508 2004-11-09  Bruno Haible  <bruno@clisp.org>
40509
40510         * m4/sockpfaf.m4: New file.
40511
40512 2004-11-05  Bruno Haible  <bruno@clisp.org>
40513
40514         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
40515         Reported by Mark D. Baushke <mdb@cvshome.org>.
40516
40517 2004-11-04  Bruno Haible  <bruno@clisp.org>
40518
40519         2004-09-11  Bruno Haible  <bruno@clisp.org>
40520                 * allocsa.valgrind: New file.
40521         2004-02-06  Bruno Haible  <bruno@clisp.org>
40522                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
40523                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
40524                 Reported by Christopher Seip <chris.seip@hp.com>.
40525
40526 2004-11-04  Bruno Haible  <bruno@clisp.org>
40527
40528         * modules/allocsa (Files): Add lib/allocsa.valgrind.
40529         (Makefile.am): Distribute it.
40530
40531 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40532
40533         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
40534         with errno == ERANGE if the buffer is too small.
40535         Problem reported by Mark D. Baushke.
40536
40537 2004-11-03  Albert Chin  <china@thewrittenword.com>
40538             Paul Eggert  <eggert@cs.ucla.edu>
40539
40540         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
40541         equivalent, substitute $ac_type for equivalent type rather than
40542         blindly using uint32_t *always* which won't work if uint32_t is not
40543         available.  Define _UINT32_T to work around typedef of uint32_t if
40544         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
40545         2.5.1.
40546
40547 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40548
40549         * m4/jm-macros.m4: Sync from coreutils.
40550         (gl_MACROS): Check for mbrlen, for pathchk.
40551         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
40552
40553 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40554
40555         * lib/xreadlink.c (MAXSIZE): New macro.
40556         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
40557         size does not exceed MAXSIZE.  Avoid cast.
40558         As suggested by Mark D. Baushke in
40559         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
40560         if readlink fails with buffer size just under MAXSIZE, try again
40561         with MAXSIZE.
40562
40563 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40564
40565         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
40566
40567 2004-11-02  Derek R. Price  <derek@ximbiot.com>
40568         and  Paul Eggert  <eggert@cs.ucla.edu>
40569
40570         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
40571         (get_date): Overparenthesize to avoid GCC warning.
40572
40573 2004-11-02  Bruno Haible  <bruno@clisp.org>
40574
40575         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
40576         returns void.
40577
40578 2004-11-02  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
40581         function returns void.
40582
40583 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40584
40585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
40586         fflush_unlocked, flockfile, funlockfile, funlockfile,
40587         fputs_unlocked, putc_unlocked.
40588
40589 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40590
40591         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40592         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
40593         already declared.
40594
40595 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40596
40597         * modules/getdate (Files): Add doc/getdate.texi.
40598         (Depends-on): Add setenv, xalloc.
40599
40600 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         * lib/getdate.y: Add support for TZ="foo" within a date string.
40603         Fix some bugs near time_t boundaries.  Reject dates with
40604         out-of-range components, e.g., "Sept 31".
40605         Include <stdlib.h>, "setenv.h", "xalloc.h".
40606         (ISDIGIT_LOCALE): Remove; unused.
40607         Note that the TZ and time functions used here are not reentrant.
40608         (mktime_ok, get_tz): New functions.
40609         (TZBUFSIZE): New constant.
40610         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
40611         This requires that we sometimes generate our own TZ="XXX..." setting.
40612
40613 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40614
40615         * doc/getdate.texi: New file, from coreutils with modifications for
40616         the new TZ parsing.
40617
40618 2004-10-27  Derek R. Price  <derek@ximbiot.com>
40619
40620         * lib/mktime.c (not_equal_tm): Remove redundant check.
40621
40622 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40623
40624         * modules/regex (lib_SOURCES): Add regex.c.
40625         Reported by James Youngman in
40626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
40627
40628 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40629
40630         * lib/getdate.y: Use Bison 1.875 features, and some minor
40631         code cleanups.  This change does not affect semantics.
40632         Don't include <stdlib.h>; no longer needed.
40633         Don't include unlocked-io.h; only the "#if TEST" code uses
40634         stdio, and performance isn't crucial there.
40635         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
40636         Bison 1.875 features as described below.
40637         All uses of "PC." replaced by "pc->".
40638         (YYSTYPE): Add a forward declaration.
40639         (yylex, yyerror): Use full prototypes in forward decls.
40640         Use "%pure-parser" rather than obsolescent "%pure_parser".
40641         Use %parse-param and %lex-param instead of obsolescent
40642         YYPARSE_PARAM and YYLEX_PARAM.
40643         (meridian_table, month_and_day_table, time_units_table,
40644         relative_time_table, time_zone_table, military_table,
40645         lookup_zone, lookup_word, get_date):
40646         Use NULL instead of 0 where appropriate.
40647         (to_hour): Avoid abort (), to avoid a dependency on
40648         stdlib.h.
40649         (yyerror, yylex): Now accepts parser_control * arg.
40650         (main) [TEST]: Use '\0' rather than 0 for char.
40651
40652 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40653
40654         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
40655
40656 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40657
40658         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
40659         It's now the caller's responsibility to handle the case where
40660         !HAVE_GETPAGESIZE && !defined getpagesize.
40661
40662         * lib/mktime.c (leapyear): Arg is long int, not int.
40663
40664 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
40665
40666         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
40667
40668 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40669
40670         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
40671         missing.  Problem reported by James Youngman.
40672
40673 2004-10-16  Simon Josefsson  <jas@extundo.com>
40674
40675         * gnulib-tool: Fix comments.  Fix parse problem.
40676         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
40677
40678 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
40679
40680         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
40681         implementation of getopt_long.  Problem reported by Alexander Taler in:
40682         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
40683
40684 2004-10-15  Bruno Haible  <bruno@clisp.org>
40685
40686         * gnulib-tool: Untabify. Initialize supplied_libname.
40687         (func_usage): More homogenous output.
40688         (func_modules_transitive_closure, func_modules_to_filelist,
40689         func_emit_lib_Makefile_am): New functions.
40690         (func_import): New function, extracted from big case statement. Use
40691         func_get_license, func_modules_transitive_closure,
40692         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
40693         opt_lgpl. Don't use test -a, as it's not portable.
40694         (func_create_testdir): Use func_modules_transitive_closure,
40695         func_modules_to_filelist, func_emit_lib_Makefile_am.
40696
40697 2004-10-15  Bruno Haible  <bruno@clisp.org>
40698
40699         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
40700
40701 2004-10-15  Bruno Haible  <bruno@clisp.org>
40702
40703         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
40704         the portions belonging to each module.
40705         Suggested by Derek Robert Price <derek@ximbiot.com>.
40706
40707 2004-10-12  Simon Josefsson  <jas@extundo.com>
40708
40709         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40710         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
40711         to real functions.
40712
40713 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40714
40715         * modules/vsnprintf: New file.
40716
40717 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40718
40719         * m4/vsnprintf.m4: New file.
40720
40721 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40722
40723         * lib/vsnprintf.h: New file.
40724         * lib/vsnprintf.c: New file.
40725
40726 2004-10-11  Bruno Haible  <bruno@clisp.org>
40727
40728         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
40729         vsnprintf.
40730
40731 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40732
40733         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
40734
40735 2004-10-07  Bruno Haible  <bruno@clisp.org>
40736
40737         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
40738         fits into the provided buffer.
40739
40740 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40741
40742         * lib/diacrit.c, diacrit.h: Add GPL notice.
40743
40744         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
40745         notice.
40746         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
40747         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
40748         This avoids a potential constant-folding bug.
40749
40750 2004-10-05  Bruno Haible  <bruno@clisp.org>
40751
40752         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
40753         for the declaration of strsep.
40754
40755 2004-10-05  Bruno Haible  <bruno@clisp.org>
40756
40757         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
40758
40759 2004-10-04  Simon Josefsson  <jas@extundo.com>
40760
40761         * modules/memmem: New file.
40762         * tests/test-memmem.c: New file.
40763         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
40764
40765 2004-10-04  Simon Josefsson  <jas@extundo.com>
40766
40767         * m4/memmem.m4: New file.
40768
40769 2004-10-04  Simon Josefsson  <jas@extundo.com>
40770
40771         * lib/memmem.h: New file.
40772         * lib/memmem.c: New file, taken from glibc.
40773
40774 2004-10-04  Simon Josefsson  <jas@extundo.com>
40775
40776         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
40777         '#ifdef USE_UNLOCKED_IO'.
40778
40779 2004-10-04  Simon Josefsson  <jas@extundo.com>
40780
40781         * config/srclist.txt: Add memmem from glibc.
40782
40783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40784
40785         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
40786
40787         * modules/argmatch, modules/argp, modules/closeout, modules/error,
40788         modules/exclude, modules/getdate, modules/getline,
40789         modules/getndelim2, modules/getpass, modules/getpass-gnu,
40790         modules/getusershell, modules/linebuffer, modules/md5,
40791         modules/mountlist, modules/posixtm, modules/readtokens,
40792         modules/readutmp, modules/regex, modules/sha1,
40793         modules/version-etc, modules/yesno:
40794         Remove dependency on unlocked-io.
40795
40796 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40797
40798         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
40799
40800         * m4/unlocked-io.m4: Add copyright notice.
40801         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
40802
40803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40804
40805         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
40806         * lib/xmalloc.c (xmemdup): Likewise.
40807         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
40808         XFREE): Remove these long-obsolescent macros.
40809         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
40810         * lib/xstrdup.c: Remove.
40811
40812         * lib/regex.c (re_comp): Cast gettext return value to char *,
40813         Problem reported by Martin Neitzel via Mark D. Baushke.
40814
40815 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40816
40817         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
40818         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
40819         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
40820         regex.c, sha1.c, version-etc.c, yesno.c:
40821         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
40822         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
40823         the includer's responsibility.
40824
40825         Sync from coreutils.
40826
40827         * lib/modechange.c (mode_compile): Don't decrement a pointer that
40828         points to the start of a string, as the C Standard says the
40829         resulting behavior is undefined.
40830
40831         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
40832         simple -> simple_backups, numbered_existing ->
40833         numbered_existing_backups, numbered -> numbered_backups
40834         to avoid shadowing problems.  All uses changed.
40835         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
40836         * lib/backupfile.c (check_extension, numbered_backup):
40837         Rename locals to avoid shadowing 'basename'.
40838         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
40839         once.
40840
40841         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
40842         * lib/.cvsignore: Add getopt.h.
40843
40844 2004-10-04  Bruno Haible  <bruno@clisp.org>
40845
40846         * modules/README: New file.
40847         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
40848         not a module.
40849
40850 2004-10-02  Jim Meyering  <jim@meyering.net>
40851
40852         * lib/dirfd.h, getpagesize.h: Add copyright notice.
40853
40854 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40855
40856         * modules/strsep: New file.
40857
40858 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40859
40860         * m4/strsep.m4: New file.
40861
40862 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40863
40864         * lib/strsep.h: New file.
40865         * lib/strsep.c: New file.
40866
40867 2004-10-01  Simon Josefsson  <jas@extundo.com>
40868
40869         * lib/snprintf.c (snprintf): Handle size==0.
40870
40871 2004-10-01  Simon Josefsson  <jas@extundo.com>
40872             Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
40875         (snprintf): Declare 'args'.
40876
40877 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
40878
40879         * lib/snprintf.c: Remove comments as to why each header is needed.
40880
40881 2004-10-01  Bruno Haible  <bruno@clisp.org>
40882
40883         * MODULES.html.sh: Add strsep.
40884
40885 2004-09-30  Simon Josefsson  <jas@extundo.com>
40886
40887         * modules/snprintf: New file.
40888
40889 2004-09-30  Simon Josefsson  <jas@extundo.com>
40890
40891         * m4/snprintf.m4: New file.
40892
40893 2004-09-30  Simon Josefsson  <jas@extundo.com>
40894
40895         * lib/snprintf.h, lib/snprintf.c: New files.
40896
40897 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40898
40899         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
40900         (hol_entry_help): Never translate an empty string.
40901         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
40902         * lib/argp.h (OPTION_NO_TRANS): New option.
40903
40904 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40905
40906         * modules/argp (Maintainer): Replace Simon Josefsson
40907         by Sergey Poznyakoff.
40908
40909 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40910
40911         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
40912         changes merged back into glibc.
40913
40914 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40915
40916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40917
40918 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40919
40920         * lib/xvasprintf.c: Include xalloc.h.
40921         (xvasprintf): Use xalloc_die, not xmalloc_die.
40922
40923 2004-09-29  Bruno Haible  <bruno@clisp.org>
40924
40925         * modules/alloca-opt: New file, derived from modules/alloca.
40926         * modules/allocsa: Depend on alloca-opt instead of alloca.
40927         * modules/setenv: Likewise.
40928         * modules/vasnprintf: Likewise.
40929         * MODULES.html.sh: Add alloca-opt.
40930
40931 2004-09-28  Simon Josefsson  <jas@extundo.com>
40932
40933         * gnulib-tool: New parameter --lgpl, to asseert that modules are
40934         LGPL, and to replace license template from GPL to LGPL.
40935
40936 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40937
40938         * modules/dummy: Change license to LGPL.
40939
40940 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40941
40942         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40943
40944 2004-09-24  Simon Josefsson  <jas@extundo.com>
40945
40946         * modules/minmax (License): Change from GPL to LGPL.
40947
40948 2004-09-23  Simon Josefsson  <jas@extundo.com>
40949
40950         * gnulib-tool (--import): Typo.
40951
40952 2004-09-23  Simon Josefsson  <jas@extundo.com>
40953
40954         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40955
40956 2004-09-22  Bruno Haible  <bruno@clisp.org>
40957
40958         * modules/*: Add 'License' field.
40959         * gnulib-tool: Accept --extract-license option.
40960         (func_get_license): New function.
40961
40962 2004-09-21  Bruno Haible  <bruno@clisp.org>
40963
40964         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40965         Reported by Simon Josefsson.
40966
40967 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40968
40969         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40970         gl_AC_TYPE_LONG_LONG.
40971
40972 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40973
40974         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40975
40976 2004-09-18  Simon Josefsson  <jas@extundo.com>
40977         and  Paul Eggert  <eggert@cs.ucla.edu>
40978
40979         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40980         calls with autoreconf.  Define GL_LIB.
40981
40982 2004-09-14  Karl Berry  <karl@gnu.org>
40983
40984         * config/srclist.txt: unsync setenv.c, sigh.
40985
40986 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40987
40988         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40989         Problem reported by Bruno Haible in:
40990         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40991
40992 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40993
40994         * config/srclist.txt: Comment out argp-pvh.c.
40995
40996 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40997
40998         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40999         in case some system header has #define'd it.  Problem reported by
41000         Soeren D. Schulze in
41001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
41002
41003 2004-09-09  Karl Berry  <karl@gnu.org>
41004
41005         * regex.[ch]: delete from the root.  These were supposed to be
41006                 synced with emacs cvs, but this has not happened for about
41007                 a year, and anyway nothing else uses emacs regex.[ch].
41008                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
41009                 lib/regex[.ch] is untouched.
41010
41011 2004-09-09  Bruno Haible  <bruno@clisp.org>
41012
41013         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
41014
41015 2004-09-09  Bruno Haible  <bruno@clisp.org>
41016
41017         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
41018         modifications.
41019         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
41020
41021 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
41022
41023         * modules/xvasprintf: New file.
41024         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
41025
41026 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
41027
41028         * lib/xvasprintf.h: New file.
41029         * lib/xvasprintf.c: New file.
41030         * lib/xasprintf.c: New file.
41031
41032 2004-09-08  Bruno Haible  <bruno@clisp.org>
41033
41034         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
41035
41036 2004-09-08  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
41039         length is > INT_MAX.
41040         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
41041         more.
41042
41043 2004-09-08  Bruno Haible  <bruno@clisp.org>
41044
41045         * lib/stdint_.h: New file, taken from GNU clisp.
41046
41047 2004-09-08  Bruno Haible  <bruno@clisp.org>
41048             Oskar Liljeblad  <oskar@osk.mine.nu>
41049
41050         * modules/stdint: New file.
41051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
41052
41053 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41054
41055         Import from coreutils.
41056         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
41057         strings on unbounded length.  alloca's performance benefits aren't
41058         that important here.
41059         (V_STRDUP): Remove.
41060         (parse_with_separator): New function, with most of the internals
41061         of the old parse_user_spec.  Allow user to omit both user and group,
41062         for compatibility with FreeBSD.
41063         Clone only the user name, not the entire spec.
41064         Do not set *uid, *gid unless entirely successful.
41065         Avoid memory leak in some failing cases.
41066         Fix regression for USER.GROUP reported by Dmitry V. Levin in
41067         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
41068         (parse_user_spec): Rewrite to use parse_with_separator.
41069
41070 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41071
41072         * modules/userspec: Don't depend on alloca.
41073
41074 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41075
41076         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
41077
41078 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41079
41080         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
41081         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
41082         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
41083
41084 2004-08-16  Simon Josefsson  <jas@extundo.com>
41085
41086         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
41087         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
41088         Add --dry-run for --import.
41089         Let user provided command line parameters override configure.ac
41090         settings.
41091
41092 2004-08-12  Simon Josefsson  <jas@extundo.com>
41093
41094         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
41095         as discussed with Paul Eggert in threads rooted at
41096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
41097         and
41098         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
41099         Before, the test was empty, and relied on ELIDE_CODE in source
41100         code.)
41101         (gl_PREREQ_GETOPT): New macro.
41102         (gl_GETOPT): Use them.
41103
41104 2004-08-12  Simon Josefsson  <jas@extundo.com>
41105
41106         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
41107         * lib/getopt_.h: Renamed from getopt.h.
41108
41109 2004-08-12  Simon Josefsson  <jas@extundo.com>
41110
41111         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
41112         Change default library name from libfoo to libgnu.
41113         Now, if you have a configure.ac that says:
41114                 gl_SOURCE_BASE(gl)
41115                 gl_M4_BASE(gl/m4)
41116                 gl_MODULES(error getopt etcetera)
41117                 gl_INIT
41118         you can import all you need by running:
41119                 ../gnulib/gnulib-tool --import
41120
41121         * modules/getopt (Files): Rename getopt.h to getopt_.h.
41122         (Makefile.am): Rewrite, use logic from argz.
41123         (Include): Use <getopt.h> instead of "getopt.h".
41124
41125 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41126
41127         * modules/argp (Files): Add m4/unlocked-io.m4.
41128         (Depends-on): Add extensions.
41129
41130 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41131
41132         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
41133         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
41134         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
41135         Check for program_invocation_name, program_invocation_short_name,
41136         flockfile, funlockfile, features.h, _getopt_long_only_r.
41137
41138 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41139
41140         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
41141         its complicated substitute.
41142         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
41143         and program_invocation_name.
41144         (__argp_basename) [!_LIBC]: Remove; the only use was
41145         replaced by its body.
41146         (__argp_short_program_name): Change condition from
41147         !defined __argp_short_program_name to
41148         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
41149         to match argp-namefrob.h.
41150         (__argp_failure): Don't assume strerror_r returns char *.
41151         * lib/argp-parse.c (N_): Define unconditionally.
41152         (argp_default_options): Fill out initializers with 0 to avoid
41153         gcc warnings.
41154
41155 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41156
41157         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
41158         getopt1.c.
41159
41160 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41161
41162         Merge from coreutils.
41163
41164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
41165
41166         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
41167         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
41168
41169 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41170
41171         Merge from coreutils.
41172
41173         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
41174         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
41175         for Reliant Unix 5.43.
41176
41177         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
41178         (union fooround): Use uintmax_t, not long int.
41179         The rest is a merge from libc:
41180         [defined _LIBC]: Include <shlib-compat.h>.
41181         (_obstack) [defined _LIBC]: Remove after 2.3.4.
41182
41183         * lib/settime.c (settime): Recode to avoid warning with
41184         Sun Forte C 6U2.
41185
41186         * lib/strverscmp.c: Convert to UTF-8.
41187
41188 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41189
41190         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
41191         m4/uintmax_t.m4.
41192
41193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41194
41195         * modules/xalloc-die: New file.
41196         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
41197
41198         * modules/md5 (Files): Add m4/uint32_t.m4.
41199         * modules/sha1: Renamed from modules/sha.
41200         (Files):
41201         Rename lib/sha.h to lib/sha1.h.
41202         Rename lib/sha.c to lib/sha1.c.
41203         Rename m4/sha.m4 to m4/sha1.m4.
41204         (lib_SOURCES): Likewise.
41205         (configure.ac): Rename gl_SHA to gl_SHA1.
41206         (Include): sha.h -> sha1.h.
41207
41208 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41209
41210         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
41211         * m4/sha1.m4: Renamed from sha.m4.
41212         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
41213
41214 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41215
41216         * lib/obstack.h (obstack_empty_p):
41217         Don't assume that chunk->contents is suitably aligned.
41218         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
41219         Likewise. Problem reported by Benno in
41220         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
41221
41222         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
41223         readable.  This could be improved further but it'd take some work.
41224
41225 2004-08-08  Simon Josefsson  <jas@extundo.com>
41226
41227         * modules/xgethostname (Depends-on): Remove exit and error (not
41228         used).
41229
41230         * modules/getpass-gnu: Add getpass.h.
41231         (Depends-on): Add stdbool.
41232         * modules/getpass: Add getpass.h.
41233
41234 2004-08-08  Simon Josefsson  <jas@extundo.com>
41235
41236         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
41237         Check getpass declaration.
41238
41239 2004-08-08  Simon Josefsson  <jas@extundo.com>
41240
41241         * lib/xgethostname.c: Don't include error.h (not used).
41242
41243         * lib/getpass.h: Add.
41244         * lib/getpass.c: Include getpass.h first.
41245
41246 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         * lib/xalloc-die.c: New file.
41249         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
41250         All uses removed.
41251         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
41252         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
41253         xalloc-die.c.
41254         (_, N_, xalloc_die): Move to xalloc-die.c.
41255         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
41256         so that we needn't mess with xalloc_msg_memory_exhausted.
41257
41258         * lib/sha1.h: Renamed from sha.h.
41259         (SHA1_H): Renamed from _SHA_H.
41260         (sha1_ctx): Renamed from sha_ctx.
41261         (sha1_init_ctx): Renamed from sha_init_ctx.
41262         (sha1_process_block): Renamed from sha_process_block.
41263         (sha1_process_bytes): Renamed from sha_process_bytes.
41264         (sha1_finish_ctx): Renamed from sha_finish_ctx.
41265         (sha1_read_ctx): Renamed from sha_read_ctx.
41266         (sha1_stream): Renamed from sha_stream.
41267         (sha1_buffer): Renamed from sha_buffer.
41268         * lib/sha1.c: Likewise; renamed from sha.c.
41269         Do not include <sys/types.h>.
41270         Include <stddef.h> rather than <stdlib.h>.
41271
41272 2004-08-08  Bruno Haible  <bruno@clisp.org>
41273
41274         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
41275         FILESYSTEM_PREFIX_LEN.
41276         * lib/progreloc.c: Likewise.
41277         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
41278
41279 2004-08-06  Simon Josefsson  <jas@extundo.com>
41280
41281         * modules/progname (Depends-on): Don't depend on stdbool.
41282
41283 2004-08-06  Simon Josefsson  <jas@extundo.com>
41284
41285         * modules/getsubopt: New file.
41286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41287         getsubopt.
41288
41289 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41290
41291         More merge from coreutils.
41292
41293         * m4/utimens.m4, m4/utimecmp.m4: New files.
41294         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
41295         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
41296         prereq.m4, sha.m4: Import changes from coreutils.
41297
41298 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         More merge from coreutils.
41301         * modules/raise, modules/readtokens0, modules/utimens:
41302         * modules/utimecmp, module/xnanosleep: New files.
41303         * modules/strftime: Add lib/strftime.h.
41304         Change include from <time.h> to "strftime.h".
41305         * modules/yesno: Add lib/yesno.h.
41306         * modules/backupfile: Remove lib/addext.c.
41307         * modules/euidaccess: Add stat-macros.h.
41308         * modules/canonicalize, modules/euidaccess,
41309         modules/filemode, modules/lchown, modules/makepath,
41310         modules/rmdir, modules/stat: Likewise.
41311
41312 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41313
41314         Merge from tar.
41315         * lib/argp-help.c (make_hol, hol_append): Don't assume that
41316         SIZE_MAX is a valid preprocessor constant.
41317         (__argp_basename): Change from "#ifndef _LIBC"
41318         to "#ifndef __argp_short_program_name", so that
41319         we don't compile these functions for tar.
41320
41321         More merges from coreutils.
41322         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
41323         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
41324         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
41325         * lib/addext.c: Remove; no longer needed.
41326         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
41327         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
41328         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
41329         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
41330         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
41331         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
41332         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
41333         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
41334         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
41335         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41336         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
41337         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
41338         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
41339         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
41340         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
41341         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
41342         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
41343         Import changes from coreutils.
41344
41345 2004-08-05  Simon Josefsson  <jas@extundo.com>
41346
41347         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
41348
41349 2004-08-05  Simon Josefsson  <jas@extundo.com>
41350
41351         * m4/getsubopt.m4: New file.
41352
41353 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41354
41355         Merge from coreutils.
41356
41357         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
41358         * m4/getcwd-path-max.m4: New files.
41359
41360         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
41361         FILESYSTEM_PREFIX_LEN ->
41362         FILE_SYSTEM_PREFIX_LEN.
41363         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
41364         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
41365         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
41366         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
41367
41368         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
41369         prerequisite modules now handle the DOS stuff.
41370         Don't check for unistd.h.
41371
41372 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41373
41374         Merge from coreutils.
41375
41376         * lib/.gdb-history: Remove; this doesn't belong here.
41377
41378         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
41379         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
41380         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
41381         * lib/getcwd.c: New files.
41382
41383         * lib/dirname.h: Include <stdbool.h>.
41384         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
41385         for consistency with POSIX terminology.  All uses changed.
41386         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
41387         (strip_trailing_slashes): Use bool for booleans.
41388         * lib/stripslash.c (strip_trailing_slashes): Likewise.
41389
41390         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
41391         sometimes returns a positive errno value even when it succeeds.
41392         (print_errno_message) [!LIBC]: Fall back on strerror if
41393         __strerror_r fails.
41394
41395         * lib/path-concat.c (mempcpy): Don't define if a system header defines
41396         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
41397         (longest_relative_suffix): New function.
41398         (path_concat): Use it.  Assume first argument is not NULL.
41399         Port to DOS.  Omit redundant separators.
41400         Report an error instead of returning NULL.
41401         Use mempcpy instead of memcpy.
41402         (xpath_concat): Remove: not declared or used.
41403
41404         * lib/same.h: Include <stdbool.h>
41405         (same_name): Return bool, not int.
41406         * lib/same.c (same_name): Likewise.
41407         (errno): Don't declare; we assume C89 or better now.
41408
41409         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
41410         if not already defined.
41411
41412         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
41413         * lib/dup-safer.c (errno): Likewise.
41414
41415 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
41416
41417         Merge from coreutils.
41418         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
41419         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
41420         * modules/path-concat: Don't depend on strdup.
41421
41422 2004-08-03  Simon Josefsson  <jas@extundo.com>
41423
41424         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
41425         * lib/progname.h: Don't include stdbool.h.
41426
41427 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41428
41429         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
41430         * MODULES.html.sh (func_all_modules): Remove fatal.
41431
41432 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
41435
41436 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
41437
41438         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
41439         working.
41440
41441 2004-08-02  Simon Josefsson  <jas@extundo.com>
41442
41443         * lib/getsubopt.h: New file, with comments from Bruno Haible.
41444         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
41445         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
41446
41447 2004-08-01  Simon Josefsson  <jas@extundo.com>
41448
41449         * lib/xgetdomainname.c: Include stdlib.h, for free().
41450
41451 2004-07-19  Bruno Haible  <bruno@clisp.org>
41452
41453         * MODULES.html.sh (func_all_modules): Add dummy.
41454
41455 2004-07-16  Simon Josefsson  <jas@extundo.com>
41456
41457         * modules/dummy: New file.
41458
41459 2004-07-16  Simon Josefsson  <jas@extundo.com>
41460
41461         * lib/dummy.c: New file.
41462
41463 2004-07-16  Bruno Haible  <bruno@clisp.org>
41464
41465         * lib/backupfile.h: Add extern "C" for C++.
41466         * lib/closeout.h: Likewise.
41467         * lib/copy-file.h: Likewise.
41468         * lib/findprog.h: Likewise.
41469         * lib/full-write.h: Likewise.
41470         * lib/pathname.h: Likewise.
41471         * lib/progname.h: Likewise.
41472         * lib/stpcpy.h: Likewise.
41473         * lib/stpncpy.h: Likewise.
41474         * lib/strcase.h: Likewise.
41475         * lib/strstr.h: Likewise.
41476         * lib/xalloc.h: Likewise.
41477
41478         * lib/mbswidth.h: Add extern "C" for C++.
41479         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
41480
41481 2004-07-13  Robert Millan  <robertmh@gnu.org>
41482
41483         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
41484
41485 2004-07-09  Simon Josefsson  <jas@extundo.com>
41486
41487         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
41488         failed without this.)
41489
41490 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * modules/chown (Files): Add lib/fchown-stub.c, since
41493         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
41494
41495 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41496
41497         * lib/fchown-stub.c: New file.
41498
41499 2004-06-24  Jim Meyering  <jim@meyering.net>
41500
41501         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
41502
41503 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41504
41505         * modules/argz: Omit "#include".
41506
41507         * MODULES.html.sh (func_all_modules): Add calloc, to match
41508         2004-06-01 addition of calloc module.
41509
41510 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         * m4/argz.m4: New file, which is autoupdated from libtool.
41513
41514 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41515
41516         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
41517         libtool.
41518
41519 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41520
41521         * config/srclist-update: Don't insist on "USA." before the
41522         close-comment, as libtool omits the period and puts the */ on a
41523         separate line.
41524         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
41525         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
41526
41527 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
41528
41529         * modules/argz: New file.
41530         * MODULES.html.sh (func_all_modules): Add argz.
41531
41532 2004-06-12  Jim Meyering  <jim@meyering.net>
41533         and  Paul Eggert  <eggert@cs.ucla.edu>
41534
41535         * modules/hash (Files): Add lib/xalloc.h.
41536         * modules/pipe (Depends-on): Add wait-process.
41537         * modules/stat (Depends-on): Add xalloc.
41538         * modules/userspec (Files): Add lib/userspec.h.
41539         * modules/xstrto
41540
41541         Upgrade from gettext-0.13.
41542         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
41543         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
41544         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
41545
41546 2004-06-10  Jim Meyering  <jim@meyering.net>
41547
41548         * lib/calloc.c: New file.
41549
41550 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41551
41552         * lib/getdate.y (yylex): Allow space between sign and number.
41553         Problem reported by Dan Jacobson.
41554
41555 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41556
41557         Merge from coreutils CVS.
41558
41559         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
41560         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
41561         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
41562         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
41563         xstrtol.m4: Fix copyright date and/or serial number.
41564
41565         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
41566         See if we need an fchown replacement.
41567         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
41568         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
41569         and use the replacement function if we detect either defect.
41570
41571         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
41572         gl_UTIMECMP.
41573
41574 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
41575         and  Jim Meyering  <jim@meyering.net>
41576
41577         Merge from coreutils CVS.
41578
41579         * lib/stat-macros.h: New file, with contents from file-type.h
41580         and coreutils' system.h.
41581         * lib/file-type.c: Include "stat-macros.h".
41582         * lib/file-type.h (file_type): Move all macro definitions to new file,
41583         stat-macros.h.
41584
41585         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
41586         Wrap old code with this conditional.
41587         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
41588         function that does not dereference symlinks.
41589         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
41590
41591         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
41592         dependency problems.
41593         (xreadlink): Accept new arg SIZE, for efficiency.
41594         All decls and uses changed.
41595         * lib/xreadlink.h: Include <stddef.h>, for size_t.
41596
41597         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
41598         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
41599
41600         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
41601         sysexits.h.
41602
41603 2004-06-01  Jim Meyering  <jim@meyering.net>
41604
41605         * m4/calloc.m4: New file.
41606
41607 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
41608
41609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
41610         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
41611         Also, fix a typo in a diagnostic.
41612
41613 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41614
41615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
41616         or AC_FUNC_REALLOC.
41617
41618 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
41619
41620         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
41621         macros to be defined.
41622         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
41623         the allocator returns NULL because the requested size is zero.
41624
41625 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41626
41627         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
41628         var.  Add comment explaining why libc still defines it.  This
41629         merges the following patch from glibc:
41630         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
41631
41632 2004-05-20  Andreas Schwab  <schwab@suse.de>
41633
41634         * m4/free.m4: Replace free if it not known to work, not the other
41635         way round.
41636
41637 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
41638
41639         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
41640         present in glibc since revision 1.1 of this file.
41641         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
41642         obstack_alignment_mask, obstack_alloc, obstack_base,
41643         obstack_blank, obstack_blank_fast, obstack_chunk_size,
41644         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
41645         obstack_grow0, obstack_init, obstack_int_grow,
41646         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
41647         obstack_next_free, obstack_object_size, obstack_ptr_grow,
41648         obstack_ptr_grow_fast, obstack_room): Remove declarations of
41649         nonexistent functions.
41650
41651 2004-05-18  Karl Berry  <karl@gnu.org>
41652
41653         * config/srclist.txt: break link for vasnprintf.c.
41654
41655 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41656
41657         Port obstack to the AS/400, where pointers are 16 bytes wide and
41658         you cannot cast an integer to a valid pointer.  This patch is
41659         currently waiting to be integrated into glibc; see
41660         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
41661
41662         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
41663         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
41664         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
41665         (struct obstack): temp member is now a union of a pointer and
41666         an integer, instead of an integer.  All integer uses changed.
41667         This does not affect the physical layout of struct obstack,
41668         except on hosts (like the AS/400) where the size or alignment of
41669         void * is greater than that of ptrdiff_t.
41670         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
41671         __STDC__)]: Store temporary in pointer member of union, not
41672         integer member.
41673         * lib/obstack.c: Include <stddef.h>, for offsetof.
41674         (struct fooalign): Remove; it doesn't need a name.
41675         (union fooround): Change double to long double, and add void *.
41676         (DEFAULT_ALIGNMENT): Use offsetof to compute.
41677         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
41678         not a macro.  Hence the values are always int; so remove all
41679         casts-to-int in uses.
41680
41681 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41682
41683         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
41684         we can get this patch merged into glibc.
41685
41686 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41687             Paul Eggert  <eggert@cs.ucla.edu>
41688
41689         * m4/argp: Depend on alloca.
41690
41691 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41692             Paul Eggert  <eggert@cs.ucla.edu>
41693
41694         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
41695         freecoding.
41696
41697 2004-05-17  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
41700         precision that consists of a '.' followed by an empty digit string.
41701         Patch by Tor Lillqvist <tml@iki.fi>.
41702
41703 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41704
41705         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
41706         for backward compatibility with older code.  We need our own
41707         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
41708         it under some other name, and our alloca.h will define it.
41709
41710 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41711             Derek Price  <derek@ximbiot.com>
41712
41713         * lib/alloca.c: Include <alloca.h>, to get our interface.
41714         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
41715         include <alloca.h> first.  Use C89 prototype for alloca; this
41716         requires including <stddef.h> for size_t.  Use extern "C" if C++.
41717         Use #elif for simplicity, since we can assume C89 now.
41718         Don't try to source the system alloca.h since it will not be found
41719         and to prevent recursively including its replacement.
41720         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
41721         * lib/regex.c: Likewise.
41722
41723 2004-05-16  Derek Price  <derek@ximbiot.com>
41724             Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         getline cleanup.  This changes the getndelim2 API: both order of
41727         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
41728         no delimiter).
41729
41730         * lib/getline.c: Don't include stddef.h or stdio.h, since our
41731         interface does that.
41732         (getline): Always use getdelim, so that we don't have two
41733         copies of this code.
41734         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
41735         if available.
41736         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
41737         (GETNDELIM2_MAXIMUM): New macro.
41738         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
41739         instead of the old practice of delim2==0.  All callers changed.
41740         Return -1 on overflow, instead of returning junk.
41741         Do not set *linesize unless allocation succeeds.
41742         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
41743         that we include sys/types.h.
41744         * lib/getnline.h: Likewise.
41745         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
41746         (getndelim2): Reorder arguments.
41747         * lib/getnline.c (getnline, getndelim):
41748         Don't discard the NMAX argument.
41749         (getnline): Invoke getndelim, to avoid code duplication.
41750         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
41751         of (size_t) -1 by callers of the getnline family.
41752
41753 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41754
41755         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
41756         Check for gettimeofday.
41757         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
41758         Check for settimeofday, stime.
41759
41760 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41761
41762         * lib/nanosleep.c (suspended): Change its type from int to
41763         sig_atomic_t volatile.
41764         (first_call): Make it private to rpl_nanosleep, and have it
41765         be zero initially as that's a bit faster.
41766         (my_usleep): Round up fractional times instead of truncating them,
41767         as this is the usual meaning for 'sleep'.
41768
41769         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
41770         doesn't work.
41771         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
41772         (ENOSYS): Define if not defined.
41773         (settime): Fall back on stime if it exists and settimeofday fails.
41774         But don't bother with fallbacks if a method fails with errno == EPERM.
41775
41776 2004-05-11  Jim Meyering  <jim@meyering.net>
41777
41778         Prior to this change, the save_cwd caller required read access to the
41779         current directory on most systems (ones with the fchdir function).
41780
41781         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
41782         fails, try write-only, and finally, resort to using xgetcwd.
41783
41784 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41785
41786         * lib/obstack.c, obstack.h: Import changes from libc.
41787
41788 2004-04-28  Bruno Haible  <bruno@clisp.org>
41789
41790         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
41791         also implicitly appends .exe to executables.
41792         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
41793         accepts Windows pathnames.
41794         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41795         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41796         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41797         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41798         Reported by Derek Robert Price <derek@ximbiot.com>.
41799
41800 2004-04-21  Karl Berry  <karl@gnu.org>
41801
41802         * config/srclist.txt (localcharset.c): break sync.
41803
41804 2004-04-20  Paul Eggert  <eggert@twinsun.com>
41805
41806         * m4/host-os.m4: Add a copyright notice.
41807
41808 2004-04-20  Jim Meyering  <jim@meyering.net>
41809
41810         Change UTILS_ to gl_ in AC_DEFINE'd names.
41811         Change utils_- and jm_-prefixed variables, too.
41812         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
41813         UTILS_FUNC_MKDIR_TRAILING_SLASH.
41814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
41815
41816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
41817         Don't emit trailing blanks.
41818         Also rename jm_-prefixed variables to have gl_ prefix.
41819
41820         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
41821         Also rename jm_-prefixed variables to have gl_ prefix.
41822
41823         * m4/jm-macros.m4: Reflect the renamings.
41824         * m4/prereq.m4: Likewise.
41825
41826 2004-04-20  Jim Meyering  <jim@meyering.net>
41827
41828         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
41829         memory.
41830
41831 2004-04-20  Jim Meyering  <jim@meyering.net>
41832             Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
41835         memory when realloc fails.
41836
41837 2004-04-19  Jim Meyering  <jim@meyering.net>
41838
41839         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
41840         now that readutmp.c may call `free (0)'.
41841
41842 2004-04-19  Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
41845         * m4/inttypes_h.m4: Likewise.
41846         * m4/stdint_h.m4: Likewise.
41847         * m4/intmax_t.m4: Likewise.
41848         * m4/uintmax_t.m4: Likewise.
41849
41850 2004-04-18  Jim Meyering  <jim@meyering.net>
41851
41852         * m4/prereq.m4: Don't forbid jm_ prefix.
41853
41854         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
41855         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
41856         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
41857         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
41858         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
41859         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
41860         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
41861         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
41862         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
41863         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
41864         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
41865         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
41866         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
41867         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
41868         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
41869         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
41870         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
41871         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
41872         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
41873
41874 2004-04-18  Jim Meyering  <jim@meyering.net>
41875
41876         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
41877         failure, don't leak memory and do call END_UTMP_ENT.
41878
41879 2004-04-16  Jim Meyering  <jim@meyering.net>
41880
41881         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
41882         coreutils' stat program.
41883         (gl_PREREQ): Don't require jm_PREREQ_STAT.
41884
41885 2004-04-11  Paul Eggert  <eggert@twinsun.com>
41886
41887         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
41888         C89.
41889         (CHAR_BIT): Remove, since we assume C89.
41890         Include <stdint.h> if available, as per current Autoconf CVS advice.
41891
41892 2004-03-31  Jim Meyering  <jim@meyering.net>
41893
41894         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
41895         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
41896         * m4/xalloc.m4: Likewise.
41897
41898 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41899
41900         Merge from coreutils.
41901
41902         * m4/inttostr.m4: New file.
41903         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
41904         Require AM_STDBOOL_H and gl_TIMESPEC instead.
41905         Require gl_CLOCK_TIME.
41906         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
41907
41908 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41909
41910         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
41911         not bool, to be more consistent with Unix conventions.
41912         Suggested by Bruno Haible.
41913
41914         Merge from coreutils.
41915
41916         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
41917         * lib/umaxtostr.c: New files.
41918
41919         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41920         the usual <time.h> dance.
41921         (get_date): Change signature to support fractional time stamps.
41922         All callers changed.
41923         * lib/getdate.y: Include "getdate.h" first, as we can now
41924         assume C89 and don't need to worry about 'const'.
41925         Similarly, include "unlocked-io.h" near start, not in middle.
41926         Include <limits.h>.
41927         (textint.value): Use long int rather than int.
41928         (textint.digits): Use size_t rather than int.
41929         (BILLION, LOG10_BILLION): New constants.
41930         (parser_control): New member rel_ns.  Members day_ordinal,
41931         time_zone, month, day, hour, minutes, rel_year, rel_month,
41932         rel_day, rel_hour, rel_minutes, rel_seconds
41933         are now long int, not int.  Member seconds is now struct timespec,
41934         not int.  New member timespec_seen.  Members dates_seen, days_seen,
41935         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41936         not int.
41937         (%union.intval): Now long int, not int.
41938         New member timespec.
41939         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41940         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41941         (spec): Now is a timespec or an item list.
41942         (timespec, items): New nonterminals.
41943         (time, rel, relunit, number, get_date):
41944         Add support for fractional seconds.
41945         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41946         (gmtime, localtime, mktime): Remove decls; not needed with C89.
41947         (to_hour): First arg is now long int, not int.
41948         (to_year): Returns long int, not int.
41949         Don't treat year -70 like 70.
41950         (tm_diff): Returns long int, not int.
41951         (lookup_word): Use bool instead of int when appropriate.
41952         (yylex): Use size_t for count, not int.
41953         Detect overflow when parsing large integer constants.
41954         Add support for fractions.
41955         (get_date): Make pointers 'const' if possible.
41956         Use more-portable code to detect integer overflow.
41957         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
41958         Don't use ctime; it's not reliable if the year has >4 digits.
41959
41960         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41961         This is for compatibility with BSD.
41962
41963         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41964         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41965         From coreutils' system.h.
41966
41967         * lib/userspec.c: Don't include "posixver.h".
41968         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41969         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41970         compatible extension.  Simplify code by removing a boolean int
41971         that was always nonzero if a string was nonnull.
41972
41973 2004-03-30  Jim Meyering  <jim@meyering.net>
41974
41975         Merge from coreutils.
41976
41977         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41978         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41979         on some systems one must include <grp.h> before it.
41980         Reported by Christian Krackowizer.
41981
41982 2004-03-30  Jim Meyering  <jim@meyering.net>
41983
41984         Merge from coreutils.
41985
41986         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41987
41988         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41989         an empty input stream.
41990
41991         * lib/readtokens.c: Include <stdbool.h>.
41992         (readtoken): Use `size_t' rather than int/long.
41993         All callers adjusted.
41994         Use `bool' rather than `int' where appropriate.
41995         Use memset rather than an explicit loop.
41996         Use x2nrealloc rather than xrealloc.
41997         Allow the use of `\0' as a delimiter.
41998         (readtokens): Likewise.
41999         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
42000
42001 2004-03-30  Jim Meyering  <jim@meyering.net>
42002
42003         * m4/realloc.m4: Remove file, since now it does no more than
42004         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
42005         the `configure.ac' section of module/realloc.
42006         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
42007
42008 2004-03-30  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
42011         nonnull.
42012
42013 2004-03-29  Paul Eggert  <eggert@twinsun.com>
42014
42015         Merge changes to getloadavg.c from coreutils and Emacs.
42016
42017         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
42018         Define to an expression, not to the empty string.
42019         Include cloexec.h and xalloc.h.
42020         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
42021         Use set_cloexec_flag rather than rolling our own.
42022         * lib/cloexec.c, lib/cloexec.h: New files.
42023
42024 2004-03-29  Paul Eggert  <eggert@twinsun.com>
42025
42026         * m4/cloexec.m4: New file.
42027
42028 2004-03-18  Paul Eggert  <eggert@twinsun.com>
42029
42030         * lib/getopt.h: Sync with libc CVS.
42031
42032 2004-03-18  Paul Eggert  <eggert@twinsun.com>
42033             Bruno Haible  <bruno@clisp.org>
42034
42035         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
42036         mbswidth.
42037
42038 2004-03-18  Paul Eggert  <eggert@twinsun.com>
42039             Bruno Haible  <bruno@clisp.org>
42040
42041         * lib/mbswidth.h: Include <wchar.h> only if
42042         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
42043         <wchar.h>.
42044         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
42045
42046 2004-03-09  Paul Eggert  <eggert@twinsun.com>
42047
42048         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
42049         Sync with libc CVS.
42050         * lib/getopt_int.h: New file, also synced from libc.
42051
42052 2004-03-09  Paul Eggert  <eggert@twinsun.com>
42053
42054         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
42055         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
42056         Bring back getopt.c, getopt.h, getopt1.c.
42057
42058 2004-03-07  Paul Eggert  <eggert@twinsun.com>
42059
42060         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
42061         All uses changed.  Check for sa_sigaction member; this fixes
42062         a bug first reported by Jason Andrade in
42063         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
42064
42065 2004-03-07  Paul Eggert  <eggert@twinsun.com>
42066
42067         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
42068         '#if' expressions.  Unlike the code it replaces, it does not
42069         depend on (defined _SC_PAGESIZE).  However, it does depend on
42070         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
42071         first reported by Jason Andrade in
42072         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
42073
42074 2004-02-25  Simon Josefsson  <jas@extundo.com>
42075
42076         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
42077
42078 2004-02-25  Simon Josefsson  <jas@extundo.com>
42079
42080         * lib/strdup.h: New file.
42081         * lib/strdup.c: Include it.
42082         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
42083         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
42084
42085 2004-02-23  Karl Berry  <karl@gnu.org>
42086
42087         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
42088         (from fencepost.gnu.org:/gd/gnuorg).
42089
42090 2004-02-23  Karl Berry  <karl@gnu.org>
42091
42092         * config/srclistvars.sh (GNUORG) [karl]: redefine.
42093         * config/srclist.txt: add maintain/standards documents.
42094
42095 2004-02-18  Bruno Haible  <bruno@clisp.org>
42096
42097         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
42098         Reported by Derek Robert Price <derek@ximbiot.com>.
42099
42100 2004-02-16  Karl Berry  <karl@gnu.org>
42101
42102         * config/mkinstalldirs, install-sh: update from automake.
42103
42104 2004-02-06  Karl Berry  <karl@gnu.org>
42105
42106         * m4/po.m4: update from gettext 0.14.1.
42107
42108 2004-02-06  Karl Berry  <karl@gnu.org>
42109
42110         * lib/config.charset: update from gettext 0.14.1.
42111
42112 2004-02-05  Paul Eggert  <eggert@twinsun.com>
42113
42114         Add comments and code, prompted by suggestions from Bruno Haible
42115         for sh-quote.
42116         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
42117         describing the enum quoting_style values.
42118         * lib/quotearg.c (quotearg_alloc): New function.
42119         (quotearg_buffer_restyled): Treat lone { and } as special.
42120         Treat = as special.  Work around bug with older shells
42121         that "see" a '\' that is really the 2nd byte of a multibyte char.
42122         Quote empty string with shell_quoting_style.
42123
42124 2004-02-03  Bruno Haible  <bruno@clisp.org>
42125
42126         * m4/pipe.m4: New file, from GNU gettext.
42127
42128 2004-02-03  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/pipe.h: New file, from GNU gettext.
42131         * lib/pipe.c: New file, from GNU gettext.
42132
42133 2004-01-27  Bruno Haible  <bruno@clisp.org>
42134
42135         * m4/execute.m4: New file, from GNU gettext.
42136
42137 2004-01-27  Bruno Haible  <bruno@clisp.org>
42138
42139         * lib/execute.h: New file, from GNU gettext.
42140         * lib/execute.c: New file, from GNU gettext.
42141         * lib/w32spawn.h: New file, from GNU gettext.
42142
42143 2004-01-24  Paul Eggert  <eggert@twinsun.com>
42144
42145         Merge from diffutils.
42146
42147         * lib/file-type.c (file_type): Add typed memory objects.
42148         * lib/file-type.h (S_TYPEISTMO): New macro.
42149
42150         * lib/c-stack.h (c_stack_action): Remove argv argument.
42151         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
42152         (die): Don't calculate message unless segv_action returns.
42153         (get_stack_location, min_address_from_argv, max_address_from_argv,
42154         volatile stack_base, volatile_stack_size): Remove.
42155         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
42156         that every segmentation violation is a stack overflow.  (Ouch!)
42157         See Debian bug 136249 (still outstanding) for more info about why
42158         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
42159
42160 2004-01-24  Paul Eggert  <eggert@twinsun.com>
42161
42162         Exit-status fix from coreutils.
42163
42164         Use exit_failure consistently in place of EXIT_FAILURE,
42165         so that program exit statuses are consistent on failure.
42166
42167         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
42168         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
42169         * lib/argmatch.h: Comment fix to match the above.
42170         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
42171         Now a macro referring to exit_failure, instead of a separate
42172         variable.  Include "exitfail.h" to get it.
42173         * lib/xstrtol.h: Include "exitfail.h".
42174         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
42175
42176         * lib/long-options.c (parse_long_options): Use prototype
42177         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
42178         for clarity.
42179
42180 2004-01-21  Jim Meyering  <jim@meyering.net>
42181
42182         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
42183         so as not to conflict with a different-sized __mktime_internal
42184         function in GNU libc.
42185         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
42186         Problem building statically-linked `ls' reported by Michael Brunnbauer.
42187
42188 2004-01-20  Karl Berry  <karl@gnu.org>
42189
42190         * config/config.guess: update from config.
42191
42192         * config/srclistvars.sh: GNUWWWLICENSES for karl.
42193
42194 2004-01-20  Bruno Haible  <bruno@clisp.org>
42195
42196         Safer stack allocation.
42197         * lib/setenv.c: Include allocsa.h.
42198         (alloca): Remove fallback definition.
42199         (freea): Remove macro.
42200         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
42201         instead of freea.
42202
42203 2004-01-20  Bruno Haible  <bruno@clisp.org>
42204
42205         * m4/eealloc.m4: New file, from GNU gettext.
42206
42207 2004-01-20  Bruno Haible  <bruno@clisp.org>
42208
42209         * m4/allocsa.m4: New file, from GNU gettext.
42210
42211 2004-01-20  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/xallocsa.h: New file, from GNU gettext.
42214         * lib/xallocsa.c: New file, from GNU gettext.
42215
42216 2004-01-20  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
42219
42220 2004-01-20  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
42223         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
42224         specially.
42225
42226 2004-01-20  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
42229         patch.
42230
42231 2004-01-20  Bruno Haible  <bruno@clisp.org>
42232
42233         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
42234
42235 2004-01-20  Bruno Haible  <bruno@clisp.org>
42236
42237         * lib/eealloc.h: New file.
42238
42239 2004-01-20  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/binary-io.h: Avoid warnings on Cygwin.
42242
42243 2004-01-20  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/allocsa.h: New file, from GNU gettext.
42246         * lib/allocsa.c: New file, from GNU gettext.
42247
42248 2004-01-18  Karl Berry  <karl@gnu.org>
42249
42250         * doc/gpl.texi, doc/lgpl.texi: new files.
42251
42252 2004-01-18  Karl Berry  <karl@gnu.org>
42253
42254         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
42255         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
42256
42257 2004-01-15  Paul Eggert  <eggert@twinsun.com>
42258
42259         Merge from coreutils.
42260
42261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
42262         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
42263         (gl_DEFAULT_POSIX2_VERSION): Move
42264         the documentation from 'configure' into 'config.hin',
42265         so that 'configure --help' isn't burdened by it and
42266         we don't have to worry about its formatting there.
42267         Reword the documentation so that it's more succinct
42268         and can be run together into a single paragraph.
42269         * m4/same.m4 (gl_SAME): Check for pathconf.
42270
42271 2004-01-15  Paul Eggert  <eggert@twinsun.com>
42272
42273         Merge from coreutils.
42274
42275         * lib/posixver.c: Include posixver.h.
42276
42277         * lib/same.c: Include <stdbool.h>, <limits.h>.
42278         (_POSIX_NAME_MAX): Define if not defined.
42279         (MIN): New macro.
42280         (same_name): If file names are silently truncated, report
42281         that the file names are the same if they are the same after
42282         the silent truncation.
42283
42284         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
42285         conversion function.
42286         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
42287         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
42288         longer needed.
42289
42290 2004-01-15  Jim Meyering  <jim@meyering.net>
42291
42292         Merge from coreutils.
42293
42294         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
42295         if no library is required.
42296         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
42297         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
42298         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
42299         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
42300         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
42301         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
42302         value, $ac_cv_search_crypt, if it's "none required".
42303         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
42304         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
42305         not gl_FUNC_GETLOADAVG.
42306         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
42307         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
42308
42309 2004-01-15  Jim Meyering  <jim@meyering.net>
42310
42311         Merge from coreutils.
42312
42313         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
42314         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
42315         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
42316
42317         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
42318         optional configure-time default.
42319
42320         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42321
42322         * lib/xreadlink.c (xreadlink): Correct outdated comment.
42323
42324 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
42325
42326         Merge from coreutils.
42327
42328         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
42329         value, $ac_cv_search_nanosleep, if it's "none required".
42330
42331 2004-01-14  Paul Eggert  <eggert@twinsun.com>
42332
42333         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
42334         with like-named macro in fnmatch.c.
42335         (EXT): Use an internal constant instead.
42336
42337         Merge fnmatch patches from glibc.
42338         * lib/fnmatch.c (mbsinit): Remove define.
42339         Add libc_hidden_ver (__fnmatch, fnmatch).
42340         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
42341         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
42342
42343 2004-01-14  Karl Berry  <karl@gnu.org>
42344
42345         * config/install-sh: update from automake.
42346
42347 2004-01-13  Karl Berry  <karl@gnu.org>
42348
42349         * config/install-sh: update from automake.
42350
42351 2004-01-09  Karl Berry  <karl@gnu.org>
42352
42353         * config/install-sh: update from automake.
42354
42355 2004-01-05  Karl Berry  <karl@gnu.org>
42356
42357         * config/config.{sub,guess}: update from config.
42358
42359 2003-12-31  Karl Berry  <karl@gnu.org>
42360
42361         * config/depcomp: update from automake.
42362
42363 2003-12-14  Karl Berry  <karl@gnu.org>
42364
42365         * lib/config.charset: update from gettext-runtime.
42366
42367 2003-12-03  Paul Eggert  <eggert@twinsun.com>
42368
42369         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
42370         Bug reported by Alfred M. Szmidt.
42371
42372 2003-12-03  Bruno Haible  <bruno@clisp.org>
42373
42374         * m4/gettext.m4: Upgrade from gettext-0.13.
42375         * m4/po.m4: Upgrade from gettext-0.13.
42376         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
42377         * m4/intmax.m4: New file, from gettext-0.13.
42378         * m4/printf-posix.m4: New file, from gettext-0.13.
42379
42380 2003-11-29  Karl Berry  <karl@gnu.org>
42381
42382         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
42383
42384 2003-11-25  Paul Eggert  <eggert@twinsun.com>
42385             Bruno Haible  <bruno@clisp.org>
42386
42387         * lib/printf-parse.h: Don't include sys/types.h.
42388         (ARG_NONE): New macro.
42389         (char_directive): Change type of *arg_index fields to size_t.
42390         * lib/printf-parse.c: Don't include sys/types.h.
42391         (SSIZE_MAX): Remove macro.
42392         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
42393         Remove unnecessary overflow check.
42394         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
42395         fields.
42396
42397 2003-11-25  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
42400
42401 2003-11-25  Bruno Haible  <bruno@clisp.org>
42402
42403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
42404         gt_TYPE_SSIZE_T.
42405
42406 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42407
42408         * modules/alloca: Remove dependency on xalloc.
42409
42410 2003-11-24  Paul Eggert  <eggert@twinsun.com>
42411
42412         * lib/alloca.c: Remove dependency on xalloc module.
42413         (xalloc_die): Remove.
42414         (memory_full) [!defined emacs]: New macro.
42415         [!defined emacs]: Don't include xalloc.h.
42416         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
42417         address arithmetic overflows.  Change datatypes a bit to avoid
42418         unnecessary casts.
42419
42420 2003-11-22  Jim Meyering  <jim@meyering.net>
42421
42422         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
42423         s/size/size_t/.
42424
42425 2003-11-21  Karl Berry  <karl@gnu.org>
42426
42427         * config/config.{sub,guess}: update from config.
42428
42429 2003-11-18  Karl Berry  <karl@gnu.org>
42430
42431         * config/config.{sub,guess}: update from config.
42432
42433         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
42434
42435 2003-11-17  Paul Eggert  <eggert@twinsun.com>
42436
42437         * README: Mention that S+T cannot overflow if S is the size of
42438         an existing object and T is sufficiently small.
42439
42440 2003-11-17  Jim Meyering  <jim@meyering.net>
42441
42442         On systems without utime and without a utimes function capable of
42443         dealing with a NULL struct utimbuf* argument, this utime replacement
42444         could -- in unusual circumstances -- leak a file descriptor.
42445         * lib/utime.c: Include <unistd.h> and <errno.h>.
42446         (utime_null): Be sure to close `fd' and to preserve errno.
42447         Reported by Geoff Collyer via Arnold Robbins.
42448
42449 2003-11-17  Bruno Haible  <bruno@clisp.org>
42450
42451         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
42452         (Depends-on): Add xsize.
42453
42454 2003-11-17  Bruno Haible  <bruno@clisp.org>
42455
42456         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
42457
42458 2003-11-17  Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/vasnprintf.c (alloca): Remove fallback definition.
42461         (freea): Remove definition.
42462         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
42463         Reported by Paul Eggert.
42464
42465 2003-11-16  Paul Eggert  <eggert@twinsun.com>
42466             Bruno Haible  <bruno@clisp.org>
42467
42468         Protect against address arithmetic overflow.
42469         * lib/printf-args.h: Include stddef.h.
42470         (arguments): Change type of field 'count' to size_t.
42471         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
42472         'unsigned int' where appropriate.
42473         * lib/printf-parse.h: Include sys/types.h.
42474         (char_directive): Change type of *arg_index fields to ssize_t.
42475         (char_directives): Change type of fields 'count', max_*_length to
42476         size_t.
42477         * lib/printf-parse.c: Include sys/types.h and xsize.h.
42478         (SSIZE_MAX): Define fallback value.
42479         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
42480         instead of 'int' where appropriate. Check a_allocated, d_allocated
42481         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
42482         * lib/vasnprintf.c: Include xsize.h.
42483         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
42484         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
42485         overflow. Avoid wraparound when converting a width or precision from
42486         decimal to binary.
42487
42488 2003-11-16  Bruno Haible  <bruno@clisp.org>
42489
42490         Update from GNU gettext.
42491         * lib/printf-parse.c: Generalize to it can be compiled for wide
42492         strings.
42493         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
42494         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
42495         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
42496         SNPRINTF): New macros.
42497         Don't include <alloca.h> if the file is used inside libintl.
42498         (local_wcslen): New function, for Solaris 2.5.1.
42499         (VASNPRINTF): Use it instead of wcslen.
42500
42501 2003-11-16  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/xsize.h (xmax): New function.
42504         (xsum, xsum3, xsum4): Declare as "pure" functions.
42505
42506 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42507
42508         * modules/xalloc (Files): Undo latest change, since xalloc.h
42509         no longer needs SIZE_MAX or PTRDIFF_MAX.
42510
42511 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42512
42513         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
42514         gl_PTRDIFF_MAX.
42515
42516 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42517
42518         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
42519         "return", to pacify some unknown compiler.  Problem reported
42520         by Joerg Schilling.
42521
42522 2003-11-12  Paul Eggert  <eggert@twinsun.com>
42523
42524         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
42525         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
42526         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
42527         heuristic is just as accurate as far as we know, and it removes a
42528         dependency on size_max.m4 and ptrdiff_max.m4.
42529
42530 2003-11-11  Bruno Haible  <bruno@clisp.org>
42531
42532         * modules/xsize (Files): Add m4/size_max.m4.
42533         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
42534
42535 2003-11-11  Bruno Haible  <bruno@clisp.org>
42536
42537         * m4/size_max.m4: New file.
42538         * m4/ptrdiff_max.m4: New file.
42539         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
42540         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
42541         (gl_XALLOC): Invoke it.
42542
42543 2003-11-11  Bruno Haible  <bruno@clisp.org>
42544
42545         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
42546         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
42547         defined.
42548
42549 2003-11-10  Paul Eggert  <eggert@twinsun.com>
42550
42551         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
42552         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
42553         rejected some allocations of exactly SIZE_MAX - 2 bytes.
42554         From Bruno Haible.
42555         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
42556         not (size_t) -1, since it's defined here.
42557
42558 2003-11-09  Karl Berry  <karl@gnu.org>
42559
42560         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
42561
42562 2003-11-06  Paul Eggert  <eggert@twinsun.com>
42563
42564         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
42565         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
42566         Reject sizes of exactly SIZE_MAX bytes.
42567         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
42568         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
42569
42570 2003-11-05  Bruno Haible  <bruno@clisp.org>
42571
42572         * lib/xsize.h: Include limits.h, to avoid a possible collision with
42573         SIZE_MAX defined in <limits.h> on Solaris.
42574
42575 2003-11-04  Jim Meyering  <jim@meyering.net>
42576
42577         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
42578         variable names, rather than @VAR@.
42579         * modules/poll: Likewise.
42580
42581 2003-11-04  Bruno Haible  <bruno@clisp.org>
42582
42583         * modules/xsize: New file.
42584         * modules/linebreak: Depend on xsize.
42585         * MODULES.html.sh (func_all_modules): Add xsize.
42586
42587 2003-11-04  Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/xsize.m4: New file.
42590
42591 2003-11-04  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/xsize.h: New file.
42594         * lib/linebreak.c: Include xsize.h.
42595         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
42596         argument for overflow.
42597         Suggested by Paul Eggert.
42598
42599 2003-11-03  Karl Berry  <karl@gnu.org>
42600
42601         * config/config.{guess,sub}: update from config.
42602
42603 2003-11-03  Jim Meyering  <jim@meyering.net>
42604
42605         * modules/userspec (lib_SOURCES): Add userspec.h.
42606         (Include): Add "userspec.h".
42607         Improve description.
42608
42609 2003-11-03  Jim Meyering  <jim@meyering.net>
42610
42611         * lib/userspec.c: Include "userspec.h".
42612         * lib/userspec.h: New file.
42613
42614 2003-11-03  Bruno Haible  <bruno@clisp.org>
42615
42616         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
42617
42618 2003-11-03  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
42621         available, to avoid (extremely rare) race condition.
42622         Suggested by Paul Eggert.
42623
42624 2003-11-02  Karl Berry  <karl@gnu.org>
42625
42626         * config/srclist.txt (vasprintf.c): sync broken, sigh.
42627
42628 2003-10-31  Paul Eggert  <eggert@twinsun.com>
42629
42630         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
42631         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
42632         (read_filesystem_list): Set and use me_type_malloced.
42633         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
42634         whatever the type happens to be), for brevity and consistency.
42635         Check for size calculation overflow on Alphas running OSF/1.
42636
42637 2003-10-31  Jim Meyering  <jim@meyering.net>
42638
42639         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
42640
42641         * lib/linebuffer.c: Include <string.h> for declaration of memset.
42642
42643 2003-10-30  Paul Eggert  <eggert@twinsun.com>
42644             Bruno Haible  <bruno@clisp.org>
42645
42646         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
42647         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
42648
42649 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
42652         netbsd*-gnu*.  Suggested by Robert Millan.
42653
42654 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42655
42656         * modules/group-member: Depend on stdbool.
42657
42658 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42659
42660         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
42661
42662 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42663
42664         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
42665         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
42666         after the 'gnu' in these cases.  This fixes some bugs in the
42667         previous change, and is based on suggestions by Robert Millan.
42668
42669 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42670
42671         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
42672         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
42673         no longer needed.
42674         * lib/quotearg.c (quotearg_n_options): Use it.
42675         * lib/group-member.c: Include <stdbool.h>.
42676         (free_group_info): Arg is now const *; don't free arg.
42677         (get_group_info): Now returns bool and accepts struct group_info *,
42678         rather than returning a malloc'ed struct group_info *.
42679         All uses changed.  Check for overflow in internal size calculation.
42680
42681         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
42682         rather than xmalloc/xrealloc.
42683         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
42684         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
42685         conformance bug: the old code used a pointer after freeing the
42686         storage that it addressed.
42687         * lib/hash.c (hash_initialize): Simplify the code by using
42688         xalloc_oversized rather than doing it by hand.
42689         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
42690         the buffer preserved.  Use free and xmalloc instead.
42691         * lib/quotearg.c (quotearg_n_options): Likewise.
42692         Use a simpler test for size overflow.  Don't use xalloc_oversized
42693         because unsigned int might be wider than size_t (!); this suggests
42694         that we should switch from unsigned int to size_t for slot numbers.
42695
42696 2003-10-28  Paul Eggert  <eggert@twinsun.com>
42697
42698         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
42699         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
42700         NetBSD kernels.  Requested by Richard Stallman.
42701
42702 2003-10-27  Paul Eggert  <eggert@twinsun.com>
42703
42704         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
42705         to allocate the returned structure.  Do not allocate a subarray,
42706         as x2nrealloc will do that.
42707         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
42708         instead of xnrealloc.
42709         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
42710
42711 2003-10-27  Bruno Haible  <bruno@clisp.org>
42712
42713         * lib/stdbool_.h: Better support for BeOS.
42714
42715 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42716
42717         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
42718         now uses inline.
42719
42720 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42721
42722         * lib/xalloc.h (xalloc_oversized): New static inline function, for
42723         callers that want to do their own size-overflow checking.  Include
42724         <stdbool.h>, since xalloc_oversized returns bool.
42725         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
42726         to use xalloc_oversized.
42727
42728         Add two functions x2realloc, x2nrealloc, for programs that grow
42729         arrays dynamically by doubling their sizes.
42730         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
42731         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
42732         New functions.
42733
42734         Port to C99 semantics for 'inline' of external functions.
42735         Bug reported by Bruno Haible.
42736         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
42737         with the old contents of xnmalloc.
42738         (xnmalloc, xmalloc): Use it.
42739         (xnrealloc_inline): New static inline function,
42740         with the old contents of xnrealloc.
42741         (xnrealloc, xrealloc): Use it.
42742
42743         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
42744         that.
42745
42746 2003-10-26  Karl Berry  <karl@gnu.org>
42747
42748         * config/srclist.txt (COPYING.DOC): no longer available from
42749         /gd/gnuorg; don't know where the ultimate source is.
42750
42751 2003-10-25  Paul Eggert  <eggert@twinsun.com>
42752
42753         Fix several address-calculation bugs in the hash modules,
42754         plus some minor code cleanup.
42755
42756         * lib/hash.h: Include <stdbool.h>, for bool.
42757         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
42758         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
42759         hash_get_n_entries, hash_get_max_bucket_length,
42760         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
42761         hash_rehash): Use size_t rather than unsigned.
42762         * lib/hash.c (struct hash_table, hash_get_n_buckets,
42763         hash_get_n_buckets_used, hash_get_n_entries,
42764         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
42765         hash_get_entries, hash_do_for_each, hash_string, is_prime,
42766         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
42767         Likewise.
42768         (SIZE_MAX): Define if not defined.
42769         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
42770         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
42771         hash_print):
42772         Use const * when possible.
42773         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
42774         (check_tuning): Fix bug: if tuning parameters were very close to
42775         0 or 1, rounding errors could have caused subscript violations.
42776         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
42777         (hash_initialize): Add 'fail:' label
42778         to free table and return NULL, and use it to simplify code.
42779         Use calloc rather than clearing the storage ourself.
42780         (hash_initialize, hash_rehash): Check for arithmetic overflow in
42781         buffer size calculations.
42782         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
42783         Include <stddef.h>, for size_t.
42784         * lib/hash-pjw.c (hash_pjw): Likewise.
42785         Switch to method described by Bruno Haible.
42786         Include <limits.h>, for CHAR_BIT.
42787         (SIZE_BITS): New macro.
42788
42789 2003-10-23  Paul Eggert  <eggert@twinsun.com>
42790
42791         * m4/getline.m4 (AM_FUNC_GETLINE):
42792         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
42793         hosts.  Problem reported by Derek Robert Price in
42794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
42795         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
42796         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
42797
42798 2003-10-21  Paul Eggert  <eggert@twinsun.com>
42799
42800         * lib/getndelim2.c (getndelim2): When size calculation overflows,
42801         ceiling the allocation at NMAX bytes rather than silently
42802         discarding input bytes before NMAX is reached.  This makes
42803         a difference only if NMAX exceeds SIZE_MAX / 2.
42804
42805         * lib/obstack.c: Merge from glibc.
42806         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
42807         Add libc_hidden_def (_obstack_newchunk).
42808         (_obstack_free) [! defined _LIBC]: Remove.
42809         [defined _LIBC]: Make a strong alias from obstack_free, rather than
42810         a clone of the function body.
42811         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
42812         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
42813
42814         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
42815         glibc.
42816         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
42817         arg to memcpy.
42818
42819         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
42820         (obstack_ptr_grow_fast, obstack_int_grow_fast):
42821         Don't use lvalue casts, as GCC plans to remove support for them
42822         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
42823         was also present in the non-GCC version, indicating that this
42824         code had always been buggy and had never been widely used.
42825         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
42826         Use the fast variant of each macro, rather than copying the
42827         definiens of the fast variant; that way, we'll be more likely to
42828         catch future bugs in the fast variants.
42829
42830 2003-10-20  Bruno Haible  <bruno@clisp.org>
42831
42832         * modules/wait-process: New file.
42833         * MODULES.html.sh (func_all_modules): Add wait-process.
42834
42835 2003-10-20  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/wait-process.m4: New file.
42838
42839 2003-10-20  Bruno Haible  <bruno@clisp.org>
42840
42841         * lib/wait-process.h: New file, from GNU gettext.
42842         * lib/wait-process.c: New file, from GNU gettext.
42843
42844 2003-10-19  Jim Meyering  <jim@meyering.net>
42845
42846         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
42847         HPUX 10.20.
42848
42849 2003-10-18  Karl Berry  <karl@gnu.org>
42850
42851         * config/config.guess: update from config.
42852
42853 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42854
42855         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
42856         (getgroups): First arg is int, not size_t.
42857         Don't let 'free' mangle errno.
42858
42859 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42860
42861         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
42862
42863 2003-10-16  Karl Berry  <karl@gnu.org>
42864
42865         * config/config.{guess,sub}: update from config.
42866
42867 2003-10-16  Jim Meyering  <jim@meyering.net>
42868
42869         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
42870         memcpy.
42871
42872 2003-10-15  Paul Eggert  <eggert@twinsun.com>
42873
42874         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
42875         (SIZE_MAX): Remove.
42876         (new_exclude, add_exclude_file): Initial size no longer needs to
42877         be a power of 2.
42878         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
42879         our own address arithmetic overflow checking.
42880
42881         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
42882         (fnmatch): Do not alloca more than 2000 wide characters;
42883         instead, use malloc for large buffers.
42884         Check for address arithmetic overflow, and return -1
42885         with errno set to ENOMEM in that case.
42886         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
42887         (NEW_PATTERN): Do not alloca more than 8000 bytes;
42888         instead, return -1.  Check for address arithmetic overflow.
42889
42890 2003-10-14  Paul Eggert  <eggert@twinsun.com>
42891
42892         Handle invalid suffixes and overflow independently, so that
42893         callers can treat them independently as needed.  Fix some bugs in
42894         suffix handling, e.g., "100k@" was not diagnosed as an invalid
42895         suffix for a human-readable blocksize.  The major caller-visible
42896         change is the addition of a new
42897         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
42898         that both overflow and suffix chars were found.
42899
42900         * lib/human.c (humblock): Don't check separately for invalid suffix
42901         char; that is xstrtoumax's job (now that its bug is fixed).
42902         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
42903         INTMAX_MAX]: New macros.
42904         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
42905         TYPE_MAXIMUM): New macros.
42906         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
42907         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
42908         if overflow occurs, as it's what __strtol does and it's more useful
42909         in practice.
42910         (__xstrtol): If __strtol reports some error other than ERANGE,
42911         reflect it to the caller as LONGINT_INVALID.  If it reports
42912         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
42913         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
42914         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
42915         value.
42916         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
42917         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42918         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42919         [defined UINTMAX_MAX]: New macros.
42920
42921 2003-10-14  Bruno Haible  <bruno@clisp.org>
42922
42923         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42924
42925 2003-10-14  Bruno Haible  <bruno@clisp.org>
42926
42927         * m4/sig_atomic_t: New file, from GNU gettext.
42928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42929
42930 2003-10-14  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42933         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42934         Also use volatile where needed.
42935
42936 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42937
42938         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
42939         Change maintainer from Bruno Haible to 'all'.
42940
42941 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42942
42943         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42944
42945 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42946
42947         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42948         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42949         and define in terms of the other primitives.
42950         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42951         (SIZE_MAX): Define if not already defined.
42952         (array_size_overflow): New function.
42953         (xalloc_die): Abort instead of exiting if 'error' returns.
42954         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42955         (xmalloc, xrealloc): Use them.
42956         (xcalloc): Check for address arithmetic overflow.
42957         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42958         a bit faster than strcpy.
42959
42960 2003-10-10  Simon Josefsson  <jas@extundo.com>
42961
42962         * modules/argp (Depends-on): Add restrict and strcase.
42963
42964 2003-10-10  Simon Josefsson  <jas@extundo.com>
42965
42966         * m4/argp.m4: Add AC_C_INLINE.
42967
42968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42969
42970         Merge getpass from libc, plus a few fixes.
42971
42972         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42973         Include <stdbool.h>.
42974         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42975         __fsetlocking to empty.
42976         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42977         do include <bits/libc-lock.h>.
42978         Do not include <fcntl.h>; not needed.
42979         [_LIBC]: Include <wchar.h>.
42980         (NOTCANCEL_MODE): New macro.
42981         (flockfile, funlockfile) [_LIBC]: New macros.
42982         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42983         [!_LIBC]: New macros.
42984         (call_fclose): New function.
42985         (getpass): Use it.  Save tty stream separately; this simplifies the
42986         code and makes it more reliable if stdin happens to equal stdout.
42987         Invoke __fsetlocking on tty.
42988         Handle thread cancellation if needed.
42989         Namespace cleanup (use __tcgetattr, __getline).
42990         Use bool for Booleans.
42991         [USE_IN_LIBIO]: Handle wide streams.
42992         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42993         stream might go where.
42994
42995         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42996         doesn't have to include <stdio.h> before us.
42997         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42998         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42999         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
43000         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
43001         if not declared, so that we can use getpass.c code from libc without
43002         rewriting it.
43003         (flockfile, ftrylockfile, funlockfile): New macros.
43004
43005 2003-10-08  Paul Eggert  <eggert@twinsun.com>
43006
43007         * modules/getpass: Depend on stdbool.
43008
43009 2003-10-08  Paul Eggert  <eggert@twinsun.com>
43010
43011         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
43012
43013 2003-10-07  Karl Berry  <karl@gnu.org>
43014
43015         * config/config.{guess,sub}: update from config.
43016
43017 2003-10-06  Jim Meyering  <jim@meyering.net>
43018             Bruno Haible  <bruno@clisp.org>
43019
43020         This lets translators provide better translations for the
43021         "Written by ..." part of --version output.
43022         * lib/version-etc.h: Include stdarg.h.
43023         (version_etc_copyright): Declare as readonly.
43024         (version_etc): Make this function variadic with a NULL-terminated list
43025         of author name strings.
43026         (version_etc_va): New declaration.
43027         * lib/version-etc.c: Include stdarg.h, stdlib.h.
43028         (version_etc_copyright): Declare as readonly.
43029         (version_etc_va): New function. Provide a different translatable string
43030         for each possible number of authors < 10. Abbreviate when there are 10
43031         authors or more.
43032         (version_etc): Make this function variadic. Call version_etc_va.
43033         Suggestion from Gary V. Vaughan.
43034
43035         * lib/long-options.h (parse_long_options): Change prototype: the
43036         authors string is moved to the end and becomes variadic.
43037         * lib/long-options.c: Include stdarg.h.
43038         (parse_long_options): Make this function variadic, too.
43039         Call version_etc_va, not version_etc.
43040
43041 2003-10-06  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/version-etc-2: Remove file.
43044         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
43045
43046 2003-10-06  Bruno Haible  <bruno@clisp.org>
43047
43048         * modules/fatal-signal: New file.
43049         * MODULES.html.sh (func_all_modules): Add fatal-signal.
43050
43051 2003-10-06  Bruno Haible  <bruno@clisp.org>
43052
43053         * m4/fatal-signal.m4: New file.
43054         * m4/signalblocking.m4: New file, from GNU gettext.
43055
43056 2003-10-06  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/version-etc-2.h: Remove file.
43059         * lib/version-etc-2.c: Remove file.
43060
43061 2003-10-06  Bruno Haible  <bruno@clisp.org>
43062
43063         * lib/fatal-signal.h: New file, from GNU gettext.
43064         * lib/fatal-signal.c: New file, from GNU gettext.
43065
43066 2003-10-05  Paul Eggert  <eggert@twinsun.com>
43067
43068         * README: Rework advice for preventing empty .o files.
43069         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
43070         not <sys/types.h>.
43071
43072 2003-10-04  Karl Berry  <karl@gnu.org>
43073
43074         * lib/argp*: update from libc.
43075
43076 2003-10-04  Karl Berry  <karl@gnu.org>
43077
43078         * config/config.{guess,sub}: update from config.
43079
43080 2003-10-02  Bruno Haible  <bruno@clisp.org>
43081
43082         * modules/lchown (Include): Add lchown.h.
43083         * modules/time_r (Include): Use "..." syntax.
43084         * modules/xgetdomainname (Include): Add xgetdomainname.h.
43085
43086 2003-10-01  Simon Josefsson  <jas@extundo.com>
43087
43088         * MODULES.html.sh (func_all_modules): Move gethostname from section
43089         'based on' to section 'lacking' POSIX:2001.
43090
43091 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
43092
43093         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
43094         to output mode on the same stream.
43095
43096 2003-09-29  Paul Eggert  <eggert@twinsun.com>
43097
43098         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
43099         Fix arg typo in previous patch.
43100
43101 2003-09-28  Jim Meyering  <jim@meyering.net>
43102
43103         * lib/error.c: Correct cpp indentation.
43104
43105 2003-09-27  Paul Eggert  <eggert@twinsun.com>
43106
43107         * modules/free: New file.
43108
43109 2003-09-27  Paul Eggert  <eggert@twinsun.com>
43110
43111         * m4/free.m4: New file.
43112
43113 2003-09-27  Paul Eggert  <eggert@twinsun.com>
43114
43115         * lib/minmax.h (MIN, MAX)
43116         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
43117         Omit the special code that used __typeof__, since we worry that
43118         it could be more trouble than it's worth.  See:
43119         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
43120         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
43121
43122         * lib/free.c: New file.
43123
43124 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
43125
43126         Trivial fixes to Makefile.am parts of module listings.
43127         * modules/strstr: Append strstr.h to lib_SOURCES.
43128         * modules/strcase: Likewise, for strcase.h.
43129
43130 2003-09-27  Karl Berry  <karl@gnu.org>
43131
43132         * config/mkinstalldirs: update from automake.
43133
43134 2003-09-26  Paul Eggert  <eggert@twinsun.com>
43135
43136         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
43137         (error_tail): Do not loop, reallocating temporary buffer, since
43138         the output cannot contain more wide characters than the input
43139         contains bytes, the size must be big enough already.  This avoids
43140         one potential size overflow calculation.  Check for size overflow
43141         when calculating temporary buffer size.  Free temporary buffer
43142         when done, if it was allocated with malloc; this plugs a memory
43143         leak.  Remove casts from void * to pointers, that are no longer
43144         needed now that we're assuming C89 or better.
43145
43146         Merge error changes from glibc.
43147
43148         * lib/error.c, error.h: Update copyright notice header to match glibc.
43149         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
43150         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
43151         Disable cancellation while printing error.
43152         * lib/error.h: Prepend __ to parameter names.
43153
43154 2003-09-26  Jim Meyering  <jim@meyering.net>
43155
43156         * lib/error.c (error_tail): Move some declarations
43157         into inner scope where the local variables are used.
43158
43159 2003-09-26  Bruno Haible  <bruno@clisp.org>
43160
43161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
43162         stpncpy().
43163         Don't define stpncpy through config.h; it's now done through stpncpy.h.
43164
43165 2003-09-26  Bruno Haible  <bruno@clisp.org>
43166
43167         * lib/stpncpy.h (gnu_stpncpy): New declaration.
43168         (stpncpy): Define as alias for gnu_stpncpy.
43169         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
43170
43171 2003-09-25  Simon Josefsson  <jas@extundo.com>
43172
43173         * lib/xgetdomainname.h: New file.
43174         * lib/xgetdomainname.c: New file.
43175
43176 2003-09-25  Simon Josefsson  <jas@extundo.com>
43177             Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/getdomainname: New file.
43180         * modules/xgetdomainname: New file.
43181         * MODULES.html.sh (func_all_modules): Add getdomainname,
43182         xgetdomainname.
43183
43184 2003-09-25  Simon Josefsson  <jas@extundo.com>
43185             Bruno Haible  <bruno@clisp.org>
43186
43187         * m4/getdomainname.m4: New file.
43188
43189 2003-09-25  Simon Josefsson  <jas@extundo.com>
43190             Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/getdomainname.h: New file.
43193         * lib/getdomainname.c: New file.
43194
43195 2003-09-25  Karl Berry  <karl@gnu.org>
43196
43197         * lib/argp-fmtstream.c, argp-help.c: update from libc.
43198
43199 2003-09-25  Karl Berry  <karl@gnu.org>
43200
43201         * config/install-sh: update from automake.
43202
43203 2003-09-25  Bruno Haible  <bruno@clisp.org>
43204
43205         * modules/version-etc-2: New file, from modules/version-etc with
43206         modifications.
43207         * MODULES.html.sh (func_all_modules): Add version-etc-2.
43208
43209 2003-09-25  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
43212         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
43213
43214 2003-09-24  Simon Josefsson  <jas@extundo.com>
43215
43216         * modules/xgethostname: Add xgethostname.h.
43217
43218 2003-09-24  Paul Eggert  <eggert@twinsun.com>
43219
43220         * lib/linebuffer.c (freebuffer): Don't free the argument, just
43221         the buffer associated with the argument.  Bug reported by
43222         Simon Josefsson.
43223
43224 2003-09-24  Paul Eggert  <eggert@twinsun.com>
43225
43226         * README: Document assumptions that 'int' is at least 32 bits
43227         wide, that integer arithmetic is 2's complement without overflow,
43228         that there are no holes in integer values, that adding sizes of
43229         two nonoverlapping objects can't overflow, and that all-bits-zero
43230         yields scalar zero.  Fix spelling and capitalization typos.
43231
43232 2003-09-19  Karl Berry  <karl@gnu.org>
43233
43234         * lib/argp.h: update from libc.
43235
43236 2003-09-17  Paul Eggert  <eggert@twinsun.com>
43237
43238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
43239         to avoid spurious warnings like "AC_RUN_IFELSE was called before
43240         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
43241
43242 2003-09-17  Paul Eggert  <eggert@twinsun.com>
43243
43244         * gnulib-tool: Use "test -h", not "test -L", for portability
43245         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
43246         (tags_regexp): Remove, since \| doesn't conform to POSIX.
43247         (sed_extract_prog): Issue s commands one-by-one, rather than
43248         using \| in one s command.
43249
43250 2003-09-16  Paul Eggert  <eggert@twinsun.com>
43251
43252         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
43253         input error, instead of returning NULL the next time we are called
43254         (and therefore losing track of errno).
43255
43256 2003-09-16  Bruno Haible  <bruno@clisp.org>
43257
43258         * gnulib-tool (func_create_testdir): Warn about duplicated
43259         dependencies.
43260
43261 2003-09-15  Paul Eggert  <eggert@twinsun.com>
43262
43263         * modules/argmatch, modules/fatal, modules/obstack,
43264         modules/xalloc, modules/xgethostname: Sort dependencies by
43265         importance, not alphabetically.
43266
43267 2003-09-15  Paul Eggert  <eggert@twinsun.com>
43268
43269         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
43270         fails, so that the caller gets the proper errno.
43271
43272         * lib/readutmp.c (read_utmp): Likewise.
43273         Check for fstat error.  Close stream and free storage
43274         when failing.
43275
43276 2003-09-14  Karl Berry  <karl@gnu.org>
43277
43278         * config/srclist.txt (strdup.c): disable for c89 changes.
43279
43280 2003-09-14  Jim Meyering  <jim@meyering.net>
43281
43282         * lib/getloadavg.c: Correct cpp indentation.
43283         * lib/strdup.c: Likewise.
43284         * lib/vasnprintf.c: Likewise.
43285
43286 2003-09-14  Bruno Haible  <bruno@clisp.org>
43287
43288         * modules/fwriteerror: New file.
43289         * MODULES.html.sh (func_all_modules): Add fwriteerror.
43290
43291 2003-09-14  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/fwriteerror.h: New file.
43294         * lib/fwriteerror.c: New file.
43295
43296 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43297
43298         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
43299         modules/xgethostname, modules/xalloc: Depend on exit.
43300
43301 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43302
43303         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
43304
43305         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
43306         and AC_MINIX, too, so that their extensions are available.
43307
43308         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
43309         This macro has been superseded by gl_BACKUPFILE.
43310
43311         More patches to assume C89 or better.
43312
43313         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
43314
43315         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
43316         unconditionally.
43317         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
43318         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
43319         Include <string.h>, <stdlib.h> unconditionally.
43320         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
43321         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
43322         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
43323         headers or for string.h.
43324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
43325         or strtoul.
43326
43327         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
43328         headers.
43329         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
43330         * m4/userspec.m4 (gl_USERSPEC): Likewise.
43331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
43332         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
43333         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43334         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
43335         memcpy, memset.
43336         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
43337         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
43338         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
43339         strtol.
43340         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
43341         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
43342         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
43343         strtoul.
43344
43345 2003-09-12  Paul Eggert  <eggert@twinsun.com>
43346
43347         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
43348         * lib/obstack.c [!defined _LIBC]: Likewise.
43349         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
43350         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
43351         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
43352
43353         More changes to assume C89 or better.
43354
43355         * lib/error.c (error_tail): Assume vprintf.
43356
43357         * lib/argmatch.c (getenv): Remove decl.
43358         * lib/progreloc.c (get_full_program_name): Define via prototype.
43359         * lib/setenv.c (clearenv): Likewise.
43360         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
43361         needed.
43362         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
43363         (malloc, memcpy): Remove decls.
43364         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
43365         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
43366         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43367         (memcpy): Remove macro.
43368         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
43369         (__P): Remove.  All uses removed.
43370         (PTR): Remove.  All uses changed to void *.
43371         (CHAR_BIT, NULL): Remove.
43372         (spaces, zeros, memset_space, memset_zero)
43373         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
43374         Remove.
43375         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
43376         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
43377         Define with prototype.
43378         Remove now-unnecessary prototype decl.
43379         (extra_args_spec): Assume ANSI C.  All uses changed.
43380         (extra_args_spec_iso): Remove.
43381         (my_strftime, emacs_strftimeu): Define via prototype.
43382         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
43383         unconditionally.
43384         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
43385         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
43386         (strtoul, strtol): Remove decls.
43387         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
43388         LONG_MAX): Remove.
43389         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
43390         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
43391         (LOCALE_PARAM_PROTO): New macro.
43392         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
43393         (INTERNAL (strtol), strtol): Define with a prototype.
43394         (PARAMS): Remove.  All uses removed.
43395         * lib/tempname.c: Include <string.h> unconditionally.
43396         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
43397         * lib/xgethostname.c (main): Define with a prototype.
43398         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
43399         Include <stdlib.h> unconditionally.
43400         (calloc, malloc, realloc, free): Remove decls.
43401         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
43402         Include <stdlib.h> unconditionally.  Sort include file names.
43403         (strtod): Remove.
43404         (xstrtod): Define with a prototype.
43405         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
43406         (strtol, strtoul): Remove decls.
43407
43408 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43409
43410         More patches to assume C89 or better.
43411         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
43412         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
43413         string.h, memchr, STDC_HEADERS.
43414
43415 2003-09-11  Paul Eggert  <eggert@twinsun.com>
43416
43417         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
43418         Include <stdlib.h>, <string.h> unconditionally.
43419         Remove now-unnecessary cast to char *.
43420         * lib/strnlen.c: Include <string.h> unconditionally.
43421         * lib/yesno.c (yesno): Define with a prototype.
43422
43423 2003-09-11  Bruno Haible  <bruno@clisp.org>
43424
43425         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
43426
43427 2003-09-10  Jim Meyering  <jim@meyering.net>
43428
43429         * lib/error.c: Correct indentation of cpp directives.
43430
43431 2003-09-10  Bruno Haible  <bruno@clisp.org>
43432
43433         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
43434         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
43435         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
43436         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
43437         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
43438         <stdlib.h> and <string.h> checks.
43439         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
43440         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
43441
43442 2003-09-10  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/strcspn.c: Include <string.h> unconditionally.
43445         * lib/strpbrk.c: Include <string.h> unconditionally.
43446         * lib/strstr.c: Include <string.h> unconditionally.
43447         * lib/unicodeio.c: Include <string.h> unconditionally.
43448         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
43449         * lib/unsetenv.c: Likewise.
43450         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
43451         * lib/yesno.c: Include <stdlib.h> unconditionally.
43452         (rpmatch): Add prototype.
43453
43454 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43455
43456         More patches to assume C89 or better.
43457         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
43458         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
43459         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
43460         or for string.h.
43461         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
43462         stdlib.h.
43463         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
43464         C headers.
43465         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
43466         string.h.
43467         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
43468         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
43469         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
43470         or for string.h.
43471         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
43472         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
43473         C headers.
43474         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
43475         memcpy.
43476         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
43477         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
43478         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
43479         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
43480         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
43481         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
43482         string.h, free.
43483         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
43484         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
43485         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
43486         C headers, or for string.h.
43487         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
43488         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
43489         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
43490         headers, memory.h, stdlib.h, string.h, strings.h.
43491         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
43492         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
43493         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
43494         strchr.
43495         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
43496         headers, memory.h, string.h.
43497         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
43498         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
43499         free.
43500         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
43501         headers.
43502         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
43503         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
43504         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
43505         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
43506         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
43507
43508 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43509
43510         More K&R removal.
43511
43512         * lib/acosl.c (main): Use a prototype.
43513         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
43514         tanl.c: Likewise.
43515
43516         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
43517
43518         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
43519         (getopt, etopt_long, getopt_long_only, _getopt_internal)
43520         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
43521         with a prototype.
43522         * lib/getopt.c (const): Remove macro.
43523         Include <string.h> unconditionally.
43524         (my_index): Remove; all uses changed to strchr.
43525         (strlen): Remove decl.
43526         (exchange): Remove forward decl; no longer needed.
43527         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
43528         Define with prototype.
43529         * lib/getopt1.c (const): Remove macro.
43530         (getopt_long, getopt_long_only, main): Define with prototype.
43531
43532         * lib/getugroups.c: Include <string.h> unconditionally.
43533
43534         * lib/getusershell.c: Include <stdlib.h> unconditionally.
43535         (getusershell, setusershell, endusershell, readname, main):
43536         Define with prototypes.
43537
43538         * lib/group-member.c: Include group-member.h first.
43539         Include <stdlib.h> unconditionally.
43540
43541         * lib/hard-locale.c: Include hard-locale.h first.
43542         Include <stdlib.h>, <string.h> unconditionally.
43543
43544         * lib/hash.c (free, malloc): Remove decls.
43545         Include <stdlib.h> unconditionally.
43546
43547         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
43548         (getenv): Do not declare.
43549
43550         * lib/idcache.c: Include <string.h> unconditionally.
43551
43552         * lib/long-options.c: Include long-options.h first, to test interface.
43553         Include <stdlib.h> unconditionally.
43554
43555         * lib/makepath.c: Include makepath.h first, to test interface.
43556         Include <stdlib.h> and <string.h> unconditionally.
43557
43558         * lib/linebuffer.c: Include <stdlib.h>.
43559         (free): Remove decl.
43560
43561         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
43562         stddef.h. rpl_malloc returns void *, not char *.
43563         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
43564         prototype.
43565
43566         * lib/md5.h: Include <limits.h> unconditionally.
43567         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
43568         (__P): Remove; all uses removed.
43569         * lib/md5.c: Include "md5.h" first.
43570         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
43571         md5_buffer, md5_process_bytes, md5_process_block):
43572         Define with prototypes.
43573         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
43574         * lib/sha.c: Include "sha.h" first.
43575         Include <stdlib.h>, <string.h> unconditionally.
43576
43577         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
43578         * lib/memcmp.c (__ptr_t): Likewise.
43579         * lib/memrchr.c (__ptr_t): Likewise.
43580         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
43581         Include <string.h> unconditionally.
43582         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
43583         * lib/memchr.c: Include <stdlib.h> unconditionally.
43584         * lib/memchr.c (LONG_MAX): Remove.
43585         * lib/memrchr.c (LONG_MAX): Likewise.
43586         * lib/memchr.c (__memchr): Define via a prototype.
43587         * lib/memrchr.c (__memrchr): Likewise.
43588         * lib/memcmp.c (__P): Remove, and remove all uses.
43589         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
43590         Remove forward decls; no longer needed.
43591         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
43592         Use types required by C89 in prototype.
43593
43594         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
43595         * lib/savedir.c: Likewise.
43596         * lib/mkdir.c (free): Remove decl.
43597         * lib/rmdir.c (rmdir): Define with a prototype.
43598         * lib/savedir.c: Include savedir.h first, to test interface.
43599
43600         * lib/mktime.c (STDC_HEADERS): Remove.
43601         Include <stdlib.h>, <string.h> unconditionally.
43602
43603         * lib/modechange.c: Include <stdlib.h> unconditionally.
43604         (malloc): Remove decl.
43605
43606         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
43607         (free): Remove decl.
43608
43609         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
43610         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
43611         (This type really should be intptr_t, but that's a C99ism.)
43612         (_obstack_memcpy): Remove: all uses changed to memcpy.
43613         Include <string.h> unconditionally.
43614         (struct obstack): Assume __STDC__ for types of members
43615         chunkfun, freefun, extra_arg.
43616         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
43617         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
43618         obstack_begin, obstack_specify_allocation,
43619         obstack_specify_allocation_with_arg, obstack_chunkfun,
43620         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
43621         Remove unprototyped decls and the macros that use them.
43622         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
43623         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
43624         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
43625         (defined __STDC__ && __STDC__)]:
43626         Remove nonprototyped code.
43627         Include <stdlib.h> unconditionally.
43628         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
43629         _obstack_allocated_p, _obstack_free, obstack_free,
43630         _obstack_memory_used, print_and_abort):
43631         Define using prototypes.
43632         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
43633         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
43634         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
43635         obstack_next_free, obstack_object_size, obstack_room) [0]:
43636         Remove unused, unprototyped code.
43637
43638         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
43639
43640         * lib/physmem.c (physmem_total, physmem_available, main): Define
43641         with prototypes.
43642
43643         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
43644         (main): Define with a prototype.
43645
43646         * lib/posixver.c (getenv): Remove decl.
43647
43648         * lib/putenv.c (malloc): Returns void *, not char *.
43649         Include <string.h> unconditionally.
43650         (strchr, memcpy, NULL): Do not define.
43651
43652         * lib/readtokens.c: Include readtokens.h first, to test interface.
43653         Include <stdlib.h>, <string.h> unconditionally.
43654         (init_tokenbuffer): Define with a prototype.
43655
43656         * lib/regex.c (PARAMS): Remove.  All uses removed.
43657         All uses of _RE_ARGS removed, too.
43658         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43659         unconditionally.
43660         (bzero): Assume memset exists.
43661         (memcmp, memcpy, NULL): Remove.
43662         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
43663         char, or assignments to local vars of type signed char.
43664         (init_syntax_once, PREFIX(extract_number_and_incr),
43665         PREFIX(print_partial_compiled_pattern),
43666         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
43667         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
43668         PREFIX(regex_grow_registers), PREFIX(regex_compile),
43669         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
43670         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
43671         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
43672         wcs_compile_range, byte_compile_range, truncate_wchar,
43673         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
43674         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
43675         count_mbs_length, wcs_re_match_2_internal,
43676         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
43677         PREFIX(alt_match_null_string_p),
43678         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
43679         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
43680         regfree, PREFIX(extract_number)): Define with prototype.  Remove
43681         now-unnecessary declaration, if any.
43682         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
43683         regcomp, regexec):
43684         Remove now-unnecessary casts among pointer types.
43685         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
43686
43687         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
43688         (free): Remove decl.
43689
43690         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
43691
43692         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
43693         (free): Remove decl.
43694
43695         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
43696         * lib/xgetcwd.c: Likewise.
43697
43698         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
43699         (free): Remove decl.
43700
43701         * lib/strchrnul.c (strchrnul): Define with a prototype.
43702         Fix bug: c_in was not converted to char before searching.
43703
43704         The following changes are not K&R related:
43705
43706         * lib/group-member.h: Include <sys/types.h>, so that this file is
43707         self-contained.
43708         * lib/makepath.h: Likewise.
43709
43710         * lib/getusershell.c (readname, default_index, line_size, readname):
43711         Use size_t, not int, for sizes.
43712         (readname): If the size overflows, report an error instead of
43713         looping forever.
43714
43715 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43716
43717         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
43718         libc.
43719
43720 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43721
43722         * README: New section: portability guidelines.
43723
43724 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43725
43726         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
43727         C89 spec.
43728
43729 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43730
43731         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
43732
43733 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43734
43735         Assume C89 or better; remove K&R cruft.
43736         A few of these changes were first proposed by Derek Robert Price
43737         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
43738
43739         * lib/addext.c: Include <string.h> unconditionally.
43740         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
43741         Don't declare getenv or malloc.
43742
43743         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
43744         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
43745         (NULL): Remove.
43746         (find_stack_direction, alloca): Use prototypes.
43747
43748         * lib/atexit.c (atexit): Define using a prototype.
43749
43750         * lib/basename.c, dirname.c, stripslash.c:
43751         Include <string.h> unconditionally.
43752
43753         * lib/bcopy.c: Include <stddef.h>.
43754         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
43755
43756         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
43757
43758         * lib/error.h (error, error_at_line, error_print_progname)
43759         [! (defined (__STDC__) && __STDC__)]: Remove decls.
43760         * lib/error.c: Include error.h first, to check interface.
43761         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43762         (VA_START): Remove; all uses changeed to va_start.
43763         (exit, strerror): Remove decls.
43764         (error_print_progname): Prototype uncondionally.
43765         Don't include <errno.h>; no longer needed.
43766         (private_strerror): Remove.
43767         (error_tail): Always define.
43768         (error, error_at_line): Assume C89 or better; always use prototypes.
43769         * lib/fatal.c: Include "fatal.h" first, to test interface.
43770         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43771         (VA_START): Remove; all uses changed to va_start.
43772         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
43773         this case.
43774         (exit): Remove decl.
43775         (fatal): Prototype unconditionally.  Assume va_start works.
43776         Abort at end, to pacify gcc.
43777
43778         * lib/euidaccess.c (main): Define with a prototype.
43779
43780         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
43781
43782         * lib/exitfail.c: Include <stdlib.h> unconditionally.
43783
43784         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
43785         prototypes.
43786         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
43787         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
43788         (getenv): Remove decl.
43789         (fnmatch): Define using a prototype.
43790         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
43791         (FCT): Define using a prototype.
43792
43793         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
43794
43795         * lib/gethostname.c: Include <stddef.h>.
43796         (gethostname): Define with prototype.  Length is size_t, not int.
43797
43798 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43799
43800         Assume C89 or better; remove K&R cruft.
43801         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
43802         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
43803         string.h, getenv, malloc.
43804         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
43805         headers.
43806         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
43807         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
43808         do not check for strerror.
43809         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
43810         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
43811         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
43812         do not check for doprnt or vprintf.
43813         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
43814         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
43815
43816 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43817
43818         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
43819         getversion.c should have been removed then, but was accidentally
43820         preserved.
43821
43822         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
43823         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
43824
43825 2003-09-08  Karl Berry  <karl@gnu.org>
43826
43827         * config/config.sub, config.guess, srclistvars.sh: update from savannah
43828                 config, forget about prep.
43829
43830         * config/depcomp, missing: update from automake.
43831
43832 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43833
43834         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
43835         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43836
43837 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43838
43839         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
43840         copy_tm_result.  Bug reported by Simon Josefsson in
43841         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43842
43843 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43844
43845         * m4/time_r.m4: New file.
43846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
43847         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
43848         is. Check for timegm declaration.
43849         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
43850         Do not check for gmtime_r.
43851         Replace mktime if __mktime_internal does not exist and if mktime
43852         hasn't been replaced already.
43853
43854 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43855
43856         * lib/time_r.c, lib/time_r.h: New files.
43857
43858         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
43859         __localtime_r.
43860         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
43861         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
43862
43863         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
43864         __gmtime_r.
43865         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
43866         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
43867         Include <time_r.h>.
43868
43869         * lib/timegm.c: Switch to glibc implementation, with the following
43870         changes:
43871         [defined HAVE_CONFIG_H]: Include <config.h>.
43872         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
43873         (__mktime_internal) [!defined _LIBC]: New decl.
43874         (__gmtime_r) [!defined _LIBC]: New macro and function.
43875         (timegm): Use a prototype, since gnulib assumes C89.
43876         Do not bother declaring tmp to be const, as it's not really usefu.
43877         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
43878         (timegm): Declare only if HAVE_DECL_TIMEGM.
43879
43880 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43881
43882         * MODULES.html.sh (func_all_modules): Add time_r.
43883         * modules/time_r: New file.
43884         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
43885         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
43886
43887 2003-09-03  Paul Eggert  <eggert@twinsun.com>
43888
43889         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
43890         Bug reported by Lute Kamstra in
43891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
43892
43893         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
43894         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
43895         course with correspondingly smaller numbers for tomorrow and
43896         yesterday.  From Tadayoshi Funaba.  Originally installed into
43897         sh-utils on 1999-08-07, but the patch got lost (I guess during the
43898         coreutils merge?).
43899
43900 2003-08-31  Simon Josefsson  <jas@extundo.com>
43901
43902         * modules/timegm: New file.
43903         * MODULES.html.sh (func_all_modules): Add timegm.
43904
43905 2003-08-31  Simon Josefsson  <jas@extundo.com>
43906
43907         * m4/timegm.m4: New file.
43908
43909 2003-08-31  Simon Josefsson  <jas@extundo.com>
43910
43911         * lib/timegm.h: New file.
43912         * lib/timegm.c: New file.  Based on
43913         wget-1.8.2/src/http.c:mktime_from_utc.
43914
43915 2003-08-31  Karl Berry  <karl@gnu.org>
43916
43917         * lib/argp.h: update from libc.
43918
43919 2003-08-28  Bruno Haible  <bruno@clisp.org>
43920
43921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43922         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43923         followed by '#define fnmatch fnmatch_posix' gives an error.
43924
43925 2003-08-28  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43928         warning on QNX, which defines O_BINARY to 000000.
43929
43930 2003-08-27  Jim Meyering  <jim@meyering.net>
43931
43932         * m4/mkstemp.m4: Require that the system mkstemp be able to create
43933         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
43934         would fail after 32.  Reported by Danny Levinson.  Details here:
43935         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43936
43937 2003-08-24  Bruno Haible  <bruno@clisp.org>
43938
43939         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43940         MSVC7 <stdio.h> is included later.
43941
43942 2003-08-22  Simon Josefsson  <jas@extundo.com>
43943
43944         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43945
43946 2003-08-20  Karl Berry  <karl@gnu.org>
43947
43948         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43949
43950 2003-08-20  Bruno Haible  <bruno@clisp.org>
43951
43952         * modules/progname: New file.
43953         * MODULES.html.sh (func_all_modules): Add progname.
43954
43955 2003-08-20  Bruno Haible  <bruno@clisp.org>
43956
43957         * lib/progname.h: New file, from GNU gettext.
43958         * lib/progname.c: New file, from GNU gettext.
43959         * lib/progreloc.c: New file, from GNU gettext.
43960
43961 2003-08-19  Jim Meyering  <jim@meyering.net>
43962
43963         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43964         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43965
43966 2003-08-19  Bruno Haible  <bruno@clisp.org>
43967
43968         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43969         more.
43970
43971 2003-08-19  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/xstrdup.c: Assume <string.h> exists.
43974
43975 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43976
43977         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43978         in makefile rules.
43979
43980 2003-08-18  Jim Meyering  <jim@meyering.net>
43981
43982         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43983         * m4/lib-ld.m4: Likewise.
43984
43985 2003-08-18  Jim Meyering  <jim@meyering.net>
43986
43987         * lib/setenv.h: Indent nested cpp directive.
43988         * lib/vasnprintf.c: Remove trailing blanks.
43989
43990 2003-08-17  Simon Josefsson  <jas@extundo.com>
43991
43992         * modules/xstrndup: New file.
43993         * MODULES.html.sh (func_all_modules): Add xstrndup.
43994
43995 2003-08-17  Simon Josefsson  <jas@extundo.com>
43996
43997         * modules/argp: Fix autoconf macro name. Add more dependencies.
43998
43999 2003-08-17  Simon Josefsson  <jas@extundo.com>
44000
44001         * m4/xstrndup.m4: New file.
44002
44003 2003-08-17  Simon Josefsson  <jas@extundo.com>
44004
44005         * m4/argp.m4: New file.
44006
44007 2003-08-17  Simon Josefsson  <jas@extundo.com>
44008             Bruno Haible  <bruno@clisp.org>
44009
44010         * lib/xstrndup.h: New file.
44011         * lib/xstrndup.c: New file.
44012
44013 2003-08-17  Bruno Haible  <bruno@clisp.org>
44014
44015         * modules/strndup (Files, Include): Add lib/strndup.h.
44016
44017 2003-08-17  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/euidaccess (Files): Add lib/euidaccess.h.
44020
44021 2003-08-17  Bruno Haible  <bruno@clisp.org>
44022
44023         * lib/strndup.h: New file.
44024
44025 2003-08-17  Bruno Haible  <bruno@clisp.org>
44026
44027         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
44028         like AC_GNU_SOURCE.
44029         * modules/extensions (configure.ac): Comment out the invocation of
44030         gl_USE_SYSTEM_EXTENSIONS.
44031
44032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
44033
44034         Merges from coreutils, etc.
44035         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
44036         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
44037         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
44038         fixing a typo.
44039         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
44040         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
44041
44042 2003-08-16  Paul Eggert  <eggert@twinsun.com>
44043
44044         Document merge from coreutils.
44045         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
44046         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
44047         * modules/utime: Add m4/utimes-null.m4.
44048
44049 2003-08-16  Paul Eggert  <eggert@twinsun.com>
44050
44051         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
44052         space, undoing this 2003-08-12 change:
44053         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
44054
44055 2003-08-16  Paul Eggert  <eggert@twinsun.com>
44056
44057         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
44058         strtoul.c from libc, undoing this 2003-08-12 change:
44059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
44060
44061 2003-08-16  Jim Meyering  <jim@meyering.net>
44062
44063         Merges from coreutils.
44064         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
44065         prefix.  Adjust cache variables similarly.  Create 500 rather than
44066         just 300 files, to exercise bug on Darwin6.5, too.
44067         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
44068         $missing_dir.
44069         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
44070         AM_SYS_POSIX_TERMIOS.
44071         Reported by mkc@mathdogs.com.
44072         Also change use of $am_cv_sys_posix_termios
44073         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
44074         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
44075         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
44076         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
44077         in /proc/mounts until it finds one with matching device number.  This
44078         is unnecessary when the FILE argument *is* a mount point.  No stat call
44079         is necessary in that case.  So, disable the statvfs-testing code on
44080         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
44081         as RedHat bug# 84846.
44082         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
44083         to 1MB, so as not to render systems with no stack size limit (e.g.,
44084         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
44085         Include <unistd.h>.  On some systems,
44086         it is required for the definition of _SC_PAGESIZE.
44087
44088 2003-08-16  Jim Meyering  <jim@meyering.net>
44089
44090         Merge from coreutils.
44091         * lib/xstrtoimax.c: #else #if -> #elif.
44092         * lib/xstrtoumax.c: Likewise.
44093
44094 2003-08-16  Jim Meyering  <jim@meyering.net>
44095
44096         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
44097         * m4/utimes.m4: Removed.
44098         * m4/utimes-null.m4: Renamed from utimes.m4.
44099
44100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
44101         to 1MB, so as not to render systems with no stack size limit (e.g.,
44102         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
44103         Include <unistd.h>.  On some systems,
44104         it is required for the definition of _SC_PAGESIZE.
44105
44106 2003-08-16  Jim Meyering  <jim@meyering.net>
44107         and Paul Eggert  <eggert@cs.ucla.edu>
44108
44109         Merges from coreutils, etc.
44110
44111         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
44112         using the latest version from cvs.  This avoids problems with #line
44113         directives using a vendor (Sun) compiler.
44114         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
44115         Don't set GETGROUPS_LIB here; now it's
44116         done via getgroups.m4's wrapper function.
44117         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
44118         rather than just in sh-util/configure.in, so that the
44119         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
44120         same.
44121         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
44122         AC_FUNC_GETLOADAVG where to find getloadavg.c.
44123         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
44124         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
44125         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
44126         Remove code that is now done by the newly-required macros.
44127         Append $(EXEEXT) to DF_PROG.
44128         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
44129         Do not invoke or require the following here,
44130         since prereq.m4 or some gnulib .m4 now does this for us:
44131         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
44132         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
44133         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
44134         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
44135         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
44136         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
44137         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
44138         AC_FUNC_OBSTACK.
44139         Do not replace the following functions, as this is now the job
44140         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
44141         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
44142         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
44143         atexit getpass, strdup, getpagesize.
44144         Replace 'raise'.
44145         Do not check for the following functions, as this is now the job
44146         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
44147         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
44148         setregid.
44149         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
44150         Check for sys/sysctl.h.
44151         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
44152         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
44153         of checking for ssize_t ourselves.
44154
44155         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
44156         Require every macro that gnulib/modules/* suggests for us.
44157         (jm_PREREQ_ADDEXT): New macro.
44158         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
44159         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
44160
44161         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
44162         (gl_PHYSMEM): Use it.
44163         Also check for `table' function.
44164         Check for new headers and functions.
44165         Add check for sys/sysmp.h.
44166         With suggestions from Kaveh Ghazi.
44167         Ignore headers that are present but cannot be compiled.  This
44168         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
44169         C 5.4.
44170
44171 2003-08-15  Paul Eggert  <eggert@twinsun.com>
44172
44173         Document merge from coreutils.
44174         * modules/userspec: Depend on posixver.
44175         * modules/strftime: Depend on tzset.
44176
44177 2003-08-15  Paul Eggert  <eggert@twinsun.com>
44178
44179         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
44180         rather than tab, after '#' in shell-script copyright notices.
44181         Suggested by Bruno Haible.
44182
44183 2003-08-15  Paul Eggert  <eggert@twinsun.com>
44184
44185         * config/srclist-update: Use three spaces, rather than tab, after '#'
44186         in shell-script copyright notices.  Suggested by Bruno Haible.
44187         Remove unnecessary parenthesization in regular expression.
44188
44189 2003-08-15  Jim Meyering  <jim@meyering.net>
44190
44191         Merge from coreutils.
44192         * lib/xgethostname.c: Include <stdlib.h>.
44193         (xghostname): Don't exit for anything other than memory-related
44194         failure; just return NULL.
44195         * lib/userspec.c: Include "posixver.h".
44196         (parse_user_spec): Accept `.' as a separator only
44197         in pre-POSIX-200112 mode.
44198         * lib/strtoimax.c: Use #elif rather than #else #if.
44199         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
44200         Remove function, now that we can rely on a working tzset function.
44201         [!_LIBC]: Ensure that the required autoconf test has been run.
44202         [!defined _NL_CURRENT && HAVE_STRFTIME]:
44203         Use underlying_strftime for %r.
44204         * lib/sha.c: Merge in some clean-up and optimization changes from
44205         glibc.
44206         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
44207         Ensure that it is a multiple of 64.
44208         Rearrange loop exit tests so as to avoid performing an
44209         additional fread after encountering an error or EOF.
44210         * lib/realloc.c: Update copyright date.
44211
44212 2003-08-15  Jim Meyering  <jim@meyering.net>
44213         and Paul Eggert  <eggert@twinsun.com>
44214
44215         Merge from coreutils.
44216         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
44217         member but strut utmpx does not.  Needed for AIX 4.3.3.
44218         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
44219
44220 2003-08-15  Jim Meyering  <jim@meyering.net>
44221         and Paul Eggert  <eggert@cs.ucla.edu>
44222
44223         Merges from coreutils, etc.
44224         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
44225         Require gl_FUNC_TZSET_CLOBBER.
44226         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
44227         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
44228         members.
44229
44230 2003-08-14  Paul Eggert  <eggert@twinsun.com>
44231
44232         Help the merge from coreutils.
44233         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
44234         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
44235         * m4/tzset.m4: Use it too.
44236
44237 2003-08-14  Paul Eggert  <eggert@twinsun.com>
44238
44239         * modules/tzset: New file.
44240
44241 2003-08-14  Jim Meyering  <jim@meyering.net>
44242
44243         Merges from coreutils.
44244         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
44245         variable names, rather than @FNMATCH_H@.
44246         * modules/alloca: Likewise for $(ALLOCA_H).
44247
44248         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
44249         the three copies of the literal target, `fnmatch.h'.
44250         * modules/alloca (alloca.h): Likewise.
44251
44252 2003-08-14  Jim Meyering  <jim@meyering.net>
44253
44254         Merge from coreutils.
44255         * m4/tzset.m4: New file.
44256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
44257         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
44258         otherwise, AIX 5.1 systems would end up using the latter.
44259         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
44260         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
44261         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
44262         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
44263
44264 2003-08-14  Jim Meyering  <jim@meyering.net>
44265
44266         Merge from coreutils.
44267         * lib/obstack.h: Whitespace changes.
44268         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
44269         and xcalloc return values.
44270         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
44271         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
44272         hang on OSF/1 5.1 for DIR on both local and remote file systems.
44273         Reported by (and fix confirmed by) Nelson H. F. Beebe.
44274         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44275         error from mntctl.
44276         Use mntctl's return value to drive the entry-processing loop, since
44277         we can't rely on the value of the vmt_length member in the last
44278         entry.  On some systems doing so could result in exhausting
44279         virtual memory.  Based in part on a patch from Mike Jetzer.
44280
44281 2003-08-14  Jim Meyering  <jim@meyering.net>
44282         and Paul Eggert  <eggert@twinsun.com>
44283
44284         Merges from coreutils, plus other fixes.
44285         * lib/physmem.c: Merge in portability changes from gcc/libiberty
44286         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
44287         for credits and details.  Thanks to Kaveh Ghazi for helping
44288         to keep these files in sync.
44289         (ARRAY_SIZE): Define it.
44290         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
44291         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
44292         (memcasecmp): Don't assume size_t fits in unsigned int.
44293         Remove casts and duplicate code.
44294         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
44295         (memcpy): Remove definition.
44296         Merge in some clean-up and optimization changes from glibc.
44297         [BLOCKSIZE]: Move definition to top of file.
44298         Ensure that it is a multiple of 64.
44299         Rearrange loop exit tests so as to avoid performing an
44300         additional fread after encountering an error or EOF.
44301         * lib/md5.h (md5_uintptr): Define.
44302         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
44303         return to the initial working directory.  Preserve errno
44304         for caller.
44305         * lib/idcache.c: Include "xalloc.h".
44306         (xmalloc, xrealloc): Remove decls.
44307         (getuser): Remove casts no longer required in C89.
44308         * lib/human.c: Include stdio.h, for sprintf.
44309         * lib/group-member.c: Include "xalloc.h".
44310         (xmalloc, xrealloc): Remove decls.
44311         (get_group_info): Remove casts no longer required in C89.
44312         * lib/getusershell.c (readname): Remove casts no longer required in
44313         C89.
44314         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
44315         * lib/getline.c: Whitespace fix, from coreutils.
44316
44317 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44318
44319         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
44320         Check for isascii.
44321
44322         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
44323         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
44324         Undo previous (whitespace-only) change.
44325
44326 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44327
44328         * lib/exclude.c: Include <ctype.h>
44329         (IN_CTYPE_DOMAIN): New macro.
44330         (is_space): New fn.
44331         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
44332         and empty lines.
44333
44334         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
44335         Undo previous (whitespace-only) change.
44336
44337 2003-08-13  Paul Eggert  <eggert@twinsun.com>
44338
44339         * config/srclist-update: Change update back to the old behavior,
44340         leaving whitespace alone.  Use one 'sed' command rather than a
44341         pipeline.
44342         (fixlicense): Now a variable, not a function.
44343         (remove_trailing_blanks): Remove.
44344         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
44345         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
44346         Undo previous (whitespace-only) change.
44347
44348 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44349
44350         Merge from coreutils.
44351         * modules/euidaccess: Add lib_SOURCES, include for new
44352         file euidaccess.h
44353
44354 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44355
44356         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
44357         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
44358         Normalize leading white space and remove trailing white space.
44359
44360         Merge from coreutils
44361         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
44362
44363         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
44364         0.12.1.  These files are now being upgraded automatically by
44365         ../config/srclist-update.
44366
44367 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44368
44369         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
44370         Normalize leading white space and remove trailing white space.
44371         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
44372         notice, as per ../config/srclist-update.
44373
44374         Merge from coreutils.
44375         * lib/euidaccess.h: New file.
44376         * lib/euidaccess.c: Include it.
44377         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
44378         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
44379         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
44380
44381 2003-08-12  Paul Eggert  <eggert@twinsun.com>
44382
44383         * config/srclist-update: Add copyright notice.
44384         (remove_id_lines, remove_trailing_blanks): New constants.
44385         (fixfile): Use them to normalize spacing a bit in copied files.
44386         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
44387         Normalize leading white space and remove trailing white space.
44388
44389         * config/texinfo.tex: Sync with texinfo.
44390
44391         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
44392         strtoul.c from libc, to merge coreutils whitespace changes.
44393
44394         * config/srclist.txt: Get the following m4 files from gettext:
44395         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
44396         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
44397         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
44398         wint_t.m4.
44399
44400 2003-08-12  Karl Berry  <karl@gnu.org>
44401
44402         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
44403         been made.
44404
44405 2003-08-11  Paul Eggert  <eggert@twinsun.com>
44406
44407         * modules/gnu-source, m4/gnu-source.m4:
44408         Remove; we're assuming Autoconf 2.54 or later now.
44409         Suggested by Bruno Haible.
44410         * MODULES.html.sh (func_all_modules): Remove gnu-source.
44411
44412 2003-08-11  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
44415
44416 2003-08-11  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
44419         (vasnprintf): Use it instead of wcslen.
44420
44421 2003-08-11  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
44424         value to ensure that _Bool promotes to int. Use #define for _Bool when
44425         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
44426
44427 2003-08-10  Karl Berry  <karl@gnu.org>
44428
44429         * lib/regex.h: update from libc (whitespace fix).
44430
44431 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44432
44433         Merge some files from coreutils.  These changes were
44434         originally made by Jim Meyering.
44435         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
44436         many older Unixes require this.
44437         * lib/alloca.c (alloca): Remove cast to argument of free;
44438         no longer needed in C89.
44439         * lib/alloca_.h, regex.h: Fix white space to match
44440         what GNU indent does.
44441
44442 2003-08-09  Paul Eggert  <eggert@twinsun.com>
44443
44444         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
44445         apparently Emacs's Unicode mode got confused before my 2003-08-05
44446         checkin.
44447
44448 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44449
44450         * m4/extensions.m4: New file.
44451         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
44452         Require gl_USE_SYSTEM_EXTENSIONS.
44453         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
44454         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
44455
44456 2003-08-08  Paul Eggert  <eggert@twinsun.com>
44457
44458         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
44459         * modules/extensions, modules/gnu-source: New files.
44460         * modules/timespec, modules/unlocked-io: Depend on extensions.
44461
44462 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44463
44464         * modules/restrict: New file.
44465         * MODULES.html.sh (func_all_modules): Add restrict.
44466         * modules/regex: Depend on restrict.
44467
44468 2003-08-07  Paul Eggert  <eggert@twinsun.com>
44469
44470         * m4/restrict.m4: New file.
44471         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
44472
44473 2003-08-07  Bruno Haible  <bruno@clisp.org>
44474
44475         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
44476         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
44477
44478 2003-08-07  Bruno Haible  <bruno@clisp.org>
44479
44480         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
44481         makes the module 'getndelim2' compatible with the module 'getline'.
44482
44483 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44484
44485         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
44486         byte with "\201" to avoid glitches when editing that source file
44487         with multi-gnome-terminal.
44488
44489 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44490
44491         * lib/bumpalloc.h: Remove.
44492
44493 2003-08-05  Paul Eggert  <eggert@twinsun.com>
44494
44495         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
44496         * modules/bumpalloc: Remove.
44497
44498 2003-08-04  Paul Eggert  <eggert@twinsun.com>
44499
44500         * lib/getloadavg.c: Change copyright notice and spacing to conform to
44501         GNU coding style.
44502
44503         Merge from coreutils.
44504         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
44505         1. From glibc.
44506         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
44507         from Karl Berry, implemented by Jim Meyering.
44508         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
44509         from Dmitry V. Levin.
44510         Remove anachronistic cast of xrealloc.
44511         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
44512         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
44513         type. Otherwise, it wouldn't compile with at least /bin/cc on
44514         ymp-cray-unicos9.0.2.X.
44515         Combine two mostly-identical uses of alloca into one.
44516         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
44517
44518 2003-08-04  Dave Love  <d.love@dl.ac.uk>
44519
44520         [From Emacs.]
44521
44522         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
44523         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
44524         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
44525         obsolete NLIST_NAME_UNION.
44526         [__GNU__]: Undef BSD and FSCALE.
44527         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
44528
44529 2003-08-03  Paul Eggert  <eggert@twinsun.com>
44530
44531         * lib/stdbool_.h (_Bool): Make it signed char, instead of
44532         an enum type, so that it's guaranteed to promote to int.  See:
44533         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
44534
44535 2003-08-03  Karl Berry  <karl@gnu.org>
44536
44537         * config/depcomp: update from automake.
44538
44539 2003-07-31  Paul Eggert  <eggert@twinsun.com>
44540
44541         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
44542         (strerror): Don't assume that a printable int fits in 14 bytes.
44543
44544 2003-07-31  Bruno Haible  <bruno@clisp.org>
44545
44546         * modules/getpass-gnu: New file.
44547         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
44548
44549 2003-07-31  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
44552
44553 2003-07-24  Karl Berry  <karl@gnu.org>
44554
44555         * config/missing: update from automake.
44556
44557 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
44558             Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
44561         * lib/getline.c (getline, getdelim): Likewise.
44562         Remove _GNU_SOURCE define; now it's defined in config.h through
44563         m4/getline.m4.
44564
44565 2003-07-23  Karl Berry  <karl@gnu.org>
44566
44567         * config/config.sub: update from prep.
44568
44569 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44570
44571         * modules/xalloc (Depends-on): Add exitfail.
44572         * modules/xmemcoll: Likewise.
44573
44574 2003-07-22  Paul Eggert  <eggert@twinsun.com>
44575
44576         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
44577         over-parenthesization in macros.
44578
44579         Sync with coreutils.
44580
44581         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
44582         required by C99.
44583
44584         Use `exit_failure' for xalloc and xmemcoll instead of their own
44585         private exit-failure variables.
44586         * lib/xalloc.h (xalloc_exit_failure): Remove.
44587         * lib/xmalloc.c: Likewise.  Include exitfail.h.
44588         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
44589         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
44590         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
44591         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
44592
44593 2003-07-20  Jim Meyering  <jim@meyering.net>
44594
44595         * modules/closeout (Depends-on): Add exitfail.
44596         Suggestion from Bruno Haible.
44597
44598 2003-07-19  Karl Berry  <karl@gnu.org>
44599
44600         * config/config.sub: update from prep.
44601
44602 2003-07-18  Paul Eggert  <eggert@twinsun.com>
44603
44604         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
44605         Remove.
44606         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
44607         to test that it can stand by itself.  Include "exitfail.h".
44608         Clients should set exit_failure instead.
44609         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
44610
44611 2003-07-18  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/getndelim2: New file.
44614         * modules/getline: Share files with module getndelim2.
44615         * modules/getnline: Depend on getndelim2 instead of sharing files with
44616         it. Add getnline.c to lib_SOURCES.
44617         * MODULES.html.sh (func_all_modules): Add getndelim2.
44618
44619 2003-07-18  Bruno Haible  <bruno@clisp.org>
44620
44621         * m4/getndelim2.m4: New file.
44622         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
44623         invoke gl_PREREQ_GETNDELIM2.
44624         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
44625         gl_PREREQ_GETNDELIM2.
44626         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
44627         gl_GETNDELIM2.
44628
44629 2003-07-18  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/getndelim2.h: New file.
44632         * lib/getndelim2.c: Make into a module of its own. Include config.h,
44633         getndelim2.h.
44634         (getndelim2): Make non-static. Change return type to ssize_t.
44635         * lib/getline.h: Change argument names.
44636         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
44637         * lib/getnline.c: Include getndelim2.h.
44638
44639 2003-07-18  Andreas Schwab  <schwab@suse.de>
44640
44641         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
44642
44643 2003-07-17  Karl Berry  <karl@gnu.org>
44644
44645         * config/config.sub: update from prep.
44646
44647 2003-07-17  Bruno Haible  <bruno@clisp.org>
44648
44649         * modules/getnline: New file.
44650         * modules/getline: Add lib/getndelim2.c to source file list.
44651         * MODULES.html.sh (func_all_modules): Add getnline.
44652
44653 2003-07-17  Bruno Haible  <bruno@clisp.org>
44654
44655         * m4/getnline.m4: New file.
44656
44657 2003-07-17  Bruno Haible  <bruno@clisp.org>
44658
44659         * m4/Makefile.am.in: Remove file.
44660         * m4/Makefile.am: Remove file.
44661         * m4/Makefile.in: Remove file.
44662
44663 2003-07-17  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/getnline.h: New file.
44666         * lib/getnline.c: New file.
44667         * lib/getndelim2.c: New file, extracted from getline.c.
44668         (getndelim2): Renamed from getdelim2, with added nmax argument.
44669         * lib/getline.c: Include getndelim2.c.
44670         (getdelim2): Moved out to getndelim2.c.
44671         (getline, getdelim): Update.
44672
44673 2003-07-17  Bruno Haible  <bruno@clisp.org>
44674
44675         * lib/Makefile.am: Remove file.
44676         * lib/Makefile.in: Remove file.
44677
44678 2003-07-17  Bruno Haible  <bruno@clisp.org>
44679
44680         * configure.in: Remove file.
44681         * Makefile.in: Remove file.
44682
44683 2003-07-17  Bruno Haible  <bruno@clisp.org>
44684
44685         * MODULES.html.sh: Put the </BODY> right before </HTML>.
44686
44687 2003-07-16  Karl Berry  <karl@gnu.org>
44688
44689         * config/srclist-update: was running fixlicense twice, which caused
44690                 texinfo.tex to be nullified for some reason.  Simplify,
44691                 $gplsrc is no longer needed as far as I can see?
44692
44693 2003-07-16  Jim Meyering  <jim@meyering.net>
44694
44695         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
44696
44697 2003-07-15  Paul Eggert  <eggert@twinsun.com>
44698
44699         * config/srclist.txt: Get the following files from gettext-runtime/intl
44700         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
44701         ref-del.sin.  From Bruno Haible.
44702         * config/srclist-update (fixfile): Change grep pattern again, since the
44703         previous fix didn't work (there was another trailing $).  Use
44704         '[$]' to escape the $s.
44705
44706 2003-07-15  Karl Berry  <karl@gnu.org>
44707
44708         * lib/vasnprintf.c: update from gettext.
44709
44710 2003-07-15  Karl Berry  <karl@gnu.org>
44711
44712         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
44713         gets expanded when surrounded by '$'.
44714
44715 2003-07-15  Jim Meyering  <jim@meyering.net>
44716
44717         * modules/save-cwd: Don't depend on error.  From Derek Price.
44718
44719 2003-07-15  Jim Meyering  <jim@meyering.net>
44720
44721         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
44722
44723 2003-07-14  Simon Josefsson  <jas@extundo.com>
44724
44725         * modules/mempcpy: New file.
44726         * MODULES.html.sh (func_all_modules): Add mempcpy.
44727
44728 2003-07-14  Simon Josefsson  <jas@extundo.com>
44729
44730         * m4/mempcpy.m4: New file.
44731
44732 2003-07-14  Simon Josefsson  <jas@extundo.com>
44733
44734         * lib/mempcpy.h: New file.
44735         * lib/mempcpy.c: New file.
44736
44737 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44738
44739         * modules/getdate, modules/posixtm: Depend on mktime.
44740
44741 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44742
44743         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
44744         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
44745         unicodeio.c, unicodeio.h, unlocked-io.h:
44746         Switch from LGPL to GPL.
44747
44748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44749
44750         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
44751         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
44752         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
44753         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
44754         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
44755         updated automatically by ../config/srclist-update.  This changes
44756         their license from LPGL to GPL.
44757
44758 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44759
44760         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
44761         assumed to refer to the root of the most recent stable gettext version.
44762         * config/srclistvars.sh: Add defaults for eggert.
44763         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
44764         Match "This program" as well as "The program".  This is needed
44765         for gettext.
44766
44767 2003-07-14  Jim Meyering  <jim@meyering.net>
44768
44769         Don't emit diagnostics.  Let callers do that.
44770         * lib/save-cwd.c: Don't include "error.h".
44771         (save_cwd): Don't call error.  Ensure that errno is valid
44772         when returning nonzero.
44773
44774         * lib/save-cwd.h (restore_cwd): Update prototype.
44775         * lib/save-cwd.c (restore_cwd): Remove two parameters.
44776         Simplify.  Don't call error upon failure.  Let callers do that.
44777         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
44778         when auditing is enabled.  But don't bother updating the #if.
44779
44780 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
44781
44782         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
44783         it breaks C++ compilation.
44784         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
44785
44786 2003-07-10  Simon Josefsson  <jas@extundo.com>
44787
44788         * modules/strchrnul (Makefile.am): Add strchrnul.h.
44789
44790 2003-07-10  Jim Meyering  <jim@meyering.net>
44791
44792         * m4/clock_time.m4: Remove trailing blank.
44793         * m4/intmax_t.m4: Likewise.
44794
44795 2003-07-10  Jim Meyering  <jim@meyering.net>
44796
44797         * lib/vasnprintf.c: Remove trailing blanks.
44798         Make cpp indentation consistent.
44799
44800 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44801
44802         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
44803         posixver.c, strftime.c, strnlen.c, strverscmp.c:
44804         Switch from LGPL to GPL.
44805
44806 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44807
44808         * config/srclist.txt: Sort sublists.  Add
44809         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
44810         that differ from gnulib for one reason or another; we'd like this list
44811         to be smaller but for now let's document what we have.
44812
44813 2003-07-08  Paul Eggert  <eggert@twinsun.com>
44814
44815         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
44816         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
44817         and sweeter "eval x=$x".
44818         * config/srclist.txt: Get lib/argp* from glibc.
44819
44820 2003-07-07  Paul Eggert  <eggert@twinsun.com>
44821
44822         * lib/mktime.c: Fix some boundary cases and remove need for floating
44823         point.
44824
44825         Issue a compile-time diagnostic if time_t is floating point, or if
44826         two's complement arithmetic is not in effect, or if arithmetic
44827         right shift does not propagate the sign.  These assumptions were
44828         all in the original code but they weren't checked.
44829
44830         (TIME_T_MIDPOINT, verify): New macros.
44831         (__isleap): Remove; it has integer overflow problems.
44832         (leapyear): New function, without those problems.
44833         (ydhms_tm_diff): Remove; splitting into two parts.
44834         (ydhms_diff): New function, containing the arithmetic part of
44835         the old ydhms_tm_diff function.  Issue a compile-time
44836         diagnostic if we are not using C99 integer division.
44837         Avoid casts when possible.
44838         (guess_time_tm): New function, containing the checking part of
44839         the old ydhms_tm_diff function.  Return the new value, rather than
44840         the difference between it and the old.  Accept a new argument T
44841         so that *T specifies the old value.  Check for overflow in the result.
44842
44843         (__mktime_internal): Use a time_t offset, not a long int offset.
44844         This undoes the 2003-06-04 change, which is no longer needed now
44845         that we have better overflow checking.
44846         (localtime_offset): Likewise.
44847
44848         (__mktime_internal): Avoid harmful overflow on hosts where time_t
44849         and long are 64-bit but int is only 32-bit.
44850         (ydhms_diff): Use long int to store year1 and yday1.
44851         Issue a compile-time diagnostic if long int is not wide enough.
44852
44853         (__mktime_internal): Use long int to store adjusted year and yday.
44854         Use plain C rather than preprocessor commands, if that doesn't
44855         affect efficiency.
44856         Check for overflow (and try to repair) after each probe
44857         rather than checking only at the very end.  This avoids some bugs
44858         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
44859         does not equal GMT offset at maximum time).
44860         Use integer to check for overflow rather than floating point; this
44861         is more portable to non-IEEE hosts, and is a tad faster.
44862         When we detect that we are oscillating between two values,
44863         don't check whether tm_isdst has the requested value, since
44864         we already know the answer.  When tm_isdst has the wrong value,
44865         use a different heuristic to find the right one, based on the
44866         extreme values actually observed in practice in tz2003a,
44867         rather than the (overly optimistic) "previous 3 calendar quarters".
44868
44869         (not_equal_tm, print_tm, check_result): Use "const T" rather than
44870         "T const" to accommodate glibc style.
44871         (check_result): Use less-confusing report format.  "long" -> "long int.
44872         (main): Likewise.
44873         Don't loop if the iteration overflows time_t.
44874         Allow a negative step in the iteration.
44875
44876 2003-07-06  Karl Berry  <karl@gnu.org>
44877
44878         * config/depcomp: update from automake.
44879         * config/config.sub: update from prep.
44880
44881 2003-07-03  Karl Berry  <karl@gnu.org>
44882
44883         * config/config.guess: update from prep.
44884
44885 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44886
44887         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
44888         xreadlink.c now includes it unconditionally.
44889
44890 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44891
44892         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
44893         having it depend on HAVE_SYS_TYPES_H.
44894
44895 2003-07-01  Bruno Haible  <bruno@clisp.org>
44896
44897         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
44898         <sys/types.h> should be sufficient.
44899         Reported by Paul Eggert.
44900
44901 2003-06-26  Karl Berry  <karl@gnu.org>
44902
44903         * config/depcomp: update from automake.
44904
44905 2003-06-26  Bruno Haible  <bruno@clisp.org>
44906
44907         * modules/human: Depend on module stdbool.
44908
44909 2003-06-25  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/readlink: New file.
44912         * modules/xreadlink: Depend on it.
44913         * MODULES.html.sh (func_all_modules): Add readlink.
44914
44915 2003-06-25  Bruno Haible  <bruno@clisp.org>
44916
44917         * m4/readlink.m4: New file.
44918
44919 2003-06-25  Bruno Haible  <bruno@clisp.org>
44920
44921         * lib/readlink.c: New file.
44922
44923 2003-06-22  Karl Berry  <karl@gnu.org>
44924
44925         * config/srclist.txt: update mkinstalldirs from automake.
44926         * config/mkinstalldirs: update.
44927
44928 2003-06-22  Bruno Haible  <bruno@clisp.org>
44929
44930         Portability to mingw32.
44931         * m4/ssize_t.m4: New file, from GNU gettext.
44932         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44933         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44934
44935 2003-06-22  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/safe-read: Add m4/ssize_t.m4.
44938         * modules/xreadlink: Add m4/ssize_t.m4.
44939
44940 2003-06-20  Bruno Haible  <bruno@clisp.org>
44941
44942         Assume C89, so PARAMS isn't needed.
44943         * lib/unicodeio.h (PARAMS): Remove.
44944         * lib/unicodeio.c: Don't use PARAMS.
44945
44946 2003-06-18  Karl Berry  <karl@gnu.org>
44947
44948         * config/config.{guess,sub}: update from prep.
44949
44950 2003-06-18  Jim Meyering  <jim@meyering.net>
44951
44952         Merge changes from coreutils.
44953         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44954         Remove explicit declarations of xmalloc and realloc.
44955         Include xalloc.h.
44956         (read_utmp): Remove anachronistic cast of xmalloc.
44957
44958 2003-06-17  Paul Eggert  <eggert@twinsun.com>
44959
44960         Assume C89, so PARAMS isn't needed.
44961         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
44962         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44963         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44964         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44965         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44966         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44967         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44968         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44969         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44970         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44971         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44972         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44973         no longer needed. Anyway, config.h should always be included before any
44974         other file.
44975
44976 2003-06-11  Simon Josefsson  <jas@extundo.com>
44977
44978         * modules/sysexits: New file.
44979         * MODULES.html.sh (func_all_modules): Add sysexits.
44980
44981 2003-06-11  Simon Josefsson  <jas@extundo.com>
44982
44983         * lib/sysexit_.h: New file.
44984
44985 2003-06-11  Derek Price  <derek@ximbiot.com>
44986
44987         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44988         necessary.
44989
44990 2003-06-11  Bruno Haible  <bruno@clisp.org>
44991
44992         * m4/sysexits.m4: New file.
44993
44994 2003-06-10  Simon Josefsson  <jas@extundo.com>
44995
44996         * lib/argp.h: New file, from glibc.
44997         * lib/argp-ba.c: New file, from glibc.
44998         * lib/argp-eexst.c: New file, from glibc.
44999         * lib/argp-fmtstream.c: New file, from glibc.
45000         * lib/argp-fmtstream.h: New file, from glibc.
45001         * lib/argp-fs-xinl.c: New file, from glibc.
45002         * lib/argp-help.c: New file, from glibc.
45003         * lib/argp-namefrob.h: New file, from glibc.
45004         * lib/argp-parse.c: New file, from glibc.
45005         * lib/argp-pv.c: New file, from glibc.
45006         * lib/argp-pvh.c: New file, from glibc.
45007         * lib/argp-xinl.c: New file, from glibc.
45008
45009 2003-06-10  Simon Josefsson  <jas@extundo.com>
45010
45011         * modules/strchrnul: New file.
45012
45013 2003-06-10  Simon Josefsson  <jas@extundo.com>
45014
45015         * modules/argp: New file.
45016
45017 2003-06-10  Simon Josefsson  <jas@extundo.com>
45018
45019         * m4/strchrnul.m4: New file.
45020
45021 2003-06-10  Simon Josefsson  <jas@extundo.com>
45022
45023         * lib/strchrnul.h: New file.
45024         * lib/strchrnul.c: New file.
45025
45026 2003-06-10  Bruno Haible  <bruno@clisp.org>
45027
45028         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
45029
45030 2003-06-07  Karl Berry  <karl@gnu.org>
45031
45032         * config/config.{guess,sub}: update from prep.
45033
45034 2003-06-07  Jim Meyering  <jim@meyering.net>
45035
45036         * modules/strtod: Use $(...) notation, not @...@ for
45037         AC_REPLACE'd variables.
45038         * modules/localcharset: Likewise.
45039
45040 2003-06-07  Jim Meyering  <jim@meyering.net>
45041
45042         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
45043         in place of my name in the copyright comment.
45044         Remove definition and uses of __P.
45045
45046         From coreutils.
45047         * lib/stat.c: Don't declare xmalloc explicitly.
45048         Instead, include "xalloc.h".
45049         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
45050         xrealloc, and xcalloc return values.
45051         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
45052         Improve comment.
45053         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
45054
45055 2003-06-07  Bruno Haible  <bruno@clisp.org>
45056
45057         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
45058         avoid AC_CONFIG_LINKS.
45059         * modules/fnmatch (Makefile.am): Use explicit creation rule for
45060         fnmatch.h, to avoid AC_CONFIG_LINKS.
45061         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
45062
45063 2003-06-07  Bruno Haible  <bruno@clisp.org>
45064
45065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
45066         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
45067         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
45068         directory.
45069         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
45070         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
45071         directory.
45072
45073 2003-06-06  Jim Meyering  <jim@meyering.net>
45074
45075         Merge from coreutils.
45076         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
45077         Consolidate declarations and initializations of *_base* locals.
45078
45079         Merge from coreutils.
45080         This avoids a core dump on systems without GNU putenv,
45081         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
45082         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
45083         (unsetenv): New static function, from GNU libc.
45084         (rpl_putenv): Use it.
45085
45086         * lib/modechange.c: Remove trailing blanks.
45087
45088         Merge from coreutils.
45089         * lib/fsusage.c: Remove declaration of statfs.
45090         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
45091
45092         * lib/posixtm.c: Include <stdbool.h> unconditionally.
45093
45094 2003-06-06  Jim Meyering  <jim@meyering.net>
45095
45096         * lib/stdbool_.h: Renamed from stdbool.h.in.
45097
45098 2003-06-06  Jim Meyering  <jim@meyering.net>
45099             Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
45102         Adjust Makefile.am snippet not to redirect directly to target.
45103         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
45104
45105 2003-06-05  Paul Eggert  <eggert@twinsun.com>
45106
45107         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
45108         mismatch, look in future quarters as well as past.  This fixes a
45109         bug when processing fall-backwards gaps immediately after a long
45110         period of daylight-saving time.
45111
45112         * lib/mktime.c: Assume freestanding C89 or better.
45113         (HAVE_LIMITS_H): Remove.  Assume it's 1.
45114         (__P): Remove; not used.
45115         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
45116         (mktime, not_equal_tm, print_tm, check_result,
45117         main): Use prototypes.  Use const * where appropriate.
45118         (main): Fix typo in testing code that uncovered by above changes.
45119         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
45120
45121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
45122
45123         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
45124         locale.h, localeconv.  This merges changes from coreutils.
45125
45126         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
45127         It can be removed after the next Autoconf is released.
45128         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
45129         needed.
45130
45131 2003-06-04  Paul Eggert  <eggert@twinsun.com>
45132
45133         * lib/mktime.c: Fix Debian bug 177940
45134         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
45135         (localtime_offset): Now long int, not time_t, because we want it
45136         to be guaranteed to be signed.  All uses changed.
45137         (__mktime_internal): If overflow would occur when adding offset,
45138         don't add it.
45139
45140         Merge 'human' changes from coreutils.  Rewrite to support
45141         locale-specific notations like thousands separators.
45142         * lib/human.c: Simplify authorship notice.
45143         Include human.h immediately after config.h.
45144         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
45145         <limits.h>: Do not include, since human.h does.
45146         (SIZE_MAX, UINTMAX_MAX): New macros.
45147         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
45148         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
45149         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
45150         (power_letter): Renamed from suffixes.
45151         (generate_suffix_backwards): Remove.
45152         (adjust_value): Now takes int style (because of human.h changes)
45153         and long double value (for greater precision on some platforms).
45154         (group_number): New function.
45155         (human_readable): Use it.  Use integer options, not enum.
45156         Put the options before the sizes in the arg list.
45157         Support all the new options.
45158         The old human_readable function has been removed;
45159         use inttostr.h instead.
45160         (human_readable, default_block_size, humblock):
45161         Use uintmax_t, not int, for block sizes.
45162         (human_readable_inexact, block_size_types): Remove.
45163         (block_size_opts): New constant.
45164         (human_options): Renamed from human_block_size, with new signature
45165         that allows block sizes up to UINTMAX_MAX.  All callers changed.
45166         * lib/human.h: Add copyright and authorship notice.
45167         Include <limits.h> and <stdbool.h> unconditionally.
45168         (PARAMS): Remove.  All uses removed.
45169         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
45170         (enum human_inexact_style): Remove tag; now a nameless enum.
45171         (human_floor, human_ceiling, human_round_to_even): Now have
45172         values 2, 0, 1 rather than -1, 1, 0.
45173         (human_group_digits, human_suppress_point_zero, human_autoscale,
45174         human_base_1024, human_SI, human_B): New constants.
45175         (human_readable_inexact, human_block_size): Remove.
45176         (human_readable): Size args are now uintmax_t, not int.
45177         (human_options): New decl.
45178
45179         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
45180         unnecessary now that we assume C89 or better.  This change
45181         imported from coreutils.
45182
45183         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
45184         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
45185         in the 2003-05-30 sync from glibc.
45186
45187         .h files should stand alone, but we shouldn't include <sys/types.h>
45188         if we can get away with just <stddef.h>.
45189
45190         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
45191         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
45192         rather than <sys/types.h>, as we merely need size_t.
45193         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
45194         to get size_t.
45195         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
45196         Include <stdio.h>, to get FILE.
45197         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
45198         memcasecmp.h has included <stddef.h> and all we need is size_t.
45199         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
45200         our interface, instead of including <sys/types.h>
45201
45202 2003-06-04  Paul Eggert  <eggert@twinsun.com>
45203
45204         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
45205         now, as glibc mktime is buggy on non-glibc systems.
45206
45207 2003-06-03  Karl Berry  <karl@gnu.org>
45208
45209         * config/config.sub: update from prep.
45210
45211 2003-06-02  Paul Eggert  <eggert@twinsun.com>
45212
45213         [from coreutils]
45214         Fix some minor time-related bugs with POSIX time arguments.
45215         Some valid time stamps were being rejected (notably -1, and
45216         time stamps before 1900 on 64-bit hosts).  And some invalid
45217         time stamps were being accepted, e.g. September 31.
45218
45219         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
45220         that we can return (time_t) -1 successfully.
45221         * lib/posixtm.c: Likewise.
45222         [HAVE_STDBOOL_H]: Include <stdbool.h>.
45223         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
45224         (t): Remove static var.
45225         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
45226         of static var.  All uses changed.
45227         (year): Do not reject years before 1900; they can occur with
45228         64-bit time_t.
45229         (posix_time_parse): Do not check for out-of-range components;
45230         that is now the caller's responsibility, since our checks were
45231         only approximations.
45232         (posixtime): Use mktime to check for out-of-range components,
45233         since it knows them exactly.
45234         If mktime returns (time_t) -1, check whether an error actually occurred
45235         by invoking localtime on -1.
45236         (main) [TEST_POSIXTIME]: Check for input data errors, and report
45237         posixtime failures better.
45238         Improve the test data (in comments only).
45239
45240 2003-06-02  Karl Berry  <karl@gnu.org>
45241
45242         * config/mkinstalldirs (version): new variable.
45243         (--version): new option.
45244         (usage): improve message.
45245
45246 2003-05-30  Karl Berry  <karl@gnu.org>
45247
45248         * lib/mktime.c: update from libc.
45249
45250 2003-05-30  Bruno Haible  <bruno@clisp.org>
45251
45252         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
45253         * config/config.rpath: Upgrade to gettext-0.12.1.
45254
45255 2003-05-30  Bruno Haible  <bruno@clisp.org>
45256
45257         * m4/gettext.m4: Upgrade to gettext-0.12.1.
45258         * m4/nls.m4: New file, from gettext-0.12.1.
45259         * m4/po.m4: New file, from gettext-0.12.1.
45260         * m4/progtest.m4: Upgrade to gettext-0.12.1.
45261
45262 2003-05-30  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
45265         * lib/localcharset.h: Likewise.
45266         * lib/localcharset.c: Likewise.
45267
45268 2003-05-29  Karl Berry  <karl@gnu.org>
45269
45270         * config/config.rpath: update from gettext.
45271
45272 2003-05-28  Paul Eggert  <eggert@twinsun.com>
45273
45274         Assume the headers required for C89 freestanding compilers.
45275         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
45276         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
45277         * m4/human.m4 (gl_HUMAN): Likewise.
45278         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
45279         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
45280         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45281         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
45282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45283         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
45284
45285 2003-05-28  Paul Eggert  <eggert@twinsun.com>
45286
45287         Assume the headers required for C89 freestanding compilers.
45288         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
45289         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
45290         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
45291         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
45292         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
45293         define, since <limits.h> is guaranteed to do that.
45294         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
45295         * lib/exclude.c: Include <stdbool.h> unconditionally.
45296         * lib/tempname.c: Include <stddef.h> unconditionally.
45297         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
45298         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
45299         <stddef.h> does that.
45300         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
45301         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
45302         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
45303         needed.
45304         * lib/xstrtol.c: Likewise.
45305         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
45306         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
45307
45308         * lib/addext.c (addext): Use assignment rather than cast, to avoid
45309         warnings on some platforms.
45310
45311         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
45312         arbitrarily.
45313
45314 2003-05-26  Jim Meyering  <jim@meyering.net>
45315
45316         Merge in a change from coreutils:
45317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
45318         that is guaranteed to be `no'.  Use `no_such_member' to indicate
45319         that condition, rather than `-1' which is slightly misleading.
45320         Change the name of the cache variable to have the gl_ prefix.
45321         Prompted by a patch from Richard Dawe for DJGPP.
45322
45323 2003-05-24  Karl Berry  <karl@gnu.org>
45324
45325         * config/config.guess: update from prep.
45326
45327 2003-05-22  Karl Berry  <karl@gnu.org>
45328
45329         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
45330
45331 2003-05-20  Karl Berry  <karl@gnu.org>
45332
45333         * config/config.guess: update from prep.
45334
45335 2003-05-18  Karl Berry  <karl@gnu.org>
45336
45337         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
45338         might actually be set by the user.
45339
45340         * config/depcomp, install-sh, mdate-sh: update from automake.
45341
45342 2003-05-17  Bruno Haible  <bruno@clisp.org>
45343
45344         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
45345         invalid expansion for AC_EGREP_CPP.
45346         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45347         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45348         Suggested by Akim Demaille <akim@epita.fr> in
45349         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
45350
45351 2003-05-12  Jim Meyering  <jim@meyering.net>
45352
45353         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
45354         the space-padded-by-default conversion specifiers, %e, %k, %l.
45355
45356 2003-05-12  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
45359         the string is longer than 4 KB.
45360
45361 2003-05-11  Karl Berry  <karl@gnu.org>
45362
45363         * config/config.{guess,sub}: update from prep.
45364
45365 2003-05-09  Bruno Haible  <bruno@clisp.org>
45366
45367         * modules/error: Add m4/strerror_r.m4 to file list.
45368
45369 2003-05-03  Bruno Haible  <bruno@clisp.org>
45370
45371         Upgrade to Unicode-4.0.
45372         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
45373         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
45374         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
45375         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
45376         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
45377         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
45378         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
45379         Change width of U+E0100..U+E01EF from 1 to 0.
45380
45381 2003-04-25  Jim Meyering  <jim@meyering.net>
45382
45383         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
45384         of type size_t, not int.
45385
45386 2003-04-25  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/copy-file.c: Include <stddef.h>, for size_t.
45389
45390 2003-04-21  Paul Eggert  <eggert@twinsun.com>
45391
45392         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
45393         code which expansion is under static control.  Patch imported from
45394         Akim Demaille's patch to Bison; see
45395         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
45396
45397 2003-04-14  Bruno Haible  <bruno@clisp.org>
45398
45399         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
45400
45401 2003-04-11  Jim Meyering  <jim@meyering.net>
45402
45403         Merge changes from Coreutils.
45404
45405         2003-03-22  Jim Meyering  <jim@meyering.net>
45406
45407         * lib/strftime.c (widen): Cast alloca return value to proper type.
45408
45409         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
45410
45411         From GNU libc.
45412         * lib/strftime.c (my_strftime): Handle very large width
45413         specifications for numeric values correctly.  Improve checks for
45414         overflow.
45415
45416         2003-01-19  Jim Meyering  <jim@meyering.net>
45417
45418         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
45419         definitions.
45420         (nl_get_alt_digit) [! defined my_strftime]: Define.
45421         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
45422         _nl_get_alt_digit and _nl_get_walt_digit.
45423
45424         * lib/strftime.c (my_strftime): Merge in locale-related changes from
45425         libc. These changes have no effect outside of _LIBC.
45426
45427 2003-04-10  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/findprog: New file.
45430         * MODULES.html.sh (func_all_modules): Add it.
45431
45432 2003-04-10  Bruno Haible  <bruno@clisp.org>
45433
45434         * m4/findprog.m4: New file.
45435         * m4/eaccess.m4: New file.
45436
45437 2003-04-10  Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/findprog.h: New file, from GNU gettext.
45440         * lib/findprog.c: New file, from GNU gettext.
45441
45442 2003-04-05  Jim Meyering  <jim@meyering.net>
45443
45444         Merge changes from Coreutils.
45445
45446         * lib/exclude.h (PARAMS): Remove definition and uses.
45447         * lib/exclude.c: Remove uses of `PARAMS'.
45448
45449         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
45450         Add test-cases for DOS filenames. Declare program_name.
45451         (main): Set up program_name.  Patch by Rich Dawe.
45452
45453         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45454         error from mntctl.
45455         Use mntctl's return value to drive the entry-processing loop, since
45456         we can't rely on the value of the vmt_length member in the last
45457         entry.  On some systems doing so could result in exhausting
45458         virtual memory.  Based in part on a patch from Mike Jetzer.
45459
45460 2003-04-04  Bruno Haible  <bruno@clisp.org>
45461
45462         * modules/linebreak: New file.
45463         * MODULES.html.sh (func_all_modules): Add it.
45464
45465 2003-04-04  Bruno Haible  <bruno@clisp.org>
45466
45467         * m4/linebreak.m4: New file.
45468
45469 2003-04-04  Bruno Haible  <bruno@clisp.org>
45470
45471         * lib/linebreak.h: New file, from GNU gettext.
45472         * lib/linebreak.c: New file, from GNU gettext with slight
45473         modifications.
45474         * lib/lbrkprop.h: New file, from GNU gettext.
45475
45476 2003-04-03  Bruno Haible  <bruno@clisp.org>
45477
45478         * modules/utf8-ucs4: New file.
45479         * modules/utf16-ucs4: New file.
45480         * modules/ucs4-utf8: New file.
45481         * modules/ucs4-utf16: New file.
45482         * MODULES.html.sh (func_all_modules): Add them.
45483
45484 2003-04-03  Bruno Haible  <bruno@clisp.org>
45485
45486         * m4/utf-ucs4.m4: New file.
45487         * m4/ucs4-utf.m4: New file.
45488
45489 2003-04-03  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/utf8-ucs4.h: New file, from GNU gettext.
45492         * lib/utf16-ucs4.h: New file, from GNU gettext.
45493         * lib/ucs4-utf8.h: New file, from GNU gettext.
45494         * lib/ucs4-utf16.h: New file, from GNU gettext.
45495
45496 2003-04-02  Bruno Haible  <bruno@clisp.org>
45497
45498         * modules/binary-io: New file.
45499         * MODULES.html.sh (func_all_modules): Add it.
45500
45501 2003-04-02  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/binary-io.h: New file, from GNU gettext.
45504
45505 2003-04-01  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/pathname: New file.
45508         * MODULES.html.sh (func_all_modules): Add it.
45509
45510 2003-04-01  Bruno Haible  <bruno@clisp.org>
45511
45512         * lib/pathname.h: New file, from GNU gettext.
45513         * lib/concatpath.c: New file, from GNU gettext.
45514
45515 2003-03-30  Bruno Haible  <bruno@clisp.org>
45516
45517         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
45518
45519 2003-03-30  Bruno Haible  <bruno@clisp.org>
45520
45521         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
45522         function chown() doesn't exist.
45523
45524 2003-03-28  Bruno Haible  <bruno@clisp.org>
45525
45526         * modules/copy-file: New file.
45527         * MODULES.html.sh (func_all_modules): Add it.
45528
45529 2003-03-28  Bruno Haible  <bruno@clisp.org>
45530
45531         * m4/copy-file.m4: New file.
45532
45533 2003-03-28  Bruno Haible  <bruno@clisp.org>
45534
45535         * lib/copy-file.h: New file, from GNU gettext.
45536         * lib/copy-file.c: New file, from GNU gettext.
45537
45538 2003-03-18  Jim Meyering  <jim@meyering.net>
45539
45540         * lib/quote.c (quote_n): Fix typo in comment.
45541
45542 2003-03-18  Bruno Haible  <bruno@clisp.org>
45543
45544         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
45545         checking.
45546         * m4/onceonly_2_57.m4: Likewise.
45547
45548 2003-03-17  Bruno Haible  <bruno@clisp.org>
45549
45550         * m4/onceonly.m4: Require autoconf 2.54 or newer.
45551         (m4_quote): Remove macro.
45552         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
45553
45554 2003-03-14  Jim Meyering  <jim@meyering.net>
45555
45556         Merge changes from Coreutils.
45557         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
45558         to be const, in order to avoid warnings.
45559         (obstack_room): Likewise.
45560         (obstack_empty_p): Likewise.
45561
45562 2003-03-14  Bruno Haible  <bruno@clisp.org>
45563
45564         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
45565         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
45566
45567 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45568
45569         Merge changes from Bison.
45570         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
45571         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
45572         when compiling Bison 1.875's `bitset bset = obstack_alloc
45573         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
45574         * lib/hash.c: Include <stdbool.h> unconditionally.
45575
45576 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45577
45578         * m4/onceonly.m4 (m4_quote): New macro.
45579         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
45580         Quote AC_FOREACH variable-expansions properly.
45581
45582 2003-03-13  Paul Eggert  <eggert@twinsun.com>
45583
45584         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
45585
45586 2003-03-09  Paul Eggert  <eggert@twinsun.com>
45587
45588         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
45589         Reported by Bruce Becker; see:
45590         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
45591
45592 2003-03-03  Paul Eggert  <eggert@twinsun.com>
45593             Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
45596         Reported by John Hughes, see
45597         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
45598
45599 2003-02-20  Bruno Haible  <bruno@clisp.org>
45600
45601         * MODULES.html.sh (func_all_modules): Add poll.
45602
45603 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45604
45605         * modules/poll: New file.
45606
45607 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45608
45609         * lib/poll_.h: New file.
45610         * lib/poll.c: New file.
45611
45612 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
45613
45614         * m4/poll.m4: New file.
45615
45616 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45617
45618         * modules/mathl: New file.
45619
45620 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45621
45622         * lib/mathl.h: New file.
45623         * lib/acosl.c: New file.
45624         * lib/asinl.c: New file.
45625         * lib/atanl.c: New file.
45626         * lib/ceill.c: New file.
45627         * lib/cosl.c: New file.
45628         * lib/expl.c: New file.
45629         * lib/floorl.c: New file.
45630         * lib/frexpl.c: New file.
45631         * lib/ldexpl.c: New file.
45632         * lib/logl.c: New file.
45633         * lib/sincosl.c: New file.
45634         * lib/sinl.c: New file.
45635         * lib/sqrtl.c: New file.
45636         * lib/tanl.c: New file.
45637         * lib/trigl.c: New file.
45638         * lib/trigl.h: New file.
45639
45640 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45641
45642         * m4/mathl.m4: New file.
45643
45644 2003-02-18  Bruno Haible  <bruno@clisp.org>
45645
45646         * MODULES.html.sh (func_all_modules): Add mathl.
45647
45648 2003-02-17  Bruno Haible  <bruno@clisp.org>
45649
45650         * modules/mkdtemp: New module.
45651         * MODULES.html.sh (func_all_modules): Add it.
45652
45653 2003-02-17  Bruno Haible  <bruno@clisp.org>
45654
45655         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
45656
45657 2003-02-17  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/mkdtemp.h: New file, from GNU gettext.
45660         * lib/mkdtemp.c: New file, from GNU gettext.
45661
45662 2003-02-02  Jim Meyering  <jim@meyering.net>
45663
45664         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
45665         e.g. glibc-2.2.93.
45666
45667 2003-01-31  Bruno Haible  <bruno@clisp.org>
45668
45669         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
45670         'rpl_rename'.
45671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
45672         'rpl_strnlen'.
45673         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
45674         'rpl_strtod'.
45675         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
45676         'rpl_utime'.
45677
45678 2003-01-31  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/rename.c: #undef rename before defining rpl_rename.
45681         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
45682
45683 2003-01-30  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/vasnprintf, modules/vasprintf: New modules.
45686         * MODULES.html.sh (func_all_modules): Add them.
45687
45688 2003-01-30  Bruno Haible  <bruno@clisp.org>
45689
45690         * m4/signed.m4: New file, from GNU gettext.
45691         * m4/longdouble.m4: New file, from GNU gettext.
45692         * m4/wchar_t.m4: New file, from GNU gettext.
45693         * m4/wint_t.m4: New file, from GNU gettext.
45694         * m4/vasnprintf.m4: New file.
45695         * m4/vasprintf.m4: New file.
45696
45697 2003-01-30  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/printf-args.h: New file, from GNU gettext.
45700         * lib/printf-args.c: New file, from GNU gettext.
45701         * lib/printf-parse.h: New file, from GNU gettext.
45702         * lib/printf-parse.c: New file, from GNU gettext.
45703         * lib/vasnprintf.h: New file, from GNU gettext.
45704         * lib/vasnprintf.c: New file, from GNU gettext.
45705         * lib/asnprintf.c: New file, from GNU gettext.
45706         * lib/vasprintf.h: New file, from GNU gettext with modifications.
45707         * lib/vasprintf.c: New file, from GNU gettext.
45708         * lib/asprintf.c: New file, from GNU gettext.
45709
45710 2003-01-29  Bruno Haible  <bruno@clisp.org>
45711
45712         * modules/stpncpy: New module.
45713         * MODULES.html.sh (func_all_modules): Add it.
45714
45715 2003-01-29  Bruno Haible  <bruno@clisp.org>
45716
45717         * m4/stpncpy.m4: New file.
45718
45719 2003-01-29  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/stpncpy.h: New file, from GNU gettext with modifications.
45722         * lib/stpncpy.c: New file, from GNU gettext with modifications.
45723
45724 2003-01-28  Bruno Haible  <bruno@clisp.org>
45725
45726         * modules/c-ctype: New module.
45727         * MODULES.html.sh (func_all_modules): Add it.
45728
45729 2003-01-28  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
45732         Paul Eggert.
45733         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
45734         Paul Eggert.
45735
45736 2003-01-27  Bruno Haible  <bruno@clisp.org>
45737
45738         * modules/xsetenv: New module.
45739         * MODULES.html.sh (func_all_modules): Add it.
45740
45741 2003-01-27  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/xsetenv.h: New file, from GNU gettext.
45744         * lib/xsetenv.c: New file, from GNU gettext.
45745
45746 2003-01-23  Jim Meyering  <jim@meyering.net>
45747
45748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
45749         from working on systems without dirfd (at least Irix and OSF1/Tru64).
45750
45751 2003-01-23  Bruno Haible  <bruno@clisp.org>
45752
45753         * modules/minmax: New module.
45754         * MODULES.html.sh (func_all_modules): Add it.
45755
45756 2003-01-23  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
45759         Eggert.
45760
45761 2003-01-22  Bruno Haible  <bruno@clisp.org>
45762
45763         * modules/exit: New module.
45764         * MODULES.html.sh (func_all_modules): Add it.
45765
45766 2003-01-22  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/exit.h: New file, from GNU gettext.
45769
45770 2003-01-19  Bruno Haible  <bruno@clisp.org>
45771
45772         * gnulib-tool: Recognize option --extract-maintainer.
45773         (func_get_maintainer): New function.
45774         * modules/*: Add Maintainer entry.
45775
45776 2003-01-16  Jim Meyering  <jim@meyering.net>
45777
45778         * m4/regex.m4: The `regex' struct is both input and output.
45779         Initialize it before each use.  Patch by Tim Waugh.
45780
45781 2003-01-16  Bruno Haible  <bruno@clisp.org>
45782
45783         * MODULES.html.sh: Add a table of contents. Add the module name as
45784         leftmost column. Add hyperlinks.
45785
45786 2003-01-15  Bruno Haible  <bruno@clisp.org>
45787
45788         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
45789
45790 2003-01-15  Bruno Haible  <bruno@clisp.org>
45791
45792         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
45793         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
45794         suffix.
45795
45796 2003-01-15  Bruno Haible  <bruno@clisp.org>
45797
45798         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
45799
45800 2003-01-15  Bruno Haible  <bruno@clisp.org>
45801
45802         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
45803         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
45804
45805 2003-01-14  Jim Meyering  <jim@meyering.net>
45806
45807         * lib/same.c (same_name): Tweak a comment.
45808
45809 2003-01-14  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
45812         when a string comparison is sufficient.
45813
45814 2003-01-14  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
45817         'unsigned int'.
45818
45819 2003-01-14  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/hash-pjw.c: Add comment about low quality of this function.
45822
45823 2003-01-13  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/stpcpy: Distribute lib/stpcpy.h.
45826         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
45827
45828 2003-01-13  Bruno Haible  <bruno@clisp.org>
45829
45830         * modules/*: Add a description.
45831         * modules/strpbrk: Fix Makefile.am snippet.
45832         * modules/strtoimax: Fix dependencies.
45833         * modules/strtoumax: Likewise.
45834
45835 2003-01-13  Bruno Haible  <bruno@clisp.org>
45836
45837         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
45838         * modules/alloca (Makefile.am): All object files depend on alloca.h.
45839         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
45840
45841 2003-01-13  Bruno Haible  <bruno@clisp.org>
45842
45843         * gnulib-tool (func_create_testdir): Store config/* files in the main
45844         directory.
45845         * config.rpath: Move to ...
45846         * config/config.rpath: ... here.
45847         * modules/gettext: Contains config/config.rpath, not config.rpath.
45848         * modules/iconv: Likewise.
45849
45850 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45851
45852         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45853         to avoid collisions with libcurses and libreadline.
45854
45855         * m4/getstr.m4: Remove.
45856         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
45857
45858 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45859
45860         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45861         to avoid collisions with libcurses and libreadline.
45862
45863         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
45864         * lib/getstr.h, getstr.c: Remove.
45865         * lib/getline.c: Include "getline.h", to check interface.
45866         Move body of old getstr.c here: this defines MIN_CHUNK and
45867         declares getdelim2, which is renamed from getstr.
45868         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
45869
45870         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
45871         All uses changed.
45872         * lib/linebuffer.h: Likewise.
45873         (readline): Remove backward-compatibility macro.
45874
45875 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45876
45877         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45878         to avoid collisions with libcurses and libreadline.
45879         * getstr: Remove.
45880         * MODULES.html.sh: Remove getstr.
45881         * modules/getline: Depend on unlocked-io, not getstr.
45882
45883 2003-01-12  Jim Meyering  <jim@meyering.net>
45884
45885         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
45886
45887 2003-01-10  Bruno Haible  <bruno@clisp.org>
45888
45889         * modules/alloca: Change Makefile.am requirements. Simplify Include
45890         requirements. Add lib/alloca_.h to file list.
45891
45892 2003-01-10  Bruno Haible  <bruno@clisp.org>
45893
45894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
45895
45896 2003-01-10  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/alloca_.h: New file.
45899         * lib/getdate.y: Unconditionally include alloca.h.
45900         * lib/makepath.c: Likewise.
45901         * lib/setenv.c: Likewise.
45902         * lib/userspec.c: Likewise.
45903
45904 2003-01-09  Karl Berry  <karl@gnu.org>
45905
45906         * MODULES.html.sh: include `dirname $0` in PATH, to find
45907         gnulib-tool.
45908
45909 2003-01-09  Bruno Haible  <bruno@clisp.org>
45910
45911         * modules/stdbool: Change configure.ac, Makefile.am requirements.
45912         Simplify Include requirements. Add lib/stdbool.h.in to file list.
45913
45914 2003-01-09  Bruno Haible  <bruno@clisp.org>
45915
45916         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45917
45918 2003-01-09  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/stdbool.h.in: New file.
45921
45922 2003-01-09  Bruno Haible  <bruno@clisp.org>
45923
45924         * gnulib-tool (func_all_modules): Ignore files ending in ~.
45925         * MODULES.html.sh: Likewise.
45926
45927 2003-01-08  Jim Meyering  <jim@meyering.net>
45928
45929         * lib/full-write.c: Undefine and define-away `const' after inclusion
45930         of errno.h, not before.  Suggestion from Bruno Haible.
45931
45932 2003-01-08  Bruno Haible  <bruno@clisp.org>
45933
45934         * modules/full-read: Depend on full-write.
45935
45936 2003-01-08  Bruno Haible  <bruno@clisp.org>
45937
45938         * lib/safe-read.c: Include specification header first, to ensure its
45939         selfcontainedness.
45940         * lib/full-write.c: Likewise.
45941
45942 2003-01-07  Jim Meyering  <jim@meyering.net>
45943
45944         * lib/full-write.c: Rework so that it may serve to define full_read,
45945         too.
45946         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45947
45948 2003-01-07  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/strtoimax.c: Include <stdint.h> as an alternative to
45951         <inttypes.h>.
45952         * lib/xstrtol.h: Likewise.
45953         * lib/xstrtoimax.c: Likewise.
45954         * lib/xstrtoumax.c: Likewise.
45955         * lib/human.h: Likewise.
45956
45957         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45958         on systems that have <inttypes.h> but not <stdint.h>.
45959
45960 2003-01-07  Bruno Haible  <bruno@clisp.org>
45961
45962         * MODULES.html.sh: Add copyright notice.
45963         (missed_files): Omit CVS directory entries.
45964         (func_module): Make it work with sed-3.02.
45965         * MODULES.txt: Remove file.
45966
45967 2003-01-06  Jim Meyering  <jim@meyering.net>
45968
45969         * lib/version-etc.c: Update year in translatable copyright string.
45970
45971 2003-01-03  Karl Berry  <karl@gnu.org>
45972
45973         * config/config.{guess,sub}: update from prep.
45974
45975 2003-01-02  Karl Berry  <karl@gnu.org>
45976
45977         * doc/COPYING.DOC: belatedly updated to 1.2.
45978
45979 2003-01-01  Karl Berry  <karl@gnu.org>
45980
45981         * gnulib-tool (func_verify_module): report module name $module in
45982         error message, not $1.
45983         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45984         be created, only if it doesn't exist.
45985         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45986
45987 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45988
45989         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45990
45991 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45992
45993         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45994         memcmp if strcoll doesn't work.
45995
45996 2002-12-31  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45999         nonempty.
46000
46001 2002-12-31  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/memcoll.c (STRCOLL): New macro.
46004         (memcoll): Use it.
46005
46006 2002-12-31  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/localcharset.h: New file.
46009         * lib/localcharset.c: Include it.
46010         * lib/unicodeio.c: Likewise.
46011
46012 2002-12-31  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
46015         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
46016
46017 2002-12-31  Bruno Haible  <bruno@clisp.org>
46018
46019         * lib/getline.h: Include <stddef.h>, for size_t.
46020
46021         * lib/unicodeio.h: Include <stddef.h>, for size_t.
46022         * lib/unicodeio.c: Don't include <stddef.h>.
46023
46024 2002-12-31  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
46027         HAVE_TM_ZONE.
46028
46029 2002-12-24  Karl Berry  <karl@gnu.org>
46030
46031         * config/config.guess: update from prep.
46032
46033 2002-12-24  Bruno Haible  <bruno@clisp.org>
46034
46035         General infrasructure.
46036         * m4/README: Rewritten.
46037         * m4/onceonly.m4: New file.
46038         * m4/onceonly_2_57.m4: New file.
46039
46040         Module atexit.
46041         * m4/atexit.m4: New file.
46042
46043         Module strtod.
46044         * m4/strtod.m4: New file.
46045
46046         Module strtol.
46047         * m4/strtol.m4: New file.
46048
46049         Module strtoul.
46050         * m4/strtoul.m4: New file.
46051
46052         Module memchr.
46053         * m4/memchr.m4: New file.
46054
46055         Module memcmp.
46056         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
46057         (jm_FUNC_MEMCMP): Invoke it.
46058
46059         Module memcpy.
46060         * m4/memcpy.m4: New file.
46061
46062         Module memmove.
46063         * m4/memmove.m4: New file.
46064
46065         Module memset.
46066         * m4/memset.m4: New file.
46067
46068         Module strcspn.
46069         * m4/strcspn.m4: New file.
46070
46071         Module strpbrk.
46072         * m4/strpbrk.m4: New file.
46073
46074         Module strstr.
46075         * m4/strstr.m4: New file.
46076
46077         Module strerror.
46078         * m4/strerror.m4: New file.
46079
46080         Module mktime.
46081         * m4/mktime.m4: Renamed from jm-mktime.m4.
46082         (gl_PREREQ_MKTIME): New macro.
46083         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
46084
46085         Module malloc.
46086         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
46087         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
46088         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
46089
46090         Module realloc.
46091         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
46092         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
46093         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
46094
46095         Module strftime.
46096         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
46097         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
46098         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
46099         gl_TM_GMTOFF.
46100         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
46101
46102         Module xalloc.
46103         * m4/xalloc.m4: New file.
46104
46105         Module alloca.
46106         * m4/alloca.m4: New file.
46107
46108         Module putenv.
46109         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
46110         (jm_FUNC_PUTENV): Invoke it.
46111
46112         Module setenv.
46113         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
46114         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
46115         when invoked twice.
46116         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
46117         gt_FUNC_SETENV.
46118
46119         Module memrchr.
46120         * m4/memrchr.m4: New file.
46121
46122         Module stpcpy.
46123         * m4/stpcpy.m4: New file.
46124
46125         Module strcase.
46126         * m4/strcase.m4: New file.
46127
46128         Module strdup.
46129         * m4/strdup.m4: New file.
46130
46131         Module strnlen.
46132         * m4/strnlen.m4: New file.
46133
46134         Module strndup.
46135         * m4/strndup.m4: New file.
46136
46137         Module xstrtod.
46138         * m4/xstrtod.m4: New file.
46139
46140         Module xstrtol.
46141         * m4/xstrtol.m4: New file.
46142
46143         Module getdate.
46144         * m4/getdate.m4: New file.
46145
46146         Module unlocked-io.
46147         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
46148         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
46149         * m4/jm-glibc-io.m4n: Remove file.
46150
46151         Module long-options.
46152         * m4/long-options.m4: New file.
46153
46154         Module md5.
46155         * m4/md5.m4: New file.
46156
46157         Module sha.
46158         * m4/sha.m4: New file.
46159
46160         Module getstr.
46161         * m4/getstr.m4: New file.
46162
46163         Module getline.
46164         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
46165         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
46166         <sys/types.h>, for size_t. Use the function name gnu_getline, not
46167         simply getline. Infoke gl_PREREQ_GETLINE.
46168
46169         Module obstack.
46170         * m4/obstack.m4: New file.
46171
46172         Module hash.
46173         * m4/hash.m4: New file.
46174
46175         Module readtokens.
46176         * m4/readtokens.m4: New file.
46177
46178         Module strverscmp.
46179         * m4/strverscmp.m4: New file.
46180
46181         Module stdbool.
46182         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
46183         OSF/1.
46184
46185         Module strtoll.
46186         * m4/strtoll.m4: New file.
46187
46188         Module strtoull.
46189         * m4/strtoull.m4: New file.
46190
46191         Module strtoimax.
46192         * m4/strtoimax.m4: New file.
46193
46194         Module strtoumax.
46195         * m4/strtoumax.m4: New file.
46196
46197         Module xstrtoimax.
46198         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
46199         jm_AC_PREREQ_XSTRTOIMAX.
46200         Moved the strtol prerequisites to strtol.m4.
46201         Moved the strtoll prerequisites to strtoll.m4.
46202         Moved the strtoimax prerequisites to strtoimax.m4.
46203
46204         Module xstrtoumax.
46205         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
46206         jm_AC_PREREQ_XSTRTOUMAX.
46207         Moved the strtoul prerequisites to strtoul.m4.
46208         Moved the strtoull prerequisites to strtoull.m4.
46209         Moved the strtoumax prerequisites to strtoumax.m4.
46210
46211         Module chown.
46212         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
46213         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
46214
46215         Module dup2.
46216         * m4/dup2.m4: New file.
46217
46218         Module ftruncate.
46219         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
46220         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
46221
46222         Module getgroups.
46223         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
46224         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
46225
46226         Module gettimeofday.
46227         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
46228         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
46229         gl_PREREQ_GETTIMEOFDAY.
46230
46231         Module mkdir.
46232         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
46233         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
46234
46235         Module mkstemp.
46236         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
46237         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
46238         jm_AC_TYPE_UINTMAX_T.
46239         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
46240
46241         Module stat.
46242         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
46243         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
46244
46245         Module lstat.
46246         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
46247         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
46248
46249         Module timespec.
46250         * m4/timespec.m4 (gl_TIMESPEC): New macro.
46251         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
46252         * m4/st_mtim.m4: Indentation.
46253
46254         Module nanosleep.
46255         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
46256         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
46257         gl_PREREQ_NANOSLEEP.
46258
46259         Module regex.
46260         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
46261         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
46262         (gl_REGEX): New macro.
46263
46264         Module rename.
46265         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
46266         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
46267
46268         Module rmdir.
46269         * m4/rmdir.m4: New file.
46270
46271         Module utime.
46272         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
46273         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
46274         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
46275
46276         Module dirname.
46277         * m4/dirname.m4: New file.
46278
46279         Module getopt.
46280         * m4/getopt.m4: New file.
46281
46282         Module unistd-safer.
46283         * m4/unistd-safer.m4: New file.
46284
46285         Module fnmatch.
46286         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
46287         declaration.
46288         (gl_PREREQ_FNMATCH_EXTRA): New macro.
46289         (gl_FUNC_FNMATCH_POSIX): New macro.
46290         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
46291         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
46292         simply fnmatch.
46293
46294         Module exclude.
46295         * m4/exclude.m4: New file.
46296
46297         Module human.
46298         * m4/human.m4: New file.
46299
46300         Module acl.
46301         * m4/acl.m4: Nop.
46302
46303         Module backupfile.
46304         * m4/backupfile.m4: New file.
46305         * m4/d-ino.m4: Indentation.
46306
46307         Module fsusage.
46308         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
46309         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
46310         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
46311
46312         Module dirfd.
46313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
46314         requirements.
46315
46316         Module euidaccess.
46317         * m4/euidaccess.m4: New file.
46318
46319         Module file-type.
46320         * m4/file-type.m4: New file.
46321
46322         Module fileblocks.
46323         * m4/fileblocks.m4: New file.
46324
46325         Module filemode.
46326         * m4/filemode.m4: New file.
46327
46328         Module isdir.
46329         * m4/isdir.m4: New file.
46330
46331         Module lchown.
46332         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
46333         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
46334
46335         Module makepath.
46336         * m4/makepath.m4: New file.
46337
46338         Module modechange.
46339         * m4/modechange.m4: New file.
46340
46341         Module mountlist.
46342         * m4/mountlist.m4: New file.
46343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
46344         Indentation.
46345
46346         Module path-concat.
46347         * m4/path-concat.m4: New file.
46348
46349         Module pathmax.
46350         * m4/pathmax.m4: New file.
46351
46352         Module same.
46353         * m4/same.m4: New file.
46354
46355         Module save-cwd.
46356         * m4/save-cwd.m4: New file.
46357
46358         Module savedir.
46359         * m4/savedir.m4: New file.
46360
46361         Module xgetcwd.
46362         * m4/xgetcwd.m4: New file.
46363         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
46364
46365         Module xreadlink.
46366         * m4/xreadlink.m4: New file.
46367
46368         Module safe-read.
46369         * m4/safe-read.m4: New file.
46370
46371         Module safe-write.
46372         * m4/safe-write.m4: New file.
46373
46374         Module closeout.
46375         * m4/closeout.m4: New file.
46376
46377         Module stdio-safer.
46378         * m4/stdio-safer.m4: New file.
46379
46380         Module getpass.
46381         * m4/getpass.m4: New file.
46382
46383         Module getugroups.
46384         * m4/getugroups.m4: New file.
46385
46386         Module group-member.
46387         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
46388         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
46389
46390         Module idcache.
46391         * m4/idcache.m4: New file.
46392
46393         Module userspec.
46394         * m4/userspec.m4: New file.
46395
46396         Module gettime.
46397         * m4/clock_time.m4: New file.
46398         * m4/gettime.m4: New file.
46399
46400         Module settime.
46401         * m4/settime.m4: New file.
46402
46403         Module posixtm.
46404         * m4/posixtm.m4: New file.
46405
46406         Module gethostname.
46407         * m4/gethostname.m4: New file.
46408
46409         Module canon-host.
46410         * m4/canon-host.m4: New file.
46411
46412         Module gettext.
46413         * m4/codeset.m4: New file, from gettext-0.11.5.
46414         * m4/gettext.m4: New file, from gettext-0.11.5.
46415         * m4/glibc21.m4: New file, from gettext-0.11.5.
46416         * m4/iconv.m4: New file, from gettext-0.11.5.
46417         * m4/intdiv0.m4: New file, from gettext-0.11.5.
46418         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
46419         * m4/inttypes.m4: New file, from gettext-0.11.5.
46420         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
46421         * m4/isc-posix.m4: New file, from gettext-0.11.5.
46422         * m4/lcmessage.m4: New file, from gettext-0.11.5.
46423         * m4/lib-ld.m4: New file, from gettext-0.11.5.
46424         * m4/lib-link.m4: New file, from gettext-0.11.5.
46425         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
46426         * m4/progtest.m4: New file, from gettext-0.11.5.
46427         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
46428         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
46429         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
46430
46431         Module localcharset.
46432         * m4/localcharset.m4: New file.
46433
46434         Module hard-locale.
46435         * m4/hard-locale.m4: New file.
46436
46437         Module mbswidth.
46438         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
46439         onceonly macros.
46440         * m4/mbrtowc.m4: Add comment.
46441
46442         Module memcasecmp.
46443         * m4/memcasecmp.m4: New file.
46444
46445         Module memcoll.
46446         * m4/memcoll.m4: New file.
46447
46448         Module unicodeio.
46449         * m4/unicodeio.m4: New file.
46450
46451         Module rpmatch.
46452         * m4/rpmatch.m4: New file.
46453
46454         Module yesno.
46455         * m4/yesno.m4: New file.
46456
46457         Module exitfail.
46458         * m4/exitfail.m4: New file.
46459
46460         Module c-stack.
46461         * m4/c-stack.m4 (gl_C_STACK): New macro.
46462         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
46463
46464         Module error.
46465         * m4/error.m4 (gl_ERROR): New macro.
46466         (jm_PREREQ_ERROR): Use onceonly macros.
46467
46468         Module fatal.
46469         * m4/fatal.m4: New file.
46470
46471         Module getloadavg.
46472         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
46473         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
46474
46475         Module getpagesize.
46476         * m4/getpagesize.m4: New file.
46477
46478         Module getusershell.
46479         * m4/getusershell.m4: New file.
46480
46481         Module physmem.
46482         * m4/physmem.m4: New file.
46483
46484         Module posixver.
46485         * m4/posixver.m4: New file.
46486
46487         Module quotearg.
46488         * m4/quotearg.m4: New file.
46489
46490         Module quote.
46491         * m4/quote.m4: New file.
46492
46493         Module readutmp.
46494         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
46495
46496         Module sig2str.
46497         * m4/sig2str.m4: New file.
46498
46499         Other.
46500         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
46501         ulonglong.m4.
46502         * m4/intmax_t.m4: New file.
46503         * m4/d-type.m4: Indentation.
46504         * m4/jm-macros.m4: Update.
46505         * m4/prereq.m4 (jm_PREREQ): Update.
46506         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
46507         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
46508         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
46509         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
46510         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
46511         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
46512         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
46513         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
46514         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
46515         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
46516         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
46517         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
46518         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
46519         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
46520         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
46521         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
46522         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
46523         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
46524         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
46525
46526 2002-12-24  Bruno Haible  <bruno@clisp.org>
46527
46528         * MODULES.txt: Update according to m4/ changes.
46529
46530         Module gettext.
46531         * config.rpath: New file, from gettext-0.11.5.
46532
46533         * modules/*: New module descriptions.
46534         * gnulib-tool: New file.
46535         * MODULES.html.sh: New file.
46536
46537 2002-12-21  Karl Berry  <karl@gnu.org>
46538
46539         * doc/fdl.texi: update to version 1.2.
46540
46541 2002-12-19  Karl Berry  <karl@gnu.org>
46542
46543         * config/config.guess: update from prep.
46544
46545 2002-12-18  Bruno Haible  <bruno@clisp.org>
46546
46547         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
46548         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
46549
46550 2002-12-17  Bruno Haible  <bruno@clisp.org>
46551
46552         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
46553         stdlib.h, string.h.
46554
46555 2002-12-17  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/canon-host.c (strdup): Remove unused declaration.
46558
46559         * lib/fsusage.c: Include full_read.h.
46560         (get_fs_usage): Use full_read instead of safe_read.
46561
46562         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
46563
46564 2002-12-12  Karl Berry  <karl@gnu.org>
46565
46566         * config/config.guess: update from prep.
46567
46568 2002-12-11  Bruno Haible  <bruno@clisp.org>
46569
46570         * m4/setenv.m4: New file, from gettext-0.11.5.
46571
46572 2002-12-11  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
46575         not unsetenv().
46576         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
46577         modifications:
46578
46579         2002-12-11  Bruno Haible  <bruno@clisp.org>
46580
46581                 * setenv.c (alloca): Fall back to malloc.
46582                 (freea): New macro.
46583                 (setenv): Use freea() to free memory allocated with alloca().
46584
46585         2002-11-13  Bruno Haible  <bruno@clisp.org>
46586
46587                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
46588                 function declarations.
46589                 * unsetenv.c (unsetenv): Likewise.
46590
46591         2002-03-04  Bruno Haible  <bruno@clisp.org>
46592
46593                 Portability to AIX 4.3.3.
46594                 * unsetenv.c: New file, extracted from setenv.c.
46595                 * setenv.c: Move the unsetenv() function to unsetenv.c.
46596
46597         2001-12-20  Bruno Haible  <bruno@clisp.org>
46598
46599                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
46600                 use malloc instead. For SunOS 4.
46601
46602         2001-12-11  Bruno Haible  <bruno@clisp.org>
46603
46604                 * setenv.c: Declare alloca.
46605                 (compar_fn_t): New typedef.
46606                 (KNOWN_VALUE, STORE_VALUE): Use it.
46607
46608         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
46609         setenv.h.
46610
46611 2002-12-10  Paul Eggert  <eggert@twinsun.com>
46612
46613         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
46614         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
46615         Choose values that are less likely to collide with system fnmatch
46616         options.
46617         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
46618         defined (e.g., a pure POSIX system).
46619         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
46620         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
46621
46622 2002-12-06  Paul Eggert  <eggert@twinsun.com>
46623
46624         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
46625         a pain in practice to deal with generated m4 files.  This change
46626         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
46627
46628         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
46629         and jm-glibc-io.m4, as they are no longer a special case.
46630         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
46631         kludge and the auto-generation stuff.  Check only whether the
46632         functions are declared, not whether they exist, since older hosts
46633         that don't declare the functions can't use the optimization anyway.
46634
46635 2002-12-06  Jim Meyering  <jim@meyering.net>
46636
46637         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
46638
46639         Merge in changes from libc's misc/error.c, in preparation
46640         for the merge of gnulib's changes back into libc.
46641
46642         * lib/error.c (_): Define only if not already defined.
46643         Move definition to follow all #include directives.
46644         Include unlocked-io.h only if !_LIBC.
46645         [_LIBC]: Include <libio/libioP.h>.
46646         [USE_IN_LIBIO]: Include <libio/iolibio.h>
46647         (fflush): Tweak definition to use INTUSE.
46648         (putc): Define.
46649
46650 2002-12-05  Paul Eggert  <eggert@twinsun.com>
46651
46652         * lib/alloca.c [defined emacs]: Include "lisp.h".
46653         (xalloc_die) [defined emacs]: New macro.
46654         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
46655         [! defined emacs]: Include <xalloc.h>.
46656         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
46657         (pointer): Typedef to POINTER_TYPE *.
46658         (malloc): Remove decl; we now always use xmalloc.
46659         (alloca): Use old-style definition, since Emacs needs this.
46660         Check for arithmetic overflow when computing combined size.
46661
46662 2002-12-04  Paul Eggert  <eggert@twinsun.com>
46663
46664         Do not generate unlocked-io.h automatically, since it's easier to
46665         maintain it by hand.
46666
46667         * lib/unlocked-io.h: New file, from GNU diffutils,
46668         but with proper copyright notice and attribution.
46669         * lib/gen-uio: Remove.
46670         * lib/Makefile.am: Add copyright notice.
46671         (libfetish_a_SOURCES): Add unlocked-io.h.
46672         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
46673         (DISTCLEANFILES, io_functions): Remove macros.
46674         (EXTRA_DIST): Remove gen_uio.
46675         (unlocked-io.h): Remove rule.
46676
46677 2002-12-04  Jim Meyering  <jim@meyering.net>
46678
46679         Reflect the fact that stat.c and lstat.c are no longer generated.
46680         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
46681         (DISTCLEANFILES): Likewise.
46682         (EXTRA_DIST): Likewise.
46683         (all_local): Don't depend on stat.c or lstat.c.
46684         (stat.c, lstat.c): Remove rules.
46685         (EXTRA_DIST): Remove xstat.in.
46686
46687         * lib/xstat.in: Remove file.  Contents moved into stat.c.
46688         * lib/stat.c: New file.  Contents mostly from xstat.in.
46689         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
46690         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
46691
46692         * lib/safe-read.c: Rework so that it may serve to define safe_write,
46693         too.
46694         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
46695
46696 2002-12-03  Jim Meyering  <jim@meyering.net>
46697
46698         * lib/safe-read.c, safe-write.c: Change variable names and comments,
46699         but not semantics, to minimize the differences between these two files.
46700         (safe_read): Change comment to mention SAFE_READ_ERROR.
46701
46702         * lib/safe-read.c (IS_EINTR): Define.
46703         (safe_read): Use IS_EINTR in place of in-function cpp directives.
46704
46705 2002-12-02  Jim Meyering  <jim@meyering.net>
46706
46707         * lib/safe-read.c (EINTR): Define.
46708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
46709         (INT_MAX): Provide fallback.
46710         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
46711
46712         * lib/safe-read.h (SAFE_READ_ERROR): Define.
46713
46714 2002-12-02  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
46717         Define, taken from safe-read.c.
46718         (INT_MAX): Provide fallback.
46719         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
46720         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
46721
46722         * lib/safe-read.c (EINTR): Remove definition.
46723         (safe_read): Don't use EINTR if it is absent.
46724
46725 2002-12-01  Jim Meyering  <jim@meyering.net>
46726
46727         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
46728         zero.
46729         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
46730
46731 2002-11-27  Paul Eggert  <eggert@twinsun.com>
46732
46733         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
46734         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
46735         with `if (! (value < limit)) abort ();', for readability.
46736
46737 2002-11-26  Karl Berry  <karl@gnu.org>
46738
46739         * lib/strdup.c: copy from libc again, with jim's ok.
46740         * lib/.cppi-disable: re-add strdup.c
46741
46742 2002-11-25  Karl Berry  <karl@gnu.org>
46743
46744         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
46745         instead of "strtol.c".
46746
46747 2002-11-25  Karl Berry  <karl@gnu.org>
46748
46749         * config/install-sh: update from automake for variable quoting, $0 in
46750         error msgs, etc.
46751
46752         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
46753         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
46754         entry.
46755
46756 2002-11-25  Jim Meyering  <jim@meyering.net>
46757
46758         * lib/mktime.c: Sync from libc, now that it has the latest fix.
46759
46760 2002-11-24  Karl Berry  <karl@gnu.org>
46761
46762         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
46763         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
46764
46765 2002-11-24  Jim Meyering  <jim@meyering.net>
46766
46767         Update from coreutils:
46768
46769         * lib/mktime.c: Merge in changes from libc.
46770
46771         Avoid a link-time failure on some Linux systems.
46772         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
46773         (otherwise).
46774         (__mon_yday): Declare with the STATIC attribute.
46775         (__mktime_internal): Likewise.
46776         Based on a report from Greg Schafer.
46777
46778 2002-11-23  Jim Meyering  <jim@meyering.net>
46779
46780         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
46781         Use `unsigned', not `int', as type of index.
46782
46783         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
46784
46785         * lib/fsusage.c: Remove unneeded parentheses around operands of
46786         `defined'.
46787
46788 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46789
46790         * lib/quotearg.h: Allow multiple inclusion by surrounding with
46791         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
46792         so that we can be included first.
46793         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
46794         * lib/quotearg.c: Include quotearg.h immediately after config.h.
46795         No need to include stddef.h or sys/types.h any more.
46796         Surround local include files with "", not "<>".
46797         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
46798         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
46799         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
46800         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
46801         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
46802         (ISPRINT): Remove; no longer needed now that we assume C89.
46803
46804         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
46805         Preserve errno.
46806
46807         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
46808         quotearg_char): Use SIZE_MAX rather than
46809         (size_t) -1 when we are talking about "infinity".
46810
46811         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
46812
46813 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46814
46815         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
46816         hint that one should use `if (! x) abort ();' rather than `assert
46817         (x);', and anyway it's one less thing to worry about configuring.
46818         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
46819         hash_rehash, hash_insert): Use abort rather than assert.
46820
46821 2002-11-22  Bruno Haible  <bruno@clisp.org>
46822
46823         * lib/safe-read.h: Assume C89. Add comments.
46824         (safe_read): Change return type to size_t.
46825         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
46826         byte counts > SSIZE_MAX correctly.
46827         * lib/safe-write.h: New file.
46828         * lib/safe-write.c: New file.
46829         * lib/full-read.h: New file.
46830         * lib/full-read.c: New file.
46831         * lib/full-write.h: Assume C89. Add comments.
46832         * lib/full-write.c: Include safe-write.h.
46833         (full_write): Rewritten to use safe_write.
46834         Suggested by Jim Meyering and Paul Eggert.
46835
46836 2002-11-21  Jim Meyering  <jim@meyering.net>
46837
46838         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
46839
46840         Merge in changes from the coreutils.
46841
46842         2002-09-25  Paul Eggert  <eggert@twinsun.com>
46843         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
46844         <stdint.h>.
46845         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
46846         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
46847         int.  Work more efficiently if X is the same width as uintmax_t.
46848         Do not compare X to -1, to avoid bogus compiler warning.
46849         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
46850         Don't assume that f_frsize and f_bsize are the same type.
46851
46852         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
46853         warning on FreeBSD.
46854
46855         * lib/makepath.c (make_path): Restore umask *before* creating the final
46856         component.
46857         (make_path): Minor reformatting.
46858
46859         * lib/xmalloc.c: Adjust to work with new autoconf macros,
46860         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
46861         HAVE_MALLOC/HAVE_REALLOC.
46862
46863         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
46864         dummy ones.  At least on GNU/Linux systems, `auto' means something
46865         else.
46866         From Michael Stone.
46867
46868 2002-11-21  Bruno Haible  <bruno@clisp.org>
46869
46870         Remove case insensitive option matching.
46871         * lib/argmatch.h (argcasematch): Remove declaration.
46872         (ARGCASEMATCH): Remove macro.
46873         (__xargmatch_internal): Remove case_sensitive argument.
46874         (XARGMATCH): Update.
46875         (XARGCASEMATCH): Remove macro.
46876         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
46877         case_sensitive argument.
46878         (argcasematch): Remove function.
46879         (__xargmatch_internal): Remove case_sensitive argument.
46880         (main): Use XARGMATCH instead of XARGCASEMATCH.
46881
46882         * lib/xmalloc.c: Change compile-time error message. Add comment about
46883         required autoconf version.
46884
46885 2002-11-20  Paul Eggert  <eggert@twinsun.com>
46886
46887         Merge argmatch cleanups from Bison.  Assume C89.
46888
46889         * lib/argmatch.c: Include config.h here, not in argmatch.h.
46890         Include stdlib.h, for EXIT_FAILURE.
46891         Always include <string.h>, since we assume C89.
46892         (EXIT_FAILURE): Remove pre-C89 bug workaround.
46893         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
46894         Include <stddef.h> instead, since it's all we need for size_t.
46895         (PARAMS): Remove.  All uses removed.
46896         (ARRAY_CARDINALITY): Do not bother to #undef.
46897         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
46898         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46899         Remove unnecessary parentheses.
46900         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46901         Insert necessary parentheses.
46902         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
46903         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
46904
46905 2002-11-19  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
46908         * lib/mbswidth.h: Include <stddef.h>, for size_t.
46909
46910         * lib/mbswidth.h (PARAMS): Remove macro.
46911         (mbswidth, mbsnwidth): Use ANSI C function declarations.
46912         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
46913
46914         * lib/gcd.h (PARAMS): Remove macro.
46915         (gcd): Use ANSI C function declarations.
46916         * lib/gcd.c (gcd): Likewise.
46917
46918 2002-11-15  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/strcspn.c: Include <stddef.h>.
46921         (strcspn): Use ANSI C function declaration. Change return type to
46922         size_t. Use NULL.
46923         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46924         (strpbrk): Use NULL.
46925         * lib/strpbrk.h (PARAMS): Remove macro.
46926         (strpbrk): Use ANSI C function declaration.
46927         * lib/strstr.c: Don't include <sys/types.h>.
46928         * lib/strstr.h (PARAMS): Remove macro.
46929         (strstr): Use ANSI C function declarations.
46930
46931 2002-11-14  Karl Berry  <karl@gnu.org>
46932
46933         * config/mkinstalldirs: `do' on separate line, instead of
46934         `for var; do'.
46935
46936 2002-11-06  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46939         * lib/gcd.c (gcd): Likewise.
46940
46941 2002-11-05  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/gcd.h: New file, from gettext-0.11.5.
46944         * lib/gcd.c: New file, from gettext-0.11.5.
46945
46946 2002-11-05  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46949         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46950         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46951         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46952
46953         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46954         <libintl.h>.
46955         * lib/makepath.c: Include gettext.h instead of <locale.h> and
46956         <libintl.h>.
46957
46958         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46959         * lib/human.c: Include gettext.h instead of <libintl.h>.
46960         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46961         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46962         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46963         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46964         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46965         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46966         (textdomain): Remove definition.
46967         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46968
46969         * lib/long-options.c: Remove include of <libintl.h> and definition of
46970         _.
46971         * lib/same.c: Remove include of <libintl.h> and definition of _.
46972
46973 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46974
46975         * lib/config.charset: A few additions for Solaris.
46976
46977 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46978
46979         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46980         * lib/localcharset.c (locale_charset): Declare as extern "C".
46981
46982 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46983
46984         * lib/config.charset: msdos in uk_UA uses CP1125.
46985
46986 2002-11-04  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46989         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46990         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46991         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46992         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46993
46994 2002-11-04  Bruno Haible  <bruno@clisp.org>
46995
46996         * lib/localcharset.c (locale_charset): Don't return an empty string.
46997
46998 2002-11-04  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
47001         aliases.
47002
47003 2002-11-04  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/config.charset: Update for newest glibc. Add canonical names
47006         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
47007
47008 2002-11-04  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/config.charset: Add support for NetBSD.
47011
47012 2002-11-04  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
47015
47016 2002-11-01  Bruno Haible  <bruno@clisp.org>
47017
47018         * configure.in: Add AC_CONFIG_AUX_DIR call.
47019         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
47020         test/Makefile.
47021         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
47022
47023 2002-09-28  Karl Berry  <karl@gnu.org>
47024
47025         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
47026         installed automake until the next release, since changes have been
47027         made.
47028
47029 2002-09-25  Karl Berry  <karl@gnu.org>
47030
47031         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
47032         * lib/getopt*: copy from libc/posix.
47033         * lib/gettext.h: copy from gettext.
47034         * lib/.cppi-disable: add strdup.c, gettext.h.
47035
47036 2002-09-25  Karl Berry  <karl@gnu.org>
47037
47038         * config/srclist.txt: enable gettext.h check.
47039         * config/config.{guess,sub}: update from prep.
47040         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
47041                 from automake 1.6.3.
47042         See srclist*.
47043
47044 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
47045
47046         * regex.c (PATFETCH): Remove the translating fetch.
47047         (PATFETCH_RAW): Rename to PATFETCH.
47048         (set_image_of_range): New fun.
47049         (SET_RANGE_TABLE_WORK_AREA): Use it.
47050         (regex_compile): Don't translate the pattern chars so eagerly.
47051         Only do it when inserting an `exactn' bytecode or when handling
47052         a char-range.
47053         (mutually_exclusive_p): Avoid empty statement.
47054
47055 2002-07-06  Jim Meyering  <meyering@lucent.com>
47056
47057         * m4/README: Don't mention Makefile.am.in.
47058         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
47059
47060 2002-07-01  Jim Meyering  <meyering@lucent.com>
47061
47062         * lib/c-stack.c: Include sys/time.h.
47063         From Volker Borchert.
47064
47065 2002-06-26  Paul Eggert  <eggert@twinsun.com>
47066
47067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
47068
47069 2002-06-26  Paul Eggert  <eggert@twinsun.com>
47070
47071         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
47072         New macro.  Use it uniformly instead of
47073         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
47074         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
47075         reported by Vin Shelton.
47076
47077 2002-06-22  Paul Eggert  <eggert@twinsun.com>
47078
47079         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
47080         Do not assume SA_SIGINFO behavior.
47081         Bug reported by Jim Meyering on NetBSD 1.5.2.
47082
47083 2002-06-22  Jim Meyering  <meyering@lucent.com>
47084
47085         * m4/c-stack.m4: New file, from diffutils-2.8.2.
47086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
47087
47088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
47089         now that configure.ac uses AC_GNU_SOURCE.
47090         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
47091         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
47092
47093         Update to latest tools.  Suggestions from Paul Eggert.
47094         * m4/stdbool.m4: New file, from diffutils-2.8.2.
47095         * m4/gnu-source.m4: Update from diffutils-2.8.2.
47096         * m4/fnmatch.m4: Likewise.
47097         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
47098         to AC_HEADER_STDBOOL
47099
47100 2002-06-22  Jim Meyering  <meyering@lucent.com>
47101
47102         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
47103         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
47104
47105 2002-06-22  Jim Meyering  <meyering@lucent.com>
47106
47107         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
47108
47109         * lib/exitfail.c, exitfail.h: Likewise.
47110         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
47111
47112         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
47113         of fnmatch.h.
47114         (EXTRA_DIST): Add fnmatch_loop.c.
47115         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
47116
47117         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
47118         * lib/fnmatch.c: Update from diffutils-2.8.2.
47119         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
47120         * lib/fnmatch.h: Remove file.
47121
47122 2002-06-21  Jim Meyering  <meyering@lucent.com>
47123
47124         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
47125         * m4/mbrtowc.m4: Likewise.
47126
47127         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
47128         * m4/mbswidth.m4: Reflect name change:
47129         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
47130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47131
47132         * m4/lib-link.m4: Update from gettext-0.11.2.
47133         * m4/gettext.m4: Likewise.
47134
47135         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
47136         From Alfred M. Szmidt.
47137
47138 2002-06-18  Paul Eggert  <eggert@twinsun.com>
47139
47140         * lib/file-type.h: Report an error if neither S_ISREG nor
47141         S_IFREG is defined, instead of using a test specific to glibc
47142         2.2.  This should be safe, since POSIX requires S_ISREG and
47143         Unix Version 7 had S_IFREG.  We don't need to check for
47144         <sys/types.h> since we don't use any symbols that it defines.
47145
47146 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
47147
47148         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
47149         $@-t, so that each temporary file name is unique and valid in the first
47150         8 characters, for operation under DOS.
47151
47152 2002-06-15  Paul Eggert  <eggert@twinsun.com>
47153
47154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
47155
47156 2002-06-15  Jim Meyering  <meyering@lucent.com>
47157
47158         Work even with DJGPP 2.03, which lacks support for symlinks.
47159         From Richard Dawe.
47160         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
47161         is defined.
47162         * lib/lchown.c (S_ISLNK): Likewise.
47163
47164 2002-06-15  Jim Meyering  <meyering@lucent.com>
47165
47166         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
47167         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
47168         have been included before this file.
47169
47170 2002-06-14  Jim Meyering  <meyering@lucent.com>
47171
47172         * lib/file-type.h: Use the version from diffutils-2.8.2.
47173         * lib/file-type.c: Likewise.
47174
47175 2002-06-07  Jim Meyering  <meyering@lucent.com>
47176
47177         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
47178         They're needed at least for NetBSD 1.5.2.
47179         ($statxfs_includes): Include those same headers.
47180         ($statxfs_includes): Include sys/vfs.h if available.
47181         ($statxfs_includes): Likewise for sys/statvfs.h.
47182         Check for the following members in both structs statfs and statvfs:
47183         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
47184
47185 2002-06-01  Jim Meyering  <meyering@lucent.com>
47186
47187         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
47188         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
47189
47190 2002-05-28  Jim Meyering  <meyering@lucent.com>
47191
47192         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
47193         Reported by Volker Borchert.
47194
47195 2002-05-27  Jim Meyering  <meyering@lucent.com>
47196
47197         Fix a problem seen only on nonconforming systems whereby ls.c's
47198         use of localtime, and then of gettimeofday would cause trouble:
47199         the localtime call used to initialize rpl_gettimeofday's save
47200         mechanism would clobber ls's current local time information so
47201         that in any long listing the first file would always be listed
47202         with date 1970-01-01.  Analysis by Volker Borchert.
47203
47204         * lib/gettimeofday.c (localtime): Undefine.
47205         (rpl_localtime): New function.
47206
47207 2002-05-27  Jim Meyering  <meyering@lucent.com>
47208
47209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
47210         localtime.
47211
47212         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
47213         use the replacement function; it wouldn't resolve at link time.
47214         Reported by Volker Borchert.
47215
47216 2002-05-22  Jim Meyering  <meyering@lucent.com>
47217
47218         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
47219         file-type.h.
47220         * lib/file-type.h: New file.
47221         * lib/file-type.c (file_type): New file/function.  Extracted from
47222         diffutils.
47223
47224 2002-04-30  Jim Meyering  <meyering@lucent.com>
47225
47226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
47227
47228 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47229
47230         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
47231
47232 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47233
47234         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
47235         Do not check for alloca.h (no longer used) or stdbool.h (was never
47236         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
47237
47238 2002-04-29  Paul Eggert  <eggert@twinsun.com>
47239
47240         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
47241
47242 2002-04-29  Jim Meyering  <meyering@lucent.com>
47243
47244         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
47245         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
47246         Use AC_FUNC_STRNLEN here instead.
47247
47248         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
47249         With autoconf-2.53a, it's part of AC_PROG_CC.
47250
47251 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47252
47253         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
47254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
47255
47256 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47257
47258         * lib/sig2str.h, lib/sig2str.c: New files.
47259         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
47260
47261 2002-04-28  Paul Eggert  <eggert@twinsun.com>
47262
47263         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
47264         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
47265         of 127, since 64 is the largest conceivable number for ancient
47266         nonstandard hosts.
47267         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
47268
47269 2002-04-28  Jim Meyering  <meyering@lucent.com>
47270
47271         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
47272
47273 2002-04-24  Jim Meyering  <meyering@lucent.com>
47274
47275         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
47276         (jm_PREREQ): Use it.
47277
47278         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
47279         mach/mach.h fcntl.h.
47280         Check for this function: setlocale.
47281
47282 2002-04-24  Jim Meyering  <meyering@lucent.com>
47283
47284         * lib/gettext.h: New file, from Gettext.
47285         * lib/Makefile.am (INCLUDES): Remove -I../intl.
47286         (libfetish_a_SOURCES): Add gettext.h.
47287
47288 2002-04-16  Jim Meyering  <meyering@lucent.com>
47289
47290         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
47291         ut_pid, ut_id, ut_exit.
47292
47293 2002-04-16  Jim Meyering  <meyering@lucent.com>
47294
47295         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
47296         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
47297         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
47298
47299 2002-04-12  Jim Meyering  <meyering@lucent.com>
47300
47301         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
47302         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
47303         existence of the getmntinfo function.  Needed for Darwin 5.3.
47304
47305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
47306         This is necessary at least on Darwin 5.3.
47307
47308         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
47309         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
47310         strnlen.o in the library, and that makes some versions of ranlib
47311         object.
47312
47313 2002-04-12  Jim Meyering  <meyering@lucent.com>
47314
47315         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
47316
47317 2002-04-09  Jim Meyering  <meyering@lucent.com>
47318
47319         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
47320         to be more precise.  Rather than saying we're checking whether the
47321         function `works', say what we're testing.
47322         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
47323         Reported by Bruno Haible.
47324
47325 2002-03-10  Jim Meyering  <meyering@lucent.com>
47326
47327         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
47328         Suggestion from Santiago Vila.
47329
47330 2002-03-08  Jim Meyering  <meyering@lucent.com>
47331
47332         * lib/rename.c: Mention that this wrapper is needed also on
47333         mips-dec-ultrix4.4 systems.
47334
47335 2002-03-02  Jim Meyering  <meyering@lucent.com>
47336
47337         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
47338         not HAVE_CLOCK_SETTIME.
47339
47340 2002-02-27  Paul Eggert  <eggert@twinsun.com>
47341
47342         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
47343         Check for clock_settime.
47344
47345 2002-02-27  Paul Eggert  <eggert@twinsun.com>
47346
47347         * lib/nanosleep.h: Rename to....
47348         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
47349
47350         * lib/gettime.c: New file.
47351         * lib/settime.c: New file.
47352         * lib/stime.c: Remove.
47353
47354         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
47355         timespec.h.  Remove nanosleep.h.
47356
47357 2002-02-25  Paul Eggert  <eggert@twinsun.com>
47358
47359         * m4/acl.m4: New file.
47360         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
47361         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
47362
47363 2002-02-25  Paul Eggert  <eggert@twinsun.com>
47364
47365         * lib/acl.c, lib/acl.h: New files.
47366         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
47367
47368 2002-02-24  Jim Meyering  <meyering@lucent.com>
47369
47370         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
47371         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
47372         cause trouble.  Reported by Nelson Beebe.
47373
47374 2002-02-23  Paul Eggert  <eggert@twinsun.com>
47375
47376         * lib/path-concat.c (xpath_concat): Reorder code to pacify
47377         compilers that don't know that xalloc_die never returns.
47378
47379 2002-02-20  Jim Meyering  <meyering@lucent.com>
47380
47381         * lib/getdate.c: Regenerate using bison-1.33.
47382
47383 2002-02-17  Jim Meyering  <meyering@lucent.com>
47384
47385         * config/config.guess (main): Don't use `head -1'; it's no longer
47386         portable. Use `sed 1q' instead.
47387
47388 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
47389
47390         * m4/codeset.m4: Upgrade to gettext-0.11.
47391         * m4/gettext.m4: Upgrade to gettext-0.11.
47392         * m4/glibc21.m4: Upgrade to gettext-0.11.
47393         * m4/iconv.m4: Upgrade to gettext-0.11.
47394         * m4/isc-posix.m4: Upgrade to gettext-0.11.
47395         * m4/lcmessage.m4: Upgrade to gettext-0.11.
47396         * m4/lib-ld.m4: New file, from gettext-0.11.
47397         * m4/lib-link.m4: New file, from gettext-0.11.
47398         * m4/lib-prefix.m4: New file, from gettext-0.11.
47399         * m4/progtest.m4: Upgrade to gettext-0.11.
47400
47401 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47402
47403         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
47404         (jm_PREREQ): Use it.
47405
47406 2002-02-15  Paul Eggert  <eggert@twinsun.com>
47407
47408         * lib/posixver.c, lib/posixver.h: New files.
47409         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47410
47411 2002-02-02  Paul Eggert  <eggert@twinsun.com>
47412             Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
47415         (fwrite_success_callback): New declaration.
47416         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
47417         print_unicode_char. Call failure callback instead of error.
47418         (fwrite_success_callback): New function.
47419         (exit_failure_callback): New function.
47420         (fallback_failure_callback): New function.
47421         (print_unicode_char): Call unicode_to_mb.
47422
47423 2002-01-26  Jim Meyering  <meyering@lucent.com>
47424
47425         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
47426         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
47427
47428 2002-01-26  Jim Meyering  <meyering@lucent.com>
47429
47430         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
47431
47432 2002-01-22  Paul Eggert  <eggert@twinsun.com>
47433
47434         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
47435
47436 2002-01-22  Jim Meyering  <meyering@lucent.com>
47437
47438         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
47439         Otherwise, some versions of automake would omit the rule that makes
47440         Makefile from Makefile.in.
47441
47442 2002-01-21  Paul Eggert  <eggert@twinsun.com>
47443
47444         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
47445         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
47446         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
47447         (memcoll): Set errno to zero if there is no error.
47448
47449         * lib/quotearg.c (quotearg_buffer_restyled):
47450         Fix bug with quoting buffers containing NUL when backslashing escapes.
47451         This bug was exposed by the other changes in this patch.
47452         (quotearg_n_options): New arg ARGSIZE.
47453         All callers changed.
47454         (quoting_options_from_style): New function.
47455         (quotearg_n_style): Use it.
47456         (quotearg_n_style_mem): New function.
47457
47458         * lib/quotearg.h (quotearg_n_style_mem): New function.
47459
47460 2002-01-19  Jim Meyering  <meyering@lucent.com>
47461
47462         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
47463         Remove useless quotes: DF_PROG="df".
47464         * m4/strnlen.m4: New file.
47465
47466 2002-01-16  Paul Eggert  <eggert@twinsun.com>
47467
47468         * lib/backupfile.c (ISDIGIT): Comment fix.
47469         * lib/getdate.y (ISDIGIT): Likewise.
47470         * lib/posixtm.c (ISDIGIT, year): Likewise.
47471         * lib/strverscmp.c (ISDIGIT): Likewise.
47472         * lib/userspec.c (ISDIGIT): Likewise.
47473
47474 2002-01-16  Jim Meyering  <meyering@lucent.com>
47475
47476         * lib/getdate.y: Add three semicolons, each just before a closing
47477         brace. Bison (as of version 1.31) no longer papers over that mistake.
47478
47479 2002-01-05  Jim Meyering  <meyering@lucent.com>
47480
47481         * lib/version-etc.c (version_etc_copyright): Update copyright year.
47482
47483 2001-12-19  Paul Eggert  <eggert@twinsun.com>
47484
47485         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
47486         not silently exit merely because the output buffer happens to
47487         have nothing pending.
47488
47489 2001-12-18  Paul Eggert  <eggert@twinsun.com>
47490
47491         See the big note in ../ChangeLog.
47492         * lib/human.c (suffixes): Prefer K to k for 1024.
47493         (generate_suffix_backwards): New function.
47494         (human_readable_inexact): Use it.
47495         * lib/xstrtol.c (__xstrtol): If there is no number but there
47496         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
47497         Accept 'K' as well as 'k'.
47498
47499 2001-12-15  Jim Meyering  <meyering@lucent.com>
47500
47501         * lib/regex.h (__restrict_arr): Update from libc.
47502
47503         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
47504         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
47505         (STREQ): Define.
47506
47507 2001-12-14  Jim Meyering  <meyering@lucent.com>
47508
47509         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
47510         Suggestion from Bruno Haible.
47511
47512 2001-12-10  Jim Meyering  <meyering@lucent.com>
47513
47514         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
47515         xrealloc, Instead, include "xalloc.h".
47516         (initbuffer): Don't cast xmalloc return value to char*.
47517         (readline): Reword comment.
47518         Don't cast xrealloc return value to char*
47519         Return NULL, not 0.
47520
47521 2001-12-09  Jim Meyering  <meyering@lucent.com>
47522
47523         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
47524         about `signed and unsigned type in conditional expression'.
47525         * lib/posixtm.c (posix_time_parse): Likewise.
47526
47527         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
47528
47529         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
47530         to avoid a pedantic warning.
47531
47532         * lib/getstr.c: Don't include assert.h.
47533         (getstr): Remove warning-evoking assertions.
47534         Return -1 if offset parameter is out of bounds.
47535         Change the type of a local from int to size_t.
47536
47537         * lib/strftime.c (my_strftime_localtime_r): Include this function
47538         definition in the `#if ! HAVE_TM_GMTOFF' block.
47539
47540         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
47541         Include xalloc.h instead.
47542
47543 2001-12-02  Jim Meyering  <meyering@lucent.com>
47544
47545         * lib/tempname.c: Don't declare getenv, thus reverting the change of
47546         2001-11-18.  It's no longer necessary, now that stdlib.h is always
47547         included.
47548
47549         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
47550         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
47551
47552 2001-11-30  Akim Demaille  <akim@epita.fr>
47553
47554         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
47555         before being defined.
47556
47557 2001-11-27  Paul Eggert  <eggert@twinsun.com>
47558
47559         * lib/quotearg.h (quotearg_n, quotearg_n_style):
47560         First arg is int, not unsigned.
47561         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
47562         (SIZE_MAX, UINT_MAX): New macros.
47563         (quotearg_n_options): Abort if N is negative.
47564         Avoid overflow check on hosts where size_t is 64 bits and int
47565         is 32 bits, as overflow is impossible there.
47566         Fix off-by-one typo that caused unnecessary reallocation.
47567
47568 2001-11-27  Jim Meyering  <meyering@lucent.com>
47569
47570         * lib/tempname.c: Merge with version from libc.
47571         * lib/regex.c: Likewise.
47572
47573         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
47574         systems for which STDC_HEADERS is 0, it was not included, resulting in
47575         a warning about an integer-to-pointer conversion problem with getenv.
47576         Reported by Volker Borchert.
47577
47578 2001-11-26  Jim Meyering  <meyering@lucent.com>
47579
47580         * lib/gtod.h: Remove file.
47581         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
47582         * lib/gettimeofday.c: Don't include gtod.h.
47583         (GTOD_init): Remove function.
47584         (rpl_gettimeofday): Do its job here instead, rather than aborting.
47585         Suggestion from Volker Borchert.
47586
47587 2001-11-23  Jim Meyering  <meyering@lucent.com>
47588
47589         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
47590         it.
47591         * lib/hash.c (struct hash_table): Define it here instead.
47592
47593 2001-11-22  Jim Meyering  <meyering@lucent.com>
47594
47595         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
47596
47597 2001-11-20  Jim Meyering  <meyering@lucent.com>
47598
47599         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
47600         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
47601
47602 2001-11-19  Jim Meyering  <meyering@lucent.com>
47603
47604         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
47605         directory.  Use "conftestXXXXXX" as the template.
47606         Suggestion from Paul Eggert.
47607
47608         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
47609         immediately, so the test doesn't mistakenly hit the max-open-files
47610         limit.
47611
47612 2001-11-18  Paul Eggert  <eggert@twinsun.com>
47613
47614         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
47615         (TEMPORARIES): New macro.
47616         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
47617         removes an artificial limitation (e.g. HP-UX 10.20, where
47618         TMP_MAX is 17576).
47619
47620 2001-11-18  Jim Meyering  <meyering@lucent.com>
47621
47622         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
47623
47624 2001-11-18  Jim Meyering  <meyering@lucent.com>
47625
47626         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
47627         on SunOS 4.
47628
47629         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
47630         files will be created before anything else.
47631
47632 2001-11-17  Paul Eggert  <eggert@twinsun.com>
47633
47634         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
47635         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
47636
47637 2001-11-17  Jim Meyering  <meyering@lucent.com>
47638
47639         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
47640         Prompted by a report from Bob Proulx.
47641
47642         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
47643         Instead, require UTILS_FUNC_MKSTEMP.
47644
47645 2001-11-17  Jim Meyering  <meyering@lucent.com>
47646
47647         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
47648         Now, that's done as part of AC_FUNC_STRTOD.
47649
47650 2001-11-17  Jim Meyering  <meyering@lucent.com>
47651
47652         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
47653         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
47654         rather than group writable.  Patch by Juan F. Codagnone.
47655
47656         * lib/readtokens.c: Remove explicit declarations of xmalloc and
47657         xrealloc, Instead, include "xalloc.h".
47658
47659         * lib/mountlist.c: Include unlocked-io.h after all system headers.
47660         Remove explicit declarations of xmalloc, xrealloc,
47661         and xstrdup.  Instead, include "xalloc.h".
47662
47663         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
47664         unlocked-io.h.
47665         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
47666         Likewise.
47667         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
47668
47669         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
47670         Reported by Padraig Brady.
47671
47672         * lib/mkstemp.c: #undef mkstemp.
47673         Include config.h.
47674         (rpl_mkstemp): Rename from mkstemp.
47675         Protoize.
47676
47677 2001-11-16  Jim Meyering  <meyering@lucent.com>
47678
47679         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
47680         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
47681         determine the amount of total physical memory, use pstat_getstatic.
47682         HPUX-11 doesn't define _SC_PHYS_PAGES.
47683         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
47684         If sysconf couldn't be used to determine the amount of available
47685         physical memory, use both pstat_getstatic and pstat_getdynamic.
47686         Based on a patch from Bob Proulx.
47687
47688 2001-11-10  Jim Meyering  <meyering@lucent.com>
47689
47690         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
47691         (jm_PREREQ): Use it.
47692
47693 2001-11-09  Jim Meyering  <meyering@lucent.com>
47694
47695         * m4/jm-macros.m4: Require autoconf-2.52f.
47696         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
47697         Use these AC_-prefixed names, not the AM_-prefixed ones.
47698
47699         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
47700
47701 2001-11-05  Jim Meyering  <meyering@lucent.com>
47702
47703         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
47704
47705 2001-11-04  Jim Meyering  <meyering@lucent.com>
47706
47707         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
47708         $DEFS.
47709
47710 2001-11-03  Jim Meyering  <meyering@lucent.com>
47711
47712         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
47713         of AC_DEFUN.
47714
47715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
47716         know the name of the variable in the macro definition.
47717
47718 2001-11-03  Jim Meyering  <meyering@lucent.com>
47719
47720         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
47721         in argmatch_to_argument call.
47722
47723         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
47724         argument.
47725
47726         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
47727         e.g., a fault due to an attempt to free a NULL pointer.
47728
47729 2001-11-01  Jim Meyering  <meyering@lucent.com>
47730
47731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
47732         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
47733
47734 2001-11-01  Jim Meyering  <meyering@lucent.com>
47735
47736         * lib/dirfd.c, lib/dirfd.h: New files.
47737         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
47738
47739         * lib/hash.c (hash_print) [TESTING]: Clean up.
47740
47741 2001-10-22  Paul Eggert  <eggert@twinsun.com>
47742
47743         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
47744         to avoid a warning if -Wall.
47745
47746 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
47747
47748         * README: New file
47749         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
47750         (per RMS's instructions, this is now the canonical source)
47751         * lgpl/, gpl/: New directories.
47752
47753 2001-10-21  Paul Eggert  <eggert@twinsun.com>
47754
47755         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
47756
47757 2001-10-21  Jim Meyering  <meyering@lucent.com>
47758
47759         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
47760         this code would end up calling gettext even in packages built
47761         with --disable-nls.
47762         * lib/getopt.c (_): Likewise.
47763         * lib/regex.c (_): Likewise.
47764
47765 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47766
47767         * m4/error.m4 (jm_PREREQ_ERROR):
47768         Do not invoke AC_CHECK_FUNCS with strerror_r, as
47769         AC_FUNC_STRERROR_R does that.
47770         Check for strerror declaration.
47771
47772         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
47773         are supposed to have them these days.
47774         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
47775         Merge changes from latest Autoconf CVS.
47776         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
47777         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
47778         POSIX decided to standardize on the int flavor of strerror_r.
47779
47780 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47781
47782         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
47783         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
47784         Use strerror_r that is only a macro, even if it is not a function.
47785         (strerror): Check for HAVE_DECL_STRERROR before declaring.
47786         (private_strerror): Use prototypes, not old-style function definition.
47787         (print_errno_message): New function.
47788         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
47789         char*-flavored one.
47790         (error_tail, error, error_at_line): Use it.
47791
47792 2001-10-11  Jim Meyering  <meyering@lucent.com>
47793
47794         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
47795         and quote_n (1, ... to avoid clobbering a buffer.
47796
47797 2001-10-05  Jim Meyering  <meyering@lucent.com>
47798
47799         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
47800         hash-pjw.h.
47801         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
47802         * lib/hash-pjw.h: New file.
47803
47804 2001-09-30  Jim Meyering  <meyering@lucent.com>
47805
47806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
47807         `struct fsstat' has the `f_fstypename' member.
47808         Use that to define FS_TYPE, which is now used to make
47809         the getfsstat link test tighter.
47810
47811 2001-09-30  Jim Meyering  <meyering@lucent.com>
47812
47813         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
47814         Include <sys/ucred.h>, for Apple Darwin.
47815         Include sys/mount.h and sys/fs_types.h only if available.
47816         (FS_TYPE): Define.
47817         (read_filesystem_list): Use FS_TYPE.
47818
47819 2001-09-29  Paul Eggert  <eggert@twinsun.com>
47820
47821         * lib/exclude.c (excluded_filename): 0 -> false, since it's
47822         a boolean context.
47823
47824 2001-09-29  Jim Meyering  <meyering@lucent.com>
47825
47826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47827         [one-argument getmntent function]): Include stdio.h before mntent.h.
47828         SunOS 4.1.x needs it for the declaration of `FILE'.
47829         Patch by Volker Borchert.
47830
47831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47832         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
47833         sys/fs_types.h, and make the link-test for getfsstat guard #include
47834         directives with appropriate #if HAVE_*_H tests so that we can
47835         detect getfsstat on Apple Darwin1.3.7 systems.
47836         Reported by Nelson Beebe.
47837         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
47838
47839 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47840
47841         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47842         #defines strtoimax.  Also treat the other strto* functions
47843         like strtoimax.
47844
47845         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47846         Check for strtoul and strtoumax,
47847         as those declarations are made even in the signed case.
47848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
47849         Likewise, for strtol and strtoimax.
47850
47851 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47852
47853         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47854         #defines strtoimax.  Also treat the other strto* functions
47855         like strtoimax.
47856
47857         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
47858         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
47859         (strtoimax, strtoumax): Do not declare if already defined as a macro.
47860
47861 2001-09-26  Jim Meyering  <meyering@lucent.com>
47862
47863         Most macros in unlocked-io.h had the wrong number of arguments.
47864         * lib/gen-uio: New script.
47865         (USE_UNLOCKED_IO): Define to 1 if not already defined.
47866         * lib/unlocked-io.hin: Remove file.
47867         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
47868         rather than trying to embed it here.
47869         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
47870         Reported by Padraig Brady.
47871
47872 2001-09-25  Volker Borchert  <bt@teknon.de>
47873
47874         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
47875         `result'.
47876
47877 2001-09-24  Jim Meyering  <meyering@lucent.com>
47878
47879         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
47880
47881 2001-09-23  Jim Meyering  <meyering@lucent.com>
47882
47883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
47884         instead of the mere test for existence of mntent.h.  The latter
47885         would get a false-positive on AIX 3.4 systems.
47886         In the outer getmntent if-block, don't die if neither of the getmntent
47887         tests succeeds.  Instead, just fall through and continue with the
47888         remaining tests.
47889
47890 2001-09-23  Jim Meyering  <meyering@lucent.com>
47891
47892         * lib/mountlist.c: Remove useless parentheses in #if directives.
47893         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
47894         the deprecated MOUNTED symbol is no longer defined in mntent.h.
47895
47896 2001-09-22  Jim Meyering  <meyering@lucent.com>
47897
47898         * m4/gettext.m4: New file.  From gettext.
47899         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
47900         * m4/progtest.m4: Likewise
47901         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
47902         * m4/glibc21.m4: Likewise.
47903
47904         * m4/libintl.m4: Remove.  No longer used.
47905
47906 2001-09-22  Jim Meyering  <meyering@lucent.com>
47907
47908         * lib/localcharset.c: Update from latest gettext.
47909         * lib/config.charset: Likewise.
47910
47911 2001-09-20  Jim Meyering  <meyering@lucent.com>
47912
47913         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
47914         strtoimax.
47915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47916         strtoumax.
47917
47918 2001-09-20  Jim Meyering  <meyering@lucent.com>
47919
47920         * lib/xstrtol.c (strtoimax): Guard declaration with
47921         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47922         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47923         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47924         (strtoumax): Likewise, for completeness (it wasn't necessary).
47925
47926 2001-09-17  Paul Eggert  <eggert@twinsun.com>
47927
47928         * lib/strtoimax.c (HAVE_LONG_LONG):
47929         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47930         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47931         to work around bug in IBM C compiler.
47932
47933 2001-09-17  Jim Meyering  <meyering@lucent.com>
47934
47935         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47936         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47937         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47938         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47939         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47940         whenever the right hand side need not be expanded by the shell.
47941
47942 2001-09-16  Paul Eggert  <eggert@twinsun.com>
47943
47944         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47945         library.  It's not correct, as some older glibcs are buggy.
47946         fnmatch wasn't fixed until glibc 2.2.
47947
47948         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47949         special shell magic here.
47950
47951 2001-09-16  Jim Meyering  <meyering@lucent.com>
47952
47953         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47954         * m4/jm-macros.m4: Require it.
47955
47956 2001-09-16  Jim Meyering  <meyering@lucent.com>
47957
47958         * lib/mkdir.c: New file.
47959
47960 2001-09-15  Jim Meyering  <meyering@lucent.com>
47961
47962         * m4/jm-macros.m4: Check for help2man.
47963
47964 2001-09-11  Jim Meyering  <meyering@lucent.com>
47965
47966         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47967         The body, by Paul Eggert, was moved here from configure.in.
47968         * m4/jm-macros.m4: Require UTILS_HOST_OS.
47969
47970 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47971
47972         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47973         (jm_PREREQ): Use it.
47974
47975 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47976
47977         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47978         Use ssize_t, not int, to store result of readlink.
47979         Check for ssize_t overflow as well as size_t overflow,
47980         as POSIX says the result of readlink is implementation-defined
47981         when ssize_t overflows.
47982         Remove unnecessary cast to char*.
47983         Use free+malloc instead of realloc, as the storage doesn't need
47984         to be preserved and it's clearer and can be more efficient that way.
47985         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47986         * lib/xreadlink.h (xreadlink): Update prototype.
47987
47988 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47989
47990         * lib/xgetcwd.c: Revert some of the previous change; intead,
47991         fix the HAVE_GETCWD_NULL code to behave more like the
47992         !HAVE_GETCWD_NULL code used to.
47993
47994         Include "xalloc.h".
47995         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47996         invoke xalloc_die.
47997
47998 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47999
48000         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
48001         sys/param.h, as pathmax.h includes them.
48002
48003 2001-09-03  Paul Eggert  <eggert@twinsun.com>
48004
48005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
48006         (jm_PREREQ_XGETCWD): New macro.
48007
48008         * m4/getcwd.m4: New file.
48009
48010 2001-09-03  Paul Eggert  <eggert@twinsun.com>
48011
48012         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
48013         like the HAVE_GETCWD_NULL code.
48014         Include pathmax.h if not HAVE_GETCWD.
48015         Do not include xalloc.h.
48016         (INITIAL_BUFFER_SIZE): New symbol.
48017         Do not use xmalloc / xrealloc, since the caller is responsible for
48018         handling errors.  Preserve errno around `free' during failure.
48019         Do not overrun buffer when using getwd.
48020
48021 2001-09-03  Paul Eggert  <eggert@twinsun.com>
48022
48023         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
48024         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
48025         getcwd (NULL, 0).
48026
48027 2001-09-03  Paul Eggert  <eggert@twinsun.com>
48028
48029         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
48030         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
48031         spotted by Jim Meyering.
48032
48033 2001-09-03  Jim Meyering  <meyering@lucent.com>
48034
48035         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
48036         failure.
48037
48038 2001-09-02  Jim Meyering  <meyering@lucent.com>
48039
48040         * lib/error.c: Update from GNU libc.
48041
48042 2001-09-01  Jim Meyering  <meyering@lucent.com>
48043
48044         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
48045         Used by df.
48046
48047 2001-09-01  Jim Meyering  <meyering@lucent.com>
48048
48049         * lib/xreadlink.c: New file.
48050         * lib/xreadlink.h: New file.
48051         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
48052         xreadlink.h.
48053
48054         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
48055         doesn't conflict with sparc Solaris 7's definition in
48056         /usr/include/sys/int_types.h.
48057
48058         * lib/exclude.c: Use `""', not `<>' to #include non-system header
48059         files.
48060         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
48061         and strncasecmp as r-values.  Unixware didn't have declarations.
48062
48063 2001-08-31  Paul Eggert  <eggert@twinsun.com>
48064
48065         * lib/xstrtol.h: Add copyright notice.
48066         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
48067         LONGINT_INVALID_SUFFIX_CHAR.
48068
48069 2001-08-31  Paul Eggert  <eggert@twinsun.com>
48070
48071         * lib/xstrtol.c (strtoimax): New decl.
48072
48073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
48074
48075         * lib/xgetcwd.c: Don't include pathmax.h.
48076         Include stdlib.h and unistd.h if available.
48077         Include xalloc.h.
48078         (xmalloc, xstrdup, free): Remove decls.
48079         (xgetcwd): Don't assume sizes fit in unsigned.
48080         Check for overflow when computing sizes.
48081         Simplify reallocation code.
48082
48083 2001-08-31  Paul Eggert  <eggert@twinsun.com>
48084
48085         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
48086         a directory's st_size can have an arbitrary value, so the old
48087         usage could waste an arbitrary amount of memory.  All uses
48088         changed.
48089         * lib/savedir.h: Update prototype.
48090
48091 2001-08-31  Paul Eggert  <eggert@twinsun.com>
48092
48093         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
48094
48095         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
48096         old strtoimax.c.
48097
48098         Also, make the following further changes to make this file's
48099         configuration more similar to that of strtol.c:
48100         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
48101         (strtoumax, uintmax_t, strtoull, strtol): Remove.
48102         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
48103         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
48104         changed to signed values.
48105
48106         And make the following changes as well:
48107         Fix copyright notice, as 1999 was missing.
48108         (verify): New macro.
48109         (strtoimax): Check sizes at compile-time, not run-time.
48110         Prefer strtol to strtoll if both work.
48111         (main): Remove; it was not that useful and was a pain to maintain.
48112
48113         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
48114
48115 2001-08-31  Jim Meyering  <meyering@lucent.com>
48116
48117         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
48118         Use an initial, malloc'd, buffer of length 128 rather than
48119         a statically allocated one of length 1024.
48120
48121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48122
48123         Simplify code, partly by assuming autoconf 2.52 semantics.
48124
48125         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
48126
48127         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
48128         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
48129         All uses removed.
48130         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
48131         Move AC_REQUIRE to next-to-top level, to avoid confusion.
48132         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
48133         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
48134         jm_AC_HEADER_INTTYPES_H.
48135         * m4/jm-macros.m4 (jm_MACROS): Likewise.
48136
48137         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
48138
48139         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
48140         Quote first arg of AC_DEFUN.
48141         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
48142         since they are needed to parse the include file even if we need
48143         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
48144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
48145         but with opposite signedness.
48146
48147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48148
48149         Merge 'exclude' changes from tar 1.13.22.
48150         This fixes one or two unlikely storage allocation overflow bugs,
48151         but doesn't change user-visible behavior otherwise.
48152
48153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48154
48155         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
48156         (jm_PREREQ_EXCLUDE): New macro.
48157
48158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48159
48160         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
48161         tm to be declared.
48162
48163 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48164
48165         * lib/hash.c: Remove '2001' from copyright notice.
48166
48167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48168
48169         * lib/full-write.h: New file.
48170         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
48171         * lib/full-write.c: Correct credits, as cccp.c no longer
48172         exists and anyway it was so heavily changed from the old cccp
48173         code as to be unrecognizable.  Include full-write.h.
48174         (full_write) Return size_t, with short writes meaning failure.
48175         All callers changed.  This fixes a bug with large buffers
48176         on 64-bit hosts.
48177         * lib/utime.c: Include full-write.h.
48178
48179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48180
48181         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
48182         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
48183         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
48184         Include if available.
48185         (<xalloc.h>): Include
48186         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
48187         (verify): New macro.  Use it to verify that EXCLUDE macros do not
48188         collide with FNM macros.
48189         (struct patopts): New struct.
48190         (struct exclude): Use it, as exclude patterns now come with options.
48191         (new_exclude): Support above changes.
48192         (new_exclude, add_exclude_file):
48193         Initial size must now be a power of two to simplify overflow checking.
48194         (free_exclude, fnmatch_no_wildcards): New function.
48195         (excluded_filename): No longer requires options arg, as the options
48196         are determined by add_exclude.  Now returns bool, not int.
48197         (excluded_filename, add_exclude):
48198         Add support for the fancy new exclusion options.
48199         (add_exclude, add_exclude_file): Now takes int options arg.
48200         Check for arithmetic overflow when computing sizes.
48201         (add_exclude_file): xrealloc might modify errno, so don't
48202         realloc until after errno might be used.
48203
48204         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
48205         New macros.
48206         (free_exclude): New decl.
48207         (add_exclude, add_exclude_file): Now takes int options arg.
48208         (excluded_filename): No longer requires options arg, as the options
48209         are determined by add_exclude.  Now returns bool, not int.
48210
48211 2001-08-30  Paul Eggert  <eggert@twinsun.com>
48212
48213         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
48214
48215 2001-08-27  Jim Meyering  <meyering@lucent.com>
48216
48217         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
48218
48219         * lib/version-etc.c (N_): Remove definition.
48220         Revert most of last change.
48221         Instead, simply don't mark the `Copyright...' string for translation.
48222         Based on advice from Paul Eggert.
48223
48224         * lib/strtoxmax.c: Tweak comment.
48225
48226 2001-08-26  Jim Meyering  <meyering@lucent.com>
48227
48228         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
48229
48230         * m4/xstrtoimax.m4: New file.
48231         * m4/xstrtoumax.m4: Add comments explaining why we
48232         AC_REPLACE_FUNCS(strtol).
48233
48234 2001-08-26  Jim Meyering  <meyering@lucent.com>
48235
48236         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
48237         of copyright with `%s' so translators don't get an untranslated
48238         message in 2002.
48239         (COPYRIGHT_YEAR): Define.
48240         (version_etc): Use fprintf rather than fputs.
48241         Suggestion from Ulrich Drepper.
48242
48243         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
48244
48245         * lib/strtoll.c: New file, from GNU libc.
48246         * lib/xstrtoimax.c: New file.
48247
48248         * lib/xstrtol.h: Add xstrtoimax.
48249         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
48250         * lib/strtoimax.c: New file.  Likewise, but first define
48251         STRTOUXMAX_SIGNED.
48252
48253         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
48254         ...
48255         * lib/strtoxmax.c: ... then renamed to this.
48256
48257 2001-08-18  Paul Eggert  <eggert@twinsun.com>
48258
48259         * m4/inttypes.m4: Add AC_PREREQ(2.13).
48260         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
48261         (jm_AC_TYPE_INTMAX_T): New macro.
48262         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
48263
48264         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
48265
48266         * m4/longlong.m4: Renamed from ulonglong.m4.
48267         * m4/inttypes.m4: Renamed from inttypes_h.m4.
48268         * m4/uintmax_t.m4: Removed.
48269
48270 2001-08-13  Paul Eggert  <eggert@twinsun.com>
48271
48272         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
48273         Port to Solaris 8, where 'sed' requires a space after the 'r'
48274         command, and where sh dislikes "$/".  Clean up the spacing a bit.
48275         Redirect output to $tmp just once.
48276
48277 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
48278
48279         * lib/addext.c (<errno.h>): Include.
48280         (errno): Declare if not defined.
48281         (addext): Work correctly when pathconf returns -1 and leaves
48282         errno alone because there is no limit.  Also, work even if
48283         pathconf returns a value greater than SIZE_MAX.
48284
48285 2001-08-12  Jim Meyering  <meyering@lucent.com>
48286
48287         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
48288         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
48289         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
48290         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
48291         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
48292         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
48293         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
48294         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
48295         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
48296         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
48297         utime.m4, utimes.m4, xstrtoumax.m4:
48298         Quote the first argument in each use of AC_DEFUN.
48299
48300 2001-08-12  Jim Meyering  <meyering@lucent.com>
48301
48302         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
48303         Simply `return getcwd (NULL, 0);'.
48304         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
48305         Use 1300 as initial value for length, not PATH_MAX.
48306
48307         * lib/pathmax.h: Clean up cpp syntax.
48308
48309 2001-08-12  Jim Meyering  <meyering@lucent.com>
48310
48311         * lib/gettimeofday.c: New file.
48312         * lib/gtod.h: New file.
48313         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
48314
48315 2001-08-05  Jim Meyering  <meyering@lucent.com>
48316
48317         * m4/jm-macros.m4: Require autoconf-2.52.
48318
48319 2001-08-04  Jim Meyering  <meyering@lucent.com>
48320
48321         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
48322         stmt, to get in sync with glibc.
48323
48324 2001-08-03  Paul Eggert  <eggert@twinsun.com>
48325
48326         The following changes are from gettext 0.10.39 as maintained by
48327         Bruno Haible.
48328
48329         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
48330         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
48331         with inverted sense.  All uses changed.
48332
48333         * lib/mbswidth.c: Don't include <limits.h>.
48334         Include <stdlib.h> and <string.h> unconditionally.
48335         (iswcntrl, mbsinit, ISCNTRL): New macros.
48336         (mbsnwidth): Use K&R style function declarations.
48337         Don't bother checking for MB_LEN_MAX == 1, since the compiler
48338         can optimize it when MB_CUR_MAX == 1.
48339         The width of control characters is zero, not 1.
48340
48341 2001-08-03  Paul Eggert  <eggert@twinsun.com>
48342
48343         The following changes are from gettext 0.10.39 as maintained by
48344         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
48345
48346         * m4/codeset.m4: Upgrade to serial AM1.
48347         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
48348         all uses changed.  Quote first arg of AC_DEFUN.
48349         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
48350
48351         * m4/iconv.m4: Upgrade to serial AM2.
48352         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
48353         Add --with-libconv-prefix.
48354         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
48355         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
48356         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
48357         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
48358         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
48359
48360         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
48361         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
48362         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
48363         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
48364         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
48365         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
48366         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48367         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
48368         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
48369
48370         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
48371         string.h any more.
48372
48373         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
48374         not the default value.
48375
48376         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
48377         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
48378         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
48379         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
48380         Also check for iswcntrl, used for wcwidth fallback.
48381         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
48382         to Autoconf 2.13.
48383
48384 2001-08-03  Jim Meyering  <meyering@lucent.com>
48385
48386         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
48387         as it was in the original.  Reported by Paul Eggert.
48388
48389 2001-07-16  Jim Meyering  <meyering@lucent.com>
48390
48391         * m4/gettimeofday.m4: New file.
48392         Prompted by a report from Bernhard Baehr.
48393
48394 2001-07-15  Jim Meyering  <meyering@lucent.com>
48395
48396         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
48397         stuff. Now it's in ../Makefile.cfg.
48398
48399 2001-07-15  Jim Meyering  <meyering@lucent.com>
48400
48401         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
48402         (BUILT_SOURCES): Add unlocked-io.h.
48403         (io_functions): Define.
48404         (unlocked-io.h): New rule.
48405         (DISTCLEANFILES): Add unlocked-io.h.
48406         (all-local): Depend on unlocked-io.h, to ensure it is created.
48407
48408         * lib/unlocked-io.hin: New file
48409
48410         * lib/regex.c: Update from glibc.
48411
48412 2001-07-05  Jim Meyering  <meyering@lucent.com>
48413
48414         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
48415         recommendation.
48416         (libfetish_a_SOURCES): Put all .h files here instead.
48417         Remove a thus-exposed (better checks in automake) duplicate and
48418         two unnecessary .h files.
48419
48420 2001-07-04  Jim Meyering  <meyering@lucent.com>
48421
48422         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
48423         that generates jm-glibc-io.m4 so that it doesn't trigger any make
48424         distcheck failure.
48425
48426 2001-07-02  Jim Meyering  <meyering@lucent.com>
48427
48428         The following changes were prompted by suggestions from Bruno Haible.
48429
48430         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
48431         is now generated.
48432         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
48433         definition of EXTRA_DIST.
48434         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
48435         ensure that the generated file is created/updated whenever the list
48436         of $(unlocked_functions) is changed.
48437         (jm-glibc-io.m4): New rule.
48438         (unlocked-io.h): New rule -- currently unused.
48439
48440 2001-06-24  Jim Meyering  <meyering@lucent.com>
48441
48442         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
48443         unmatched right bracket, rather than kludging it with an extra,
48444         falsely-matching quote in a comment.  Patch by Akim Demaille.
48445
48446 2001-06-11  Jim Meyering  <meyering@lucent.com>
48447
48448         * lib/regex.c: Update from GNU libc.
48449
48450 2001-05-27  Jim Meyering  <meyering@lucent.com>
48451
48452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
48453         Check for ut_type in struct utmp.
48454
48455 2001-05-27  Jim Meyering  <meyering@lucent.com>
48456
48457         * lib/readutmp.h (UT_TYPE): Define.
48458
48459 2001-05-24  Jim Meyering  <meyering@lucent.com>
48460
48461         * lib/argmatch.c: Include "quote.h".
48462         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
48463         quote function.  Reported by Göran Uddeborg.
48464
48465 2001-05-22  Jim Meyering  <meyering@lucent.com>
48466
48467         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
48468         now that we use the package-supplied version unconditionally.
48469         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
48470
48471 2001-05-21  Jim Meyering  <meyering@lucent.com>
48472
48473         * m4/regex.m4: Change a couple backticks to single quotes to avoid
48474         shell syntax errors.
48475
48476 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48477
48478         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
48479
48480 2001-05-20  Paul Eggert  <eggert@twinsun.com>
48481
48482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
48483         Don't bother to check library strftime, since
48484         we'll be using our own my_strftime function anyway.
48485         Define my_strftime instead of strftime.
48486
48487 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
48488
48489         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
48490         which is not yet declared.
48491
48492 2001-05-15  Jim Meyering  <meyering@lucent.com>
48493
48494         * m4/regex.m4: Use proper quoting so brackets appear in the test
48495         program.
48496         Reported by, and with help from, Bruno Haible.
48497
48498 2001-05-13  Jim Meyering  <meyering@lucent.com>
48499
48500         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
48501         undefined.
48502
48503 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48504
48505         dirname code cleanup.  base_name now behaves more compatibly
48506         with POSIX basename when given file names that have trailing
48507         slashes, and similarly for dir_name.  Add new primitives
48508         base_len and dir_len.  Put the directory-name-related decls
48509         into dirname.h.
48510
48511         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
48512         * lib/backupfile.c (base_name): Likewise.
48513         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
48514         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
48515         * lib/makepath.c (strip_trailing_slashes): Likewise.
48516         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
48517         ISSLASH): Likewise.
48518         * lib/rename.c (strip_trailing_slashes): Likewise.
48519         * lib/same.c (base_name): Likewise.
48520         * lib/stripslash.c (ISSLASH): Likewise.
48521
48522         * lib/addext.c: Include <dirname.h> after size_t is defined.
48523         * lib/backupfile.c: Likewise.
48524
48525         * lib/addext.c (addext): Use base_len to trim redundant
48526         trailing slashes instead of doing it ourselves.
48527         But do not trim the last slash if it is not redundant.
48528
48529         * lib/backupfile.c (find_backup_file_name,
48530         max_backup_version): Use base_len instead of rolling it ourselves.
48531         Handle the case of "" and (on DOS) "C:" correctly.
48532
48533         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
48534         needed. Include <string.h>, <dirname.h>.
48535         (base_name): Allow file names ending in slashes, other than names
48536         that are all slashes.  In this case, return the basename followed
48537         by the slashes.  This is more general, and can be used in places
48538         where the original base_name purposely had an assertion failure.
48539         (base_len): New function.
48540
48541         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
48542         Do not include <assert.h>; no longer needed.
48543         Include xalloc.h.
48544         (memrchr): Remove decl.
48545         (dir_name_r): Remove.
48546         (dir_len): Renamed from dirlen.  All callers changed.
48547         Rewrite in terms of base_name, for simplicity and consistency.
48548         (dir_name): Never return NULL.  All callers changed.
48549         Do not include <stdlib.h> in test program; no longer needed.
48550         return 0; is fine for test program.
48551
48552         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
48553         New macros.
48554         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
48555
48556         * lib/path-concat.c (path_concat): Use base_len to compute
48557         base length, not strlen; this means we cannot rely on memcpy
48558         to null-terminate.
48559
48560         * lib/same.c (STREQ): Remove.
48561         (same_name): Handle the case where the basename ends in trailing '/'.
48562
48563         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
48564         a slash was stripped.  Do not strip the last slash after a
48565         file system prefix.
48566
48567 2001-05-11  Paul Eggert  <eggert@twinsun.com>
48568
48569         * lib/Makefile.am (libfetish_a_SOURCES):
48570         Add strftime.c, since we now compile it on all hosts.
48571
48572         * lib/strftime.c (my_strftime):
48573         Define to nstrftime if emacs, but only if my_strftime is not defined.
48574         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
48575         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
48576         Add one more extra argument: a nanoseconds value.
48577         All uses changed.
48578         (ns): New macro.
48579         (my_strftime function): Add %N format.
48580         (emacs_strftimeu): Renamed from emacs_strftime,
48581         with extra ut argument.
48582
48583 2001-05-09  Paul Eggert  <eggert@twinsun.com>
48584
48585         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
48586
48587 2001-04-21  Jim Meyering  <meyering@lucent.com>
48588
48589         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
48590         doesn't interfere.
48591
48592 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
48593
48594         * m4/ftruncate.m4: Check for chsize.
48595         Link with ftruncate.o unconditionally if ftruncate is missing.
48596         This was required when cross-compiling to i586-mingw32msvc.
48597
48598 2001-04-08  Jim Meyering  <meyering@lucent.com>
48599
48600         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
48601         recomputed; that's necessary when the offset spans a DST transition.
48602         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
48603
48604 2001-04-02  Jim Meyering  <meyering@lucent.com>
48605
48606         * lib/regex.h, regex.c: Update from GNU libc.
48607
48608 2001-03-24  Jim Meyering  <meyering@lucent.com>
48609
48610         * m4/jm-macros.m4: Require autoconf-2.49d.
48611
48612 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
48613
48614         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
48615
48616 2001-03-19  Paul Eggert  <eggert@twinsun.com>
48617
48618         * lib/version-etc.c (version_etc_copyright): Update to 2001.
48619
48620 2001-03-17  Jim Meyering  <meyering@lucent.com>
48621
48622         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
48623         now that the version in autoconf is equivalent.
48624         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
48625
48626         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
48627         Suggestion from Akim Demaille.
48628
48629         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
48630         (jm_PREREQ_TEMPNAME): New function.
48631
48632 2001-03-16  Paul Eggert  <eggert@twinsun.com>
48633
48634         * lib/tempname.c (uint64_t): Define to uintmax_t if
48635         not defined, and if UINT64_MAX is not defined.
48636         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
48637         Reported by John David Anglin.
48638
48639 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
48640
48641         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
48642         resolve alias if codeset is empty.
48643         * lib/config.charset (BeOS): Use wildcard syntax.
48644
48645 2001-03-13  Jim Meyering  <meyering@lucent.com>
48646
48647         * lib/path-concat.c (path_concat)
48648         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
48649         concatenating e.g., `C:' and `foo'.
48650         From Bruno Haible.
48651
48652 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48653
48654         * lib/localcharset.c (locale_charset): Don't use
48655         setlocale(LC_CTYPE,NULL). Don't return NULL.
48656         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
48657
48658 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48659
48660         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
48661         support for DOS/DJGPP.
48662
48663 2001-03-01  Paul Eggert  <eggert@twinsun.com>
48664
48665         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
48666         lacks mkstemp.  Compile our own tempname.c if we compile our own
48667         mkstemp.c, as mkstemp relies on tempname.
48668
48669 2001-03-01  Jim Meyering  <meyering@lucent.com>
48670
48671         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
48672         AH_VERBATIM really does output its argument verbatim.
48673
48674 2001-02-28  Paul Eggert  <eggert@twinsun.com>
48675
48676         * lib/Makefile.am (libfetish_a_SOURCES):
48677         Add dup-safer.c, fopen-safer.c.
48678         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
48679
48680         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
48681         * lib/unistd-safer.h: New files.
48682
48683 2001-02-25  Paul Eggert  <eggert@twinsun.com>
48684
48685         The mkstemp replacement is taken from glibc 2.2.2, with some
48686         portability fixes for use outside glibc, as follows:
48687
48688         * lib/tempname.c (struct_stat64): New macro.
48689         (direxists, __gen_tempname): Use it.
48690         This avoids a portability problem with Solaris 8.
48691
48692         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
48693         (<stddef.h>, <stdint.h>, <string.h>):
48694         Include only if STDC_HEADERS || _LIBC.
48695         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
48696         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
48697         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
48698         (__set_errno): Define this macro if <errno.h> doesn't.
48699         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
48700         Define these macros if <stdio.h> doesn't.
48701         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
48702         Define these macros if <sys/stat.h>
48703         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
48704         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
48705         __xstat64): Define if not _LIBC.
48706         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
48707         (__gen_tempname): Invoke gettimeofday only if
48708         HAVE_GETTIMEOFDAY || _LIBC;
48709         otherwise, fall back on plain "time".
48710         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
48711
48712         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
48713
48714         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
48715
48716 2001-02-18  Paul Eggert  <eggert@twinsun.com>
48717
48718         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
48719
48720 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48721
48722         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
48723         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
48724         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
48725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48726
48727 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48728
48729         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
48730         Remove workaround macros for hosts that have mbrtowc but not
48731         mbstate_t, as we now insist on proper declarations for both
48732         before using mbrtowc.
48733
48734 2001-02-17  Jim Meyering  <meyering@lucent.com>
48735
48736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
48737         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
48738         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
48739         UnixWare 7.1.1.
48740
48741         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
48742         rather than AC_CACHE_VAL.
48743
48744 2001-02-17  Jim Meyering  <meyering@lucent.com>
48745
48746         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
48747         around included file name.
48748
48749         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
48750
48751         * lib/strftime.c: Update from GNU libc (the only changes were to
48752         comments).
48753
48754 2001-02-17  Jim Meyering  <meyering@lucent.com>
48755
48756         * lib/regex.c: Update from libc.
48757
48758 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
48759
48760         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
48761         clash.
48762
48763 2001-02-16  Paul Eggert  <eggert@twinsun.com>
48764
48765         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
48766         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
48767         Reported by Mark Hounschell via Paul Eggert.
48768
48769 2001-02-07  Jim Meyering  <meyering@lucent.com>
48770
48771         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
48772
48773 2001-02-05  Jim Meyering  <meyering@lucent.com>
48774
48775         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
48776         it includes the patch required for `large file' support with at least
48777         HP-UX's 10.20 /bin/cc.
48778
48779 2001-02-03  Jim Meyering  <meyering@lucent.com>
48780
48781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
48782         AS_IF, now that it works once again (mysteriously).
48783         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48784
48785 2001-01-30  Jim Meyering  <meyering@lucent.com>
48786
48787         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
48788         * m4/chown.m4: Rename conftestchown to conftest.chown.
48789         * m4/rename.m4: s/conftestdir/conftest.d1/ and
48790         s/conftestdir2/conftest.d2/.
48791         * m4/utimes.m4: s/conftestdata/conftest.data/
48792         Inspired by Pavel Roskin's change in autoconf.
48793
48794 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
48795
48796         * lib/config.charset: Update for FreeBSD 4.2.
48797
48798 2001-01-27  Jim Meyering  <meyering@lucent.com>
48799
48800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
48801         a use of AS_IF.
48802         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48803
48804 2001-01-26  Jim Meyering  <meyering@lucent.com>
48805
48806         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
48807         quotearg.c includes it.
48808
48809 2001-01-26  Jim Meyering  <meyering@lucent.com>
48810
48811         * lib/quotearg.c: Include stddef.h.
48812         * lib/quote.c: Include stddef.h.
48813         Reported by Axel Kittenberger.
48814
48815         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
48816         line in double quotes so that it evokes a better diagnostic.
48817         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
48818         Reported by Axel Kittenberger.
48819
48820 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
48821
48822         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
48823         as if it was a `charset'.
48824
48825 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48826
48827         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
48828         has const.
48829
48830 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48831
48832         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
48833         to avoid a warning.  Add back 'const' to inptr.
48834
48835 2001-01-20  Jim Meyering  <meyering@lucent.com>
48836
48837         Be sure that headers are checked before used in code compiled
48838         for the type checks.
48839         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
48840         In place of that, invoke jm_CHECK_ALL_TYPES.
48841         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
48842         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
48843         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
48844         The check for ssize_t was mistakenly run before the test for unistd.h.
48845
48846         The configure-time check for stdbool.h was missing.
48847         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
48848         (jm_PREREQ_HASH): New function.
48849
48850 2001-01-17  Jim Meyering  <meyering@lucent.com>
48851
48852         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
48853         for autoconf-2.49c.
48854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
48855
48856 2001-01-16  Jim Meyering  <meyering@lucent.com>
48857
48858         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
48859         From Bruno Haible.
48860
48861 2001-01-14  Jim Meyering  <meyering@lucent.com>
48862
48863         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
48864         foo and bar.  Create conftestdir/ in the script, not in the C code.
48865         Remove directories in the script, not in the C code.
48866         Remove conftestdir{,2} before trying to create the directory.
48867         Make the entire configure script fail if the mkdir fails.
48868
48869 2001-01-14  Jim Meyering  <meyering@lucent.com>
48870
48871         * lib/rename.c: New file.  From Volker Borchert.
48872         Include stdlib.h, string.h or strings.h, and xalloc.h.
48873         Use strip_trailing_slashes rather than open-coding it.
48874
48875 2001-01-03  Paul Eggert  <eggert@twinsun.com>
48876
48877         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
48878
48879 2001-01-03  Jim Meyering  <meyering@lucent.com>
48880
48881         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
48882         of local `inptr' to avoid warning with some system declarations of
48883         iconv.
48884
48885 2001-01-02  Volker Borchert  <bt@teknon.de>
48886
48887         * m4/rename.m4: New file.
48888         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
48889
48890 2001-01-01  Jim Meyering  <meyering@lucent.com>
48891
48892         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
48893         even on systems with utmpx.h.  It's necessary for the declaration of
48894         utmp's ut_user member.  Reported by Andreas Jaeger.
48895
48896         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
48897         available. They are required for the declarations of getgrgid and
48898         getpwuid resp.
48899         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
48900         Reported by Andreas Jaeger.
48901
48902 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
48903
48904         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
48905         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
48906         so `make install' also works in VPATH builds.
48907
48908 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
48909
48910         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
48911         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
48912         can be used in subdirectories.
48913
48914 2000-12-29  Paul Eggert  <eggert@twinsun.com>
48915
48916         * lib/modechange.c: Do not assume that mode_t uses the
48917         traditional octal encoding.  E.g. "chmod 1 FOO" should set
48918         the other-execute bit of FOO even if S_IXOTH != 1.
48919
48920         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48921         WOTH, XOTH, ALLM): New macros.
48922         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48923          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48924         Use them.
48925         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48926         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48927         (mode_compile):
48928         No need to use uintmax_t; unsigned long is long enough.
48929         Don't bother to get suffix since we don't use it.
48930
48931 2000-12-26  Jim Meyering  <meyering@lucent.com>
48932
48933         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48934         better with autoheader.
48935
48936 2000-12-24  Jim Meyering  <meyering@lucent.com>
48937
48938         * lib/hash.c (is_prime): Return explicit boolean values.
48939         (hash_get_first): Return NULL to appease Irix5.6's 89.
48940         Reported by Nelson Beebe.
48941
48942 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
48943
48944         * lib/localcharset.c (locale_charset): Add support for Win32.
48945
48946 2000-12-18  Paul Eggert  <eggert@twinsun.com>
48947
48948         * lib/physmem.h, lib/physmem.c: New files.
48949
48950         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48951         (noinst_HEADERS): Add physmem.h.
48952
48953         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48954         't' for compatibility with Solaris 8 sort.
48955
48956 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
48957
48958         * lib/config.charset: Add support for BeOS.
48959
48960 2000-12-17  Jim Meyering  <meyering@lucent.com>
48961
48962         * m4/dos.m4 (jm_AC_DOS): New file and macro.
48963         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48964
48965 2000-12-16  Jim Meyering  <meyering@lucent.com>
48966
48967         This bug had a serious impact on chown: `chown N:M FILE' (for integer
48968         N and M) would have treated it like `chown N:N FILE'.
48969
48970         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48971
48972 2000-12-16  Jim Meyering  <meyering@lucent.com>
48973
48974         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48975         SHELLS_FILE to a file name that's useful on djgpp systems.
48976         Include stdlib.h.
48977         (ADDITIONAL_DEFAULT_SHELLS): Define.
48978         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48979         Based mostly on a patch from Prashant TR.
48980
48981 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48982
48983         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48984         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48985         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48986
48987 2000-12-08  Andreas Schwab  <schwab@suse.de>
48988
48989         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48990         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48991
48992 2000-12-07  Jim Meyering  <meyering@lucent.com>
48993
48994         * lib/stripslash.c (ISSLASH): Define.
48995         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48996         `/'.
48997         From Prashant TR.
48998
48999         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
49000         (dir_name_r): Declare this function as static.
49001         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
49002         manifest itself on a name containing a mix of slashes and
49003         backslashes.
49004         Make this function work with names starting with a DOS-style
49005         drive letter and colon prefix.
49006         (dir_name): Append `.' if necessary.
49007         Based mostly on patches from Prashant TR and Eli Zaretskii.
49008
49009         * lib/dirname.h (dir_name_r): Remove prototype.
49010
49011 2000-12-06  Paul Eggert  <eggert@twinsun.com>
49012
49013         * m4/off_t-format.m4: Remove this file.
49014         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
49015
49016 2000-12-06  Jim Meyering  <meyering@lucent.com>
49017
49018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
49019         replacement strtoull, we may well need the replacement strtoul, too.
49020         Check for declarations of strtoul and strtoull.
49021         Check for strtol.  Mainly as a cue to cause automake to include
49022         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
49023         Check for limits.h -- strtol.c needs it.
49024
49025 2000-12-05  Jim Meyering  <meyering@lucent.com>
49026
49027         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
49028
49029 2000-12-04  Jim Meyering  <meyering@lucent.com>
49030
49031         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
49032         Also include memory.h, stdlib.h, unistd.h if appropriate.
49033         Reported by Andreas Jaeger (conflicting declaration of malloc).
49034
49035 2000-12-02  Jim Meyering  <meyering@lucent.com>
49036
49037         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
49038         * m4/jm-macros.m4 (jm_MACROS): require it.
49039
49040 2000-12-02  Jim Meyering  <meyering@lucent.com>
49041
49042         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
49043
49044 2000-12-01  Paul Eggert  <eggert@twinsun.com>
49045
49046         * lib/memrchr.c: Include <config.h> before any system include file.
49047
49048 2000-11-30  Jim Meyering  <meyering@lucent.com>
49049
49050         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
49051
49052 2000-11-30  Jim Meyering  <meyering@lucent.com>
49053
49054         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
49055
49056 2000-11-29  Paul Eggert  <eggert@twinsun.com>
49057
49058         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
49059
49060 2000-11-26  Jim Meyering  <meyering@lucent.com>
49061
49062         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
49063
49064 2000-11-22  Paul Eggert  <eggert@twinsun.com>
49065
49066         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
49067         size of (size_t) -1; it's not portable.
49068
49069 2000-11-17  Jim Meyering  <meyering@lucent.com>
49070
49071         * lib/strstr.c: Update from GNU libc.
49072
49073 2000-11-17  Akim Demaille  <akim@epita.fr>
49074
49075         * lib/obstack.h: Formatting changes.
49076         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
49077         prevent type checking.
49078         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
49079         cast the value to (void *): assigning a `foo *' to a `void *'
49080         variable is valid.
49081         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
49082
49083 2000-11-16  Jim Meyering  <meyering@lucent.com>
49084
49085         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
49086
49087 2000-11-11  Jim Meyering  <meyering@lucent.com>
49088
49089         * lib/error.c: Add a couple #includes, merging from GNU libc version.
49090
49091 2000-11-10  Jim Meyering  <meyering@lucent.com>
49092
49093         * lib/obstack.h: Update from GNU libc.
49094         * lib/obstack.c: Likewise.
49095
49096 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
49097
49098         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
49099
49100 2000-11-06  Paul Eggert  <eggert@twinsun.com>
49101
49102         * lib/getusershell.c (setusershell): Use rewind rather than
49103         fseek/fseeko, to avoid configuration hassles with fseeko.
49104         Don't bother opening SHELLS_FILE if shellstream is NULL;
49105         it's not necessary.
49106
49107 2000-11-05  Jim Meyering  <meyering@lucent.com>
49108
49109         * lib/makepath.h (make_dir): Declare.
49110         * lib/makepath.c (make_dir): Remove `static' attribute.
49111         Tweak a comment.
49112
49113 2000-11-04  Jim Meyering  <meyering@lucent.com>
49114
49115         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
49116
49117 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
49118
49119         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
49120         last one in a bucket, advance to the next bucket.
49121
49122 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
49123
49124         * lib/fnmatch.c: Do not comment out all the code if we are using
49125         the GNU C library, because in some cases we are replacing buggy
49126         code in the GNU C library itself.
49127
49128 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
49129
49130         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
49131         (regex_compile): Catch bogus \(\1\).
49132
49133 2000-10-30  Paul Eggert  <eggert@twinsun.com>
49134
49135         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
49136         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
49137         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
49138
49139 2000-10-30  Paul Eggert  <eggert@twinsun.com>
49140
49141         * lib/error.h, getline.h, modechange.h:
49142         Remove "2000" from Copyright line, as the file hasn't been
49143         changed this year other than in the copyright notice.
49144
49145         * lib/xalloc.h: Add "2000" to Copyright line, as this file
49146         was changed this year.
49147
49148 2000-10-29  Jim Meyering  <meyering@lucent.com>
49149
49150         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
49151         renaming.
49152         * m4/ls-mntd-fs.m4: Likewise
49153
49154 2000-10-29  Jim Meyering  <meyering@lucent.com>
49155
49156         * lib/xstat.in: Fix grammar in comment.
49157
49158 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
49159
49160         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
49161         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
49162         doesn't define __restrict_arr.
49163
49164 2000-10-28  Jim Meyering  <meyering@lucent.com>
49165
49166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
49167         (jm_PREREQ_MEMCHR): New function.
49168
49169 2000-10-28  Jim Meyering  <meyering@lucent.com>
49170
49171         * lib/memchr.c: Update from libc.
49172         Adjust for portability:
49173         [HAVE_STDLIB_H]: Include stdlib.h.
49174         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
49175         Undef __memchr, too.
49176         [!weak_alias]: Define __memchr to memchr.
49177
49178         * lib/regex.c: Update from libc.
49179         * lib/regex.h: Likewise.
49180         * lib/getopt1.c: Likewise.
49181         * lib/memcmp.c: Likewise.
49182
49183         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
49184         Avoid using fseek, when possible -- it's broken by design.
49185         Patch by Ulrich Drepper.
49186
49187 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
49188
49189         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
49190         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
49191         Giving in to popular pressure to shut up the compiler with casts.
49192
49193 2000-10-26  Jim Meyering  <meyering@lucent.com>
49194
49195         * lib/strftime.c: Update from libc.
49196
49197 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
49198
49199         * regex.c: More `unsigned char' -> `re_char' changes.
49200         Also change several `int' into `re_wchar_t'.
49201         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
49202         (PUSH_FAILURE_POINTER): Don't cast any more.
49203         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
49204         We want GCC to complain, since this piece of code makes
49205         re_match non-reentrant, which *should* be fixed.
49206         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
49207         (EXTEND_BUFFER): Use RETALLOC.
49208         (SET_LIST_BIT): Don't cast.
49209         (re_wchar_t): New type.
49210         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
49211         that those two functions will always properly return.
49212         (IMMEDIATE_QUIT_CHECK): Cast to void.
49213         (analyse_first): Use recursion rather than an explicit stack.
49214         (re_compile_fastmap): Can't fail anymore.
49215         (re_search_2): Don't check re_compile_fastmap for failure.
49216         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
49217         Now also sets the new value (passed in a new argument).
49218         (re_match_2_internal): Use it.
49219         Also, use a new var `reg' of type size_t when looping through regs
49220         rather than reuse the inappropriate `mcnt'.
49221
49222 2000-10-25  Jim Meyering  <meyering@lucent.com>
49223
49224         * lib/obstack.c: Update from libc.
49225
49226 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
49227
49228         * regex.c (regex_compile): Change the way of handling a range from
49229         a char less than 256 to a char not less than 256.
49230
49231 2000-10-24  Andrew Innes  <andrewi@gnu.org>
49232
49233         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
49234         NT-Emacs only.
49235         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
49236         so that re_search functions only quit when callers expect them to.
49237
49238 2000-10-23  Jim Meyering  <meyering@lucent.com>
49239
49240         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
49241         wrong.  That set_locale call must not have any side effects.
49242         From Paul Eggert.
49243
49244 2000-10-22  Jim Meyering  <meyering@lucent.com>
49245
49246         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
49247         [CYCLIC]: Remove now-unused definition.
49248
49249         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
49250         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
49251         Suggestion from Ulrich Drepper.
49252
49253 2000-10-21  Jim Meyering  <meyering@lucent.com>
49254
49255         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
49256         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
49257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
49258
49259 2000-10-21  Jim Meyering  <meyering@lucent.com>
49260
49261         * lib/dirname.c (memrchr): Declare if necessary.
49262         (dir_name): Remove the restriction that there be no
49263         trailing slashes.  Now, this code skips past them, effectively
49264         ignoring them.
49265         [TEST_DIRNAME] (main): New unit tests.
49266
49267         * lib/memrchr.c: New file from GNU libc.
49268         Undef __memrchr, too.
49269         [!weak_alias]: Define __memrchr to memrchr.
49270         Guard weak_alias use with `#ifdef weak_alias'.
49271
49272 2000-10-21  Jim Meyering  <meyering@lucent.com>
49273
49274         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
49275         (dir_name): Use dir_name_r.
49276         * lib/dirname.h (dir_name_r): Declare it.
49277
49278 2000-10-17  Jim Meyering  <meyering@lucent.com>
49279
49280         * lib/quote.h (PARAMS): Define and use.
49281         Reported by Akim Demaille.
49282
49283         * lib/getopt.c: Update from libc.
49284
49285 2000-10-16  Jim Meyering  <meyering@lucent.com>
49286
49287         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
49288         setlocale.
49289         From Jan Fedak.
49290
49291 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
49292
49293         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
49294
49295 2000-09-25  Jim Meyering  <meyering@lucent.com>
49296
49297         * lib/md5.h (rol): Define (from GnuPG).
49298
49299         * lib/sha.c: Give credit (GnuPG) where due.
49300         (M): Use rol rather than open-coding it.
49301         Add a FIXME comment.
49302
49303 2000-09-21  Jim Meyering  <meyering@lucent.com>
49304
49305         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
49306         Reported by Michael Stone.
49307
49308 2000-09-20  Jim Meyering  <meyering@lucent.com>
49309
49310         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
49311         (noinst_HEADERS): Add sha.h.
49312         Based on code from Scott G. Miller and from GnuPG.
49313
49314 2000-09-18  Jim Meyering  <meyering@lucent.com>
49315
49316         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
49317         LIBS. Otherwise, everyone ends up linking with -lelf for some
49318         configurations.
49319         Reported by Mike Stone.
49320
49321 2000-09-15  Jim Meyering  <meyering@lucent.com>
49322
49323         * lib/regex.c: Update from libc.
49324
49325 2000-09-10  Jim Meyering  <meyering@lucent.com>
49326
49327         * lib/getopt.c (_getopt_internal): Update from glibc.
49328
49329 2000-09-09  Jim Meyering  <meyering@lucent.com>
49330
49331         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
49332         think it should be used as a general replacement for isascii.
49333         * lib/fnmatch.c: Likewise.
49334         * lib/mbswidth.c: Likewise
49335         * lib/regex.c: Likewise.
49336
49337         Don't use atoi.
49338         * lib/userspec.c: Include sys/param.h and limits.h.
49339         Include xstrtol.h.
49340         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49341         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
49342         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
49343         UID, GID.  Check range.
49344
49345 2000-09-06  Jim Meyering  <meyering@lucent.com>
49346
49347         * lib/getopt.c (_getopt_internal): Update from glibc.
49348
49349 2000-08-30  Jim Meyering  <meyering@lucent.com>
49350
49351         * lib/strftime.c: Merge in changes from GNU libc.
49352
49353 2000-08-26  Jim Meyering  <meyering@lucent.com>
49354
49355         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
49356         * m4/fpending.m4: New file.
49357
49358 2000-08-26  Jim Meyering  <meyering@lucent.com>
49359
49360         * lib/closeout.c: Include "__fpending.h".
49361         (close_stdout_status): Return right away if there's nothing to flush.
49362
49363         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
49364         * lib/__fpending.c: New file.
49365         * lib/__fpending.h: New file.
49366
49367 2000-08-20  Jim Meyering  <meyering@lucent.com>
49368
49369         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
49370         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
49371         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
49372
49373 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
49374
49375         Improve fileutils installation on systems where running
49376         programs (like install) can't be unlinked.
49377         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
49378         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
49379
49380 2000-08-07  Paul Eggert  <eggert@twinsun.com>
49381
49382         Standardize on "memory exhausted" instead of "Memory exhausted"
49383         or "virtual memory exhausted".
49384         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
49385         "virtual memory exhausted".
49386         * lib/same.c (same_name): Invoke xalloc_die instead of printing
49387         our own message.
49388         * lib/userspec.c (parse_user_spec): Likewise.
49389         * lib/bumpalloc.h: comment fix
49390         * lib/same.c, userspec.c: Include xalloc.h.
49391
49392         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
49393         not char *const and pointing to a constant array.
49394         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
49395         (xrealloc): Comment fix.
49396
49397         * lib/userspec.c (parse_user_spec):
49398         Don't translate a message until just before returning,
49399         to avoid unnecessary translation.
49400
49401 2000-08-07  Jim Meyering  <meyering@lucent.com>
49402
49403         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
49404         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
49405         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
49406         getgroups.c, gethostname.c, getopt.h, group-member.c,
49407         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
49408         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
49409         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
49410         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
49411         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
49412         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
49413         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
49414         yesno.c: Back out Copyright date changes for each file with no change
49415         this year.  This eases coordination with other programs using the same
49416         source code modules.  From Paul Eggert.
49417
49418 2000-08-06  Paul Eggert  <eggert@twinsun.com>
49419
49420         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
49421         not char, for compatibility with glibc 2.1.3 strftime.c.
49422
49423 2000-08-03  Greg McGary  <greg@mcgary.org>
49424
49425         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
49426         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
49427         (EXTEND_BUFFER): Use them.
49428
49429 2000-08-01  Jim Meyering  <meyering@lucent.com>
49430
49431         * lib/dirname.c (ISSLASH): Define.
49432         (BACKSLASH_IS_PATH_SEPARATOR): Define.
49433         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
49434         both `\' and `/' may be use as path separators.
49435         Based on a patch from Prashant TR.
49436
49437 2000-07-31  Paul Eggert  <eggert@twinsun.com>
49438
49439         * lib/quotearg.c (quotearg_n_options): Don't make the initial
49440         slot vector a constant, since it might get modified.
49441
49442 2000-07-31  Jim Meyering  <meyering@lucent.com>
49443
49444         * lib/xmalloc.c: Use `virtual memory exhausted', not
49445         `Memory exhausted'.
49446         * lib/obstack.c (print_and_abort): Likewise.
49447
49448 2000-07-30  Paul Eggert  <eggert@twinsun.com>
49449
49450         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
49451         buffer, so that the caller can always quote one small
49452         component of a "memory exhausted" message in slot 0.
49453         From a suggestion by Jim Meyering.
49454
49455 2000-07-30  Jim Meyering  <meyering@lucent.com>
49456
49457         * lib/makepath.c (make_path): Quote the other instance, too.
49458
49459         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
49460         (STATIC_BUF_SIZE): Define.
49461         (quotearg_n_options): Use only statically allocated storage when
49462         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
49463         than STATIC_BUF_SIZE.
49464
49465 2000-07-29  Jim Meyering  <meyering@lucent.com>
49466
49467         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
49468         * lib/dirname.c (dir_name): Likewise.
49469
49470         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
49471         `/'.
49472
49473         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
49474         (dir_name): Assert that there are no trailing slashes.
49475
49476 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
49477
49478         * lib/mbswidth.h (mbswidth): Add a flags argument.
49479         (mbswidth): New declaration.
49480         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
49481         * lib/mbswidth.c (mbswidth): Add a flags argument.
49482         (mbsnwidth): New function.
49483
49484 2000-07-24  Jim Meyering  <meyering@lucent.com>
49485
49486         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
49487
49488 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49489
49490         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
49491
49492 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49493
49494         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
49495         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
49496         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
49497         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
49498         invoke multibyte primitives.
49499
49500 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49501
49502         * lib/quotearg.c:
49503         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
49504         so that mbstate_t is always defined.
49505
49506         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
49507         be 1 in at least one GCC installation, and this configuration
49508         error is likely to be common.  Ignoring MB_LEN_MAX hurts
49509         performance on hosts that have mbrtowc but have only unibyte
49510         locales, but I assume these hosts are rare.
49511
49512 2000-07-23  Paul Eggert  <eggert@twinsun.com>
49513
49514         * lib/mbswidth.c (_XOPEN_SOURCE):
49515         Don't define; this causes problems on Solaris 7.
49516         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
49517
49518 2000-07-23  Jim Meyering  <meyering@lucent.com>
49519
49520         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
49521         too: getgrgid, getpwuid, getuid.
49522
49523 2000-07-23  Jim Meyering  <meyering@lucent.com>
49524
49525         * lib/basename.c (base_name): Add an assertion.
49526
49527 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
49528
49529         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
49530         shadow its mbsinit function.
49531
49532 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49533
49534         * lib/mbswidth.h: New file.
49535         * lib/mbswidth.c: New file.
49536         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
49537         (noinst_HEADERS): Add mbswidth.h.
49538
49539 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
49540
49541         * lib/config.charset: Add support for FreeBSD. Improve support for
49542         HP-UX and IRIX 6.
49543
49544 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
49545
49546         * m4/mbswidth.m4: New file.
49547         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
49548
49549 2000-07-15  Jim Meyering  <meyering@lucent.com>
49550
49551         * lib/makepath.c: Include quote.h.
49552         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
49553         corresponding argument in a `quote (...)' call.
49554         Give better diagnostics.
49555
49556         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
49557         (noinst_HEADERS): Add quote.h.
49558
49559         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
49560         from tar's src/misc.c.
49561         * lib/quote.h: New file.  Prototypes for same.
49562
49563 2000-07-14  Paul Eggert  <eggert@twinsun.com>
49564
49565         From a suggestion by Bruno Haible.
49566         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
49567         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
49568         to decide whether to define the BeOS workaround macro;
49569         this adjusts to the change to AC_MBSTATE_T.
49570
49571 2000-07-14  Jim Meyering  <meyering@lucent.com>
49572
49573         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
49574         jm_AC_TYPE_UINTMAX_T.
49575
49576 2000-07-13  Paul Eggert  <eggert@twinsun.com>
49577
49578         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
49579
49580         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
49581         quotearg_buffer_restyled): Add support for
49582         clocale_quoting_style.  Undo previous change to
49583         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
49584         and "{RIGHT QUOTATION MARK}" msgids.
49585
49586 2000-07-10  Paul Eggert  <eggert@twinsun.com>
49587
49588         From a suggestion by Bruno Haible.
49589         * m4/mbstate_t.m4 (AC_MBSTATE_T):
49590         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
49591         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
49592         and mbstate_t, to a single-part test that simply defines mbstate_t.
49593         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
49594         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
49595
49596 2000-07-10  Jim Meyering  <meyering@lucent.com>
49597
49598         * m4/strerror_r.m4: Mirror the correction made in autoconf.
49599
49600         * m4/gnu-source.m4: Output to confdefs.h directly.
49601         Suggestion from Akim Demaille.
49602
49603 2000-07-09  Paul Eggert  <eggert@twinsun.com>
49604
49605         The old behavior of quoting `like this' doesn't look good with
49606         newer, ISO-style fonts.  See:
49607         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
49608
49609         Instead, quote "like this" by default.  Let the translator
49610         tailor the locale-specific quoting behavior by providing
49611         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
49612
49613         * lib/quotearg.c (N_): New macro.
49614         (gettext_default): New function.
49615         (quotearg_buffer_restyled): Use
49616         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
49617         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
49618
49619 2000-07-09  Jim Meyering  <meyering@lucent.com>
49620
49621         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
49622         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
49623
49624         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
49625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
49626
49627 2000-07-09  Jim Meyering  <meyering@lucent.com>
49628
49629         * lib/Most files: Update copyright dates to include 2000.
49630
49631 2000-07-08  Jim Meyering  <meyering@lucent.com>
49632
49633         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
49634         if not defined.
49635         (xgethostname): Remove now-unnecessary #ifdef.
49636         Move declaration of `err' into loop where it's used.
49637
49638 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49639         and Bruno Haible  <haible@clisp.cons.org>
49640
49641         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
49642         only if the test for an object-type mbstate_t fails.  This
49643         prevents us from mistakenly reporting that mbstate_t is a
49644         system object type after we "#define mbstate_t int" to work
49645         around its lack.
49646
49647 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49648         and Bruno Haible  <haible@clisp.cons.org>
49649
49650         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
49651
49652 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49653
49654         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
49655         to strerror_r.
49656         Include <ctype.h> for use of isalpha.
49657
49658 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49659
49660         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
49661         by allocating a larger buffer. Test the gethostname return value for
49662         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
49663         returns an error and ENAMETOOLONG isn't defined.
49664
49665 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49666
49667         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
49668         dimension.
49669
49670 2000-07-04  Jim Meyering  <meyering@lucent.com>
49671
49672         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
49673         of the deprecated AC_CHECKING.
49674
49675 2000-07-04  Jim Meyering  <meyering@lucent.com>
49676
49677         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
49678         Reported by Bruno Haible.
49679
49680 2000-07-04  Jim Meyering  <meyering@lucent.com>
49681
49682         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
49683         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
49684         lacks mbrtowc.
49685
49686 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49687
49688         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
49689         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
49690
49691 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49692         and Bruno Haible  <haible@clisp.cons.org>
49693
49694         * lib/quotearg.c (mbrtowc):
49695         Assign to *pwc, and return 1 only if result is nonzero.
49696         (iswprint): Use ISPRINT when substituting our own mbrtowc.
49697
49698 2000-07-03  Jim Meyering  <meyering@lucent.com>
49699
49700         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
49701
49702 2000-07-03  Jim Meyering  <meyering@lucent.com>
49703
49704         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
49705         This is necessary to get a definition of e.g., UTMP_FILE on
49706         HP-UX 10.20.
49707         From Bob Proulx.
49708
49709 2000-07-02  Jim Meyering  <meyering@lucent.com>
49710
49711         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
49712
49713         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
49714         AC_LIBOBJ(function_name).
49715         * m4/chown.m4: Likewise.
49716         * m4/fnmatch.m4: Likewise.
49717         * m4/ftruncate.m4: Likewise.
49718         * m4/getgroups.m4: Likewise.
49719         * m4/getline.m4: Likewise.
49720         * m4/group-member.m4: Likewise.
49721         * m4/jm-macros.m4: Likewise.
49722         * m4/lstat.m4: Likewise.
49723         * m4/malloc.m4: Likewise.
49724         * m4/memcmp.m4: Likewise.
49725         * m4/nanosleep.m4: Likewise.
49726         * m4/putenv.m4: Likewise.
49727         * m4/realloc.m4: Likewise.
49728         * m4/regex.m4: Likewise.
49729         * m4/stat.m4: Likewise.
49730         * m4/strftime.m4: Likewise.
49731
49732 2000-07-02  Jim Meyering  <meyering@lucent.com>
49733
49734         * lib/quotearg.c (mbstate_t): Don't define here.
49735
49736 2000-07-02  Jim Meyering  <meyering@lucent.com>
49737
49738         * lib/nanosleep.c (SIGCONT): Define if not already defined.
49739
49740 2000-07-01  Jim Meyering  <meyering@lucent.com>
49741
49742         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
49743
49744 2000-07-01  Jim Meyering  <meyering@lucent.com>
49745
49746         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
49747         problem.
49748
49749 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49750
49751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
49752         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
49753
49754 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49755
49756         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
49757         per change in ../m4/ls-mntd-fs.m4.
49758         (read_filesystem_list): Ignore symbolic links.
49759
49760 2000-06-29  Jim Meyering  <meyering@lucent.com>
49761
49762         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
49763         for declaration of strcmp.
49764
49765         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
49766
49767         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
49768         Avoid warning by casting result to `char *' to remove `const'.
49769
49770 2000-06-28  Jim Meyering  <meyering@lucent.com>
49771
49772         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
49773         included by quotearg.c, for which we perform this test.  From
49774         Bruno Haible.
49775
49776 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49777
49778         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
49779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
49780         <utmpx.h> exists, put readutmp.o into LIBOBJS.
49781
49782 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49783
49784         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
49785
49786 2000-06-26  Paul Eggert  <eggert@twinsun.com>
49787
49788         savedir now sets errno on failure and invokes xmalloc to get memory.
49789         Fix a couple of other minor bugs while we're at it.
49790
49791         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
49792         (NAMLEN): Remove macro.
49793         (malloc, realloc): Remove decls.
49794         (stpcpy): Likewise.
49795         ("xalloc.h"): Include.
49796         (NAME_SIZE_DEFAULT): New macro.
49797         (savedir): Use xmalloc / xrealloc to allocate memory.
49798         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
49799         Skip "" directory entries.
49800         Use strlen to calculate directory entry length, since the old method
49801         is rarely used these days and isn't worth supporting.
49802         Don't use a pointer after freeing it.
49803         Check for integer overflow when calculating allocation size.
49804         Use memcpy to copy entries, instead of stpcpy.
49805         Set errno properly when returning NULL.
49806         Check for readdir error.
49807
49808 2000-06-26  Jim Meyering  <meyering@lucent.com>
49809
49810         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
49811
49812 2000-06-25  Jim Meyering  <meyering@lucent.com>
49813
49814         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
49815         Linux header bug when _XOPEN_SOURCE is defined to 500.
49816
49817 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49818
49819         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
49820         deficiency.
49821
49822 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49823
49824         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
49825         Include xalloc.h.
49826         Don't include <stdlib.h>.  Don't declare malloc, realloc.
49827
49828 2000-06-24  Jim Meyering  <meyering@lucent.com>
49829
49830         * m4/strerror_r.m4: Revive this file -- to try out an experimental
49831         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
49832         for which strerror does return char*, but which lacks a conveniently
49833         accessible declaration of the function.  If the compile-test says
49834         strerror_r doesn't work, then resort to a `run'-test that works on
49835         BeOS and segfaults on DEC Unix.
49836
49837 2000-06-24  Jim Meyering  <meyering@lucent.com>
49838
49839         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
49840
49841 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49842
49843         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
49844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
49845
49846 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49847
49848         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
49849         (mbrtowc, mbstate_t): Define substitutes if
49850         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
49851         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
49852         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
49853
49854 2000-06-23  Jim Meyering  <meyering@lucent.com>
49855
49856         * m4/afs.m4: Add missing AC_MSG_RESULT.
49857         Reported by Bruno Haible.
49858
49859         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
49860         Suggestion from Bruno Haible.
49861
49862 2000-06-23  Jim Meyering  <meyering@lucent.com>
49863
49864         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
49865
49866 2000-06-21  Jim Meyering  <meyering@lucent.com>
49867
49868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
49869
49870 2000-06-21  Jim Meyering  <meyering@lucent.com>
49871
49872         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
49873         (noinst_HEADERS): Add getstr.h.
49874
49875         * lib/getline.c (getstr): Move into a separate file.
49876         * lib/getstr.c (getstr): New file, extracted from getline.c, with
49877         the following changes: new parameter, delim2; both delim[12]
49878         parameters have type `int', not `char'.  The latter would lose
49879         with 8-bit delimiters.
49880         * lib/getstr.h: New file.
49881
49882 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49883
49884         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
49885         than 1024, return a memory chunk of least possible size, instead
49886         of size PATH_MAX + 2. In the loop, increment the size proportionally.
49887         Use free/xmalloc instead of xrealloc to avoid copying for very long
49888         paths.
49889
49890 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49891
49892         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
49893         the empty string.
49894
49895 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49896
49897         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
49898         address, not strdup.  Include <stdlib.h> and don't declare free().
49899
49900 2000-06-19  Jim Meyering  <meyering@lucent.com>
49901
49902         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
49903
49904 2000-06-18  Jim Meyering  <meyering@lucent.com>
49905
49906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
49907
49908         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
49909         `checking whether...' message to be consistent with that of the
49910         lstat test.
49911
49912 2000-06-18  Jim Meyering  <meyering@lucent.com>
49913
49914         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
49915         Besides, these days every porting target provides a mkdir function.
49916
49917         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49918         needed. (this snippet comes from src/system.h).
49919
49920 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
49921
49922         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49923
49924 2000-06-15  Paul Eggert  <eggert@twinsun.com>
49925
49926         * lib/human.c (adjust_value): New function.
49927         (human_readable_inexact): Apply rounding style even when
49928         printing approximate values.
49929
49930 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49931
49932         * lib/human.c (human_readable_inexact): Allow an input block
49933         size that is not a multiple of the output block size, and vice versa.
49934         Reported by Piergiorgio Sartor.
49935
49936 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49937
49938         * lib/getdate.y (get_date): Apply relative times after time
49939         zone indicator, not before.  Reported by Todd A. Jacobs.
49940
49941 2000-06-13  Jim Meyering  <meyering@lucent.com>
49942
49943         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49944
49945         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49946
49947 2000-06-12  Paul Eggert  <eggert@twinsun.com>
49948
49949         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49950
49951 2000-06-12  Jim Meyering  <meyering@lucent.com>
49952
49953         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49954         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49955         optional argument.
49956         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49957         the optional argument, `lib'.
49958
49959 2000-06-08  Jim Meyering  <meyering@lucent.com>
49960
49961         * m4/largefile.m4: Remove file (now that it's part of autoconf).
49962
49963 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49964
49965         Rewrite largefile configuration so that we don't need to run
49966         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
49967         AC_CANONICAL_HOST in configure.in -- jmm]
49968
49969         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49970         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49971         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49972         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49973         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49974         All uses changed.
49975         Instead of inspecting the output of getconf, try to compile the
49976         test program without and with the macro definition.
49977         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49978         for getconf.  Instead, check for the needed flags by compiling
49979         test programs.
49980
49981 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49982
49983         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49984
49985 2000-06-04  Jim Meyering  <meyering@lucent.com>
49986
49987         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49988         SunOS 4.1.4 for which gid_t is an unsigned type.
49989
49990 2000-06-03  Jim Meyering  <meyering@lucent.com>
49991
49992         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49993         now that autoconf requires that.
49994
49995         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49996         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49997         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49998
49999 2000-06-03  Jim Meyering  <meyering@lucent.com>
50000
50001         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
50002
50003 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
50004
50005         * m4/glibc21.m4: New file.
50006         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
50007
50008 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
50009
50010         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
50011         newer, don't install charset.alias.
50012         * lib/config.charset: Change the Linux/glibc rules so they become empty
50013         on glibc-2.1 or newer.
50014
50015 2000-06-02  Jim Meyering  <meyering@lucent.com>
50016
50017         * lib/mountlist.c: Back out last change.  Instead, do this...
50018         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
50019         me_dummy member using the same `ignore'-testing code.
50020         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
50021         fs_type strings.
50022         From Mark D. Roth.
50023
50024 2000-05-29  Jim Meyering  <meyering@lucent.com>
50025
50026         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
50027         mounts with the `ignore' attribute.  Based on a patch from
50028         Mark D. Roth.
50029
50030 2000-05-28  Jim Meyering  <meyering@lucent.com>
50031
50032         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
50033         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50034         * m4/stat.m4: Likewise.
50035         * m4/lstat.m4: Likewise.
50036         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
50037
50038         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
50039         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
50040
50041 2000-05-26  Jim Meyering  <meyering@lucent.com>
50042
50043         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
50044
50045 2000-05-24  Jim Meyering  <meyering@lucent.com>
50046
50047         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
50048         autoconf requires that.
50049         * m4/lib-check.m4: Likewise.
50050         * m4/jm-macros.m4: Likewise.
50051         * m4/strftime.m4: Likewise.
50052
50053         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
50054         AC_CHECK_DECLS, now that autoconf requires that.
50055
50056 2000-05-22  Jim Meyering  <meyering@lucent.com>
50057
50058         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50059         * m4/lstat.m4: Likewise.
50060
50061 2000-05-22  Jim Meyering  <meyering@lucent.com>
50062
50063         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
50064
50065 2000-05-20  Jim Meyering  <meyering@lucent.com>
50066
50067         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
50068         (jm_PREREQ): Use it.
50069
50070 2000-05-18  Jim Meyering  <meyering@lucent.com>
50071
50072         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
50073         back, too, since it may have been modified by allocate_entry.
50074         (hash_delete): Rewrite to use neither the assignment operator
50075         nor the comma operator in an if-expression.
50076
50077 2000-05-15  Paul Eggert  <eggert@twinsun.com>
50078
50079         * lib/closeout.c:
50080         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
50081         Remove; no longer needed.
50082         "quotearg.h": Add include.
50083         (file_name): Do not bother to explicitly initialize to NULL; it's less
50084         efficient on some hosts.
50085         (close_stdout_status): Remove test as to whether stdout was already
50086         closed; it breaks for the case "echo x | sort >&-".
50087         Quote file name colons.
50088         Do not assume that _("write error") lacks format strings.
50089
50090 2000-05-15  Jim Meyering  <meyering@lucent.com>
50091
50092         * lib/version-etc.c (version_etc_copyright): Update the copyright
50093         string used in all --version output.
50094
50095 2000-05-14  Jim Meyering  <meyering@lucent.com>
50096
50097         * lib/closeout.c (close_stdout_set_file_name): New function.
50098         (close_stdout_status): Use new file-scoped global.
50099         Return right away if fstat says the stdout file descriptor is invalid.
50100         * lib/closeout.h (close_stdout_set_file_name): Declare.
50101
50102 2000-05-10  Jim Meyering  <meyering@lucent.com>
50103
50104         * lib/closeout.c [default_exit_status]: New file-scoped variable.
50105         (close_stdout_set_status): New function.
50106         * lib/closeout.h (close_stdout_set_status): Declare.
50107
50108 2000-05-09  Jim Meyering  <meyering@lucent.com>
50109
50110         * m4/gettext.m4: Rename this...
50111         * m4/libintl.m4: ...to this.
50112
50113 2000-05-08  Jim Meyering  <meyering@lucent.com>
50114
50115         * lib/long-options.c: Don't include closeout.h.
50116         (parse_long_options): Don't call close_stdout for --version.
50117
50118 2000-05-06  Paul Eggert  <eggert@twinsun.com>
50119
50120         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
50121         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
50122         2.1.3 bug.  This avoids a clash when files like regex.c define
50123         _GNU_SOURCE.
50124
50125 2000-05-06  Jim Meyering  <meyering@lucent.com>
50126
50127         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
50128         (AC_REPLACE_FUNCS): Add strnlen.
50129
50130         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
50131         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
50132
50133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
50134         AC_SEARCH_LIBS call for nanosleep.
50135         (LIB_NANOSLEEP): Set and AC_SUBST.
50136
50137 2000-05-06  Jim Meyering  <meyering@lucent.com>
50138
50139         * lib/strnlen.c: Undefine __strnlen and strnlen.
50140         [!weak_alias]: Define __strnlen to strnlen.
50141
50142         * lib/atexit.c: New file, from libiberty.
50143
50144 2000-05-06  Jim Meyering  <meyering@lucent.com>
50145
50146         * lib/closeout.c (close_stdout_status): Also check for errors on the
50147         stderr stream.
50148
50149 2000-05-05  Jim Meyering  <meyering@lucent.com>
50150
50151         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
50152         AC_SEARCH_LIBS call for clock_gettime.
50153         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
50154
50155         * m4/search-libs.m4: Update from autoconf.
50156
50157         su doesn't work on Solaris 2.6.
50158         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
50159         <shadow.h>.  Reported by Dragos Harabor.
50160
50161 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
50162
50163         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
50164         memcpy instead of xmalloc, xrealloc, path_concat.
50165         (locale_charset): Treat empty environment variables as absent.
50166         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
50167
50168 2000-05-04  Jim Meyering  <meyering@lucent.com>
50169
50170         * lib/getopt.c: Update from glibc.
50171         * lib/obstack.c: Likewise.
50172         * lib/obstack.h: Likewise.
50173         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
50174         file
50175
50176         * lib/regex.h: Likewise.
50177         * lib/strndup.c: Likewise.
50178         * lib/strnlen.c: New file, from glibc.
50179
50180 2000-05-03  Jim Meyering  <meyering@lucent.com>
50181
50182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
50183
50184 2000-05-02  Paul Eggert  <eggert@twinsun.com>
50185
50186         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
50187         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
50188         compile-time test, rather than inspecting host and OS, to
50189         decide whether to define _LARGEFILE_SOURCE.
50190
50191 2000-05-01  Jim Meyering  <meyering@lucent.com>
50192
50193         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
50194
50195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
50196         Based on a patch from Bruno Haible.
50197
50198 2000-05-01  Jim Meyering  <meyering@lucent.com>
50199
50200         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
50201
50202 2000-04-29  Jim Meyering  <meyering@lucent.com>
50203
50204         * lib/path-concat.c: Declare strdup only if it's not defined.
50205         * lib/canon-host.c: Likewise.
50206
50207 2000-04-28  Jim Meyering  <meyering@lucent.com>
50208
50209         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
50210         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
50211         is included first, then limits.h is included by locale.h by libintl.h.
50212         From John David Anglin.
50213
50214 2000-04-25  Jim Meyering  <meyering@lucent.com>
50215
50216         * lib/makepath.c (S_IRWXUGO): Define.
50217         (make_path): Always perform explicit chmod if MODE specifies any
50218         of the `special' permission bits.  Prompted by a bug report against
50219         install from Mate Wierdl and Joost van Baal.
50220
50221 2000-04-18  Jim Meyering  <meyering@lucent.com>
50222
50223         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
50224         (jm_PREREQ): Use it.
50225
50226 2000-04-18  Jim Meyering  <meyering@lucent.com>
50227
50228         * lib/README: New file.
50229
50230         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
50231         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
50232
50233 2000-04-17  Jim Meyering  <meyering@lucent.com>
50234
50235         Get it right :-)
50236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
50237         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
50238         Suggestion from Akim Demaille.
50239
50240 2000-04-17  Jim Meyering  <meyering@lucent.com>
50241
50242         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
50243         the definition of it to rpl_strftime also defined-away the system's
50244         declaration.
50245
50246 2000-04-15  Jim Meyering  <meyering@lucent.com>
50247
50248         Use `C' to denote so-called `contiguous' files, the same way
50249         that tar does.
50250         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
50251         (ftypelet): Use S_ISCTG.
50252         From Michael Deutschmann.
50253
50254 2000-04-14  Jim Meyering  <meyering@lucent.com>
50255
50256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
50257         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
50258         clobbered.
50259
50260 2000-04-14  Jim Meyering  <meyering@lucent.com>
50261
50262         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
50263
50264 2000-04-13  Jim Meyering  <meyering@lucent.com>
50265
50266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
50267         AH_VERBATIM to insert required #ifndef into config.h.in.
50268         Suggestion from Akim Demaille.
50269
50270 2000-04-12  Jim Meyering  <meyering@lucent.com>
50271
50272         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
50273         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
50274         Christian Krackowizer.
50275
50276         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
50277         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
50278         (AC_SYS_LARGEFILE): Require.
50279         (AM_C_PROTOTYPES): Require.
50280
50281 2000-04-08  Jim Meyering  <meyering@lucent.com>
50282
50283         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
50284         names don't conflict.  Reported by Eli Zaretskii.
50285
50286 2000-04-07  Jim Meyering  <meyering@lucent.com>
50287
50288         * lib/putenv.c: Move inclusion of errno.h so it follows that of
50289         sys/types.h, to work around system header problems on AIX 3.2.5.
50290         From Bruno Haible.
50291
50292 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
50293
50294         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
50295         bug.  Deal with the different error behavior of Irix iconv.
50296
50297 2000-04-05  Paul Eggert  <eggert@twinsun.com>
50298
50299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
50300         IRIX if the installer said otherwise.
50301
50302 2000-04-05  Jim Meyering  <meyering@lucent.com>
50303
50304         Portability tweaks required for ultrix4.3.
50305         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
50306         (jm_CHECK_DECLS): Add getutent to the list of functions.
50307         (_jm_DECL_HEADERS): Add utmpx.h.
50308         From John David Anglin.
50309
50310         * m4/strftime.m4: Back out the 2000-04-02 change.
50311         Instead of that change, simply undefine putenv in the test program.
50312
50313 2000-04-05  Jim Meyering  <meyering@lucent.com>
50314
50315         Portability tweaks required for ultrix4.3.
50316         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
50317         getutent.
50318         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
50319         * lib/canon-host.c: Declare strdup.
50320         * lib/path-concat.c: Likewise.
50321         From John David Anglin.
50322
50323 2000-04-04  Jim Meyering  <meyering@lucent.com>
50324
50325         Be more DOS 8.3-friendly.
50326         * lib/ref-add.sin: Renamed from ref-add.sed.in.
50327         * lib/ref-del.sin: Renamed from ref-del.sed.in.
50328         * lib/Makefile.am: Reflect renaming.
50329         Reported by Eli Zaretskii.
50330
50331         Use a temporary file name that won't clash with `charset.alias'
50332         in the DOS 8.3 name space.
50333         * lib/Makefile.am (charset_tmp): Define.
50334         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
50335         (uninstall-local): Likewise.
50336         Reported by Eli Zaretskii.
50337
50338 2000-04-03  Jim Meyering  <meyering@lucent.com>
50339
50340         * m4/gettext.m4: Fix typo in comment.
50341
50342         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
50343         textutils/configure.in).  Suggestion from Paul Eggert.
50344         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
50345
50346 2000-04-02  Paul Eggert  <eggert@twinsun.com>
50347
50348         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
50349         variable in the shell rather than using putenv, which isn't
50350         portable.  This avoids the configure-time inter-test dependency
50351         on the potentially-renamed putenv function.
50352
50353 2000-03-30  Paul Eggert  <eggert@twinsun.com>
50354
50355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
50356         before checking struct stat.st_blksize, so that
50357         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
50358
50359 2000-03-29  Paul Eggert  <eggert@twinsun.com>
50360
50361         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
50362         since strftime.c uses HAVE_STRFTIME to decide whether to use
50363         the underlying strftime.
50364
50365 2000-03-29  Paul Eggert  <eggert@twinsun.com>
50366
50367         * lib/time/strftime.c (my_strftime): Make sure we call the system
50368         strftime, not ourselves, when invoking the underlying strftime.
50369
50370 2000-03-24  Jim Meyering  <meyering@lucent.com>
50371
50372         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
50373         (charset_alias): Define.
50374         (install-exec-local): Factor out common code.
50375         (uninstall-local): Split lines longer than 80.
50376         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
50377         (SUFFIXES): Define.
50378         (.sed.in.sed): New rule.  Don't redirect directly to $@.
50379         (CLEANFILES): Add ref-add.sed and ref-del.sed.
50380
50381 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
50382
50383         * lib/config.charset: Output a line containing "Packages using this
50384         file".
50385         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
50386         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
50387         ref-del.sed): New rules.
50388
50389 2000-03-17  Jim Meyering  <meyering@lucent.com>
50390
50391         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
50392         Otherwise, include <strings.h>
50393
50394 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
50395
50396         * lib/unicodeio.c (utf8_wctomb): New function.
50397         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
50398         format instead of in UCS-4 with platform dependent endianness.
50399
50400 2000-03-10  Jim Meyering  <meyering@lucent.com>
50401
50402         * m4/lib-check.m4: Look for getspnam in -lgen, too.
50403         From Marco Franzen.
50404
50405 2000-03-07  Paul Eggert  <eggert@twinsun.com>
50406
50407         * lib/savedir.c (savedir): Work even if directory size is
50408         negative; this can happen with some screwy NFS configurations.
50409
50410 2000-03-06  Jim Meyering  <meyering@lucent.com>
50411
50412         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
50413         if it's NULL (because we ran out of memory).  From Bruno Haible.
50414
50415 2000-03-05  Jim Meyering  <meyering@lucent.com>
50416
50417         * lib/localcharset.c ("path-concat.h"): Include.
50418         (get_charset_aliases): Use path_concat instead of ANSI string
50419         concatenation.
50420
50421         * lib/unicodeio.h (PARAMS): Define.
50422         Use it to guard prototype.
50423
50424 2000-03-04  Jim Meyering  <meyering@lucent.com>
50425
50426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
50427         for lib/localcharset.c.
50428
50429 2000-03-04  Jim Meyering  <meyering@lucent.com>
50430
50431         * lib/Makefile.am (install-exec-local): Create $(libdir) before
50432         installing into it.
50433         (uninstall-local): Uncomment this rule so `make distcheck' works
50434         once again.
50435
50436         * lib/unicodeio.c (<errno.h>): Include it.
50437         (errno): Declare if not defined.
50438
50439         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
50440
50441         * lib/config.charset: New version, incorporating remarks from a linux
50442         i18n mailing list.  From Bruno Haible.
50443
50444 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
50445
50446         * m4/codeset.m4: New file.
50447         * m4/iconv.m4: New file.
50448         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
50449
50450 2000-03-03  Jim Meyering  <meyering@lucent.com>
50451
50452         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
50453
50454 2000-03-02  Jim Meyering  <meyering@lucent.com>
50455
50456         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
50457         the messages come out on separate lines.
50458
50459         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
50460         rather than jm_CHECK_DECLARATIONS.
50461         * m4/decl.m4: Remove now-unused file.
50462
50463         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
50464         geteuid.
50465
50466 2000-03-02  Jim Meyering  <meyering@lucent.com>
50467
50468         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
50469
50470 2000-03-01  Jim Meyering  <meyering@lucent.com>
50471
50472         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
50473         * lib/unicodeio.c: Likewise.
50474
50475 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
50476
50477         * lib/config.charset: New file.
50478         * lib/localcharset.c: New file.
50479         * lib/unicodeio.h, lib/unicodeio.c: New files.
50480         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
50481         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
50482         (noinst_HEADERS): Add unicodeio.h.
50483         (all-local, install-exec-local, charset.alias): New targets.
50484
50485 2000-02-28  Paul Eggert  <eggert@twinsun.com>
50486
50487         * lib/quotearg.c (ALERT_CHAR): New macro.
50488         (quotearg_buffer_restyled): Use it.
50489
50490 2000-02-27  Jim Meyering  <meyering@lucent.com>
50491
50492         * m4/check-decl.m4: Add getenv to the list.
50493
50494 2000-02-27  Jim Meyering  <meyering@lucent.com>
50495
50496         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
50497         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
50498
50499         * lib/backupfile.c: Guard inclusion of stdlib.h with
50500         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
50501         Declare malloc if needed.
50502
50503         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
50504         `#ifndef HAVE_DECL..'
50505         now that autoconf always defines the HAVE_DECL_ symbols.
50506         * lib/human.c: Likewise.
50507         * lib/same.c: Likewise.
50508         * lib/strtoumax.c: Likewise.
50509
50510         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
50511         declaration check was not run.
50512         * lib/hash.c: Likewise.
50513         * lib/human.c: Likewise.
50514         * lib/same.c: Likewise.
50515         * lib/strtoumax.c: Likewise.
50516
50517         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
50518         `.', then first look up the entire `.'-containing string as a login
50519         name.
50520
50521 2000-02-23  Jim Meyering  <meyering@lucent.com>
50522
50523         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
50524         in place of my hack.
50525
50526 2000-02-18  Paul Eggert  <eggert@twinsun.com>
50527
50528         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
50529         (textint): New typedef.
50530         (parser_control): Member year changed from int to textint.
50531         All uses changed.
50532         (YYSTYPE): Removed; replaced by %union with int and textint members.
50533         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
50534         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
50535         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
50536         (tSNUMBER, tUNUMBER): Now of type <textintval>.
50537         (date, number, to_year): Use width of number in digits, not its value,
50538         to determine whether it's a 2-digit year, or a 2-digit time.
50539         (yylex): Store number of digits of numeric tokens.
50540         Reported by John Kendall.
50541
50542         (parser_control): Changed from struct parser_control to typedef (for
50543         consistency).  All uses changed.
50544
50545         (tID): Removed; not used.
50546         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
50547
50548 2000-02-14  Paul Eggert  <eggert@twinsun.com>
50549
50550         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
50551         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
50552
50553 2000-02-12  Jim Meyering  <meyering@lucent.com>
50554
50555         * lib/userspec.c (ISDIGIT): Define it.
50556         (isdigit): Remove definition.
50557         (is_number): Use ISDIGIT, not isdigit.
50558         <libintl.h>: Include.
50559         (_ and N_): Define.
50560         (parse_user_spec): Mark translatable strings.
50561
50562 2000-02-10  Jim Meyering  <meyering@lucent.com>
50563
50564         With these changes, nanosleep.[ch] are finally enough like the other
50565         lib/* replacement files to compile on a few more losing systems.
50566
50567         * lib/nanosleep.h: Don't include config.h.
50568         Remove prototype from declaration of nanosleep.
50569         (PARAMS): Remove now-unneeded definition.
50570         * lib/nanosleep.c: #undef nanosleep.
50571         (rpl_nanosleep): Rename from nanosleep.
50572
50573 2000-02-10  Jim Meyering  <meyering@lucent.com>
50574
50575         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
50576         gnu_nanosleep to rpl_nanosleep.
50577
50578 2000-02-09  Jim Meyering  <meyering@lucent.com>
50579
50580         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
50581         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
50582
50583 2000-02-08  Akim Demaille  <akim@epita.fr>
50584
50585         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
50586         `[' and `]' and remove uses of `changequote'.
50587         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
50588         (AC_SYS_LARGEFILE): Likewise.
50589         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50590         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
50591         of changequote.
50592         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
50593         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
50594         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
50595         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
50596
50597 2000-02-05  Jim Meyering  <meyering@lucent.com>
50598
50599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
50600         Remove explicit use of AC_HEADER_TIME.  It is required by
50601         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
50602         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
50603         in autoconf whereby the expansion of the latter ended up preceding
50604         the expansion of its prerequisite, AC_HEADER_TIME.
50605         Reported by Volker Borchert.
50606
50607 2000-02-03  Jim Meyering  <meyering@lucent.com>
50608
50609         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
50610
50611 2000-02-03  Jim Meyering  <meyering@lucent.com>
50612
50613         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
50614         rather than with `#if HAVE_UTMPNAME'.
50615
50616 2000-02-02  Jim Meyering  <meyering@lucent.com>
50617
50618         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
50619         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
50620         Reported by Eli Zaretskii.
50621
50622 2000-02-01  Jim Meyering  <meyering@lucent.com>
50623
50624         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
50625
50626 2000-01-31  Jim Meyering  <meyering@lucent.com>
50627
50628         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
50629         functions.  Add the time.h and sys/time.h headers along with the
50630         AC_REQUIRE'ment of AC_HEADER_TIME.
50631
50632 2000-01-31  Jim Meyering  <meyering@lucent.com>
50633
50634         * lib/nanosleep.h (nanosleep): Guard declaration with
50635         `#if ! HAVE_DECL_NANOSLEEP'.
50636         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
50637         the declaration in that vendor's sys/timers.h.
50638         Reported by Christian Krackowizer.
50639
50640         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
50641         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
50642         (ISPRINT): Likewise.
50643         Reported by Tom Tromey.
50644
50645 2000-01-30  Jim Meyering  <meyering@lucent.com>
50646
50647         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
50648
50649         * m4/prereq.m4 (utmp_includes): Define.
50650         Check for ut_user and ut_name members in both struct utmpx
50651         and struct utmp.
50652
50653 2000-01-30  Jim Meyering  <meyering@lucent.com>
50654
50655         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
50656         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
50657         header files where only utmpx.ut_user is declared.
50658
50659         * lib/readutmp.h (UT_USER): Define.
50660
50661 2000-01-29  Jim Meyering  <meyering@lucent.com>
50662
50663         * m4/lib-check.m4: New file containing library-related checks from
50664         fileutils and sh-utils (textutils had none).
50665
50666 2000-01-28  Jim Meyering  <meyering@lucent.com>
50667
50668         * m4/perl.m4: Change format of warning message to look more like that
50669         from the missing script.  Suggestion from François Pinard.
50670
50671 2000-01-25  Jim Meyering  <meyering@lucent.com>
50672
50673         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
50674         well as time.h in the compile check.
50675         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
50676         Fix typo in cross-compiling case: s/yes/no/.
50677
50678 2000-01-23  Jim Meyering  <meyering@lucent.com>
50679
50680         * m4/jm-macros.m4: Move df-related tests here from
50681         fileutils/configure.in
50682
50683         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
50684         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
50685
50686         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
50687         s/space/ac_fsusage_space/.
50688         (jm_FILE_SYSTEM_USAGE): Take two parameters.
50689
50690         * m4/ftruncate.m4: New file (derived from part of
50691         fileutils/configure.in).
50692         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
50693         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
50694
50695         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
50696         AC_SUBST these here, rather than just in sh-util/configure.in, so
50697         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
50698         all the same.
50699         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
50700         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
50701         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
50702         (AC_SUBST(POW_LIBM)): Likewise.
50703         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
50704
50705 2000-01-23  Jim Meyering  <meyering@lucent.com>
50706
50707         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
50708         obstack.c.
50709
50710 2000-01-22  Jim Meyering  <meyering@lucent.com>
50711
50712         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
50713
50714         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
50715
50716         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
50717         configure.in
50718         (AC_CHECK_HEADERS): Likewise for sh-utils.
50719         (AC_CHECK_HEADERS): Likewise for textutils.
50720         Merge the three lists of headers.
50721
50722         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
50723         from fileutils' configure.in.
50724
50725         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
50726         code. Moved tests into their own function (_jm_DECL_HEADERS) in
50727         check-decl.m4.
50728
50729         * m4/check-decl.m4: Use #if rather than #ifdef.
50730         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
50731         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
50732         (_jm_DECL_HEADERS): Define new function.
50733         (jm_CHECK_DECLARATIONS): Require it.
50734
50735 2000-01-22  Jim Meyering  <meyering@lucent.com>
50736
50737         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
50738         [! HAVE_DECL_STRTOULL]: Declare strtoull.
50739         Required for some AIX systems.  Reported by Christian Krackowizer.
50740         [TESTING] (main): New function.
50741
50742         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
50743         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
50744         letters.
50745
50746         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
50747         iswprint.
50748
50749         * lib/strverscmp.c (ISDIGIT): Define.
50750         (strverscmp): Use ISDIGIT, not isdigit.
50751
50752 2000-01-19  Jim Meyering  <meyering@lucent.com>
50753
50754         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
50755         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
50756         defines `struct timespec' in <sys/time.h>
50757
50758         * m4/c-bs-a.m4: Remove uses of changequote altogether.
50759         Thanks to Akim for explaining.
50760
50761 2000-01-17  Paul Eggert  <eggert@twinsun.com>
50762
50763         * lib/nanosleep.c (nanosleep):
50764         Don't use SA_INTERRUPT to decide whether to call sigaction, as
50765         POSIX.1 doesn't require SA_INTERRUPT and some systems
50766         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
50767         it's been part of POSIX.1 since day 1 (in 1988).
50768
50769 2000-01-17  Jim Meyering  <meyering@lucent.com>
50770
50771         * lib/interlock: Remove unused file.  Reported by François Pinard.
50772
50773 2000-01-16  Paul Eggert  <eggert@twinsun.com>
50774
50775         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
50776         alert, backslash, formfeed, and vertical tab unnecessarily in
50777         shell quoting style.
50778
50779 2000-01-16  Jim Meyering  <meyering@lucent.com>
50780
50781         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
50782         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
50783         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
50784         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
50785
50786 2000-01-16  Jim Meyering  <meyering@lucent.com>
50787
50788         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
50789         because the latter didn't work.
50790
50791 2000-01-15  Jim Meyering  <meyering@lucent.com>
50792
50793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
50794         (AC_REPLACE_FUNCS): Add memcpy and memset.
50795         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
50796         Add strpbrk.
50797         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
50798
50799 2000-01-12  Jim Meyering  <meyering@lucent.com>
50800
50801         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
50802         (jm_PREREQ): Use it.
50803         (jm_PREREQ_READUTMP): New macro.
50804         (jm_PREREQ): Use it.
50805
50806 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50807
50808         Quote multibyte characters correctly.
50809         * m4/c-bs-a.m4: New file.
50810         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
50811         (jm_PREREQ): Use it.
50812
50813 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50814
50815         * m4/uintmax_t.m4: Port to autoconf 2.13.
50816
50817 2000-01-08  Jim Meyering  <meyering@ascend.com>
50818
50819         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
50820         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
50821
50822 2000-01-04  Jim Meyering  <meyering@ascend.com>
50823
50824         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
50825         jm_STRUCT_DIRENT_D_TYPE.
50826         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
50827         jm_STRUCT_DIRENT_D_INO.
50828         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
50829         jm_STRUCT_UTIMBUF.
50830         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
50831         renamings.
50832         * m4/utime.m4: Likewise.
50833
50834         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
50835         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
50836
50837 2000-01-03  Paul Eggert  <eggert@twinsun.com>
50838
50839         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
50840         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
50841
50842 2000-01-02  Jim Meyering  <meyering@ascend.com>
50843
50844         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
50845         remember if this is necessary.
50846
50847 1999-12-26  Jim Meyering  <meyering@ascend.com>
50848
50849         * m4/jm-macros.m4: Use it here.
50850         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
50851
50852 1999-12-23  Jim Meyering  <meyering@ascend.com>
50853
50854         * m4/jm-macros.m4: Check for clock_gettime (moved from
50855         fileutils/configure.in)
50856         Check for gettimeofday.
50857
50858 1999-12-20  Jim Meyering  <meyering@ascend.com>
50859
50860         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
50861         autoconf-2.14a-1999-12-20.
50862
50863 1999-12-19  Jim Meyering  <meyering@ascend.com>
50864
50865         * m4/lstat-slash.m4: New file.
50866         * m4/jm-macros.m4: Use the new macro:
50867         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50868
50869 1999-12-07  Jim Meyering  <meyering@ascend.com>
50870
50871         * m4/perl.m4: Require that File::Compare be available, too.
50872         Too many systems seem to lack it.
50873
50874         * m4/strftime.m4: Add checks for most of the cpp macros tested in
50875         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
50876
50877 1999-11-18  Paul Eggert  <eggert@twinsun.com>
50878
50879         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
50880         problem with the QNX 4.25 shell, which doesn't propagate exit
50881         status of failed commands inside shell assignments.
50882
50883 1999-11-17  Jim Meyering  <meyering@ascend.com>
50884
50885         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
50886
50887 1999-11-07  Jim Meyering  <meyering@ascend.com>
50888
50889         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
50890
50891 1999-11-06  Jim Meyering  <meyering@ascend.com>
50892
50893         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
50894         * m4/jm-macros.m4 (jm_MACROS): Use it here.
50895
50896 1999-11-05  Jim Meyering  <meyering@ascend.com>
50897
50898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
50899         configure.in of textutils, fileutils, and sh-utils into this one
50900         (shared between those packages) file.
50901         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
50902         AC_STRUCT_ST_BLKSIZE.
50903
50904 1999-11-03  Jim Meyering  <meyering@ascend.com>
50905
50906         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
50907         of AC_CHECK_TYPE checks includes unistd.h.
50908         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
50909         Suggestion from Akim Demaille.
50910
50911 1999-10-30  Jim Meyering  <meyering@ascend.com>
50912
50913         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
50914         m4-quoted string.
50915         * m4/ls-mntd-fs.m4: Likewise.
50916         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
50917         * m4/jm-winsz1.m4: Likewise.
50918
50919         * m4/const.m4: Remove file, since the fix made it into the experimental
50920         version of autoconf.
50921         * m4/mktime.m4: Likewise.
50922
50923         * m4/check-type.m4: Remove file, now that the latest version of
50924         AC_CHECK_TYPE takes a third arg to specify additional #includes.
50925
50926         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50927         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50928         AC_CHECK_TYPE.
50929
50930 1999-10-04  Jim Meyering  <meyering@ascend.com>
50931
50932         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50933
50934 1999-09-22  Paul Eggert  <eggert@twinsun.com>
50935
50936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50937         2.95.1 bug with HP-UX 10.20.
50938
50939 1999-09-17  Jim Meyering  <meyering@ascend.com>
50940
50941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50942         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50943         due to missing strdup (against sh-utils-2.0).
50944
50945 1999-08-29  Jim Meyering  <meyering@ascend.com>
50946
50947         * m4/jm-macros.m4: Require jm_BISON.
50948         * m4/bison.m4: New file.
50949
50950 1999-08-17  Paul Eggert  <eggert@twinsun.com>
50951
50952         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50953         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50954
50955 1999-08-05  Jim Meyering  <meyering@ascend.com>
50956
50957         * m4/getline.m4: Rename test file from conftestdata to conftest.data
50958         to avoid conflicts with `conftest' on 8+3 filesystems.
50959         Suggestion from Eli Zaretskii.
50960
50961 1999-08-04  Jim Meyering  <meyering@ascend.com>
50962
50963         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50964         fileutils and sh-utils (textutils's getline test was inadequate).
50965         (AM_FUNC_GETLINE): Run this test.
50966         (AC_CHECK_FUNCS): Check for getdelim.
50967         Reported by Bob Proulx.
50968
50969 1999-08-02  Jim Meyering  <meyering@ascend.com>
50970
50971         * m4/jm-macros.m4: Add a comment.
50972
50973 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50974
50975         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50976         <inttypes.h> defines strtoumax as a macro (and not as a
50977         function).
50978
50979 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50980
50981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50982         that we can shift, multiply and divide unsigned long long
50983         values; Ultrix cc can't do it.
50984
50985 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50986
50987         * m4/mktime.m4: New file, which is a preview of what should appear
50988         in the next public autoconf release.
50989
50990 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50991
50992         * m4/lfs.m4: Remove this file.
50993         * m4/largefile.m4: New file.  It contains the old contents of
50994         lfs.m4, except that all names with prefix AC_LFS have been
50995         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50996         compatible with future autoconf versions.  Also, some minor m4
50997         quoting problems have been fixed.
50998
50999 1999-08-01  Paul Eggert  <eggert@twinsun.com>
51000
51001         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
51002         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
51003         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
51004         and simplify the shell code.
51005
51006 1999-08-01  Jim Meyering  <meyering@ascend.com>
51007
51008         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
51009         m4.
51010
51011 1999-07-20  Jim Meyering  <meyering@ascend.com>
51012
51013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
51014
51015 1999-07-15  Jim Meyering  <meyering@ascend.com>
51016
51017         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
51018
51019 1999-05-22  Jim Meyering  <meyering@ascend.com>
51020
51021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
51022
51023 1999-05-20  Jim Meyering  <meyering@ascend.com>
51024
51025         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
51026         Add a colon after each `then' in case $4 is empty.
51027
51028 1999-05-16  Jim Meyering  <meyering@ascend.com>
51029
51030         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
51031
51032 1999-05-10  Jim Meyering  <meyering@ascend.com>
51033
51034         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
51035
51036         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
51037         AC_FUNC_MKTIME.
51038
51039 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
51040
51041         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
51042
51043 1999-05-04  Paul Eggert  <eggert@twinsun.com>
51044
51045         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
51046         not CPPFLAGS, so that linking works correctly in IRIX.
51047
51048 1999-04-30  Paul Eggert  <eggert@twinsun.com>
51049
51050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
51051
51052 1999-04-20  Paul Eggert  <eggert@twinsun.com>
51053
51054         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
51055         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
51056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
51057         jm_AC_TYPE_UNSIGNED_LONG_LONG.
51058         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
51059
51060         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
51061
51062 1999-04-20  Jim Meyering  <meyering@ascend.com>
51063
51064         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
51065         AC_REPLACE xstroull if necessary.  From Paul Eggert.
51066         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
51067
51068 1999-04-18  Jim Meyering  <meyering@ascend.com>
51069
51070         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
51071         * m4/jm-macros.m4: Use it.
51072
51073 1999-04-06  Jim Meyering  <meyering@ascend.com>
51074
51075         * m4/strftime.m4: Remove test for %f.
51076
51077 1999-03-29  Jim Meyering  <meyering@ascend.com>
51078
51079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
51080         superset of the AC_TYPE_* checks in the textutils, fileutils,
51081         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
51082         AC_TYPE_PID_T.
51083
51084 1999-03-28  Jim Meyering  <meyering@ascend.com>
51085
51086         * m4/jm-macros.m4: Define GNU_PACKAGE here.
51087         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
51088         replaced e.g., in the *.sh files of the sh-utils.
51089
51090 1999-03-20  Jim Meyering  <meyering@ascend.com>
51091
51092         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
51093         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
51094         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
51095
51096 1999-03-19  Jim Meyering  <meyering@ascend.com>
51097
51098         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
51099
51100 1999-03-12  Jim Meyering  <meyering@ascend.com>
51101
51102         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
51103
51104 1999-03-07  Jim Meyering  <meyering@ascend.com>
51105
51106         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
51107         declared.
51108
51109 1999-02-17  Jim Meyering  <meyering@ascend.com>
51110
51111         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
51112         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
51113
51114 1999-02-07  Jim Meyering  <meyering@ascend.com>
51115
51116         * m4/group-member.m4: New file -- extracted from sh-utils'
51117         configure.in.
51118
51119         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
51120         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
51121
51122 1999-02-06  Jim Meyering  <meyering@ascend.com>
51123
51124         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
51125         * m4/fnmatch.m4: Likewise.
51126         * m4/getgroups.m4: Likewise.
51127         * m4/lstat.m4: Likewise.
51128         * m4/malloc.m4: Likewise.
51129         * m4/putenv.m4: Likewise.
51130         * m4/realloc.m4: Likewise.
51131         * m4/regex.m4: Likewise.
51132         * m4/stat.m4: Likewise.
51133         * m4/strftime.m4: Likewise.
51134         Suggestion from Alain Magloire.
51135
51136         * m4/chown.m4: Use `.$ac_objext', not `.o'.
51137         * m4/fnmatch.m4: Likewise.
51138         * m4/getgroups.m4: Likewise.
51139         * m4/getline.m4: Likewise.
51140         * m4/lstat.m4: Likewise.
51141         * m4/malloc.m4: Likewise.
51142         * m4/memcmp.m4: Likewise.
51143         * m4/putenv.m4: Likewise.
51144         * m4/realloc.m4: Likewise.
51145         * m4/regex.m4: Likewise.
51146         * m4/stat.m4: Likewise.
51147         * m4/strftime.m4: Likewise.
51148         Suggestion from Alain Magloire.
51149
51150         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
51151         an argument.
51152
51153         * m4/regex.m4: Add a run-time Test for proper operation of
51154         re_compile_pattern.
51155
51156 1999-01-31  Jim Meyering  <meyering@ascend.com>
51157
51158         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
51159
51160 1999-01-30  Jim Meyering  <meyering@ascend.com>
51161
51162         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
51163
51164         * m4/jm-mktime.m4: Make this a wrapper around the official
51165         AM_FUNC_MKTIME rather than my private copy, now that the official one
51166         is up to date.
51167         * m4/mktime.m4: Remove file.
51168
51169         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
51170         * m4/uptime.m4: Likewise.
51171         * m4/uintmax_t.m4: Likewise.
51172
51173 1999-01-28  Jim Meyering  <meyering@ascend.com>
51174
51175         * m4/jm-macros.m4: Use jm_AFS.
51176         * m4/afs.m4: New file (from fileutils' configure.in).
51177
51178         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
51179         * m4/chown.m4: Likewise.
51180         * m4/d-ino.m4: Likewise.
51181         * m4/d-type.m4: Likewise.
51182         * m4/fnmatch.m4: Likewise.
51183         * m4/getgroups.m4: Likewise.
51184         * m4/gettext.m4: Likewise.
51185         * m4/jm-mktime.m4: Likewise.
51186         * m4/jm-winsz2.m4: Likewise.
51187         * m4/lcmessage.m4: Likewise.
51188         * m4/ls-mntd-fs.m4: Likewise.
51189         * m4/malloc.m4: Likewise.
51190         * m4/memcmp.m4: Likewise.
51191         * m4/putenv.m4: Likewise.
51192         * m4/realloc.m4: Likewise.
51193         * m4/st_mtim.m4: Likewise.
51194         * m4/strftime.m4: Likewise.
51195
51196 1999-01-16  Jim Meyering  <meyering@ascend.com>
51197
51198         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
51199         (ARGMATCH_DIE_DECL): Define.
51200
51201 1999-01-12  Jim Meyering  <meyering@ascend.com>
51202
51203         * m4/Makefile.am.in: Rewrite to avoid using fmt.
51204         Reported by Lars Hecking.
51205
51206 1999-01-10  Jim Meyering  <meyering@ascend.com>
51207
51208         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
51209         gross kludge.
51210         * m4/inttypes_h.m4: Likewise.
51211         * m4/lstat.m4: Likewise.
51212         * m4/malloc.m4: Likewise.
51213         * m4/readdir.m4: Likewise.
51214         * m4/realloc.m4: Likewise.
51215         * m4/st_dm_mode.m4: Likewise.
51216         * m4/stat.m4: Likewise.
51217         * m4/utimbuf.m4: Likewise.
51218         * m4/utimes.m4: Likewise.
51219
51220         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
51221         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
51222         comments in config.h.in are meaningful.
51223
51224         * m4/jm-macros.m4: Require autoconf-2.13 here.
51225
51226         * m4/regex.m4: By default, don't use the included regex.c on systems
51227         with glibc 2.  Suggestion from Uli Drepper.
51228
51229 1999-01-02  Jim Meyering  <meyering@ascend.com>
51230
51231         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
51232
51233 1998-12-18  Jim Meyering  <meyering@ascend.com>
51234
51235         * m4/Makefile.am.in (Makefile.am): Simplify rule.
51236         Based on a suggestion from Lars Hecking.
51237
51238 1998-11-16  Paul Eggert  <eggert@twinsun.com>
51239
51240         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
51241
51242 1998-11-16  Jim Meyering  <meyering@ascend.com>
51243
51244         * m4/lfs.m4: Double-quote the `uname...` expression.
51245
51246 1998-11-14  Jim Meyering  <meyering@ascend.com>
51247
51248         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
51249         * m4/stat.m4: Likewise.
51250
51251 1998-11-03  Jim Meyering  <meyering@ascend.com>
51252
51253         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
51254         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
51255
51256 1998-10-18  Jim Meyering  <meyering@ascend.com>
51257
51258         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
51259
51260 1998-10-17  Jim Meyering  <meyering@ascend.com>
51261
51262         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
51263         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
51264         calls for those previously hard-coded headers.  Instead, take a new
51265         parameter.
51266         (jm_CHECK_DECLARATIONS): Reflect interface change.
51267         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
51268         (jm_CHECK_DECL_LOCALTIME_R): New macro.
51269
51270         * m4/mktime.m4: Test for spring-forward gap before long-running test.
51271
51272 1998-10-14  Jim Meyering  <meyering@ascend.com>
51273
51274         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
51275         instead of "TZ=America/Vancouver".  From Paul Eggert.
51276
51277 1998-10-11  Jim Meyering  <meyering@ascend.com>
51278
51279         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
51280         This adds a test for a recently added compatibility fix for mktime.c.
51281         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
51282
51283 1998-09-27  Jim Meyering  <meyering@ascend.com>
51284
51285         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
51286
51287         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
51288         ../configure.in, including a change from Gordon Matzigkeit to allow
51289         cross-compiling for the Hurd.
51290
51291         * m4/glibc.m4: New file/macro to test for the GNU C Library
51292         versions 1 and 2.  From Gordon Matzigkeit.
51293         Indent.
51294
51295 1998-09-21  Jim Meyering  <meyering@ascend.com>
51296
51297         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
51298
51299 1998-08-18  Paul Eggert  <eggert@twinsun.com>
51300
51301         Port nanosecond-resolution times to UnixWare 2.1.2 and
51302         pedantic Solaris 2.6.
51303
51304         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
51305         AC_STRUCT_ST_MTIM.
51306         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
51307         Generate name of ns member, instead of just 1 or undef.
51308         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
51309
51310 1998-08-15  Jim Meyering  <meyering@ascend.com>
51311
51312         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
51313         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
51314         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
51315         instead of jm_TYPE_SSIZE_T.
51316
51317 1998-08-12  Jim Meyering  <meyering@ascend.com>
51318
51319         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
51320
51321 1998-08-02  Jim Meyering  <meyering@ascend.com>
51322
51323         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
51324         in acconfig.h manually.
51325
51326 1998-07-31  Paul Eggert  <eggert@twinsun.com>
51327
51328         * m4/st_mtim.m4: New file.
51329
51330 1998-07-28  Jim Meyering  <meyering@ascend.com>
51331
51332         * m4/utimes.m4: Undef stat.
51333
51334 1998-07-25  Jim Meyering  <meyering@ascend.com>
51335
51336         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
51337         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
51338
51339 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
51340
51341         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
51342         uid and gid actually remain unchanged.
51343
51344 1998-07-07  Jim Meyering  <meyering@ascend.com>
51345
51346         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
51347
51348 1998-07-04  Jim Meyering  <meyering@ascend.com>
51349
51350         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
51351         to prove that this macro can be used in packages without regex.c.
51352
51353 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
51354
51355         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
51356         is to be used.
51357
51358 1998-07-03  Jim Meyering  <meyering@ascend.com>
51359
51360         * m4/gettext.m4: Add -lintl if it's found to be necessary.
51361
51362         * m4/gettext.m4: New file -- from gettext-0.10.35.
51363         * m4/lcmessage.m4: Likewise.
51364         * m4/progtest.m4: Likewise.
51365
51366         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
51367         * m4/jm-macros.m4: Require the new macro.
51368
51369 1998-06-29  Jim Meyering  <meyering@ascend.com>
51370
51371         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
51372         for the definition of NGROUPS (used in a system header included
51373         by sys/mount.h).
51374
51375 1998-06-28  Jim Meyering  <meyering@ascend.com>
51376
51377         * m4/ls-mntd-fs.m4: New file.
51378         * m4/fstypename.m4: New file.
51379
51380         * m4/jm-macros.m4: Require the new macro.
51381         * m4/jm-glibc-io.m4: New file.
51382
51383 1998-05-19  Jim Meyering  <meyering@ascend.com>
51384
51385         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
51386         * m4/lchown.m4: New file.
51387
51388         * m4/Makefile.am.in: New file.
51389         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
51390
51391 1998-05-14  Jim Meyering  <meyering@ascend.com>
51392
51393         * m4/Makefile.am (EXTRA_DIST): Add them.
51394         * m4/jm-macros.m4: New file.
51395         * m4/utimbuf.m4: New file.
51396
51397 1998-05-12  Jim Meyering  <meyering@ascend.com>
51398
51399         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
51400
51401 1998-05-11  Jim Meyering  <meyering@ascend.com>
51402
51403         * m4/isc-posix.m4: New file.
51404
51405 1998-05-10  Jim Meyering  <meyering@ascend.com>
51406
51407         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
51408
51409 1998-05-09  Jim Meyering  <meyering@ascend.com>
51410
51411         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
51412         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
51413         with automake.
51414
51415         * m4/ssize_t.m4: New file.
51416         * m4/mktime.m4: Remove file -- the new automake has this now.
51417
51418 1998-04-26  Jim Meyering  <meyering@ascend.com>
51419
51420         * m4/assert.m4: New file.
51421         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
51422
51423 1998-04-05  Jim Meyering  <meyering@ascend.com>
51424
51425         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
51426         (jm_PREREQ): Use it here.
51427
51428 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
51429
51430         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
51431         in acconfig.h.
51432
51433 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
51434
51435         * m4/prereq.m4: New file.
51436         * m4/error.m4: New file.
51437         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
51438
51439 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
51440
51441         * m4/getline.m4: Don't set am_cv_func_working_getline before the
51442         cache-check for the same variable -- that defeated the purpose of
51443         the test; the test program was never run.  This was a problem only
51444         on systems with losing getline functions -- HP-UX 10.20 is one.
51445         Reported by Bjorn Helgaas.
51446
51447 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
51448
51449         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
51450
51451 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
51452
51453         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
51454
51455         * m4/const.m4: New file.  Use an initializer in this declaration
51456         typedef int charset[2]; const charset x;
51457         Reported by Bob Glickstein.
51458
51459 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
51460
51461         * m4/chown.m4: Fix reversed types on -1 args to chown.
51462         From Kaveh Ghazi.
51463
51464 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
51465
51466         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
51467         Add lseek and memchr.
51468
51469         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
51470         T.E.Dickey <dickey@clark.net> said that some older preprocessors
51471         have a 20-character limit on names.
51472
51473 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
51474
51475         * m4/inttypes_h.m4: New file.
51476         * m4/uintmax_t.m4: New file.
51477         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
51478
51479
51480         -----
51481
51482         Local Variables:
51483         coding: utf-8
51484         End:
51485
51486         Copyright (C) 1997-2009 Free Software Foundation, Inc.
51487
51488         Copying and distribution of this file, with or without
51489         modification, are permitted provided the copyright notice
51490         and this notice are preserved.